:root {
  color-scheme: light;
  --green: #00754e;
  --green-dark: #063f31;
  --green-deep: #052e24;
  --mint: #e7f4ed;
  --ink: #17211d;
  --muted: #65716c;
  --line: #d8e1dc;
  --paper: #f3f6f3;
  --panel: #fbfdfb;
  --white: #ffffff;
  --gold: #d0a12e;
  --gold-soft: #fff4ce;
  --danger: #b93632;
  --danger-bg: #fff0ef;
  --blue: #2b5f89;
  --shadow: 0 18px 45px rgba(16, 41, 31, 0.1);
  --soft-shadow: 0 10px 28px rgba(16, 41, 31, 0.08);
  --green-ring: rgba(0, 117, 78, 0.16);
  --club-surface: #f8fbf8;
}

/* Programfelvétel: a később érkező általános dialog-card szabályok után is maradjon kontrasztos. */
#coachProgramDialog .coach-program-dialog-card {
  border: 2px solid rgba(18, 237, 121, 0.64);
  border-radius: 10px;
  color: #f4fbf6;
  background: #02130f;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.68);
}

#coachProgramDialog .coach-program-dialog-card h3,
#coachProgramDialog .coach-program-dialog-card label,
#coachProgramDialog .coach-program-dialog-card .dialog-subtitle,
#coachProgramDialog .coach-program-dialog-card .dialog-form-note {
  color: #f4fbf6;
}

#coachProgramDialog .coach-program-dialog-card input,
#coachProgramDialog .coach-program-dialog-card select,
#coachProgramDialog .coach-program-dialog-card textarea {
  border: 2px solid rgba(126, 204, 172, 0.42);
  color: #041a12;
  background: #f5faf7;
}

#coachProgramDialog .coach-program-dialog-card input:focus,
#coachProgramDialog .coach-program-dialog-card select:focus,
#coachProgramDialog .coach-program-dialog-card textarea:focus {
  border-color: #12ed79;
  box-shadow: 0 0 0 3px rgba(18, 237, 121, 0.18);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(0, 117, 78, 0.07) 0, rgba(0, 117, 78, 0) 260px),
    var(--paper);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(300px, 350px) minmax(0, 1fr);
}

.app-shell.is-player-focus {
  grid-template-columns: minmax(0, 1fr);
}

.app-shell.is-player-focus .sidebar,
.app-shell.is-player-focus .topbar,
.app-shell.is-player-focus .stats-grid,
.app-shell.is-player-focus .home-state,
.app-shell.is-player-focus .home-team-dashboard {
  display: none;
}

.app-shell.is-player-focus .workspace {
  min-height: 100vh;
  padding: 26px;
  background:
    linear-gradient(180deg, rgba(5, 46, 36, 0.96), rgba(3, 28, 24, 0.98)),
    var(--green-deep);
}

.app-shell.is-player-focus .detail-panel {
  min-height: calc(100vh - 52px);
  border-color: rgba(126, 204, 172, 0.24);
  background: transparent;
  box-shadow: none;
}

.app-shell.is-player-focus .player-detail {
  min-height: calc(100vh - 58px);
}

.app-shell.is-coach-focus,
.app-shell.is-payment-focus {
  grid-template-columns: minmax(0, 1fr);
}

.app-shell.is-coach-focus .sidebar,
.app-shell.is-coach-focus .topbar,
.app-shell.is-coach-focus .stats-grid,
.app-shell.is-coach-focus .task-reminder-banner,
.app-shell.is-coach-focus .detail-layout,
.app-shell.is-payment-focus .sidebar,
.app-shell.is-payment-focus .topbar,
.app-shell.is-payment-focus .stats-grid,
.app-shell.is-payment-focus .task-reminder-banner,
.app-shell.is-payment-focus .detail-layout {
  display: none !important;
}

.app-shell.is-coach-focus .workspace,
.app-shell.is-payment-focus .workspace {
  min-height: 100vh;
  padding: 26px;
  background:
    linear-gradient(180deg, rgba(5, 46, 36, 0.96), rgba(0, 13, 10, 0.98)),
    var(--green-deep);
}

.app-shell[hidden],
.login-screen[hidden] {
  display: none;
}

.login-screen {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
  background:
    linear-gradient(140deg, rgba(5, 46, 36, 0.96) 0%, rgba(0, 117, 78, 0.9) 52%, rgba(243, 246, 243, 0.96) 52%),
    var(--paper);
}

.login-card {
  display: grid;
  gap: 20px;
  width: min(520px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 8px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(5, 46, 36, 0.28);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.login-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  min-width: 150px;
  min-height: 62px;
  border-radius: 8px;
  padding: 10px;
  background: var(--green-deep);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.login-logo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 46px;
  object-fit: contain;
}

.login-brand h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.login-copy {
  display: grid;
  gap: 8px;
  padding-top: 4px;
}

.login-copy h2 {
  max-width: 11ch;
  font-size: clamp(2rem, 6vw, 3.2rem);
  line-height: 0.98;
}

.login-copy p:last-child {
  max-width: 44ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.login-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 8px;
  padding: 13px;
  background: var(--club-surface);
}

.login-status span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.35;
}

.login-form {
  grid-template-columns: 1fr;
  background: var(--white);
}

.auth-mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-column: 1 / -1;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px;
  background: var(--club-surface);
}

.auth-mode-switch[hidden] {
  display: none;
}

.auth-mode-switch button {
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  color: var(--green-deep);
  background: transparent;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.auth-mode-switch button.is-active {
  color: var(--white);
  background: var(--green-deep);
}

.auth-mode-hint {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.45;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 100vh;
  padding: 24px 18px 24px 94px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--white);
  background: var(--green-deep);
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.07);
}

.club-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 132px;
  min-width: 132px;
  min-height: 56px;
  border-radius: 8px;
  padding: 9px;
  background: var(--green-deep);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.club-logo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 42px;
  object-fit: contain;
}

.brand-copy {
  min-width: 0;
}

.sidebar .eyebrow,
.sidebar label {
  color: rgba(255, 255, 255, 0.72);
}

.sidebar h1 {
  color: var(--white);
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0;
  font-size: clamp(1.45rem, 2vw, 1.85rem);
  line-height: 1.05;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.35rem, 2.2vw, 2.05rem);
  line-height: 1.1;
}

h3 {
  margin-bottom: 0;
  font-size: 1.28rem;
  line-height: 1.2;
}

h4 {
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.search-wrap {
  display: grid;
  gap: 8px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--ink);
  background: var(--white);
  outline: none;
}

.sidebar input {
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.sidebar input::placeholder {
  color: rgba(255, 255, 255, 0.52);
}

.sidebar input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(208, 161, 46, 0.18);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(17, 107, 66, 0.13);
}

textarea {
  resize: vertical;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip,
.tab {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  background: var(--white);
  font-size: 0.86rem;
  font-weight: 800;
}

.chip.is-active,
.tab.is-active {
  border-color: var(--green);
  color: var(--green);
  background: var(--mint);
}

.sidebar .chip {
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.06);
}

.sidebar .chip.is-active {
  border-color: var(--gold);
  color: var(--green-deep);
  background: var(--gold-soft);
}

.team-browser {
  display: grid;
  gap: 9px;
}

.team-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 900;
}

.team-toggle.is-open {
  border-color: rgba(208, 161, 46, 0.85);
  color: var(--green-deep);
  background: var(--gold-soft);
}

.team-filter-list {
  display: grid;
  gap: 7px;
  max-height: 260px;
  overflow: auto;
  padding-right: 2px;
}

.team-filter-list[hidden] {
  display: none;
}

.team-club-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.team-club-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  min-height: 38px;
  border: 1px solid rgba(126, 204, 172, 0.2);
  border-radius: 8px;
  padding: 8px 10px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(0, 0, 0, 0.18);
  font-weight: 900;
  text-align: left;
}

.team-club-tab span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.team-club-tab strong {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 22px;
  border-radius: 999px;
  color: var(--green-deep);
  background: rgba(255, 255, 255, 0.76);
  font-size: 0.72rem;
}

.team-club-tab.is-active {
  border-color: rgba(18, 237, 121, 0.66);
  color: #12ed79;
  background: rgba(18, 237, 121, 0.12);
}

.team-club-tab.is-active strong {
  background: #12ed79;
}

.team-club-panel {
  display: grid;
  gap: 7px;
  border: 1px solid rgba(126, 204, 172, 0.14);
  border-radius: 8px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.1);
}

.team-club-panel > span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.team-filter-empty {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
}

.team-filter-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  padding: 8px 10px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.055);
  text-align: left;
}

.team-filter-main {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.team-filter-main > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 850;
}

.team-filter-icon {
  display: inline-grid;
  place-items: center;
  width: 30px;
  min-width: 30px;
  height: 30px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.68rem;
  font-weight: 1000;
  letter-spacing: 0;
  line-height: 1;
}

.team-filter-item.is-active .team-filter-icon {
  color: #052e24;
  background: #12ed79;
}

.team-filter-item strong {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 24px;
  border-radius: 999px;
  color: var(--green-deep);
  background: rgba(255, 255, 255, 0.78);
  font-size: 0.76rem;
}

.team-filter-item.is-active {
  border-color: rgba(18, 237, 121, 0.58);
  color: #12ed79;
  background: rgba(18, 237, 121, 0.12);
}

.team-filter-item.is-active strong {
  color: var(--green-deep);
  background: #12ed79;
}

.sidebar-tools {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 30;
  display: grid;
  gap: 10px;
  align-content: center;
  width: 74px;
  height: 100vh;
  padding: 120px 10px 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(7, 22, 30, 0.9);
  backdrop-filter: blur(8px);
}

.sidebar-tool-action {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  min-height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  padding: 0;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.055);
  font-size: 0;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.sidebar-tool-action::before {
  content: attr(data-menu-icon);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
  font-weight: 950;
  letter-spacing: 0;
}

.sidebar-tool-action::after {
  content: attr(data-menu-label);
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  z-index: 5;
  min-width: 220px;
  max-width: 300px;
  transform: translateY(-50%) translateX(-8px);
  border: 1px solid rgba(126, 204, 172, 0.22);
  border-radius: 8px;
  padding: 14px 16px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(37, 51, 63, 0.98);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  font-size: 0.95rem;
  line-height: 1.35;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease;
}

.sidebar-tool-action:hover::after,
.sidebar-tool-action:focus-visible::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.sidebar-tool-action:hover,
.sidebar-tool-action.is-active {
  border-color: rgba(18, 237, 121, 0.58);
  color: #12ed79;
  background: rgba(18, 237, 121, 0.12);
}

.sidebar-tool-action:hover::before,
.sidebar-tool-action.is-active::before {
  color: #06261d;
  background: #12ed79;
}

.player-list {
  display: grid;
  gap: 10px;
  overflow: auto;
  padding-right: 2px;
}

.player-card {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  text-align: left;
  background: var(--white);
}

.sidebar .player-card {
  border-color: rgba(255, 255, 255, 0.13);
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
}

.player-card-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  min-width: 0;
}

.player-card-copy {
  min-width: 0;
}

.player-card.is-active {
  border-color: var(--green);
  box-shadow: inset 4px 0 0 var(--green);
}

.sidebar .player-card.is-active {
  border-color: rgba(208, 161, 46, 0.9);
  background: rgba(255, 255, 255, 0.13);
  box-shadow: inset 4px 0 0 var(--gold);
}

.player-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}

.player-card span {
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.35;
}

.sidebar .player-card span {
  color: rgba(255, 255, 255, 0.78);
}

.player-card-copy strong,
.player-card-copy span {
  overflow-wrap: anywhere;
}

.player-card-copy .risk-pill {
  width: fit-content;
  margin-top: 7px;
}

.sidebar .player-card .risk-pill.low {
  color: #063f31;
  background: #bff7d8;
}

.sidebar .player-card .risk-pill.medium {
  color: #2c1d00;
  background: #ffd86a;
}

.sidebar .player-card .risk-pill.high {
  color: #ffffff;
  background: #b93632;
}

.avatar {
  display: inline-grid;
  place-items: center;
  width: 42px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green);
  background: var(--mint);
  font-size: 0.86rem;
  font-weight: 950;
  letter-spacing: 0;
}

.avatar-large {
  width: 76px;
  font-size: 1.25rem;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-fallback {
  box-shadow: inset 0 0 0 2px rgba(17, 107, 66, 0.08);
}

.workspace {
  min-width: 0;
  padding: 30px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.86) 0, rgba(255, 255, 255, 0) 420px),
    transparent;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--soft-shadow);
}

.task-reminder-banner {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(420px, 1.55fr) minmax(170px, 0.42fr);
  gap: 16px;
  align-items: center;
  margin: -8px 0 22px;
  border: 1px solid rgba(255, 190, 66, 0.55);
  border-left: 5px solid #ffbf3f;
  border-radius: 8px;
  padding: 14px 16px;
  color: #102019;
  background: linear-gradient(135deg, #fff6d5, #fef8e8);
  box-shadow: 0 14px 28px rgba(100, 73, 18, 0.16);
}

.task-reminder-banner[hidden] {
  display: none;
}

.task-reminder-head,
.task-reminder-card {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.task-reminder-head span {
  color: #8a5a00;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0;
}

.task-reminder-head strong {
  color: #102019;
  font-size: 1.08rem;
  font-weight: 1000;
  overflow-wrap: anywhere;
}

.task-reminder-head small,
.task-reminder-card small {
  color: rgba(16, 32, 25, 0.7);
  font-weight: 850;
}

.task-reminder-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  min-width: 0;
}

.task-reminder-card {
  border: 1px solid rgba(138, 90, 0, 0.18);
  border-left: 5px solid rgba(138, 90, 0, 0.34);
  border-radius: 8px;
  padding: 12px 12px 12px 14px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 18px rgba(100, 73, 18, 0.1);
}

.task-reminder-card.task-type-motoric {
  border-color: rgba(0, 117, 78, 0.3);
  border-left-color: #00754e;
  background: linear-gradient(135deg, rgba(236, 255, 245, 0.96), rgba(255, 255, 255, 0.88));
}

.task-reminder-card.task-type-orthopedic {
  border-left-color: #1581c4;
}

.task-reminder-card.task-type-classification {
  border-left-color: #8a5a00;
}

.task-reminder-card.task-type-report {
  border-left-color: #5b54c8;
}

.task-reminder-due,
.task-reminder-title {
  min-width: 0;
  overflow-wrap: anywhere;
}

.task-reminder-due {
  justify-self: start;
  border-radius: 999px;
  padding: 4px 8px;
  color: #06462f;
  background: rgba(0, 117, 78, 0.12);
  font-size: 0.76rem;
  font-weight: 950;
  line-height: 1.2;
}

.task-reminder-title {
  color: #102019;
  font-size: 1rem;
  font-weight: 1000;
  line-height: 1.24;
}

.task-reminder-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.task-reminder-actions > * {
  flex: 1 1 150px;
}

.toolbar,
.profile-actions,
.dialog-actions,
.data-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.view-preview-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid rgba(0, 117, 78, 0.18);
  border-radius: 8px;
  padding: 6px 8px 6px 11px;
  color: var(--green-dark);
  background: var(--mint);
  font-size: 0.82rem;
  font-weight: 900;
}

.view-preview-control[hidden] {
  display: none;
}

.view-preview-control select {
  min-height: 30px;
  border-color: rgba(0, 117, 78, 0.24);
  background: rgba(255, 255, 255, 0.86);
  font-size: 0.84rem;
  font-weight: 850;
}

.view-preview-active .view-preview-control {
  border-color: rgba(255, 191, 63, 0.6);
  color: #7a5200;
  background: #fff6d5;
}

.primary-action,
.ghost-action,
.danger-action,
.icon-action,
.circle-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 10px 14px;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  overflow-wrap: anywhere;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease, transform 140ms ease;
}

.primary-action:hover,
.ghost-action:hover,
.danger-action:hover,
.icon-action:hover,
.circle-action:hover {
  transform: translateY(-1px);
}

.primary-action {
  color: var(--white);
  background: var(--green);
  box-shadow: 0 8px 18px rgba(0, 117, 78, 0.18);
}

.primary-action:hover {
  background: var(--green-dark);
}

.ghost-action,
.icon-action {
  border-color: var(--line);
  color: var(--ink);
  background: var(--white);
}

.ghost-action:hover,
.icon-action:hover {
  border-color: rgba(0, 117, 78, 0.32);
  background: var(--panel);
}

.toolbar .ghost-action.is-active {
  border-color: rgba(18, 237, 121, 0.58);
  color: var(--green);
  background: var(--mint);
}

.top-signout {
  border-color: rgba(185, 54, 50, 0.22);
  color: var(--danger);
  background: #fffafa;
}

.top-signout:hover {
  border-color: rgba(185, 54, 50, 0.34);
  background: var(--danger-bg);
}

.danger-action {
  border-color: #f0c8c5;
  color: var(--danger);
  background: var(--danger-bg);
}

.circle-action {
  display: grid;
  place-items: center;
  width: 40px;
  padding: 0;
  color: var(--muted);
  background: var(--white);
  border-color: var(--line);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.stat-tile {
  position: relative;
  overflow: hidden;
  min-height: 96px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.stat-tile::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--green);
  content: "";
}

.stat-tile span {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.stat-tile strong {
  display: block;
  margin-top: 10px;
  font-size: 2rem;
  line-height: 1;
}

.stat-tile.accent {
  border-color: #efdca7;
  background: var(--gold-soft);
}

.stat-tile.accent::before {
  background: var(--gold);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  min-width: 0;
}

.detail-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.detail-panel {
  min-height: 560px;
}

.empty-state {
  display: grid;
  place-items: center;
  gap: 18px;
  min-height: 560px;
  padding: 32px;
  text-align: center;
}

.home-state {
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: 560px;
  padding: 26px;
  color: rgba(255, 255, 255, 0.9);
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.68fr);
  gap: 18px;
  align-items: stretch;
  position: relative;
  overflow: hidden;
  min-width: 0;
  min-height: 560px;
  border: 1px solid rgba(216, 188, 107, 0.24);
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(90deg, rgba(1, 12, 10, 0.2), rgba(1, 12, 10, 0.38) 44%, rgba(1, 12, 10, 0.82) 100%),
    linear-gradient(180deg, rgba(1, 12, 10, 0.12), rgba(1, 12, 10, 0.72)),
    url("assets/kelen-home-background.png");
  background-position: center 42%;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035), 0 24px 80px rgba(0, 0, 0, 0.28);
}

.home-hero[hidden] {
  display: none;
}

.home-hero.is-poster-only {
  grid-template-columns: 1fr;
  min-height: clamp(680px, 78vh, 1040px);
  padding: 0;
  background:
    linear-gradient(90deg, rgba(1, 9, 8, 0.72), rgba(1, 9, 8, 0.08) 34%, rgba(1, 9, 8, 0.08) 66%, rgba(1, 9, 8, 0.72)),
    url("assets/kelen-home-background.png");
  background-color: #020605;
  background-position: center top;
  background-size: contain;
  background-repeat: no-repeat;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 18%, rgba(216, 188, 107, 0.22), transparent 28%),
    radial-gradient(circle at 82% 70%, rgba(18, 237, 121, 0.14), transparent 34%);
  pointer-events: none;
}

.home-hero > * {
  position: relative;
  z-index: 1;
}

.home-hero.has-team-dashboard {
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
  padding: 18px;
  background-size: cover;
}

.home-hero.has-team-dashboard .home-hero-copy {
  display: none;
}

.home-hero-copy,
.home-team-players {
  grid-column: 2;
  min-width: 0;
  border: 1px solid rgba(126, 204, 172, 0.24);
  border-radius: 8px;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(9, 56, 46, 0.72), rgba(3, 28, 24, 0.94)),
    rgba(3, 28, 24, 0.9);
  backdrop-filter: blur(3px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.home-hero.has-team-dashboard .home-team-players {
  grid-column: 1;
}

.home-hero.is-poster-only .home-team-players {
  display: none;
}

.home-hero-copy h3 {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.96);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.02;
}

.home-hero-copy p:last-child {
  max-width: 58ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.55;
}

.home-team-players {
  display: grid;
  gap: 10px;
  align-content: start;
}

.home-team-dashboard,
.home-player-section {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.team-view-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
  order: 1;
  padding: 12px;
  border: 1px solid rgba(126, 204, 172, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.team-view-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid rgba(126, 204, 172, 0.26);
  border-radius: 8px;
  padding: 9px 14px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.055);
  font-weight: 900;
}

.team-view-icon {
  display: inline-grid;
  place-items: center;
  width: 30px;
  min-width: 30px;
  height: 30px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.09);
  font-size: 0.68rem;
  font-weight: 1000;
  letter-spacing: 0;
  line-height: 1;
}

.team-view-button:hover,
.team-view-button.is-active {
  border-color: rgba(18, 237, 121, 0.72);
  color: #12ed79;
  background: rgba(18, 237, 121, 0.14);
}

.team-view-button:hover .team-view-icon,
.team-view-button.is-active .team-view-icon {
  color: #052e24;
  background: #12ed79;
}

.team-programs-panel {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.program-calendar-panel {
  display: grid;
  gap: 16px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
}

.program-calendar-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.program-calendar-toolbar > div:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.program-calendar-toolbar p,
.program-calendar-toolbar strong,
.program-calendar-toolbar span {
  margin: 0;
}

.program-calendar-toolbar strong {
  color: var(--ink);
  font-size: 1.08rem;
}

.program-calendar-toolbar span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

/* A fejléc leíró span-szabálya ne írja felül a műveleti gombok kontrasztját. */
.program-calendar-actions .primary-action,
.program-calendar-actions .primary-action span,
.program-calendar-actions .primary-action i {
  color: var(--white);
}

.program-calendar-actions {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.program-calendar-actions label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.program-calendar-actions select {
  min-width: 170px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 30px 7px 9px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  font-weight: 750;
}

.program-calendar-actions select:focus {
  border-color: var(--green);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(8, 122, 85, 0.12);
}

.program-calendar-view-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.program-calendar-view-toolbar > button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--muted);
  background: var(--white);
  font-size: 0.8rem;
  font-weight: 850;
  cursor: pointer;
}

.program-calendar-view-toolbar > button:hover,
.program-calendar-view-toolbar > button.is-active {
  border-color: var(--green);
  color: var(--green);
  background: var(--mint);
}

.program-calendar-period-navigation {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.program-calendar-period-navigation strong {
  min-width: 180px;
  color: var(--ink);
  text-align: center;
  font-size: 0.9rem;
}

.program-calendar-period-list {
  display: grid;
  gap: 14px;
}

.program-calendar-month-block {
  display: grid;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px;
  background: var(--club-surface);
}

.program-calendar-month-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.program-calendar-month-heading strong {
  color: var(--ink);
  font-size: 0.96rem;
}

.program-calendar-month-heading span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.calendar-task-dialog-card {
  width: min(700px, calc(100vw - 28px));
}

.calendar-entry-type-card {
  width: min(620px, calc(100vw - 28px));
}

.calendar-entry-type-options {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.calendar-entry-type-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  color: var(--ink);
  background: var(--club-surface);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.calendar-entry-type-option:hover,
.calendar-entry-type-option:focus-visible {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(8, 122, 85, 0.14);
  outline: none;
  transform: translateY(-1px);
}

.calendar-entry-type-option > svg {
  flex: 0 0 auto;
  width: 25px;
  height: 25px;
  color: var(--green);
}

.calendar-entry-type-option > span {
  display: grid;
  gap: 6px;
}

.calendar-entry-type-option strong {
  color: var(--ink);
  font-size: 1rem;
}

.calendar-entry-type-option small {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

@media (max-width: 620px) {
  .calendar-entry-type-options {
    grid-template-columns: 1fr;
  }
}

#calendarTaskDialog .calendar-task-audience,
#calendarTaskDialog .calendar-task-targets {
  display: grid;
  gap: 9px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--club-surface);
}

#calendarTaskDialog .calendar-task-audience legend {
  padding: 0 5px;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 850;
}

#calendarTaskDialog .coach-program-audience-options,
#calendarTaskDialog .coach-program-target-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

#calendarTaskDialog .coach-program-audience-options label,
#calendarTaskDialog .coach-program-target-option {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px;
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
}

#calendarTaskDialog .coach-program-audience-options input,
#calendarTaskDialog .coach-program-target-option input {
  width: 16px;
  min-width: 16px;
  min-height: 16px;
  margin: 2px 0 0;
  accent-color: var(--green);
}

#calendarTaskDialog .calendar-task-audience small,
#calendarTaskDialog .coach-program-targets-head span,
#calendarTaskDialog .coach-program-target-option small,
#calendarTaskDialog .coach-program-target-loading {
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.4;
}

#calendarTaskDialog .coach-program-targets-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

#calendarTaskDialog .coach-program-targets-head > div:first-child,
#calendarTaskDialog .coach-program-target-option > span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

#calendarTaskDialog .coach-program-targets-head strong,
#calendarTaskDialog .coach-program-target-option strong {
  color: var(--ink);
  font-size: 0.8rem;
}

#calendarTaskDialog .coach-program-quick-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

#calendarTaskDialog .coach-program-quick-actions button {
  min-height: 29px;
  border: 1px solid rgba(8, 122, 85, 0.35);
  border-radius: 6px;
  padding: 5px 7px;
  color: var(--green);
  background: var(--white);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 850;
  cursor: pointer;
}

#calendarTaskDialog .coach-program-quick-actions button:hover,
#calendarTaskDialog .coach-program-quick-actions button:focus-visible,
#calendarTaskDialog .coach-program-quick-actions button.is-active {
  border-color: var(--green);
  color: var(--white);
  background: var(--green);
  outline: none;
}

#calendarTaskDialog .coach-program-target-loading {
  margin: 0;
}

@media (max-width: 680px) {
  #calendarTaskDialog .coach-program-audience-options,
  #calendarTaskDialog .coach-program-target-options {
    grid-template-columns: 1fr;
  }

  #calendarTaskDialog .coach-program-targets-head {
    align-items: stretch;
    flex-direction: column;
  }

  #calendarTaskDialog .coach-program-quick-actions {
    justify-content: flex-start;
  }
}

.calendar-task-detail-body {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.calendar-task-detail-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  white-space: pre-wrap;
}

.calendar-task-status {
  width: max-content;
  border: 1px solid rgba(208, 161, 46, 0.35);
  border-radius: 999px;
  padding: 5px 9px;
  color: #8b6200;
  background: var(--gold-soft);
  font-size: 0.78rem;
  font-weight: 850;
}

.calendar-task-status.is-complete {
  border-color: rgba(8, 122, 85, 0.3);
  color: var(--green);
  background: var(--mint);
}

#calendarTaskDialog::backdrop {
  background: rgba(0, 12, 9, 0.82);
  backdrop-filter: blur(5px);
}

.program-calendar-panel > [data-coach-calendar-context="program"] {
  min-width: 0;
}

.program-calendar-privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  border: 1px solid rgba(8, 122, 85, 0.2);
  border-radius: 7px;
  padding: 10px 12px;
  color: var(--muted);
  background: rgba(8, 122, 85, 0.06);
  font-size: 0.78rem;
  line-height: 1.45;
}

.program-calendar-privacy-note svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  color: var(--green);
}

/* Sportorvosi időpontok: külön, rövid foglalási felület technikai vezetőknek és szülőknek. */
#sportMedicalPanel {
  display: grid;
  gap: 16px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
}

.sport-medical-hero {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  min-width: 0;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.sport-medical-hero > div:nth-child(2) {
  display: grid;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
}

.sport-medical-hero h3,
.sport-medical-hero p,
.sport-medical-hero span {
  margin: 0;
}

.sport-medical-hero h3 {
  color: var(--ink);
}

.sport-medical-hero > div:nth-child(2) > span,
.sport-medical-parent-note,
.sport-medical-manager-toolbar p,
.sport-medical-session-note,
.sport-medical-session-meta,
.sport-medical-booking-roster > p {
  color: var(--muted);
  line-height: 1.45;
}

.sport-medical-manager-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(8, 122, 85, 0.22);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(8, 122, 85, 0.06);
}

.sport-medical-manager-toolbar p,
.sport-medical-parent-note {
  margin: 0;
  font-size: 0.84rem;
}

.sport-medical-manager-note {
  margin: 0;
  border: 1px solid rgba(43, 95, 137, 0.18);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--muted);
  background: rgba(43, 95, 137, 0.06);
  line-height: 1.45;
}

.parent-payment-readonly,
.parent-payment-readonly-note {
  display: grid;
  gap: 3px;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.parent-payment-readonly-note {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.sport-medical-session-section {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.sport-medical-session-section > .section-heading {
  margin: 0;
}

.sport-medical-session-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.sport-medical-session-card {
  display: grid;
  gap: 11px;
  min-width: 0;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 9px;
  padding: 14px;
  color: var(--ink);
  background: var(--club-surface);
}

.sport-medical-session-card.is-full {
  border-left-color: var(--gold);
}

.sport-medical-session-card.is-past {
  opacity: 0.68;
}

.sport-medical-session-card > header,
.sport-medical-session-meta,
.sport-medical-session-actions,
.sport-medical-player-bookings > div,
.sport-medical-booking-roster li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sport-medical-session-actions {
  flex-wrap: wrap;
}

.sport-medical-session-card > header {
  align-items: flex-start;
}

.sport-medical-session-card h4,
.sport-medical-session-card p {
  margin: 0;
}

.sport-medical-session-card h4 {
  color: var(--ink);
  font-size: 1.04rem;
}

.sport-medical-capacity-badge,
.message-mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: max-content;
  border: 1px solid rgba(8, 122, 85, 0.25);
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--green);
  background: rgba(8, 122, 85, 0.08);
  font-size: 0.76rem;
  font-weight: 850;
  white-space: nowrap;
}

.sport-medical-capacity-badge.is-full,
.message-mode-badge.warning {
  color: #8b6200;
  border-color: rgba(208, 161, 46, 0.35);
  background: var(--gold-soft);
}

.message-mode-badge.loading {
  color: var(--blue);
  border-color: rgba(43, 95, 137, 0.25);
  background: rgba(43, 95, 137, 0.08);
}

.message-mode-badge.online {
  color: var(--green);
}

.sport-medical-session-meta {
  flex-wrap: wrap;
  font-size: 0.82rem;
  font-weight: 750;
}

.sport-medical-session-meta span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.sport-medical-session-note {
  margin: 0;
  border-top: 1px solid var(--line);
  padding-top: 9px;
  font-size: 0.82rem;
}

.sport-medical-important-note {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(208, 161, 46, 0.42);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(208, 161, 46, 0.09);
}

.sport-medical-important-note strong,
.sport-medical-parent-callout strong {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #8b6200;
  font-size: 0.82rem;
  font-weight: 900;
}

.sport-medical-important-note span {
  color: var(--ink);
  font-weight: 800;
  line-height: 1.45;
}

.sport-medical-parent-callout {
  display: grid;
  gap: 6px;
  margin: 0;
  border: 1px solid rgba(208, 161, 46, 0.48);
  border-left: 5px solid var(--gold);
  border-radius: 9px;
  padding: 14px 16px;
  color: var(--ink);
  background: linear-gradient(135deg, rgba(255, 248, 221, 0.92), rgba(255, 255, 255, 0.96));
}

.sport-medical-parent-callout span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.5;
}

.sport-medical-documents {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 9px;
  padding: 15px;
  background: var(--club-surface);
}

.sport-medical-documents-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.sport-medical-documents-head > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.sport-medical-documents-head h4,
.sport-medical-documents-head p,
.sport-medical-documents-head span {
  margin: 0;
}

.sport-medical-documents-head h4 {
  color: var(--ink);
  font-size: 1rem;
}

.sport-medical-documents-head > div > span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.4;
}

.sport-medical-document-count {
  flex: 0 0 auto;
  border: 1px solid rgba(43, 95, 137, 0.25);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--blue);
  background: rgba(43, 95, 137, 0.08);
  font-size: 0.76rem;
  font-weight: 900;
  white-space: nowrap;
}

.sport-medical-document-upload {
  display: grid;
  gap: 10px;
  border: 1px dashed rgba(43, 95, 137, 0.34);
  border-radius: 8px;
  padding: 12px;
  background: rgba(43, 95, 137, 0.045);
}

.sport-medical-document-upload-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sport-medical-document-file {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 11px;
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
  font-weight: 800;
}

.sport-medical-document-file span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sport-medical-document-list {
  display: grid;
  gap: 8px;
}

.sport-medical-document-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 11px;
  background: var(--white);
}

.sport-medical-session-documents {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.sport-medical-session-documents > strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-size: 0.82rem;
}

.sport-medical-session-document-fieldset {
  display: grid;
  gap: 10px;
  margin: 0;
  border: 1px dashed rgba(43, 95, 137, 0.34);
  border-radius: 8px;
  padding: 12px;
  background: rgba(43, 95, 137, 0.045);
}

.sport-medical-session-document-fieldset legend {
  padding: 0 5px;
  color: var(--blue);
  font-weight: 850;
}

.sport-medical-session-document-file {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 11px;
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
  font-weight: 800;
}

.sport-medical-session-document-file span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sport-medical-document-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 7px;
  color: var(--blue);
  background: rgba(43, 95, 137, 0.1);
}

.sport-medical-document-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.sport-medical-document-copy strong,
.sport-medical-document-copy span,
.sport-medical-document-copy small {
  overflow-wrap: anywhere;
}

.sport-medical-document-copy strong {
  color: var(--ink);
}

.sport-medical-document-copy span,
.sport-medical-document-copy small {
  color: var(--muted);
  font-size: 0.76rem;
}

.sport-medical-document-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;
}

.sport-medical-document-download {
  text-decoration: none;
}

.sport-medical-session-actions,
.sport-medical-booking-roster,
.sport-medical-player-bookings {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.sport-medical-session-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.sport-medical-booking-roster,
.sport-medical-player-bookings {
  display: grid;
  gap: 8px;
}

.sport-medical-booking-roster > strong {
  color: var(--ink);
  font-size: 0.82rem;
}

.sport-medical-booking-roster ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sport-medical-booking-roster li,
.sport-medical-player-bookings > div {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 7px 9px;
  color: var(--ink);
  background: var(--white);
  font-size: 0.8rem;
}

.sport-medical-booking-roster li > span,
.sport-medical-player-bookings > div > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.sport-medical-booking-roster li > span {
  display: grid;
  gap: 2px;
}

.sport-medical-booking-roster li > span strong {
  color: var(--ink);
}

.sport-medical-booking-roster li small {
  color: var(--muted);
  overflow-wrap: anywhere;
  text-align: right;
}

.sport-medical-player-bookings .primary-action,
.sport-medical-player-bookings .ghost-action {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 6px 9px;
  font-size: 0.76rem;
}

.sport-medical-session-dialog-card {
  width: min(700px, calc(100vw - 28px));
}

.sport-medical-booking-dialog-card {
  width: min(540px, calc(100vw - 28px));
}

.sport-medical-booking-dialog-card .dialog-form-note {
  margin: 0;
}

@media (max-width: 760px) {
  #sportMedicalPanel {
    padding: 12px;
  }

  .sport-medical-hero,
  .sport-medical-manager-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .sport-medical-manager-toolbar .primary-action {
    width: 100%;
  }

  .sport-medical-player-bookings > div {
    align-items: flex-start;
    flex-direction: column;
  }

  .sport-medical-player-bookings .primary-action,
  .sport-medical-player-bookings .ghost-action {
    width: 100%;
  }

  .sport-medical-document-upload-row {
    align-items: stretch;
    flex-direction: column;
  }

  .sport-medical-document-file,
  .sport-medical-document-upload-row .primary-action {
    width: 100%;
  }

  .sport-medical-document-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .sport-medical-document-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

.team-programs-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(126, 204, 172, 0.24);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.045);
}

.team-programs-head > div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.team-programs-head h3,
.team-programs-head p,
.team-programs-head span {
  margin: 0;
}

.team-programs-head h3 {
  color: rgba(255, 255, 255, 0.98);
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
}

.team-programs-head span {
  color: rgba(255, 255, 255, 0.68);
  font-weight: 800;
  line-height: 1.4;
}

