.sort-control {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
}

.sort-control select {
  display: block;
  width: auto;
  max-width: 100%;
  min-width: 0;
}

.home-match-history {
  display: grid;
  gap: 14px;
}

.home-match-preview {
  overflow: hidden;
  border: 1px solid #dedbd2;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 30px #173a2b0c;
}

.home-match-details {
  padding: 12px 16px;
  background: #111;
  text-align: center;
  font-weight: 800;
  white-space: pre-line;
}

.match-schedule {
  display: block;
  color: #ff6b61;
  font-weight: 900;
}

.match-place {
  display: block;
  color: #fff;
}

.match-date > span:first-child {
  white-space: pre-line;
}

.home-match-actions {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: #111;
}

.preview-responses {
  display: flex;
  grid-column: 1 / -1;
  grid-row: 2;
  justify-content: center;
  gap: 8px;
}

.preview-responses .response-option.selected {
  box-shadow: 0 4px 0 #87908b, 0 7px 12px #0008;
}

.preview-responses .response-option {
  transform: translateY(0);
  box-shadow: 0 4px 0 #aeb4b0, 0 7px 12px #0008;
  transition: transform .08s ease, box-shadow .08s ease;
}

.preview-responses .response-option.selected.yes {
  border-color: #c7f153;
  box-shadow: 0 4px 0 #759b22, 0 7px 12px #0008;
}

.preview-responses .response-option.selected.no {
  border-color: #f4d7d0;
  box-shadow: 0 4px 0 #b77d73, 0 7px 12px #0008;
}

.preview-responses .response-option:active:not(:disabled) {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #87908b, 0 3px 6px #0007;
}

.home-match-actions .match-status {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
}

.home-match-actions .match-status::before {
  content: '';
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: #d9ff67;
}

.home-match-actions .match-status.registrations_open::before {
  background: #ffc45c;
}

.home-match-actions .match-status.completed::before {
  background: #8eaeff;
}

.home-match-actions .match-status.cancelled::before {
  background: #ff8f87;
}

.match-toggle {
  grid-column: 2;
  grid-row: 3;
  justify-self: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: #4f6fdc;
  color: #fff;
  font-size: 24px;
}

.match-toggle[aria-expanded="true"] {
  background: #4f6fdc;
}

.home-match-actions button:disabled {
  cursor: default;
  opacity: .7;
}

.home-match-preview .match-detail:empty {
  display: none;
}

.home-match-preview .match-detail .accordion-card {
  margin: 0;
  padding: 8px;
  border: 0;
  border-top: 1px solid #111;
  border-radius: 0;
  background: #111;
  box-shadow: none;
}

.home-match-preview .match-detail .accordion {
  border-color: #111;
}

.players .player {
  display: block;
}

