﻿:root {
  --navy: #071015;
  --navy-2: #081218;
  --graphite: #0d1820;
  --graphite-2: #172630;
  --surface: rgba(17, 28, 36, 0.94);
  --surface-2: rgba(19, 33, 42, 0.96);
  --surface-3: rgba(26, 42, 52, 0.94);
  --ice: #f3f6f8;
  --ice-2: #a9b4be;
  --accent: #ff7a18;
  --accent-2: #e96708;
  --red: #ff5c5c;
  --green: #65d17a;
  --yellow: #ffb547;
  --text: #f3f6f8;
  --muted: #a9b4be;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.12);
  --bg: #071015;
  --white: #ffffff;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
  --background: #071015;
  --foreground: #f3f6f8;
  --card: #111c24;
  --card-foreground: #f3f6f8;
  --popover: #13212a;
  --popover-foreground: #f3f6f8;
  --primary: #ff7a18;
  --primary-foreground: #081218;
  --secondary: rgba(255, 255, 255, 0.06);
  --secondary-foreground: #f3f6f8;
  --muted-foreground: #6f7d88;
  --destructive: #ff5c5c;
  --border: rgba(255, 255, 255, 0.08);
  --input: #0d1820;
  --ring: rgba(255, 122, 24, 0.25);
  --sidebar: #050b10;
  --sidebar-foreground: #a9b4be;
  --sidebar-active: rgba(255, 122, 24, 0.1);
  --sidebar-active-foreground: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 122, 24, 0.1), transparent 26%),
    radial-gradient(circle at 92% 18%, rgba(96, 165, 250, 0.08), transparent 28%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.014) 0 1px, transparent 1px 120px),
    linear-gradient(180deg, #071015 0%, #081218 50%, #050b10 100%);
  font-family: Arial, Helvetica, sans-serif;
}

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

button {
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  padding: 0 16px;
  cursor: pointer;
  font-weight: 700;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

button:hover:not(:disabled) {
  transform: none;
}

button.primary {
  color: var(--primary-foreground);
  background: linear-gradient(135deg, #ff8f33, var(--accent));
  box-shadow: 0 14px 30px rgba(255, 122, 24, 0.24);
}

button.danger {
  color: #ffb4b4;
  background: rgba(255, 92, 92, 0.12);
  border: 1px solid rgba(255, 92, 92, 0.35);
}

button.secondary {
  color: var(--secondary-foreground);
  background: var(--secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}

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

select {
  color-scheme: dark;
}

select option {
  color: var(--text);
  background: #0d1820;
}

select option:checked {
  color: #081218;
  background: #ff7a18;
}

select option:disabled {
  color: #4f5a63;
}

input,
select {
  min-height: 44px;
}

textarea {
  min-height: 92px;
  padding-top: 12px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--ring);
}

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

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 1.05fr);
}

.start-page {
  position: relative;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  min-height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(5, 11, 16, 0.72), rgba(13, 24, 32, 0.55)),
    #071018;
}

.start-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/assets/start-bg.png");
  background-size: cover;
  background-position: center;
  opacity: 0.82;
  filter: saturate(0.95) contrast(1.04);
  transform: scale(1.02);
}

.start-page::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 24%, rgba(255, 122, 24, 0.12), transparent 28%),
    linear-gradient(90deg, rgba(5, 11, 16, 0.52), rgba(5, 11, 16, 0.34) 48%, rgba(5, 11, 16, 0.64)),
    linear-gradient(180deg, rgba(5, 11, 16, 0.18), rgba(5, 11, 16, 0.54));
}

.hero {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 44px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(7, 17, 31, 0.98), rgba(13, 27, 48, 0.9)),
    repeating-linear-gradient(145deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 18px);
}

.start-page .hero,
.start-page .auth-panel {
  position: relative;
  z-index: 1;
}

.start-page .hero {
  min-height: 100vh;
  padding: clamp(24px, 4vw, 52px);
  background: transparent;
}

.hero-copy {
  max-width: 650px;
}

.start-page .hero-copy {
  display: grid;
  gap: 14px;
  max-width: 570px;
}

.hero h1 {
  margin: 18px 0 16px;
  font-size: 52px;
  line-height: 1.02;
}

.start-page .hero h1 {
  max-width: 560px;
  margin: 0;
  font-size: clamp(32px, 3.9vw, 52px);
  line-height: 1.06;
  text-wrap: balance;
}

.hero p {
  margin: 0;
  color: #d1deef;
  font-size: 18px;
  line-height: 1.55;
}

.start-page .hero p {
  max-width: 520px;
  color: rgba(229, 239, 250, 0.86);
  font-size: 16px;
  line-height: 1.5;
}

.hero-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 520px;
}

.hero-benefits span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(8px);
}

.brand {
  display: grid;
  gap: 6px;
}

.start-page .brand {
  justify-items: start;
  align-items: start;
}

.brand strong {
  font-size: 21px;
}

.start-brand-logo {
  display: block;
  width: min(460px, 82vw);
  max-height: 184px;
  height: auto;
  object-fit: contain;
  object-position: left center;
  justify-self: start;
  align-self: start;
  margin-left: 0;
  margin-right: auto;
  margin-bottom: 4px;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.36)) drop-shadow(0 0 22px rgba(255, 122, 24, 0.1));
}

.brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  width: fit-content;
  color: var(--text);
  font-size: clamp(24px, 2.2vw, 34px);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 10px 30px rgba(255, 122, 24, 0.18), 0 1px 0 rgba(255, 255, 255, 0.12);
}

.brand-mark {
  color: var(--accent);
}

.brand-dash {
  color: rgba(255, 255, 255, 0.62);
  transform: translateY(-1px);
}