.team-programs-head .primary-action {
  flex: 0 0 auto;
}

.parent-calendar-event-link {
  display: block;
  width: 100%;
  overflow: hidden;
  border: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.82);
  background: transparent;
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.parent-calendar-event-link:hover,
.parent-calendar-event-link:focus-visible {
  color: #12ed79;
  outline: none;
  text-decoration: underline;
}

.parent-calendar-event-link.event-type-match {
  color: #ffdf83;
}

.parent-calendar-event-link.event-type-tournament {
  color: #f2c875;
}

.parent-program-card.is-focused {
  border-color: #12ed79;
  box-shadow: 0 0 0 3px rgba(18, 237, 121, 0.16);
}

.home-player-section {
  order: 2;
  padding-top: 12px;
  border-top: 1px solid rgba(126, 204, 172, 0.2);
}

.home-team-dashboard {
  order: 3;
}

.home-hero.has-team-dashboard .home-player-list {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.home-team-players .chart-card,
.home-team-players .team-kpi {
  border-color: rgba(126, 204, 172, 0.24);
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.home-team-players .chart-card-head h4,
.home-team-players .team-kpi strong,
.home-team-players .team-table-row strong {
  color: rgba(255, 255, 255, 0.96);
}

.home-team-players .chart-card-head span,
.home-team-players .team-kpi span,
.home-team-players .team-kpi small,
.home-team-players .team-table-row > span,
.home-team-players .chart-empty,
.home-team-players .muted-empty {
  color: rgba(255, 255, 255, 0.74);
}

.home-team-players .team-table,
.home-team-players .team-table-row {
  border-color: rgba(126, 204, 172, 0.22);
  background: rgba(255, 255, 255, 0.045);
}

.home-team-players .team-table-head {
  color: rgba(255, 255, 255, 0.72);
  background: rgba(18, 237, 121, 0.12);
}

.home-team-players .team-table-row:nth-child(even) {
  background: rgba(18, 237, 121, 0.055);
}

.team-measurement-table-stack {
  display: grid;
  gap: 18px;
}

.team-measurement-table-block {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.team-measurement-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  border: 1px solid rgba(126, 204, 172, 0.24);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(9, 56, 46, 0.72);
}

.team-measurement-table-head strong {
  color: #ffffff;
  font-size: 1rem;
}

.team-measurement-table-head span {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
  font-weight: 850;
}

.team-table-controls {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(170px, auto) auto auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.team-table-controls input,
.team-table-controls select {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(126, 204, 172, 0.28);
  border-radius: 8px;
  padding: 9px 11px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.065);
  font: inherit;
  font-weight: 800;
}

.team-table-controls input::placeholder {
  color: rgba(255, 255, 255, 0.48);
}

.home-team-players .excel-table-wrap {
  border-color: rgba(126, 204, 172, 0.24);
  background: rgba(255, 255, 255, 0.045);
}

.home-team-players .excel-table th,
.home-team-players .excel-table td {
  border-color: rgba(126, 204, 172, 0.2);
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.045);
}

.home-team-players .excel-table thead th {
  color: rgba(255, 255, 255, 0.88);
  background: rgba(18, 237, 121, 0.14);
}

.home-team-players .excel-table tfoot th,
.home-team-players .excel-table tfoot td {
  border-top: 1px solid rgba(18, 237, 121, 0.5);
  color: #ffffff;
  background: rgba(18, 237, 121, 0.18);
  font-weight: 950;
}

.average-cell {
  display: grid;
  gap: 4px;
  align-content: start;
}

.average-with-trend {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.average-previous {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.74rem;
  font-weight: 850;
  line-height: 1.25;
  white-space: nowrap;
}

.average-trend {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  font-size: 1.06rem;
  font-weight: 1000;
  line-height: 1;
}

.average-trend.up {
  color: #12ed79;
}

.average-trend.down {
  color: #ff6b6b;
}

.average-trend.neutral {
  color: rgba(255, 255, 255, 0.5);
}

.cell-with-trend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cell-trend {
  display: inline-grid;
  place-items: center;
  min-width: 16px;
  font-size: 0.96rem;
  font-weight: 1000;
  line-height: 1;
}

.cell-trend.up {
  color: #12ed79;
}

.cell-trend.down {
  color: #ff6b6b;
}

.cell-trend.neutral {
  color: rgba(255, 255, 255, 0.42);
}

.home-team-players .excel-table tbody th {
  color: rgba(255, 255, 255, 0.94);
  background: rgba(9, 56, 46, 0.98);
}

.home-team-players .excel-table tr:nth-child(even) td {
  background: rgba(18, 237, 121, 0.055);
}

.team-data-player-link {
  width: 100%;
  border: 0;
  padding: 0;
  color: #12ed79;
  background: transparent;
  font-weight: 950;
  text-align: left;
}

.team-data-player-link:hover {
  text-decoration: underline;
}

.motoric-ranking-card {
  display: grid;
  gap: 16px;
}

.motoric-ranking-explainer {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(18, 237, 121, 0.26);
  border-left: 3px solid #12ed79;
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(18, 237, 121, 0.075);
}

.motoric-ranking-explainer strong {
  color: #12ed79;
  font-size: 0.88rem;
  font-weight: 950;
}

.motoric-ranking-explainer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.83rem;
  line-height: 1.5;
}

.motoric-ranking-table th:nth-child(1),
.motoric-ranking-table td:nth-child(1) {
  min-width: 92px;
}

.motoric-ranking-table th:nth-child(2),
.motoric-ranking-table td:nth-child(2) {
  min-width: 104px;
}

.motoric-ranking-table th:nth-child(3),
.motoric-ranking-table td:nth-child(3) {
  min-width: 190px;
}

.motoric-ranking-table th:nth-child(4),
.motoric-ranking-table td:nth-child(4),
.motoric-ranking-table th:nth-child(5),
.motoric-ranking-table td:nth-child(5),
.motoric-ranking-table th:nth-child(6),
.motoric-ranking-table td:nth-child(6) {
  min-width: 126px;
}

.motoric-ranking-table th:nth-child(n + 7),
.motoric-ranking-table td:nth-child(n + 7) {
  min-width: 112px;
}

.motoric-rank-place strong {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 1000;
}

.motoric-rank-change {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 7px;
  padding: 4px 7px;
  font-size: 0.78rem;
  font-weight: 950;
  white-space: nowrap;
}

.motoric-rank-change.good {
  color: #12ed79;
  background: rgba(18, 237, 121, 0.14);
}

.motoric-rank-change.bad {
  color: #ff8f8f;
  background: rgba(255, 107, 107, 0.14);
}

.motoric-rank-change.neutral {
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
}

.motoric-ranking-total {
  color: #ffffff;
  font-weight: 950;
}

.motoric-ranking-score {
  text-align: center;
}

.motoric-ranking-score-main,
.motoric-ranking-score small {
  display: block;
}

.motoric-ranking-score-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 24px;
}

.motoric-ranking-score strong {
  font-size: 1.08rem;
  font-weight: 1000;
  line-height: 1.1;
}

.motoric-ranking-score small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.7rem;
  font-weight: 850;
  white-space: nowrap;
}

.motoric-ranking-metric-trend {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border: 1px solid currentColor;
  border-radius: 999px;
  cursor: help;
}

.motoric-ranking-metric-trend svg {
  width: 13px;
  height: 13px;
  stroke-width: 2.6;
}

.motoric-ranking-metric-trend.good {
  color: #16f08a;
  background: rgba(18, 237, 121, 0.14);
}

.motoric-ranking-metric-trend.bad {
  color: #ff9690;
  background: rgba(255, 99, 91, 0.14);
}

.motoric-ranking-metric-trend.neutral {
  color: rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.08);
}

.home-team-players .excel-table td.motoric-ranking-score.good {
  color: #16f08a;
  background: rgba(18, 237, 121, 0.13);
}

.home-team-players .excel-table td.motoric-ranking-score.neutral {
  color: #a5dfff;
  background: rgba(90, 184, 255, 0.13);
}

.home-team-players .excel-table td.motoric-ranking-score.warn {
  color: #ffc34c;
  background: rgba(255, 185, 61, 0.13);
}

.home-team-players .excel-table td.motoric-ranking-score.bad {
  color: #ff9690;
  background: rgba(255, 99, 91, 0.13);
}

.home-team-players .excel-table td.motoric-ranking-score.missing {
  color: rgba(255, 255, 255, 0.48);
}

@media (max-width: 720px) {
  .motoric-ranking-explainer {
    padding: 11px 12px;
  }

  .motoric-ranking-explainer p {
    font-size: 0.78rem;
  }

  .motoric-ranking-table {
    font-size: 0.78rem;
  }
}

.home-team-head {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(126, 204, 172, 0.2);
}

.home-team-head span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.home-team-head strong {
  color: rgba(255, 255, 255, 0.96);
  font-size: 1.25rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.home-player-list {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.home-player-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(18, 237, 121, 0.34);
  border-radius: 8px;
  padding: 7px 9px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(18, 237, 121, 0.09);
  font-weight: 900;
  text-align: left;
}

.home-player-card:hover {
  border-color: rgba(18, 237, 121, 0.62);
  background: rgba(18, 237, 121, 0.15);
}

.home-player-card .avatar {
  width: 34px;
  font-size: 0.72rem;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  letter-spacing: 0;
}

.home-player-card > span {
  display: block;
  min-width: 0;
}

.home-player-card strong {
  min-width: 0;
  color: rgba(255, 255, 255, 0.96);
  font-size: 0.88rem;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.home-player-card small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.missing-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

.missing-badge {
  border: 1px solid rgba(255, 214, 102, 0.38);
  border-radius: 999px;
  padding: 2px 7px;
  color: #ffd86a;
  background: rgba(255, 214, 102, 0.1);
  font-size: 0.68rem;
  font-weight: 950;
  line-height: 1.3;
}

.coverage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.coverage-item {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(18, 237, 121, 0.28);
  border-radius: 8px;
  padding: 12px;
  background: rgba(18, 237, 121, 0.1);
}

.coverage-item.has-missing {
  border-color: rgba(255, 214, 102, 0.34);
  background: rgba(255, 214, 102, 0.1);
}

.coverage-item span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.coverage-item strong {
  color: #ffffff;
  font-size: 1.08rem;
}

.coverage-item small {
  color: rgba(255, 255, 255, 0.68);
  font-weight: 800;
}

.team-attention-card .chart-card-head {
  align-items: center;
}

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

.attention-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(96px, 160px);
  align-items: start;
  gap: 14px;
  width: 100%;
  border: 1px solid rgba(255, 214, 102, 0.28);
  border-radius: 8px;
  padding: 14px;
  color: rgba(255, 255, 255, 0.94);
  background: rgba(255, 214, 102, 0.1);
  text-align: left;
}

.attention-item.bad {
  border-color: rgba(255, 107, 107, 0.42);
  background: rgba(255, 107, 107, 0.12);
}

.attention-item:hover {
  border-color: rgba(18, 237, 121, 0.62);
  background: rgba(18, 237, 121, 0.12);
}

.attention-item-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.attention-item strong {
  overflow-wrap: break-word;
  word-break: normal;
}

.attention-item small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: break-word;
  word-break: normal;
}

.attention-item em {
  display: inline-grid;
  place-items: center;
  justify-self: end;
  max-width: 160px;
  min-width: 98px;
  border-radius: 999px;
  padding: 7px 10px;
  color: #fff5cc;
  background: rgba(255, 214, 102, 0.16);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 950;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
}

.attention-item.bad em {
  color: #ffb0aa;
  background: rgba(255, 107, 107, 0.18);
}

.attention-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.attention-tags b {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 5px 8px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.18);
  font-size: 0.72rem;
  line-height: 1.15;
  overflow-wrap: break-word;
  word-break: normal;
}

.classification-leadership-card {
  border-color: rgba(18, 237, 121, 0.34);
  background: linear-gradient(180deg, rgba(18, 237, 121, 0.1), rgba(3, 28, 24, 0.5));
}

.team-highlighted-card {
  border-left: 5px solid var(--green);
}

.highlight-player-list {
  display: grid;
  gap: 10px;
}

.highlight-player-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  border: 1px solid rgba(18, 237, 121, 0.34);
  border-radius: 8px;
  padding: 12px;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(18, 237, 121, 0.1);
  text-align: left;
}

.highlight-player-item:hover {
  border-color: rgba(18, 237, 121, 0.68);
  background: rgba(18, 237, 121, 0.16);
}

.highlight-player-item span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.highlight-player-item strong {
  color: #ffffff;
  font-size: 1rem;
}

.highlight-player-item small,
.highlight-player-item em {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.highlight-player-item b {
  display: inline-grid;
  place-items: center;
  min-width: 58px;
  border-radius: 999px;
  padding: 8px 10px;
  color: #042117;
  background: #12ed79;
  font-size: 1.1rem;
  font-weight: 1000;
}

.narrative-card {
  border-left: 5px solid var(--gold);
}

.narrative-card.good {
  border-left-color: var(--green);
}

.narrative-card.warn,
.narrative-card.neutral {
  border-left-color: var(--gold);
}

.narrative-card.bad {
  border-left-color: var(--danger);
}

.narrative-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.narrative-list li {
  display: grid;
  gap: 5px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left-width: 4px;
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.16);
}

.narrative-list li.good {
  border-left-color: var(--green);
}

.narrative-list li.warn,
.narrative-list li.neutral {
  border-left-color: var(--gold);
}

.narrative-list li.bad {
  border-left-color: var(--danger);
}

.narrative-list strong {
  color: #ffffff;
  font-size: 0.9rem;
}

.narrative-list span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.84rem;
  font-weight: 750;
  line-height: 1.4;
}

.team-export-card {
  gap: 18px;
}

.team-export-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.team-export-summary div {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(126, 204, 172, 0.24);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.team-export-summary span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.team-export-summary strong {
  color: #ffffff;
  font-size: 1.45rem;
}

.team-export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.home-global-panel {
  min-width: 0;
  border: 1px solid rgba(126, 204, 172, 0.24);
  border-radius: 8px;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(9, 56, 46, 0.68), rgba(3, 28, 24, 0.92)),
    rgba(3, 28, 24, 0.92);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.home-global-panel[hidden] {
  display: none;
}

.home-global-panel h3,
.home-global-panel .management-item strong,
.home-global-panel .management-form label,
.home-global-panel .field-document-card h4,
.home-global-panel .training-library-card h4,
.home-global-panel .field-document-open strong,
.home-global-panel .field-document-preview-head strong {
  color: rgba(255, 255, 255, 0.94);
}

.home-global-panel .management-form,
.home-global-panel .management-item,
.home-global-panel .field-document-card,
.home-global-panel .field-document-item,
.home-global-panel .field-document-viewer,
.home-global-panel .training-library-card,
.home-global-panel .training-material-card,
.home-global-panel .health-record-item {
  border-color: rgba(126, 204, 172, 0.24);
  background: rgba(255, 255, 255, 0.045);
}

.home-global-panel .management-item span,
.home-global-panel .management-item small,
.home-global-panel .field-document-upload span,
.home-global-panel .field-document-open span,
.home-global-panel .training-material-card span,
.home-global-panel .training-material-card small,
.home-global-panel .training-material-card p,
.home-global-panel .muted-empty {
  color: rgba(255, 255, 255, 0.78);
}

.data-health-panel {
  border: 1px solid rgba(126, 204, 172, 0.24);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.045);
}

.data-health-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.data-health-item {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(126, 204, 172, 0.22);
  border-radius: 8px;
  padding: 12px;
  background: rgba(3, 28, 24, 0.42);
}

.data-health-item.warn {
  border-color: rgba(255, 214, 102, 0.34);
  background: rgba(255, 214, 102, 0.09);
}

.data-health-item.good {
  border-color: rgba(18, 237, 121, 0.32);
  background: rgba(18, 237, 121, 0.09);
}

.data-health-item span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.data-health-item strong {
  color: rgba(255, 255, 255, 0.96);
  font-size: 1rem;
}

.data-health-item small {
  color: rgba(255, 255, 255, 0.66);
  font-weight: 800;
  line-height: 1.35;
}

.leadership-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.leadership-view-switch {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  border: 1px solid rgba(126, 204, 172, 0.22);
  border-radius: 8px;
  padding: 6px;
  background: rgba(3, 28, 24, 0.42);
}

.leadership-view-switch button {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 13px;
  color: rgba(255, 255, 255, 0.74);
  background: transparent;
  font-weight: 950;
  cursor: pointer;
}

.leadership-view-switch button.is-active {
  border-color: rgba(18, 237, 121, 0.5);
  color: #031c18;
  background: #12ed79;
}

.leadership-kpi,
.leadership-card {
  border: 1px solid rgba(126, 204, 172, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.leadership-kpi {
  display: grid;
  gap: 5px;
  padding: 14px;
}

.leadership-kpi span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.leadership-kpi strong {
  color: #ffffff;
  font-size: 1.55rem;
  font-weight: 1000;
}

.leadership-kpi small {
  color: rgba(255, 255, 255, 0.66);
  font-weight: 800;
  line-height: 1.35;
}

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

.president-contract-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.president-contract-card {
  min-width: 0;
}

.president-kpi-grid .leadership-kpi {
  border-color: rgba(126, 204, 172, 0.22);
  background: rgba(255, 255, 255, 0.045);
}

.president-kpi-grid .leadership-kpi:nth-child(2) {
  border-color: rgba(18, 237, 121, 0.34);
  background: rgba(18, 237, 121, 0.07);
}

.president-kpi-grid .leadership-kpi:nth-child(3) {
  border-color: rgba(255, 110, 110, 0.34);
  background: rgba(255, 110, 110, 0.08);
}

.president-kpi-grid .leadership-kpi:nth-child(4) {
  border-color: rgba(255, 110, 110, 0.42);
  background: rgba(255, 110, 110, 0.11);
}

.president-contract-form {
  display: grid;
  gap: 12px;
}

.contract-type-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 14px;
  border: 1px solid rgba(18, 237, 121, 0.22);
  border-radius: 8px;
  padding: 6px;
  background: rgba(2, 19, 15, 0.54);
}

.contract-type-switch button {
  min-width: 0;
  min-height: 42px;
  border: 1px solid rgba(126, 204, 172, 0.22);
  border-radius: 8px;
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 950;
  cursor: pointer;
}

.contract-type-switch button.is-active {
  border-color: rgba(18, 237, 121, 0.72);
  color: #031c18;
  background: #12ed79;
}

.president-contract-panel-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
  border: 1px solid rgba(18, 237, 121, 0.22);
  border-radius: 8px;
  padding: 6px;
  background: rgba(2, 19, 15, 0.54);
}

.president-contract-panel-switch button {
  min-height: 44px;
  border: 1px solid rgba(126, 204, 172, 0.22);
  border-radius: 8px;
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 950;
  cursor: pointer;
}

.president-contract-panel-switch button.is-active {
  border-color: rgba(18, 237, 121, 0.72);
  color: #031c18;
  background: #12ed79;
}

.contract-type-select {
  display: grid;
  gap: 6px;
  margin: 12px 0 14px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  font-weight: 950;
}

.contract-type-select select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(18, 237, 121, 0.3);
  border-radius: 8px;
  padding: 10px 12px;
  color: #f4fbf6;
  background: #0b241c;
  font-weight: 950;
}

.contract-renewal-box {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  border: 1px solid rgba(18, 237, 121, 0.22);
  border-radius: 8px;
  padding: 12px;
  background: rgba(2, 19, 15, 0.5);
}

.contract-renewal-box.is-open {
  border-color: rgba(255, 110, 110, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 110, 110, 0.05), rgba(2, 19, 15, 0.54)),
    #02130f;
}

.contract-renewal-head,
.contract-renewal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.contract-renewal-head > div {
  display: grid;
  gap: 3px;
}

.contract-renewal-head strong,
.contract-renewal-question strong {
  color: #ffffff;
}

.contract-renewal-head span,
.contract-renewal-question span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.8rem;
  font-weight: 850;
}

.contract-renewal-form {
  display: grid;
  gap: 12px;
}

.contract-renewal-controls,
.contract-renewal-custom-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 10px;
}

.contract-renewal-controls label,
.contract-renewal-custom-fields label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.78rem;
  font-weight: 950;
}

.contract-renewal-controls input,
.contract-renewal-controls select,
.contract-renewal-custom-fields input,
.contract-renewal-custom-fields select {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  border: 1px solid rgba(18, 237, 121, 0.24);
  border-radius: 8px;
  padding: 8px 10px;
  color: #f4fbf6;
  background: #0b241c;
  font-weight: 850;
}

.contract-renewal-question {
  display: grid;
  gap: 4px;
  border-left: 3px solid #12ed79;
  padding: 4px 0 4px 10px;
}

.contract-renewal-list {
  display: grid;
  gap: 8px;
}

.contract-renewal-row {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(18, 237, 121, 0.18);
  border-radius: 8px;
  padding: 10px;
  background: #02130f;
}

.contract-renewal-row.valid {
  border-color: rgba(18, 237, 121, 0.28);
  background: rgba(18, 237, 121, 0.055);
}

.contract-renewal-row.soon {
  border-color: rgba(255, 110, 110, 0.34);
  background: rgba(255, 110, 110, 0.095);
  box-shadow: inset 5px 0 0 rgba(255, 110, 110, 0.72);
}

.contract-renewal-row.expired {
  border-color: rgba(255, 110, 110, 0.52);
  background: rgba(255, 110, 110, 0.14);
  box-shadow: inset 5px 0 0 #ff6e6e;
}

.contract-renewal-row.draft,
.contract-renewal-row.neutral {
  border-color: rgba(255, 214, 102, 0.25);
  background: rgba(255, 214, 102, 0.055);
}

.contract-renewal-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
}

.contract-renewal-select,
.contract-renewal-custom-toggle {
  display: flex;
  gap: 9px;
  align-items: center;
  min-width: 0;
  color: #f4fbf6;
  font-weight: 950;
}

.contract-renewal-select span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.contract-renewal-select strong,
.contract-renewal-select small {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: normal;
}

.contract-renewal-select small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.76rem;
}

.contract-renewal-custom-toggle {
  color: #12ed79;
  font-size: 0.78rem;
}

.contract-renewal-main .contract-status-pill {
  justify-self: end;
  white-space: nowrap;
}

.contract-renewal-custom-fields {
  display: none;
}

.contract-renewal-row:has([data-renewal-custom]:checked) .contract-renewal-custom-fields {
  display: grid;
}

.contract-employer-switch {
  margin-top: -6px;
}

.contract-list-employer-switch {
  margin-top: 0;
}

.contract-list-employer-switch button,
.president-contract-season-tabs button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  text-align: left;
}

.contract-list-employer-switch button span,
.president-contract-season-tabs button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contract-list-employer-switch button b,
.president-contract-season-tabs button b {
  display: inline-grid;
  min-width: 28px;
  min-height: 28px;
  place-items: center;
  border-radius: 999px;
  color: #12ed79;
  background: rgba(18, 237, 121, 0.12);
  font-size: 0.8rem;
}

.contract-list-employer-switch button.is-active b,
.president-contract-season-tabs button.is-active b {
  color: #031c18;
  background: rgba(3, 28, 24, 0.16);
}

.president-contract-browser {
  display: grid;
  gap: 12px;
}

.president-contract-season-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.president-contract-season-tabs button {
  min-height: 40px;
  border: 1px solid rgba(126, 204, 172, 0.22);
  border-radius: 8px;
  padding: 8px 10px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 950;
  cursor: pointer;
}

.president-contract-season-tabs button.is-active {
  border-color: rgba(18, 237, 121, 0.72);
  color: #031c18;
  background: #12ed79;
}

.president-contract-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  align-items: end;
  border: 1px solid rgba(18, 237, 121, 0.2);
  border-radius: 8px;
  padding: 12px;
  background: rgba(2, 19, 15, 0.42);
}

.president-contract-filters label {
  display: grid;
  gap: 6px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.8rem;
  font-weight: 950;
}

.president-contract-filters input,
.president-contract-filters select {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  border: 1px solid rgba(18, 237, 121, 0.24);
  border-radius: 8px;
  padding: 8px 10px;
  color: #f4fbf6;
  background: #0b241c;
  font-weight: 850;
}

.president-contract-filters .ghost-action {
  width: 100%;
  min-height: 38px;
  border-color: rgba(18, 237, 121, 0.36);
  color: #12ed79;
  background: rgba(18, 237, 121, 0.08);
}

.president-contract-list-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(18, 237, 121, 0.18);
  border-radius: 8px;
  padding: 12px;
  background: #02130f;
}

.president-contract-list-head > div {
  display: grid;
  gap: 3px;
}

.president-contract-list-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.president-contract-list-head strong {
  color: #ffffff;
}

.president-contract-list-head span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
  font-weight: 850;
}

.president-contract-fieldset {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
  border: 1px solid rgba(18, 237, 121, 0.22);
  border-radius: 8px;
  padding: 14px;
  background: rgba(2, 19, 15, 0.42);
}

.president-contract-fieldset legend {
  padding: 0 8px;
  color: #12ed79;
  font-size: 0.82rem;
  font-weight: 950;
}

.president-contract-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 900;
}

.president-contract-form input,
.president-contract-form select,
.president-contract-form textarea {
  width: 100%;
  min-width: 0;
  border-color: rgba(18, 237, 121, 0.24);
  background: #0b241c;
  color: #f4fbf6;
}

.president-contract-form input[data-smart-date] {
  font-variant-numeric: tabular-nums;
}

.contract-coach-preview {
  border: 1px solid rgba(18, 237, 121, 0.2);
  border-radius: 8px;
  padding: 12px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 800;
}

.contract-coach-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 10px;
}

.contract-coach-preview-grid div {
  display: grid;
  gap: 4px;
  align-content: start;
  min-width: 0;
  border: 1px solid rgba(18, 237, 121, 0.18);
  border-radius: 8px;
  padding: 10px 12px;
  background: #02130f;
}

.contract-coach-preview-grid span,
.contract-ocr-status {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contract-coach-preview-grid strong {
  color: #ffffff;
  font-size: 0.98rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.contract-ocr-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(18, 237, 121, 0.2);
  border-radius: 8px;
  padding: 12px;
  background: #02130f;
}

.contract-ocr-card .ghost-action,
.president-contract-form [data-contract-ocr-apply-text] {
  justify-self: start;
  min-height: 36px;
  border-color: rgba(18, 237, 121, 0.36);
  padding: 8px 11px;
  color: #12ed79;
  background: rgba(18, 237, 121, 0.08);
}

.contract-ocr-preview {
  display: grid;
  gap: 7px;
  min-height: 116px;
  place-items: center;
  border: 1px dashed rgba(18, 237, 121, 0.24);
  border-radius: 8px;
  padding: 10px;
  color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.035);
  text-align: center;
  font-size: 0.82rem;
  font-weight: 850;
}

.contract-ocr-preview img {
  max-width: 100%;
  max-height: 170px;
  border-radius: 7px;
  object-fit: contain;
  background: #ffffff;
}

.contract-document-upload small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  line-height: 1.35;
}

.contract-document-draft-list {
  display: grid;
  gap: 10px;
}

.contract-document-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.contract-document-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-width: 0;
  border: 1px solid rgba(18, 237, 121, 0.18);
  border-radius: 8px;
  padding: 10px;
  background: #02130f;
}

.contract-document-thumb {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(18, 237, 121, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.contract-document-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contract-document-icon {
  color: #12ed79;
  font-size: 0.82rem;
  font-weight: 1000;
}

.contract-document-info {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.contract-document-card strong {
  color: #ffffff;
  font-size: 0.9rem;
  line-height: 1.2;
}

.contract-document-card span,
.contract-document-card small {
  min-width: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.75rem;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.contract-document-actions {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.contract-document-actions .ghost-action {
  min-height: 32px;
  border-color: rgba(18, 237, 121, 0.34);
  padding: 6px 9px;
  color: #12ed79;
  background: rgba(18, 237, 121, 0.08);
  font-size: 0.75rem;
}

.contract-document-actions .small-delete {
  position: static;
  width: 30px;
  height: 30px;
  min-width: 30px;
  min-height: 30px;
  border-radius: 7px;
  padding: 0;
  font-size: 0.78rem;
}

.contract-document-card.is-file-only {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 9px 10px;
}

.contract-document-card.is-file-only .contract-document-info strong {
  color: #12ed79;
  font-size: 0.9rem;
}

.contract-document-card.is-file-only .contract-document-actions {
  grid-column: auto;
  justify-content: flex-end;
}

.president-contract-notes,
.president-contract-wide,
.president-contract-form .primary-action {
  grid-column: 1 / -1;
}

.president-contract-list {
  display: grid;
  gap: 10px;
}

.president-contract-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  border: 1px solid rgba(126, 204, 172, 0.22);
  border-radius: 8px;
  padding: 12px;
  background: #02130f;
}

.president-contract-item.expired {
  border-color: rgba(255, 110, 110, 0.52);
  background: rgba(255, 110, 110, 0.14);
  box-shadow: inset 5px 0 0 #ff6e6e;
}

.president-contract-item.soon {
  border-color: rgba(255, 110, 110, 0.34);
  background: rgba(255, 110, 110, 0.095);
  box-shadow: inset 5px 0 0 rgba(255, 110, 110, 0.72);
}

.president-contract-item.valid {
  border-color: rgba(18, 237, 121, 0.34);
  background: rgba(18, 237, 121, 0.055);
}

.president-contract-item.draft,
.president-contract-item.neutral {
  border-color: rgba(255, 214, 102, 0.25);
  background: rgba(255, 214, 102, 0.055);
}

.president-contract-item.closed {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.035);
}

.president-contract-summary {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.president-contract-title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.president-contract-item strong {
  color: #ffffff;
}

.president-contract-item small,
.president-contract-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
  line-height: 1.35;
}

.president-contract-actions .small-delete {
  position: static;
  width: 30px;
  height: 30px;
  min-width: 30px;
  min-height: 30px;
  border-radius: 7px;
  padding: 0;
  font-size: 0.78rem;
}

.president-contract-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.president-contract-actions .ghost-action {
  min-height: 34px;
  border-color: rgba(18, 237, 121, 0.36);
  padding: 7px 10px;
  color: #12ed79;
  background: rgba(18, 237, 121, 0.08);
  font-size: 0.78rem;
}

.president-contract-files {
  position: relative;
}

.president-contract-files summary {
  display: inline-grid;
  min-height: 30px;
  align-items: center;
  border: 1px solid rgba(18, 237, 121, 0.38);
  border-radius: 7px;
  padding: 5px 10px;
  color: #12ed79;
  background: rgba(18, 237, 121, 0.08);
  font-size: 0.78rem;
  font-weight: 950;
  list-style: none;
  cursor: pointer;
}

.president-contract-files summary::-webkit-details-marker {
  display: none;
}

.president-contract-file-list {
  display: grid;
  gap: 7px;
  width: min(260px, calc(100vw - 48px));
  margin-top: 8px;
  border: 1px solid rgba(18, 237, 121, 0.22);
  border-radius: 8px;
  padding: 8px;
  background: #031b16;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
}

.president-contract-file-list .ghost-action {
  justify-content: start;
  min-height: 32px;
  border-color: rgba(18, 237, 121, 0.32);
  color: #12ed79;
  background: rgba(18, 237, 121, 0.08);
  font-size: 0.78rem;
}

.president-contract-file-empty {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
  font-weight: 850;
}

.president-contract-documents {
  display: grid;
  grid-column: 1 / -1;
  gap: 8px;
  border-top: 1px solid rgba(18, 237, 121, 0.16);
  padding-top: 10px;
}

.president-contract-documents > strong {
  color: #12ed79;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.contract-status-pill {
  justify-self: start;
  border: 1px solid rgba(18, 237, 121, 0.34);
  border-radius: 999px;
  padding: 4px 8px;
  color: #12ed79;
  background: rgba(18, 237, 121, 0.08);
  font-size: 0.72rem;
  font-weight: 950;
}

.contract-status-pill.active {
  color: #02130f;
  background: #12ed79;
}

.contract-status-pill.valid {
  border-color: rgba(18, 237, 121, 0.42);
  color: #02130f;
  background: #12ed79;
}

.contract-status-pill.expiring {
  border-color: rgba(255, 110, 110, 0.42);
  color: #ffb9b9;
  background: rgba(255, 110, 110, 0.12);
}

.contract-status-pill.soon {
  border-color: rgba(255, 110, 110, 0.42);
  color: #ffb9b9;
  background: rgba(255, 110, 110, 0.12);
}

.contract-status-pill.expired {
  border-color: rgba(255, 110, 110, 0.58);
  color: #fff4f4;
  background: rgba(255, 110, 110, 0.25);
}

.contract-status-pill.draft,
.contract-status-pill.neutral {
  border-color: rgba(255, 214, 102, 0.42);
  color: #ffd666;
  background: rgba(255, 214, 102, 0.1);
}

.contract-status-pill.closed {
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.06);
}

.leadership-team-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.leadership-team-filter button {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  min-height: 38px;
  border: 1px solid rgba(18, 237, 121, 0.22);
  border-radius: 8px;
  padding: 8px 11px;
  color: rgba(255, 255, 255, 0.78);
  background: #02130f;
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}

.leadership-team-filter button.is-active,
.leadership-team-filter button:hover,
.leadership-team-filter button:focus-visible {
  border-color: rgba(18, 237, 121, 0.58);
  color: #02130f;
  background: #12ed79;
}

.leadership-team-filter b {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  border-radius: 999px;
  padding: 3px 7px;
  color: #02130f;
  background: rgba(255, 255, 255, 0.86);
  font-size: 0.78rem;
}

.leadership-team-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 540px), 1fr));
  gap: 14px;
}

.leadership-team-card {
  display: grid;
  gap: 13px;
  min-width: 0;
  border: 1px solid rgba(18, 237, 121, 0.24);
  border-radius: 8px;
  padding: 14px;
  color: rgba(255, 255, 255, 0.9);
  background: #02130f;
}

.leadership-team-card h4 {
  color: #ffffff;
}

.leadership-team-card .chart-card-head {
  align-items: center;
}

.leadership-team-card .chart-card-head > div {
  min-width: 0;
}

.leadership-team-card .chart-card-head h4,
.leadership-team-card .chart-card-head span {
  overflow-wrap: break-word;
  word-break: normal;
}

.leadership-team-mini-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(118px, 1fr));
  gap: 8px;
}

.leadership-team-mini-kpis div {
  display: grid;
  gap: 3px;
  border: 1px solid rgba(18, 237, 121, 0.18);
  border-radius: 8px;
  padding: 9px;
  background: #031c18;
}

.leadership-team-mini-kpis span,
.leadership-team-compact-list small,
.leadership-team-compact-list p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 850;
}

.leadership-team-mini-kpis strong {
  color: #ffffff;
  font-size: 1.08rem;
  font-weight: 1000;
}

.leadership-team-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 12px;
}

.leadership-team-compact-list {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  border: 1px solid rgba(126, 204, 172, 0.22);
  border-left: 5px solid rgba(18, 237, 121, 0.6);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.leadership-team-compact-list:nth-child(1) {
  border-left-color: #12ed79;
}

.leadership-team-compact-list:nth-child(2) {
  border-left-color: #4be0a4;
}

.leadership-team-compact-list:nth-child(3) {
  border-left-color: #62c9ff;
}

.leadership-team-compact-list:nth-child(4) {
  border-left-color: #d0a12e;
}

.leadership-team-compact-list:nth-child(5) {
  border-left-color: #8ff0c3;
}

.leadership-team-compact-list:nth-child(6) {
  border-left-color: #ffd666;
}

.leadership-team-compact-list:nth-child(7) {
  border-left-color: #ff9b73;
}

.leadership-team-compact-list:nth-child(8) {
  border-left-color: #ff6f6f;
}

.leadership-team-compact-list h5 {
  margin: 0;
  border-bottom: 1px solid rgba(126, 204, 172, 0.18);
  padding-bottom: 8px;
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 1000;
  letter-spacing: 0.01em;
  line-height: 1.25;
  text-transform: uppercase;
  overflow-wrap: break-word;
  word-break: normal;
}

.leadership-team-compact-list > div {
  display: grid;
  gap: 8px;
}

.leadership-team-compact-list p {
  margin: 0;
  border: 1px dashed rgba(126, 204, 172, 0.2);
  border-radius: 8px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.13);
}

