@font-face {
  font-family: Local;
  src: local("Segoe UI");
}
* {
  box-sizing: border-box;
}
html {
  font-size: 16px;
}
body {
  margin: 0;
  font-family: Local, Arial, sans-serif;
  background: #f2f4ef;
  color: #172c28;
  line-height: 1.5;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #6b9632;
  outline-offset: 3px;
}
.topbar {
  height: 104px;
  background: #101c1b;
  color: #f4f9ed;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(5vw, 20px);
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 15px;
  font-weight: 900;
  letter-spacing: 1.5px;
  font-size: 21px;
  line-height: 1.2;
}
.brand small {
  display: block;
  color: #b4bdb6;
  font-size: 11px;
  letter-spacing: 3px;
  margin-top: 7px;
}
.crest {
  background: #c9f96b;
  color: #142620;
  width: 52px;
  height: 58px;
  border-radius: 8px 8px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 24px;
  letter-spacing: -1px;
}
.crest span {
  font-size: 13px;
  margin-top: 4px;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 35px;
  font-size: 14px;
}
.season {
  color: #aab9ad;
  font-size: 12px;
  letter-spacing: 1.5px;
}
.top-actions a {
  border: 1px solid #415147;
  border-radius: 7px;
  padding: 9px 14px;
}
main {
  max-width: 1320px;
  margin: auto;
  padding: 36px 5vw 60px;
}
.eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #617164;
  text-transform: uppercase;
  margin: 0 0 5px;
}
h1 {
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -1.6px;
  line-height: 1.12;
  margin: 0 0 10px;
  font-weight: 850;
}
h2 {
  font-size: 22px;
  letter-spacing: -0.5px;
  line-height: 1.3;
  margin: 0 0 16px;
}
h3 {
  font-size: 17px;
  margin: 0 0 5px;
}
p {
  margin: 8px 0 16px;
}
.muted {
  color: #67756c;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.page-heading p {
  margin: 0;
}
.pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d3ded0;
  border-radius: 30px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
  background: #f5f8ef;
  white-space: nowrap;
}
.pill.green {
  background: #dff2c5;
  border-color: #c7e3a6;
  color: #34521c;
}
.pill.amber {
  background: #fff0d5;
  border-color: #efd5ab;
  color: #77591f;
}
.tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid #d3ddd0;
  margin-bottom: 26px;
  overflow: auto;
}
.tabs button {
  border: 0;
  background: transparent;
  padding: 13px 18px;
  color: #637164;
  white-space: nowrap;
  font-weight: 650;
  border-bottom: 3px solid transparent;
}
.tabs button.active {
  color: #182d20;
  border-bottom-color: #719e38;
}
.button {
  border: 1px solid #d0d9cc;
  border-radius: 8px;
  background: white;
  color: #263b2b;
  padding: 11px 17px;
  font-weight: 700;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  min-height: 44px;
}
.button:hover {
  background: #edf3e7;
  text-decoration: none;
}
.button.primary {
  background: #c9f96b;
  border-color: #c9f96b;
  color: #142620;
}
.button.primary:hover {
  background: #b7eb56;
}
.button.dark {
  background: #19392c;
  color: white;
  border-color: #19392c;
}
.button.danger {
  color: #b34435;
}
.button.small {
  font-size: 13px;
  padding: 7px 10px;
  min-height: 36px;
}
.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.panel {
  background: #fff;
  border: 1px solid #dce2d7;
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 20px;
}
.panel.dark {
  background: #19392c;
  color: #f8fff0;
  border-color: #19392c;
}
.panel.dark .muted {
  color: #c1d2ba;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.panel-head h2 {
  margin: 0;
}
.round-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 22px;
}
.roster {
  max-height: 510px;
  overflow: auto;
  margin: 16px -8px 12px;
}
.roster-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 8px;
  border-bottom: 1px solid #edf0e9;
  cursor: pointer;
}
.roster-row:hover {
  background: #f3f7ed;
}
.roster-row input {
  accent-color: #547c2d;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.roster-row .name {
  flex: 1;
  font-size: 14px;
  font-weight: 650;
}
.roster-row small {
  font-size: 12px;
  display: block;
  font-weight: 400;
  color: #758071;
}
.score {
  font-size: 14px;
  font-weight: 800;
  background: #edf4e4;
  border-radius: 6px;
  padding: 4px 8px;
}
.score.none {
  background: #f0f1ed;
  color: #7a8075;
}
.count {
  font-size: 34px;
  font-weight: 850;
  line-height: 1;
}
.count span {
  font-size: 17px;
  color: #809077;
  font-weight: 500;
}
.progress {
  height: 5px;
  background: #e6eddf;
  border-radius: 10px;
  margin: 14px 0;
}
.progress span {
  display: block;
  height: 100%;
  background: #729b47;
  border-radius: 10px;
}
.teams {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.team {
  border: 1px solid #d5dfd2;
  background: white;
  border-radius: 13px;
  overflow: hidden;
}
.team-top {
  padding: 18px 18px 16px;
  background: #e8f0df;
  border-bottom: 1px solid #d5dfd2;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.team:nth-child(2) .team-top {
  background: #e0e9f9;
}
.team:nth-child(3) .team-top {
  background: #fff0ce;
}
.team-number {
  font-size: 32px;
  font-weight: 850;
  opacity: 0.45;
  line-height: 1;
}
.team h3 {
  font-size: 18px;
}
.team-sub {
  font-size: 12px;
  letter-spacing: 1px;
  color: #576852;
}
.team ul {
  list-style: none;
  padding: 0 16px;
  margin: 0;
}
.team li {
  display: flex;
  gap: 8px;
  padding: 14px 0;
  border-bottom: 1px solid #edf0e7;
  align-items: center;
  min-height: 65px;
}
.team li:last-child {
  border: 0;
}
.jersey {
  font-size: 12px;
  color: #8c9587;
  width: 18px;
}
.player-info {
  flex: 1;
  min-width: 0;
}
.player-info b {
  display: block;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.player-info small {
  display: block;
  font-size: 12px;
  color: #788271;
}
.team .guest b {
  font-style: italic;
  color: #7a8276;
  font-weight: 500;
}
.team-footer {
  padding: 13px 16px;
  background: #f6f8f1;
  border-top: 1px solid #e5ebdd;
  font-size: 13px;
}
.team-footer b {
  display: block;
  color: #42602b;
}
.team-edit {
  border: 0;
  border-radius: 5px;
  background: #edf2e7;
  padding: 5px 9px;
  color: #516b38;
  min-height: 32px;
}
.team-stats {
  padding: 10px 16px;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  background: #fbfcf8;
  color: #617456;
}
.notice {
  padding: 13px 16px;
  border-radius: 9px;
  background: #eff3e7;
  color: #566648;
  font-size: 14px;
  margin: 15px 0;
  border: 1px solid #dce4ce;
}
.notice.warning {
  background: #fff5df;
  border-color: #efdfb9;
  color: #806127;
}
.empty {
  text-align: center;
  padding: 50px 24px;
  border: 1px dashed #c5d1be;
  border-radius: 12px;
  background: #f8faf4;
}
.empty .big {
  font-size: 45px;
  color: #9db17b;
  margin-bottom: 12px;
}
.empty p {
  max-width: 430px;
  margin: 8px auto 20px;
  color: #6c7961;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 650;
}
.field input,
.field select,
select,
input[type="search"] {
  border: 1px solid #cbd6c6;
  border-radius: 7px;
  background: white;
  padding: 10px 12px;
  min-height: 44px;
  max-width: 100%;
  color: #1c3122;
}
.field small {
  font-weight: 400;
  color: #7b8476;
}
.field input:disabled {
  background: #f2f4ef;
}
.check {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 14px;
  margin: 10px 0 18px;
}
.check input {
  width: 18px;
  height: 18px;
  accent-color: #577e2c;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}
th {
  text-align: left;
  color: #77856d;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background: #f5f8f0;
  padding: 12px;
}
td {
  padding: 15px 12px;
  border-bottom: 1px solid #e5eadf;
  vertical-align: middle;
}
td small {
  display: block;
  color: #7c8474;
}
tr:last-child td {
  border: 0;
}
.legend {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin: 18px 0;
}
.legend div {
  background: #edf3e6;
  border-radius: 8px;
  text-align: center;
  padding: 9px 3px;
  font-size: 12px;
}
.legend b {
  font-size: 19px;
  display: block;
}
.criterion {
  border: 0;
  border-bottom: 1px solid #e5ebdd;
  margin: 0;
  padding: 16px 0;
}
.criterion legend {
  padding-top: 16px;
  font-weight: 750;
}
.criterion p {
  font-size: 13px;
  color: #6e7e63;
  margin: 4px 0 12px;
}
.rating-options {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.rating-options label {
  cursor: pointer;
  position: relative;
}
.rating-options input {
  position: absolute;
  opacity: 0;
}
.rating-options span {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #d3ddca;
  border-radius: 8px;
  padding: 10px 2px;
  font-size: 11px;
  gap: 2px;
  text-align: center;
}
.rating-options b {
  font-size: 20px;
}
.rating-options input:checked + span {
  background: #d3f5a4;
  border-color: #699b32;
  color: #25490c;
}
.rating-options input:focus-visible + span {
  outline: 3px solid #5f912d;
}
.auth {
  max-width: 480px;
  margin: 30px auto 60px;
}
.auth h1 {
  font-size: 33px;
}
.auth .button {
  width: 100%;
}
.auth input {
  width: 100%;
}
.auth .eyebrow {
  margin-top: 12px;
}
.auth-note {
  font-size: 13px;
  color: #7a8571;
  text-align: center;
  margin: 16px 0;
}
.summary {
  display: flex;
  gap: 14px;
  margin: 22px 0;
}
.summary > div {
  background: white;
  border: 1px solid #d8e1d0;
  border-radius: 11px;
  padding: 16px 22px;
  flex: 1;
}
.summary strong {
  display: block;
  font-size: 28px;
  line-height: 1.2;
}
.summary span {
  font-size: 13px;
  color: #718064;
}
.history-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.history-card {
  display: block;
  text-align: left;
  width: 100%;
  cursor: pointer;
}
.history-card:hover {
  border-color: #819965;
}
.history-card h3 {
  font-size: 22px;
}
.history-card .mini-teams {
  display: flex;
  gap: 6px;
  margin-top: 18px;
}
.mini-teams span {
  height: 5px;
  flex: 1;
  background: #cbe5aa;
  border-radius: 10px;
}
.mini-teams span:nth-child(2) {
  background: #aac4ed;
}
.mini-teams span:nth-child(3) {
  background: #f1d382;
}
.loading {
  text-align: center;
  padding: 100px 20px;
  color: #7c8a70;
}
footer {
  border-top: 1px solid #dce4d4;
  max-width: 1190px;
  margin: auto;
  padding: 25px 0 40px;
  font-size: 12px;
  letter-spacing: 1px;
  font-weight: 800;
  color: #87937c;
  display: flex;
  justify-content: space-between;
}
footer span {
  font-weight: 400;
  letter-spacing: 0;
}
dialog {
  border: 1px solid #d7e2cc;
  border-radius: 16px;
  padding: 30px;
  width: min(630px, 94vw);
  max-height: 90vh;
  color: #1e3425;
  background: #fff;
  box-shadow: 0 25px 100px #0004;
}
dialog::backdrop {
  background: #101c1bb3;
  backdrop-filter: blur(3px);
}
dialog .close {
  position: absolute;
  right: 15px;
  top: 12px;
  background: transparent;
  border: 0;
  font-size: 27px;
  color: #6d7c62;
}
dialog h2 {
  padding-right: 20px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #19392c;
  color: white;
  padding: 13px 22px;
  border-radius: 9px;
  box-shadow: 0 6px 25px #0002;
  z-index: 20;
  display: none;
  max-width: 90vw;
  font-size: 14px;
}
#toast.show {
  display: block;
}
.form-error {
  color: #a1392d;
  font-size: 14px;
  margin: 12px 0;
}
.link-box {
  display: block;
  word-break: break-all;
  padding: 12px;
  background: #edf5e1;
  border: 1px solid #c8d7b8;
  border-radius: 8px;
  font-size: 14px;
}
.note-list {
  padding-left: 18px;
  font-size: 13px;
  color: #7a672e;
}
.review-list {
  display: grid;
  gap: 10px;
}
.review-item {
  padding: 14px;
  border: 1px solid #dce4d4;
  border-radius: 8px;
}
.review-item small {
  display: block;
  color: #7c8575;
}
.review-scores {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  margin-top: 10px;
}
.tab-content {
  animation: enter 0.2s ease;
}
@keyframes enter {
  from {
    opacity: 0.5;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.wide {
  grid-column: 1/-1;
}
.screen-note {
  font-size: 13px;
  color: #718165;
}
.full {
  width: 100%;
}
.divider {
  height: 1px;
  background: #e3eadc;
  margin: 24px 0;
}
input[type="date"] {
  border: 1px solid #ccd7c5;
  border-radius: 8px;
  padding: 10px;
  background: white;
  font: inherit;
  color: #233c2a;
}
.public-intro {
  background: #19392c;
  color: white;
  border-radius: 14px;
  padding: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.public-intro .eyebrow {
  color: #c9f96b;
}
.public-intro h1 {
  margin-bottom: 0;
}
.public-intro .pill {
  color: #daf6be;
  background: #315238;
  border-color: #517044;
}
.public-teams .team li {
  min-height: 75px;
}
.public-teams .team-top {
  padding: 23px;
}
.eval-shell {
  max-width: 760px;
  margin: auto;
}
.eval-shell .panel {
  padding: 28px;
}
.eval-player {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e5ebdf;
  padding: 16px 0;
  gap: 12px;
}
.eval-player:last-child {
  border: 0;
}
.eval-player h3 {
  margin: 0;
}
.eval-player small {
  color: #6b7f5f;
}
.section-title {
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #657957;
  margin: 24px 0 12px;
}
@media (max-width: 1050px) {
  .round-layout {
    grid-template-columns: 1fr;
  }
  .roster {
    max-height: 250px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 20px;
  }
  .teams {
    gap: 10px;
  }
  .team ul {
    padding: 0 12px;
  }
  .round-roster {
    margin-bottom: 0;
  }
  .season {
    display: none;
  }
}
@media (max-width: 650px) {
  .topbar {
    height: 86px;
    padding: 0 18px;
  }
  .brand {
    font-size: 16px;
    gap: 10px;
  }
  .brand small {
    font-size: 9px;
    letter-spacing: 2px;
  }
  .crest {
    width: 41px;
    height: 46px;
    font-size: 20px;
  }
  .top-actions a {
    font-size: 12px;
    padding: 7px 9px;
  }
  .top-actions {
    gap: 4px;
  }
  main {
    padding: 27px 18px 40px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .page-heading h1 {
    font-size: 34px;
  }
  .panel {
    padding: 19px;
  }
  .teams {
    grid-template-columns: 1fr;
  }
  .team-top {
    padding: 16px 20px;
  }
  .team li {
    min-height: 59px;
  }
  .team ul {
    padding: 0 20px;
  }
  .team .player-info b {
    font-size: 16px;
  }
  .team .player-info small {
    font-size: 13px;
  }
  .tabs {
    margin: 0 -18px 23px;
    padding: 0 10px;
  }
  .tabs button {
    padding: 12px 13px;
    font-size: 14px;
  }
  .summary {
    gap: 8px;
  }
  .summary > div {
    padding: 13px 10px;
  }
  .summary strong {
    font-size: 24px;
  }
  .summary span {
    font-size: 12px;
  }
  .form-grid,
  .history-grid {
    grid-template-columns: 1fr;
  }
  .roster {
    display: block;
  }
  .legend div {
    font-size: 10px;
  }
  .rating-options span {
    font-size: 10px;
  }
  .rating-options b {
    font-size: 18px;
  }
  .public-intro {
    padding: 22px;
    align-items: flex-start;
    gap: 12px;
    flex-direction: column;
  }
  .public-intro h1 {
    font-size: 31px;
  }
  footer {
    margin: 0 18px;
  }
  .auth {
    margin-top: 10px;
  }
  dialog {
    padding: 22px;
  }
  .table-wrap {
    margin: 0 -10px;
  }
  .panel-head {
    align-items: flex-start;
  }
  .panel-head h2 {
    font-size: 20px;
  }
  .actions {
    gap: 7px;
  }
  .button {
    padding: 10px 13px;
  }
  .eval-shell .panel {
    padding: 20px;
  }
}

.rating-options span {
  font-size: 12px;
}
.legend div {
  font-size: 12px;
}

.share-text {
  width: 100%;
  min-height: 350px;
  resize: vertical;
  padding: 14px;
  border: 1px solid #cbd6c6;
  border-radius: 8px;
  font: 14px/1.6 monospace;
  color: #19392c;
  background: #f8faf5;
}
.management-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.history-card .actions {
  margin-top: 14px;
}
.review-item.inactive {
  opacity: 0.65;
}
