:root {
  color-scheme: light;
  --ink: #182025;
  --muted: #5e6870;
  --line: #d7dde2;
  --panel: #ffffff;
  --panel-soft: #f6f8f9;
  --field: #e8f3ec;
  --court: #f4d37f;
  --court-line: rgba(24, 32, 37, 0.22);
  --good: #187d4e;
  --fault: #bb2d3b;
  --accent: #176fa6;
  --shadow: 0 18px 45px rgba(24, 32, 37, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #edf1f2;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
}

button,
input,
select {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.shell {
  min-height: 100vh;
  padding: 18px;
}

.auth-shell {
  align-items: center;
  background:
    linear-gradient(120deg, rgba(24, 32, 37, 0.78), rgba(23, 111, 166, 0.5)),
    url("https://images.unsplash.com/photo-1612872087720-bb876e2e67d1?auto=format&fit=crop&w=1800&q=80");
  background-position: center;
  background-size: cover;
  display: flex;
  min-height: 100vh;
  padding: 22px;
}

.login-panel {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 22px;
  margin: 0 auto;
  max-width: 430px;
  padding: 28px;
  width: 100%;
}

.login-panel h1 {
  font-size: 36px;
  line-height: 1;
  margin: 0 0 10px;
}

.eyebrow {
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 8px;
}

.muted {
  color: var(--muted);
  margin: 0;
}

.form-grid,
.setup-block,
.user-form {
  display: grid;
  gap: 12px;
}

.form-grid label,
.user-form label {
  color: var(--muted);
  display: grid;
  gap: 6px;
  font-weight: 700;
}

.form-grid input,
.setup-block input,
.setup-block select,
.setup-block textarea,
.user-form input,
.user-form select,
.user-form textarea {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  min-height: 44px;
  padding: 10px 12px;
  width: 100%;
}

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

.wide,
.avatar-drop {
  grid-column: 1 / -1;
}

.avatar-drop {
  align-items: center;
  background: var(--panel-soft);
  border: 2px dashed #b9c4cc;
  border-radius: 8px;
  color: var(--muted);
  display: grid;
  gap: 6px;
  justify-items: center;
  min-height: 150px;
  overflow: hidden;
  padding: 18px;
  position: relative;
  text-align: center;
}

.avatar-drop input {
  inset: 0;
  opacity: 0;
  position: absolute;
}

.avatar-preview {
  border-radius: 8px;
  height: 132px;
  object-fit: cover;
  width: 132px;
}

.primary-button,
.ghost-button,
.danger-button,
.primary-link {
  align-items: center;
  border-radius: 6px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  text-decoration: none;
}

.primary-button,
.primary-link {
  background: var(--accent);
  border: 0;
  color: #fff;
}

.ghost-button {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}

.danger-button {
  background: #fff0f1;
  border: 1px solid rgba(187, 45, 59, 0.35);
  color: var(--fault);
}

.compact {
  min-height: 36px;
  padding: 7px 10px;
}

.error {
  background: #fff0f1;
  border: 1px solid rgba(187, 45, 59, 0.3);
  border-radius: 6px;
  color: var(--fault);
  padding: 10px 12px;
}

.topbar {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin: 0 auto 14px;
  max-width: 1280px;
}

.brand h1 {
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1;
  margin: 0 0 5px;
}

.brand p {
  color: var(--muted);
  margin: 0;
}

.mode-switch {
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
}

.mode-switch a,
.small-button {
  border-radius: 6px;
  color: var(--ink);
  min-height: 42px;
  padding: 10px 14px;
  text-decoration: none;
}

.mode-switch a.active,
.small-button {
  background: var(--ink);
  color: #fff;
}

.small-button {
  border: 0;
}

.status {
  align-items: center;
  color: var(--muted);
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  min-width: 160px;
}

.status-dot {
  background: #c5ccd1;
  border-radius: 999px;
  display: inline-block;
  height: 10px;
  width: 10px;
}

.status.live .status-dot {
  background: var(--good);
}

.grid {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(300px, 0.9fr) minmax(480px, 1.4fr) minmax(300px, 0.9fr);
  margin: 0 auto;
  max-width: 1220px;
}

.registration-shell {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  inset: 0;
  overflow: hidden;
  position: fixed;
  width: 100%;
}

.registration-shell .topbar {
  flex: 0 0 auto;
  width: 100%;
}

.landscape-warning {
  align-items: center;
  background: var(--panel);
  color: var(--ink);
  display: none;
  flex-direction: column;
  gap: 10px;
  height: 100dvh;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.landscape-warning strong {
  font-size: 34px;
}

.landscape-warning span {
  color: var(--muted);
  font-size: 20px;
}

.registration-grid {
  align-items: start;
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  overflow: hidden;
  width: 100%;
  max-width: none;
  grid-template-rows: minmax(0, 1fr);
}

.registration-grid > .panel {
  height: 100%;
  max-height: none;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: scroll;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.registration-grid .panel-header {
  background: var(--panel);
  position: sticky;
  top: 0;
  z-index: 2;
}

.team-banner {
  background: #fff;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  flex: 0 0 auto;
  font-size: 24px;
  font-weight: 900;
  padding: 12px 14px;
  text-align: center;
}

.selected-action-player {
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.1;
  text-align: right;
}

.analysis-grid {
  grid-template-columns: minmax(300px, 0.85fr) minmax(430px, 1.25fr) minmax(330px, 0.9fr);
}

.analysis-shell {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  inset: 0;
  overflow: hidden;
  position: fixed;
  width: 100%;
}

.analysis-shell .topbar {
  flex: 0 0 auto;
  width: 100%;
}

.analysis-shell .analysis-grid {
  flex: 1 1 auto;
  max-width: none;
  min-height: 0;
  overflow: hidden;
  width: 100%;
}

.analysis-grid > .panel {
  height: 100%;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.analysis-grid .panel-header {
  background: var(--panel);
  position: sticky;
  top: 0;
  z-index: 2;
}

.start-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(520px, 1.2fr) minmax(330px, 0.8fr);
  margin: 0 auto;
  max-width: 1280px;
}

.docs-shell {
  display: grid;
  gap: 14px;
}

.docs-panel,
.about-panel {
  margin: 0 auto;
  max-width: 1060px;
  width: 100%;
}

.docs-content {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 14px;
}

.doc-section {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.doc-section h3,
.about-content h3 {
  margin: 0 0 8px;
}

.doc-section p,
.about-content p {
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.about-content {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.about-content a {
  color: var(--accent);
  font-weight: 800;
}

.setup-panel {
  grid-row: span 2;
}

.setup-grid {
  display: grid;
  gap: 14px;
  padding: 14px;
}

.setup-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.setup-block h3 {
  font-size: 17px;
  margin: 0;
}

.form-mode-button {
  justify-self: start;
}

.hidden-save {
  display: none;
}

.match-create-form.ready .hidden-save {
  display: inline-flex;
}

.modal-backdrop {
  align-items: center;
  background: rgba(24, 32, 37, 0.42);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 18px;
  position: fixed;
  z-index: 20;
}

.modal {
  background: var(--panel);
  border-radius: 8px;
  box-shadow: var(--shadow);
  max-height: min(720px, 92vh);
  max-width: 760px;
  overflow: auto;
  width: min(760px, 100%);
}

.club-list {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.club-edit-row {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr auto auto;
  padding: 10px;
}

.club-edit-row input {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  min-height: 42px;
  padding: 9px 10px;
  width: 100%;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-width: 0;
  overflow: hidden;
}

.panel-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 14px;
}

.panel-header h2 {
  font-size: 17px;
  margin: 0;
}

.panel-header span {
  color: var(--muted);
  font-size: 14px;
}

.roster {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.registration-roster {
  display: grid;
  gap: 6px;
  height: auto;
  min-height: auto;
  overflow: visible;
  padding-bottom: 28px;
}

.registration-roster .player-row {
  touch-action: pan-y;
}

.registration-grid .court,
.registration-grid .action-board {
  min-height: 0;
  overflow: visible;
}

.registration-grid .court {
  height: auto;
}

.player-row {
  align-items: center;
  background: var(--panel-soft);
  border: 1px solid transparent;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: 46px 1fr 78px;
  min-height: 56px;
  padding: 7px;
  text-align: left;
  width: 100%;
}

.player-row.on {
  background: #edf8f2;
  border-color: rgba(24, 125, 78, 0.35);
}

.manage-player {
  border-color: var(--line);
  grid-template-columns: 54px 54px 1fr;
}

.manage-player.selected {
  background: #fff7e7;
  border-color: #f2a51f;
}

.number-shirt {
  background: #f2a51f;
  color: #182025;
}

.row-avatar {
  border-radius: 8px;
  height: 46px;
  object-fit: cover;
  width: 46px;
}

.player-summary {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.player-summary strong,
.player-summary span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-summary span {
  color: var(--muted);
  font-size: 14px;
}

.number {
  align-items: center;
  background: var(--ink);
  border-radius: 6px;
  color: #fff;
  display: flex;
  font-weight: 800;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.player-row input {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  min-height: 40px;
  min-width: 0;
  padding: 8px 10px;
}

.registration-player-name {
  align-items: center;
  display: flex;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toggle {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  min-height: 40px;
}

.toggle.active {
  background: var(--good);
  border-color: var(--good);
  color: #fff;
}

.court {
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), var(--court-line) calc(50% - 1px), var(--court-line) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(0deg, transparent calc(33.33% - 1px), var(--court-line) calc(33.33% - 1px), var(--court-line) calc(33.33% + 1px), transparent calc(33.33% + 1px)),
    linear-gradient(0deg, transparent calc(66.66% - 1px), var(--court-line) calc(66.66% - 1px), var(--court-line) calc(66.66% + 1px), transparent calc(66.66% + 1px)),
    var(--court);
  border: 3px solid #ffffff;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, 1fr);
  min-height: 560px;
  padding: 14px;
}

.court-player {
  align-items: center;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(24, 32, 37, 0.16);
  border-radius: 8px;
  display: grid;
  grid-template-columns: 48px 1fr;
  min-height: 150px;
  padding: 12px;
  text-align: left;
}

.court-player.selected {
  background: #ffffff;
  border: 3px solid var(--accent);
  box-shadow: inset 0 0 0 2px rgba(23, 111, 166, 0.12);
}

.court-player strong {
  font-size: 20px;
  line-height: 1.1;
}

.court-player span {
  color: var(--muted);
}

.set-selector {
  align-items: center;
  background: #fff;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 14px;
  justify-content: center;
  padding: 12px 14px;
}

.set-selector strong {
  font-size: 18px;
  font-weight: 900;
}

.set-options {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(5, 48px);
}

.set-option {
  cursor: pointer;
}

.set-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.set-option span {
  align-items: center;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 7px;
  display: flex;
  font-size: 18px;
  font-weight: 800;
  height: 44px;
  justify-content: center;
}

.set-option.active span {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.action-board {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.action-card {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 88px 88px;
  padding: 10px;
}

.compact-actions .action-card {
  grid-template-columns: 1fr 96px 96px;
  min-height: 86px;
  padding: 9px;
}

.compact-actions .score-button {
  aspect-ratio: auto;
  min-height: 68px;
}

.action-title {
  align-items: center;
  display: flex;
  font-weight: 800;
}

.score-button {
  aspect-ratio: 1;
  border: 0;
  border-radius: 8px;
  color: #fff;
  display: grid;
  font-size: 18px;
  font-weight: 900;
  place-items: center;
}

.score-button.good {
  background: var(--good);
}

.score-button.fault {
  background: var(--fault);
}

.score-button.pulse {
  animation: scorePulse 0.34s ease-out;
}

.click-feedback {
  border-bottom: 1px solid var(--line);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  padding: 14px;
  text-align: center;
}

.click-feedback.good {
  background: var(--good);
}

.click-feedback.fault {
  background: var(--fault);
}

@keyframes scorePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(24, 32, 37, 0.32);
    transform: scale(1);
  }

  55% {
    box-shadow: 0 0 0 12px rgba(24, 32, 37, 0);
    transform: scale(1.08);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(24, 32, 37, 0);
    transform: scale(1);
  }
}

.empty {
  align-items: center;
  color: var(--muted);
  display: flex;
  min-height: 140px;
  padding: 20px;
}

.stats {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.stat-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.stat-row.positive {
  background: #edf8f2;
  border-color: rgba(24, 125, 78, 0.28);
}

.stat-row.neutral {
  background: #fff;
}

.stat-row.negative {
  background: #fff0f1;
  border-color: rgba(187, 45, 59, 0.28);
}

.stat-head,
.stat-line {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.stat-head strong {
  font-size: 16px;
}

.bar {
  background: #e5e9ec;
  border-radius: 999px;
  height: 9px;
  margin-top: 10px;
  overflow: hidden;
}

.bar span {
  background: var(--accent);
  display: block;
  height: 100%;
}

.event-list {
  display: grid;
  gap: 8px;
  max-height: 520px;
  overflow: auto;
  padding: 12px;
}

.event {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: 44px 1fr auto;
  padding: 9px;
}

.badge {
  border-radius: 6px;
  color: #fff;
  font-weight: 900;
  padding: 7px 9px;
}

.badge.good {
  background: var(--good);
}

.badge.fault {
  background: var(--fault);
}

.event small,
.percent {
  color: var(--muted);
}

.leaderboard {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.leader {
  align-items: center;
  background: #fff7e7;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: 44px 1fr auto;
  padding: 10px;
  text-align: left;
  width: 100%;
}

.leader.selected {
  background: #fff2d3;
  border: 3px solid var(--accent);
  box-shadow: inset 0 0 0 2px rgba(23, 111, 166, 0.12);
}

.player-detail-summary {
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 10px;
  justify-content: center;
  padding: 14px;
}

.player-detail-summary strong {
  font-size: 28px;
  font-weight: 900;
}

.player-detail-summary span {
  color: var(--muted);
  font-size: 18px;
}

.player-action-stats .stat-head strong {
  font-size: 20px;
}

.match-card {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.match-list-block {
  display: grid;
  gap: 10px;
}

.match-manage-card {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  grid-template-columns: 1fr auto;
  padding: 6px;
}

.match-manage-card.selected {
  background: #fff7e7;
  border-color: #f2a51f;
}

.match-manage-card small {
  color: var(--muted);
}

.match-row-button {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 38px;
  padding: 4px 6px;
  text-align: left;
}

.match-row-button:disabled {
  cursor: default;
}

.match-row-main {
  align-items: baseline;
  display: flex;
  gap: 8px;
  min-width: 0;
}

.match-row-main strong,
.match-row-main small {
  white-space: nowrap;
}

.match-row-main span,
.match-row-entry {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-row-entry {
  color: var(--muted);
  font-size: 13px;
}

.match-row-actions {
  display: flex;
  gap: 4px;
}

.icon-button {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  display: inline-flex;
  font-size: 16px;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.danger-icon {
  background: #fff0f1;
  color: var(--fault);
}

.match-entry-details {
  grid-column: 1 / -1;
}

.match-entry-details summary {
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  padding: 2px 6px;
}

.compact-empty {
  min-height: 70px;
  padding: 12px;
}

.assignment-control {
  color: var(--muted);
  display: grid;
  gap: 6px;
  font-weight: 800;
}

.assignment-control select {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  min-height: 42px;
  padding: 9px 10px;
  width: 100%;
}

.save-note {
  color: var(--good);
  font-weight: 900;
}

.match-card strong {
  font-size: 22px;
}

.match-card span {
  color: var(--muted);
}

.assigned-user {
  align-items: center;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 10px;
  padding: 10px;
}

.avatar {
  border-radius: 8px;
  height: 48px;
  object-fit: cover;
  width: 48px;
}

.avatar-fallback {
  align-items: center;
  background: var(--accent);
  color: #fff;
  display: flex;
  font-weight: 900;
  justify-content: center;
}

.user-list {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.user-card {
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: 48px 1fr;
  padding: 12px;
}

.user-card span,
.user-card small,
.user-card p {
  color: var(--muted);
  display: block;
  margin: 3px 0 0;
}

@media (max-width: 1050px) {
  .grid,
  .analysis-grid,
  .start-grid {
    grid-template-columns: 1fr;
  }

  .court {
    min-height: 480px;
  }
}

@media (max-width: 1400px) {
  .grid {
    gap: 10px;
    grid-template-columns: 280px minmax(430px, 1fr) 330px;
  }

  .start-grid {
    grid-template-columns: 1fr;
    max-width: 960px;
  }

  .setup-panel {
    grid-row: auto;
  }

  .setup-grid {
    gap: 10px;
    padding: 10px;
  }

  .setup-block {
    padding: 10px;
  }

  .shell {
    padding: 10px;
  }

  .panel-header {
    padding: 10px 12px;
  }

  .registration-player-name {
    font-size: 17px;
  }

  .player-row {
    grid-template-columns: 38px 1fr 64px;
    min-height: 48px;
    padding: 5px;
  }

  .manage-player {
    grid-template-columns: 44px 44px minmax(0, 1fr);
  }

  .number {
    border-radius: 6px;
    font-size: 16px;
    height: 34px;
    width: 34px;
  }

  .toggle {
    border-radius: 6px;
    font-size: 16px;
    min-height: 36px;
  }

  .roster {
    gap: 6px;
    padding: 8px;
  }

  .registration-roster {
    max-height: none;
  }

  .court {
    gap: 8px;
    min-height: 520px;
    padding: 10px;
  }

  .registration-grid .court {
    min-height: 0;
  }

  .court-player {
    min-height: 132px;
    padding: 10px;
  }

  .court-player strong {
    font-size: 22px;
  }

  .court-player span {
    font-size: 16px;
  }

  .action-board {
    gap: 8px;
    padding: 8px;
  }

  .compact-actions .action-card {
    grid-template-columns: 1fr 82px 82px;
    min-height: 76px;
  }

  .compact-actions .score-button {
    font-size: 17px;
    min-height: 58px;
  }

  .action-title {
    font-size: 17px;
  }

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

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

  .match-row-entry {
    font-size: 12px;
  }

  .match-entry-details {
    margin-top: -2px;
  }
}

@media (max-width: 720px) {
  .shell {
    padding: 10px;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .status {
    justify-content: flex-start;
  }

  .action-card {
    grid-template-columns: 1fr 72px 72px;
  }

  .court-player {
    grid-template-columns: 40px 1fr;
    min-height: 118px;
  }

  .user-form {
    grid-template-columns: 1fr;
  }
}

@media (orientation: portrait) {
  .registration-shell .topbar,
  .registration-shell .registration-grid {
    display: none;
  }

  .registration-shell .landscape-warning {
    display: flex;
  }
}