.leadership-team-player-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
  align-items: start;
  border: 1px solid rgba(126, 204, 172, 0.2);
  border-radius: 8px;
  padding: 9px 10px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(3, 28, 24, 0.72);
  text-align: left;
  cursor: pointer;
}

.leadership-team-player-row.warn {
  border-color: rgba(255, 214, 102, 0.3);
}

.leadership-team-player-row.bad {
  border-color: rgba(255, 110, 110, 0.32);
}

.leadership-team-player-row:hover,
.leadership-team-player-row:focus-visible {
  border-color: rgba(18, 237, 121, 0.46);
  background: rgba(18, 237, 121, 0.08);
}

.leadership-team-player-row span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.leadership-team-player-row strong {
  min-width: 0;
  line-height: 1.25;
  overflow-wrap: break-word;
  word-break: normal;
}

.leadership-team-player-row small {
  line-height: 1.3;
  overflow-wrap: break-word;
  word-break: normal;
}

.leadership-team-player-row b {
  justify-self: start;
  max-width: 100%;
  border: 1px solid rgba(18, 237, 121, 0.22);
  border-radius: 999px;
  padding: 4px 8px;
  color: #12ed79;
  background: rgba(18, 237, 121, 0.08);
  font-size: 0.85rem;
  font-weight: 1000;
  line-height: 1.2;
  overflow-wrap: break-word;
  word-break: normal;
}

@media (max-width: 1240px) {
  .president-contract-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .president-contract-layout,
  .president-contract-form,
  .president-contract-fieldset,
  .contract-type-switch,
  .president-contract-panel-switch,
  .contract-renewal-main,
  .president-contract-filters,
  .contract-coach-preview-grid {
    grid-template-columns: 1fr;
  }

  .president-contract-notes,
  .president-contract-form .primary-action {
    grid-column: auto;
  }

  .leadership-team-summary-grid,
  .leadership-team-card-grid {
    grid-template-columns: 1fr;
  }

  .leadership-team-mini-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.leadership-card {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 16px;
}

.leadership-card .section-heading {
  margin-bottom: 0;
}

.leadership-card h4 {
  color: rgba(255, 255, 255, 0.96);
}

.leadership-player-list {
  display: grid;
  gap: 9px;
}

.leadership-player-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(92px, 190px);
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(126, 204, 172, 0.2);
  border-radius: 8px;
  padding: 11px 12px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(3, 28, 24, 0.38);
  text-align: left;
  cursor: pointer;
}

.leadership-player-item:hover {
  border-color: rgba(18, 237, 121, 0.46);
  background: rgba(18, 237, 121, 0.08);
}

.leadership-player-item.warn {
  border-color: rgba(255, 214, 102, 0.28);
}

.leadership-player-item.bad {
  border-color: rgba(255, 110, 110, 0.28);
}

.leadership-player-item span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.leadership-player-item strong,
.leadership-player-item small {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: normal;
}

.leadership-player-item small {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.8rem;
  font-weight: 800;
}

.leadership-player-item b {
  display: inline-grid;
  place-items: center;
  justify-self: end;
  max-width: 190px;
  min-width: 62px;
  border-radius: 999px;
  padding: 7px 10px;
  color: #042117;
  background: #12ed79;
  font-size: 0.94rem;
  font-weight: 1000;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
}

.technical-leadership-card {
  grid-column: 1 / -1;
  border-color: rgba(18, 237, 121, 0.28);
  color: rgba(255, 255, 255, 0.9);
  background: #02130f;
  box-shadow: inset 0 0 0 1px rgba(18, 237, 121, 0.06);
}

.technical-alert-banner {
  border: 1px solid rgba(18, 237, 121, 0.28);
  border-left-width: 5px;
  border-radius: 8px;
  margin-bottom: 14px;
  padding: 16px;
  color: rgba(255, 255, 255, 0.9);
  background: #02130f;
}

.technical-alert-banner.bad {
  border-left-color: #ff6b6b;
  background: linear-gradient(90deg, rgba(255, 107, 107, 0.16), rgba(2, 19, 15, 0.98));
}

.technical-alert-banner.warn {
  border-left-color: #ffd666;
  background: linear-gradient(90deg, rgba(255, 214, 102, 0.14), rgba(2, 19, 15, 0.98));
}

.technical-alert-banner.good {
  border-left-color: #12ed79;
}

.technical-alert-banner span,
.technical-alert-banner small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 850;
}

.technical-alert-banner strong {
  display: block;
  margin: 3px 0;
  color: #ffffff;
  font-size: 1.08rem;
}

.technical-feedback-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.85fr);
  gap: 14px;
  margin-bottom: 14px;
}

.technical-feedback-card {
  min-width: 0;
  border: 1px solid rgba(18, 237, 121, 0.24);
  border-radius: 8px;
  padding: 14px;
  color: rgba(255, 255, 255, 0.9);
  background: #02130f;
}

.technical-feedback-card .chart-card-head {
  align-items: center;
}

.technical-feedback-card h4 {
  color: #ffffff;
}

.technical-feedback-card .chart-card-head span,
.technical-weekly-summary {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

.technical-weekly-summary {
  margin: 0;
  line-height: 1.5;
}

.technical-weekly-list,
.technical-weekly-priority ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.technical-weekly-list li,
.technical-weekly-priority li {
  display: grid;
  gap: 3px;
  border: 1px solid rgba(18, 237, 121, 0.18);
  border-radius: 8px;
  padding: 9px 10px;
  background: #031c18;
}

.technical-weekly-list strong,
.technical-weekly-priority strong {
  color: #ffffff;
}

.technical-weekly-list span,
.technical-weekly-priority span,
.technical-weekly-priority small {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 850;
}

.technical-weekly-priority {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.technical-expiry-list {
  display: grid;
  gap: 9px;
}

.technical-expiry-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(18, 237, 121, 0.2);
  border-radius: 8px;
  padding: 10px 11px;
  background: #031c18;
}

.technical-expiry-item.expired {
  border-color: rgba(255, 107, 107, 0.4);
  background: #2b1111;
}

.technical-expiry-item.soon {
  border-color: rgba(255, 214, 102, 0.4);
  background: #2a230d;
}

.technical-expiry-item span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.technical-expiry-item strong {
  color: #ffffff;
}

.technical-expiry-item small {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 800;
}

.technical-expiry-item b {
  display: inline-grid;
  place-items: center;
  min-width: 86px;
  border-radius: 999px;
  padding: 7px 10px;
  color: #02130f;
  background: #12ed79;
  font-size: 0.78rem;
  font-weight: 1000;
  white-space: nowrap;
}

.technical-table-launcher {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(18, 237, 121, 0.28);
  border-radius: 8px;
  padding: 16px;
  color: rgba(255, 255, 255, 0.9);
  background: #02130f;
  box-shadow: inset 0 0 0 1px rgba(18, 237, 121, 0.06);
}

.technical-table-launcher h4 {
  margin-bottom: 4px;
  color: #ffffff;
}

.technical-table-launcher span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
  font-weight: 850;
}

.technical-table-launcher-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.technical-team-management-card {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
  padding: 16px;
  background: #02130f;
}

.technical-team-management-card .chart-card-head {
  align-items: center;
}

.technical-team-management-card h4 {
  color: #ffffff;
}

.technical-team-management-card .chart-card-head span {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 850;
}

.technical-team-management-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.technical-team-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.technical-team-management-list {
  display: grid;
  gap: 10px;
}

.technical-team-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(92px, auto) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(18, 237, 121, 0.22);
  border-left: 5px solid rgba(18, 237, 121, 0.62);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.technical-team-main,
.technical-team-count {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.technical-team-main strong,
.technical-team-count strong {
  color: #ffffff;
  line-height: 1.2;
  overflow-wrap: break-word;
  word-break: normal;
}

.technical-team-main span,
.technical-team-count span {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.78rem;
  font-weight: 850;
}

.technical-team-count {
  justify-items: center;
  border: 1px solid rgba(18, 237, 121, 0.2);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(18, 237, 121, 0.07);
}

.technical-permission-card {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
  padding: 16px;
  background: #02130f;
}

.technical-permission-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.technical-permission-list {
  display: grid;
  gap: 10px;
}

.technical-permission-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.78);
}

.technical-permission-section-head strong {
  color: #ffffff;
  font-size: 0.94rem;
}

.technical-permission-section-head span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
  font-weight: 850;
}

.technical-permission-row {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(170px, 0.52fr) minmax(220px, 1.15fr) auto;
  gap: 10px;
  align-items: start;
  border: 1px solid rgba(18, 237, 121, 0.22);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.technical-permission-row.is-coach-contact {
  border-style: dashed;
}

.technical-permission-invite,
.coach-app-invite {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  border: 1px solid rgba(18, 237, 121, 0.44);
  border-radius: 8px;
  padding: 8px 11px;
  color: #02130f;
  background: #12ed79;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 950;
  cursor: pointer;
}

.technical-permission-invite svg,
.coach-app-invite svg,
.coach-app-status svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.technical-permission-invite:disabled,
.coach-app-invite:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.coach-app-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  font-size: 0.72rem;
  font-weight: 900;
}

.coach-app-status-note {
  display: block;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1.35;
}

.technical-permission-person {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.technical-permission-person strong,
.technical-permission-person span,
.technical-permission-person small,
.technical-permission-person em {
  overflow-wrap: anywhere;
}

.technical-permission-person strong {
  color: #ffffff;
  font-size: 0.95rem;
}

.technical-permission-person span,
.technical-permission-role span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.78rem;
  font-weight: 900;
}

.technical-permission-person small,
.technical-permission-person em {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.76rem;
  font-weight: 850;
  font-style: normal;
}

.technical-permission-person em {
  color: #12ed79;
}

.technical-permission-role {
  display: grid;
  gap: 6px;
}

.technical-permission-role select {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(18, 237, 121, 0.3);
  border-radius: 8px;
  padding: 8px 10px;
  color: #ffffff;
  background: #082018;
  font: inherit;
  font-weight: 900;
  outline: none;
}

.technical-permission-role select:focus {
  border-color: rgba(18, 237, 121, 0.75);
  box-shadow: 0 0 0 3px rgba(18, 237, 121, 0.12);
}

.technical-permission-all-groups {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  border: 1px solid rgba(18, 237, 121, 0.3);
  border-radius: 8px;
  padding: 8px 10px;
  color: #ffffff;
  background: rgba(18, 237, 121, 0.1);
}

.technical-permission-all-groups[hidden] {
  display: none;
}

.technical-permission-all-groups > i {
  width: 18px;
  height: 18px;
  color: #12ed79;
}

.technical-permission-all-groups span {
  display: grid;
  gap: 1px;
}

.technical-permission-all-groups strong {
  font-size: 0.84rem;
}

.technical-permission-all-groups small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
  font-weight: 850;
}

.technical-permission-groups-menu {
  min-width: 0;
}

.technical-permission-groups-menu summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 40px;
  border: 1px solid rgba(18, 237, 121, 0.3);
  border-radius: 8px;
  padding: 8px 10px;
  color: #ffffff;
  background: #082018;
  font-weight: 950;
  cursor: pointer;
  list-style: none;
}

.technical-permission-groups-menu summary::-webkit-details-marker {
  display: none;
}

.technical-permission-groups-menu summary::after {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  color: #02130f;
  background: #12ed79;
  font-size: 0.9rem;
  font-weight: 1000;
}

.technical-permission-groups-menu[open] summary::after {
  content: "-";
}

.technical-permission-groups-menu summary b {
  margin-left: auto;
  color: #12ed79;
  font-size: 0.76rem;
  white-space: nowrap;
}

.technical-permission-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
  border: 1px solid rgba(18, 237, 121, 0.16);
  border-radius: 8px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.12);
  max-height: 178px;
  overflow: auto;
}

.technical-permission-groups label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  border: 1px solid rgba(18, 237, 121, 0.2);
  border-radius: 8px;
  padding: 6px 9px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.78rem;
  font-weight: 950;
}

.technical-permission-groups input {
  accent-color: #12ed79;
}

.technical-permission-delete {
  align-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  border: 1px solid #e19aa3;
  border-radius: 8px;
  padding: 8px 11px;
  color: #a72f3d;
  background: #fff1f2;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 950;
  cursor: pointer;
}

.technical-permission-delete:hover,
.technical-permission-delete:focus-visible {
  border-color: #bf3445;
  color: #ffffff;
  background: #bf3445;
  outline: none;
}

.technical-permission-delete > svg {
  width: 17px;
  height: 17px;
}

.technical-table-open-button,
.technical-table-close-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid rgba(18, 237, 121, 0.55);
  border-radius: 8px;
  padding: 10px 14px;
  color: #02130f;
  background: #12ed79;
  font: inherit;
  font-weight: 1000;
  cursor: pointer;
}

.technical-table-open-button.attention {
  color: #ffffff;
  background: #087b46;
}

.technical-table-open-button.new-player {
  color: #ffffff;
  border-color: rgba(18, 237, 121, 0.72);
  background: linear-gradient(135deg, #075334, #0a8c4f);
  box-shadow: inset 0 0 0 1px rgba(18, 237, 121, 0.16);
}

.technical-table-open-button b {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  padding: 0 7px;
  color: #02130f;
  background: #12ed79;
  font-size: 0.8rem;
}

.technical-table-open-button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  filter: grayscale(0.45);
}

.technical-table-open-button:disabled:hover,
.technical-table-open-button:disabled:focus-visible {
  color: #ffffff;
  background: #087b46;
}

.technical-table-open-button span {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  color: #12ed79;
  background: #02130f;
  font-size: 1rem;
  line-height: 1;
}

.technical-table-open-button:hover,
.technical-table-open-button:focus-visible,
.technical-table-close-button:hover,
.technical-table-close-button:focus-visible {
  color: #ffffff;
  background: #087b46;
}

.technical-table-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  padding: 18px;
  background: rgba(0, 8, 6, 0.96);
}

.technical-table-fullscreen {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.technical-table-overlay-head {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(18, 237, 121, 0.34);
  border-radius: 8px;
  padding: 12px 14px;
  background: #020f0c;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
}

.technical-table-overlay-head h3 {
  margin-bottom: 0;
  color: #ffffff;
}

.technical-overlay-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.technical-overlay-actions > span {
  display: inline-grid;
  place-items: center;
  min-height: 38px;
  border: 1px solid rgba(18, 237, 121, 0.22);
  border-radius: 8px;
  padding: 8px 10px;
  color: rgba(255, 255, 255, 0.78);
  background: #02130f;
  font-size: 0.82rem;
  font-weight: 950;
  white-space: nowrap;
}

.technical-name-search {
  display: grid;
  grid-template-columns: auto minmax(170px, 240px) auto;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid rgba(18, 237, 121, 0.24);
  border-radius: 8px;
  padding: 6px 8px 6px 10px;
  color: rgba(255, 255, 255, 0.8);
  background: #02130f;
  font-size: 0.82rem;
  font-weight: 950;
}

.technical-name-search input {
  min-width: 0;
  height: 30px;
  border: 1px solid rgba(18, 237, 121, 0.26);
  border-radius: 7px;
  padding: 6px 9px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  font-weight: 850;
  outline: none;
}

.technical-name-search input:focus {
  border-color: rgba(18, 237, 121, 0.78);
  box-shadow: 0 0 0 3px rgba(18, 237, 121, 0.12);
}

.technical-name-search small {
  color: #12ed79;
  font-size: 0.76rem;
  white-space: nowrap;
}

.technical-mini-button,
.technical-save-main,
.technical-danger-mini {
  display: inline-grid;
  place-items: center;
  min-height: 38px;
  border: 1px solid rgba(18, 237, 121, 0.42);
  border-radius: 8px;
  padding: 8px 12px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 1000;
  cursor: pointer;
  white-space: nowrap;
}

.technical-mini-button {
  color: rgba(255, 255, 255, 0.88);
  background: #05231b;
}

.technical-danger-mini {
  border-color: rgba(255, 111, 111, 0.44);
  color: #ff9b9b;
  background: #220c0c;
}

.technical-save-main {
  min-width: 118px;
  color: #02130f;
  background: #12ed79;
  box-shadow: 0 0 0 3px rgba(18, 237, 121, 0.12);
}

.technical-mini-button:hover,
.technical-mini-button:focus-visible,
.technical-save-main:hover,
.technical-save-main:focus-visible,
.technical-danger-mini:hover,
.technical-danger-mini:focus-visible {
  color: #ffffff;
  background: #087b46;
}

.technical-mini-button:disabled,
.technical-save-main:disabled,
.technical-danger-mini:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.technical-overlay-actions .technical-table-close-button {
  min-height: 38px;
  border-color: rgba(255, 255, 255, 0.22);
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.86);
  background: transparent;
}

.technical-overlay-actions .technical-table-close-button:hover,
.technical-overlay-actions .technical-table-close-button:focus-visible {
  border-color: rgba(18, 237, 121, 0.42);
  color: #ffffff;
  background: #05231b;
}

.technical-leadership-card.is-fullscreen {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  height: 100%;
  min-height: 0;
  border-color: rgba(18, 237, 121, 0.3);
  padding: 0;
  background: #010b09;
  overflow: hidden;
}

.technical-leadership-card.is-fullscreen > .chart-card-head {
  display: none;
}

.technical-leadership-card.is-fullscreen .team-measurement-table-stack,
.technical-leadership-card.is-fullscreen .team-measurement-table-block {
  min-height: 0;
}

.technical-leadership-card.is-fullscreen .team-measurement-table-block {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.technical-leadership-card.is-fullscreen .technical-table-wrap {
  height: 100%;
  max-height: none;
}

.technical-leadership-card.is-fullscreen .excel-table {
  min-width: 1480px;
  font-size: 0.8rem;
  line-height: 1.24;
}

.technical-leadership-card .chart-card-head h4 {
  color: #ffffff;
}

.technical-leadership-card .chart-card-head span {
  color: rgba(255, 255, 255, 0.74);
  font-weight: 800;
}

.technical-leadership-card .team-measurement-table-head {
  border-color: rgba(18, 237, 121, 0.32);
  border-radius: 0;
  padding: 9px 11px;
  background: #031c18;
}

.technical-leadership-card .team-measurement-table-head strong {
  color: #12ed79;
}

.technical-leadership-card .team-measurement-table-head span {
  color: rgba(255, 255, 255, 0.72);
}

.technical-leadership-card .excel-table-wrap {
  border-color: rgba(18, 237, 121, 0.32);
  border-radius: 0;
  background: #010b09;
}

.technical-leadership-card .excel-table th,
.technical-leadership-card .excel-table td {
  border-color: rgba(18, 237, 121, 0.18);
  padding: 10px 8px;
  color: rgba(255, 255, 255, 0.88);
  background: #032018;
  vertical-align: middle;
}

.technical-leadership-card .excel-table thead th {
  color: #12ed79;
  background: #031c18;
  box-shadow: inset 0 -1px 0 rgba(18, 237, 121, 0.32);
}

.technical-leadership-card .excel-table tbody th {
  color: #ffffff;
  background: #032018;
}

.technical-leadership-card .excel-table tr:nth-child(even) td {
  background: #032018;
}

.technical-table-wrap {
  max-height: min(70vh, 720px);
}

.technical-table th,
.technical-table td {
  min-width: 118px;
}

.technical-table th:first-child,
.technical-table td:first-child {
  min-width: 72px;
}

.technical-table th:nth-child(2),
.technical-table td:nth-child(2) {
  min-width: 178px;
}

.technical-leadership-card.is-fullscreen .technical-table th:first-child,
.technical-leadership-card.is-fullscreen .technical-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 4;
  background: #02130f;
}

.technical-leadership-card.is-fullscreen .technical-table th:nth-child(2),
.technical-leadership-card.is-fullscreen .technical-table td:nth-child(2) {
  position: sticky;
  left: 76px;
  z-index: 4;
  background: #032018;
  box-shadow: 8px 0 14px rgba(0, 0, 0, 0.18);
}

.technical-leadership-card.is-fullscreen .technical-table thead th:first-child,
.technical-leadership-card.is-fullscreen .technical-table thead th:nth-child(2) {
  z-index: 7;
  background: #031c18;
}

.technical-table th:nth-child(11),
.technical-table td:nth-child(11),
.technical-table th:nth-child(12),
.technical-table td:nth-child(12) {
  min-width: 142px;
}

.technical-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.technical-sort-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 30px;
  border: 1px solid rgba(18, 237, 121, 0.2);
  border-radius: 6px;
  padding: 5px 7px;
  color: #12ed79;
  background: #02130f;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 1000;
  text-align: left;
  cursor: pointer;
}

.technical-sort-button b {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(18, 237, 121, 0.12);
  font-size: 0.8rem;
}

.technical-sort-button:hover,
.technical-sort-button:focus-visible,
.technical-sort-button.is-active {
  border-color: rgba(18, 237, 121, 0.58);
  color: #ffffff;
  background: #087b46;
}

.technical-sort-button.is-active b {
  color: #02130f;
  background: #12ed79;
}

.technical-filter-head {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.technical-filter-head > span {
  color: #12ed79;
  font-weight: 1000;
}

.technical-column-filter {
  width: 100%;
  min-height: 30px;
  border: 1px solid rgba(18, 237, 121, 0.22);
  border-radius: 6px;
  padding: 5px 7px;
  color: rgba(255, 255, 255, 0.94);
  background: #02130f;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 950;
  outline: none;
}

.technical-column-filter:focus {
  border-color: rgba(18, 237, 121, 0.72);
  box-shadow: 0 0 0 3px rgba(18, 237, 121, 0.14);
}

.technical-leadership-card .technical-table tbody tr.bad td,
.technical-leadership-card .technical-table tbody tr.bad th {
  border-color: rgba(18, 237, 121, 0.2);
  background: #032018;
}

.technical-leadership-card .technical-table tbody tr.warn td,
.technical-leadership-card .technical-table tbody tr.warn th {
  border-color: rgba(18, 237, 121, 0.2);
  background: #032018;
}

.technical-leadership-card .technical-table tbody tr.is-selected td,
.technical-leadership-card .technical-table tbody tr.is-selected th {
  box-shadow: inset 0 0 0 999px rgba(18, 237, 121, 0.08);
}

.technical-select-head,
.technical-select-cell {
  min-width: 76px !important;
  text-align: center;
}

.technical-select-cell input {
  width: 18px;
  height: 18px;
  accent-color: #12ed79;
  cursor: pointer;
}

.technical-player-name {
  color: #ffffff;
  font-weight: 1000;
}

.technical-edit-control {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(126, 204, 172, 0.28);
  border-radius: 6px;
  padding: 8px 10px;
  color: rgba(255, 255, 255, 0.94);
  background: #142f28;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 1000;
  line-height: 1.2;
  outline: none;
}

.technical-date-tools {
  display: grid;
  grid-template-columns: minmax(132px, 1fr) minmax(82px, auto);
  gap: 6px;
  align-items: center;
}

.technical-copy-button {
  display: inline-grid;
  place-items: center;
  min-height: 44px;
  border: 1px solid rgba(18, 237, 121, 0.38);
  border-radius: 6px;
  padding: 8px 10px;
  color: #12ed79;
  background: #06241c;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 1000;
  line-height: 1.1;
  cursor: pointer;
  white-space: normal;
}

.technical-copy-button:hover,
.technical-copy-button:focus-visible {
  color: #02130f;
  background: #12ed79;
}

.technical-edit-control.required {
  color: #ffffff;
  font-weight: 1000;
}

.technical-edit-control:focus {
  border-color: rgba(18, 237, 121, 0.86);
  box-shadow: 0 0 0 3px rgba(18, 237, 121, 0.16);
}

.technical-edit-control::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.technical-field-status {
  margin-top: 3px;
}

.technical-field-status .validity-pill {
  min-height: 21px;
  padding: 3px 6px;
  font-size: 0.64rem;
}

.technical-save-button {
  display: inline-grid;
  place-items: center;
  width: 100%;
  min-height: 28px;
  border: 1px solid rgba(18, 237, 121, 0.55);
  border-radius: 8px;
  padding: 5px 8px;
  color: #02130f;
  background: #12ed79;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 1000;
  cursor: pointer;
}

.technical-save-button:hover,
.technical-save-button:focus-visible,
.technical-table tr.is-dirty .technical-save-button {
  color: #ffffff;
  background: #087b46;
}

.technical-player-link {
  color: #ffffff;
  text-align: left;
}

.validity-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 6px 10px;
  color: #061b15;
  font-size: 0.82rem;
  font-weight: 1000;
  white-space: nowrap;
}

.validity-pill.good {
  background: #12ed79;
}

.validity-pill.warn {
  background: #ffd666;
}

.validity-pill.bad {
  background: #ff8f8f;
}

.health-summary {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
}

.health-summary-line {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(18, 237, 121, 0.28);
  border-radius: 8px;
  padding: 14px 16px;
  background: rgba(18, 237, 121, 0.08);
}

.health-summary-line strong {
  color: #ffffff;
  font-size: 1.12rem;
  font-weight: 1000;
}

.health-summary-line span {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

.health-log-card {
  margin-top: 16px;
}

.health-record-list {
  display: grid;
  gap: 10px;
}

.health-record-item {
  position: relative;
  display: grid;
  gap: 10px;
  border: 1px solid rgba(126, 204, 172, 0.22);
  border-radius: 8px;
  padding: 12px 52px 12px 12px;
}

.health-record-item.active {
  border-color: rgba(255, 110, 110, 0.34);
}

.health-record-item.rehab {
  border-color: rgba(255, 214, 102, 0.34);
}

.health-record-item.returned {
  border-color: rgba(18, 237, 121, 0.28);
}

.health-record-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.health-record-main span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.health-record-main strong,
.health-record-main small,
.health-record-item p {
  min-width: 0;
  overflow-wrap: anywhere;
}

.health-record-main strong {
  color: rgba(255, 255, 255, 0.96);
  font-weight: 1000;
}

.health-record-main small,
.health-record-meta,
.health-record-item p {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 800;
  line-height: 1.4;
}

.health-record-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  font-size: 0.84rem;
}

.health-status-pill {
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  padding: 7px 10px;
  color: #061b15;
  background: #12ed79;
  font-size: 0.84rem;
  font-weight: 1000;
}

.health-status-pill.active {
  background: #ff8f8f;
}

.health-status-pill.rehab {
  background: #ffd666;
}

.health-delete {
  position: absolute;
  right: 10px;
  bottom: 10px;
}

.task-summary {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
}

.payment-summary {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
}

.task-summary-line {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(255, 214, 102, 0.28);
  border-radius: 8px;
  padding: 14px 16px;
  background: rgba(255, 214, 102, 0.08);
}

.task-summary-line strong {
  color: #ffffff;
  font-size: 1.12rem;
  font-weight: 1000;
}

.task-summary-line span {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

.attendance-coach-summary {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(126, 204, 172, 0.2);
  border-radius: 8px;
  padding: 12px;
  background: rgba(0, 20, 16, 0.24);
}

.attendance-summary-head {
  display: grid;
  gap: 4px;
}

.attendance-summary-head strong {
  color: rgba(255, 255, 255, 0.96);
  font-size: 1rem;
  font-weight: 1000;
}

.attendance-summary-head span {
  color: rgba(255, 255, 255, 0.68);
  font-weight: 800;
}

.attendance-summary-list {
  display: grid;
  gap: 10px;
}

.attendance-summary-main b {
  border-radius: 999px;
  padding: 7px 10px;
  color: #061b15;
  background: #12ed79;
  font-size: 0.78rem;
  font-weight: 1000;
}

.attendance-summary-notes {
  display: grid;
  gap: 6px;
}

.attendance-summary-notes span {
  border-left: 3px solid rgba(18, 237, 121, 0.46);
  padding-left: 9px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.86rem;
  font-weight: 820;
  line-height: 1.4;
}

.attendance-summary-notes b {
  color: #ffffff;
}

.payment-summary-line {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(18, 237, 121, 0.28);
  border-radius: 8px;
  padding: 14px 16px;
  background: rgba(18, 237, 121, 0.08);
}

.payment-summary-line strong {
  color: #ffffff;
  font-size: 1.12rem;
  font-weight: 1000;
}

.payment-summary-line span {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

.payment-log-card {
  margin-top: 16px;
}

.payment-log-card .section-heading {
  align-items: end;
}

.payment-section-heading {
  gap: 14px;
}

.payment-filter-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(190px, 1fr) minmax(160px, 0.7fr);
  gap: 10px;
  min-width: min(100%, 660px);
}

.payment-log-card .section-heading label,
.payment-filter-row label,
.payment-edit-grid label {
  display: grid;
  gap: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

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

.payment-log-head {
  display: grid;
  gap: 14px;
}

.payment-log-head .section-heading {
  margin: 0;
}

.payment-list-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 14px;
  border-top: 1px solid rgba(126, 204, 172, 0.18);
  border-bottom: 1px solid rgba(126, 204, 172, 0.18);
  padding: 11px 0;
}

.payment-list-toolbar strong {
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 1000;
}

.payment-list-toolbar span {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.76rem;
  font-weight: 800;
}

.parent-payment-list {
  display: grid;
  gap: 12px;
}

.parent-portal-section {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.parent-portal-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 6px;
}

.parent-portal-switch button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid rgba(126, 204, 172, 0.24);
  border-radius: 8px;
  padding: 9px 12px;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.055);
  font-weight: 950;
}

.parent-portal-switch button:hover,
.parent-portal-switch button:focus-visible,
.parent-portal-switch button.is-active {
  border-color: rgba(18, 237, 121, 0.58);
  color: #071b14;
  background: #12ed79;
}

.parent-portal-switch i {
  width: 17px;
  height: 17px;
}

.parent-calendar-card {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(18, 237, 121, 0.22);
  border-radius: 8px;
  padding: 12px;
  background: rgba(0, 20, 16, 0.34);
}

.parent-attendance-stats {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(126, 204, 172, 0.22);
  border-radius: 8px;
  padding: 14px;
  background: rgba(0, 20, 16, 0.34);
}

.parent-attendance-stats-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.parent-attendance-stats-head > div {
  display: grid;
  gap: 3px;
}

.parent-attendance-stats-head strong {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 1000;
}

.parent-attendance-stats-head > span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.75rem;
  font-weight: 800;
}

.parent-attendance-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.parent-attendance-stat {
  display: grid;
  gap: 3px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  padding: 10px;
}

.parent-attendance-stat b {
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 1000;
}

.parent-attendance-stat span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.25;
}

.parent-attendance-stat.attending {
  border-color: rgba(18, 237, 121, 0.55);
  background: rgba(18, 237, 121, 0.12);
}

.parent-attendance-stat.absent {
  border-color: rgba(255, 121, 112, 0.58);
  background: rgba(255, 121, 112, 0.12);
}

.parent-attendance-stat.undecided {
  border-color: rgba(255, 191, 63, 0.58);
  background: rgba(255, 191, 63, 0.12);
}

.parent-calendar-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.parent-calendar-head strong {
  color: rgba(255, 255, 255, 0.96);
  font-size: 1.08rem;
  font-weight: 1000;
  text-transform: capitalize;
}

.parent-calendar-head span {
  color: rgba(255, 255, 255, 0.66);
  font-weight: 850;
}

.parent-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.parent-calendar-grid > b,
.parent-calendar-day {
  min-width: 0;
  border-radius: 8px;
  text-align: center;
}

.parent-calendar-grid > b {
  padding: 4px 2px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.72rem;
  font-weight: 1000;
}

.parent-calendar-day {
  position: relative;
  display: grid;
  align-content: center;
  gap: 2px;
  min-height: 58px;
  border: 1px solid rgba(126, 204, 172, 0.16);
  padding: 6px 4px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.045);
  cursor: default;
}

.parent-calendar-day:focus-visible,
.coach-calendar-day:focus-visible {
  outline: 3px solid rgba(143, 200, 255, 0.9);
  outline-offset: 2px;
}

.parent-calendar-day strong {
  color: inherit;
  font-size: 0.9rem;
  font-weight: 1000;
}

.parent-calendar-day span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1.15;
}

.parent-calendar-day-events {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.parent-calendar-day-events span,
.parent-calendar-day-events em {
  display: block;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.parent-calendar-day-events b {
  margin-right: 3px;
  color: #12ed79;
  font-size: 0.58rem;
}

.parent-calendar-day-events em {
  color: #ffbf3f;
}

.parent-calendar-day.is-muted {
  opacity: 0.38;
}

.parent-calendar-day.has-event {
  border-color: rgba(18, 237, 121, 0.46);
  background: rgba(18, 237, 121, 0.12);
}

.parent-calendar-day.event-type-match:not(.has-response) {
  border-color: rgba(255, 191, 63, 0.82);
  background: rgba(255, 191, 63, 0.18);
}

.parent-calendar-day.event-type-tournament:not(.has-response) {
  border-color: rgba(143, 90, 9, 0.9);
  background: rgba(143, 90, 9, 0.35);
}

.parent-calendar-day.has-response {
  box-shadow: inset 0 -3px 0 #12ed79;
}

.parent-calendar-day.has-response.attending {
  border-color: rgba(18, 237, 121, 0.82);
  background: rgba(18, 237, 121, 0.28);
  box-shadow: inset 0 -4px 0 #12ed79;
}

.parent-calendar-day.has-response.absent {
  border-color: rgba(255, 121, 112, 0.82);
  background: rgba(255, 121, 112, 0.24);
  box-shadow: inset 0 -4px 0 #ff7970;
}

.parent-calendar-day.has-response.mixed {
  border-color: rgba(255, 191, 63, 0.82);
  background: rgba(255, 191, 63, 0.2);
  box-shadow: inset 0 -4px 0 #ffbf3f;
}

@keyframes parent-calendar-reminder-pulse {
  0%, 100% {
    border-color: rgba(255, 121, 112, 0.48);
    background: rgba(255, 121, 112, 0.12);
    box-shadow: inset 0 -3px 0 rgba(255, 121, 112, 0.64);
  }
  50% {
    border-color: rgba(255, 121, 112, 0.92);
    background: rgba(255, 121, 112, 0.27);
    box-shadow: inset 0 -4px 0 #ff7970, 0 0 0 2px rgba(255, 121, 112, 0.12);
  }
}

.parent-calendar-day.needs-attendance-reminder {
  animation: parent-calendar-reminder-pulse 1.9s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .parent-calendar-day.needs-attendance-reminder {
    animation: none;
    border-color: rgba(255, 121, 112, 0.82);
    background: rgba(255, 121, 112, 0.18);
    box-shadow: inset 0 -4px 0 #ff7970;
  }
}

.parent-calendar-day-status {
  display: block;
  overflow: hidden;
  color: #ffffff !important;
  font-size: 0.58rem !important;
  font-weight: 1000 !important;
  line-height: 1.1 !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.parent-calendar-day-status.attending {
  color: #9dffbd !important;
}

.parent-calendar-day-status.absent {
  color: #ffd0cc !important;
}

.parent-calendar-day-status.mixed {
  color: #ffe3a1 !important;
}

.parent-calendar-day-status.reminder {
  color: #ffd0cc !important;
}

.parent-calendar-day-popover {
  position: absolute;
  top: calc(100% + 7px);
  left: 50%;
  z-index: 50;
  display: none;
  width: 230px;
  max-width: calc(100vw - 34px);
  transform: translateX(-50%);
  gap: 9px;
  padding: 11px;
  border: 1px solid rgba(18, 237, 121, 0.64);
  border-radius: 8px;
  color: #f7fffa;
  background: #031b14;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.52);
  text-align: left;
}

.parent-calendar-day.column-1 .parent-calendar-day-popover {
  left: 0;
  transform: none;
}

.parent-calendar-day.column-7 .parent-calendar-day-popover {
  right: 0;
  left: auto;
  transform: none;
}

.parent-calendar-day.is-open .parent-calendar-day-popover {
  display: grid;
}

@media (hover: hover) and (pointer: fine) {
  .parent-calendar-day:hover .parent-calendar-day-popover {
    display: grid;
  }
}

.parent-calendar-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.parent-calendar-popover-close {
  display: none;
  width: 26px;
  min-height: 26px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  padding: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  font: inherit;
  font-weight: 1000;
  cursor: pointer;
}

@media (hover: none), (pointer: coarse) {
  .parent-calendar-popover-close {
    display: inline-grid;
    place-items: center;
  }
}

.parent-calendar-day-popover > strong {
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 1000;
}

.parent-calendar-response-item {
  display: grid;
  gap: 7px;
  padding-top: 8px;
  border-top: 1px solid rgba(126, 204, 172, 0.2);
}

.parent-calendar-response-item.event-type-match {
  border-top-color: rgba(255, 191, 63, 0.58);
}

.parent-calendar-response-item.event-type-tournament {
  border-top-color: rgba(143, 90, 9, 0.66);
}

.parent-calendar-response-item > div:first-child {
  display: grid;
  gap: 2px;
}

.parent-calendar-response-item b {
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 1000;
  overflow-wrap: anywhere;
}

.parent-calendar-response-item small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.parent-calendar-response-state {
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 4px 7px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.68rem !important;
  font-weight: 1000 !important;
}

.parent-calendar-response-state.attending {
  color: #061b15;
  background: #12ed79;
}

.parent-calendar-response-state.absent {
  color: #240806;
  background: #ff7970;
}

.parent-calendar-response-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.calendar-response-button {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  padding: 6px 7px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 1000;
  cursor: pointer;
}

.calendar-response-button.attending:hover,
.calendar-response-button.attending:focus-visible,
.calendar-response-button.attending.is-selected {
  border-color: #12ed79;
  color: #061b15;
  background: #12ed79;
}

.calendar-response-button.absent:hover,
.calendar-response-button.absent:focus-visible,
.calendar-response-button.absent.is-selected {
  border-color: #ff7970;
  color: #240806;
  background: #ff7970;
}

.parent-child-report-list,
.parent-payment-timeline {
  display: grid;
  gap: 14px;
}

.parent-child-report-card,
.parent-payment-timeline-card {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(126, 204, 172, 0.22);
  border-radius: 8px;
  padding: 12px;
  background: rgba(0, 20, 16, 0.34);
}

.parent-child-report-card .report-card,
.parent-child-report-card .report-section {
  margin: 0;
}

.parent-payment-reminder-modal {
  position: sticky;
  top: 12px;
  z-index: 12;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin: 14px 0;
  border: 1px solid rgba(255, 191, 63, 0.38);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(255, 191, 63, 0.18), rgba(18, 237, 121, 0.08)),
    rgba(4, 24, 20, 0.96);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
}

.parent-payment-reminder-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: #071b14;
  background: #ffbf3f;
}

.parent-payment-reminder-icon svg {
  width: 22px;
  height: 22px;
}

.parent-payment-reminder-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.parent-payment-reminder-copy h4 {
  margin: 0;
  color: rgba(255, 255, 255, 0.96);
  font-size: 1.02rem;
  line-height: 1.18;
}

.parent-payment-reminder-copy span {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 850;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.parent-payment-reminder-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.parent-notification-preference,
.parent-attendance-reminder {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(126, 204, 172, 0.22);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(0, 20, 16, 0.3);
}

.parent-notification-preference > div,
.parent-attendance-reminder-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.parent-notification-preference strong,
.parent-attendance-reminder-copy h4 {
  margin: 0;
  color: rgba(255, 255, 255, 0.96);
  font-weight: 1000;
}

.parent-notification-preference span,
.parent-attendance-reminder-copy span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
}

.notification-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.8rem;
  font-weight: 950;
}