.brand-name {
  background: linear-gradient(135deg, #ffffff, #b8cce6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand span {
  color: #8ea5c1;
  font-size: 13px;
}

.brand-light span {
  color: #b8cce6;
}

.eyebrow {
  display: inline-flex;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.start-page .auth-panel {
  justify-content: flex-start;
  min-height: 100vh;
  padding: clamp(22px, 4vw, 56px);
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(330px, 1fr) minmax(220px, 0.58fr);
  gap: 14px;
  align-items: stretch;
  width: min(760px, 100%);
}

.auth-shell.register-open {
  grid-template-columns: minmax(360px, 1fr) minmax(220px, 0.48fr);
}

.auth-card {
  width: min(640px, 100%);
  background: rgba(18, 28, 43, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.start-page .auth-card {
  width: 100%;
  border-color: rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(18, 28, 43, 0.84), rgba(10, 18, 27, 0.9));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(20px);
}

.auth-card-main {
  min-width: 0;
}

.auth-side-card {
  display: grid;
  align-content: center;
  gap: 10px;
  min-width: 0;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  color: var(--text);
  background:
    linear-gradient(155deg, rgba(255, 122, 24, 0.13), rgba(255, 255, 255, 0.045)),
    rgba(10, 18, 27, 0.72);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
}

.auth-side-card h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.15;
}

.auth-side-card p {
  margin: 0;
  color: rgba(209, 222, 239, 0.86);
  font-size: 14px;
  line-height: 1.45;
}

.auth-side-card button {
  justify-self: start;
  margin-top: 4px;
}

.auth-back-row {
  display: flex;
  justify-content: flex-start;
  margin: -4px 0 14px;
}

.auth-card-head {
  display: grid;
  gap: 7px;
  margin-bottom: 18px;
}

.auth-card-head h2 {
  margin: 0;
  color: var(--text);
  font-size: 28px;
  line-height: 1.15;
}

.auth-card-head p {
  margin: 0;
  color: var(--muted);
}

.tabs,
.role-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
}

.tabs button,
.role-switch button {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
}

.tabs button.active,
.role-switch button.active {
  color: var(--white);
  background: linear-gradient(135deg, rgba(255, 122, 24, 0.18), rgba(255, 122, 24, 0.08));
  border: 1px solid rgba(255, 122, 24, 0.32);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.full {
  grid-column: 1 / -1;
}

.shell {
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-columns: 270px 1fr;
  overflow: hidden;
}

.sidebar {
  min-height: 0;
  overflow-y: auto;
  background:
    linear-gradient(180deg, rgba(7, 17, 31, 0.98), rgba(10, 17, 29, 0.98)),
    var(--navy);
  color: var(--white);
  padding: 24px;
  border-right: 1px solid var(--line);
}

.nav {
  display: grid;
  gap: 8px;
  margin-top: 26px;
}

.nav button {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  color: #c7d7ed;
  background: transparent;
}

.nav button.active,
.nav button:hover {
  color: var(--white);
  background: linear-gradient(135deg, rgba(255, 122, 24, 0.16), rgba(255, 83, 104, 0.08));
  border: 1px solid rgba(255, 122, 24, 0.16);
}

.content {
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 30px;
}

.evaluation-section {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.progress-stats {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.chart-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
  box-shadow: 0 10px 28px rgba(7, 20, 38, 0.08);
}

.chart-card h4 {
  margin: 0 0 14px;
}

.line-chart {
  width: 100%;
  height: auto;
  overflow: visible;
}

.line-chart line {
  stroke: rgba(157, 177, 200, 0.35);
  stroke-width: 1;
}

.line-chart polyline {
  fill: none;
  stroke: var(--accent);
  stroke-width: 4;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.line-chart circle {
  fill: var(--red);
}

.line-chart text {
  fill: var(--muted);
  font-size: 10px;
  text-anchor: middle;
}

.skill-bars {
  display: grid;
  gap: 12px;
}

.skill-row {
  display: grid;
  grid-template-columns: minmax(120px, 1.2fr) 2fr 32px;
  align-items: center;
  gap: 10px;
}

.skill-row div {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.skill-row i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--red));
}

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

.evaluation-card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.ranking,
.attention-list {
  margin: 12px 0 0;
  padding-left: 20px;
}

.ranking li,
.attention-list li {
  margin: 8px 0;
}

.topbar,
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.topbar {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 28, 43, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.topbar h1,
.section-header h2 {
  margin: 4px 0 6px;
}

.topbar p,
.section-header p,
.card-title p {
  margin: 0;
  color: var(--muted);
}

.section-header.compact {
  margin-top: 12px;
  margin-bottom: 12px;
}

.notice {
  margin: 14px 0;
  padding: 13px 14px;
  border: 1px solid rgba(255, 122, 24, 0.24);
  border-radius: 8px;
  color: var(--ice);
  background: rgba(255, 122, 24, 0.1);
}

.notice.error {
  color: #ffd9df;
  border-color: rgba(255, 83, 104, 0.26);
  background: rgba(255, 83, 104, 0.12);
}

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

.stat,
.card,
.empty-state {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.card,
.stat {
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.card:hover,
.stat:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.calendar-board .card:hover,
.calendar-layout .card:hover,
.exercise-row .card:hover,
.exercise-preview .card:hover,
.quick-attendance-form .card:hover,
.player-list .card:hover,
.player-detail-card:hover,
.normative-table .card:hover,
.normative-team-table .card:hover,
.motion-board-shell .card:hover,
.motion-board-shell button:hover,
.calendar-board button:hover,
.calendar-layout button:hover,
.exercise-row button:hover,
.exercise-preview button:hover,
.quick-attendance-form button:hover,
.player-list button:hover,
.normative-table button:hover,
.normative-team-table button:hover,
.invite-code-box button:hover {
  transform: none;
}

.stat {
  padding: 18px;
}

.stat span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.stat strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
  line-height: 1.1;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.card {
  padding: 18px;
}

.form-card {
  margin-bottom: 14px;
}

.card h3,
.empty-state h3 {
  margin: 0 0 8px;
}

.card-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.description {
  margin: 10px 0 14px;
  color: var(--text);
  line-height: 1.45;
}

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

.meta {
  display: grid;
  gap: 8px;
  margin: 0;
  color: var(--muted);
}

.meta b {
  color: var(--text);
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.mini-stats span {
  min-height: 52px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 13px;
}

.mini-stats b {
  display: block;
  color: var(--text);
  font-size: 16px;
}

.invite-code-box {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(255, 122, 24, 0.22);
  border-radius: 12px;
  background: rgba(223, 247, 255, 0.08);
}

.invite-code-box > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.invite-code-box strong {
  width: fit-content;
  padding: 8px 12px;
  border: 1px solid rgba(255, 122, 24, 0.28);
  border-radius: 10px;
  color: var(--ice);
  background: rgba(255, 122, 24, 0.12);
  font-size: 18px;
  letter-spacing: 0.08em;
}

.invite-code-box p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.team-announcement-panel {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.team-announcement-form {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(220px, 1.2fr);
  gap: 12px;
}

.team-announcement-form .full {
  grid-column: 1 / -1;
}

.team-announcement-history {
  display: grid;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.team-announcement-item {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.team-announcement-item p {
  margin: 0;
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.consent-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  color: var(--text);
  line-height: 1.45;
}

.consent-row input {
  margin-top: 3px;
}

.form-note,
.privacy-note {
  border: 1px solid rgba(255, 122, 24, 0.22);
  border-radius: 14px;
  background: rgba(255, 122, 24, 0.08);
  color: var(--muted);
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.45;
}

.form-note a,
.legal-card a {
  color: var(--accent);
  font-weight: 700;
}

.legal-page {
  min-height: 100vh;
}

.legal-panel {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
}

.legal-card {
  width: 100%;
}

.legal-sections {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.legal-sections section {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-muted);
  padding: 16px;
}

.legal-sections h3 {
  margin: 0 0 8px;
  color: var(--text);
}

.legal-sections p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  color: var(--ice);
  background: rgba(255, 122, 24, 0.14);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.badge.pending {
  background: rgba(255, 200, 87, 0.14);
  color: #ffe3a2;
}

.badge.accepted {
  color: #b9ffe5;
  background: rgba(53, 211, 154, 0.14);
}

.badge.rejected,
.badge.cancelled {
  color: #ffd5dc;
  background: rgba(255, 83, 104, 0.16);
}

.badge.neutral {
  color: #d6e6f7;
  background: rgba(255, 255, 255, 0.08);
}

.empty-state {
  padding: 26px;
  color: var(--muted);
  background:
    linear-gradient(135deg, rgba(255, 122, 24, 0.09), rgba(255, 255, 255, 0.03)),
    var(--surface);
}

.empty-state p {
  margin: 0;
}

.team-section {
  margin-bottom: 24px;
}

.coach-home {
  display: grid;
  gap: 18px;
}

.coach-home-card {
  padding: 18px;
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  color: #0f172a;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.1);
}

.coach-home-card .section-header {
  margin-bottom: 12px;
}

.coach-home-card .section-header h2,
.coach-home-card .section-header p {
  color: inherit;
}

.coach-home-card .empty-state {
  border: 1px dashed rgba(148, 163, 184, 0.46);
  border-radius: 14px;
  color: #64748b;
  background: #f8fafc;
}

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

.coach-reminder-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
}

.coach-reminder-row b,
.coach-week-event b {
  color: #0f172a;
}

.coach-reminder-row span,
.coach-reminder-row p,
.coach-week-event span,
.coach-week-events p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}

.coach-week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.coach-week-day {
  display: grid;
  gap: 10px;
  min-height: 150px;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
}

.coach-week-day.today {
  border-color: #93c5fd;
  background: #eff6ff;
}

.coach-week-day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #334155;
  text-transform: capitalize;
}

.coach-week-day-head span {
  color: #64748b;
  font-size: 12px;
}

.coach-week-events {
  display: grid;
  gap: 7px;
}

.coach-week-event {
  display: grid;
  gap: 2px;
  padding: 8px;
  border-radius: 10px;
  background: #f8fafc;
}

.coach-week-event time {
  color: #2563eb;
  font-size: 12px;
  font-weight: 800;
}

.status-card {
  margin-top: 14px;
}

.inline-message {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: var(--muted);
  font-weight: 700;
}

.calendar-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 12px;
  align-items: end;
  margin-bottom: 10px;
  padding: 12px 14px;
}

.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding: 12px 14px;
}

.segmented {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.segmented button {
  min-height: 30px;
  padding: 0 11px;
  font-size: 13px;
  color: var(--muted);
  background: transparent;
}

.segmented button.active {
  color: var(--white);
  background: rgba(255, 122, 24, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 122, 24, 0.22);
}

.calendar-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.calendar-nav strong {
  min-width: 170px;
  font-size: 15px;
  text-align: center;
}

.calendar-board {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
  padding: 12px;
}

.calendar-weekdays,
.month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
}

.calendar-weekdays span {
  color: var(--muted);
  text-align: center;
  font-size: 12px;
  font-weight: 700;
}

.day-cell,
.week-day {
  display: grid;
  align-content: start;
  gap: 5px;
  min-height: 78px;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  text-align: left;
  padding: 8px;
  border-radius: 4px;
}

.day-cell:hover,
.week-day:hover {
  border-color: rgba(255, 122, 24, 0.3);
  background: rgba(255, 122, 24, 0.08);
}

.day-cell.today,
.week-day.today {
  border-color: rgba(255, 122, 24, 0.34);
}

.day-cell.selected,
.week-day.selected {
  background: rgba(255, 122, 24, 0.08);
  border-color: rgba(255, 122, 24, 0.42);
}

.day-cell.muted-day {
  opacity: 0.5;
}

.day-cell > span {
  font-size: 13px;
  font-weight: 700;
}

.day-cell > div,
.week-day > div {
  display: grid;
  gap: 3px;
}

.day-cell em,
.week-day em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.calendar-event {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 16px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.calendar-event i {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.calendar-event b {
  color: var(--text);
  font-size: 11px;
}

.subtype-ice i {
  background: #7fe8ff;
}

.subtype-off_ice i {
  background: #66ddb2;
}

.subtype-theory i {
  background: #c59cff;
}

.subtype-game i {
  background: #ff7b8b;
}

.subtype-meeting i {
  background: #ffd071;
}

.subtype-other i {
  background: #aebdce;
}

.week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.week-day {
  min-height: 118px;
}

.week-day b {
  color: var(--muted);
  text-transform: uppercase;
}

.selected-day {
  margin-top: 10px;
  padding: 14px;
}

.selected-day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.selected-day-head h2 {
  margin: 0 0 3px;
  font-size: 16px;
}

.selected-day-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.selected-day-list {
  display: grid;
  margin-top: 10px;
}

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

.calendar-detail:first-child {
  border-top: 0;
}

.calendar-detail-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.calendar-detail-main time {
  color: var(--muted);
  font-size: 13px;
}

.calendar-detail-main strong {
  font-size: 14px;
}

.calendar-detail-main span:last-child {
  color: var(--muted);
  font-size: 13px;
}

.calendar-detail p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.calendar-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.calendar-detail-actions button,
.calendar-nav button {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

.calendar-empty-inline {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.toolbar-label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

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

.filter-button {
  min-height: 38px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
}

.filter-button.active {
  color: var(--white);
  background: linear-gradient(135deg, rgba(255, 122, 24, 0.22), rgba(255, 122, 24, 0.1));
  border: 1px solid rgba(255, 122, 24, 0.28);
}

.event-day {
  margin-top: 18px;
}

.event-day > h3 {
  margin: 0 0 10px;
  color: var(--ice);
}

.event-list {
  display: grid;
  gap: 12px;
}

.event-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  align-items: start;
}

.event-time {
  display: grid;
  gap: 4px;
  justify-items: center;
  padding: 12px 8px;
  border-radius: 8px;
  color: var(--white);
  background: linear-gradient(180deg, rgba(255, 122, 24, 0.2), rgba(255, 122, 24, 0.08));
  border: 1px solid rgba(255, 122, 24, 0.18);
}

.event-time strong {
  font-size: 22px;
}

.event-time span {
  color: #c7d7ed;
  font-size: 13px;
  font-weight: 700;
}

.event-main h3 {
  margin-top: 8px;
}

.badge.event-training {
  color: #c8f6ff;
  background: rgba(255, 122, 24, 0.14);
}

.badge.event-game {
  color: #ffd5dc;
  background: rgba(255, 83, 104, 0.16);
}

.badge.event-online_session {
  color: #9cf7e8;
  background: rgba(34, 211, 182, 0.14);
}

.badge.event-meeting {
  color: #ffe4a8;
  background: rgba(255, 200, 87, 0.16);
}

.badge.event-other {
  color: #d6e6f7;
  background: rgba(255, 255, 255, 0.08);
}

.exercise-toolbar {
  grid-template-columns: minmax(220px, 320px) 1fr 1fr;
}

.exercise-card {
  display: grid;
  gap: 12px;
}

.exercise-list {
  display: grid;
  gap: 14px;
}

.exercise-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.exercise-row.selected {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
}

.exercise-row.selected .exercise-card {
  box-shadow: 0 0 0 2px rgba(255, 122, 24, 0.28), 0 16px 40px rgba(0, 0, 0, 0.22);
}

.exercise-inline-preview {
  display: grid;
  align-self: stretch;
  max-height: 460px;
  min-height: 0;
  overflow: hidden;
}

.exercise-preview-scroll {
  display: grid;
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}

.exercise-preview-goal {
  margin: 0;
}

.compact-meta {
  gap: 5px;
}

.exercise-preview-board {
  min-width: 0;
}

.exercise-preview-actions {
  margin-top: 10px;
}

.exercise-assignment-panel {
  display: grid;
  gap: 14px;
  align-self: start;
  min-width: 0;
}

.exercise-assignment-form {
  display: grid;
  gap: 12px;
}

.exercise-assignment-form .full {
  grid-column: 1 / -1;
}

.assignment-recipient-note {
  align-self: end;
  margin: 0;
  padding: 12px;
  border-radius: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
}

.exercise-assignment-list {
  display: grid;
  gap: 14px;
}

.player-assignment-row {
  display: grid;
  gap: 12px;
}

.player-assignment-row.selected {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
}

.player-exercise-assignment {
  display: grid;
  gap: 12px;
}

.assignment-note {
  margin: 0;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.task-recipient-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.task-recipient {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 7px 9px;
  border-radius: 10px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
}

.task-recipient .badge {
  white-space: nowrap;
}

.badge.board-ready {
  color: #b9ffe5;
  background: rgba(53, 211, 154, 0.14);
}

.exercise-detail {
  margin-bottom: 14px;
}

.tactical-board-section {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.tactical-board-section.compact {
  gap: 8px;
  margin-top: 8px;
}

.tactical-board-section.compact .section-header {
  display: none;
}

.tactical-board-section.compact .motion-board-shell {
  width: 100%;
  padding: 10px;
  border-radius: 18px;
}

.tactical-board-section.compact .motion-board-layout {
  grid-template-columns: 1fr;
  gap: 8px;
}

.tactical-board-section.compact .motion-side-panel {
  order: 2;
}

.tactical-board-section.compact .motion-rink-panel {
  order: 1;
}

.tactical-board-section.compact .motion-readonly-note {
  display: none;
}

.tactical-board-section.compact .motion-controls {
  padding: 8px;
  border-radius: 14px;
}

.tactical-board-section.compact .motion-controls span {
  display: none;
}

.tactical-board-section.compact .motion-controls button {
  min-height: 30px;
  padding: 0 9px;
  font-size: 12px;
}

.tactical-board-section.compact .motion-controls label {
  font-size: 11px;
}

.tactical-board-section.compact .motion-board {
  width: 100%;
  border-radius: 16px;
}

.tactical-board-section.compact .tactical-board,
.tactical-board-section.compact .animation-board {
  width: 100%;
  border-radius: 16px;
}

.tactical-board-section.compact .animation-controls,
.tactical-board-section.compact .animation-timeline {
  transform-origin: left top;
}

.tactical-board-section.compact .empty-state {
  padding: 14px;
}

.tactical-board-shell {
  display: grid;
  gap: 10px;
  justify-items: start;
  min-width: 0;
}

.animation-board-shell {
  display: grid;
  gap: 10px;
}

.motion-board-shell {
  display: grid;
  gap: 12px;
  min-width: 0;
  width: min(100%, 780px);
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(19, 33, 42, 0.98), rgba(13, 24, 32, 0.98)),
    var(--card);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.motion-board-shell.readonly {
  width: min(100%, 720px);
}

.motion-board-toolbar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  align-items: stretch;
}

.motion-board-toolbar label {
  width: 100%;
}

.motion-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  font-size: 13px;
  color: var(--muted);
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
}

.motion-toggle input {
  width: auto;
}

.motion-tool-group,
.motion-selection-panel,
.motion-readonly-note {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}

.motion-tool-group > span,
.motion-controls > span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
}

.motion-tool-group .actions {
  gap: 6px;
}

.motion-tool-group button,
.motion-controls button {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 12px;
  padding: 7px 11px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
  font-size: 13px;
  font-weight: 750;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease, box-shadow 140ms ease, opacity 140ms ease;
}

.motion-tool-group button:hover:not(:disabled),
.motion-controls button:hover:not(:disabled) {
  transform: none;
  color: var(--text);
  border-color: rgba(255, 122, 24, 0.36);
  background: rgba(255, 122, 24, 0.12);
  box-shadow: 0 10px 22px rgba(255, 122, 24, 0.1);
}

.motion-tool-group button:focus-visible,
.motion-controls button:focus-visible,
.motion-tool-group select:focus-visible,
.motion-controls select:focus-visible {
  outline: 3px solid rgba(59, 130, 246, 0.24);
  outline-offset: 2px;
}

.motion-tool-group button:disabled,
.motion-controls button:disabled,
.motion-tool-group select:disabled {
  color: #4f5a63;
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.06);
  opacity: .9;
  box-shadow: none;
}

.motion-tool-group button[data-record-motion] {
  color: #081218;
  border-color: rgba(255, 122, 24, 0.45);
  background: var(--accent);
}

.motion-tool-group button[data-record-motion]:hover:not(:disabled),
.motion-tool-group button[data-record-motion].active {
  color: #081218;
  border-color: rgba(255, 122, 24, 0.55);
  background: #ff8f33;
  box-shadow: 0 10px 24px rgba(255, 122, 24, 0.18);
}

.motion-controls button[data-motion-play] {
  color: #052e18;
  border-color: rgba(101, 209, 122, 0.5);
  background: var(--green);
}

.motion-controls button[data-motion-play]:hover:not(:disabled) {
  color: #052e18;
  border-color: rgba(101, 209, 122, 0.62);
  background: #7ce28f;
  box-shadow: 0 12px 26px rgba(101, 209, 122, 0.18);
}

.motion-controls button[data-motion-stop] {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.motion-controls button[data-motion-loop].active {
  color: #081218;
  border-color: rgba(255, 122, 24, 0.45);
  background: var(--accent);
  box-shadow: 0 10px 24px rgba(255, 122, 24, 0.18);
}

.motion-tool-group.danger-zone {
  border-color: rgba(255, 92, 92, 0.28);
  background: rgba(255, 92, 92, 0.08);
}

.motion-tool-group.danger-zone > span {
  color: #ff9999;
}

.motion-tool-group.danger-zone button,
.motion-tool-group button.danger {
  color: #ff9999;
  border-color: rgba(255, 92, 92, 0.35);
  background: rgba(255, 92, 92, 0.1);
}

.motion-tool-group.danger-zone button:hover:not(:disabled),
.motion-tool-group button.danger:hover:not(:disabled) {
  color: #ffc4c4;
  border-color: rgba(255, 92, 92, 0.45);
  background: rgba(255, 92, 92, 0.14);
  box-shadow: 0 10px 22px rgba(255, 92, 92, 0.12);
}

.motion-recording-status {
  padding: 8px 10px;
  border: 1px solid rgba(255, 122, 24, 0.35);
  border-radius: 12px;
  color: #ffd9bd;
  background: rgba(255, 122, 24, 0.1);
  font-size: 12px;
  font-weight: 700;
}

.motion-selection-panel {
  grid-column: 1 / -1;
  gap: 6px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
}

.motion-selection-panel b {
  color: var(--text);
}

.motion-selection-panel span {
  font-size: 12px;
}

.motion-selection-panel.muted {
  color: var(--muted);
}

.motion-readonly-note {
  color: var(--muted);
  font-size: 13px;
  background: rgba(255, 255, 255, 0.045);
}

.motion-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}

.motion-controls button {
  font-size: 13px;
}

.motion-controls button.active,
.motion-board-toolbar button.active {
  color: #081218;
  border-color: rgba(255, 122, 24, 0.45);
  background: var(--accent);
}

.motion-controls label {
  display: grid;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
}

.motion-controls select {
  min-width: 76px;
  padding: 6px 8px;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.11);
  background: var(--input);
}

.motion-board {
  position: relative;
  overflow: hidden;
  width: min(100%, 640px);
  min-width: 0;
  border: 1px solid rgba(203, 213, 225, 0.8);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(232,247,255,.98)),
    #edf8ff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.72), 0 18px 38px rgba(15, 23, 42, 0.12);
  user-select: none;
  touch-action: none;
}

.motion-board-shell.playing .motion-board-toolbar {
  pointer-events: none;
  opacity: .68;
}

.motion-board.rink-full {
  aspect-ratio: 16 / 9;
}

.motion-board.rink-half {
  width: min(100%, 520px);
  aspect-ratio: 9 / 7;
}

.motion-board-empty {
  position: absolute;
  inset: 16px;
  display: grid;
  place-content: center;
  gap: 7px;
  padding: 18px;
  border: 1px dashed rgba(14, 165, 233, 0.34);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  color: #334155;
  text-align: center;
  pointer-events: none;
}

.motion-board-empty b {
  color: #0f172a;
}

.motion-board-empty span {
  max-width: 360px;
  font-size: 13px;
}

.motion-board-empty ol {
  display: inline-grid;
  gap: 3px;
  max-width: 320px;
  margin: 4px auto 0;
  padding-left: 18px;
  text-align: left;
  color: #475569;
  font-size: 12px;
}

.motion-piece-layer {
  position: absolute;
  inset: 0;
}

.motion-track-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  transition: opacity 140ms ease;
}

.motion-board-shell.playing .motion-track-layer {
  opacity: 0;
}

.motion-track-group {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.motion-track {
  fill: none;
  stroke-width: 0.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.56;
}

.motion-track-arrow {
  fill: none;
  stroke-width: 0.58;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.75;
}

.motion-track-home_player .motion-track,
.motion-track-home_player .motion-track-arrow {
  stroke: #2563eb;
}

.motion-track-away_player .motion-track,
.motion-track-away_player .motion-track-arrow {
  stroke: #dc2626;
}

.motion-track-puck .motion-track,
.motion-track-puck .motion-track-arrow {
  stroke: #0f172a;
}

.motion-track-puck-pass .motion-track,
.motion-track-puck-pass .motion-track-arrow {
  stroke: #0ea5e9;
}

.motion-track-puck-shot .motion-track,
.motion-track-puck-shot .motion-track-arrow {
  stroke: #dc2626;
}

.motion-track-puck-pass .motion-track {
  stroke-dasharray: 1.2 1.2;
}

.motion-piece {
  position: absolute;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  min-height: 0;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.2);
  transition: box-shadow 120ms ease, filter 120ms ease, opacity 120ms ease;
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.motion-piece:hover:not(:disabled),
.motion-piece:focus {
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 6px rgba(255, 122, 24, 0.42));
}

.motion-piece.selected {
  outline: 2px solid rgba(116, 212, 255, 0.95);
  outline-offset: 2px;
}

.motion-piece:active {
  cursor: grabbing;
}

.motion-piece-home_player {
  background: radial-gradient(circle at 32% 28%, #8fc1ff 0, #397ff0 34%, #1756c9 100%);
}

.motion-piece-away_player {
  background: radial-gradient(circle at 32% 28%, #ffb2b8 0, #eb5b69 34%, #c52f41 100%);
}

.motion-piece-puck {
  width: 11px;
  height: 11px;
  border: 0;
  background: #0f172a;
}

.motion-piece-cone {
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 3px 3px 10px 10px;
  background: #f59e0b;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.animation-editor-toolbar {
  display: grid;
  gap: 10px;
}

.animation-controls,
.animation-step-list,
.animation-step-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 7px;
}

.animation-controls button,
.animation-step-list button,
.animation-step-actions button {
  padding: 6px 10px;
  font-size: 13px;
}

.animation-controls button.active,
.animation-step-list button.active {
  color: #04111f;
  background: var(--ice);
}

.animation-controls label,
.animation-step-actions label {
  display: grid;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
}

.animation-controls select {
  min-width: 76px;
  padding: 6px 8px;
}

.animation-timeline {
  display: grid;
  gap: 8px;
}

.animation-step-actions input {
  width: 92px;
  padding: 6px 8px;
}

.board-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.board-toolbar button {
  padding: 6px 9px;
  font-size: 13px;
}

.board-toolbar button.active {
  color: #04111f;
  background: var(--ice);
}

.live-board-toolbar {
  position: relative;
  flex-wrap: wrap;
  overflow: visible;
  overflow-y: visible;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.live-board-toolbar button {
  flex: 0 0 auto;
}

.board-menu {
  position: relative;
  flex: 0 0 auto;
}

.board-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 30;
  display: grid;
  min-width: 150px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0d1820;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
}

.board-dropdown button {
  justify-content: flex-start;
  width: 100%;
  border-color: transparent;
  background: transparent;
  text-align: left;
}

.board-dropdown button:hover {
  border-color: rgba(255, 122, 24, 0.28);
  background: rgba(255, 122, 24, 0.1);
}

.board-tool-group {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
}

.board-tool-group span {
  color: var(--muted);
  font-size: 12px;
}

.board-color-swatch {
  position: relative;
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  box-shadow: none;
}

.board-color-swatch.active {
  border-color: rgba(255, 255, 255, 0.95);
  outline: 2px solid rgba(34, 211, 182, 0.9);
  outline-offset: 2px;
}

.board-color-swatch.active::after {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  content: "✓";
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.board-width-field {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.board-width-field select {
  min-width: 58px;
  padding: 6px 8px;
}

.tactical-board {
  position: relative;
  overflow: hidden;
  width: min(100%, 760px);
  min-width: 0;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(232,247,255,.98)),
    #edf8ff;
  box-shadow: 0 12px 26px rgba(2, 10, 24, 0.14);
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.tactical-board.rink-full {
  aspect-ratio: 16 / 9;
}

.tactical-board.rink-half {
  width: min(100%, 560px);
  aspect-ratio: 9 / 7;
}

.rink-layer,
.arrow-layer,
.piece-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.rink-layer .rink-outline {
  fill: transparent;
  stroke: #8fb6cc;
  stroke-width: 3;
}

.rink-layer line,
.rink-layer circle {
  fill: none;
  stroke: rgba(30, 101, 170, 0.55);
  stroke-width: 2.6;
}

.rink-layer .center-line {
  stroke: rgba(215, 57, 75, 0.8);
}

.rink-layer .blue-line {
  stroke: rgba(30, 101, 170, 0.8);
}

.rink-layer .goal-line {
  stroke: rgba(215, 57, 75, 0.88);
}

.rink-layer .zone-wash {
  stroke: none;
}

.rink-layer .attack-zone,
.rink-layer .defend-zone {
  fill: rgba(159, 219, 255, 0.1);
}

.rink-layer .neutral-zone {
  fill: rgba(255, 255, 255, 0.2);
}

.rink-layer .faceoff-dot,
.rink-layer .neutral-dot,
.rink-layer .center-dot {
  fill: rgba(215, 57, 75, 0.86);
  stroke: none;
}

.rink-layer .goal-crease {
  fill: rgba(138, 215, 255, 0.24);
  stroke: rgba(30, 101, 170, 0.6);
  stroke-width: 2.2;
}

.rink-layer .goal {
  fill: rgba(215, 57, 75, 0.12);
  stroke: rgba(215, 57, 75, 0.8);
}

.arrow-layer {
  overflow: visible;
}

.board-arrow {
  fill: none;
  stroke-width: 0.82;
  cursor: pointer;
}

.board-arrow-move {
  stroke: #2f7df4;
}

.board-arrow-pass {
  stroke: #2fbf9b;
  stroke-dasharray: 3 2.5;
}

.board-arrow-shot {
  stroke: #e04f5f;
  stroke-width: 1.05;
}

.board-arrow-skate_with_puck {
  stroke: #1f6fe0;
  stroke-dasharray: 5 2;
}

.board-arrow.selected {
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.55));
}

.board-arrow.preview {
  pointer-events: none;
  opacity: 0.78;
}

.board-arrow-move + marker path,
#arrowhead-move path {
  fill: #2f7df4;
}

#arrowhead-pass path {
  fill: #2fbf9b;
}

#arrowhead-shot path {
  fill: #e04f5f;
}