.player-main,
.player-role {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.player-role {
  margin-top: 5px;
}

.player .response-time {
  margin-top: 5px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  font-style: italic;
  text-align: left;
}

.players .current-player {
  padding: 10px;
  border-radius: 10px;
  background: #fff3a6;
  color: #17251e;
}

.convocations .current-player .meta {
  color: #6b5600;
}

.player-role .admin-response {
  width: auto;
  min-width: 130px;
  margin-top: 0;
}

.convocations > summary {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 8px;
  background: #56376f;
  color: #fff;
  border-radius: 14px;
}

.convocations {
  border-top: 3px solid #8f69ad;
}

.convocations[open] > .accordion-body {
  background: #56376f;
  color: #fff;
}

.convocation-title {
  grid-column: 1 / -1;
  grid-row: 1;
  text-align: center;
}

.personal-summary-row {
  grid-column: 1 / -1;
  grid-row: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}

.personal-summary-row > span:first-child {
  grid-column: 1;
  justify-self: start;
  font-size: 12px;
  font-weight: 400;
}

.personal-summary-row .personal-status {
  grid-column: 2;
  justify-self: center;
}

.summary-state-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.summary-state-indicator::before {
  content: '';
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: #d9ff67;
}

.summary-state-indicator.waiting::before,
.summary-state-indicator.dirty::before {
  background: #ffc45c;
}

.summary-state-indicator.declined::before {
  background: #ff8f87;
}

.summary-state-indicator.unavailable::before {
  background: #d3d9dc;
}

.convocations[open] .personal-summary-row {
  display: none;
}

.convocations[open] > summary::after {
  grid-row: 1;
}

.convocations > summary::after {
  grid-column: 3;
  grid-row: 2;
  justify-self: end;
}

.convocation-totals {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0 16px;
}

.teams-section {
  border-top: 3px solid #5992be;
}

.teams-section > summary {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 8px;
  background: #28577c;
  color: #fff;
  border-radius: 14px;
}

.teams-title {
  grid-column: 1 / -1;
  grid-row: 1;
  text-align: center;
}

.teams-summary-row {
  grid-column: 1 / -1;
  grid-row: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}

.teams-summary-row .personal-team {
  grid-column: 1;
  justify-self: start;
}

.teams-summary-row .summary-right {
  grid-column: 2;
  justify-self: center;
  margin-left: 0;
}

.accordion > summary::after {
  content: '+';
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-left: 4px;
  border-radius: 50%;
  background: #17251e;
  color: #fff;
  font-size: 16px;
  line-height: 1;
  transform: none;
  transition: none;
}

.accordion[open] > summary::after {
  content: '−';
  transform: none;
}

.teams-section > summary::after {
  grid-column: 3;
  grid-row: 2;
  justify-self: end;
}

.teams-section[open] > .accordion-body {
  background: #28577c;
  color: #fff;
}

.convocations .meta,
.teams-section .meta {
  color: #eef2f4;
}

.convocations .badge,
.teams-section .badge {
  color: #17251e;
}

.convocations .response-time {
  color: #eef2f4;
}

.teams-section .team {
  border: 1px solid #5992be;
  background: #28577c;
  color: #fff;
}

.teams-section .team > b {
  display: block;
  text-align: center;
}

.teams-section .team-player {
  color: #fff;
}

.convocations > summary::after,
.teams-section > summary::after {
  background: #fff;
  color: #17251e;
}

.primary-response {
  margin: 8px 12px 16px;
  padding: 16px;
  border: 1px solid #d9e5c2;
  border-radius: 14px;
  background: #f2f7e8;
}

.primary-response h3 {
  margin-bottom: 12px;
}

.primary-response .actions {
  margin-top: 0;
}

@media (max-width: 560px) {
  .preview-responses {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .preview-responses .response-option {
    min-width: 0;
    padding-inline: 8px;
  }

  .primary-response {
    margin-inline: 8px;
    padding: 12px;
  }

  .primary-response h3 {
    font-size: clamp(14px, 4vw, 18px);
  }

  .primary-response .response-option {
    padding-inline: 10px;
  }

  .convocations > summary::after {
    grid-column: 3;
    grid-row: 2;
    align-self: center;
  }

  .convocations .summary-right {
    grid-column: 1;
    margin-left: 0;
    justify-content: flex-start;
  }

  .convocations .accordion-body {
    padding-inline: 8px;
  }

  .sort-control {
    margin-right: 0;
  }
}
.eyebrow{display:none}
header{justify-content:center;text-align:center;position:relative;align-items:center}
header h1{margin:0}
header .ghost{position:absolute;right:max(20px,calc((100vw - 900px)/2));top:28px}
.header-user{position:absolute;right:max(20px,calc((100vw - 900px)/2));top:28px;display:flex;align-items:center;gap:12px}.header-user #header-user-name{font-size:14px;font-weight:700;white-space:nowrap}.header-user .ghost{position:static}@media(max-width:700px){header{padding-top:70px}.header-user{top:14px;right:14px}.header-user #header-user-name{font-size:12px}}
.header-user{z-index:6}.header-user #user-menu{width:46px;height:46px;padding:0;border:2px solid #ffffff80;background:#fff;color:#173a2b;font-size:15px;letter-spacing:.04em;box-shadow:0 3px 0 #0b2519}.header-user #logout{position:absolute;right:0;top:calc(100% + 9px);white-space:nowrap;background:#fff;color:#173a2b;border:1px solid #cbd4cf;box-shadow:0 8px 20px #0005}.header-user #user-menu[aria-expanded="true"]{background:var(--lime)}@media(max-width:700px){header{padding-top:22px}.header-user{top:14px;right:14px}.header-user #user-menu{width:42px;height:42px}}
#app>h2{text-align:center}
.device-approved{background:#d9ff67}.device-pending{background:#ffe3a8}.device-none{background:#edf0ed;color:#59635e}
.login details{margin-top:18px;padding-top:14px;border-top:1px solid #eee}.login summary{cursor:pointer;font-weight:800}.login details button{width:100%}