.notification-toggle input {
  width: 18px;
  height: 18px;
  accent-color: #12ed79;
}

.parent-attendance-reminder {
  justify-content: flex-start;
  border-color: rgba(255, 191, 63, 0.42);
  background: linear-gradient(135deg, rgba(255, 191, 63, 0.14), rgba(18, 237, 121, 0.06)), rgba(0, 20, 16, 0.72);
}

.parent-attendance-reminder.is-email {
  border-color: rgba(126, 190, 255, 0.42);
  background: linear-gradient(135deg, rgba(126, 190, 255, 0.13), rgba(18, 237, 121, 0.06)), rgba(0, 20, 16, 0.72);
}

.parent-attendance-reminder-icon {
  display: grid;
  place-items: center;
  width: 38px;
  min-width: 38px;
  height: 38px;
  border-radius: 8px;
  color: #17211d;
  background: #ffbf3f;
}

.parent-attendance-reminder.is-email .parent-attendance-reminder-icon {
  background: #8fc8ff;
}

.parent-attendance-reminder-icon svg {
  width: 20px;
  height: 20px;
}

.parent-attendance-reminder-copy {
  flex: 1 1 auto;
}

.parent-program-response-heading {
  margin-top: 14px;
}

.parent-program-list,
.parent-document-list {
  display: grid;
  gap: 10px;
}

.parent-program-card,
.attendance-summary-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(126, 204, 172, 0.22);
  border-radius: 8px;
  padding: 12px;
  background: rgba(0, 20, 16, 0.34);
}

.parent-program-card.attending {
  border-color: rgba(18, 237, 121, 0.36);
  background: rgba(18, 237, 121, 0.08);
}

.parent-program-card.absent {
  border-color: rgba(255, 121, 112, 0.4);
  background: rgba(255, 121, 112, 0.08);
}

.parent-program-card.event-type-match {
  border-color: rgba(255, 191, 63, 0.58);
  background: rgba(255, 191, 63, 0.1);
}

.parent-program-card.event-type-tournament {
  border-color: rgba(143, 90, 9, 0.72);
  background: rgba(143, 90, 9, 0.18);
}

.parent-program-main,
.attendance-summary-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.parent-program-main span,
.attendance-summary-main span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.parent-program-main strong,
.attendance-summary-main strong {
  color: rgba(255, 255, 255, 0.96);
  font-weight: 1000;
}

.parent-program-main small,
.attendance-summary-main small,
.parent-program-card p {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
  line-height: 1.4;
}

.parent-program-meta,
.attendance-summary-counts,
.attendance-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.parent-program-meta span,
.attendance-summary-counts > span {
  border: 1px solid rgba(126, 204, 172, 0.2);
  border-radius: 999px;
  padding: 6px 9px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.82rem;
  font-weight: 900;
}

.attendance-status-pill {
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  padding: 7px 10px;
  color: #061b15;
  background: rgba(255, 255, 255, 0.66);
  font-size: 0.78rem;
  font-weight: 1000;
}

.attendance-status-pill.attending,
.attendance-summary-counts .attending {
  color: #061b15;
  background: #12ed79;
}

.attendance-status-pill.absent,
.attendance-summary-counts .absent {
  color: #240806;
  background: #ff7970;
}

.attendance-status-pill.undecided,
.attendance-summary-counts .undecided {
  color: #211601;
  background: #ffbf3f;
}

.attendance-summary-count {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: help;
}

.attendance-summary-count:focus-visible {
  outline: 3px solid rgba(143, 200, 255, 0.9);
  outline-offset: 2px;
}

.attendance-summary-count > b {
  font-weight: 1000;
}

.attendance-summary-label {
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  color: inherit !important;
  background: transparent !important;
  font-size: inherit !important;
}

.attendance-roster-popover {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  z-index: 60;
  display: none;
  width: 220px;
  max-width: calc(100vw - 36px);
  border: 1px solid rgba(18, 237, 121, 0.58);
  border-radius: 8px;
  padding: 9px 10px;
  color: #f7fffa !important;
  background: #031b14 !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
  font-size: 0.76rem !important;
  font-weight: 850 !important;
  line-height: 1.35 !important;
  white-space: normal;
}

.attendance-summary-count:hover .attendance-roster-popover,
.attendance-summary-count:focus .attendance-roster-popover,
.attendance-summary-count:focus-within .attendance-roster-popover {
  display: block;
}

.attendance-note {
  display: grid;
  gap: 6px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.attendance-note textarea {
  min-height: 66px;
  text-transform: none;
}

.parent-document-link {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(126, 204, 172, 0.22);
  border-radius: 8px;
  padding: 11px 12px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(18, 237, 121, 0.07);
  text-decoration: none;
}

.parent-document-link:hover,
.parent-document-link:focus-visible {
  border-color: rgba(18, 237, 121, 0.55);
}

.parent-document-link strong {
  color: #ffffff;
  font-weight: 1000;
}

.parent-document-link span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
  font-weight: 850;
}

.payment-record-item {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(126, 204, 172, 0.22);
  border-radius: 8px;
  padding: 15px;
  background: rgba(0, 20, 16, 0.32);
}

.payment-record-item.overdue {
  border-color: rgba(255, 110, 110, 0.48);
  background: rgba(255, 110, 110, 0.08);
}

.payment-record-item.unpaid,
.payment-record-item.due-soon {
  border-color: rgba(255, 214, 102, 0.34);
}

.payment-record-item.due-soon {
  background: rgba(255, 214, 102, 0.09);
}

.payment-record-item.paid {
  border-color: rgba(18, 237, 121, 0.28);
}

.payment-record-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.payment-record-main span:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.payment-record-person {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.payment-person-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.payment-person-meta span {
  border: 1px solid rgba(126, 204, 172, 0.22);
  border-radius: 999px;
  padding: 4px 8px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.7rem;
  font-weight: 850;
}

.payment-record-state {
  display: grid;
  justify-items: end;
  gap: 5px;
}

.payment-due-badge {
  color: #ffe6a8;
  font-size: 0.68rem;
  font-weight: 950;
  text-align: right;
}

.payment-cadence-pill {
  border: 1px solid rgba(18, 237, 121, 0.36);
  border-radius: 999px;
  padding: 5px 8px;
  color: #dff8e8;
  background: rgba(18, 237, 121, 0.1);
  font-size: 0.7rem;
  font-weight: 950;
  text-align: center;
  white-space: nowrap;
}

.payment-player-button,
.payment-record-main small,
.payment-record-item p {
  min-width: 0;
  overflow-wrap: anywhere;
}

.payment-player-button {
  width: fit-content;
  max-width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(18, 237, 121, 0.5);
  padding: 0;
  color: rgba(255, 255, 255, 0.96);
  background: transparent;
  font-weight: 1000;
  text-align: left;
}

.payment-player-button:hover,
.payment-player-button:focus-visible {
  color: #12ed79;
}

.payment-record-main strong {
  color: rgba(255, 255, 255, 0.96);
  font-weight: 1000;
}

.payment-record-main small,
.payment-record-meta,
.payment-record-item p {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
  line-height: 1.4;
}

.payment-edit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.payment-record-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.payment-record-overview > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  border: 1px solid rgba(126, 204, 172, 0.18);
  border-radius: 7px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.035);
}

.payment-record-overview b {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.67rem;
  font-weight: 950;
  text-transform: uppercase;
}

.payment-record-overview strong,
.payment-record-overview span {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #f4fff8;
  font-size: 0.8rem;
  font-weight: 900;
  line-height: 1.3;
}

.payment-record-edit {
  border-top: 1px solid rgba(126, 204, 172, 0.18);
  padding-top: 12px;
}

.payment-record-edit summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #dff8e8;
  font-size: 0.78rem;
  font-weight: 950;
  cursor: pointer;
  list-style: none;
}

.payment-record-edit summary::-webkit-details-marker {
  display: none;
}

.payment-record-edit summary::after {
  content: "+";
  color: #12ed79;
  font-size: 1.1rem;
  line-height: 1;
}

.payment-record-edit[open] summary::after {
  content: "−";
}

.payment-record-edit summary:focus-visible {
  outline: 3px solid rgba(143, 200, 255, 0.9);
  outline-offset: 3px;
}

.payment-record-edit .payment-edit-grid {
  margin-top: 12px;
}

.payment-edit-actions {
  border-top: 0;
  padding-top: 0;
}

.payment-note-field {
  grid-column: span 2;
}

.payment-detail-card {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(18, 237, 121, 0.22);
  border-radius: 8px;
  padding: 12px;
  background: rgba(0, 55, 40, 0.3);
}

.payment-detail-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
}

.payment-detail-head h5 {
  margin: 0;
  color: rgba(255, 255, 255, 0.96);
  font-size: 1.05rem;
}

.payment-detail-head span {
  border: 1px solid rgba(126, 204, 172, 0.28);
  border-radius: 999px;
  padding: 6px 9px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.045);
  font-weight: 900;
}

.payment-detail-grid,
.payment-history-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.payment-detail-grid span,
.payment-history-box {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(126, 204, 172, 0.2);
  border-radius: 8px;
  padding: 10px;
  background: rgba(0, 20, 16, 0.24);
}

.payment-detail-grid b,
.payment-history-box strong {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.payment-history-box.paid {
  border-color: rgba(18, 237, 121, 0.3);
}

.payment-history-box.unpaid {
  border-color: rgba(255, 214, 102, 0.3);
}

.payment-history-box ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.payment-history-box li {
  display: grid;
  gap: 2px;
  min-width: 0;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 850;
}

.payment-history-box small,
.payment-history-box p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-weight: 800;
  line-height: 1.4;
}

.parent-payment-data {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.parent-payment-data span,
.parent-payment-choice {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(126, 204, 172, 0.2);
  border-radius: 8px;
  padding: 10px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.045);
  font-weight: 900;
}

.parent-payment-data b,
.parent-payment-choice {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.parent-payment-choice select {
  width: 100%;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.96);
  text-transform: none;
}

.payment-record-meta,
.payment-record-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
}

.payment-record-item > .payment-record-actions {
  border-top: 1px solid rgba(126, 204, 172, 0.18);
  padding-top: 12px;
}

.payment-record-meta span {
  border: 1px solid rgba(126, 204, 172, 0.2);
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(255, 255, 255, 0.045);
}

.payment-status-pill {
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  padding: 7px 10px;
  color: #061b15;
  background: #12ed79;
  font-size: 0.84rem;
  font-weight: 1000;
  white-space: nowrap;
}

.payment-status-pill.overdue {
  background: #ff8f8f;
}

.payment-status-pill.unpaid {
  background: #ffd666;
}

.payment-status-pill.paid {
  background: #12ed79;
}

.payment-notification-list {
  display: grid;
  gap: 6px;
}

.payment-notification-list span {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border: 1px solid rgba(126, 204, 172, 0.2);
  border-radius: 8px;
  padding: 8px 10px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(18, 237, 121, 0.06);
  font-weight: 850;
}

.payment-notification-list small {
  color: rgba(255, 255, 255, 0.58);
}

.training-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.training-summary-line {
  min-width: 0;
  border: 1px solid rgba(126, 204, 172, 0.22);
  border-radius: 8px;
  padding: 12px;
  background: rgba(0, 20, 16, 0.36);
}

.training-summary-line strong {
  display: block;
  color: #ffffff;
  font-size: 1.35rem;
}

.training-summary-line span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
}

.training-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.6fr);
  gap: 12px;
  margin-bottom: 14px;
}

.training-toolbar label,
.training-file-field {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
  font-weight: 900;
}

.training-file-field {
  border: 1px dashed rgba(126, 204, 172, 0.38);
  border-radius: 8px;
  padding: 12px;
  background: rgba(0, 117, 78, 0.14);
  cursor: pointer;
}

.training-file-field span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
  line-height: 1.35;
}

.training-library-card {
  display: grid;
  gap: 12px;
}

.training-list {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.training-material-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--club-surface);
}

.training-material-main {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.training-material-main strong {
  color: rgba(255, 255, 255, 0.94);
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.training-material-main p {
  margin: 0;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.training-category-pill {
  width: max-content;
  max-width: 100%;
  border: 1px solid rgba(2, 214, 125, 0.4);
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--accent);
  background: rgba(2, 214, 125, 0.1);
  font-size: 0.72rem;
  font-weight: 900;
}

.training-material-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: 170px;
}

.task-log-card {
  margin-top: 16px;
}

.coach-calendar-card {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
}

.coach-program-dialog-card {
  width: min(760px, calc(100vw - 28px));
  border: 2px solid rgba(18, 237, 121, 0.64);
  border-radius: 10px;
  background: #02130f;
  color: #f4fbf6;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.68);
}

#coachProgramDialog::backdrop {
  background: rgba(0, 12, 9, 0.82);
  backdrop-filter: blur(5px);
}

.coach-program-dialog-card h3,
.coach-program-dialog-card label,
.coach-program-dialog-card .dialog-subtitle,
.coach-program-dialog-card .dialog-form-note {
  color: #f4fbf6;
}

.coach-program-dialog-card input,
.coach-program-dialog-card select,
.coach-program-dialog-card textarea {
  min-height: 44px;
  border: 2px solid rgba(126, 204, 172, 0.42);
  border-radius: 7px;
  color: #041a12;
  background: #f5faf7;
  font-weight: 850;
}

.coach-program-dialog-card textarea {
  min-height: 92px;
}

.coach-program-dialog-card input:focus,
.coach-program-dialog-card select:focus,
.coach-program-dialog-card textarea:focus {
  border-color: #12ed79;
  box-shadow: 0 0 0 3px rgba(18, 237, 121, 0.18);
  outline: none;
}

.coach-program-dialog-card input::placeholder,
.coach-program-dialog-card textarea::placeholder {
  color: rgba(4, 26, 18, 0.55);
}

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

.coach-program-location {
  grid-column: 1 / -1;
}

.coach-program-repeat {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(126, 204, 172, 0.38);
  border-radius: 8px;
  background: rgba(18, 237, 121, 0.06);
}

.coach-program-repeat legend {
  padding: 0 6px;
  color: #f4fbf6;
  font-weight: 900;
}

.coach-repeat-toggle,
.coach-repeat-weekdays > div,
.coach-repeat-weekdays > div label {
  display: flex;
  align-items: center;
}

.coach-repeat-toggle {
  width: fit-content;
  gap: 9px;
  cursor: pointer;
  font-weight: 900;
}

#coachProgramDialog .coach-program-dialog-card input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  margin: 0;
  accent-color: #12ed79;
  cursor: pointer;
}

.coach-repeat-options {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, 0.55fr);
  gap: 14px;
  align-items: end;
}

.coach-repeat-weekdays {
  display: grid;
  gap: 7px;
}

.coach-repeat-weekdays > span {
  color: rgba(244, 251, 246, 0.8);
  font-size: 0.82rem;
  font-weight: 850;
}

.coach-repeat-weekdays > div {
  flex-wrap: wrap;
  gap: 7px;
}

.coach-repeat-weekdays > div label {
  gap: 5px;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid rgba(126, 204, 172, 0.3);
  border-radius: 6px;
  background: rgba(1, 18, 13, 0.42);
  font-size: 0.8rem;
  font-weight: 900;
}

.coach-repeat-until {
  display: grid;
  gap: 6px;
}

.dialog-form-note {
  margin: 0;
  color: rgba(244, 251, 246, 0.68) !important;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.45;
}

.coach-calendar-form {
  margin-bottom: 0;
}

.coach-calendar-form-grid {
  grid-template-columns: minmax(180px, 1.2fr) minmax(140px, 0.8fr) minmax(110px, 0.62fr) minmax(130px, 0.72fr) minmax(150px, 0.9fr) minmax(180px, 1fr);
}

.coach-calendar-board {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(280px, 0.78fr);
  gap: 14px;
  align-items: start;
}

.coach-calendar-board:not(.has-feedback-selection) {
  grid-template-columns: minmax(0, 1fr);
}

.coach-calendar-day {
  cursor: pointer;
}

.coach-calendar-day:hover,
.coach-calendar-day:focus {
  border-color: rgba(18, 237, 121, 0.82);
  background: rgba(18, 237, 121, 0.22);
}

.coach-calendar-day.event-type-match:not(:hover):not(:focus) {
  border-color: rgba(255, 191, 63, 0.82);
  background: rgba(255, 191, 63, 0.18);
}

.coach-calendar-day.event-type-tournament:not(:hover):not(:focus) {
  border-color: rgba(143, 90, 9, 0.9);
  background: rgba(143, 90, 9, 0.35);
}

.coach-calendar-event-chip {
  position: relative;
  display: block;
  width: 100%;
  overflow: visible;
  border: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.86);
  background: transparent;
  font: inherit;
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.coach-calendar-event-chip b {
  margin-right: 3px;
  color: #12ed79;
  font-size: 0.58rem;
}

.coach-calendar-event-chip.event-type-match {
  color: #ffdf83;
}

.coach-calendar-event-chip.event-type-tournament {
  color: #f2c875;
}

.coach-calendar-event-chip > small {
  position: absolute;
  top: calc(100% + 7px);
  left: 50%;
  z-index: 55;
  display: none;
  width: max-content;
  max-width: 190px;
  transform: translateX(-50%);
  border: 1px solid rgba(18, 237, 121, 0.58);
  border-radius: 6px;
  padding: 7px 9px;
  color: #f7fffa;
  background: #031b14;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.48);
  font-size: 0.68rem;
  font-weight: 1000;
  line-height: 1.2;
  white-space: normal;
}

.coach-calendar-event-chip:hover > small,
.coach-calendar-event-chip:focus-visible > small {
  display: block;
}

.coach-calendar-event-chip:focus-visible {
  outline: 2px solid rgba(143, 200, 255, 0.9);
  outline-offset: 2px;
}

.coach-calendar-event-list {
  display: grid;
  gap: 10px;
}

.coach-calendar-event-card {
  position: relative;
  display: grid;
  gap: 10px;
  border: 1px solid rgba(126, 204, 172, 0.22);
  border-radius: 8px;
  padding: 12px;
  background: rgba(0, 20, 16, 0.34);
  cursor: pointer;
}

.coach-calendar-event-card:hover,
.coach-calendar-event-card:focus-visible {
  border-color: rgba(18, 237, 121, 0.76);
  outline: none;
}

.coach-calendar-event-card.event-type-match {
  border-color: rgba(255, 191, 63, 0.58);
  background: rgba(255, 191, 63, 0.1);
}

.coach-calendar-event-card.event-type-tournament {
  border-color: rgba(143, 90, 9, 0.72);
  background: rgba(143, 90, 9, 0.18);
}

.coach-calendar-event-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.coach-calendar-event-main span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.coach-calendar-event-main strong {
  color: rgba(255, 255, 255, 0.96);
  font-weight: 1000;
}

.coach-calendar-event-main small,
.coach-calendar-event-card p {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 800;
  line-height: 1.4;
}

.coach-calendar-event-main b {
  border-radius: 999px;
  padding: 7px 10px;
  color: #061b15;
  background: #12ed79;
  font-size: 0.78rem;
  font-weight: 1000;
}

.coach-calendar-event-card.event-type-match .coach-calendar-event-main b {
  color: #2b1a02;
  background: #ffbf3f;
}

.coach-calendar-event-card.event-type-tournament .coach-calendar-event-main b {
  color: #fff2cf;
  background: #8f5a09;
}

.coach-calendar-feedback-trigger {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: fit-content;
  border: 1px solid rgba(18, 237, 121, 0.58);
  border-radius: 6px;
  padding: 7px 9px;
  color: #061b15;
  background: #12ed79;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 1000;
  cursor: pointer;
}

.coach-calendar-feedback-trigger svg {
  width: 15px;
  height: 15px;
}

.coach-calendar-event-card:hover .coach-calendar-feedback-trigger,
.coach-calendar-event-card:focus-within .coach-calendar-feedback-trigger,
.coach-calendar-event-card:focus .coach-calendar-feedback-trigger {
  display: inline-flex;
}

.coach-feedback-panel {
  display: grid;
  gap: 14px;
  min-width: 0;
  border: 2px solid rgba(18, 237, 121, 0.62);
  border-radius: 8px;
  padding: 14px;
  color: #f6fff9;
  background: #062319;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

.coach-feedback-panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.coach-feedback-panel-head > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.coach-feedback-panel-head h4 {
  margin: 0;
  color: #ffffff;
  font-size: 1.12rem;
  font-weight: 1000;
}

.coach-feedback-panel .eyebrow {
  color: #12ed79;
}

.coach-feedback-panel-head span {
  color: #d8f2e2;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.coach-feedback-close {
  flex: 0 0 auto;
}

.coach-feedback-panel-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 6px;
}

.coach-feedback-panel-actions button {
  min-height: 34px;
  padding: 7px 9px;
  font-size: 0.72rem;
}

.coach-feedback-panel-actions svg {
  width: 15px;
  height: 15px;
}

.coach-feedback-panel-actions .ghost-action {
  border-color: rgba(216, 242, 226, 0.62);
  color: #f6fff9;
  background: rgba(255, 255, 255, 0.1);
}

.coach-feedback-panel-actions .ghost-action:hover,
.coach-feedback-panel-actions .ghost-action:focus-visible {
  border-color: #12ed79;
  color: #061b15;
  background: #12ed79;
}

.coach-feedback-panel-actions .danger-action {
  border: 2px solid #ff9a96;
  color: #ffffff !important;
  background: #a51f24 !important;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
}

.coach-feedback-panel-actions .danger-action:hover,
.coach-feedback-panel-actions .danger-action:focus-visible {
  border-color: #ffffff;
  color: #2a0505 !important;
  background: #ff8a86 !important;
  text-shadow: none;
}

.coach-feedback-roster-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.coach-feedback-roster {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  padding: 10px;
}

.coach-feedback-roster.attending {
  border-color: rgba(18, 237, 121, 0.46);
  background: rgba(18, 237, 121, 0.09);
}

.coach-feedback-roster.absent {
  border-color: rgba(255, 121, 112, 0.5);
  background: rgba(255, 121, 112, 0.09);
}

.coach-feedback-roster.undecided {
  border-color: rgba(255, 191, 63, 0.5);
  background: rgba(255, 191, 63, 0.09);
}

.coach-feedback-roster-head {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.coach-feedback-roster-head strong {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 1000;
}

.coach-feedback-roster-head span {
  color: #f6fff9;
  font-size: 0.76rem;
  font-weight: 900;
}

.coach-feedback-roster ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 18px;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.3;
}

.coach-feedback-roster p {
  margin: 0;
  color: #cfe9da;
  font-size: 0.75rem;
  font-weight: 800;
}

.coach-actual-attendance {
  display: grid;
  gap: 10px;
  border-top: 1px solid rgba(216, 242, 226, 0.22);
  padding-top: 12px;
}

.coach-actual-attendance-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.coach-actual-attendance-head > div:first-child {
  display: grid;
  gap: 3px;
}

.coach-actual-attendance-head h5 {
  margin: 0;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 1000;
}

.coach-actual-attendance-head span {
  color: #cfe9da;
  font-size: 0.73rem;
  font-weight: 800;
}

.coach-actual-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 5px;
}

.coach-actual-summary > span {
  border: 1px solid rgba(216, 242, 226, 0.2);
  border-radius: 999px;
  padding: 5px 8px;
  color: #f6fff9;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.68rem;
  font-weight: 850;
}

.coach-actual-summary .present {
  border-color: rgba(18, 237, 121, 0.46);
  background: rgba(18, 237, 121, 0.12);
}

.coach-actual-summary .absent {
  border-color: rgba(255, 121, 112, 0.5);
  background: rgba(255, 121, 112, 0.12);
}

.coach-actual-summary .unmarked {
  border-color: rgba(255, 191, 63, 0.5);
  background: rgba(255, 191, 63, 0.12);
}

.coach-actual-roster {
  display: grid;
  gap: 6px;
}

.coach-actual-player-row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(216, 242, 226, 0.14);
  border-radius: 7px;
  padding: 8px 9px;
  background: rgba(255, 255, 255, 0.045);
}

.coach-actual-player {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.coach-actual-player strong {
  overflow: hidden;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.coach-actual-player small {
  width: fit-content;
  border-radius: 999px;
  padding: 3px 6px;
  color: #061b15;
  background: #ffbf3f;
  font-size: 0.62rem;
  font-weight: 900;
}

.coach-actual-player small.attending {
  background: #12ed79;
}

.coach-actual-player small.absent {
  background: #ff7970;
}

.coach-actual-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(94px, 1fr)) 34px;
  gap: 5px;
}

.coach-actual-actions button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(216, 242, 226, 0.34);
  border-radius: 6px;
  padding: 6px 8px;
  color: #f6fff9;
  background: rgba(255, 255, 255, 0.08);
  font: inherit;
  font-size: 0.67rem;
  font-weight: 950;
  cursor: pointer;
}

.coach-actual-actions button svg {
  width: 15px;
  height: 15px;
}

.coach-actual-actions button:not(:disabled):hover,
.coach-actual-actions button:not(:disabled):focus-visible {
  border-color: #ffffff;
  outline: none;
}

.coach-actual-actions .actual-present.is-active {
  border-color: #12ed79;
  color: #061b15;
  background: #12ed79;
}

.coach-actual-actions .actual-absent.is-active {
  border-color: #ff7970;
  color: #240806;
  background: #ff7970;
}

.coach-actual-actions .actual-clear {
  padding: 6px;
}

.coach-actual-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.coach-calendar-event-card .small-delete {
  position: absolute;
  right: 10px;
  bottom: 10px;
}

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

.task-bulk-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(18, 237, 121, 0.28);
  border-radius: 8px;
  padding: 12px;
  color: rgba(255, 255, 255, 0.88);
  background: #02130f;
}

.task-bulk-actions div:first-child {
  display: grid;
  gap: 2px;
}

.task-bulk-actions strong {
  color: #ffffff;
  font-weight: 1000;
}

.task-bulk-actions span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
  font-weight: 850;
}

.task-bulk-action-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.task-bulk-delete {
  position: static;
  min-height: 42px;
  width: auto;
  border-radius: 8px;
  padding: 10px 12px;
}

.task-bulk-actions button:disabled {
  opacity: 0.46;
  cursor: not-allowed;
}

.task-item {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(126, 204, 172, 0.22);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.task-item.is-selected {
  border-color: rgba(18, 237, 121, 0.54);
  box-shadow: inset 4px 0 0 #12ed79;
}

.task-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.84rem;
  font-weight: 900;
  cursor: pointer;
}

.task-select input {
  width: 18px;
  height: 18px;
  accent-color: #12ed79;
  cursor: pointer;
}

.task-item.task-type-motoric {
  border-color: rgba(18, 237, 121, 0.38);
  background: linear-gradient(180deg, rgba(7, 67, 52, 0.78), rgba(3, 28, 24, 0.98));
  box-shadow: inset 5px 0 0 #12ed79;
}

.task-item.overdue {
  border-color: rgba(255, 110, 110, 0.38);
}

.task-item.soon {
  border-color: rgba(255, 214, 102, 0.38);
}

.task-item.done {
  opacity: 0.68;
}

.task-item-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.task-item-main span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.task-item-main strong,
.task-item-main small,
.task-item p {
  min-width: 0;
  overflow-wrap: anywhere;
}

.task-item-main strong {
  color: rgba(255, 255, 255, 0.96);
  font-weight: 1000;
}

.task-item.task-type-motoric .task-item-main strong {
  color: #ffffff;
  font-size: 1.04rem;
  line-height: 1.22;
}

.task-item.task-type-motoric .task-item-main small,
.task-item.task-type-motoric .task-meta,
.task-item.task-type-motoric p {
  color: rgba(255, 255, 255, 0.82);
}

.task-item-main small,
.task-meta,
.task-item p {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 800;
  line-height: 1.4;
}

.task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  font-size: 0.84rem;
}

.task-status-pill {
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  padding: 7px 10px;
  color: #061b15;
  background: #12ed79;
  font-size: 0.84rem;
  font-weight: 1000;
}

.task-status-pill.overdue {
  background: #ff8f8f;
}

.task-status-pill.soon {
  background: #ffd666;
}

.task-status-pill.upcoming {
  background: #9dd7ff;
}

.task-status-pill.done {
  background: rgba(255, 255, 255, 0.72);
}

.task-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.task-email-missing {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid rgba(255, 214, 102, 0.3);
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.84rem;
  font-weight: 900;
}

.task-actions .small-delete {
  position: static;
}

.inline-link {
  border: 0;
  padding: 0;
  color: #12ed79;
  background: transparent;
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}

.inline-link:hover,
.inline-link:focus-visible {
  text-decoration: underline;
}

.home-global-panel .field-document-upload {
  border-color: rgba(18, 237, 121, 0.38);
  color: rgba(255, 255, 255, 0.92);
  background: rgba(18, 237, 121, 0.08);
}

.home-global-panel .field-document-item.is-active {
  border-color: rgba(18, 237, 121, 0.58);
  box-shadow: inset 4px 0 0 #12ed79;
}

.home-global-panel .field-document-preview-head a {
  color: #12ed79;
}

.home-global-panel .coach-phone-link {
  color: #12ed79;
}

.home-global-panel .field-document-frame {
  border-color: rgba(126, 204, 172, 0.24);
}

.home-global-panel input,
.home-global-panel textarea,
.home-global-panel select {
  border-color: rgba(126, 204, 172, 0.26);
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.065);
}

.home-global-panel input:focus,
.home-global-panel textarea:focus,
.home-global-panel select:focus {
  border-color: #12ed79;
  box-shadow: 0 0 0 3px rgba(18, 237, 121, 0.14);
}

.player-detail {
  padding: 22px;
}

.profile-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.profile-header > * {
  min-width: 0;
}

.profile-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.meta-pill,
.risk-pill {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 30px;
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--muted);
  background: #f0f4f2;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.risk-pill.low {
  color: var(--green);
  background: var(--mint);
}

.risk-pill.medium {
  color: #8a630d;
  background: #fff3c8;
}

.risk-pill.high {
  color: var(--danger);
  background: var(--danger-bg);
}

.tabs {
  display: flex;
  gap: 8px;
  padding: 16px 0;
  overflow-x: auto;
  min-width: 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
  scrollbar-width: thin;
}

.tab {
  flex: 0 0 auto;
}

.tab:hover {
  border-color: rgba(0, 117, 78, 0.28);
  color: var(--green);
  background: var(--panel);
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

.result-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  margin-bottom: 16px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--club-surface);
}

.result-subtab {
  flex: 0 1 auto;
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--muted);
  background: transparent;
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1.2;
}

.result-subtab:hover,
.result-subtab.is-active {
  border-color: rgba(0, 117, 78, 0.28);
  color: var(--green);
  background: var(--white);
}

.result-view {
  display: none;
}

.result-view.is-active {
  display: block;
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  min-width: 0;
}

.overview-grid.profile-only,
.visual-grid.single-grid {
  grid-template-columns: minmax(0, 1fr);
}

.info-block {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--club-surface);
}

.player-score-summary {
  display: grid;
  gap: 14px;
}

.score-summary-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
  min-width: 0;
}

.score-summary-head h4 {
  margin-bottom: 4px;
}

.score-summary-head span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
}

.score-overall {
  display: inline-grid;
  place-items: center;
  min-width: 108px;
  border: 1px solid rgba(18, 237, 121, 0.38);
  border-radius: 999px;
  padding: 9px 12px;
  color: #052e24;
  background: #12ed79;
  font-size: 1.08rem;
  font-weight: 1000;
  white-space: nowrap;
}

.score-overall.neutral,
.score-overall.warn {
  border-color: rgba(255, 191, 63, 0.66);
  color: #2d1d00;
  background: #ffbf3f;
}

.score-overall.bad {
  border-color: rgba(255, 121, 112, 0.72);
  color: #2d0704;
  background: #ff7970;
}

.score-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  min-width: 0;
}

.score-summary-tile {
  display: grid;
  gap: 7px;
  min-width: 0;
  border: 1px solid rgba(126, 204, 172, 0.24);
  border-left-width: 5px;
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.045);
}

.score-summary-tile.good {
  border-left-color: #12ed79;
}

.score-summary-tile.neutral,
.score-summary-tile.warn {
  border-left-color: #ffbf3f;
}

.score-summary-tile.bad {
  border-left-color: #ff7970;
}

.score-summary-tile span,
.score-summary-tile small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.3;
}

.score-summary-tile strong {
  color: #ffffff;
  font-size: 1.22rem;
  line-height: 1;
}