.piece-layer {
  pointer-events: none;
}

.board-piece {
  position: absolute;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  min-height: 0;
  padding: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  pointer-events: auto;
  box-shadow: 0 4px 10px rgba(5, 16, 33, 0.18);
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  cursor: grab;
  transition: box-shadow 0.15s ease, filter 0.15s ease, opacity 0.15s ease;
}

.board-piece:hover:not(:disabled),
.board-piece:focus {
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 6px rgba(255, 122, 24, 0.42));
}

.board-piece.selected {
  outline: 2px solid rgba(116, 212, 255, 0.95);
  outline-offset: 2px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.95),
    0 4px 10px rgba(5, 16, 33, 0.18);
}

.board-piece:active {
  cursor: grabbing;
}

.board-piece-player {
  background: radial-gradient(circle at 32% 28%, #8fc1ff 0, #397ff0 34%, #1756c9 100%);
  z-index: 3;
}

.board-piece-opponent {
  background: radial-gradient(circle at 32% 28%, #ffb2b8 0, #eb5b69 34%, #c52f41 100%);
  z-index: 3;
}

.board-piece-goalie {
  width: 29px;
  height: 25px;
  border-radius: 9px;
  border-width: 2px;
  background: linear-gradient(145deg, #42556d, #1d2b3e);
}

.board-piece-puck {
  width: 11px;
  height: 11px;
  border: 0;
  background: #0f172a;
  z-index: 6;
}

.board-piece-cone {
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 3px 3px 10px 10px;
  background: #f59e0b;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.board-piece-text {
  width: auto;
  min-width: 36px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
}

.board-mode-field {
  display: grid;
  gap: 5px;
  font-size: 13px;
  color: var(--muted);
}

.board-mode-field select {
  min-width: 180px;
  padding: 7px 10px;
}

@media (max-width: 720px) {
  .tactical-board,
  .tactical-board.rink-half {
    width: 100%;
  }

  .live-board-toolbar {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: visible;
  }

  .board-dropdown {
    position: fixed;
    top: auto;
    left: 18px;
    right: 18px;
    bottom: 18px;
    min-width: 0;
  }

  .board-toolbar button {
    padding: 6px 8px;
  }

  .board-piece {
    width: 24px;
    height: 24px;
    font-size: 11px;
  }
}

.readonly .board-piece,
.readonly .board-arrow,
.readonly .board-drawing {
  cursor: default;
}

.board-drawing {
  pointer-events: stroke;
  cursor: pointer;
}

.board-drawing.preview {
  opacity: 0.78;
  pointer-events: none;
}

.board-drawing.selected {
  filter: drop-shadow(0 0 5px rgba(255, 122, 24, 0.55));
}

.exercise-form:hover,
.exercise-detail:hover,
.plan-exercise:hover {
  transform: none;
}

.exercise-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge.difficulty-easy {
  color: #b9ffe5;
  background: rgba(53, 211, 154, 0.14);
}

.badge.difficulty-medium {
  color: #ffe4a8;
  background: rgba(255, 200, 87, 0.16);
}

.badge.difficulty-hard {
  color: #ffd5dc;
  background: rgba(255, 83, 104, 0.16);
}

.badge.category-skating,
.badge.category-passing,
.badge.category-shooting,
.badge.category-puck_control,
.badge.category-tactics,
.badge.category-physical,
.badge.category-goalie,
.badge.category-game,
.badge.category-other {
  color: #c8f6ff;
  background: rgba(255, 122, 24, 0.14);
}

.training-plan {
  display: grid;
  gap: 14px;
}

.plan-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background:
    linear-gradient(135deg, rgba(255, 122, 24, 0.12), rgba(255, 255, 255, 0.03)),
    var(--surface);
}

.plan-hero strong {
  color: var(--ice);
  font-size: 32px;
}

.plan-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
}

.plan-edit {
  display: grid;
  grid-template-columns: 120px minmax(220px, 1fr) auto auto;
  gap: 8px;
  align-items: end;
  margin-top: 14px;
}

.attendance-stats {
  margin-bottom: 14px;
}

.player-attendance-stats {
  grid-template-columns: repeat(3, minmax(136px, 1fr));
  gap: 10px;
}

.player-attendance-secondary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-form {
  margin-top: 14px;
}

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

.player-list-row {
  display: grid;
  grid-template-columns: 44px minmax(180px, 1.4fr) minmax(140px, 1fr) minmax(110px, 0.8fr) 70px;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.player-list-row:hover {
  border-color: rgba(255, 122, 24, 0.28);
  color: var(--text);
  background: rgba(255, 122, 24, 0.08);
}

.player-list-name {
  color: var(--text);
  font-weight: 800;
}

.player-card-title-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.player-card-title-main span {
  min-width: 0;
}

.player-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  color: var(--text);
  font-weight: 800;
  background: rgba(255, 122, 24, 0.18);
  border: 1px solid rgba(255, 122, 24, 0.35);
}

.player-avatar-large {
  width: 116px;
  height: 116px;
  font-size: 36px;
}

.player-avatar-small {
  width: 48px;
  height: 48px;
  font-size: 16px;
}

.player-avatar-list {
  width: 38px;
  height: 38px;
  font-size: 13px;
}

.player-detail-card {
  margin-bottom: 14px;
}

.player-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.player-detail-grid span {
  display: grid;
  gap: 5px;
  min-height: 64px;
  padding: 12px;
  border-radius: 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.player-detail-grid b {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.coach-notes-form {
  display: grid;
  gap: 12px;
}

.recent-notes-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.recent-notes-list div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.recent-notes-list span {
  color: var(--muted);
  font-size: 13px;
}

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

.training-note-item {
  display: grid;
  gap: 11px;
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.training-note-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

.training-note-head span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.training-note-head b {
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.training-note-head small {
  color: var(--muted);
}

.training-note-head i {
  flex: 0 0 auto;
  font-style: normal;
}

.training-note-item p {
  margin: 0;
  color: var(--text);
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.player-card-stage {
  display: grid;
  gap: 14px;
  min-width: 0;
  overflow-anchor: none;
}

.player-card-header {
  margin-bottom: 0;
}

.player-profile-hero {
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
  min-width: 0;
}

.player-avatar-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 250px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--muted);
  text-align: center;
  background:
    linear-gradient(155deg, rgba(255, 122, 24, 0.12), rgba(255, 255, 255, 0.035)),
    var(--surface-2);
}

.player-avatar-block strong {
  color: var(--text);
  font-size: 14px;
}

.player-avatar-block span {
  font-size: 12px;
  line-height: 1.45;
}

.player-avatar-placeholder {
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  margin-bottom: 5px;
  border: 1px solid rgba(255, 122, 24, 0.38);
  border-radius: 50%;
  color: var(--text);
  font-size: 34px;
  font-weight: 800;
  background: rgba(255, 122, 24, 0.18);
  box-shadow: inset 0 0 0 8px rgba(255, 122, 24, 0.06);
}

.player-avatar-large.player-avatar-placeholder {
  width: 116px;
  height: 116px;
  font-size: 36px;
}

.player-avatar-small.player-avatar-placeholder {
  width: 48px;
  height: 48px;
  margin-bottom: 0;
  font-size: 16px;
  box-shadow: inset 0 0 0 4px rgba(255, 122, 24, 0.06);
}

.player-avatar-list.player-avatar-placeholder {
  width: 38px;
  height: 38px;
  margin-bottom: 0;
  font-size: 13px;
  box-shadow: inset 0 0 0 3px rgba(255, 122, 24, 0.06);
}

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

.player-home-photo {
  display: grid;
  justify-items: center;
  gap: 12px;
  min-width: 0;
}

.player-home-main {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.player-home-main h2 {
  margin: 0;
  color: var(--text);
  font-size: 30px;
  line-height: 1.16;
}

.photo-upload-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 122, 24, 0.35);
  border-radius: 10px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  background: rgba(255, 122, 24, 0.12);
  cursor: pointer;
}

.photo-upload-button:hover {
  background: rgba(255, 122, 24, 0.18);
}

.photo-upload-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.player-profile-status {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  overflow-wrap: anywhere;
  background: rgba(255, 255, 255, 0.035);
}

.player-profile-status b {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.player-team-card {
  max-width: 780px;
}

.player-profile-summary {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
}

.player-profile-label {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.player-profile-summary h2 {
  margin: 0;
  color: var(--text);
  font-size: 32px;
  line-height: 1.16;
}

.player-profile-team {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 15px;
}

.player-profile-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  gap: 8px;
  min-width: 0;
}

.player-profile-facts span {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  overflow-wrap: anywhere;
  background: rgba(255, 255, 255, 0.035);
}

.player-profile-facts b,
.player-sensitive-note b {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.player-section-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.player-section-tabs button {
  min-width: 0;
  min-height: 50px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--surface);
  overflow-wrap: anywhere;
}

.player-section-tabs button:hover:not(:disabled) {
  border-color: rgba(255, 122, 24, 0.3);
  color: var(--text);
  background: rgba(255, 122, 24, 0.08);
  transform: none;
}

.player-section-tabs button.active {
  border-color: rgba(255, 122, 24, 0.42);
  color: var(--text);
  background: rgba(255, 122, 24, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 122, 24, 0.2);
}

.player-sections-shell {
  min-width: 0;
  min-height: 420px;
  overflow-anchor: none;
}

.player-section-panel {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.player-panel-head h3 {
  margin: 0 0 5px;
  color: var(--text);
  font-size: 20px;
}

.player-panel-head p {
  margin: 0;
  color: var(--muted);
}

.player-attendance-history {
  display: grid;
  gap: 8px;
}

.player-panel-subhead {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-top: 4px;
}

.player-panel-subhead h4,
.player-panel-subhead p {
  margin: 0;
}

.player-panel-subhead h4 {
  color: var(--text);
  font-size: 16px;
}

.player-panel-subhead p {
  color: var(--muted);
  font-size: 13px;
}

.player-attendance-history > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

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

.player-attendance-history b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-attendance-history small {
  color: var(--muted);
}

.player-attendance-history i {
  flex: 0 0 auto;
  font-style: normal;
}

.attendance-empty-state {
  padding: 22px 16px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  text-align: center;
}

.attendance-empty-state p {
  margin: 0;
  color: var(--muted);
}

.player-sensitive-note {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid rgba(255, 181, 71, 0.2);
  border-radius: 12px;
  background: rgba(255, 181, 71, 0.06);
}

.player-sensitive-note p,
.player-sensitive-note small {
  margin: 0;
}

.player-sensitive-note small {
  color: var(--muted);
}

.private-note-form {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.private-note-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.private-note-actions small {
  color: var(--muted);
  line-height: 1.45;
}

.legacy-private-note {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.legacy-private-note b {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.legacy-private-note p,
.legacy-private-note small {
  margin: 0;
}

.legacy-private-note small {
  color: var(--muted);
}

.private-notes-history {
  display: grid;
  gap: 10px;
}

.player-panel-head.compact h3 {
  font-size: 17px;
}

.private-note-item {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.private-note-item time {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.private-note-item p {
  margin: 0;
  color: var(--text);
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.progress-type-switch {
  display: flex;
  gap: 8px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.progress-type-switch button {
  flex: 1 1 0;
  min-height: 44px;
  border: 1px solid transparent;
  color: var(--muted);
  background: transparent;
}

.progress-type-switch button:hover:not(:disabled),
.progress-type-switch button.active {
  transform: none;
  color: var(--text);
  border-color: rgba(255, 122, 24, 0.38);
  background: rgba(255, 122, 24, 0.12);
}

.progress-overview {
  display: grid;
  gap: 14px;
}

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

.progress-summary-grid span {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
}

.progress-summary-grid b {
  color: var(--text);
  font-size: 20px;
}

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

.progress-discipline-card {
  display: grid;
  gap: 11px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.progress-discipline-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.progress-discipline-head h4 {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 16px;
}

.progress-discipline-head small,
.progress-result-summary small,
.progress-points small {
  color: var(--muted);
}

.progress-result-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.progress-result-summary span {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
}

.progress-result-summary b {
  color: var(--text);
  overflow-wrap: anywhere;
}

.progress-sparkline {
  display: block;
  width: 100%;
  height: 88px;
  overflow: visible;
}

.progress-sparkline polyline {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.progress-sparkline circle {
  fill: var(--accent);
  stroke: var(--surface);
  stroke-width: 2;
}

.progress-single-point,
.progress-empty-state {
  padding: 18px 12px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  text-align: center;
}

.progress-empty-state p,
.progress-delta {
  margin: 0;
}

.progress-delta {
  color: var(--muted);
  font-size: 13px;
}

.progress-points {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.progress-points span {
  display: grid;
  flex: 0 0 auto;
  gap: 3px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.progress-points b {
  color: var(--text);
  font-size: 13px;
}

.progress-message-panel,
.progress-message-history,
.player-message-list,
.player-notifications-stage,
.player-notification-list {
  display: grid;
  gap: 12px;
}

.progress-message-panel {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.progress-message-form {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.progress-message-form label {
  display: grid;
  gap: 7px;
}

.progress-message-item,
.player-message-item,
.player-notification-item {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.player-message-item.unread {
  border-color: rgba(255, 122, 24, 0.4);
  background: rgba(255, 122, 24, 0.08);
}

.player-notification-item.unread {
  border-color: rgba(255, 122, 24, 0.4);
  background: rgba(255, 122, 24, 0.08);
}

.notifications-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
}

.notifications-actions b {
  color: var(--text);
}

.notification-type {
  color: var(--accent);
  font-weight: 700;
}

.progress-message-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.progress-message-head span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.progress-message-head h3,
.progress-message-head b,
.progress-message-item p,
.player-message-item p,
.player-notification-item p {
  margin: 0;
  overflow-wrap: anywhere;
}

.progress-message-head time,
.message-sender {
  color: var(--muted);
  font-size: 12px;
}

.progress-message-item p,
.player-message-item p,
.player-notification-item p {
  white-space: pre-wrap;
  line-height: 1.5;
}

.attendance-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 220px minmax(220px, 1fr);
  gap: 14px;
  align-items: end;
}

.quick-attendance-form {
  gap: 10px;
}

.quick-attendance-help {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-color: rgba(255, 122, 24, 0.18);
  background: rgba(255, 122, 24, 0.08);
}

.quick-attendance-help span {
  color: var(--muted);
}

.quick-attendance-row {
  grid-template-columns: minmax(260px, 1fr) minmax(220px, 420px);
  align-items: center;
  border-color: rgba(255, 255, 255, 0.08);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.quick-attendance-row.status-present {
  border-color: rgba(53, 211, 154, 0.36);
  background: linear-gradient(135deg, rgba(53, 211, 154, 0.18), rgba(255, 255, 255, 0.035)), var(--surface);
}

.quick-attendance-row.status-late {
  border-color: rgba(255, 200, 87, 0.42);
  background: linear-gradient(135deg, rgba(255, 200, 87, 0.2), rgba(255, 255, 255, 0.035)), var(--surface);
}

.attendance-player-toggle {
  display: grid;
  justify-content: stretch;
  gap: 5px;
  min-height: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  text-align: left;
}

.attendance-player-toggle:hover:not(:disabled) {
  transform: none;
}

.attendance-player-toggle > span {
  color: var(--text);
  font-size: 17px;
  font-weight: 800;
}

.attendance-player-toggle i {
  width: fit-content;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.status-present .attendance-player-toggle i {
  color: #b9ffe5;
  background: rgba(53, 211, 154, 0.18);
}

.status-late .attendance-player-toggle i {
  color: #ffe4a8;
  background: rgba(255, 200, 87, 0.18);
}

.homework-toolbar {
  grid-template-columns: minmax(220px, 1.2fr) repeat(3, minmax(160px, 1fr));
}

.homework-grid .homework-card {
  display: grid;
  gap: 12px;
}

.homework-card strong {
  color: var(--ice);
  font-size: 28px;
}

.homework-player-picker {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

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

.checkbox-card {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.checkbox-card input {
  width: auto;
}

.homework-detail-hero {
  display: grid;
  gap: 12px;
}

.homework-assignment-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.homework-player-row {
  display: grid;
  gap: 14px;
}

.badge.homework-type-technique,
.badge.homework-type-video {
  color: #c8f6ff;
  background: rgba(255, 122, 24, 0.14);
}

.badge.homework-type-physical,
.badge.homework-type-stretching,
.badge.homework-type-recovery {
  color: #b9ffe5;
  background: rgba(53, 211, 154, 0.14);
}

.badge.homework-type-theory {
  color: #ead8ff;
  background: rgba(186, 126, 255, 0.16);
}

.badge.homework-type-nutrition {
  color: #ffe4a8;
  background: rgba(255, 200, 87, 0.16);
}

.badge.homework-type-other {
  color: #d6e6f7;
  background: rgba(255, 255, 255, 0.08);
}

.badge.homework-status-assigned {
  color: #d6e6f7;
  background: rgba(255, 255, 255, 0.08);
}

.badge.homework-status-in_progress {
  color: #c8f6ff;
  background: rgba(255, 122, 24, 0.14);
}

.badge.homework-status-completed,
.badge.homework-status-reviewed {
  color: #b9ffe5;
  background: rgba(53, 211, 154, 0.14);
}

.badge.homework-status-overdue {
  color: #ffd5dc;
  background: rgba(255, 83, 104, 0.16);
}

.normative-toolbar {
  grid-template-columns: repeat(4, minmax(180px, 1fr));
}

.normative-mode-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.normative-mode-cards .card {
  border-color: rgba(255, 255, 255, 0.08);
  min-height: auto;
  padding: 16px;
  text-align: left;
}

.normative-mode-cards .card.active {
  border-color: rgba(255, 122, 24, 0.38);
  background: rgba(255, 122, 24, 0.08);
}

.discipline-check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.discipline-check-grid label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.discipline-check-grid input {
  width: 18px;
  min-height: 18px;
}

.discipline-check-grid span {
  display: grid;
  gap: 2px;
}

.discipline-check-grid small {
  color: var(--muted);
}

.normative-plan-list {
  margin-bottom: 16px;
}

.normative-plan-table-form {
  overflow: hidden;
  margin-bottom: 16px;
}

.badge.normative-status-planned {
  color: #d6e6f7;
  background: rgba(255, 255, 255, 0.08);
}

.badge.normative-status-in_progress {
  color: #ffd89a;
  background: rgba(255, 181, 71, 0.15);
}

.badge.normative-status-completed {
  color: #b9f5c3;
  background: rgba(101, 209, 122, 0.15);
}

.normative-team-form {
  overflow: hidden;
}

.normative-team-table {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.normative-team-header,
.normative-team-row {
  display: grid;
  gap: 8px;
  min-width: max-content;
  align-items: center;
}

.normative-team-header {
  padding: 0 10px 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.normative-team-header span {
  display: grid;
  gap: 2px;
}

.normative-team-header small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

.normative-team-row {
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.normative-team-row label {
  display: grid;
  grid-template-columns: minmax(76px, 1fr) auto;
  gap: 6px;
  align-items: center;
}

.normative-table {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.normative-row {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) 140px minmax(180px, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.normative-result-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.normative-result-item {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 100px 100px auto;
  gap: 10px;
  align-items: center;
}

.badge.normative-passed {
  color: #b9ffe5;
  background: rgba(53, 211, 154, 0.14);
}

.badge.normative-failed {
  color: #ffd5dc;
  background: rgba(255, 83, 104, 0.16);
}

.badge.normative-empty {
  color: #d6e6f7;
  background: rgba(255, 255, 255, 0.08);
}

.badge.normative-category-ofp {
  color: #c8f6ff;
  background: rgba(255, 122, 24, 0.14);
}

.badge.normative-category-sfp {
  color: #ead8ff;
  background: rgba(186, 126, 255, 0.16);
}

.compact-table {
  display: grid;
  gap: 8px;
}

.compact-table-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(4, minmax(110px, auto));
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.trend-list span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.badge.attendance-present {
  color: #b9ffe5;
  background: rgba(53, 211, 154, 0.14);
}

.badge.attendance-absent {
  color: #ffd5dc;
  background: rgba(255, 83, 104, 0.16);
}

.badge.attendance-late {
  color: #ffe4a8;
  background: rgba(255, 200, 87, 0.16);
}

.badge.attendance-injured {
  color: #ead8ff;
  background: rgba(186, 126, 255, 0.16);
}

.badge.attendance-excused {
  color: #c8f6ff;
  background: rgba(255, 122, 24, 0.14);
}

.badge.attendance-none {
  color: #d6e6f7;
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 980px) {
  .auth-page,
  .shell {
    grid-template-columns: 1fr;
  }

  .start-page {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .start-page .hero,
  .start-page .auth-panel {
    min-height: auto;
  }

  .start-page .hero {
    padding: 28px 24px 12px;
  }

  .start-page .auth-panel {
    justify-content: center;
    padding: 14px 24px 30px;
  }

  .auth-shell,
  .auth-shell.register-open {
    grid-template-columns: minmax(0, 1fr);
    width: min(620px, 100%);
  }

  .auth-side-card {
    align-content: start;
  }

  .shell {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .sidebar {
    position: static;
    min-height: auto;
    overflow: visible;
  }

  .nav {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .hero h1 {
    font-size: 36px;
  }

  .content {
    min-height: auto;
    overflow: visible;
    overscroll-behavior: auto;
    padding: 18px;
  }

  .calendar-toolbar,
  .calendar-head,
  .event-card,
  .coach-reminder-row,
  .exercise-toolbar,
  .homework-toolbar,
  .normative-toolbar,
  .plan-item,
  .plan-edit,
  .attendance-row,
  .homework-assignment-row,
  .normative-row,
  .normative-result-item,
  .compact-table-row {
    grid-template-columns: 1fr;
  }

  .coach-week-grid {
    grid-template-columns: 1fr;
  }

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

  .calendar-layout {
    grid-template-columns: 1fr;
  }

  .selected-day {
    min-height: 220px;
  }

  .calendar-nav {
    flex-wrap: wrap;
  }

  .week-grid {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .week-day {
    min-width: 150px;
  }
}

@media (max-width: 680px) {
  .form-grid,
  .stats,
  .mini-stats,
  .player-list-row {
    grid-template-columns: 1fr;
  }

  .topbar,
  .section-header,
  .card-title {
    align-items: stretch;
    flex-direction: column;
  }

  .auth-panel,
  .hero {
    padding: 22px;
  }

  .start-page .hero {
    padding: 24px 18px 10px;
  }

  .start-page .auth-panel {
    padding: 10px 18px 24px;
  }

  .start-page .hero h1 {
    font-size: 30px;
    line-height: 1.08;
  }

  .start-page .hero p {
    font-size: 14px;
  }

  .hero-benefits {
    gap: 8px;
  }

  .hero-benefits span {
    min-height: 30px;
    padding: 0 10px;
    font-size: 11px;
  }

  .auth-card-head h2 {
    font-size: 24px;
  }

  .brand-wordmark {
    font-size: 26px;
  }

  .start-brand-logo {
    width: min(300px, 78vw);
    max-height: 128px;
    margin-bottom: 2px;
  }

  .auth-shell {
    gap: 10px;
  }

  .auth-side-card {
    padding: 16px;
  }

  .auth-side-card h3 {
    font-size: 18px;
  }

  .auth-side-card button,
  .auth-back-row button {
    width: 100%;
  }

  .month-grid {
    grid-auto-rows: 72px;
    gap: 1px;
  }

  .day-cell {
    height: 72px;
    min-height: 72px;
    padding: 6px;
  }

  .day-cell .calendar-event {
    width: 6px;
    min-height: 6px;
    font-size: 0;
  }

  .day-cell .calendar-event b {
    display: none;
  }

  .day-cell .calendar-event i {
    width: 6px;
    height: 6px;
  }

  .calendar-detail {
    grid-template-columns: 1fr;
  }

  .calendar-head,
  .calendar-toolbar {
    padding: 10px;
  }

  .calendar-nav strong {
    min-width: 100%;
    order: -1;
    margin-bottom: 4px;
  }
}

/* Premium dark hockey theme overrides */
.sidebar {
  background:
    linear-gradient(180deg, rgba(5, 11, 16, 0.98), rgba(7, 16, 23, 0.98)),
    var(--sidebar);
  border-right-color: rgba(255, 255, 255, 0.08);
}

.nav button {
  position: relative;
  color: var(--sidebar-foreground);
  border: 1px solid transparent;
  border-radius: 14px;
}

.nav button:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

.nav button.active {
  color: var(--sidebar-active-foreground);
  background: var(--sidebar-active);
  border-color: rgba(255, 122, 24, 0.32);
  box-shadow: inset 3px 0 0 var(--accent), 0 12px 28px rgba(255, 122, 24, 0.08);
}

.nav-unread-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin-left: auto;
  padding: 0 7px;
  border-radius: 999px;
  color: #081218;
  background: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.topbar,
.card,
.stat,
.empty-state,
.chart-card,
.calendar-toolbar,
.calendar-head,
.calendar-board,
.coach-home-card {
  border-color: var(--line);
  border-radius: 18px;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(19, 33, 42, 0.96), rgba(13, 24, 32, 0.96)),
    var(--card);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.card:hover,
.stat:hover {
  border-color: rgba(255, 122, 24, 0.22);
}

.topbar,
.auth-card {
  border-radius: 20px;
}

.hero {
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 122, 24, 0.16), transparent 28%),
    linear-gradient(135deg, rgba(5, 11, 16, 0.98), rgba(13, 24, 32, 0.94));
}

.eyebrow,
.coach-week-event time,
.calendar-event time {
  color: var(--accent);
}

.tabs button,
.role-switch button,
.filter-button,
.segmented button,
.board-toolbar button {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tabs button.active,
.role-switch button.active,
.filter-button.active,
.segmented button.active,
.board-toolbar button.active {
  color: #081218;
  background: var(--accent);
  border-color: rgba(255, 122, 24, 0.55);
  box-shadow: 0 12px 26px rgba(255, 122, 24, 0.18);
}

.notice,
.invite-code-box,
.empty-state {
  border-color: rgba(255, 122, 24, 0.24);
  background:
    linear-gradient(135deg, rgba(255, 122, 24, 0.1), rgba(255, 255, 255, 0.03)),
    var(--surface);
}

.invite-code-box strong {
  color: #ffd9bd;
  border-color: rgba(255, 122, 24, 0.35);
  background: rgba(255, 122, 24, 0.1);
}

.badge {
  color: #dce6ee;
  background: rgba(255, 255, 255, 0.08);
}

.badge.pending,
.badge.normative-empty,
.badge.attendance-late,
.badge.homework-status-overdue {
  color: #ffd89a;
  background: rgba(255, 181, 71, 0.15);
}

.badge.accepted,
.badge.normative-passed,
.badge.attendance-present,
.badge.homework-status-reviewed,
.badge.homework-status-completed {
  color: #b9f5c3;
  background: rgba(101, 209, 122, 0.15);
}

.badge.rejected,
.badge.cancelled,
.badge.normative-failed,
.badge.attendance-absent {
  color: #ffb8b8;
  background: rgba(255, 92, 92, 0.16);
}

.badge.neutral {
  color: #cbd5df;
  background: rgba(255, 255, 255, 0.08);
}

.coach-home-card .empty-state,
.coach-reminder-row,
.coach-week-day,
.coach-week-event {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.coach-reminder-row b,
.coach-week-event b,
.coach-week-day-head {
  color: var(--text);
}

.coach-reminder-row span,
.coach-reminder-row p,
.coach-week-event span,
.coach-week-events p,
.coach-week-day-head span {
  color: var(--muted);
}

.coach-week-day.today,
.day-cell.today,
.week-day.today,
.day-cell.selected,
.week-day.selected {
  border-color: rgba(255, 122, 24, 0.55);
  background: rgba(255, 122, 24, 0.08);
}

.day-cell,
.week-day {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}

.day-cell:hover,
.week-day:hover {
  border-color: rgba(255, 122, 24, 0.35);
  background: rgba(255, 122, 24, 0.07);
}

.calendar-event i,
.subtype-ice i,
.subtype-off_ice i,
.subtype-theory i,
.subtype-game i,
.subtype-other i {
  background: var(--accent);
}

.calendar-toolbar {
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  align-items: start;
}

.calendar-head {
  align-items: center;
  gap: 16px;
}

.calendar-nav {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.calendar-board {
  min-width: 0;
  margin-bottom: 0;
  padding: 14px;
}

.calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 12px;
  align-items: start;
}

.calendar-weekdays {
  margin-bottom: 8px;
}

.month-grid {
  grid-auto-rows: 118px;
  gap: 8px;
}

.day-cell,
.week-day {
  border-radius: 16px;
  border-color: rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(26, 42, 52, 0.78), rgba(13, 24, 32, 0.78));
}

.day-cell {
  height: 118px;
  min-height: 118px;
  overflow: hidden;
  padding: 10px;
}

.day-cell > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.day-cell.today > span {
  color: #081218;
  background: var(--accent);
}

.week-grid {
  gap: 10px;
}

.week-day {
  display: grid;
  align-content: start;
  gap: 10px;
  height: 360px;
  min-height: 360px;
  overflow: hidden;
  padding: 10px;
}

.week-day-head-button {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 8px;
  color: inherit;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 12px;
}

.week-day-head-button:hover {
  background: rgba(255, 255, 255, 0.05);
}

.week-day-head-button b {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.week-day-head-button strong {
  color: var(--text);
  font-size: 17px;
}

.week-day-events {
  display: grid;
  align-content: start;
  gap: 8px;
  max-height: 292px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.calendar-event-card {
  display: grid;
  gap: 3px;
  width: 100%;
  min-height: 76px;
  padding: 10px;
  color: var(--text);
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 3px 0 0 var(--event-accent, var(--accent)), 0 10px 24px rgba(0, 0, 0, 0.14);
}

.calendar-event-card:hover {
  border-color: rgba(255, 122, 24, 0.28);
  background: rgba(255, 255, 255, 0.065);
}

.calendar-event-card time {
  color: var(--event-accent, var(--accent));
  font-size: 12px;
  font-weight: 900;
}

.calendar-event-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.calendar-event-card strong {
  color: var(--text);
  font-size: 13px;
}

.calendar-event-card em,
.calendar-event em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.event-card-training,
.calendar-event-training {
  --event-accent: #ff7a18;
}

.event-card-game,
.calendar-event-game {
  --event-accent: #ff5c5c;
}

.event-card-theory,
.calendar-event-theory {
  --event-accent: #60a5fa;
}

.event-card-meeting,
.calendar-event-meeting {
  --event-accent: #a78bfa;
}

.event-card-online_session,
.calendar-event-online_session {
  --event-accent: #22d3b6;
}

.event-card-other,
.calendar-event-other {
  --event-accent: #a9b4be;
}

.calendar-event i,
.calendar-event-training i,
.calendar-event-game i,
.calendar-event-theory i,
.calendar-event-meeting i,
.calendar-event-online_session i,
.calendar-event-other i {
  background: var(--event-accent, var(--accent));
}

.calendar-event {
  padding: 3px 0;
}

.calendar-event span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.online-session-access {
  display: grid;
  align-items: start;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(34, 211, 182, 0.2);
  border-radius: 12px;
  background: rgba(34, 211, 182, 0.06);
}

.online-session-access span {
  color: var(--muted);
  font-size: 12px;
}

.online-session-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.video-status-badge {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.video-status-badge.status-planned {
  border-color: rgba(169, 180, 190, 0.25);
  color: #d4dee6;
  background: rgba(169, 180, 190, 0.1);
}

.video-status-badge.status-active {
  border-color: rgba(34, 211, 182, 0.32);
  color: #56edd1;
  background: rgba(34, 211, 182, 0.12);
}

.video-status-badge.status-ended {
  border-color: rgba(148, 163, 184, 0.22);
  color: #a9b4be;
  background: rgba(148, 163, 184, 0.08);
}

.video-status-badge.compact {
  min-height: 18px;
  padding: 2px 6px;
  font-size: 10px;
}

.calendar-event .video-status-badge {
  flex: 0 0 auto;
  margin-left: auto;
}

.calendar-event-card .video-status-badge {
  align-self: start;
}

.online-session-access button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.active-session-area {
  display: grid;
  gap: 14px;
  margin: 0 0 18px;
}

.video-room-panel {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  border-color: rgba(34, 211, 182, 0.24);
  background:
    linear-gradient(180deg, rgba(18, 34, 42, 0.98), rgba(10, 20, 27, 0.98)),
    var(--card);
}

.video-room-panel.video-panel-top {
  margin-top: 0;
}

.online-theory-workspace {
  position: relative;
}

.video-room-panel .notice {
  overflow-wrap: anywhere;
}

.video-room-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 14px;
}

.video-room-header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.video-room-header h2 {
  margin: 4px 0;
}

.video-room-header p {
  margin: 0;
  color: var(--muted);
}

.video-room-content {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 16px;
  align-items: start;
}

.online-theory-layout {
  grid-template-columns: minmax(0, 1.18fr) minmax(330px, 0.82fr);
  gap: 14px;
}

.online-room--coach .coach-large-board-layout {
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.online-room--coach .online-theory-video-panel {
  max-width: 980px;
}

.online-room--coach .livekit-compact-panel {
  grid-column: auto;
}

.online-room-ended-state {
  display: grid;
  gap: 6px;
}

.online-room-ended-state strong {
  color: var(--text);
}

.online-room-ended-state span {
  color: var(--muted);
}

.online-room-standalone {
  margin-bottom: 0;
}

.online-room-lobby {
  display: grid;
  gap: 12px;
}

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

.online-room-card {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(7, 16, 23, 0.36);
}

.online-room-card > div {
  min-width: 0;
}

.online-room-card h3,
.online-room-card p {
  overflow-wrap: anywhere;
}

.compact-title {
  gap: 10px;
  margin-bottom: 0;
}

.active-video-layout {
  min-width: 0;
}

.video-room-media,
.video-live-board-panel,
.online-theory-video-panel,
.livekit-compact-panel {
  min-width: 0;
}

.online-theory-video-panel,
.livekit-compact-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(34, 211, 182, 0.18);
  border-radius: 10px;
  background: rgba(7, 16, 23, 0.58);
}

.online-theory-video-panel {
  align-self: stretch;
}

.player-video-sync-note {
  align-self: start;
}

.player-video-sync-note .video-live-board-header p {
  max-width: 56ch;
}

.theory-video-sync-panel {
  display: grid;
  gap: 8px;
}

.theory-video-sync-panel p {
  margin: 0;
  color: var(--muted);
}

.coach-video-status {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(34, 211, 182, 0.24);
  border-radius: 999px;
  color: var(--text);
  background: rgba(34, 211, 182, 0.08);
  font-size: 13px;
  font-weight: 800;
}

.player-video-clean {
  gap: 0;
}

.shared-video-stage {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #071017;
}

.player-locked-video {
  pointer-events: none;
}

.video-unlock-button {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

.shared-match-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #071017;
}

.online-theory-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.online-theory-actions button,
.online-theory-actions .file-button {
  min-height: 36px;
  padding: 8px 12px;
}

.file-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
}

.file-button:hover {
  border-color: rgba(34, 211, 182, 0.42);
}

/* Package 45: safe visual polish before demo. Visual-only refinements. */
body {
  overflow-x: hidden;
}

.content,
.card,
.empty-state,
.stat,
.calendar-toolbar,
.calendar-head,
.calendar-board,
.calendar-layout,
.event-card,
.online-theory-workspace,
.online-room-card,
.player-home-card,
.player-profile-hero,
.player-detail-card,
.player-message-item,
.player-notification-item,
.progress-message-item,
.homework-card {
  min-width: 0;
}

.card,
.empty-state,
.calendar-toolbar,
.calendar-head,
.calendar-board,
.online-theory-video-panel,
.livekit-compact-panel,
.player-message-item,
.player-notification-item,
.progress-message-item {
  border-color: rgba(255, 255, 255, 0.1);
}

.card-title h3,
.section-header h2,
.player-home-main h2,
.player-profile-summary h2,
.video-room-header h2 {
  overflow-wrap: anywhere;
}

.card-title p,
.section-header p,
.empty-state p,
.video-room-header p,
.online-room-card p {
  max-width: 72ch;
}

.empty-state {
  padding: clamp(18px, 3vw, 28px);
}

.empty-state h3 {
  line-height: 1.2;
}

.empty-state p {
  line-height: 1.5;
}

.player-avatar {
  aspect-ratio: 1;
  overflow: hidden;
}

img.player-avatar {
  display: block;
  object-fit: cover;
}

.player-home-card,
.player-profile-hero {
  align-items: center;
}

.player-profile-facts span,
.player-detail-grid span,
.mini-stats span {
  overflow-wrap: anywhere;
}

.player-list-row {
  min-width: 0;
}

.player-list-row > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.calendar-event,
.calendar-event-card,
.calendar-detail {
  min-width: 0;
}

.calendar-event,
.calendar-event-card {
  box-shadow: none;
}

.calendar-event b,
.calendar-event-card strong {
  line-height: 1.2;
}

.calendar-detail-actions,
.video-room-header-actions,
.online-theory-actions,
.notifications-actions,
.private-note-actions {
  min-width: 0;
}

.online-theory-actions button,
.online-theory-actions .file-button,
.video-room-header-actions button,
.calendar-detail-actions button {
  white-space: normal;
}

.online-theory-video-panel,
.livekit-compact-panel,
.shared-video-stage,
.match-video-stage {
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.player-message-item,
.player-notification-item,
.progress-message-item,
.training-note-item {
  line-height: 1.45;
}

.photo-upload-button {
  text-align: center;
}

/* Package 46: visual design perfection pass. CSS-only, no behavior changes. */
:root {
  --surface-muted: rgba(255, 255, 255, 0.045);
  --surface-raised: rgba(19, 33, 42, 0.9);
  --border-soft: rgba(255, 255, 255, 0.1);
  --border-bright: rgba(255, 255, 255, 0.16);
  --primary-hover: #ff8f33;
  --success: #35d39a;
  --warning: #ffc857;
  --text-main: var(--text);
  --text-muted: var(--muted);
  --focus-ring: 0 0 0 3px rgba(255, 122, 24, 0.26);
}

button,
.button-link,
.file-button,
.photo-upload-button {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
.button-link:focus-visible,
.file-button:focus-visible,
.photo-upload-button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(255, 122, 24, 0.72);
  outline-offset: 2px;
  box-shadow: var(--focus-ring);
}

button.primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--primary-hover), var(--accent));
  box-shadow: 0 16px 34px rgba(255, 122, 24, 0.28);
}

button.secondary:hover:not(:disabled),
.file-button:hover,
.photo-upload-button:hover {
  border-color: rgba(255, 122, 24, 0.32);
  background: rgba(255, 122, 24, 0.1);
}

button.danger:hover:not(:disabled) {
  border-color: rgba(255, 92, 92, 0.52);
  background: rgba(255, 92, 92, 0.16);
}

input::placeholder,
textarea::placeholder {
  color: rgba(169, 180, 190, 0.72);
}

input:disabled,
select:disabled,
textarea:disabled {
  color: rgba(169, 180, 190, 0.68);
  background: rgba(255, 255, 255, 0.035);
}

label,
.toolbar-label,
.eyebrow {
  line-height: 1.35;
}

.card,
.stat,
.empty-state,
.calendar-toolbar,
.calendar-head,
.calendar-board,
.coach-home-card,
.online-theory-video-panel,
.livekit-compact-panel,
.player-message-item,
.player-notification-item,
.progress-message-item,
.progress-discipline-card,
.progress-summary-grid span,
.progress-result-summary span {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.038), rgba(255, 255, 255, 0.018)),
    var(--surface-raised);
}

.card,
.stat,
.empty-state,
.calendar-toolbar,
.calendar-head,
.calendar-board,
.online-room-card,
.player-list-row,
.compact-table-row,
.normative-row,
.normative-team-row,
.quick-attendance-row,
.homework-assignment-row,
.player-assignment-row,
.player-message-item,
.player-notification-item,
.progress-message-item {
  border-color: var(--border-soft);
}

.card-title,
.section-header,
.topbar,
.video-room-header,
.progress-discipline-head,
.progress-message-head {
  min-width: 0;
}

.topbar h1,
.section-header h2 {
  line-height: 1.12;
}

.card h3,
.empty-state h3,
.progress-discipline-head h4,
.online-room-card h3 {
  line-height: 1.2;
}

.muted,
.meta,
.card-title p,
.section-header p,
.topbar p,
.empty-state p,
.video-room-header p,
.theory-video-sync-panel p {
  color: var(--text-muted);
}

.badge {
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  line-height: 1;
}

.badge.pending,
.badge.homework-status-overdue,
.badge.attendance-late,
.badge.normative-empty {
  border-color: rgba(255, 200, 87, 0.18);
}

.badge.accepted,
.badge.homework-status-completed,
.badge.homework-status-reviewed,
.badge.attendance-present,
.badge.normative-passed {
  border-color: rgba(53, 211, 154, 0.2);
}

.badge.rejected,
.badge.cancelled,
.badge.attendance-absent,
.badge.normative-failed {
  border-color: rgba(255, 83, 104, 0.22);
}

.player-avatar {
  box-shadow: inset 0 0 0 3px rgba(255, 122, 24, 0.06), 0 10px 24px rgba(0, 0, 0, 0.22);
}

.player-avatar-placeholder {
  background:
    radial-gradient(circle at 32% 22%, rgba(255, 255, 255, 0.16), transparent 32%),
    linear-gradient(145deg, rgba(255, 122, 24, 0.22), rgba(255, 122, 24, 0.08));
}

.player-home-card,
.player-profile-hero,
.player-detail-card {
  border-color: var(--border-bright);
}

.player-profile-facts span,
.player-profile-status,
.player-detail-grid span,
.mini-stats span,
.progress-summary-grid span,
.progress-result-summary span {
  border-color: rgba(255, 255, 255, 0.09);
}

.calendar-event,
.calendar-event-card {
  border-radius: 8px;
}

.day-cell,
.week-day {
  border-radius: 8px;
}

.day-cell.selected,
.week-day.selected {
  box-shadow: inset 0 0 0 1px rgba(255, 122, 24, 0.22);
}

.calendar-detail {
  border-radius: 10px;
}

.player-list-row,
.quick-attendance-row,
.normative-row,
.normative-team-row,
.compact-table-row,
.homework-assignment-row,
.player-assignment-row {
  border-radius: 10px;
}

.player-list-row:hover,
.quick-attendance-row:hover,
.normative-row:hover,
.normative-team-row:hover,
.compact-table-row:hover {
  border-color: rgba(255, 122, 24, 0.24);
  background: rgba(255, 122, 24, 0.055);
}

.online-theory-video-panel,
.livekit-compact-panel,
.online-room-card,
.shared-video-stage,
.match-video-stage {
  border-color: rgba(34, 211, 182, 0.18);
}

.online-theory-actions,
.video-room-header-actions,
.video-room-controls,
.calendar-detail-actions {
  align-items: center;
}

.progress-sparkline {
  filter: drop-shadow(0 8px 14px rgba(255, 122, 24, 0.12));
}

.progress-points {
  scrollbar-width: thin;
}

.progress-single-point,
.progress-empty-state,
.attendance-empty-state {
  background: rgba(255, 255, 255, 0.025);
}

.notifications-actions,
.progress-message-form,
.recent-notes-list div,
.training-note-item,
.private-note-item {
  border-color: var(--border-soft);
  background: rgba(255, 255, 255, 0.035);
}

.start-page .auth-card {
  border-color: rgba(255, 255, 255, 0.2);
}

.start-page .hero-benefits span {
  border-color: rgba(255, 255, 255, 0.18);
}

@media (max-width: 560px) {
  .topbar h1 {
    font-size: 25px;
  }

  .section-header h2,
  .video-room-header h2 {
    font-size: 22px;
  }

  .card-title {
    gap: 9px;
  }

  .badge {
    min-height: 26px;
    max-width: 100%;
    white-space: normal;
  }

  .player-avatar-large,
  .player-avatar-large.player-avatar-placeholder {
    width: 96px;
    height: 96px;
    font-size: 30px;
  }

  .player-profile-facts,
  .player-detail-grid,
  .mini-stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .progress-summary-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.content > * {
  min-width: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.match-video-stage {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #071017;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

.match-video-stage.has-video {
  aspect-ratio: 16 / 9;
  min-height: 0;
}

.match-analysis-video,
.match-video-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.match-analysis-video {
  object-fit: contain;
  background: #071017;
}

.match-video-canvas {
  z-index: 2;
  pointer-events: none;
}

.match-video-canvas.active {
  pointer-events: auto;
  cursor: crosshair;
}

.match-video-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 8px;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.match-video-placeholder strong {
  color: var(--text);
}

.livekit-compact-panel {
  grid-column: 1 / -1;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(7, 16, 23, 0.42);
}

.video-room-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(120px, 160px));
  gap: 8px;
}

.video-room-grid.compact .video-room-tile {
  border-radius: 10px;
}

.video-room-controls.compact {
  margin-top: 0;
  gap: 8px;
}

.video-room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.video-room-tile {
  position: relative;
  min-width: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #071017;
}

.video-room-tile video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #071017;
}

.video-room-tile.no-video::before {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  color: var(--muted);
  font-size: 13px;
  content: "Камера выключена";
}

.video-room-tile span {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 5px 8px;
  border-radius: 8px;
  color: var(--text);
  background: rgba(5, 12, 17, 0.74);
  font-size: 12px;
}

.video-room-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.video-room-empty {
  min-height: 96px;
  display: grid;
  place-content: center;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  text-align: center;
}

.video-live-board-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(34, 211, 182, 0.18);
  border-radius: 14px;
  background: rgba(7, 16, 23, 0.5);
}

.live-board-panel {
  overflow: visible;
}

.coach-live-board-large {
  gap: 14px;
  padding: 16px;
  border-color: rgba(34, 211, 182, 0.24);
  background: rgba(7, 16, 23, 0.64);
}

.coach-live-board-large .online-session-actions {
  gap: 8px;
}

.coach-live-board-large .live-board-preview {
  gap: 12px;
}

.coach-live-board-large .tactical-board-section {
  width: 100%;
}

.coach-live-board-large .tactical-board-section.compact {
  padding: 0;
}

.coach-live-board-large .tactical-board {
  width: 100%;
  max-width: none;
  min-height: clamp(460px, 58vw, 760px);
  border-radius: 14px;
}

.coach-live-board-large .tactical-board.rink-full {
  aspect-ratio: 16 / 9;
  min-height: auto;
}

.coach-live-board-large .tactical-board.rink-half {
  width: min(100%, 980px);
  min-height: auto;
  margin-inline: auto;
}

.coach-live-board-large .board-toolbar {
  gap: 8px;
  padding: 10px;
}

.video-live-board-header h3 {
  margin: 4px 0;
}

.video-live-board-header p,
.muted-note {
  margin: 0;
  color: var(--muted);
}

.live-board-sync-status {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 5px 8px;
  border: 1px solid rgba(34, 211, 182, 0.24);
  border-radius: 8px;
  color: #bff7ed;
  background: rgba(34, 211, 182, 0.1);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.live-board-sync-status.fallback,
.live-board-sync-status.error {
  color: #ffe4a8;
  border-color: rgba(255, 200, 87, 0.28);
  background: rgba(255, 200, 87, 0.1);
}

.live-board-preview {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.live-board-preview .tactical-board {
  width: 100%;
  max-width: 100%;
  position: relative;
}

.live-board-preview .tactical-board.rink-full {
  aspect-ratio: 16 / 9;
}

.live-board-preview .tactical-board.rink-half {
  aspect-ratio: 9 / 7;
}

.live-board-preview .piece-layer,
.live-board-preview .arrow-layer,
.live-board-preview .rink-layer {
  inset: 0;
}

.live-board-preview h4 {
  margin: 0;
}

.live-board-preview .tactical-board-section {
  margin: 0;
}

.live-board-preview .tactical-board-section.compact {
  padding: 0;
}

.live-board-preview .section-header {
  display: none;
}

.online-session-access button:hover,
.online-session-actions button:hover,
.online-theory-actions button:hover,
.video-room-controls button:hover,
.video-room-header button:hover {
  transform: none;
}

.selected-day {
  min-height: 360px;
  margin-top: 0;
  border-color: var(--line);
  background:
    linear-gradient(180deg, rgba(19, 33, 42, 0.96), rgba(13, 24, 32, 0.96)),
    var(--card);
}

.day-cell.selected,
.week-day.selected {
  border-color: rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 122, 24, 0.12), rgba(13, 24, 32, 0.84));
  box-shadow: 0 0 0 2px rgba(255, 122, 24, 0.42), 0 16px 32px rgba(0, 0, 0, 0.18);
}

@media (max-width: 900px) {
  .calendar-layout {
    grid-template-columns: 1fr;
  }

  .exercise-row.selected {
    grid-template-columns: 1fr;
  }

  .selected-day {
    min-height: 220px;
  }

  .video-room-content {
    grid-template-columns: 1fr;
  }

  .online-theory-layout {
    grid-template-columns: 1fr;
  }

  .active-session-area {
    margin-bottom: 14px;
  }
}

@media (max-width: 680px) {
  .month-grid {
    grid-auto-rows: 72px;
  }

  .day-cell {
    height: 72px;
    min-height: 72px;
  }

  .video-room-header {
    flex-direction: column;
  }

  .video-room-header-actions {
    width: 100%;
  }

  .video-room-header button,
  .video-room-header-actions button,
  .video-room-controls button,
  .online-theory-actions button,
  .online-theory-actions .file-button {
    width: 100%;
  }

  .online-room-card {
    align-items: stretch;
    flex-direction: column;
  }

  .online-room-card button {
    width: 100%;
  }

  .video-unlock-button {
    width: min(82%, 260px);
  }

  .video-room-grid {
    grid-template-columns: 1fr;
  }

  .video-live-board-panel {
    padding: 12px;
  }

  .online-theory-video-panel,
  .livekit-compact-panel {
    padding: 12px;
  }

  .match-video-stage {
    min-height: 220px;
  }

  .live-board-preview {
    overflow-x: hidden;
  }

  .coach-live-board-large {
    padding: 12px;
  }

  .coach-live-board-large .tactical-board,
  .coach-live-board-large .tactical-board.rink-half {
    width: 100%;
    max-width: 100%;
  }

  .coach-live-board-large .board-toolbar {
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .online-session-actions button {
    flex: 1 1 auto;
  }
}

.calendar-detail {
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding: 14px 0;
}

.calendar-detail-main {
  gap: 10px;
}

.calendar-detail-actions .primary,
.calendar-detail-actions .secondary,
.calendar-detail-actions .danger {
  min-height: 34px;
}

.player-list-row,
.quick-attendance-row,
.normative-row,
.normative-team-row,
.compact-table-row,
.recent-notes-list div,
.player-detail-grid span,
.mini-stats span {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.player-list-row:hover {
  border-color: rgba(255, 122, 24, 0.35);
  background: rgba(255, 122, 24, 0.08);
}

.quick-attendance-help,
.status-present {
  border-color: rgba(101, 209, 122, 0.28);
  background: rgba(101, 209, 122, 0.1);
}

.status-late {
  border-color: rgba(255, 181, 71, 0.35);
  background: rgba(255, 181, 71, 0.1);
}

.normative-mode-cards .card.active {
  border-color: rgba(255, 122, 24, 0.5);
  background: rgba(255, 122, 24, 0.1);
}

.line-chart polyline,
.skill-row i {
  stroke: var(--accent);
  background: linear-gradient(90deg, var(--accent), #ffb547);
}

.line-chart circle {
  fill: var(--accent);
}

.motion-board-shell {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(19, 33, 42, 0.98), rgba(13, 24, 32, 0.98)),
    var(--card);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.motion-tool-group,
.motion-selection-panel,
.motion-readonly-note,
.motion-controls,
.motion-toggle {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}

.motion-tool-group > span,
.motion-controls > span,
.motion-controls label,
.motion-tool-group label,
.motion-selection-panel span,
.motion-selection-panel.muted {
  color: var(--muted);
}

.motion-selection-panel b,
.motion-board-empty b {
  color: var(--text);
}

.motion-tool-group button,
.motion-controls button {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.motion-tool-group button:hover:not(:disabled),
.motion-controls button:hover:not(:disabled) {
  color: var(--text);
  border-color: rgba(255, 122, 24, 0.4);
  background: rgba(255, 122, 24, 0.1);
  box-shadow: 0 10px 22px rgba(255, 122, 24, 0.1);
}

.motion-tool-group button:focus-visible,
.motion-controls button:focus-visible,
.motion-tool-group select:focus-visible,
.motion-controls select:focus-visible {
  outline-color: rgba(255, 122, 24, 0.28);
}

.motion-tool-group button:disabled,
.motion-controls button:disabled,
.motion-tool-group select:disabled {
  color: #4f5a63;
  border-color: rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.035);
}

.motion-tool-group button[data-record-motion],
.motion-tool-group button[data-record-motion]:hover:not(:disabled),
.motion-tool-group button[data-record-motion].active,
.motion-controls button.active,
.motion-board-toolbar button.active,
.motion-controls button[data-motion-loop].active {
  color: #081218;
  border-color: rgba(255, 122, 24, 0.55);
  background: var(--accent);
  box-shadow: 0 12px 26px rgba(255, 122, 24, 0.18);
}

.motion-controls button[data-motion-play],
.motion-controls button[data-motion-play]:hover:not(:disabled) {
  color: #081218;
  border-color: rgba(101, 209, 122, 0.5);
  background: #65d17a;
  box-shadow: 0 12px 26px rgba(101, 209, 122, 0.18);
}

.motion-controls button[data-motion-stop] {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.motion-tool-group.danger-zone {
  border-color: rgba(255, 92, 92, 0.28);
  background: rgba(255, 92, 92, 0.08);
}

.motion-tool-group.danger-zone > span,
.motion-tool-group.danger-zone button,
.motion-tool-group button.danger {
  color: #ff9999;
}

.motion-tool-group.danger-zone button,
.motion-tool-group button.danger {
  border-color: rgba(255, 92, 92, 0.35);
  background: rgba(255, 92, 92, 0.1);
}

.motion-recording-status {
  color: #ffd9bd;
  border-color: rgba(255, 122, 24, 0.35);
  background: rgba(255, 122, 24, 0.1);
}

.motion-controls select {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.1);
  background: #0d1820;
}

.motion-board,
.tactical-board {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at 50% 50%, rgba(96, 165, 250, 0.08), transparent 48%),
    linear-gradient(180deg, #101c25, #0d1820);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 18px 38px rgba(0, 0, 0, 0.28);
}

.motion-board-empty {
  color: var(--muted);
  border-color: rgba(255, 122, 24, 0.32);
  background: rgba(7, 16, 23, 0.76);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.motion-board-empty ol {
  color: var(--muted);
}

.rink-layer .rink-outline {
  stroke: rgba(230, 240, 247, 0.62);
}

.rink-layer line,
.rink-layer circle {
  stroke: rgba(230, 240, 247, 0.5);
}

.rink-layer .center-line,
.rink-layer .goal-line,
.rink-layer .goal {
  stroke: rgba(255, 122, 24, 0.82);
}

.rink-layer .blue-line {
  stroke: rgba(96, 165, 250, 0.72);
}

.rink-layer .attack-zone,
.rink-layer .defend-zone,
.rink-layer .neutral-zone {
  fill: rgba(255, 255, 255, 0.035);
}

.rink-layer .faceoff-dot,
.rink-layer .neutral-dot,
.rink-layer .center-dot {
  fill: rgba(255, 122, 24, 0.88);
}

.rink-layer .goal-crease {
  fill: rgba(96, 165, 250, 0.12);
  stroke: rgba(230, 240, 247, 0.38);
}

.motion-track-home_player .motion-track,
.motion-track-home_player .motion-track-arrow,
.board-arrow-move,
#arrowhead-move path {
  stroke: #2563eb;
  fill: none;
}

.motion-track-away_player .motion-track,
.motion-track-away_player .motion-track-arrow,
.board-arrow-shot,
#arrowhead-shot path {
  stroke: #dc2626;
  fill: none;
}

.motion-track-puck .motion-track,
.motion-track-puck .motion-track-arrow,
.motion-track-puck-pass .motion-track,
.motion-track-puck-pass .motion-track-arrow,
#arrowhead-pass path {
  stroke: rgba(15, 23, 42, 0.82);
  fill: none;
  stroke-dasharray: 1.2 1.2;
}

.motion-track,
.board-arrow {
  fill: none !important;
}

.motion-track-arrow {
  fill: none !important;
}

#arrowhead-move path {
  fill: #2563eb;
  stroke: none;
}

#arrowhead-pass path {
  fill: #2fbf9b;
  stroke: none;
}

#arrowhead-shot path {
  fill: #dc2626;
  stroke: none;
}

.motion-piece,
.board-piece {
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.32);
}

.motion-piece:hover:not(:disabled),
.motion-piece:focus,
.board-piece:hover:not(:disabled),
.board-piece:focus {
  filter: drop-shadow(0 0 8px rgba(255, 122, 24, 0.32));
}

.motion-piece.selected,
.board-piece.selected {
  outline-color: rgba(255, 122, 24, 0.96);
}

.motion-piece-home_player,
.board-piece-player {
  background: radial-gradient(circle at 32% 28%, #8fc1ff 0, #397ff0 34%, #2563eb 100%);
}

.motion-piece-away_player,
.board-piece-opponent {
  background: radial-gradient(circle at 32% 28%, #ffb2b8 0, #ef4444 34%, #dc2626 100%);
}

.motion-piece-puck,
.board-piece-puck {
  background: #02070a;
}

.motion-piece-cone,
.board-piece-cone {
  background: var(--accent);
}

/* Motion board compact editor layout and light ice rink */
.motion-board-shell {
  width: min(100%, 1080px);
}

.motion-board-layout {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.motion-side-panel {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.motion-rink-panel {
  display: grid;
  justify-items: center;
  min-width: 0;
}

.motion-board-toolbar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.motion-tool-group,
.motion-selection-panel,
.motion-readonly-note,
.motion-controls,
.motion-toggle {
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}

.motion-tool-group > span,
.motion-controls > span,
.motion-controls label,
.motion-tool-group label,
.motion-selection-panel span,
.motion-selection-panel.muted {
  color: var(--muted);
}

.motion-selection-panel b,
.motion-board-empty b {
  color: var(--text);
}

.motion-controls {
  align-items: stretch;
}

.motion-controls button,
.motion-tool-group button {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.06);
}

.motion-controls button:hover:not(:disabled),
.motion-tool-group button:hover:not(:disabled) {
  color: var(--text);
  border-color: rgba(255, 122, 24, 0.36);
  background: rgba(255, 122, 24, 0.12);
}

.motion-controls select,
.motion-tool-group select {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.11);
  background: var(--input);
}

.motion-tool-group button[data-record-motion],
.motion-tool-group button[data-record-motion]:hover:not(:disabled),
.motion-tool-group button[data-record-motion].active,
.motion-controls button.active,
.motion-board-toolbar button.active,
.motion-controls button[data-motion-loop].active {
  color: #081218;
  border-color: rgba(255, 122, 24, 0.45);
  background: #ff7a18;
}

.motion-controls button[data-motion-play],
.motion-controls button[data-motion-play]:hover:not(:disabled) {
  color: #052e18;
  border-color: rgba(101, 209, 122, 0.5);
  background: #65d17a;
}

.motion-tool-group.danger-zone {
  border-color: rgba(255, 92, 92, 0.22);
  background: rgba(255, 92, 92, 0.08);
}

.motion-board,
.tactical-board {
  border-color: rgba(148, 163, 184, 0.46);
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.98), rgba(239, 248, 255, 0.94) 56%, rgba(225, 241, 252, 0.94)),
    #f8fcff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.86), 0 16px 34px rgba(15, 23, 42, 0.14);
}

.motion-board {
  width: min(100%, 720px);
}

.motion-board.rink-half {
  width: min(100%, 560px);
}

.motion-board-empty {
  color: #475569;
  border-color: rgba(37, 99, 235, 0.22);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.motion-board-empty ol {
  color: #475569;
}

.rink-layer .rink-outline {
  stroke: rgba(148, 163, 184, 0.72);
}

.rink-layer line,
.rink-layer circle {
  stroke: rgba(96, 165, 250, 0.42);
  stroke-width: 2.1;
}

.rink-layer .center-line,
.rink-layer .goal-line {
  stroke: rgba(248, 113, 113, 0.78);
}

.rink-layer .blue-line {
  stroke: rgba(59, 130, 246, 0.72);
}

.rink-layer .attack-zone,
.rink-layer .defend-zone {
  fill: rgba(219, 234, 254, 0.22);
}

.rink-layer .neutral-zone {
  fill: rgba(248, 250, 252, 0.42);
}

.rink-layer .faceoff-dot,
.rink-layer .neutral-dot,
.rink-layer .center-dot {
  fill: rgba(239, 68, 68, 0.72);
}

.rink-layer .goal-crease {
  fill: rgba(147, 197, 253, 0.2);
  stroke: rgba(59, 130, 246, 0.38);
}

.rink-layer .goal {
  fill: rgba(248, 113, 113, 0.1);
  stroke: rgba(248, 113, 113, 0.72);
}

/* Stage 1 coach home follows the shared dark product theme. */
.coach-home-stage {
  display: grid;
  gap: 18px;
}

.coach-home-stage .coach-home-card {
  color: var(--text);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(19, 33, 42, 0.96), rgba(13, 24, 32, 0.96)),
    var(--card);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.coach-home-stage .coach-home-card .section-header h2 {
  color: var(--text);
}

.coach-home-stage .coach-home-card .section-header p {
  color: var(--muted);
}

.coach-home-stage .coach-home-card .empty-state {
  color: var(--muted);
  border: 1px dashed rgba(255, 122, 24, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 122, 24, 0.1), rgba(255, 255, 255, 0.03)),
    var(--surface);
}

.coach-home-stage .coach-reminder-row,
.coach-home-stage .coach-week-day,
.coach-home-stage .coach-week-event {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.coach-home-stage .coach-week-event {
  background: rgba(255, 255, 255, 0.05);
}

.coach-home-stage .coach-reminder-row b,
.coach-home-stage .coach-week-event b,
.coach-home-stage .coach-week-day-head {
  color: var(--text);
}

.coach-home-stage .coach-reminder-row span,
.coach-home-stage .coach-reminder-row p,
.coach-home-stage .coach-week-event span,
.coach-home-stage .coach-week-events p,
.coach-home-stage .coach-week-day-head span {
  color: var(--muted);
}

.coach-home-stage .coach-week-event time {
  color: var(--accent);
}

.coach-home-stage .coach-week-day.today {
  border-color: rgba(255, 122, 24, 0.55);
  background: rgba(255, 122, 24, 0.08);
}

/* Stage 2 quick attendance uses theme surfaces while keeping status rows obvious. */
.quick-attendance-form .quick-attendance-help {
  color: var(--text);
  border: 1px solid rgba(255, 122, 24, 0.24);
  background: rgba(255, 122, 24, 0.1);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.quick-attendance-form .quick-attendance-help span {
  color: var(--muted);
}

.quick-attendance-form .quick-attendance-row {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}

.quick-attendance-form .quick-attendance-row.status-present {
  border-color: rgba(101, 209, 122, 0.38);
  background: rgba(101, 209, 122, 0.13);
}

.quick-attendance-form .quick-attendance-row.status-late {
  border-color: rgba(255, 181, 71, 0.4);
  background: rgba(255, 181, 71, 0.14);
}

.quick-attendance-form .attendance-player-toggle > span {
  color: var(--text);
}

.quick-attendance-form .attendance-player-toggle .meta span {
  color: var(--muted);
}

.quick-attendance-form .attendance-player-toggle i {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.07);
}

.quick-attendance-form .status-present .attendance-player-toggle i {
  color: #b9f5c3;
  background: rgba(101, 209, 122, 0.18);
}

.quick-attendance-form .status-late .attendance-player-toggle i {
  color: #ffd89a;
  background: rgba(255, 181, 71, 0.18);
}

.quick-attendance-form .quick-attendance-row label {
  color: var(--muted);
}

.quick-attendance-form .quick-attendance-row input[name="comment"] {
  color: var(--text);
  border-color: var(--line-strong);
  background: var(--input);
}

.quick-attendance-form .quick-attendance-row input[name="comment"]::placeholder {
  color: var(--muted-foreground);
}

/* Stage 3 invite code panel is hidden by default and opens as a themed team card section. */
.team-card .invite-code-box {
  gap: 10px;
  color: var(--text);
  border: 1px solid rgba(255, 122, 24, 0.28);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 122, 24, 0.1), rgba(255, 255, 255, 0.04)),
    var(--surface);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
  overflow: visible;
}

.team-card .invite-code-box > span {
  color: var(--muted);
}

.team-card .invite-code-box strong {
  width: 100%;
  max-width: 260px;
  color: #ffd9bd;
  border: 1px solid rgba(255, 122, 24, 0.35);
  background: rgba(255, 122, 24, 0.1);
  font-size: 20px;
  text-align: center;
}

.team-card .invite-code-box p {
  color: var(--muted);
}

.team-card .invite-code-box .compact-actions {
  align-items: stretch;
  margin-top: 4px;
}

.team-card .invite-code-box button.secondary {
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.team-card .invite-code-box button.secondary:hover:not(:disabled) {
  color: #081218;
  border-color: rgba(255, 122, 24, 0.55);
  background: var(--accent);
}

.team-card .invite-code-box .invite-warning {
  color: #ffd89a;
  border: 1px solid rgba(255, 181, 71, 0.28);
  border-radius: 12px;
  padding: 9px 10px;
  background: rgba(255, 181, 71, 0.1);
}

/* Final Motion Board visual contract: themed controls around a light ice rink. */
.tactical-board-section {
  color: var(--text);
  border-color: var(--line);
  background:
    linear-gradient(180deg, rgba(19, 33, 42, 0.96), rgba(13, 24, 32, 0.96)),
    var(--card);
}

.motion-board-shell {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(19, 33, 42, 0.98), rgba(13, 24, 32, 0.98)),
    var(--card);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.motion-tool-group,
.motion-selection-panel,
.motion-readonly-note,
.motion-controls,
.motion-toggle {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}

.motion-tool-group button,
.motion-controls button {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
  transform: none;
}

.motion-tool-group button:hover:not(:disabled),
.motion-controls button:hover:not(:disabled) {
  color: var(--text);
  border-color: rgba(255, 122, 24, 0.36);
  background: rgba(255, 122, 24, 0.12);
  box-shadow: 0 10px 22px rgba(255, 122, 24, 0.1);
  transform: none;
}

.motion-tool-group button[data-record-motion],
.motion-tool-group button[data-record-motion]:hover:not(:disabled),
.motion-tool-group button[data-record-motion].active,
.motion-controls button.active,
.motion-board-toolbar button.active,
.motion-controls button[data-motion-loop].active {
  color: #081218;
  border-color: rgba(255, 122, 24, 0.45);
  background: var(--accent);
}

.motion-controls button[data-motion-play],
.motion-controls button[data-motion-play]:hover:not(:disabled) {
  color: #052e18;
  border-color: rgba(101, 209, 122, 0.5);
  background: var(--green);
}

.motion-board,
.tactical-board {
  color: #0f172a;
  border-color: rgba(148, 163, 184, 0.46);
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.98), rgba(239, 248, 255, 0.94) 56%, rgba(225, 241, 252, 0.94)),
    #f8fcff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.86), 0 16px 34px rgba(15, 23, 42, 0.14);
}

.motion-board-empty {
  color: var(--text);
  border-color: rgba(255, 122, 24, 0.32);
  background: rgba(7, 16, 23, 0.76);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.motion-board-empty span,
.motion-board-empty ol {
  color: var(--muted);
}

.motion-track,
.board-arrow {
  fill: none !important;
}

.motion-track-home_player .motion-track,
.motion-track-home_player .motion-track-arrow,
.board-arrow-move,
#arrowhead-move path {
  stroke: #2563eb;
}

.motion-track-away_player .motion-track,
.motion-track-away_player .motion-track-arrow,
.board-arrow-shot,
#arrowhead-shot path {
  stroke: #dc2626;
}

.motion-track-puck .motion-track,
.motion-track-puck .motion-track-arrow,
.motion-track-puck-pass .motion-track,
.motion-track-puck-pass .motion-track-arrow {
  stroke: rgba(15, 23, 42, 0.82);
  stroke-dasharray: 1.2 1.2;
}

.motion-track-arrow {
  fill: none !important;
}

#arrowhead-move path {
  fill: #2563eb;
  stroke: none;
}

#arrowhead-pass path {
  fill: #0f172a;
  stroke: none;
}

#arrowhead-shot path {
  fill: #dc2626;
  stroke: none;
}

.motion-piece:hover:not(:disabled),
.motion-piece:focus,
.board-piece:hover:not(:disabled),
.board-piece:focus {
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 8px rgba(255, 122, 24, 0.32));
}

.motion-piece.selected,
.board-piece.selected {
  outline: 2px solid rgba(255, 122, 24, 0.96);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(255, 122, 24, 0.16), 0 7px 18px rgba(0, 0, 0, 0.32);
}

.day-cell.selected,
.week-day.selected,
.exercise-row.selected .exercise-card,
.normative-mode-cards .card.active {
  transform: none;
}

@media (max-width: 1100px) {
  .motion-board-layout {
    grid-template-columns: 1fr;
  }

  .motion-board-toolbar {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  }
}

@media (max-width: 980px) {
  .calendar-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }

  .calendar-toolbar > *,
  .calendar-layout,
  .calendar-board {
    min-width: 0;
  }

  .calendar-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .week-grid {
    display: flex;
    min-width: 0;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .week-day {
    flex: 0 0 150px;
  }

  .week-day-events {
    overflow-x: hidden;
  }

  .calendar-event-card {
    min-width: 0;
    overflow: hidden;
  }

  .calendar-event-card strong,
  .calendar-event-card em {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
}

@media (max-width: 680px) {
  .calendar-head {
    align-items: stretch;
    flex-direction: column;
  }

  .calendar-nav {
    justify-content: flex-start;
  }

  .normative-mode-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .normative-mode-cards .card {
    min-width: 0;
  }
}

@media (max-width: 820px) {
  .player-profile-hero,
  .player-home-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .player-avatar-block,
  .player-home-photo {
    min-height: 0;
    padding: 16px;
  }

  .player-section-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .player-sections-shell {
    min-height: 360px;
  }
}

@media (max-width: 480px) {
  .actions button,
  .calendar-detail-actions button,
  .video-room-header-actions button,
  .online-theory-actions button,
  .online-theory-actions .file-button,
  .photo-upload-button,
  .private-note-actions button {
    width: 100%;
    min-width: 0;
  }

  .card,
  .empty-state,
  .calendar-toolbar,
  .calendar-head,
  .calendar-board,
  .online-theory-video-panel,
  .livekit-compact-panel {
    padding: 14px;
  }

  .player-profile-summary h2,
  .player-home-main h2 {
    font-size: 26px;
  }

  .player-list-row {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .player-list-row > span:not(.player-list-name) {
    grid-column: 2;
  }

  .player-section-tabs {
    grid-template-columns: minmax(0, 1fr);
  }

  .player-attendance-history > div {
    align-items: flex-start;
    flex-direction: column;
  }

  .player-attendance-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .player-panel-subhead {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .training-note-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .progress-type-switch,
  .progress-summary-grid,
  .progress-discipline-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .progress-discipline-head {
    flex-direction: column;
  }

  .progress-message-head {
    flex-direction: column;
  }

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

  .team-announcement-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .player-assignment-row.selected {
    grid-template-columns: minmax(0, 1fr);
  }

  .private-note-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .private-note-actions button {
    width: 100%;
  }
}