.score-summary-tile .value-with-info {
  justify-content: space-between;
}

.score-narrative {
  display: grid;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(126, 204, 172, 0.2);
}

.score-feedback-card .score-summary-grid {
  margin-bottom: 14px;
}

.orthopedic-reference-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  border: 1px solid rgba(126, 204, 172, 0.22);
  border-radius: 8px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.16);
}

.orthopedic-reference-card-stack {
  display: grid;
  gap: 12px;
}

.orthopedic-reference-head {
  display: grid;
  gap: 3px;
}

.orthopedic-reference-head strong {
  color: #ffffff;
  font-size: 0.92rem;
}

.orthopedic-reference-head span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
}

.orthopedic-reference-head small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.35;
}

.orthopedic-reference-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 8px;
}

.orthopedic-reference-summary span {
  display: grid;
  gap: 3px;
  min-width: 0;
  border: 1px solid rgba(18, 237, 121, 0.2);
  border-radius: 8px;
  padding: 8px 10px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.2;
  background: rgba(18, 237, 121, 0.08);
}

.orthopedic-reference-summary strong {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.orthopedic-reference-table {
  display: grid;
  gap: 6px;
}

.orthopedic-reference-row {
  display: grid;
  grid-template-columns: minmax(94px, auto) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(126, 204, 172, 0.16);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.035);
}

.orthopedic-reference-row.is-current {
  border-color: rgba(18, 237, 121, 0.58);
  background: rgba(18, 237, 121, 0.12);
}

.orthopedic-reference-row strong {
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.82rem;
}

.orthopedic-reference-row span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.orthopedic-reference-compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.orthopedic-reference-compare-card {
  display: grid;
  gap: 5px;
  min-width: 0;
  border: 1px solid rgba(126, 204, 172, 0.18);
  border-left-width: 5px;
  border-radius: 8px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.14);
}

.orthopedic-reference-compare-card.good {
  border-left-color: #12ed79;
}

.orthopedic-reference-compare-card.neutral {
  border-left-color: rgba(208, 161, 46, 0.9);
}

.orthopedic-reference-compare-card.warn {
  border-left-color: #e1b13c;
}

.orthopedic-reference-compare-card.bad {
  border-left-color: #ff7474;
}

.orthopedic-reference-compare-card span,
.orthopedic-reference-compare-card small {
  min-width: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.orthopedic-reference-compare-card strong {
  color: #ffffff;
  font-size: 1.7rem;
  line-height: 1;
}

.orthopedic-reference-compare-card b {
  min-width: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.orthopedic-age-comparison {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  border: 1px solid rgba(126, 204, 172, 0.2);
  border-radius: 8px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.12);
}

.orthopedic-age-comparison-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.orthopedic-age-comparison-head strong {
  color: #ffffff;
  font-size: 0.96rem;
}

.orthopedic-age-comparison-head span {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 850;
}

.orthopedic-deficit-summary-grid {
  margin-top: 14px;
}

.orthopedic-recommendation-panel {
  margin-top: 12px;
  gap: 12px;
}

.orthopedic-recommendation-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.orthopedic-recommendation-head > span {
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.orthopedic-recommendation-head small {
  flex: 0 0 auto;
  border: 1px solid rgba(0, 117, 78, 0.18);
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--green-dark);
  background: var(--mint);
  font-size: 0.72rem;
  font-weight: 850;
}

.orthopedic-recommendation-list {
  display: grid;
  gap: 10px;
}

.orthopedic-recommendation-item {
  display: grid;
  gap: 7px;
  border: 1px solid rgba(0, 117, 78, 0.2);
  border-left: 4px solid var(--green);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(231, 244, 237, 0.58);
}

.orthopedic-recommendation-item.warn {
  border-left-color: var(--gold);
  background: rgba(255, 244, 206, 0.52);
}

.orthopedic-recommendation-item.bad {
  border-left-color: var(--danger);
  background: rgba(255, 240, 239, 0.78);
}

.orthopedic-recommendation-item-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
}

.orthopedic-recommendation-item-head > span {
  color: var(--green-dark);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.orthopedic-recommendation-item-head small {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 750;
}

.orthopedic-recommendation-item > strong {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.25;
}

.orthopedic-evidence {
  display: grid;
  gap: 5px;
  border-top: 1px solid rgba(0, 117, 78, 0.16);
  padding-top: 8px;
}

.orthopedic-evidence > span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.orthopedic-evidence ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.orthopedic-evidence li {
  position: relative;
  padding-left: 13px;
  color: var(--ink);
  font-size: 0.82rem;
  line-height: 1.35;
}

.orthopedic-evidence li::before {
  position: absolute;
  top: 0.48em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--green);
  content: "";
}

.orthopedic-recommendation-empty {
  margin: 0;
}

.orthopedic-fine-tuning,
.orthopedic-special-attention {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(42, 151, 214, 0.32);
  border-left: 4px solid #4ab8ff;
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(74, 184, 255, 0.075);
}

.orthopedic-fine-tuning > strong,
.orthopedic-special-attention > strong {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 950;
}

.orthopedic-fine-tuning > span,
.orthopedic-special-attention > span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 760;
  line-height: 1.4;
}

.orthopedic-fine-tuning ul {
  display: grid;
  gap: 4px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.orthopedic-fine-tuning li {
  color: var(--ink);
  font-size: 0.8rem;
  line-height: 1.4;
}

.orthopedic-special-attention {
  border-color: rgba(255, 191, 63, 0.48);
  border-left-color: #ffbf3f;
  background: rgba(255, 191, 63, 0.1);
}
}

.orthopedic-deficit-tags {
  margin: 10px 0 0;
}

.orthopedic-red-flag {
  display: grid;
  gap: 4px;
  margin: 0;
  border: 1px solid rgba(185, 54, 50, 0.42);
  border-radius: 8px;
  padding: 11px 13px;
  color: #ffb0ac;
  background: rgba(185, 54, 50, 0.12);
}

.orthopedic-red-flag strong {
  color: inherit;
  font-size: 0.82rem;
  font-weight: 900;
}

.orthopedic-red-flag span {
  color: inherit;
  font-size: 0.82rem;
  line-height: 1.4;
}

.info-list {
  display: grid;
  grid-template-columns: minmax(120px, 0.55fr) minmax(0, 1fr);
  gap: 10px 14px;
  margin: 0;
}

.info-list dt {
  color: var(--muted);
  font-weight: 800;
}

.info-list dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.status-stack,
.history-list {
  display: grid;
  gap: 10px;
}

.status-line,
.history-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfdfc;
}

.excel-table-wrap {
  position: relative;
  min-width: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.excel-table-wrap:has(.info-tip:hover),
.excel-table-wrap:has(.info-tip:focus),
.excel-table-wrap:has(.info-tip:focus-visible) {
  overflow: visible;
  z-index: 6000;
}

.excel-table {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.84rem;
}

.excel-table th,
.excel-table td {
  min-width: 150px;
  max-width: 260px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px 11px;
  text-align: left;
  vertical-align: top;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.excel-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  color: var(--green-dark);
  background: var(--mint);
  font-weight: 950;
}

.excel-table tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 190px;
  color: var(--ink);
  background: #f8fbf8;
  font-weight: 950;
}

.excel-table thead th:first-child {
  left: 0;
  z-index: 3;
  min-width: 190px;
}

.excel-table td {
  color: var(--ink);
  background: var(--white);
}

.excel-table tr:nth-child(even) td {
  background: #fbfdfc;
}

.excel-table th:last-child,
.excel-table td:last-child {
  border-right: none;
}

.excel-table tr:last-child th,
.excel-table tr:last-child td {
  border-bottom: none;
}

.excel-table thead th > span {
  display: block;
  margin-bottom: 7px;
}

.inline-delete {
  min-width: 28px;
  min-height: 28px;
  padding: 0;
  font-size: 0.78rem;
}

.status-line strong,
.history-item strong {
  display: block;
  margin-bottom: 5px;
}

.status-line span,
.history-item span {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.45;
}

.section-heading {
  margin-bottom: 14px;
}

.section-heading h3 {
  font-size: 1.05rem;
}

.section-heading span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
  font-weight: 800;
}

.insight-panel {
  min-width: 0;
  margin-top: 16px;
}

.tab-panel > .insight-panel:first-child {
  margin-top: 0;
}

.feedback-grid,
.visual-grid {
  display: grid;
  gap: 14px;
  min-width: 0;
}

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

.visual-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
}

.team-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 12px;
  min-width: 0;
}

.team-kpi {
  display: grid;
  gap: 7px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--club-surface);
}

.team-kpi span,
.team-kpi small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
}

.team-kpi strong {
  min-width: 0;
  font-size: 1.55rem;
  line-height: 1;
  overflow-wrap: break-word;
  word-break: normal;
}

.team-card-wide {
  min-width: 0;
}

.feedback-card,
.chart-card {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px;
  background: var(--club-surface);
}

.feedback-card:has(.info-tip:hover),
.feedback-card:has(.info-tip:focus),
.feedback-card:has(.info-tip:focus-visible),
.chart-card:has(.info-tip:hover),
.chart-card:has(.info-tip:focus),
.chart-card:has(.info-tip:focus-visible),
.chart-card:has(.spark-point:hover),
.chart-card:has(.spark-point:focus),
.chart-card:has(.spark-point:focus-visible) {
  z-index: 5000;
}

.feedback-card {
  border-left-width: 5px;
}

.feedback-card.wide {
  grid-column: 1 / -1;
}

.feedback-card.good {
  border-left-color: var(--green);
}

.feedback-card.warn,
.feedback-card.neutral {
  border-left-color: var(--gold);
}

.feedback-card.bad {
  border-left-color: var(--danger);
}

.feedback-card-head,
.chart-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.feedback-card-head h4,
.chart-card-head h4 {
  margin-bottom: 4px;
}

.feedback-card-head span,
.chart-card-head span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 750;
}

.feedback-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.feedback-list,
.focus-list,
.feedback-sublist ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feedback-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 10px;
  align-items: center;
  min-width: 0;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}

.feedback-list li:first-child {
  border-top: none;
}

.feedback-list li > span,
.feedback-list small {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.feedback-list strong {
  text-align: right;
  overflow-wrap: anywhere;
}

.value-with-info {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 100%;
  vertical-align: middle;
}

.value-with-info:has(.info-tip:hover),
.value-with-info:has(.info-tip:focus),
.value-with-info:has(.info-tip:focus-visible) {
  z-index: 7000;
}

.info-tip {
  appearance: none;
  position: relative;
  z-index: 1;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1px solid rgba(0, 117, 78, 0.32);
  border-radius: 999px;
  padding: 0;
  color: var(--green);
  background: var(--mint);
  font-size: 0.68rem;
  font-weight: 950;
  line-height: 1;
  cursor: help;
}

.info-tip:focus {
  outline: 2px solid rgba(43, 95, 137, 0.28);
  outline-offset: 2px;
}

.info-bubble {
  position: absolute;
  z-index: 7002;
  right: 0;
  bottom: calc(100% + 9px);
  width: min(280px, calc(100vw - 44px));
  transform: translateY(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  border: 1px solid rgba(0, 117, 78, 0.28);
  border-radius: 8px;
  padding: 10px 11px;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 14px 30px rgba(21, 32, 28, 0.16);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.4;
  text-align: left;
  white-space: normal;
  transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease;
}

.info-bubble::after {
  position: absolute;
  right: 8px;
  bottom: -6px;
  width: 10px;
  height: 10px;
  transform: rotate(45deg);
  border-right: 1px solid rgba(0, 117, 78, 0.28);
  border-bottom: 1px solid rgba(0, 117, 78, 0.28);
  background: var(--white);
  content: "";
}

.info-tip:hover .info-bubble,
.info-tip:focus .info-bubble {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.info-tip:hover,
.info-tip:focus,
.info-tip:focus-visible {
  z-index: 7001;
}

.value-with-info .info-tip {
  color: var(--green);
  font-size: 0.68rem;
  font-weight: 950;
  line-height: 1;
}

.value-with-info .info-bubble {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.4;
}

.feedback-list small {
  grid-column: 1 / -1;
}

.feedback-sublist {
  display: grid;
  gap: 8px;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.feedback-sublist > span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.feedback-sublist li {
  display: grid;
  gap: 3px;
}

.feedback-sublist li span {
  color: var(--muted);
  font-size: 0.82rem;
}

.focus-list li {
  position: relative;
  padding: 0 0 0 16px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.focus-list li::before {
  position: absolute;
  top: 0.6em;
  left: 0;
  width: 7px;
  aspect-ratio: 1;
  border-radius: 999px;
  background: var(--muted);
  content: "";
}

.focus-list li.good::before,
.feedback-list strong.good,
.feedback-sublist strong.good,
.change-text.good {
  color: var(--green);
}

.focus-list li.good::before {
  background: var(--green);
}

.focus-list li.warn::before,
.feedback-list strong.warn,
.feedback-sublist strong.warn,
.change-text.warn,
.change-text.neutral {
  color: #8a630d;
}

.focus-list li.warn::before,
.focus-list li.neutral::before {
  background: var(--gold);
}

.focus-list li.bad::before,
.feedback-list strong.bad,
.feedback-sublist strong.bad,
.change-text.bad {
  color: var(--danger);
}

.focus-list li.bad::before {
  background: var(--danger);
}

.reference-source {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.metric-table {
  display: grid;
  min-width: 0;
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.metric-table-head,
.metric-table-row {
  display: grid;
  grid-template-columns: minmax(130px, 1.25fr) minmax(90px, 0.75fr) minmax(130px, 1fr) minmax(140px, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 10px 12px;
}

.metric-table-head {
  color: var(--muted);
  background: var(--mint);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.metric-table-row {
  position: relative;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.metric-table-row > span,
.metric-table-row small {
  min-width: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.metric-table-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.reference-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.metric-table .reference-pill,
.reference-compare-table .reference-pill {
  min-height: 42px;
  padding: 7px 13px;
  font-size: 1rem;
}

.reference-score {
  font-size: 1.45em;
  font-weight: 950;
  line-height: 0.9;
}

.reference-separator,
.reference-label {
  line-height: 1.1;
}

.reference-pill.good {
  color: var(--green);
  background: var(--mint);
}

.reference-pill.neutral {
  color: #2b5f89;
  background: #edf6fb;
}

.reference-pill.warn {
  color: #8a630d;
  background: #fff3c8;
}

.reference-pill.bad {
  color: var(--danger);
  background: var(--danger-bg);
}

.reference-missing {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.team-highlight-list {
  margin-top: 12px;
}

.team-table {
  display: grid;
  min-width: 0;
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.team-table-head,
.team-table-row {
  display: grid;
  grid-template-columns: minmax(130px, 1.15fr) minmax(105px, 0.9fr) minmax(105px, 0.9fr) minmax(105px, 0.85fr) minmax(85px, 0.65fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 10px 12px;
}

.team-table.development-table .team-table-head,
.team-table.development-table .team-table-row {
  grid-template-columns: minmax(130px, 1.2fr) minmax(140px, 1fr) minmax(95px, 0.75fr) minmax(140px, 1fr);
}

.team-table.team-overview-table .team-table-head,
.team-table.team-overview-table .team-table-row {
  grid-template-columns: minmax(150px, 1.4fr) minmax(130px, 1fr) minmax(105px, 0.75fr) minmax(105px, 0.75fr);
}

.team-table.team-development-overview-table .team-table-head,
.team-table.team-development-overview-table .team-table-row,
.team-table.classification-overview-table .team-table-head,
.team-table.classification-overview-table .team-table-row {
  grid-template-columns: minmax(150px, 1.4fr) minmax(140px, 1fr) minmax(110px, 0.75fr);
}

.team-table.orthopedic-age-table .team-table-head,
.team-table.orthopedic-age-table .team-table-row {
  grid-template-columns: minmax(150px, 1.3fr) minmax(120px, 0.85fr) minmax(120px, 0.85fr) minmax(210px, 1.4fr);
}

.orthopedic-age-table .classification-team-score {
  justify-self: start;
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.team-table-head {
  color: var(--muted);
  background: var(--mint);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.team-table-row {
  position: relative;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.team-table-row > span,
.team-table-row strong {
  min-width: 0;
  font-size: 0.82rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

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

.classification-team-table .classification-team-score {
  justify-self: start;
  display: inline-grid;
  place-items: center;
  min-width: 78px;
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.92rem;
  font-weight: 950;
  line-height: 1;
  text-align: center;
}

.classification-team-table .classification-team-score .value-with-info {
  justify-content: center;
}

.classification-team-table .classification-team-score .value-with-info > span:first-child {
  white-space: nowrap;
}

.classification-team-score.good {
  color: var(--white);
  background: var(--green);
  border-color: rgba(0, 86, 58, 0.35);
}

.classification-team-score.warn,
.classification-team-score.neutral {
  color: #3d2a00;
  background: #ffd86f;
  border-color: #d39b1d;
}

.classification-team-score.bad {
  color: var(--white);
  background: var(--danger);
  border-color: rgba(132, 38, 34, 0.4);
}

.classification-team-score .info-tip {
  color: inherit;
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(255, 255, 255, 0.64);
}

.reference-summary {
  display: grid;
  gap: 3px;
  margin-bottom: 12px;
}

.reference-summary strong {
  font-size: 2.55rem;
  line-height: 1;
}

.reference-summary span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.reference-compare-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px;
  background: var(--club-surface);
}

.reference-compare-result {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.reference-compare-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  border: 1px solid var(--line);
  border-left-width: 5px;
  border-radius: 8px;
  padding: 14px;
  background: var(--white);
}

.reference-compare-summary.good {
  border-left-color: var(--green);
}

.reference-compare-summary.warn,
.reference-compare-summary.neutral {
  border-left-color: var(--gold);
}

.reference-compare-summary.bad {
  border-left-color: var(--danger);
}

.reference-compare-summary div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.reference-compare-summary span,
.reference-compare-summary small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.35;
}

.reference-compare-summary strong {
  font-size: 2.6rem;
  line-height: 1;
}

.reference-compare-table {
  display: grid;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
}

.reference-compare-row {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) minmax(90px, 0.7fr) minmax(120px, 0.9fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
}

.reference-compare-row:first-child {
  border-top: none;
}

.reference-compare-row > span,
.reference-compare-row > strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.reference-compare-row > span:first-child {
  color: var(--muted);
  font-weight: 850;
}

.full-data-section {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.full-data-section h5,
.full-data-group h6 {
  margin: 0;
}

.full-data-section h5 {
  font-size: 0.9rem;
}

.full-data-group {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.full-data-group h6 {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.full-data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
}

.full-data-item {
  display: grid;
  gap: 4px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px;
  background: var(--white);
}

.full-data-item span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.full-data-item strong {
  min-width: 0;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.spark-stack,
.bar-stack,
.orthopedic-trends {
  display: grid;
  gap: 12px;
}

.trend-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.trend-kpi,
.trend-period,
.trend-focus-card,
.status-tile {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.trend-kpi {
  display: grid;
  gap: 4px;
  padding: 11px 12px;
}

.trend-kpi span,
.trend-kpi small,
.trend-period span,
.trend-focus-card span,
.trend-focus-card small,
.status-tile span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1.35;
}

.trend-kpi strong {
  font-size: 1.45rem;
  line-height: 1;
}

.trend-kpi.good,
.trend-focus-card.good,
.status-tile.good {
  border-color: #b6d9c6;
  background: #f2fbf5;
}

.trend-kpi.bad,
.trend-focus-card.bad,
.status-tile.bad {
  border-color: #efc1bf;
  background: #fff7f6;
}

.trend-kpi.neutral,
.trend-focus-card.neutral,
.status-tile.neutral {
  border-color: #dce5e0;
}

.trend-period {
  grid-column: 1 / -1;
  display: grid;
  gap: 5px;
  padding: 11px 12px;
  background: #f3f7f5;
}

.trend-period strong {
  font-size: 0.95rem;
  line-height: 1.3;
}

.trend-focus-grid,
.status-tile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

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

.trend-focus-card,
.status-tile {
  display: grid;
  gap: 5px;
  padding: 12px;
  border-left-width: 4px;
}

.trend-focus-card.good,
.status-tile.good {
  border-left-color: var(--green);
}

.trend-focus-card.bad,
.status-tile.bad {
  border-left-color: var(--danger);
}

.trend-focus-card.neutral,
.status-tile.neutral {
  border-left-color: var(--gold);
}

.trend-focus-card strong,
.status-tile strong {
  min-width: 0;
  font-size: 0.96rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.readable-trends {
  padding-top: 2px;
}

.orthopedic-trends {
  margin-top: 15px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.status-bars {
  margin-top: 12px;
}

.spark-row {
  display: grid;
  grid-template-columns: minmax(92px, 0.52fr) minmax(150px, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.spark-row.compact {
  grid-template-columns: minmax(118px, 0.58fr) minmax(150px, 1fr);
}

.spark-row.trend-row {
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: 8px;
  padding: 10px 11px;
  background: var(--white);
}

.spark-row.trend-row.good {
  border-left-color: var(--green);
}

.spark-row.trend-row.bad {
  border-left-color: var(--danger);
}

.spark-row.trend-row.neutral {
  border-left-color: var(--gold);
}

.spark-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.spark-copy strong {
  font-size: 0.9rem;
}

.spark-copy span,
.chart-empty {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.sparkline {
  display: block;
  position: relative;
  width: 100%;
  height: 62px;
  z-index: 1;
  overflow: visible;
}

.team-average-visual-card {
  margin-top: 16px;
}

.team-average-visual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.team-average-visual-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  min-width: 0;
  min-height: 210px;
  padding: 16px;
  color: var(--white);
  border: 1px solid rgba(126, 204, 172, 0.28);
  border-left: 4px solid rgba(255, 255, 255, 0.38);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(5, 46, 36, 0.98), rgba(0, 117, 78, 0.78)),
    var(--green-deep);
  box-shadow: 0 16px 32px rgba(5, 46, 36, 0.15);
}

.team-average-visual-row:has(.spark-point:hover),
.team-average-visual-row:has(.spark-point:focus),
.team-average-visual-row:has(.spark-point:focus-visible) {
  z-index: 5500;
}

.team-average-visual-row.good {
  border-left-color: #28d68e;
}

.team-average-visual-row.bad {
  border-left-color: #ff7b75;
}

.team-average-visual-row.neutral {
  border-left-color: var(--gold);
}

.team-average-visual-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

.team-average-visual-title,
.team-average-current {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.team-average-visual-title span,
.team-average-date-pill {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.team-average-visual-title strong {
  color: var(--white);
  font-size: 1.02rem;
  line-height: 1.18;
}

.team-average-current {
  justify-items: end;
  text-align: right;
}

.team-average-current strong {
  color: var(--white);
  font-size: 1.15rem;
  line-height: 1;
}

.team-average-current .value-with-info {
  justify-content: flex-end;
}

.team-average-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.team-average-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  min-height: 34px;
  padding: 7px 10px;
  color: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(2, 18, 14, 0.32);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.25;
}

.team-average-meta .change-text.good {
  color: #7ff0b8;
}

.team-average-meta .change-text.bad {
  color: #ffaaa6;
}

.team-average-meta .change-text.neutral {
  color: #ffe29a;
}

.team-average-chart {
  position: relative;
  display: flex;
  align-items: center;
  overflow: visible;
  min-height: 88px;
  padding: 10px 12px 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(1, 18, 14, 0.38);
}

.team-average-chart .sparkline {
  height: 82px;
}

.spark-axis {
  stroke: #dce5e0;
  stroke-width: 1;
}

.spark-line {
  fill: none;
  stroke: var(--blue);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.spark-dot {
  fill: var(--white);
  stroke: var(--blue);
  stroke-width: 2;
}

.spark-point {
  cursor: default;
  outline: none;
}

.spark-hit {
  fill: transparent;
  stroke: transparent;
  pointer-events: all;
}

.spark-tooltip {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 7000;
  transform-box: fill-box;
  transform-origin: center bottom;
  transition: opacity 140ms ease, visibility 140ms ease;
}

.spark-tooltip rect {
  fill: rgba(3, 25, 20, 0.96);
  stroke: rgba(126, 204, 172, 0.48);
  stroke-width: 1;
}

.spark-tooltip text {
  fill: var(--white);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0;
}

.spark-tooltip-date,
.spark-tooltip-note {
  fill: rgba(255, 255, 255, 0.72);
}

.spark-tooltip-value {
  fill: var(--white);
  font-size: 9px;
  font-weight: 950;
}

.spark-tooltip.is-active {
  opacity: 1;
  visibility: visible;
}

.spark-point.is-active .spark-dot,
.spark-point:focus .spark-dot {
  stroke-width: 3;
}

.spark-dot.good {
  fill: var(--green);
  stroke: var(--green-dark);
}

.spark-dot.bad {
  fill: var(--danger);
  stroke: #8f2724;
}

.spark-dot.neutral {
  fill: var(--white);
  stroke: var(--gold);
}

.spark-dot.plain {
  fill: var(--white);
  stroke: var(--blue);
}

.spark-dot.latest {
  stroke: var(--white);
  stroke-width: 2.5;
}

.team-average-chart .spark-axis {
  stroke: rgba(255, 255, 255, 0.22);
}

.team-average-chart .spark-line {
  stroke: #33d69c;
  stroke-width: 3.5;
}

.team-average-chart .spark-dot {
  stroke-width: 2.4;
}

.team-average-chart .spark-dot.plain {
  fill: var(--white);
  stroke: #33d69c;
}

.team-average-chart .spark-dot.neutral {
  fill: #ffe29a;
  stroke: #8a6b16;
}

.team-average-chart .spark-dot.good {
  fill: #58e2a2;
  stroke: #063f31;
}

.team-average-chart .spark-dot.bad {
  fill: #ff8b85;
  stroke: #8f2724;
}

.progress-row {
  display: grid;
  gap: 8px;
}

.progress-row > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.progress-row span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.progress-track {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef3f0;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.progress-track span.good {
  background: var(--green);
}

.progress-track span.warn,
.progress-track span.neutral {
  background: var(--gold);
}

.progress-track span.bad {
  background: var(--danger);
}

.measurement-form {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--club-surface);
}

.classification-form,
.classification-summary,
.classification-criteria {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.classification-form {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--club-surface);
}

.classification-table {
  display: grid;
  min-width: 0;
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.classification-table-head,
.classification-table-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(170px, 0.7fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 10px 12px;
}

.classification-table-head {
  color: var(--muted);
  background: var(--mint);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.classification-table-row {
  border-top: 1px solid var(--line);
}

.classification-table-row > span {
  min-width: 0;
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.classification-table-row select,
.classification-table-row input {
  width: 100%;
  min-width: 0;
}

.classification-table-row select {
  color: var(--ink);
  background-color: var(--white);
  font-weight: 900;
}

.classification-table-row select option {
  color: var(--ink);
  background: var(--white);
}

.classification-text-grid {
  margin-top: 12px;
}

.reference-values-content,
.reference-values-layout {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.reference-values-card,
.reference-values-subcard {
  min-width: 0;
  border: 1px solid rgba(18, 237, 121, 0.24);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(0, 39, 29, 0.94), rgba(0, 17, 13, 0.97));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.reference-values-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.reference-values-subcard {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.reference-values-head,
.reference-values-subhead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

.reference-values-head div,
.reference-values-subhead {
  min-width: 0;
}

.reference-values-head span,
.reference-values-subhead span,
.reference-values-subcard small,
.reference-values-card p {
  color: rgba(255, 255, 255, 0.74);
  font-weight: 800;
  line-height: 1.45;
}

.reference-values-head > strong {
  flex: 0 0 auto;
  border: 1px solid rgba(18, 237, 121, 0.34);
  border-radius: 999px;
  padding: 8px 12px;
  color: #12ed79;
  background: rgba(18, 237, 121, 0.11);
}

.reference-values-head h4 {
  margin: 2px 0 0;
  color: #ffffff;
  font-size: 1.08rem;
}

.reference-rule-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}

.reference-rule-list.compact {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.reference-rule-list span {
  border: 1px solid rgba(126, 204, 172, 0.22);
  border-radius: 8px;
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.045);
  font-weight: 850;
}

.reference-values-scroll {
  min-width: 0;
  overflow-x: auto;
  border: 1px solid rgba(126, 204, 172, 0.18);
  border-radius: 8px;
}

.reference-values-table {
  display: grid;
  min-width: 760px;
}

.reference-values-table.compact {
  min-width: 0;
}

.reference-values-row {
  display: grid;
  grid-template-columns: 110px minmax(150px, 0.8fr) minmax(170px, 1fr) minmax(220px, 1.2fr);
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-top: 1px solid rgba(126, 204, 172, 0.16);
  color: rgba(255, 255, 255, 0.84);
  font-weight: 800;
}

.motoric-reference-table .reference-values-row {
  grid-template-columns: 110px 170px repeat(var(--reference-metric-cols), minmax(110px, 1fr));
}

.correction-group-reference-table .reference-values-row {
  grid-template-columns: minmax(160px, 0.8fr) minmax(220px, 1fr);
}

.classification-reference-table .reference-values-row {
  grid-template-columns: minmax(190px, 0.75fr) minmax(240px, 1.2fr) 130px;
}

.reference-values-row.is-head {
  border-top: 0;
  color: #12ed79;
  background: rgba(18, 237, 121, 0.08);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.reference-values-row strong {
  color: #ffffff;
}

.reference-values-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.classification-section-card {
  min-width: 0;
}

.classification-detail-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.classification-detail {
  min-width: 0;
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: 8px;
  background: var(--white);
}

.classification-detail.good {
  border-left-color: var(--green);
}

.classification-detail.warn,
.classification-detail.neutral {
  border-left-color: var(--gold);
}

.classification-detail.bad {
  border-left-color: var(--danger);
}

.classification-detail summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  cursor: pointer;
  list-style: none;
}

.classification-detail summary::-webkit-details-marker {
  display: none;
}

.classification-detail summary::before {
  content: "+";
  display: inline-grid;
  grid-column: 1;
  grid-row: 1;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  color: var(--green);
  background: var(--mint);
  font-weight: 950;
}

.classification-detail[open] summary::before {
  content: "-";
}

.classification-detail-main {
  display: grid;
  grid-column: 2;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px 10px;
  align-items: center;
  min-width: 0;
}

.classification-detail summary strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.classification-detail summary small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.classification-detail-score {
  grid-column: 3;
  justify-self: end;
  display: inline-grid;
  place-items: center;
  min-width: 106px;
  min-height: 38px;
  border: 1px solid rgba(0, 117, 78, 0.2);
  border-radius: 8px;
  padding: 7px 11px;
  color: var(--ink);
  background: var(--club-surface);
  font-size: 1rem;
  font-weight: 950;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.classification-detail-score .value-with-info {
  justify-content: center;
}

.classification-detail-score .value-with-info > span:first-child {
  white-space: nowrap;
}

.classification-detail-score .info-tip {
  color: inherit;
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(255, 255, 255, 0.64);
}

.classification-detail-score.good {
  color: var(--white);
  background: var(--green);
  border-color: rgba(0, 86, 58, 0.35);
}

.classification-detail-score.warn,
.classification-detail-score.neutral {
  color: #3d2a00;
  background: #ffd86f;
  border-color: #d39b1d;
}

.classification-detail-score.bad {
  color: var(--white);
  background: var(--danger);
  border-color: rgba(132, 38, 34, 0.4);
}

.classification-detail-meter {
  grid-column: 2 / -1;
  height: 8px;
}

.classification-detail-body {
  display: grid;
  gap: 12px;
  padding: 0 12px 12px;
}

.classification-detail-table {
  display: grid;
  min-width: 0;
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.classification-detail-head,
.classification-detail-row {
  display: grid;
  grid-template-columns: minmax(160px, 1.25fr) minmax(120px, 0.85fr) minmax(120px, 0.85fr) minmax(78px, 0.55fr) minmax(120px, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 9px 10px;
}

.classification-detail-head {
  color: var(--muted);
  background: var(--mint);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.classification-detail-row {
  border-top: 1px solid var(--line);
}

.classification-detail-row > span:first-child {
  min-width: 0;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.classification-detail-row small {
  min-width: 0;
  color: var(--muted);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.classification-mini-badge {
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  max-width: 100%;
  min-width: 118px;
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 5px 9px 5px 5px;
  color: var(--ink);
  background: var(--club-surface);
  font-size: 0.8rem;
  font-weight: 900;
  line-height: 1.15;
}

.classification-mini-badge.neutral {
  grid-template-columns: 1fr;
  min-width: 42px;
  justify-items: center;
  padding: 5px 8px;
}

.classification-mini-number {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  font-weight: 950;
  line-height: 1;
}

.classification-mini-badge small {
  color: inherit;
  font-size: 0.68rem;
  font-weight: 800;
}

.classification-mini-badge.good {
  color: var(--green-dark);
  background: var(--mint);
  border-color: rgba(0, 117, 78, 0.28);
}

.classification-mini-badge.good .classification-mini-number {
  color: var(--white);
  background: var(--green);
}

.classification-mini-badge.warn {
  color: #4a3300;
  background: #fff3c8;
  border-color: rgba(208, 161, 46, 0.46);
}

.classification-mini-badge.warn .classification-mini-number {
  color: #3d2a00;
  background: #ffd86f;
}

.classification-mini-badge.bad {
  color: #82211e;
  background: var(--danger-bg);
  border-color: rgba(185, 54, 50, 0.28);
}

.classification-mini-badge.bad .classification-mini-number {
  color: var(--white);
  background: var(--danger);
}

.classification-mini-badge.neutral {
  color: var(--muted);
  background: var(--club-surface);
  border-color: var(--line);
}

.classification-text-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 9px;
}

.classification-text-details div {
  display: grid;
  gap: 4px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px;
  background: #fbfdfc;
}

.classification-text-details span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
}

.classification-text-details strong {
  min-width: 0;
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.classification-note {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.classification-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.measurement-type-card {
  display: grid;
  gap: 10px;
  max-width: 360px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfdfc;
}

.management-form {
  display: grid;
  gap: 14px;
  min-width: 0;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--club-surface);
}

.management-list {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.management-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfdfc;
}

.management-item > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.management-item strong,
.management-item span,
.management-item small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.management-item span,
.management-item small {
  color: var(--muted);
  line-height: 1.35;
}

.coach-contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.coach-management-item {
  align-items: stretch;
}

.coach-management-item > .small-delete {
  min-width: 28px;
  min-height: 28px;
  width: 28px;
  height: 28px;
  align-self: flex-start;
  border-radius: 7px;
  padding: 0;
  font-size: 0.78rem;
  line-height: 1;
}

.coach-management-main {
  display: grid;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.coach-detail-page {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.coach-standalone-page[hidden] {
  display: none;
}

.payment-standalone-page[hidden] {
  display: none;
}

.coach-full-page {
  display: grid;
  gap: 18px;
  min-height: calc(100vh - 52px);
  color: rgba(255, 255, 255, 0.9);
}

.coach-full-nav,
.payment-full-nav {
  display: flex;
  justify-content: flex-start;
}

.coach-full-hero,
.payment-full-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(18, 237, 121, 0.28);
  border-radius: 8px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(18, 237, 121, 0.16), rgba(2, 19, 15, 0.72) 48%),
    rgba(2, 19, 15, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.coach-full-hero h2,
.payment-full-hero h2 {
  margin: 0;
  color: rgba(255, 255, 255, 0.98);
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  line-height: 1.05;
}

.payment-full-page {
  display: grid;
  gap: 18px;
  min-height: calc(100vh - 52px);
  color: rgba(255, 255, 255, 0.9);
}

.payment-full-hero > div:first-child {
  display: grid;
  gap: 7px;
}

.payment-full-hero > div:first-child span {
  width: fit-content;
  border: 1px solid rgba(126, 204, 172, 0.28);
  border-radius: 999px;
  padding: 7px 10px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.045);
  font-weight: 900;
}

.payment-full-status {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.payment-full-status strong {
  max-width: 100%;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
  font-weight: 1000;
  text-align: right;
}

.payment-full-editor {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(18, 237, 121, 0.26);
  border-radius: 8px;
  padding: 14px;
  background: rgba(2, 19, 15, 0.7);
}

.payment-full-editor .payment-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
}

.payment-top-edit-button {
  flex: 0 0 auto;
  min-width: 132px;
}

.payment-edit-subsection {
  display: grid;
  gap: 10px;
  border-top: 1px solid rgba(126, 204, 172, 0.18);
  padding-top: 13px;
}

.payment-edit-subsection > strong {
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 1000;
}

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

.payment-player-facts-list {
  grid-template-columns: minmax(120px, 0.55fr) minmax(0, 1fr);
}

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

.coach-full-hero .coach-detail-identity > div:last-child {
  display: grid;
  gap: 7px;
}

.coach-detail-avatar-large {
  width: 82px;
  height: 82px;
  font-size: 1.3rem;
}

.coach-full-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.coach-full-page .coach-detail-panel,
.coach-full-page .coach-receipt-history {
  margin-top: 0;
  border: 1px solid rgba(18, 237, 121, 0.26);
  border-radius: 8px;
  padding: 14px;
  border-color: rgba(18, 237, 121, 0.26);
  background: rgba(2, 19, 15, 0.7);
}

.coach-full-page .coach-receipt-document {
  grid-template-columns: 1fr;
}

.coach-full-page .coach-receipt-document .coach-receipt-file {
  width: fit-content;
}

.coach-new-receipt-menu {
  border: 1px solid rgba(18, 237, 121, 0.26);
  border-radius: 8px;
  background: rgba(2, 19, 15, 0.68);
}

.coach-new-receipt-menu summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 52px;
  padding: 12px 14px;
  color: #12ed79;
  font-weight: 1000;
  cursor: pointer;
  list-style: none;
}

.coach-new-receipt-menu summary::-webkit-details-marker {
  display: none;
}

.coach-new-receipt-menu summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(18, 237, 121, 0.38);
  border-radius: 999px;
  color: #02130f;
  background: #12ed79;
}

.coach-new-receipt-menu[open] summary::after {
  content: "-";
}

.coach-new-receipt-menu summary span,
.coach-new-receipt-menu summary small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.coach-new-receipt-menu summary small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.76rem;
  font-weight: 850;
}

.coach-new-receipt-menu .coach-detail-panel {
  margin: 0 12px 12px;
}

.coach-full-page .coach-equipment-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.coach-full-page .coach-tools-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.coach-full-page .coach-clothing-row {
  grid-template-columns: 96px minmax(0, 1fr);
  min-height: 124px;
}

.coach-full-page .coach-tool-row {
  grid-template-columns: 96px minmax(0, 1fr);
  min-height: 124px;
}

.coach-full-page .coach-equipment-card img {
  width: 96px;
  height: 96px;
}

.coach-full-page .coach-equipment-card input {
  width: 112px;
}

.coach-return-panel {
  display: grid;
  gap: 12px;
}

.coach-return-hint {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(18, 237, 121, 0.24);
  border-radius: 8px;
  padding: 12px;
  background: rgba(18, 237, 121, 0.07);
}

.coach-return-hint strong {
  color: rgba(255, 255, 255, 0.94);
}

.coach-return-hint span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.4;
}

.coach-return-list {
  display: grid;
  gap: 8px;
}

.coach-return-row {
  display: grid;
  grid-template-columns: 72px minmax(180px, 1fr) minmax(118px, 0.36fr) minmax(104px, 0.34fr) minmax(126px, 0.4fr) minmax(168px, 0.52fr);
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(126, 204, 172, 0.22);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.045);
}

.coach-return-row img,
.coach-return-row > span[aria-hidden="true"] {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: contain;
  background: #ffffff;
}

.coach-return-row > span[aria-hidden="true"] {
  display: grid;
  place-items: center;
  color: #02130f;
  font-weight: 1000;
}

.coach-return-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.coach-return-copy strong {
  color: rgba(255, 255, 255, 0.94);
  overflow-wrap: anywhere;
}

.coach-return-copy small {
  color: rgba(255, 255, 255, 0.66);
  font-weight: 850;
}

.coach-return-check,
.coach-return-quantity,
.coach-return-note {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.8rem;
  font-weight: 900;
}

.coach-return-check {
  display: flex;
  align-items: center;
  gap: 7px;
}

.coach-return-quantity,
.coach-return-note {
  display: grid;
  gap: 5px;
}

.coach-return-quantity input {
  width: 100px;
  min-height: 40px;
}

.coach-return-amortized {
  color: #8a5b00;
}

.coach-return-amortized input {
  border-color: rgba(202, 143, 22, 0.58);
  background: rgba(255, 197, 71, 0.1);
}

.coach-return-note textarea {
  width: 100%;
  min-height: 82px;
  resize: vertical;
}

.coach-return-missing,
.coach-return-status {
  justify-self: start;
  border: 1px solid rgba(18, 237, 121, 0.24);
  border-radius: 999px;
  padding: 6px 9px;
  color: #12ed79;
  background: rgba(18, 237, 121, 0.08);
  font-size: 0.76rem;
  font-weight: 950;
}

.coach-return-status.is-open {
  border-color: rgba(214, 93, 93, 0.42);
  color: #b53b3b;
  background: rgba(226, 99, 99, 0.1);
}

.coach-detail-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.coach-detail-panel-head h3 {
  margin: 0;
  color: rgba(255, 255, 255, 0.96);
  font-size: 1.2rem;
}

.coach-detail-panel-head > span {
  max-width: 280px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;
  font-weight: 850;
  text-align: right;
}

.coach-detail-page-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(240px, 0.9fr);
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(18, 237, 121, 0.24);
  border-radius: 8px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(18, 237, 121, 0.1), rgba(2, 19, 15, 0.72) 42%),
    rgba(2, 19, 15, 0.72);
}

.coach-detail-mode {
  background:
    linear-gradient(180deg, rgba(3, 45, 35, 0.8), rgba(0, 14, 11, 0.94)),
    #02130f;
}

.coach-detail-mode .management-list {
  gap: 0;
}

.coach-detail-identity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.coach-detail-avatar {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(18, 237, 121, 0.42);
  border-radius: 999px;
  color: #02130f;
  background: #dff7ea;
  box-shadow: 0 10px 30px rgba(18, 237, 121, 0.12);
  font-size: 1rem;
  font-weight: 1000;
}

.coach-detail-page-head h4 {
  margin: 0;
  color: rgba(255, 255, 255, 0.96);
}

.coach-detail-page-head span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
  font-weight: 850;
}

.coach-contact-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.coach-contact-card {
  display: grid;
  gap: 4px;
  min-width: 0;
  border: 1px solid rgba(126, 204, 172, 0.22);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
}

.coach-contact-card span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.7rem;
  font-weight: 950;
  text-transform: uppercase;
}

.coach-contact-card a,
.coach-contact-card strong {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.86rem;
  font-weight: 950;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.coach-contact-card a:hover,
.coach-contact-card a:focus-visible {
  color: #12ed79;
}

.coach-name-button {
  width: fit-content;
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.coach-name-button strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.coach-name-button strong::after {
  content: "Megnyitás";
  border: 1px solid rgba(18, 237, 121, 0.34);
  border-radius: 999px;
  padding: 3px 8px;
  color: #12ed79;
  font-size: 0.68rem;
  font-weight: 950;
}

.coach-management-item.is-open .coach-name-button strong::after {
  content: "Bezárás";
}

.coach-name-button:hover strong,
.coach-name-button:focus-visible strong {
  color: #12ed79;
}

.coach-receipt-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 5px;
}

.coach-receipt-file {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(18, 237, 121, 0.42);
  border-radius: 8px;
  padding: 7px 10px;
  color: #12ed79;
  background: rgba(18, 237, 121, 0.08);
  font-size: 0.78rem;
  font-weight: 950;
  cursor: pointer;
}

.coach-receipt-file span {
  display: inline-block;
  width: 13px;
  height: 16px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  box-shadow: inset 0 -4px 0 rgba(18, 237, 121, 0.18);
}

.coach-receipt-file:hover,
.coach-receipt-file:focus-visible {
  color: #02130f;
  border-color: #12ed79;
  background: #12ed79;
}

.coach-receipt-items {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

.coach-receipt-items small {
  border: 1px solid rgba(126, 204, 172, 0.26);
  border-radius: 999px;
  padding: 4px 8px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.72rem;
  font-weight: 900;
}

.coach-receipt-history {
  display: grid;
  gap: 10px;
  border-top: 1px solid rgba(18, 237, 121, 0.18);
  padding-top: 12px;
}

.coach-receipt-history-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.coach-receipt-history-head div {
  display: grid;
  gap: 3px;
}

.coach-receipt-history-head strong,
.coach-receipt-document strong {
  color: rgba(255, 255, 255, 0.94);
}

.coach-receipt-history-head span,
.coach-receipt-document span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.8rem;
  font-weight: 850;
}

.coach-receipt-document-list {
  display: grid;
  gap: 8px;
}

.coach-return-history-head {
  border-top: 1px solid rgba(18, 237, 121, 0.16);
  padding-top: 10px;
}

.coach-receipt-document {
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) minmax(0, 1.4fr) minmax(120px, 0.5fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(126, 204, 172, 0.22);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.coach-receipt-document > div:first-child {
  display: grid;
  gap: 3px;
}

.coach-receipt-visual-items {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  min-width: 0;
}

.coach-receipt-visual-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
  border: 1px solid rgba(126, 204, 172, 0.2);
  border-radius: 8px;
  padding: 7px;
  background: rgba(255, 255, 255, 0.045);
}

.coach-receipt-visual-item img,
.coach-receipt-visual-item > span {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: contain;
  background: #ffffff;
}

.coach-receipt-visual-item > span {
  display: grid;
  place-items: center;
  color: #02130f;
  font-size: 0.78rem;
  font-weight: 1000;
}

.coach-receipt-visual-item div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.coach-receipt-visual-item strong {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.coach-receipt-visual-item small {
  color: #12ed79;
  font-size: 0.76rem;
  font-weight: 950;
}

.coach-receipt-signature-preview {
  display: grid;
  gap: 5px;
  min-width: 0;
  border: 1px solid rgba(126, 204, 172, 0.2);
  border-radius: 8px;
  padding: 7px;
  background: rgba(255, 255, 255, 0.045);
}

.coach-receipt-signature-preview span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.coach-receipt-signature-preview img {
  width: 100%;
  height: 54px;
  border-radius: 6px;
  object-fit: contain;
  background: #ffffff;
}

.coach-receipt-signature-preview small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.72rem;
  font-weight: 850;
}

.coach-return-document-items {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

.coach-return-document-items small {
  border: 1px solid rgba(126, 204, 172, 0.24);
  border-radius: 999px;
  padding: 4px 8px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.72rem;
  font-weight: 900;
}

.coach-return-document-items small.has-missing {
  border-color: rgba(255, 129, 125, 0.45);
  color: #ffb8b5;
  background: rgba(255, 129, 125, 0.08);
}

@media (max-width: 760px) {
  .coach-full-hero,
  .coach-full-layout,
  .payment-full-hero,
  .payment-full-edit-grid {
    grid-template-columns: 1fr;
  }

  .payment-full-status {
    justify-items: start;
  }

  .payment-full-editor .payment-section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .payment-top-edit-button {
    width: 100%;
  }

  .payment-player-edit-grid,
  .payment-player-facts-list {
    grid-template-columns: 1fr;
  }

  .payment-full-status strong {
    text-align: left;
  }

  .coach-return-row {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .coach-return-check,
  .coach-return-quantity,
  .coach-return-missing,
  .coach-return-status {
    grid-column: 2;
  }

  .coach-detail-panel-head {
    display: grid;
  }

  .coach-detail-panel-head > span {
    max-width: none;
    text-align: left;
  }

  .coach-detail-page-head,
  .coach-receipt-document {
    grid-template-columns: 1fr;
  }

  .coach-contact-cards {
    grid-template-columns: 1fr;
  }

  .coach-receipt-document .coach-receipt-file {
    width: fit-content;
  }
}

/* Világos munkatér: egységesebb, nagyobb kontrasztú Kelen felület. */
:root {
  --green: #08774d;
  --green-dark: #075538;
  --green-deep: #063c2c;
  --mint: #e6f4eb;
  --ink: #15271e;
  --muted: #5c6d63;
  --line: #d4e0d9;
  --paper: #f3f7f4;
  --panel: #fbfdfb;
  --club-surface: #f7faf8;
  --shadow: 0 10px 26px rgba(22, 55, 42, 0.09);
  --soft-shadow: 0 5px 16px rgba(22, 55, 42, 0.07);
}

body {
  background: #f3f7f4;
}

.workspace,
.app-shell.is-player-focus .workspace,
.app-shell.is-coach-focus .workspace,
.app-shell.is-payment-focus .workspace {
  background: #f3f7f4;
}

.app-shell.is-player-focus .detail-panel {
  border-color: var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
}

.sidebar {
  border-right-color: rgba(255, 255, 255, 0.14);
  background: #073d30;
}

.sidebar-tools {
  background: #082c27;
}

.sidebar-tools:hover,
.sidebar-tools.is-labels-open {
  background: #082c27;
  box-shadow: 16px 0 34px rgba(7, 44, 39, 0.2);
}

.sidebar-drawer {
  background: #075238;
}

.sidebar-tool-action,
.rail-brand,
.sidebar .player-card,
.sidebar .team-toggle,
.sidebar .team-filter-item,
.sidebar .team-club-panel,
.sidebar .team-club-tab {
  border-color: rgba(255, 255, 255, 0.16);
}

.sidebar-tool-action:hover,
.sidebar-tool-action.is-active {
  border-color: rgba(129, 216, 170, 0.78);
  background: rgba(107, 203, 146, 0.18);
}

.sidebar-tool-action:hover > svg,
.sidebar-tool-action.is-active > svg,
.sidebar-tools:hover .sidebar-tool-action.is-active > span,
.sidebar-tools.is-labels-open .sidebar-tool-action.is-active > span,
.sidebar-tools:hover .sidebar-tool-action:hover > span {
  color: #b9f2ce;
}

.login-screen {
  background: #eef5f1;
}

.login-card {
  border-color: var(--line);
  background: var(--white);
  box-shadow: 0 20px 48px rgba(15, 61, 43, 0.12);
}

.login-logo {
  border: 1px solid #0b5b41;
  background: #063c2c;
  box-shadow: 0 8px 18px rgba(6, 60, 44, 0.14);
}

.topbar,
.detail-panel {
  border-color: var(--line);
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.topbar {
  border-left-color: var(--green);
}

.home-state,
.home-global-panel,
.home-team-players,
.coach-full-page,
.payment-full-page,
.coach-full-page .coach-detail-mode,
.coach-full-page .coach-detail-panel,
.coach-full-page .coach-receipt-history,
.payment-full-editor,
.player-detail,
.player-report,
.report-panel {
  color: var(--ink);
}

.home-state {
  background: transparent;
}

.home-hero,
.home-hero.is-poster-only,
.home-hero.has-team-dashboard {
  min-height: 0;
  border-color: var(--line);
  background: var(--white);
  box-shadow: none;
}

.home-hero::before {
  display: none;
}

.home-hero-copy,
.home-team-players,
.home-global-panel,
.team-view-menu,
.team-programs-head,
.team-measurement-table-head {
  border-color: var(--line);
  background: #f9fcfa;
  box-shadow: none;
}

.home-hero-copy h3,
.home-team-head strong,
.team-programs-head h3,
.team-measurement-table-head strong,
.home-team-players .chart-card-head h4,
.home-team-players .team-kpi strong,
.home-team-players .team-table-row strong {
  color: var(--ink);
}

.home-hero-copy p:last-child,
.home-team-players .chart-card-head span,
.home-team-players .team-kpi span,
.home-team-players .team-kpi small,
.home-team-players .team-table-row > span,
.home-team-players .chart-empty,
.home-team-players .muted-empty,
.team-programs-head span,
.team-measurement-table-head span {
  color: var(--muted);
}

.team-view-button {
  border-color: var(--line);
  color: #294438;
  background: var(--white);
}

.team-view-icon {
  color: var(--green);
  background: var(--mint);
}

.team-view-button:hover,
.team-view-button.is-active {
  border-color: #8bc9a6;
  color: var(--green-dark);
  background: var(--mint);
}

.team-view-button:hover .team-view-icon,
.team-view-button.is-active .team-view-icon {
  color: var(--white);
  background: var(--green);
}

.home-player-section {
  border-top-color: var(--line);
}

.home-team-players .chart-card,
.home-team-players .team-kpi,
.home-team-players .team-table,
.home-team-players .team-table-row,
.home-team-players .excel-table-wrap,
.home-team-players .excel-table th,
.home-team-players .excel-table td,
.team-table-controls input,
.team-table-controls select {
  border-color: var(--line);
  color: var(--ink);
  background: var(--white);
  box-shadow: none;
}

.home-team-players .team-table-head,
.home-team-players .excel-table thead th {
  color: #1f4f39;
  background: #eaf5ee;
}

.home-team-players .team-table-row:nth-child(even),
.home-team-players .excel-table tr:nth-child(even) td {
  background: #f7faf8;
}

.home-team-players .excel-table tfoot th,
.home-team-players .excel-table tfoot td {
  color: #17442f;
  background: #dff1e6;
}

.player-detail {
  background: var(--white);
}

.detail-panel {
  border-top-color: var(--green);
}

.player-detail .profile-header,
.player-detail .tabs {
  border-color: var(--line);
}

.player-detail h3,
.player-detail h4,
.player-detail h5,
.player-detail h6,
.player-detail strong,
.player-detail b,
.player-detail dd,
.player-detail summary,
.player-detail #detailName,
.player-detail .classification-table-row > span,
.player-detail .classification-detail summary strong,
.player-detail .classification-detail-row > span:first-child {
  color: var(--ink);
  text-shadow: none;
}

.player-detail .eyebrow,
.player-detail label,
.player-detail .meta-pill,
.player-detail .info-list dt,
.player-detail .history-item span,
.player-detail .section-heading span,
.player-detail .feedback-card-head span,
.player-detail .chart-card-head span,
.player-detail .feedback-card p,
.player-detail .feedback-list li > span,
.player-detail .feedback-list small,
.player-detail .feedback-sublist > span,
.player-detail .feedback-sublist li span,
.player-detail .focus-list li,
.player-detail .reference-source,
.player-detail .reference-summary span,
.player-detail .metric-table-row > span,
.player-detail .metric-table-row small,
.player-detail .team-table-row > span,
.player-detail .team-kpi span,
.player-detail .team-kpi small,
.player-detail .full-data-group h6,
.player-detail .full-data-item span,
.player-detail .trend-kpi span,
.player-detail .trend-kpi small,
.player-detail .trend-period span,
.player-detail .trend-focus-card span,
.player-detail .trend-focus-card small,
.player-detail .status-tile span,
.player-detail .spark-copy span,
.player-detail .chart-empty,
.player-detail .reference-compare-summary span,
.player-detail .reference-compare-summary small,
.player-detail .reference-compare-row > span:first-child,
.player-detail .management-item span,
.player-detail .management-item small,
.player-detail .classification-detail summary small,
.player-detail .classification-detail-row small,
.player-detail .classification-text-details span,
.player-detail .classification-note p,
.player-detail .sync-card .section-heading span,
.player-detail .photo-upload-copy > span,
.player-detail .muted-empty {
  color: var(--muted);
}

.player-detail .meta-pill,
.player-detail .tab,
.player-detail .result-subtabs,
.player-detail .info-block,
.player-detail .score-summary-tile,
.player-detail .orthopedic-reference-card,
.player-detail .orthopedic-reference-compare-card,
.player-detail .orthopedic-age-comparison,
.player-detail .metric-table-row,
.player-detail .reference-compare-row,
.player-detail .team-table-row,
.player-detail .classification-table-row,
.player-detail .classification-detail-row,
.player-detail .feedback-list li,
.player-detail .feedback-sublist,
.player-detail .full-data-section,
.player-detail .classification-detail-list,
.player-detail .classification-detail-body,
.player-detail .classification-note,
.player-detail .orthopedic-trends,
.player-detail .form-section,
.player-detail .excel-table-wrap,
.player-detail .excel-table td,
.player-detail .excel-table tbody th,
.player-detail input,
.player-detail select,
.player-detail textarea {
  border-color: var(--line);
  color: var(--ink);
  background: #fbfdfb;
}

.player-detail .tab.is-active,
.player-detail .tab:hover,
.player-detail .result-subtab.is-active,
.player-detail .result-subtab:hover {
  border-color: #8fcaa8;
  color: var(--green-dark);
  background: var(--mint);
}

.player-detail .result-subtab {
  color: var(--muted);
}

.player-detail .score-summary-tile strong,
.player-detail .orthopedic-reference-head strong,
.player-detail .orthopedic-reference-row strong,
.player-detail .orthopedic-reference-compare-card strong,
.player-detail .orthopedic-reference-compare-card b,
.player-detail .orthopedic-age-comparison-head strong {
  color: var(--ink);
}

.player-detail .orthopedic-reference-head span,
.player-detail .orthopedic-reference-head small,
.player-detail .orthopedic-reference-summary strong,
.player-detail .orthopedic-reference-row span,
.player-detail .orthopedic-reference-compare-card span,
.player-detail .orthopedic-reference-compare-card small,
.player-detail .orthopedic-age-comparison-head span {
  color: var(--muted);
}

.player-detail .orthopedic-reference-summary span,
.player-detail .orthopedic-reference-row,
.player-detail .orthopedic-reference-row.is-current {
  border-color: #b6d9c3;
  color: var(--ink);
  background: #edf7f0;
}

.player-detail .metric-table-row:nth-child(even),
.player-detail .team-table-row:nth-child(even),
.player-detail .classification-detail-row:nth-child(even),
.player-detail .excel-table tr:nth-child(even) td {
  background: #f5faf7;
}

.player-detail .metric-table-head,
.player-detail .team-table-head,
.player-detail .classification-table-head,
.player-detail .classification-detail-head,
.player-detail .excel-table thead th {
  color: #1f4f39;
  background: #e8f4ec;
}

.player-detail .reference-pill.good,
.player-detail .risk-pill.low,
.player-detail .classification-mini-badge.good,
.player-detail .trend-kpi.good,
.player-detail .trend-focus-card.good,
.player-detail .status-tile.good {
  color: #08774d;
  background: #e1f5e9;
  border-color: #9dd6b4;
}

.player-detail .reference-pill.neutral,
.player-detail .classification-mini-badge.neutral {
  color: #53645b;
  background: #edf2ef;
  border-color: #d5e0d9;
}

.player-detail .reference-pill.warn,
.player-detail .risk-pill.medium,
.player-detail .classification-mini-badge.warn,
.player-detail .trend-kpi.neutral,
.player-detail .trend-focus-card.neutral,
.player-detail .status-tile.neutral {
  color: #805806;
  background: #fff4cd;
  border-color: #edce72;
}

.player-detail .reference-pill.bad,
.player-detail .risk-pill.high,
.player-detail .classification-mini-badge.bad,
.player-detail .trend-kpi.bad,
.player-detail .trend-focus-card.bad,
.player-detail .status-tile.bad {
  color: #9c302b;
  background: #fff0ee;
  border-color: #f0aaa5;
}

.player-detail .progress-track {
  background: #e6eeea;
}

.player-detail .spark-axis,
.radar-ring,
.radar-axis {
  stroke: #b7c9bd;
}

.player-detail .spark-line,
.radar-line {
  stroke: var(--green);
}

.player-detail .spark-dot.plain,
.player-detail .spark-dot.neutral {
  fill: #edf5f0;
}

.player-report {
  border-color: var(--line);
  border-top-color: var(--green);
  background: #f5faf7;
  box-shadow: var(--shadow);
}

.report-panel {
  border-color: var(--line);
  background: var(--white);
  box-shadow: none;
}

.report-profile-panel h3,
.report-panel-head h3,
.report-stat-row strong,
.report-results-row strong,
.report-results-date-cell strong {
  color: var(--ink);
}

.report-profile-panel p,
.report-panel-head span,
.report-empty,
.report-stat-row span,
.report-results-head,
.report-results-row span,
.coach-note-stack p,
.report-results-date-cell small {
  color: var(--muted);
}

.report-stat-row,
.report-results-row:nth-child(even) {
  border-color: var(--line);
  background: #f7faf8;
}

.radar-area {
  fill: rgba(8, 119, 77, 0.16);
}

.radar-dot {
  fill: var(--green);
  stroke: var(--white);
}

.radar-label,
.radar-scale {
  fill: #405d4f;
}

@media (max-width: 760px) {
  .program-calendar-panel {
    padding: 12px;
  }

  .program-calendar-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .program-calendar-actions {
    align-items: stretch;
    justify-content: stretch;
    flex-direction: column;
  }

  .program-calendar-actions label,
  .program-calendar-actions select,
  .program-calendar-actions .primary-action {
    width: 100%;
  }

  .program-calendar-view-toolbar {
    align-items: stretch;
  }

  .program-calendar-view-toolbar > button,
  .program-calendar-period-navigation {
    flex: 1 1 auto;
  }

  .program-calendar-period-navigation {
    justify-content: center;
    width: 100%;
    margin-left: 0;
  }

  .program-calendar-period-navigation strong {
    min-width: 0;
    flex: 1 1 auto;
  }
}

.coach-full-hero,
.payment-full-hero,
.payment-full-editor,
.coach-full-page .coach-detail-panel,
.coach-full-page .coach-receipt-history,
.coach-new-receipt-menu,
.coach-detail-page-head,
.coach-detail-mode,
.coach-detail-panel,
.coach-clothing-row,
.coach-tools-grid label,
.coach-contact-card,
.coach-receipt-document,
.coach-receipt-visual-item,
.coach-receipt-signature-preview,
.coach-return-row,
.coach-return-hint,
.parent-child-report-card,
.parent-payment-timeline-card {
  border-color: var(--line);
  color: var(--ink);
  background: var(--white);
  box-shadow: none;
}

.coach-full-page h2,
.payment-full-page h2,
.coach-full-page h3,
.coach-full-page h4,
.payment-full-page h3,
.payment-full-page h4,
.coach-detail-page-head h4,
.coach-detail-panel-head h3,
.coach-receipt-history-head strong,
.coach-receipt-document strong,
.coach-receipt-visual-item strong,
.coach-return-copy strong,
.coach-return-hint strong,
.payment-edit-subsection > strong {
  color: var(--ink);
}

.coach-full-page :is(span, small, p, label),
.payment-full-page :is(span, small, p, label),
.coach-detail-page-head span,
.coach-detail-panel-head > span,
.coach-contact-card span,
.coach-receipt-history-head span,
.coach-receipt-document span,
.coach-receipt-signature-preview span,
.coach-receipt-signature-preview small,
.coach-return-copy small,
.coach-return-check,
.coach-return-quantity,
.coach-return-note,
.coach-return-hint span {
  color: var(--muted);
}

.coach-contact-card a,
.coach-contact-card strong,
.coach-equipment-card strong,
.coach-signature-head strong,
.coach-detail-tabs button,
.coach-clothing-row,
.coach-tools-grid label {
  color: var(--ink);
}

.coach-full-page input,
.coach-full-page select,
.coach-full-page textarea,
.payment-full-page input,
.payment-full-page select,
.payment-full-page textarea,
.home-global-panel input,
.home-global-panel select,
.home-global-panel textarea {
  border-color: var(--line);
  color: var(--ink);
  background: var(--white);
}

.coach-detail-tabs button.is-active,
.coach-new-receipt-menu summary::after {
  color: var(--white);
  border-color: var(--green);
  background: var(--green);
}

.coach-detail-tabs button,
.coach-receipt-items small,
.coach-return-document-items small,
.payment-full-hero > div:first-child span {
  border-color: var(--line);
  color: #355447;
  background: #f1f7f3;
}

.parent-payment-reminder-modal {
  color: var(--ink);
  background: #fff8e3;
  box-shadow: var(--soft-shadow);
}

.technical-player-dialog-card,
.technical-player-dialog-card input,
.technical-player-dialog-card select,
.technical-player-dialog-card textarea,
.technical-player-mode-switch,
.technical-excel-upload,
.technical-bulk-table-wrap,
.technical-bulk-entry-table td {
  border-color: var(--line);
  color: var(--ink);
  background: var(--white);
}

.technical-player-dialog-card label,
.technical-player-dialog-card .eyebrow,
.technical-player-dialog-card h3,
.technical-excel-upload strong,
.technical-bulk-toolbar span {
  color: var(--ink);
}

.technical-player-mode-switch button {
  color: var(--muted);
}

.technical-player-mode-switch button.is-active,
.technical-excel-upload-button {
  color: var(--white);
  border-color: var(--green);
  background: var(--green);
}

.technical-excel-upload span {
  color: var(--muted);
}

.technical-bulk-entry-table th {
  color: #1e4f38;
  background: #e7f3eb;
}

#coachProgramDialog::backdrop {
  background: rgba(15, 39, 30, 0.34);
  backdrop-filter: blur(3px);
}

#coachProgramDialog .coach-program-dialog-card,
.coach-program-dialog-card {
  border-color: #94cfae;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 18px 42px rgba(21, 57, 42, 0.16);
}

#coachProgramDialog .coach-program-dialog-card h3,
#coachProgramDialog .coach-program-dialog-card label,
#coachProgramDialog .coach-program-dialog-card .dialog-subtitle,
#coachProgramDialog .coach-program-dialog-card .dialog-form-note,
.coach-program-dialog-card h3,
.coach-program-dialog-card label,
.coach-program-dialog-card .dialog-subtitle,
.coach-program-dialog-card .dialog-form-note,
.coach-program-repeat legend,
.coach-repeat-weekdays > span {
  color: var(--ink);
}

#coachProgramDialog .coach-program-dialog-card input,
#coachProgramDialog .coach-program-dialog-card select,
#coachProgramDialog .coach-program-dialog-card textarea,
.coach-program-dialog-card input,
.coach-program-dialog-card select,
.coach-program-dialog-card textarea {
  border-color: var(--line);
  color: var(--ink);
  background: #fbfdfb;
}

.coach-program-repeat {
  border-color: #c7ded0;
  background: #f3faf5;
}

@media (max-width: 1100px) {
  .sidebar-tools,
  .sidebar-tools:hover,
  .sidebar-tools.is-labels-open {
    background: #082c27;
  }

  .sidebar-drawer {
    background: #075238;
  }
}

.coach-detail-panel {
  display: grid;
  gap: 12px;
  margin-top: 10px;
  border: 1px solid rgba(18, 237, 121, 0.22);
  border-radius: 8px;
  padding: 12px;
  background: rgba(2, 19, 15, 0.62);
}

.coach-detail-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.coach-detail-tabs button {
  border: 1px solid rgba(18, 237, 121, 0.28);
  border-radius: 8px;
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 950;
}

.coach-detail-tabs button.is-active {
  color: #02130f;
  border-color: #12ed79;
  background: #12ed79;
}

.coach-equipment-grid,
.coach-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.coach-clothing-row,
.coach-tools-grid label {
  display: grid;
  gap: 6px;
  min-width: 0;
  border: 1px solid rgba(126, 204, 172, 0.2);
  border-radius: 8px;
  padding: 10px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.045);
  font-weight: 850;
}

.coach-clothing-row {
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
}

.coach-clothing-row input,
.coach-tools-grid input {
  grid-column: 2;
  width: 96px;
  justify-self: start;
  margin-top: 2px;
}

.coach-equipment-card img {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: contain;
  background: #ffffff;
}

.coach-equipment-card span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.coach-equipment-card strong {
  color: rgba(255, 255, 255, 0.94);
  overflow-wrap: anywhere;
}

.coach-equipment-card small {
  color: #12ed79;
  font-weight: 950;
}

.coach-tool-row {
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
}

.coach-signature-panel {
  display: grid;
  gap: 10px;
  border-top: 1px solid rgba(18, 237, 121, 0.18);
  padding-top: 12px;
}

.coach-signature-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.coach-signature-head div {
  display: grid;
  gap: 3px;
}

.coach-signature-head strong {
  color: rgba(255, 255, 255, 0.94);
}

.coach-signature-head span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
  font-weight: 850;
}

.coach-signature-canvas {
  width: 100%;
  max-width: 680px;
  aspect-ratio: 680 / 190;
  border: 1px solid rgba(18, 237, 121, 0.35);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(2, 19, 15, 0.08);
  touch-action: none;
  cursor: crosshair;
}

.coach-signature-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.coach-phone-link {
  color: var(--green);
  font-weight: 900;
  text-decoration: none;
}

.coach-phone-link:hover {
  text-decoration: underline;
}

.field-document-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--club-surface);
}

.field-schedule-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 520px);
  margin-bottom: 14px;
}

.field-schedule-switch button {
  width: 100%;
  min-width: 0;
  text-align: center;
}

.field-document-upload {
  display: grid;
  gap: 5px;
  min-width: 0;
  border: 1px dashed rgba(0, 117, 78, 0.38);
  border-radius: 8px;
  padding: 14px;
  color: var(--ink);
  background: rgba(0, 117, 78, 0.06);
  cursor: pointer;
}

.field-document-upload strong {
  font-size: 0.95rem;
}

.field-document-upload span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.field-document-list {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.field-document-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: var(--white);
}

.field-document-item.is-active {
  border-color: rgba(0, 117, 78, 0.5);
  box-shadow: inset 4px 0 0 var(--green);
}

.field-document-open {
  display: grid;
  gap: 4px;
  min-width: 0;
  border: none;
  padding: 4px;
  color: inherit;
  background: transparent;
  text-align: left;
}

.field-document-open strong,
.field-document-open span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.field-document-open span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.field-document-viewer {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--white);
}

.field-document-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  margin-bottom: 10px;
}

.field-document-preview-head strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.field-document-preview-head a {
  flex: 0 0 auto;
  color: var(--green);
  font-weight: 900;
  text-decoration: none;
}

.field-document-frame {
  display: block;
  width: 100%;
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.field-document-image {
  display: block;
  width: 100%;
  max-height: 640px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.measurement-entry-block[hidden] {
  display: none;
}

.form-section {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.form-section h4 {
  margin-bottom: 0;
}

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

.compact-grid {
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
}

.history-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.small-delete {
  min-width: 34px;
  min-height: 34px;
  border: 1px solid #f0c8c5;
  border-radius: 8px;
  color: var(--danger);
  background: var(--danger-bg);
  font-weight: 900;
}

.data-hero {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--panel);
}

.data-hero-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 126px;
  min-width: 126px;
  border-radius: 8px;
  padding: 8px;
  background: var(--green-deep);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.data-hero-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.data-hero h3 {
  font-size: 1.18rem;
}

.sync-card,
.local-data-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.sync-card {
  border-top: 4px solid var(--green);
}

.local-data-card {
  border-top: 4px solid var(--gold);
}

.sync-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 0;
}

.sync-card .section-heading span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
  line-height: 1.35;
}

.sync-badge {
  display: inline-grid;
  place-items: center;
  min-height: 30px;
  border-radius: 8px;
  padding: 5px 9px;
  color: var(--muted);
  background: #f0f4f2;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.sync-badge.ready,
.sync-badge.signedIn {
  color: var(--green);
  background: var(--mint);
}

.sync-badge.connecting {
  color: #8a630d;
  background: #fff3c8;
}

.sync-badge.error {
  color: var(--danger);
  background: var(--danger-bg);
}

.sync-content {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.sync-login {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--panel);
}

.sync-login[hidden],
#supabaseSignOutBtn[hidden],
.sync-actions[hidden] {
  display: none;
}

.signed-in-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.sync-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.data-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.data-actions > button {
  justify-content: center;
}

dialog {
  width: min(720px, calc(100vw - 28px));
  border: none;
  border-radius: 8px;
  padding: 0;
  background: transparent;
}

#importWizardDialog {
  width: min(960px, calc(100vw - 28px));
}

dialog::backdrop {
  background: rgba(21, 32, 28, 0.48);
}

.delete-confirm-dialog {
  width: min(520px, calc(100vw - 28px));
}

.delete-confirm-dialog::backdrop {
  background: rgba(0, 12, 9, 0.68);
  backdrop-filter: blur(5px);
}

.delete-confirm-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 111, 111, 0.34);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  background:
    linear-gradient(145deg, rgba(96, 18, 18, 0.2), rgba(2, 19, 15, 0.96) 44%),
    #02130f;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.52);
}

.delete-confirm-card.is-neutral {
  border-color: rgba(18, 237, 121, 0.36);
  background:
    linear-gradient(145deg, rgba(18, 237, 121, 0.14), rgba(2, 19, 15, 0.96) 44%),
    #02130f;
}

.delete-confirm-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 111, 111, 0.56);
  border-radius: 999px;
  color: #ff7b7b;
  background: rgba(255, 111, 111, 0.1);
  font-size: 1.25rem;
  font-weight: 1000;
}

.delete-confirm-card.is-neutral .delete-confirm-mark {
  border-color: rgba(18, 237, 121, 0.58);
  color: #12ed79;
  background: rgba(18, 237, 121, 0.1);
}

.delete-confirm-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.delete-confirm-copy h3,
.delete-confirm-copy p {
  margin: 0;
}

.delete-confirm-copy h3 {
  color: rgba(255, 255, 255, 0.98);
  font-size: 1.2rem;
}

.delete-confirm-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
  line-height: 1.45;
}

.delete-confirm-copy small {
  color: rgba(255, 255, 255, 0.58);
  font-weight: 800;
}

.delete-confirm-actions {
  grid-column: 1 / -1;
  gap: 8px;
  margin-top: 2px;
}

.delete-confirm-actions .danger-action {
  border-color: rgba(255, 111, 111, 0.68);
  color: #fff2f2;
  background: rgba(255, 111, 111, 0.18);
}

.delete-confirm-actions .danger-action:hover,
.delete-confirm-actions .danger-action:focus-visible {
  color: #2a0505;
  background: #ff7b7b;
}

.app-prompt-card {
  grid-template-columns: 46px minmax(0, 1fr);
}

.app-prompt-field {
  display: grid;
  gap: 7px;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 900;
}

.app-prompt-field input,
.app-prompt-field select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(18, 237, 121, 0.28);
  border-radius: 8px;
  padding: 10px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  font: inherit;
  font-weight: 900;
  outline: none;
}

.app-prompt-field input:focus,
.app-prompt-field select:focus {
  border-color: rgba(18, 237, 121, 0.78);
  box-shadow: 0 0 0 3px rgba(18, 237, 121, 0.12);
}

#technicalPlayerDialog {
  width: min(1180px, calc(100vw - 28px));
}

#playerDialog {
  width: min(1080px, calc(100vw - 28px));
  max-width: calc(100vw - 28px);
  overflow: hidden;
}

.dialog-card {
  display: grid;
  gap: 16px;
  box-sizing: border-box;
  width: 100%;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.account-privacy-dialog {
  width: min(720px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: transparent;
}

.account-privacy-card {
  width: 100%;
  max-height: calc(100vh - 32px);
  overflow: auto;
  gap: 20px;
}

.account-privacy-summary,
.account-privacy-information,
.account-delete-zone {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line, #dbe4ec);
  border-radius: 18px;
  background: var(--surface-soft, #f7faf9);
}

.account-privacy-summary span,
.account-privacy-summary small,
.account-privacy-information p,
.account-delete-zone p,
.account-delete-zone small {
  margin: 0;
  color: var(--muted, #5e6f80);
  line-height: 1.55;
}

.account-privacy-summary strong,
.account-privacy-information h4,
.account-delete-zone h4 {
  margin: 0;
  color: var(--ink, #13263a);
}

.account-delete-zone {
  border-color: #efb9bd;
  background: #fff6f6;
}

.account-delete-zone label {
  display: grid;
  gap: 8px;
  color: #6f232a;
  font-weight: 700;
}

.account-delete-zone input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #d68b92;
  border-radius: 12px;
  background: #fff;
  color: #2b1517;
  font: inherit;
}

.native-app-account {
  margin-bottom: 8px;
  border-color: color-mix(in srgb, var(--accent, #087c55) 35%, transparent);
  color: var(--accent, #087c55);
}

@media (max-width: 640px) {
  .account-privacy-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
  }

  .account-privacy-card {
    max-height: calc(100dvh - 16px);
    padding: 18px;
  }
}

#playerDialog .dialog-card {
  max-height: calc(100vh - 32px);
  overflow-x: hidden;
  overflow-y: auto;
}

.dialog-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.dialog-actions {
  justify-content: flex-end;
}

.technical-player-dialog-card {
  width: min(1180px, calc(100vw - 28px));
  max-height: min(860px, calc(100vh - 28px));
  overflow: auto;
  border-color: rgba(18, 237, 121, 0.22);
  background: #031b14;
  color: #f4fbf6;
}

.technical-player-dialog-card label,
.technical-player-dialog-card .eyebrow,
.technical-player-dialog-card h3 {
  color: #f4fbf6;
}

.technical-player-dialog-card input,
.technical-player-dialog-card select,
.technical-player-dialog-card textarea {
  border-color: rgba(18, 237, 121, 0.24);
  background: #0b241c;
  color: #f4fbf6;
}

.technical-player-mode-switch {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  width: fit-content;
  border: 1px solid rgba(18, 237, 121, 0.22);
  border-radius: 8px;
  padding: 6px;
  background: #02130f;
}

.technical-player-mode-switch button {
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}

.technical-player-mode-switch button.is-active {
  border-color: rgba(18, 237, 121, 0.54);
  color: #02130f;
  background: #12ed79;
}

.technical-excel-upload {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(18, 237, 121, 0.2);
  border-radius: 8px;
  padding: 12px;
  background: #02130f;
}

.technical-excel-upload div {
  display: grid;
  gap: 3px;
}

.technical-excel-team-select {
  display: grid;
  min-width: min(220px, 100%);
  gap: 4px;
}

.technical-excel-team-select span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.technical-excel-team-select select {
  min-height: 42px;
  border: 1px solid rgba(18, 237, 121, 0.35);
  border-radius: 7px;
  padding: 8px 10px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  font: inherit;
  font-weight: 800;
}

.technical-excel-upload strong {
  color: #ffffff;
}

.technical-excel-upload span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.86rem;
  font-weight: 800;
}

.technical-excel-upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 42px;
  border-color: rgba(18, 237, 121, 0.62);
  padding: 10px 15px;
  color: #02130f;
  background: #12ed79;
  font-weight: 1000;
  cursor: pointer;
}

.technical-excel-upload-button:hover,
.technical-excel-upload-button:focus-visible {
  border-color: rgba(255, 255, 255, 0.72);
  color: #02130f;
  background: #7fffb3;
}

.technical-bulk-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 10px;
}

.technical-bulk-toolbar span {
  margin-right: auto;
  color: #ffffff;
  font-weight: 950;
}

.technical-bulk-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(18, 237, 121, 0.22);
  border-radius: 8px;
  background: #061610;
}

.technical-bulk-entry-table {
  min-width: 1540px;
  width: 100%;
  border-collapse: collapse;
}

.technical-bulk-entry-table th,
.technical-bulk-entry-table td {
  border-bottom: 1px solid rgba(18, 237, 121, 0.16);
  border-right: 1px solid rgba(18, 237, 121, 0.13);
  padding: 7px;
  text-align: left;
  vertical-align: middle;
}

.technical-bulk-entry-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #12ed79;
  font-size: 0.78rem;
  font-weight: 950;
  background: #001f16;
}

.technical-bulk-entry-table td {
  background: #031b14;
}

.technical-bulk-entry-table input,
.technical-bulk-entry-table select {
  width: 100%;
  min-width: 120px;
  min-height: 34px;
  border-radius: 6px;
  padding: 7px 8px;
  font-size: 0.88rem;
}

.coach-import-form {
  gap: 14px;
}

.coach-directory-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.coach-directory-switch button {
  border: 1px solid rgba(18, 237, 121, 0.3);
  border-radius: 8px;
  padding: 9px 13px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 950;
}

.coach-directory-switch button.is-active {
  border-color: #12ed79;
  color: #02130f;
  background: #12ed79;
}

.player-equipment-item {
  display: grid;
  gap: 14px;
}

.player-equipment-head {
  display: grid;
  gap: 4px;
}

.player-equipment-head strong {
  font-size: 1rem;
}

.player-equipment-sections {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.8fr);
  gap: 14px;
}

.player-equipment-sections section {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.player-equipment-sections h4 {
  margin: 0;
  color: #ffffff;
  font-size: 0.9rem;
}

.player-equipment-detail-note {
  display: grid;
  gap: 5px;
  justify-items: end;
  max-width: 280px;
  text-align: right;
}

.player-equipment-detail-note strong {
  color: #12ed79;
  font-weight: 1000;
}

.player-equipment-detail-note span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.4;
}

.coach-add-tools {
  display: grid;
  gap: 12px;
}

.coach-bulk-entry-table {
  min-width: 760px;
}

.coach-bulk-entry-table input {
  min-width: 150px;
}

.player-add-tools {
  display: grid;
  gap: 12px;
}

#playerForm.is-editing-player .player-add-tools,
#playerForm.is-editing-player .new-player-create-fields,
#playerForm .player-add-tools[hidden],
#playerForm [data-player-panel][hidden] {
  display: none !important;
}

.new-player-create-fields {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.player-create-fieldset {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(0, 117, 78, 0.18);
  border-radius: 8px;
  padding: 14px;
  background: rgba(0, 117, 78, 0.06);
}

.player-create-fieldset h4 {
  margin: 0;
  color: var(--green-dark);
  font-size: 1rem;
  font-weight: 950;
}

.player-add-mode-switch {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  width: fit-content;
  border: 1px solid rgba(0, 117, 78, 0.18);
  border-radius: 8px;
  padding: 6px;
  background: var(--mint);
}

.player-add-mode-switch button {
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 8px 12px;
  color: var(--green-dark);
  background: transparent;
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}

.player-add-mode-switch button.is-active {
  border-color: var(--green);
  color: var(--white);
  background: var(--green);
}

.player-excel-upload {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(0, 117, 78, 0.18);
  border-radius: 8px;
  padding: 12px;
  background: #fbfdfc;
}

.player-excel-upload div {
  display: grid;
  gap: 3px;
}

.player-excel-upload span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.player-excel-upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 42px;
  border-color: rgba(0, 117, 78, 0.38);
  padding: 10px 15px;
  font-weight: 1000;
  cursor: pointer;
}

.player-bulk-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 10px;
}

.player-bulk-toolbar span {
  margin-right: auto;
  color: var(--green-dark);
  font-weight: 950;
}

.player-bulk-table-wrap {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid rgba(0, 117, 78, 0.18);
  border-radius: 8px;
  padding: 8px;
  background:
    linear-gradient(90deg, rgba(0, 117, 78, 0.08), rgba(0, 117, 78, 0) 22px) left / 26px 100% no-repeat,
    linear-gradient(270deg, rgba(0, 117, 78, 0.08), rgba(0, 117, 78, 0) 22px) right / 26px 100% no-repeat,
    #eef9f3;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

#playerForm [data-player-panel] {
  min-width: 0;
}

.player-bulk-entry-table {
  min-width: 2180px;
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 8px;
  background: #f8fffb;
}

.player-bulk-entry-table th,
.player-bulk-entry-table td {
  border-bottom: 1px solid rgba(0, 117, 78, 0.13);
  border-right: 1px solid rgba(0, 117, 78, 0.1);
  padding: 7px;
  text-align: left;
  vertical-align: middle;
  background: #f8fffb;
}

.player-bulk-entry-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 950;
  background: var(--mint);
}

.player-bulk-entry-table tbody tr:nth-child(even) td {
  background: #f1fbf6;
}

.player-bulk-entry-table input {
  width: 100%;
  min-width: 120px;
  min-height: 34px;
  border: 1px solid rgba(0, 117, 78, 0.22);
  border-radius: 6px;
  padding: 7px 8px;
  background: #ffffff;
  color: var(--green-dark);
  font-size: 0.88rem;
  font-weight: 850;
}

.player-bulk-entry-table input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(18, 237, 121, 0.14);
  outline: none;
}

.photo-upload-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfdfc;
}

.photo-preview {
  display: grid;
  place-items: center;
}

.photo-upload-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.photo-upload-copy > span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

.photo-select-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  color: var(--ink);
  cursor: pointer;
}

.primary-action:disabled,
.ghost-action:disabled,
.danger-action:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  max-width: min(420px, calc(100vw - 40px));
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  border-radius: 8px;
  padding: 13px 15px;
  color: var(--white);
  background: var(--ink);
  box-shadow: var(--shadow);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.muted-empty {
  color: var(--muted);
  font-weight: 700;
}

.player-report-shell {
  margin-bottom: 18px;
}

.player-report {
  display: grid;
  grid-template-columns: minmax(240px, 0.82fr) minmax(320px, 1fr) minmax(300px, 0.95fr);
  gap: 18px;
  min-width: 0;
  border: 1px solid rgba(13, 232, 122, 0.34);
  border-top: 3px solid #10e676;
  border-radius: 8px;
  padding: 22px;
  color: rgba(255, 255, 255, 0.92);
  background:
    radial-gradient(circle at 18% 12%, rgba(16, 230, 118, 0.18), transparent 32%),
    linear-gradient(135deg, #021b18 0%, #041f1c 48%, #061512 100%);
  box-shadow: 0 24px 60px rgba(2, 27, 24, 0.2);
}

.report-panel {
  min-width: 0;
  border: 1px solid rgba(126, 204, 172, 0.24);
  border-radius: 8px;
  padding: 22px;
  color: rgba(255, 255, 255, 0.92);
  background:
    linear-gradient(180deg, rgba(9, 56, 46, 0.7), rgba(3, 28, 24, 0.9)),
    rgba(3, 28, 24, 0.92);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.player-report > .report-results-panel {
  grid-column: 2 / -1;
}

.visual-grid.single-grid.profile-report-visual {
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.22fr);
}

.visual-grid.single-grid.profile-report-visual .report-panel {
  min-height: 100%;
}

.report-profile-panel {
  display: grid;
  align-content: start;
  justify-items: center;
  text-align: center;
}

.report-avatar-wrap {
  display: grid;
  place-items: center;
  width: min(190px, 100%);
  margin: 22px auto 18px;
}

.avatar-report {
  width: min(174px, 52vw);
  border: none;
  color: #031b16;
  background: linear-gradient(135deg, #12ed79, #00bd61);
  font-size: 3.4rem;
  box-shadow: 0 18px 50px rgba(16, 230, 118, 0.22);
}

.report-profile-panel h3 {
  margin-bottom: 8px;
  color: #ffffff;
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  line-height: 1.05;
}

.report-profile-panel p,
.report-panel-head span,
.report-empty,
.report-stat-row span,
.report-results-head,
.report-results-row span,
.coach-note-stack p {
  color: rgba(255, 255, 255, 0.68);
}

.report-stat-list {
  display: grid;
  gap: 12px;
  width: 100%;
  margin-top: 28px;
}

.report-stat-row {
  display: grid;
  gap: 7px;
  min-width: 0;
  border: 1px solid rgba(126, 204, 172, 0.22);
  border-top: 4px solid #12ed79;
  border-radius: 8px;
  padding: 15px 16px;
  text-align: left;
  background: rgba(255, 255, 255, 0.045);
}

.report-stat-row strong {
  color: #ffffff;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1;
}

.report-stat-row span {
  font-size: 0.94rem;
  font-weight: 750;
}

.report-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  margin-bottom: 14px;
}

.report-panel-head h3 {
  position: relative;
  margin-bottom: 8px;
  color: #ffffff;
  font-size: clamp(1.35rem, 2.3vw, 1.8rem);
  line-height: 1.15;
}

.report-coach-panel .report-panel-head h3::after {
  display: block;
  width: 78px;
  height: 4px;
  margin-top: 9px;
  border-radius: 999px;
  background: #12ed79;
  content: "";
}

.radar-chart {
  display: block;
  width: min(100%, 430px);
  height: auto;
  margin: 6px auto 0;
  overflow: visible;
}

.radar-ring {
  fill: none;
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 1.2;
}

.radar-axis {
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 1;
}

.radar-area {
  fill: rgba(18, 237, 121, 0.25);
}

.radar-line {
  fill: none;
  stroke: #12ed79;
  stroke-linejoin: round;
  stroke-width: 4;
}

.radar-dot {
  fill: #12ed79;
  stroke: #021b18;
  stroke-width: 2;
}

.radar-label,
.radar-scale {
  fill: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  font-weight: 780;
}

.radar-scale {
  fill: rgba(255, 255, 255, 0.58);
}

.coach-note-stack {
  display: grid;
  gap: 24px;
  margin-top: 16px;
}

.coach-note-stack section {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.coach-note-stack h4 {
  margin: 0;
  color: #12ed79;
  font-size: 1.05rem;
}

.coach-note-stack section:nth-child(2) h4 {
  color: #ffbf3f;
}

.coach-note-stack p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.48;
}

.report-results-table {
  display: grid;
  gap: 0;
  min-width: 0;
}

.report-results-head,
.report-results-row {
  display: grid;
  grid-template-columns: minmax(120px, 1.1fr) repeat(3, minmax(84px, 0.72fr)) minmax(92px, 0.72fr) minmax(116px, 0.9fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 10px 12px;
}

.report-results-head {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.82rem;
  font-weight: 850;
}

.report-results-date-cell {
  display: grid;
  gap: 2px;
  align-content: start;
  min-width: 0;
}

.report-results-date-cell small {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.report-results-date-cell strong {
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.82rem;
  line-height: 1.2;
  white-space: nowrap;
}

.report-results-row {
  border-radius: 8px;
  font-size: 0.93rem;
}

.report-results-row:nth-child(even) {
  background: rgba(18, 237, 121, 0.085);
}

.report-results-row strong {
  color: #ffffff;
  overflow-wrap: anywhere;
}

.report-results-row span {
  min-width: 0;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.report-results-row .change-text.good,
.report-rating.good {
  color: #12ed79;
}

.report-results-row .change-text.bad,
.report-rating.bad {
  color: #ff7970;
}

.report-results-row .change-text.neutral,
.report-rating.neutral,
.report-rating.warn {
  color: #ffbf3f;
}

.profile-report-visual .report-results-head,
.profile-report-visual .report-results-row {
  grid-template-columns: minmax(88px, 1fr) repeat(3, minmax(58px, 0.72fr)) minmax(70px, 0.72fr) minmax(78px, 0.8fr);
  gap: 8px;
  padding-right: 8px;
  padding-left: 8px;
}

.profile-report-visual .report-results-row {
  font-size: 0.84rem;
}

.report-rating {
  font-weight: 850;
}

.report-empty {
  margin: 24px 0 0;
  line-height: 1.5;
}

.detail-panel {
  border-color: rgba(18, 237, 121, 0.28);
  border-top-color: #12ed79;
  background:
    radial-gradient(circle at 8% 0%, rgba(18, 237, 121, 0.13), transparent 30%),
    linear-gradient(135deg, #021b18 0%, #041f1c 52%, #061512 100%);
}

.player-detail {
  color: rgba(255, 255, 255, 0.94);
}

.player-detail .profile-header,
.player-detail .tabs {
  border-color: rgba(126, 204, 172, 0.22);
}

.player-detail h3,
.player-detail h4,
.player-detail .info-list dd,
.player-detail .history-item strong,
.player-detail .chart-card-head h4,
.player-detail .feedback-card-head h4,
.player-detail .team-kpi strong,
.player-detail .metric-table-row strong,
.player-detail .team-table-row strong,
.player-detail .classification-table-row > span,
.player-detail .classification-detail summary strong,
.player-detail .classification-detail-row > span:first-child,
.player-detail .full-data-item strong,
.player-detail .spark-copy strong,
.player-detail .progress-row strong,
.player-detail .reference-compare-summary strong,
.player-detail .reference-compare-row > strong,
.player-detail .management-item strong {
  color: rgba(255, 255, 255, 0.94);
}

.player-detail .eyebrow,
.player-detail label,
.player-detail .meta-pill,
.player-detail .info-list dt,
.player-detail .history-item span,
.player-detail .section-heading span,
.player-detail .feedback-card-head span,
.player-detail .chart-card-head span,
.player-detail .feedback-card p,
.player-detail .feedback-list li > span,
.player-detail .feedback-list small,
.player-detail .feedback-sublist > span,
.player-detail .feedback-sublist li span,
.player-detail .focus-list li,
.player-detail .reference-source,
.player-detail .reference-summary span,
.player-detail .metric-table-row > span,
.player-detail .metric-table-row small,
.player-detail .team-table-row > span,
.player-detail .team-kpi span,
.player-detail .team-kpi small,
.player-detail .full-data-group h6,
.player-detail .full-data-item span,
.player-detail .trend-kpi span,
.player-detail .trend-kpi small,
.player-detail .trend-period span,
.player-detail .trend-focus-card span,
.player-detail .trend-focus-card small,
.player-detail .status-tile span,
.player-detail .spark-copy span,
.player-detail .chart-empty,
.player-detail .reference-compare-summary span,
.player-detail .reference-compare-summary small,
.player-detail .reference-compare-row > span:first-child,
.player-detail .management-item span,
.player-detail .management-item small,
.player-detail .classification-detail summary small,
.player-detail .classification-detail-row small,
.player-detail .classification-text-details span,
.player-detail .classification-note p,
.player-detail .sync-card .section-heading span,
.player-detail .photo-upload-copy > span,
.player-detail .muted-empty {
  color: rgba(255, 255, 255, 0.78);
}

.player-detail #detailName {
  color: #ffffff;
  font-weight: 950;
  text-shadow: 0 1px 16px rgba(18, 237, 121, 0.14);
}

.player-detail .profile-main .eyebrow {
  color: rgba(255, 255, 255, 0.86);
}

.player-detail .meta-pill {
  border: 1px solid rgba(18, 237, 121, 0.28);
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.11);
  font-weight: 900;
}

.player-detail .tab {
  border-color: rgba(126, 204, 172, 0.22);
  color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.045);
}

.player-detail .tab.is-active,
.player-detail .tab:hover {
  border-color: rgba(18, 237, 121, 0.78);
  color: #12ed79;
  background: rgba(18, 237, 121, 0.12);
}

.player-detail .result-subtabs {
  border-color: rgba(126, 204, 172, 0.22);
  background: rgba(255, 255, 255, 0.045);
}

.player-detail .result-subtab {
  color: rgba(255, 255, 255, 0.84);
  background: transparent;
}

.player-detail .result-subtab.is-active,
.player-detail .result-subtab:hover {
  border-color: rgba(18, 237, 121, 0.78);
  color: #12ed79;
  background: rgba(18, 237, 121, 0.12);
}

.player-detail input,
.player-detail select,
.player-detail textarea {
  border-color: rgba(126, 204, 172, 0.26);
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.065);
}

.player-detail input:focus,
.player-detail select:focus,
.player-detail textarea:focus {
  border-color: #12ed79;
  box-shadow: 0 0 0 3px rgba(18, 237, 121, 0.14);
}

.player-detail input::placeholder,
.player-detail textarea::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.player-detail .classification-table-row select option {
  color: var(--ink);
  background: var(--white);
}

.dialog-subtitle {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.import-preview-card {
  max-height: min(82vh, 760px);
  overflow: auto;
}

.import-wizard-card {
  max-width: 920px;
  max-height: min(88vh, 820px);
  overflow: auto;
}

.import-wizard-type-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.import-wizard-type {
  display: grid;
  gap: 7px;
  min-height: 154px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  color: var(--ink);
  background: var(--panel);
  text-align: left;
  cursor: pointer;
}

.import-wizard-type:hover,
.import-wizard-type.is-active {
  border-color: var(--green);
  background: rgba(18, 237, 121, 0.1);
}

.import-wizard-type span {
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.import-wizard-type strong {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.18;
}

.import-wizard-type small {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.34;
}

.import-wizard-guide {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(18, 237, 121, 0.2);
  border-radius: 8px;
  padding: 14px;
  background: rgba(18, 237, 121, 0.055);
}

.import-wizard-guide h4 {
  margin: 0;
  color: var(--ink);
}

.import-wizard-guide ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-weight: 850;
  line-height: 1.42;
}

.import-wizard-upload {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: 12px;
  align-items: end;
}

.import-wizard-file {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.import-wizard-file span {
  min-width: 0;
  color: var(--muted);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.import-preview-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.import-preview-summary div {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--panel);
}

.import-preview-summary .import-preview-blocked {
  border-color: rgba(191, 43, 43, 0.44);
  background: var(--danger-bg);
}

.import-preview-summary .import-preview-blocked strong,
.import-preview-summary .import-preview-blocked small {
  color: var(--danger);
}

.import-preview-summary span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.import-preview-summary strong {
  color: var(--ink);
  font-size: 1.2rem;
}

.import-preview-summary small {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.35;
}

.import-preview-details {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.import-preview-note {
  border: 1px solid rgba(0, 117, 78, 0.18);
  border-radius: 8px;
  padding: 12px;
  color: var(--muted);
  background: var(--mint);
  font-weight: 800;
  line-height: 1.45;
}

.import-preview-warning {
  border: 1px solid rgba(191, 43, 43, 0.2);
  border-radius: 8px;
  padding: 12px;
  color: var(--danger);
  background: var(--danger-bg);
  font-weight: 900;
}

.import-preview-missing {
  display: grid;
  gap: 10px;
}

.import-preview-missing .import-preview-list {
  max-height: 190px;
}

.import-preview-missing > span {
  color: var(--danger);
  font-size: 0.86rem;
  font-weight: 900;
}

.import-preview-list {
  display: grid;
  gap: 7px;
  max-height: 230px;
  overflow: auto;
  margin: 0;
  padding: 0;
  list-style: none;
}

.import-preview-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--white);
}

.import-preview-list strong,
.import-preview-list span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.import-preview-list span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.player-detail .ghost-action,
.player-detail .icon-action {
  border-color: rgba(126, 204, 172, 0.24);
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.06);
}

.player-detail .ghost-action:hover,
.player-detail .icon-action:hover {
  border-color: rgba(18, 237, 121, 0.48);
  background: rgba(18, 237, 121, 0.1);
}

.player-detail .danger-action,
.player-detail .small-delete {
  border-color: rgba(255, 121, 112, 0.34);
  color: #ff7970;
  background: rgba(255, 121, 112, 0.1);
}

.player-detail .info-block,
.player-detail .insight-panel,
.player-detail .measurement-type-card,
.player-detail .measurement-form,
.player-detail .management-form,
.player-detail .management-item,
.player-detail .reference-compare-card,
.player-detail .reference-compare-summary,
.player-detail .classification-form,
.player-detail .data-hero,
.player-detail .sync-card,
.player-detail .local-data-card,
.player-detail .feedback-card,
.player-detail .chart-card,
.player-detail .team-kpi,
.player-detail .history-item,
.player-detail .status-line,
.player-detail .photo-upload-card {
  border-color: rgba(126, 204, 172, 0.24);
  color: rgba(255, 255, 255, 0.9);
  background:
    linear-gradient(180deg, rgba(9, 56, 46, 0.68), rgba(3, 28, 24, 0.92)),
    rgba(3, 28, 24, 0.92);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.player-detail .feedback-card,
.player-detail .chart-card,
.player-detail .team-kpi,
.player-detail .classification-detail {
  border-radius: 8px;
}

.player-detail .feedback-card.good,
.player-detail .reference-compare-summary.good,
.player-detail .sync-card {
  border-left-color: #12ed79;
  border-top-color: #12ed79;
}

.player-detail .feedback-card.warn,
.player-detail .feedback-card.neutral,
.player-detail .reference-compare-summary.warn,
.player-detail .reference-compare-summary.neutral,
.player-detail .local-data-card {
  border-left-color: #ffbf3f;
  border-top-color: #ffbf3f;
}

.player-detail .feedback-card.bad,
.player-detail .reference-compare-summary.bad {
  border-left-color: #ff7970;
}

.player-detail .metric-table,
.player-detail .reference-compare-table,
.player-detail .team-table,
.player-detail .classification-table,
.player-detail .classification-detail-table,
.player-detail .full-data-item,
.player-detail .trend-kpi,
.player-detail .trend-period,
.player-detail .trend-focus-card,
.player-detail .status-tile,
.player-detail .spark-row.trend-row,
.player-detail .classification-detail,
.player-detail .classification-text-details div {
  border-color: rgba(126, 204, 172, 0.22);
  background: rgba(255, 255, 255, 0.045);
}

.player-detail .orthopedic-recommendation-head > span,
.player-detail .orthopedic-recommendation-item > strong,
.player-detail .orthopedic-evidence li {
  color: rgba(255, 255, 255, 0.94);
}

.player-detail .orthopedic-recommendation-head small {
  border-color: rgba(18, 237, 121, 0.3);
  color: rgba(255, 255, 255, 0.88);
  background: rgba(18, 237, 121, 0.12);
}

.player-detail .orthopedic-recommendation-item {
  border-color: rgba(126, 204, 172, 0.24);
  border-left-color: #12ed79;
  background: rgba(255, 255, 255, 0.055);
}

.player-detail .orthopedic-recommendation-item.warn {
  border-left-color: #ffbf3f;
  background: rgba(255, 191, 63, 0.08);
}

.player-detail .orthopedic-recommendation-item.bad {
  border-left-color: #ff6862;
  background: rgba(255, 104, 98, 0.09);
}

.player-detail .orthopedic-recommendation-item-head > span {
  color: #63f4ad;
}

.player-detail .orthopedic-recommendation-item.warn .orthopedic-recommendation-item-head > span {
  color: #ffcf67;
}

.player-detail .orthopedic-recommendation-item.bad .orthopedic-recommendation-item-head > span {
  color: #ffaaa6;
}

.player-detail .orthopedic-recommendation-item-head small,
.player-detail .orthopedic-evidence > span {
  color: rgba(255, 255, 255, 0.68);
}

.player-detail .orthopedic-evidence {
  border-top-color: rgba(126, 204, 172, 0.18);
}

.player-detail .orthopedic-evidence li::before {
  background: #12ed79;
}

.player-detail .orthopedic-red-flag {
  border-color: rgba(255, 104, 98, 0.46);
  color: #ffd0cd;
  background: rgba(255, 104, 98, 0.13);
}

.player-detail .orthopedic-fine-tuning {
  border-color: rgba(74, 184, 255, 0.36);
  background: rgba(74, 184, 255, 0.09);
}

.player-detail .orthopedic-special-attention {
  border-color: rgba(255, 191, 63, 0.42);
  background: rgba(255, 191, 63, 0.1);
}

.player-detail .orthopedic-fine-tuning > strong,
.player-detail .orthopedic-special-attention > strong,
.player-detail .orthopedic-fine-tuning li {
  color: rgba(255, 255, 255, 0.94);
}

.player-detail .orthopedic-fine-tuning > span,
.player-detail .orthopedic-special-attention > span {
  color: rgba(255, 255, 255, 0.72);
}

.player-detail .metric-table-head,
.player-detail .team-table-head,
.player-detail .classification-table-head,
.player-detail .classification-detail-head {
  color: rgba(255, 255, 255, 0.72);
  background: rgba(18, 237, 121, 0.12);
}

.player-detail .metric-table-row,
.player-detail .reference-compare-row,
.player-detail .team-table-row,
.player-detail .classification-table-row,
.player-detail .classification-detail-row,
.player-detail .feedback-list li,
.player-detail .feedback-sublist,
.player-detail .full-data-section,
.player-detail .classification-detail-list,
.player-detail .classification-detail-body,
.player-detail .classification-note,
.player-detail .orthopedic-trends,
.player-detail .form-section {
  border-color: rgba(126, 204, 172, 0.2);
  background: transparent;
}

.player-detail .metric-table-row:nth-child(even),
.player-detail .team-table-row:nth-child(even),
.player-detail .classification-detail-row:nth-child(even) {
  background: rgba(18, 237, 121, 0.055);
}

.player-detail .excel-table-wrap,
.player-detail .excel-table td,
.player-detail .excel-table tbody th {
  border-color: rgba(126, 204, 172, 0.22);
  background: rgba(255, 255, 255, 0.045);
}

.player-detail .excel-table th,
.player-detail .excel-table td {
  border-color: rgba(126, 204, 172, 0.2);
}

.player-detail .excel-table thead th {
  color: rgba(255, 255, 255, 0.92);
  background: rgba(18, 237, 121, 0.14);
}

.player-detail .excel-table tbody th {
  color: rgba(255, 255, 255, 0.94);
  background: rgba(18, 237, 121, 0.08);
}

.player-detail .excel-table td {
  color: rgba(255, 255, 255, 0.82);
}

.player-detail .excel-table tr:nth-child(even) td {
  background: rgba(18, 237, 121, 0.055);
}

.player-detail .reference-pill.good,
.player-detail .risk-pill.low,
.player-detail .classification-mini-badge.good,
.player-detail .trend-kpi.good,
.player-detail .trend-focus-card.good,
.player-detail .status-tile.good {
  color: #12ed79;
  background: rgba(18, 237, 121, 0.13);
  border-color: rgba(18, 237, 121, 0.34);
}

.player-detail .reference-pill.neutral,
.player-detail .classification-mini-badge.neutral {
  color: rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.08);
}

.player-detail .reference-pill.warn,
.player-detail .risk-pill.medium,
.player-detail .classification-mini-badge.warn,
.player-detail .trend-kpi.neutral,
.player-detail .trend-focus-card.neutral,
.player-detail .status-tile.neutral {
  color: #ffbf3f;
  background: rgba(255, 191, 63, 0.12);
  border-color: rgba(255, 191, 63, 0.3);
}

.player-detail .reference-pill.bad,
.player-detail .risk-pill.high,
.player-detail .classification-mini-badge.bad,
.player-detail .trend-kpi.bad,
.player-detail .trend-focus-card.bad,
.player-detail .status-tile.bad {
  color: #ff7970;
  background: rgba(255, 121, 112, 0.12);
  border-color: rgba(255, 121, 112, 0.32);
}

.player-detail .classification-detail-score.good,
.player-detail .classification-team-score.good {
  color: #052e24;
  background: #12ed79;
  border-color: rgba(18, 237, 121, 0.78);
}

.player-detail .classification-detail-score.warn,
.player-detail .classification-detail-score.neutral,
.player-detail .classification-team-score.warn,
.player-detail .classification-team-score.neutral {
  color: #2d1d00;
  background: #ffbf3f;
  border-color: rgba(255, 191, 63, 0.78);
}

.player-detail .classification-detail-score.bad,
.player-detail .classification-team-score.bad {
  color: #2d0704;
  background: #ff7970;
  border-color: rgba(255, 121, 112, 0.78);
}

.player-detail .classification-detail-score .info-tip,
.player-detail .classification-team-score .info-tip {
  color: var(--green-deep);
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.7);
}

.player-detail .classification-mini-badge.good .classification-mini-number {
  color: #052e24;
  background: #12ed79;
}

.player-detail .classification-mini-badge.warn .classification-mini-number {
  color: #2d1d00;
  background: #ffbf3f;
}

.player-detail .classification-mini-badge.bad .classification-mini-number {
  color: #2d0704;
  background: #ff7970;
}

.player-detail .classification-mini-badge.neutral .classification-mini-number {
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.18);
}

.player-detail .progress-track {
  background: rgba(255, 255, 255, 0.12);
}

.player-detail .progress-track span.good {
  background: #12ed79;
}

.player-detail .progress-track span.warn,
.player-detail .progress-track span.neutral {
  background: #ffbf3f;
}

.player-detail .progress-track span.bad {
  background: #ff7970;
}

.player-detail .spark-axis {
  stroke: rgba(255, 255, 255, 0.18);
}

.player-detail .spark-line {
  stroke: #12ed79;
}

.player-detail .spark-dot.plain,
.player-detail .spark-dot.neutral {
  fill: #031b16;
}

.player-detail .info-tip {
  border-color: rgba(18, 237, 121, 0.5);
  color: #12ed79;
  background: rgba(18, 237, 121, 0.14);
}

.player-detail .info-bubble {
  border-color: rgba(18, 237, 121, 0.34);
  color: #173028;
  background: #f7fffb;
}

.player-detail .info-bubble::after {
  border-color: rgba(18, 237, 121, 0.34);
  background: #f7fffb;
}

@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    min-height: auto;
    padding: 18px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .sidebar-tools {
    position: static;
    grid-template-columns: repeat(auto-fit, minmax(54px, 1fr));
    align-content: start;
    width: 100%;
    height: auto;
    padding: 0;
    border-right: 0;
    background: transparent;
    backdrop-filter: none;
  }

  .sidebar-tool-action {
    width: 100%;
  }

  .sidebar-tool-action::after {
    display: none;
  }

  .player-list {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    max-height: 280px;
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .task-reminder-banner {
    grid-template-columns: 1fr;
  }

  .visual-grid {
    grid-template-columns: 1fr;
  }

  .home-hero {
    grid-template-columns: 1fr;
    min-height: 520px;
    background-position: center top;
  }

  .home-hero.is-poster-only {
    min-height: clamp(560px, 78vh, 820px);
    background-size: contain;
  }

  .home-hero-copy,
  .home-team-players,
  .home-hero.has-team-dashboard .home-team-players {
    grid-column: 1;
  }

  .player-report,
  .visual-grid.single-grid.profile-report-visual {
    grid-template-columns: 1fr;
  }

  .player-report > .report-results-panel {
    grid-column: auto;
  }

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

  .coverage-grid,
  .data-health-grid,
  .leadership-kpi-grid,
  .leadership-grid,
  .training-summary,
  .import-wizard-type-grid,
  .import-preview-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-table-controls {
    grid-template-columns: minmax(180px, 1fr) minmax(160px, auto);
  }

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

@media (max-width: 760px) {
  .orthopedic-recommendation-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .orthopedic-recommendation-item {
    padding: 11px 12px;
  }

  .orthopedic-recommendation-item-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .login-screen {
    padding: 16px;
    place-items: stretch;
  }

  .login-card {
    align-self: center;
    padding: 20px;
  }

  .login-brand,
  .login-status {
    align-items: stretch;
    flex-direction: column;
  }

  .login-logo {
    width: 100%;
    min-width: 0;
  }

  .login-copy h2 {
    max-width: 12ch;
  }

  .workspace,
  .sidebar {
    padding: 18px 14px;
  }

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

  .profile-main,
  .photo-upload-card {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .profile-main {
    display: grid;
  }

  .photo-preview {
    justify-content: flex-start;
  }

  .toolbar,
  .profile-actions {
    width: 100%;
  }

  .task-reminder-items {
    grid-template-columns: 1fr;
  }

  .task-reminder-actions > * {
    flex: 1 1 160px;
  }

  .training-toolbar,
  .training-material-card {
    grid-template-columns: 1fr;
  }

  .training-material-actions {
    justify-content: flex-start;
    min-width: 0;
  }

  .sync-login {
    grid-template-columns: 1fr;
  }

  .data-hero,
  .sync-heading,
  .signed-in-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .data-hero-logo {
    width: 138px;
    min-width: 0;
  }

  .toolbar > *,
  .profile-actions > *,
  .dialog-actions > * {
    flex: 1 1 150px;
  }

  .excel-table th,
  .excel-table td {
    min-width: 132px;
  }

  .excel-table tbody th,
  .excel-table thead th:first-child {
    min-width: 150px;
  }

  .stats-grid,
  .overview-grid,
  .feedback-grid,
  .team-summary-grid,
  .coverage-grid,
  .team-export-summary,
  .data-health-grid,
  .leadership-kpi-grid,
  .leadership-grid,
  .training-summary,
  .import-wizard-type-grid,
  .import-wizard-upload,
  .import-preview-summary,
  .trend-overview,
  .trend-focus-grid,
  .status-tile-grid,
  .form-grid,
  .data-actions {
    grid-template-columns: 1fr;
  }

  .technical-team-kpi-grid,
  .technical-team-row {
    grid-template-columns: 1fr;
  }

  .technical-team-management-actions,
  .technical-team-row .technical-danger-mini {
    width: 100%;
  }

  .technical-team-count {
    justify-items: start;
  }

  .technical-permission-row {
    grid-template-columns: 1fr;
  }

  .technical-permission-delete {
    width: 100%;
  }

  .feedback-card.wide {
    grid-column: auto;
  }

  .metric-table-head {
    display: none;
  }

  .metric-table-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .team-table-head {
    display: none;
  }

  .import-preview-list li {
    grid-template-columns: 1fr;
  }

  .leadership-player-item {
    grid-template-columns: 1fr;
  }

  .leadership-player-item b {
    width: fit-content;
  }

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

  .payment-record-main {
    grid-template-columns: 1fr;
  }

  .parent-program-main,
  .attendance-summary-main {
    grid-template-columns: 1fr;
  }

  .parent-portal-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .parent-portal-switch button {
    width: 100%;
    min-width: 0;
    padding: 9px 8px;
  }

  .parent-calendar-card,
  .parent-child-report-card,
  .parent-payment-timeline-card {
    padding: 10px;
  }

  .parent-attendance-stats {
    padding: 10px;
  }

  .parent-attendance-stats-head {
    align-items: stretch;
    flex-direction: column;
  }

  .parent-attendance-stat-grid {
    grid-template-columns: 1fr;
  }

  .parent-payment-reminder-modal {
    position: static;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
  }

  .parent-payment-reminder-icon {
    width: 38px;
    height: 38px;
  }

  .parent-payment-reminder-actions {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .parent-payment-reminder-actions > * {
    width: 100%;
  }

  .parent-notification-preference,
  .parent-attendance-reminder {
    align-items: stretch;
    flex-direction: column;
  }

  .notification-toggle {
    justify-content: space-between;
  }

  .parent-calendar-grid {
    gap: 5px;
  }

  .parent-calendar-day {
    min-height: 72px;
    padding: 5px 3px;
  }

  .parent-calendar-day span {
    font-size: 0.58rem;
  }

  .parent-calendar-day-events span,
  .parent-calendar-day-events em {
    font-size: 0.53rem;
  }

  .attendance-status-pill,
  .attendance-summary-main b {
    justify-self: start;
  }

  .attendance-summary-counts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    flex-wrap: nowrap;
    gap: 5px;
  }

  .attendance-summary-counts > span {
    min-width: 0;
    justify-content: center;
    padding: 6px 4px;
    text-align: center;
  }

  .attendance-summary-counts .attendance-summary-label {
    overflow: hidden;
    font-size: 0.64rem !important;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .payment-filter-row,
  .payment-edit-grid,
  .parent-payment-data,
  .payment-detail-grid,
  .payment-history-columns {
    grid-template-columns: 1fr;
  }

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

  .payment-record-state {
    justify-items: start;
  }

  .payment-due-badge {
    text-align: left;
  }

  .payment-list-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .payment-note-field {
    grid-column: auto;
  }

  .payment-status-pill {
    justify-self: start;
  }

  .coach-calendar-form-grid,
  .coach-program-form-grid,
  .coach-repeat-options,
  .coach-calendar-board,
  .coach-calendar-event-main {
    grid-template-columns: 1fr;
  }

  .team-programs-head {
    align-items: stretch;
    flex-direction: column;
  }

  .coach-calendar-event-main b {
    justify-self: start;
  }

  .coach-calendar-feedback-trigger {
    display: inline-flex;
    width: 100%;
  }

  .coach-feedback-panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .coach-feedback-panel-actions {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .coach-feedback-panel-actions button {
    width: 100%;
  }

  .coach-feedback-roster-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  .coach-feedback-roster {
    align-content: start;
    min-width: 0;
    padding: 8px 5px;
  }

  .coach-feedback-roster-head {
    display: grid;
    justify-items: center;
    gap: 2px;
    text-align: center;
  }

  .coach-feedback-roster-head span {
    font-size: 0.64rem;
    line-height: 1.15;
  }

  .coach-feedback-roster ul {
    gap: 3px;
    padding-left: 14px;
    font-size: 0.65rem;
    overflow-wrap: anywhere;
  }

  .coach-feedback-roster p {
    font-size: 0.64rem;
    text-align: center;
  }

  .coach-actual-attendance-head {
    display: grid;
    align-items: stretch;
  }

  .coach-actual-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: stretch;
  }

  .coach-actual-summary > span {
    padding: 5px 4px;
    text-align: center;
  }

  .coach-actual-player-row {
    grid-template-columns: 1fr;
  }

  .coach-actual-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr)) 34px;
  }

  .team-measurement-table-head {
    align-items: stretch;
    flex-direction: column;
  }

  .technical-table-launcher,
  .technical-alert-banner,
  .technical-table-overlay-head {
    align-items: stretch;
    flex-direction: column;
  }

  .technical-table-overlay-head {
    grid-template-columns: 1fr;
  }

  .technical-feedback-grid {
    grid-template-columns: 1fr;
  }

  .technical-table-launcher-actions {
    flex-direction: column;
  }

  .technical-overlay-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: stretch;
  }

  .technical-overlay-actions > span,
  .technical-name-search,
  .technical-save-main {
    grid-column: 1 / -1;
  }

  .technical-name-search {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .technical-table-open-button,
  .technical-table-close-button {
    width: 100%;
  }

  .technical-table-overlay {
    padding: 10px;
  }

  .attention-item {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .highlight-player-item {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .highlight-player-item b {
    width: fit-content;
  }

  .team-export-actions > * {
    flex: 1 1 160px;
  }

  .attention-item em {
    justify-self: start;
    white-space: normal;
  }

  .team-table-row,
  .team-table.development-table .team-table-row,
  .team-table.orthopedic-age-table .team-table-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .classification-table-head {
    display: none;
  }

  .classification-table-row,
  .classification-detail-head,
  .classification-detail-row,
  .reference-compare-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .reference-compare-summary,
  .management-item {
    align-items: stretch;
    flex-direction: column;
  }

  .coach-detail-page-head,
  .coach-clothing-row,
  .coach-tool-row {
    grid-template-columns: 1fr;
  }

  .player-equipment-sections {
    grid-template-columns: 1fr;
  }

  .player-equipment-row input {
    grid-column: 1;
  }

  .player-equipment-detail-note {
    justify-items: start;
    max-width: none;
    text-align: left;
  }

  .classification-detail-head {
    display: none;
  }

  .classification-detail summary {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
  }

  .classification-detail-main {
    grid-column: 2;
    grid-template-columns: minmax(0, 1fr);
  }

  .classification-detail-score {
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  .classification-detail-meter {
    grid-column: 1 / -1;
  }

  .spark-row,
  .spark-row.compact,
  .team-average-visual-row {
    grid-template-columns: 1fr;
  }

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

  .team-average-visual-head {
    flex-direction: column;
  }

  .team-average-current {
    justify-items: start;
    text-align: left;
  }

  .team-average-current .value-with-info {
    justify-content: flex-start;
  }

  .info-list {
    grid-template-columns: 1fr;
  }

  .player-detail {
    padding: 16px;
  }

  .player-report {
    padding: 14px;
  }

  .report-panel {
    padding: 16px;
  }

  .report-results-head {
    display: grid;
    grid-template-columns: minmax(72px, 0.9fr) repeat(3, minmax(56px, 0.8fr)) minmax(64px, 0.68fr) minmax(76px, 0.8fr);
    gap: 6px;
    padding: 8px 10px;
    font-size: 0.69rem;
    line-height: 1.15;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .report-results-row {
    grid-template-columns: minmax(72px, 0.9fr) repeat(3, minmax(56px, 0.8fr)) minmax(64px, 0.68fr) minmax(76px, 0.8fr);
    gap: 6px;
    padding: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .report-results-date-cell small {
    font-size: 0.6rem;
  }

  .report-results-date-cell strong {
    font-size: 0.72rem;
    white-space: normal;
  }

  .report-results-row strong {
    font-size: 0.8rem;
  }

  .report-results-row span {
    font-size: 0.75rem;
  }

  .radar-chart {
    width: 100%;
  }
}

/* Egységes főnavigáció és reszponzív munkaterület */
.app-shell {
  grid-template-columns: 84px minmax(0, 1fr);
  transition: grid-template-columns 180ms ease;
}

.app-shell.is-team-drawer-open {
  grid-template-columns: minmax(330px, 370px) minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 35;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 0;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  overflow: visible;
  padding: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  background: #052e24;
}

.app-shell:not(.is-team-drawer-open) .sidebar {
  grid-template-columns: 84px 0;
}

.sidebar-tools {
  position: static;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 84px;
  height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 12px 10px 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  background: #071b1f;
  scrollbar-width: thin;
}

.rail-brand {
  display: grid;
  place-items: center;
  width: 58px;
  min-height: 62px;
  margin-bottom: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 7px;
  background: rgba(255, 255, 255, 0.07);
}

.rail-brand img {
  display: block;
  width: 100%;
  max-height: 48px;
  object-fit: contain;
}

.sidebar-tool-action {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 58px;
  min-height: 56px;
  border-radius: 8px;
  padding: 0;
  font-size: 0;
}

.sidebar-tool-action::before {
  display: none;
  content: none;
}

.sidebar-tool-action > svg {
  width: 25px;
  height: 25px;
  color: rgba(255, 255, 255, 0.86);
  stroke-width: 2;
}

.sidebar-tool-action > span {
  display: none;
}

.sidebar-tool-action:hover > svg,
.sidebar-tool-action.is-active > svg {
  color: #12ed79;
}

@media (min-width: 1101px) {
  .sidebar-tools {
    transition: width 180ms ease, box-shadow 180ms ease, background 180ms ease;
  }

  .sidebar-tools:hover,
  .sidebar-tools.is-labels-open {
    align-items: stretch;
    width: 252px;
    background: rgba(7, 27, 31, 0.98);
    box-shadow: 18px 0 44px rgba(0, 0, 0, 0.32);
  }

  .sidebar-tools:hover .rail-brand,
  .sidebar-tools.is-labels-open .rail-brand {
    width: 100%;
    justify-content: start;
  }

  .sidebar-tools:hover .sidebar-tool-action,
  .sidebar-tools.is-labels-open .sidebar-tool-action {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
    justify-items: start;
    width: 100%;
    min-height: 48px;
    padding: 0 13px;
    font-size: 0.92rem;
    text-align: left;
  }

  .sidebar-tools:hover .sidebar-tool-action > svg,
  .sidebar-tools.is-labels-open .sidebar-tool-action > svg {
    width: 23px;
    height: 23px;
  }

  .sidebar-tools:hover .sidebar-tool-action > span,
  .sidebar-tools.is-labels-open .sidebar-tool-action > span {
    display: block;
    min-width: 0;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.9rem;
    font-weight: 900;
    line-height: 1.18;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sidebar-tools:hover .sidebar-tool-action.is-active > span,
  .sidebar-tools.is-labels-open .sidebar-tool-action.is-active > span,
  .sidebar-tools:hover .sidebar-tool-action:hover > span {
    color: #12ed79;
  }

  .sidebar-tools:hover .sidebar-tool-action::after,
  .sidebar-tools.is-labels-open .sidebar-tool-action::after {
    display: none;
  }

  .sidebar-tools.is-collapsed-after-click,
  .sidebar-tools.is-collapsed-after-click:hover,
  .sidebar-tools.is-collapsed-after-click:focus-within {
    align-items: center;
    width: 84px;
    background: #071b1f;
    box-shadow: none;
  }

  .sidebar-tools.is-collapsed-after-click .rail-brand,
  .sidebar-tools.is-collapsed-after-click:hover .rail-brand,
  .sidebar-tools.is-collapsed-after-click:focus-within .rail-brand {
    width: 58px;
    justify-content: center;
  }

  .sidebar-tools.is-collapsed-after-click .sidebar-tool-action,
  .sidebar-tools.is-collapsed-after-click:hover .sidebar-tool-action,
  .sidebar-tools.is-collapsed-after-click:focus-within .sidebar-tool-action {
    display: grid;
    grid-template-columns: 1fr;
    place-items: center;
    width: 58px;
    min-height: 56px;
    padding: 0;
    font-size: 0;
    text-align: center;
  }

  .sidebar-tools.is-collapsed-after-click .sidebar-tool-action > span,
  .sidebar-tools.is-collapsed-after-click:hover .sidebar-tool-action > span,
  .sidebar-tools.is-collapsed-after-click:focus-within .sidebar-tool-action > span {
    display: none;
  }
}

.sidebar-drawer {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 18px;
  background: #063f31;
  opacity: 1;
  transition: opacity 140ms ease;
}

.app-shell:not(.is-team-drawer-open) .sidebar-drawer {
  overflow: hidden;
  padding-right: 0;
  padding-left: 0;
  opacity: 0;
  pointer-events: none;
}

.sidebar-drawer .brand-block {
  flex: 0 0 auto;
}

.sidebar-drawer .club-logo {
  width: 92px;
  min-width: 92px;
}

.sidebar-drawer .brand-block {
  gap: 10px;
  padding: 10px;
}

.sidebar-drawer .brand-copy h1 {
  font-size: 1.22rem;
}

.sidebar-drawer .team-toggle span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sidebar-drawer .team-toggle svg {
  width: 20px;
  height: 20px;
}

.sidebar-drawer .team-filter-list {
  max-height: none;
  padding-bottom: 8px;
}

.sidebar-drawer .player-list {
  display: none;
}

.workspace {
  padding: 24px;
}

.topbar {
  gap: 16px;
  margin-bottom: 18px;
  padding: 15px 16px;
}

.topbar .toolbar {
  justify-content: flex-end;
}

.topbar #importBtn,
.topbar #exportBtn {
  width: 44px;
  padding-right: 0;
  padding-left: 0;
}

.topbar #importBtn > span,
.topbar #exportBtn > span {
  display: none;
}

.toolbar svg,
.team-view-menu svg {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
}

.home-state {
  min-height: 0;
  padding: 20px;
}

.home-hero::before {
  background: linear-gradient(110deg, rgba(18, 237, 121, 0.07), transparent 42%);
}

.home-team-players {
  padding: 18px;
}

.team-view-menu {
  display: grid;
  grid-template-columns: repeat(6, minmax(112px, 1fr));
  gap: 8px;
  overflow-x: auto;
  padding: 10px;
}

.team-view-button {
  justify-content: center;
  min-width: 0;
  min-height: 48px;
  padding: 8px 10px;
  line-height: 1.25;
}

.team-view-icon {
  width: 30px;
  min-width: 30px;
  height: 30px;
}

.team-view-icon svg {
  width: 18px;
  height: 18px;
}

.home-player-list {
  grid-template-columns: repeat(auto-fit, minmax(172px, 1fr));
}

.home-hero.has-team-dashboard .home-player-list {
  grid-template-columns: repeat(auto-fit, minmax(182px, 1fr));
}

.home-player-card {
  min-height: 52px;
}

.home-player-card .avatar {
  display: grid;
  place-items: center;
  width: 34px;
  min-width: 34px;
  height: 34px;
  overflow: hidden;
  line-height: 1;
}

.home-player-card .avatar:not(:has(img)) {
  font-size: 0.68rem;
}

.home-player-card .avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1100px) {
  .app-shell,
  .app-shell.is-team-drawer-open {
    display: block;
  }

  .sidebar,
  .app-shell:not(.is-team-drawer-open) .sidebar {
    position: sticky;
    top: 0;
    z-index: 45;
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    overflow: visible;
    padding: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .sidebar-tools {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 6px;
    width: 100%;
    height: auto;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px 10px;
    border-right: 0;
    background: #071b1f;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
  }

  .rail-brand {
    position: static;
    flex: 0 0 48px;
    width: 48px;
    min-height: 58px;
    margin: 0 2px 0 0;
    padding: 5px;
    background: #0a2929;
    scroll-snap-align: start;
  }

  .rail-brand img {
    max-height: 44px;
  }

  .sidebar-tool-action {
    flex: 0 0 76px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 76px;
    min-height: 58px;
    padding: 7px 5px 6px;
    font-size: 0.68rem;
    line-height: 1.08;
    scroll-snap-align: start;
  }

  .sidebar-tool-action > svg {
    width: 22px;
    height: 22px;
  }

  .sidebar-tool-action > span {
    display: block;
    width: 100%;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.66rem;
    font-weight: 850;
    line-height: 1.08;
    text-align: center;
    overflow-wrap: anywhere;
  }

  .sidebar-tool-action.is-active > span {
    color: #12ed79;
  }

  .sidebar-tool-action::after {
    display: none;
  }

  .sidebar-drawer {
    display: flex;
    height: auto;
    max-height: min(64vh, 560px);
    padding: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: #063f31;
  }

  .app-shell:not(.is-team-drawer-open) .sidebar-drawer {
    display: none;
  }

  .sidebar-drawer .brand-block {
    display: none;
  }

  .sidebar-drawer .search-wrap {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar-drawer .team-filter-list {
    max-height: none;
  }

  .workspace {
    padding: 18px;
  }

  .home-hero,
  .home-hero.is-poster-only {
    min-height: 520px;
  }

  .home-hero.has-team-dashboard {
    min-height: 0;
  }

  .team-view-menu {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  .team-view-button {
    flex: 0 0 136px;
    scroll-snap-align: start;
  }
}

@media (max-width: 760px) {
  .workspace {
    padding: 12px;
  }

  .topbar {
    gap: 12px;
    margin-bottom: 12px;
    padding: 13px;
  }

  .topbar h2 {
    font-size: 1.35rem;
  }

  .topbar .eyebrow {
    margin-bottom: 3px;
  }

  .toolbar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .toolbar > * {
    min-width: 0;
    width: 100%;
    flex: none;
  }

  .toolbar .primary-action,
  .toolbar .icon-action,
  .toolbar .ghost-action {
    min-height: 48px;
    padding: 8px 6px;
    font-size: 0.7rem;
    line-height: 1.1;
  }

  .topbar #importBtn,
  .topbar #exportBtn {
    width: 100%;
  }

  .topbar #importBtn > span,
  .topbar #exportBtn > span {
    display: inline;
  }

  .toolbar .primary-action,
  .toolbar .icon-action,
  .toolbar .ghost-action {
    flex-direction: column;
  }

  .toolbar .primary-action svg,
  .toolbar .icon-action svg,
  .toolbar .ghost-action svg {
    width: 20px;
    height: 20px;
  }

  .toolbar .view-preview-control {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 44px;
    padding: 6px 8px;
  }

  .toolbar #dataManagementBtn {
    grid-column: span 2;
  }

  .task-reminder-banner {
    margin: 0 0 12px;
    padding: 12px;
  }

  .home-state {
    gap: 12px;
    min-height: 0;
    padding: 10px;
  }

  .detail-panel {
    min-height: 0;
  }

  .home-hero,
  .home-hero.is-poster-only {
    min-height: 430px;
    border-radius: 8px;
  }

  .home-hero.has-team-dashboard {
    min-height: 0;
    padding: 8px;
  }

  .home-team-players {
    gap: 9px;
    padding: 11px;
  }

  .home-team-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 9px;
  }

  .home-team-head span {
    font-size: 0.68rem;
  }

  .home-team-head strong {
    font-size: 1rem;
    text-align: right;
  }

  .team-view-menu {
    gap: 6px;
    margin-right: -2px;
    margin-left: -2px;
    padding: 7px;
  }

  .team-view-button {
    flex-basis: 96px;
    flex-direction: column;
    gap: 5px;
    min-height: 68px;
    padding: 7px 6px;
    font-size: 0.69rem;
    line-height: 1.12;
    text-align: center;
  }

  .team-view-icon {
    width: 27px;
    min-width: 27px;
    height: 27px;
  }

  .team-view-icon svg {
    width: 17px;
    height: 17px;
  }

  .home-player-section {
    gap: 9px;
    padding-top: 9px;
  }

  .home-player-section .chart-card-head span {
    display: none;
  }

  .home-player-section .chart-card-head h4 {
    margin-bottom: 0;
  }

  .home-player-list,
  .home-hero.has-team-dashboard .home-player-list {
    grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
    gap: 6px;
  }

  .home-player-card {
    gap: 7px;
    min-height: 46px;
    padding: 6px 7px;
  }

  .home-player-card .avatar {
    width: 30px;
    min-width: 30px;
    height: 30px;
    font-size: 0.62rem;
  }

  .home-player-card strong {
    font-size: 0.78rem;
    line-height: 1.15;
  }

  .home-global-panel {
    padding: 12px;
  }

  .data-hero {
    align-items: center;
    flex-direction: row;
    gap: 10px;
    padding: 10px;
  }

  .data-hero-logo {
    width: 76px;
    min-width: 76px;
  }

  .data-hero h3 {
    font-size: 1.05rem;
  }

  .health-record-main,
  .task-item-main {
    grid-template-columns: 1fr;
  }

  .health-status-pill {
    justify-self: start;
  }

  .training-material-card {
    gap: 10px;
    padding: 10px;
  }

  .training-material-actions {
    width: 100%;
    min-width: 0;
  }

  .training-material-actions > * {
    flex: 1 1 120px;
  }

  .excel-table-wrap,
  .table-wrap,
  .team-measurement-table-wrap,
  .classification-table-wrap {
    max-width: 100%;
    overflow-x: auto;
  }
}

/* A korábbi részletes adatlap-stílusok felülírása a világos munkatérhez. */
.detail-panel {
  border-color: var(--line);
  border-top-color: var(--green);
  background: var(--white);
  box-shadow: var(--shadow);
}

.player-detail {
  color: var(--ink);
  background: var(--white);
}

.player-detail .profile-header,
.player-detail .tabs {
  border-color: var(--line);
}

.player-detail h3,
.player-detail h4,
.player-detail h5,
.player-detail h6,
.player-detail strong,
.player-detail b,
.player-detail dd,
.player-detail summary,
.player-detail #detailName,
.player-detail .classification-table-row > span,
.player-detail .classification-detail summary strong,
.player-detail .classification-detail-row > span:first-child,
.player-detail .full-data-item strong,
.player-detail .spark-copy strong,
.player-detail .progress-row strong,
.player-detail .reference-compare-summary strong,
.player-detail .reference-compare-row > strong,
.player-detail .management-item strong {
  color: var(--ink);
  text-shadow: none;
}

.player-detail .eyebrow,
.player-detail label,
.player-detail .meta-pill,
.player-detail .info-list dt,
.player-detail .history-item span,
.player-detail .section-heading span,
.player-detail .feedback-card-head span,
.player-detail .chart-card-head span,
.player-detail .feedback-card p,
.player-detail .feedback-list li > span,
.player-detail .feedback-list small,
.player-detail .feedback-sublist > span,
.player-detail .feedback-sublist li span,
.player-detail .focus-list li,
.player-detail .reference-source,
.player-detail .reference-summary span,
.player-detail .metric-table-row > span,
.player-detail .metric-table-row small,
.player-detail .team-table-row > span,
.player-detail .team-kpi span,
.player-detail .team-kpi small,
.player-detail .full-data-group h6,
.player-detail .full-data-item span,
.player-detail .trend-kpi span,
.player-detail .trend-kpi small,
.player-detail .trend-period span,
.player-detail .trend-focus-card span,
.player-detail .trend-focus-card small,
.player-detail .status-tile span,
.player-detail .spark-copy span,
.player-detail .chart-empty,
.player-detail .reference-compare-summary span,
.player-detail .reference-compare-summary small,
.player-detail .reference-compare-row > span:first-child,
.player-detail .management-item span,
.player-detail .management-item small,
.player-detail .classification-detail summary small,
.player-detail .classification-detail-row small,
.player-detail .classification-text-details span,
.player-detail .classification-note p,
.player-detail .sync-card .section-heading span,
.player-detail .photo-upload-copy > span,
.player-detail .muted-empty {
  color: var(--muted);
}

.player-detail .meta-pill,
.player-detail .tab,
.player-detail .result-subtabs,
.player-detail .info-block,
.player-detail .insight-panel,
.player-detail .measurement-type-card,
.player-detail .measurement-form,
.player-detail .management-form,
.player-detail .management-item,
.player-detail .reference-compare-card,
.player-detail .reference-compare-summary,
.player-detail .classification-form,
.player-detail .data-hero,
.player-detail .sync-card,
.player-detail .local-data-card,
.player-detail .feedback-card,
.player-detail .chart-card,
.player-detail .team-kpi,
.player-detail .history-item,
.player-detail .status-line,
.player-detail .photo-upload-card,
.player-detail .metric-table,
.player-detail .reference-compare-table,
.player-detail .team-table,
.player-detail .classification-table,
.player-detail .classification-detail-table,
.player-detail .full-data-item,
.player-detail .trend-kpi,
.player-detail .trend-period,
.player-detail .trend-focus-card,
.player-detail .status-tile,
.player-detail .spark-row.trend-row,
.player-detail .classification-detail,
.player-detail .classification-text-details div,
.player-detail .orthopedic-reference-card,
.player-detail .orthopedic-reference-compare-card,
.player-detail .orthopedic-age-comparison,
.player-detail .metric-table-row,
.player-detail .reference-compare-row,
.player-detail .team-table-row,
.player-detail .classification-table-row,
.player-detail .classification-detail-row,
.player-detail .feedback-list li,
.player-detail .feedback-sublist,
.player-detail .full-data-section,
.player-detail .classification-detail-list,
.player-detail .classification-detail-body,
.player-detail .classification-note,
.player-detail .orthopedic-trends,
.player-detail .form-section,
.player-detail .excel-table-wrap,
.player-detail .excel-table td,
.player-detail .excel-table tbody th,
.player-detail input,
.player-detail select,
.player-detail textarea {
  border-color: var(--line);
  color: var(--ink);
  background: #fbfdfb;
  box-shadow: none;
}

.player-detail .tab.is-active,
.player-detail .tab:hover,
.player-detail .result-subtab.is-active,
.player-detail .result-subtab:hover {
  border-color: #8fcaa8;
  color: var(--green-dark);
  background: var(--mint);
}

.player-detail .result-subtab {
  color: var(--muted);
}

.player-detail .metric-table-head,
.player-detail .team-table-head,
.player-detail .classification-table-head,
.player-detail .classification-detail-head,
.player-detail .excel-table thead th {
  color: #1f4f39;
  background: #e8f4ec;
}

.player-detail .metric-table-row:nth-child(even),
.player-detail .team-table-row:nth-child(even),
.player-detail .classification-detail-row:nth-child(even),
.player-detail .excel-table tr:nth-child(even) td {
  background: #f5faf7;
}

.player-detail .orthopedic-reference-head strong,
.player-detail .orthopedic-reference-row strong,
.player-detail .orthopedic-reference-compare-card strong,
.player-detail .orthopedic-reference-compare-card b,
.player-detail .orthopedic-age-comparison-head strong {
  color: var(--ink);
}

.player-detail .orthopedic-reference-head span,
.player-detail .orthopedic-reference-head small,
.player-detail .orthopedic-reference-summary strong,
.player-detail .orthopedic-reference-row span,
.player-detail .orthopedic-reference-compare-card span,
.player-detail .orthopedic-reference-compare-card small,
.player-detail .orthopedic-age-comparison-head span {
  color: var(--muted);
}

.player-detail .orthopedic-reference-summary span,
.player-detail .orthopedic-reference-row,
.player-detail .orthopedic-reference-row.is-current {
  border-color: #b6d9c3;
  color: var(--ink);
  background: #edf7f0;
}

.player-detail .orthopedic-recommendation-head > span,
.player-detail .orthopedic-recommendation-item > strong,
.player-detail .orthopedic-evidence li,
.player-detail .orthopedic-fine-tuning > strong,
.player-detail .orthopedic-special-attention > strong,
.player-detail .orthopedic-fine-tuning li {
  color: var(--ink);
}

.player-detail .orthopedic-recommendation-item,
.player-detail .orthopedic-recommendation-item.warn,
.player-detail .orthopedic-recommendation-item.bad {
  border-color: var(--line);
  background: #f8fbf9;
}

.player-detail .orthopedic-recommendation-item {
  border-left-color: var(--green);
}

.player-detail .orthopedic-recommendation-item.warn {
  border-left-color: #c48d15;
  background: #fffaf0;
}

.player-detail .orthopedic-recommendation-item.bad {
  border-left-color: #c44a42;
  background: #fff5f3;
}

.player-detail .orthopedic-recommendation-item-head > span {
  color: var(--green-dark);
}

.player-detail .orthopedic-recommendation-item.warn .orthopedic-recommendation-item-head > span {
  color: #8a6409;
}

.player-detail .orthopedic-recommendation-item.bad .orthopedic-recommendation-item-head > span {
  color: #a63e37;
}

.player-detail .orthopedic-recommendation-item-head small,
.player-detail .orthopedic-evidence > span,
.player-detail .orthopedic-fine-tuning > span,
.player-detail .orthopedic-special-attention > span {
  color: var(--muted);
}

.player-detail .orthopedic-red-flag {
  color: #9c302b;
  background: #fff0ee;
}

.player-detail .orthopedic-fine-tuning {
  background: #edf7ff;
}

.player-detail .orthopedic-special-attention {
  background: #fff6dd;
}

.player-detail .reference-pill.good,
.player-detail .risk-pill.low,
.player-detail .classification-mini-badge.good,
.player-detail .trend-kpi.good,
.player-detail .trend-focus-card.good,
.player-detail .status-tile.good {
  color: #08774d;
  background: #e1f5e9;
  border-color: #9dd6b4;
}

.player-detail .reference-pill.neutral,
.player-detail .classification-mini-badge.neutral {
  color: #53645b;
  background: #edf2ef;
  border-color: #d5e0d9;
}

.player-detail .reference-pill.warn,
.player-detail .risk-pill.medium,
.player-detail .classification-mini-badge.warn,
.player-detail .trend-kpi.neutral,
.player-detail .trend-focus-card.neutral,
.player-detail .status-tile.neutral {
  color: #805806;
  background: #fff4cd;
  border-color: #edce72;
}

.player-detail .reference-pill.bad,
.player-detail .risk-pill.high,
.player-detail .classification-mini-badge.bad,
.player-detail .trend-kpi.bad,
.player-detail .trend-focus-card.bad,
.player-detail .status-tile.bad {
  color: #9c302b;
  background: #fff0ee;
  border-color: #f0aaa5;
}

.player-detail .classification-detail-score.good,
.player-detail .classification-team-score.good {
  color: #075238;
  background: #bde9cd;
}

.player-detail .classification-detail-score.warn,
.player-detail .classification-detail-score.neutral,
.player-detail .classification-team-score.warn,
.player-detail .classification-team-score.neutral {
  color: #6d4b04;
  background: #ffe29a;
}

.player-detail .classification-detail-score.bad,
.player-detail .classification-team-score.bad {
  color: #8e2923;
  background: #ffc9c5;
}

.player-detail .progress-track {
  background: #e6eeea;
}

.player-detail .spark-axis,
.radar-ring,
.radar-axis {
  stroke: #b7c9bd;
}

.player-detail .spark-line,
.radar-line {
  stroke: var(--green);
}

.player-detail .spark-dot.plain,
.player-detail .spark-dot.neutral {
  fill: #edf5f0;
}

.player-report {
  border-color: var(--line);
  border-top-color: var(--green);
  color: var(--ink);
  background: #f5faf7;
  box-shadow: var(--shadow);
}

.report-panel {
  border-color: var(--line);
  color: var(--ink);
  background: var(--white);
  box-shadow: none;
}

.report-profile-panel h3,
.report-panel-head h3,
.report-stat-row strong,
.report-results-row strong,
.report-results-date-cell strong {
  color: var(--ink);
}

.report-profile-panel p,
.report-panel-head span,
.report-empty,
.report-stat-row span,
.report-results-head,
.report-results-row span,
.coach-note-stack p,
.report-results-date-cell small {
  color: var(--muted);
}

.report-stat-row,
.report-results-row:nth-child(even) {
  border-color: var(--line);
  background: #f7faf8;
}

.radar-area {
  fill: rgba(8, 119, 77, 0.16);
}

.radar-dot {
  fill: var(--green);
  stroke: var(--white);
}

.radar-label,
.radar-scale {
  fill: #405d4f;
}
