:root {
  --green: #173f36;
  --lime: #d5ed91;
  --bg: #f5f6f1;
  --ink: #233e35;
  --muted: #7b887f;
  --line: #e5e9df;
  --white: #fff;
  --orange: #bd7142;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  font:
    14px/1.5 -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: var(--ink);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: var(--green);
}
button {
  border: 1px solid var(--line);
  background: white;
  color: var(--green);
  padding: 10px 15px;
  border-radius: 10px;
  font-weight: 600;
  transition: 0.18s;
}
button:hover {
  background: #edf2e5;
  transform: translateY(-1px);
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}
.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.primary:hover {
  background: #285648;
}
.lime {
  background: var(--lime);
  border-color: var(--lime);
}
.danger {
  color: #a6463a;
}
.layout {
  display: grid;
  grid-template-columns: 238px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 33px 20px;
  position: fixed;
  inset: 0 auto 0 0;
  width: 238px;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.brand {
  font-size: 25px;
  letter-spacing: -1.1px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 34px;
}
.brand img {
  width: 36px;
}
.brand small {
  color: #9eb568;
}
.label {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--muted);
}
.nav {
  display: grid;
  gap: 5px;
  margin: 12px 0 28px;
}
.nav button {
  text-align: left;
  border: 0;
  font-size: 13px;
  font-weight: 550;
  color: #738077;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
}
.nav button.active {
  background: var(--green);
  color: white;
}
.nav svg {
  width: 18px;
  height: 18px;
}
.club {
  margin-top: auto;
  padding: 16px 12px;
  background: #f6f7f2;
  border-radius: 13px;
}
.club strong {
  display: block;
}
.club small {
  color: var(--muted);
}
main {
  grid-column: 2;
  padding: 0 42px 40px;
  max-width: 1650px;
  width: 100%;
}
.topbar {
  height: 87px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 12px;
  margin-bottom: 32px;
}
.topbar .breadcrumb {
  font-size: 12px;
  color: var(--muted);
}
.topbar .breadcrumb b {
  color: var(--green);
  font-weight: 550;
}
.top-actions,
.actions {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}
.status {
  font-size: 11px;
  color: #66735c;
  display: flex;
  align-items: center;
  gap: 7px;
}
.status:before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8daf53;
}
.avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #e7edda;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: bold;
}
.page-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}
.page-head h1 {
  font-size: 33px;
  letter-spacing: -1.3px;
  line-height: 1.15;
  margin: 6px 0 8px;
}
.page-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.eyebrow {
  font-size: 10px;
  color: #7c8d6b;
  letter-spacing: 2px;
  font-weight: 750;
  text-transform: uppercase;
}
.banner {
  background: #edf1df;
  color: #617247;
  border: 1px solid #e0e7cd;
  border-radius: 9px;
  padding: 9px 14px;
  margin-bottom: 22px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.banner button {
  background: transparent;
  border: 0;
  padding: 0;
  font-size: 12px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 25px;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 20px;
}
.stat .stat-top {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}
.stat .value {
  font-size: 31px;
  font-weight: 700;
  letter-spacing: -1.5px;
  margin: 12px 0 4px;
}
.stat small {
  font-size: 11px;
  color: #889280;
}
.stat .mini-icon {
  width: 27px;
  height: 27px;
  background: #f2f5ea;
  border-radius: 8px;
  display: grid;
  place-items: center;
}
.grid2 {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 23px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 23px;
  margin-bottom: 22px;
  min-width: 0;
}
.card h2 {
  font-size: 16px;
  letter-spacing: -0.3px;
  margin: 0;
}
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.card-head a,
.link {
  font-size: 12px;
  text-decoration: none;
  color: #7a875e;
}
.card-head button.link {
  border: 0;
  padding: 0;
}
.hero {
  background: var(--green);
  color: white;
  overflow: hidden;
  position: relative;
  min-height: 235px;
}
.hero:after {
  content: '';
  position: absolute;
  width: 270px;
  height: 270px;
  border: 1px solid #ffffff15;
  border-radius: 50%;
  right: -70px;
  top: -100px;
  pointer-events: none;
}
.hero .eyebrow {
  color: #c1d99e;
}
.hero h2 {
  font-size: 27px;
  margin: 14px 0 4px;
  letter-spacing: -1px;
}
.hero p {
  color: #c4d5c9;
  font-size: 12px;
}
.hero .actions {
  margin-top: 23px;
}
.badge {
  display: inline-block;
  border-radius: 6px;
  background: #f0f4e8;
  color: #627847;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 650;
}
.badge.amber {
  background: #fbefdf;
  color: #a06c32;
}
.hero .badge {
  background: #ffffff16;
  color: #d5ed91;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid #eff1e9;
}
.row:last-child {
  border: 0;
}
.row p {
  margin: 0;
}
.row small {
  color: var(--muted);
  font-size: 11px;
}
.row .initials {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #edf2e1;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: bold;
}
.row .person {
  display: flex;
  gap: 12px;
  align-items: center;
}
.list-count {
  font-weight: 700;
  color: #728650;
}
.bars {
  display: flex;
  align-items: end;
  gap: 12px;
  height: 135px;
  border-bottom: 1px solid var(--line);
  padding: 0 8px;
}
.bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: end;
  height: 100%;
  gap: 6px;
  min-width: 0;
}
.bar {
  width: 100%;
  max-width: 30px;
  background: #d9e8bb;
  border-radius: 5px 5px 0 0;
  min-height: 2px;
}
.bar-col small {
  font-size: 9px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  max-width: 100%;
}
.bar-col span {
  font-size: 10px;
}
.section-note {
  color: var(--muted);
  font-size: 12px;
  margin: 12px 0 0;
}
.players {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 17px;
}
.player-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 22px;
  cursor: pointer;
  transition: 0.2s;
}
.player-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px #173f3609;
  border-color: #b7c79b;
}
.playing-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: -8px 0 18px;
  padding: 11px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 11px;
  color: var(--muted);
}
.playing-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 650;
  color: var(--ink);
}
.playing-legend small {
  margin-left: auto;
}
.load-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.load-dot.load-low {
  background: #d4913e;
}
.load-dot.load-even {
  background: #6c9f72;
}
.load-dot.load-high {
  background: #b64a58;
}
.player-card.load-low {
  border-left: 5px solid #d4913e;
}
.player-card.load-even {
  border-left: 5px solid #6c9f72;
}
.player-card.load-high {
  border-left: 5px solid #b64a58;
}
.player-card.load-neutral {
  border-left: 5px solid #bbc3bc;
}
.load-badge {
  font-weight: 700;
}
.load-badge.load-low {
  color: #9a5b10;
}
.load-badge.load-even {
  color: #447c4d;
}
.load-badge.load-high {
  color: #9c3342;
}
.load-badge.load-neutral {
  color: var(--muted);
}
.time-correction-row {
  grid-template-columns: minmax(160px, 1fr) minmax(120px, 160px);
}
.player-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 19px;
}
.shirt {
  background: #edf2e2;
  width: 52px;
  height: 57px;
  clip-path: polygon(
    24% 0,
    38% 7%,
    62% 7%,
    76% 0,
    100% 20%,
    86% 43%,
    77% 36%,
    77% 100%,
    23% 100%,
    23% 36%,
    14% 43%,
    0 20%
  );
  display: grid;
  place-items: center;
  font-size: 19px;
  font-weight: 750;
}
.player-card h3 {
  font-size: 16px;
  margin: 0 0 3px;
}
.player-card p {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}
.player-bottom {
  margin-top: 18px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #7d876f;
}
.search {
  width: 240px;
}
input,
textarea,
select {
  background: #fafbf7;
  border: 1px solid #dfe5d6;
  border-radius: 9px;
  padding: 10px 12px;
  color: var(--ink);
  width: 100%;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #adc885;
  outline-offset: 2px;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin: 12px 0 5px;
}
textarea {
  min-height: 80px;
  resize: vertical;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.span2 {
  grid-column: span 2;
}
.empty {
  text-align: center;
  padding: 36px 20px;
  color: var(--muted);
}
.empty strong {
  display: block;
  color: var(--green);
  margin-bottom: 6px;
}
.pitch-layout {
  display: grid;
  grid-template-columns: minmax(300px, 1.2fr) minmax(280px, 1fr);
  gap: 24px;
}
.pitch {
  aspect-ratio: 0.82;
  max-height: 640px;
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  background: repeating-linear-gradient(0deg, #356b50 0%, #356b50 12.5%, #3a7255 12.5%, #3a7255 25%);
  box-shadow: inset 0 0 50px #173f3625;
}
.pitch-lines {
  position: absolute;
  inset: 5%;
  border: 1px solid #ffffff65;
  pointer-events: none;
}
.pitch-lines:before {
  content: '';
  position: absolute;
  top: 50%;
  width: 100%;
  border-top: 1px solid #ffffff65;
}
.pitch-lines:after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 27%;
  aspect-ratio: 1;
  border: 1px solid #ffffff65;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.box-top,
.box-bottom {
  position: absolute;
  left: 25%;
  width: 50%;
  height: 16%;
  border: 1px solid #ffffff65;
}
.box-top {
  top: 0;
  border-top: 0;
}
.box-bottom {
  bottom: 0;
  border-bottom: 0;
}
.goal-top,
.goal-bottom {
  position: absolute;
  left: 39%;
  width: 22%;
  height: 6%;
  border: 1px solid #ffffff65;
}
.goal-top {
  top: 0;
  border-top: 0;
}
.goal-bottom {
  bottom: 0;
  border-bottom: 0;
}
.pitch-player {
  position: absolute;
  transform: translate(-50%, -50%);
  border: 0;
  background: transparent;
  color: white;
  padding: 0;
  display: grid;
  justify-items: center;
  width: 100px;
  font-size: 10px;
  z-index: 2;
}
.pitch-player:hover {
  transform: translate(-50%, -50%) scale(1.05);
  background: transparent;
}
.pitch-player .circle {
  border: 2px solid #e8f5c5;
  background: #e0ef9b;
  color: #244537;
  width: 39px;
  height: 39px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 3px 9px #123a3244;
}
.pitch-player span:last-child {
  background: #153c32b8;
  border-radius: 4px;
  padding: 1px 6px;
  margin-top: 4px;
  max-width: 99px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pitch-player.vacant .circle {
  background: #ffffff20;
  border: 1px dashed #cddfbf;
  color: white;
}
.pitch-player.chosen .circle {
  background: white;
  border-color: #f0c66e;
  box-shadow: 0 0 0 5px #f0c66e55;
}
.timer {
  font-variant-numeric: tabular-nums;
  font-size: 43px;
  font-weight: 700;
  letter-spacing: -2px;
  text-align: center;
}
.score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 10px 0 18px;
}
.score strong {
  font-size: 35px;
}
.score button {
  padding: 3px 10px;
}
.bench {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.bench button {
  font-size: 12px;
}
.selection-row {
  display: grid;
  grid-template-columns: 20px 1fr 100px;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.selection-row input {
  width: auto;
}
.selection-row select {
  font-size: 11px;
  padding: 5px;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
th {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  font-weight: 600;
}
th,
td {
  padding: 12px 9px;
  border-bottom: 1px solid var(--line);
}
.progress {
  height: 6px;
  border-radius: 8px;
  background: #edf1e6;
  min-width: 65px;
  overflow: hidden;
}
.progress i {
  display: block;
  background: #9dbd67;
  height: 100%;
  border-radius: 8px;
}
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.tabs button {
  font-size: 12px;
}
.tabs .active {
  background: #e2edcb;
  border-color: #d4e1b7;
}
.resource {
  display: flex;
  gap: 15px;
  align-items: start;
}
.resource-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #f0f4e5;
  font-weight: 700;
}
.exercise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.exercise {
  margin: 0;
}
.exercise p {
  font-size: 12px;
  color: var(--muted);
}
.exercise h3 {
  font-size: 17px;
  line-height: 1.3;
}
.exercise .diagram {
  height: 95px;
  background: repeating-linear-gradient(0deg, #eaf0df 0px, #eaf0df 24px, #e1e9d3 24px, #e1e9d3 48px);
  border-radius: 9px;
  position: relative;
  overflow: hidden;
}
.diagram:before {
  content: '● ┄┄┄┄ ◯ ┄┄┄┄ ●';
  color: #5a8050;
  position: absolute;
  inset: 33px 0;
  text-align: center;
  font-size: 18px;
  letter-spacing: 2px;
}
.calendar-date {
  padding: 9px 14px;
  border-radius: 10px;
  background: #eff3e6;
  text-align: center;
  font-size: 10px;
  text-transform: uppercase;
}
.calendar-date b {
  display: block;
  font-size: 23px;
  line-height: 1.2;
}
.split {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 18px;
  width: min(590px, 94vw);
  max-height: 90vh;
  padding: 26px;
  color: var(--ink);
  box-shadow: 0 30px 120px #173f3633;
}
dialog::backdrop {
  background: #142a2560;
  backdrop-filter: blur(4px);
}
dialog h2 {
  font-size: 22px;
  margin: 0 0 6px;
  letter-spacing: -0.6px;
}
dialog .actions {
  justify-content: flex-end;
  margin-top: 23px;
}
.close {
  float: right;
  padding: 4px 10px;
  border: 0;
  font-size: 18px;
}
#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: white;
  padding: 12px 22px;
  border-radius: 11px;
  z-index: 100;
  box-shadow: 0 10px 30px #0002;
  display: none;
  max-width: 90vw;
  font-size: 13px;
}
.chart {
  width: 100%;
  height: 150px;
}
.chart text {
  font: 10px sans-serif;
  fill: #7b887f;
}
.notice {
  border-left: 3px solid #b7ce83;
  padding: 12px 15px;
  background: #f5f7ec;
  font-size: 12px;
  margin: 15px 0;
}
.mobile-brand {
  display: none;
}
.print-title {
  display: none;
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
}
.check input {
  width: auto;
}
.report-metric {
  font-size: 28px;
  font-weight: 700;
}
.divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 20px 0;
}
@media (min-width: 1500px) {
  main {
    padding-left: 55px;
    padding-right: 55px;
  }
}
@media (max-width: 1100px) {
  main {
    padding: 0 25px 30px;
  }
  .layout {
    grid-template-columns: 205px 1fr;
  }
  .sidebar {
    width: 205px;
    padding: 28px 15px;
  }
  .grid2 {
    grid-template-columns: 1fr;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 14px;
  }
  .pitch-layout {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 760px) {
  .layout {
    display: block;
  }
  .sidebar {
    position: sticky;
    top: 0;
    width: auto;
    padding: 0 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand,
  .sidebar > .label,
  .club {
    display: none;
  }
  .nav {
    display: flex;
    overflow-x: auto;
    margin: 0;
    gap: 2px;
    padding: 8px 0;
  }
  .nav button {
    flex-shrink: 0;
    font-size: 11px;
    padding: 10px;
    gap: 5px;
  }
  .nav svg {
    width: 15px;
  }
  .sidebar .nav.secondary {
    display: none;
  }
  main {
    padding: 0 16px 30px;
  }
  .topbar {
    height: 65px;
    margin-bottom: 23px;
  }
  .topbar .breadcrumb {
    display: none;
  }
  .mobile-brand {
    display: block;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.7px;
  }
  .top-actions > button {
    padding: 7px 10px;
    font-size: 11px;
  }
  .status {
    font-size: 10px;
  }
  .avatar {
    display: none;
  }
  .page-head {
    align-items: start;
  }
  .page-head h1 {
    font-size: 27px;
  }
  .page-head .actions {
    justify-content: end;
  }
  .page-head .actions button {
    font-size: 11px;
    padding: 9px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat .value {
    font-size: 27px;
  }
  .grid2,
  .pitch-layout {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 18px;
  }
  .pitch {
    max-height: none;
  }
  .players {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .player-card {
    padding: 15px;
  }
  .player-card h3 {
    font-size: 14px;
  }
  .player-bottom {
    font-size: 10px;
  }
  .search {
    width: 150px;
  }
  .banner {
    font-size: 10px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .span2 {
    grid-column: auto;
  }
  .timer {
    font-size: 39px;
  }
}
@media print {
  body {
    background: white;
    font-size: 11px;
  }
  .sidebar,
  .topbar,
  .banner,
  .page-head .actions,
  button,
  .tabs,
  #toast,
  dialog {
    display: none !important;
  }
  .layout {
    display: block;
  }
  main {
    padding: 0;
    max-width: none;
  }
  .card,
  .stat,
  .player-card {
    break-inside: avoid;
    box-shadow: none;
  }
  .print-title {
    display: block;
  }
  .pitch {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
    max-height: 600px;
  }
  .grid2 {
    grid-template-columns: 1fr;
  }
  .page-head h1 {
    font-size: 25px;
  }
  a {
    color: inherit;
  }
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.mini-icon svg {
  width: 16px;
  height: 16px;
}
.card > textarea {
  margin-top: 14px;
}
.roster-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  max-height: 50vh;
  overflow: auto;
  margin-top: 16px;
}
.roster-picker button {
  text-align: left;
  font-size: 12px;
}
.moving-posts .pitch-player {
  touch-action: none;
  user-select: none;
}
.moving-posts .pitch-player {
  cursor: move;
}
.moving-posts .circle {
  box-shadow: 0 0 0 4px #ffffff35;
}
.tactics-toolbar {
  display: flex;
  align-items: end;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.tactics-toolbar label {
  flex: 1;
  min-width: 180px;
}
.tactic-field {
  position: relative;
  aspect-ratio: 0.85;
  background: repeating-linear-gradient(0deg, #356b50 0%, #356b50 12.5%, #3a7255 12.5%, #3a7255 25%);
  border-radius: 15px;
  touch-action: none;
  overflow: hidden;
  min-height: 340px;
}
.tactic-field svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.tactic-actor {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 37px;
  height: 37px;
  padding: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  background: #537ccb;
  border: 2px solid #fff;
  box-shadow: 0 3px 9px #0003;
  touch-action: none;
  z-index: 3;
  cursor: grab;
}
.tactic-actor:hover {
  transform: translate(-50%, -50%);
  background: #4268af;
}
.tactic-actor.red {
  background: #d46a57;
}
.tactic-actor.ball {
  background: #fff9d6;
  color: #493f1c;
  width: 24px;
  height: 24px;
  font-size: 13px;
}
.tactic-actor.cone {
  background: #e4a451;
  border-radius: 7px;
}
.tactic-actor.selected {
  outline: 4px solid #f6e598;
  outline-offset: 2px;
}
#tactics-root .pitch-layout {
  grid-template-columns: minmax(280px, 1.2fr) minmax(240px, 1fr);
}
#tactics-root .pitch-layout .actions {
  margin-top: 12px;
}
#csv-text {
  min-height: 160px;
  font-family: monospace;
  font-size: 12px;
}
@media (max-width: 800px) {
  #tactics-root .pitch-layout {
    grid-template-columns: 1fr;
  }
  .roster-picker {
    grid-template-columns: 1fr;
  }
}
:root {
  --on-primary: #fff;
  --on-accent: #fff;
  --club-accent: #d62839;
  --ink: #292929;
  --muted: #7b7777;
  --bg: #f7f5f5;
  --line: #e8e3e3;
}
.primary,
.nav button.active,
.hero,
#toast {
  color: var(--on-primary);
}
.primary:hover {
  background: var(--green);
  filter: brightness(1.2);
}
.lime,
.pitch-player .circle {
  background: var(--lime);
  color: var(--on-accent);
  border-color: var(--lime);
}
.hero .eyebrow,
.hero .badge {
  color: var(--on-primary);
}
.hero p {
  color: var(--on-primary);
  opacity: 0.8;
}
.brand small,
.eyebrow {
  color: var(--club-accent);
}
.bar,
.progress i {
  background: var(--club-accent);
}
.badge,
.banner,
.notice,
.club,
.calendar-date,
.shirt,
.row .initials,
.resource-icon,
.tabs .active {
  background: color-mix(in srgb, var(--club-accent) 9%, white);
  color: var(--ink);
  border-color: color-mix(in srgb, var(--club-accent) 18%, white);
}
.notice {
  border-left-color: var(--club-accent);
}
.stat .mini-icon,
.player-top .shirt {
  background: color-mix(in srgb, var(--club-accent) 10%, white);
}
button:hover {
  background: color-mix(in srgb, var(--club-accent) 8%, white);
}
.tactic-actor.blue {
  background: var(--club-accent);
  color: var(--on-accent);
}
.tactic-actor.red {
  background: #5278bb;
  color: white;
}
.hero .lime:hover {
  background: var(--lime);
  filter: brightness(1.1);
}
input[type='color'] {
  height: 44px;
  padding: 5px;
}
.position-row {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  margin: 12px 0;
}
.position-row legend {
  font-weight: 700;
}
.hero button:not(.lime) {
  color: var(--ink);
}

.version-badge {
  font-size: 10px;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 3px 6px;
  border-radius: 5px;
}
.brand img {
  background: var(--green);
  border-radius: 8px;
}
.primary:hover {
  color: var(--on-primary);
}

.preset-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.preset-grid .actions {
  margin-top: 12px;
}
.moving-posts .pitch-player {
  cursor: grab;
}
.moving-posts .pitch-player:active {
  cursor: grabbing;
}
@media (max-width: 700px) {
  .preset-grid {
    grid-template-columns: 1fr;
  }
}

.profile-pitch {
  height: 540px;
  max-width: 480px;
  margin: 20px auto;
  touch-action: none;
  user-select: none;
}
.role-zone {
  position: absolute;
  transform: translate(-50%, -50%);
  font-size: 10px;
  color: white;
  background: #143a2aaa;
  border-radius: 4px;
  padding: 2px 4px;
  pointer-events: none;
  white-space: nowrap;
}
.role-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  width: 35px;
  height: 35px;
  background: #d62839;
  color: white;
  z-index: 2;
  cursor: grab;
  touch-action: none;
  padding: 0;
  border: 2px solid white;
}
.role-marker:hover {
  transform: translate(-50%, -50%);
}
fieldset {
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 16px;
  margin: 18px 0;
}
legend {
  font-weight: 700;
}

.brand {
  font-size: 22px;
  line-height: 1.15;
}
.brand span {
  overflow-wrap: anywhere;
  min-width: 0;
}
.app-baseline {
  font-size: 12px;
  line-height: 1.5;
  opacity: 0.8;
  margin: 8px 0 22px;
  overflow-wrap: anywhere;
}
.app-baseline:empty {
  display: none;
}
.mobile-brand {
  overflow-wrap: anywhere;
  max-width: 160px;
}

/* ===================== v2.7 · Refonte de l'ossature ===================== */
:root {
  --tabbar-h: 64px;
  --radius: 14px;
}
.sidebar .label {
  margin: 18px 10px 6px;
  font-size: 10px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--muted);
}
.sidebar .nav {
  margin: 0;
}
.nav button span,
.tabbar button span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tabbar {
  display: none;
}
.sync-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.sync-button svg {
  width: 16px;
  height: 16px;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.status::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9aa39d;
  flex: none;
}
.status[data-state='ok']::before,
.status[data-state='local']::before {
  background: #3f9d58;
}
.status[data-state='pending']::before,
.status[data-state='syncing']::before {
  background: #e0a526;
}
.status[data-state='offline']::before {
  background: #8a8f8c;
}
.status[data-state='error']::before,
.status[data-state='conflict']::before {
  background: #d62839;
}
.banner.slim {
  padding: 8px 14px;
  margin-bottom: 14px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.banner.slim button {
  padding: 4px 8px;
  font-size: 12px;
}
.page-head .actions {
  flex-wrap: nowrap;
  align-items: center;
}
/* Menu « ⋯ » */
details.more {
  position: relative;
}
details.more > summary {
  list-style: none;
  cursor: pointer;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  display: grid;
  place-items: center;
  color: var(--ink);
}
details.more > summary::-webkit-details-marker {
  display: none;
}
details.more > summary svg {
  width: 20px;
  height: 20px;
}
details.more[open] > summary {
  background: color-mix(in srgb, var(--club-accent) 8%, white);
}
.more-list {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 40;
  min-width: 240px;
  max-width: min(320px, 86vw);
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 14px 40px #0002;
  padding: 6px;
  display: flex;
  flex-direction: column;
}
.more-list button {
  border: 0;
  text-align: left;
  border-radius: 8px;
  padding: 11px 12px;
  font-weight: 500;
  white-space: normal;
}
.more-list button:hover {
  transform: none;
}
/* Feuille « Toutes les pages » */
.sheet-group .label {
  font-size: 10px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 14px 0 6px;
}
.sheet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}
.sheet-grid button {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  font-weight: 600;
}
.sheet-grid button svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.sheet-grid button.active {
  background: var(--green);
  color: var(--on-primary);
  border-color: var(--green);
}
.sheet-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
/* Accueil · cette semaine */
.week-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.week-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  text-align: left;
  width: 100%;
  font-weight: 500;
}
.week-item .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
  background: #e0a526;
}
.week-item.urgent .dot {
  background: #d62839;
}
.week-item.done .dot {
  background: #3f9d58;
}
.week-item strong {
  display: block;
  font-weight: 700;
}
.week-item small {
  color: var(--muted);
}
.week-item .go {
  margin-left: auto;
  color: var(--muted);
  font-size: 18px;
}
.bars {
  overflow-x: auto;
}
/* Mini-terrain des postes préférés */
.mini-pitch {
  position: relative;
  aspect-ratio: 68 / 100;
  width: 100%;
  max-width: 190px;
  background: linear-gradient(#2f6b4f, #2a5f46);
  border-radius: 10px;
  overflow: hidden;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.mini-pitch::before {
  content: '';
  position: absolute;
  inset: 6%;
  border: 1.5px solid #ffffff55;
  border-radius: 2px;
}
.mini-pitch::after {
  content: '';
  position: absolute;
  left: 6%;
  right: 6%;
  top: 50%;
  border-top: 1.5px solid #ffffff55;
}
.mini-pitch i {
  position: absolute;
  left: 30%;
  right: 30%;
  height: 12%;
  border: 1.5px solid #ffffff55;
}
.mini-pitch i.top {
  top: 6%;
  border-top: 0;
}
.mini-pitch i.bottom {
  bottom: 6%;
  border-bottom: 0;
}
.mini-pitch .pref {
  position: absolute;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: white;
  z-index: 2;
  line-height: 1;
}
.mini-pitch .pref.r1 {
  width: 30%;
  aspect-ratio: 1;
  background: var(--club-accent);
  border: 2px solid white;
  font-size: 15px;
  box-shadow: 0 3px 10px #0005;
}
.mini-pitch .pref.r2 {
  width: 23%;
  aspect-ratio: 1;
  background: color-mix(in srgb, var(--club-accent) 55%, white);
  border: 2px solid white;
  font-size: 12px;
}
.mini-pitch .pref.r3 {
  width: 19%;
  aspect-ratio: 1;
  background: #ffffff22;
  border: 2px solid white;
  font-size: 11px;
}
.mini-pitch.tiny {
  max-width: 46px;
  border-radius: 5px;
  cursor: inherit;
}
.mini-pitch.tiny .pref {
  font-size: 0 !important;
  border-width: 1.5px !important;
  box-shadow: none !important;
}
.mini-pitch.tiny::before,
.mini-pitch.tiny::after,
.mini-pitch.tiny i {
  border-width: 1px;
}
.profile-head {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  align-items: center;
  margin-bottom: 14px;
}
.pref-legend {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pref-legend li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pref-legend b {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: white;
  background: var(--club-accent);
  flex: none;
}
.pref-legend li:nth-child(2) b {
  background: color-mix(in srgb, var(--club-accent) 55%, white);
}
.pref-legend li:nth-child(3) b {
  background: white;
  color: var(--ink);
  border: 2px solid var(--club-accent);
}
.player-card .player-top {
  align-items: start;
}
.player-card .mini-pitch.tiny {
  width: 40px;
}
/* Jour de match */
.match-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
}
.match-bar select {
  width: auto;
  max-width: 100%;
  flex: 1 1 200px;
}
.match-bar select#formation {
  flex: 0 0 auto;
}
details.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 14px 0;
}
details.panel > summary {
  cursor: pointer;
  padding: 14px 18px;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
details.panel > summary::-webkit-details-marker {
  display: none;
}
details.panel > summary::after {
  content: '▾';
  color: var(--muted);
  transition: 0.2s;
}
details.panel[open] > summary::after {
  transform: rotate(180deg);
}
details.panel > .panel-body {
  padding: 0 18px 18px;
}
details.panel .card {
  box-shadow: none;
  border: 0;
  padding: 0;
  margin: 0;
}
/* Tableau animé · barre de lecture collée au terrain */
.play-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0 6px;
  padding: 8px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.play-bar .play {
  min-width: 52px;
  height: 44px;
  font-size: 18px;
  padding: 0 14px;
}
.play-bar .frames {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  flex: 1 1 120px;
}
.play-bar .frames button {
  min-width: 36px;
  padding: 8px 0;
}
.play-bar .frames button.active {
  background: var(--green);
  color: var(--on-primary);
  border-color: var(--green);
}
.play-bar select {
  width: auto;
}
.play-caption {
  margin: 4px 0 12px;
}
.tool-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tool-row button {
  padding: 8px 12px;
}
/* Copies de sécurité */
.snapshot-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 760px) {
  body {
    padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  }
  .sidebar {
    display: none;
  }
  main {
    padding: 0 14px 24px;
    overflow-x: hidden;
  }
  .topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    height: 56px;
    margin: 0 -14px 14px;
    padding: 0 14px;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
  }
  .mobile-brand {
    max-width: none;
    flex: 1;
    min-width: 0;
    font-size: 18px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .top-actions {
    gap: 6px;
    flex-wrap: nowrap;
  }
  .version-badge {
    display: none;
  }
  .sync-button {
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
  }
  .sync-button span {
    display: none;
  }
  .status {
    font-size: 11px;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .page-head {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
  }
  .page-head .eyebrow {
    display: none;
  }
  .page-head h1 {
    font-size: 26px;
    line-height: 1.1;
    margin: 0;
  }
  .page-head p {
    font-size: 13px;
    margin: 6px 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .page-head .actions {
    flex: none;
  }
  .page-head .actions button {
    font-size: 13px;
    padding: 10px 12px;
  }
  .tabbar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
    padding: 6px 4px env(safe-area-inset-bottom);
    background: white;
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px #0000000d;
  }
  .tabbar button {
    border: 0;
    background: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 4px 2px;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    min-width: 0;
    border-radius: 10px;
  }
  .tabbar button:hover {
    transform: none;
    background: none;
  }
  .tabbar button svg {
    width: 22px;
    height: 22px;
  }
  .tabbar button.active {
    color: var(--club-accent);
  }
  .tabbar button span {
    max-width: 100%;
  }
  #toast {
    bottom: calc(var(--tabbar-h) + 14px);
  }
  .profile-head {
    grid-template-columns: 120px 1fr;
    gap: 14px;
  }
  .more-list {
    position: fixed;
    left: 10px;
    right: 10px;
    top: auto;
    bottom: calc(var(--tabbar-h) + 10px);
    max-width: none;
    padding: 8px;
  }
  .more-list button {
    padding: 14px;
    font-size: 15px;
  }
  dialog#modal {
    width: 100vw;
    max-width: 100vw;
    max-height: 92vh;
    margin: auto 0 0;
    border-radius: 18px 18px 0 0;
  }
}
@media print {
  .tabbar,
  details.more {
    display: none !important;
  }
}
.rating-row {
  display: grid;
  grid-template-columns: 1fr 90px 34px;
  gap: 10px;
  align-items: center;
}
.rating-bar {
  height: 6px;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
}
.rating-bar i {
  display: block;
  height: 100%;
  background: var(--club-accent);
}
details > summary {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.tactics-toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}
.tactics-toolbar select {
  flex: 0 1 300px;
  width: auto;
  min-width: 0;
  max-width: 300px;
}
.tactics-card .tactic-field {
  width: min(100%, calc((100vh - 400px) * 0.85));
  min-height: 0;
  margin: 0 auto;
}
.tactics-card .play-bar,
.tactics-card .play-caption,
.tactics-card #tactic-play-state,
.tactics-card .tool-row {
  max-width: max(min(100%, calc((100vh - 400px) * 0.85)), 340px);
  margin-left: auto;
  margin-right: auto;
}
#tactics-root .pitch-layout {
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 1fr);
}
@media (max-width: 760px) {
  .tactics-card {
    padding: 12px;
  }
  .tactics-card .tactic-field {
    width: 100%;
  }
  .banner.slim {
    font-size: 11px;
    padding: 6px 10px;
    margin-bottom: 10px;
    border-radius: 8px;
  }
  .banner.slim button {
    font-size: 11px;
    padding: 2px 4px;
    white-space: nowrap;
  }
}
@media (max-width: 900px) {
  #tactics-root .pitch-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .page-head {
    flex-direction: column;
    align-items: stretch;
  }
  .page-head .actions {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
  }
  .page-head .actions > button {
    flex: 1 1 auto;
  }
  .page-head .actions details.more {
    margin-left: auto;
  }
  dialog#modal .stat {
    padding: 10px;
  }
  dialog#modal .stat .value {
    font-size: 22px;
  }
  dialog#modal .stat .mini-icon {
    display: none;
  }
}
@media (max-width: 760px) {
  .page-head .actions {
    flex-wrap: nowrap;
  }
  .page-head .actions > button {
    flex: 1 1 0;
    min-width: 0;
    white-space: normal;
    line-height: 1.2;
    min-height: 44px;
  }
  .page-head .actions details.more {
    margin-left: 0;
    flex: none;
  }
  .page-head .actions details.more > summary {
    height: 44px;
  }
}
.row > .actions {
  flex-wrap: nowrap;
  flex: none;
  align-items: center;
}
@media (max-width: 760px) {
  .row {
    gap: 10px;
  }
  .row > .actions button {
    padding: 9px 11px;
  }
}
.tabs .search {
  flex: 1 1 220px;
  max-width: 420px;
}
@media (max-width: 760px) {
  .tabs .search {
    width: 100%;
    max-width: none;
  }
}
/* v2.8 · Convocation par réponse et Spond */
.selection-row:has(.mini-pitch) {
  grid-template-columns: 22px 34px 1fr 128px;
}
.selection-row .mini-pitch.tiny {
  width: 30px;
}
.selection-row small {
  font-size: 11px;
}
.selection-head {
  margin: 16px 0 2px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
}
.spond-note {
  margin: 10px 0 14px;
}
.badge.amber {
  background: #fff3d6;
  border-color: #f0d79a;
}
.link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.link-row .badge {
  margin-left: 4px;
}
/* v2.9 · Cartons en cartes */
.disc-grid .player-card.disc {
  cursor: default;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.disc-icons {
  display: flex;
  gap: 4px;
  align-items: center;
  min-height: 34px;
}
.disc-card {
  width: 22px;
  height: 30px;
  border-radius: 3px;
  box-shadow: 0 2px 6px #0003;
  transform: rotate(-6deg);
}
.disc-card + .disc-card {
  margin-left: -6px;
  transform: rotate(4deg);
}
.disc-card.yellow {
  background: #f4c430;
}
.disc-card.red {
  background: #d62839;
}
.disc-card.red.from-yellow {
  background: linear-gradient(135deg, #d62839 60%, #f4c430 60%);
}
.player-card.disc.has-red {
  border-color: #d62839;
  box-shadow: inset 4px 0 0 #d62839;
}
.player-card.disc.has-yellow {
  box-shadow: inset 4px 0 0 #f4c430;
}
.disc-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 40px;
}
.disc-text small {
  color: var(--muted);
}
.disc-state.red {
  color: #b51d2e;
}
.disc-state.yellow {
  color: #8a6a00;
}
.disc-state.ok {
  color: var(--muted);
  font-weight: 600;
}
.disc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.disc-actions button {
  padding: 7px 10px;
  font-size: 12px;
}
.disc-history {
  border-top: 1px solid var(--line);
  padding-top: 6px;
  font-size: 13px;
}
.disc-history .row {
  padding: 6px 0;
}
@media (max-width: 760px) {
  .players.disc-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .disc-grid .player-card.disc {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    grid-template-areas: 'shirt name icons' 'shirt text text' 'actions actions actions' 'hist hist hist';
    column-gap: 12px;
    row-gap: 6px;
    padding: 14px;
  }
  .disc-grid .player-card.disc .player-top {
    display: contents;
  }
  .disc-grid .player-card.disc .shirt {
    grid-area: shirt;
    transform: scale(0.85);
    transform-origin: top left;
  }
  .disc-grid .player-card.disc .disc-icons {
    grid-area: icons;
    min-height: 0;
  }
  .disc-grid .player-card.disc h3 {
    grid-area: name;
    margin: 0;
    font-size: 17px;
  }
  .disc-grid .player-card.disc .disc-text {
    grid-area: text;
    min-height: 0;
  }
  .disc-grid .player-card.disc .disc-actions {
    grid-area: actions;
  }
  .disc-grid .player-card.disc .disc-history {
    grid-area: hist;
  }
  .disc-history .row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}
/* v2.9 · Réglages, annuler, profil */
.settings-index {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.settings-index button {
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 600;
}
[id^='set-'] {
  scroll-margin-top: 80px;
}
.toast-undo {
  margin-left: 10px;
  background: white;
  color: var(--ink);
  border: 0;
  border-radius: 8px;
  padding: 6px 12px;
  font-weight: 700;
}
button.avatar {
  border: 0;
  cursor: pointer;
  padding: 0;
}
.status[data-action] {
  cursor: pointer;
}

/* ---------- v2.10 · Exercices, passeport jongles, accès adjoint ---------- */
a.button {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  background: white;
  color: var(--green);
  padding: 10px 15px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
}
a.button:hover {
  background: #edf2e5;
}
#access-text {
  width: 100%;
  font-size: 13px;
  margin-top: 8px;
}
dialog#modal.wide {
  width: min(900px, 96vw);
}
.seg-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 0 0 18px;
  max-width: 100%;
  overflow-x: auto;
}
.seg-tabs button {
  border: 0;
  white-space: nowrap;
  padding: 8px 14px;
}
.seg-tabs button.active {
  background: var(--green);
  color: white;
}
.lib-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 20px 0 6px;
}
.lib-filters select,
.lib-filters input {
  width: auto;
  flex: 1 1 180px;
}
.drill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.drill-card {
  cursor: pointer;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: 0.18s;
}
.drill-card:hover,
.drill-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px #173f3618;
}
.drill-card h3 {
  margin: 2px 0 0;
  font-size: 16px;
  letter-spacing: -0.3px;
}
.drill-card p {
  margin: 0;
}
.drill-foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}
.badge.day-lundi {
  background: #e5eefb;
  color: #2c4f86;
}
.badge.day-jeudi {
  background: #fdecdf;
  color: #8c4a20;
}
.drill-svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}
.drill-svg.thumb {
  aspect-ratio: 16 / 10;
  max-height: 150px;
}
.ds-field {
  fill: #2f6b4f;
}
.ds-line,
.ds-zone {
  fill: none;
  stroke: #ffffff80;
  stroke-width: var(--sw);
}
.ds-zone {
  stroke-dasharray: calc(var(--sw) * 4);
  fill: #ffffff0d;
}
.ds-goal {
  fill: white;
}
.ds-cone {
  fill: #f5a524;
}
.ds-trail {
  fill: none;
  stroke: #ffffffa0;
  stroke-width: var(--sw);
  stroke-dasharray: calc(var(--sw) * 3) calc(var(--sw) * 3);
}
.ds-trail.ball {
  stroke: #d5ed91;
  stroke-dasharray: none;
  opacity: 0.8;
}
.ds-p {
  stroke: white;
  stroke-width: calc(var(--sw) * 1.4);
}
.ds-p.b {
  fill: #2f6fdc;
}
.ds-p.r {
  fill: #d8453b;
}
.ds-p.g {
  fill: #1d1d1d;
}
.ds-p.j {
  fill: #f2c94c;
}
.ds-ball {
  fill: white;
  stroke: #173f36;
  stroke-width: var(--sw);
}
.drill-detail {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 20px;
  align-items: start;
}
.drill-caption {
  margin: 8px 0 0;
  min-height: 1.5em;
  font-weight: 600;
  color: var(--green);
}
.drill-stage .actions {
  justify-content: flex-start;
  margin-top: 6px;
}
.drill-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
  margin: 12px 0;
}
.drill-facts div {
  border-top: 1px solid var(--line);
  padding-top: 6px;
}
.drill-facts dt {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.drill-facts dd {
  margin: 0;
  font-weight: 600;
}
.works {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}
.works-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #f3f6ee;
  border-radius: 10px;
  padding: 10px;
}
.works-col span {
  font-size: 13px;
}
.panel.learn {
  margin-top: 14px;
  border-left: 3px solid var(--lime);
}
.grid2.tight {
  gap: 10px;
  margin-top: 10px;
}
.mini-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 110px;
  margin: 10px 0;
}
.mini-bars div {
  flex: 1;
  max-width: 44px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  font-size: 11px;
}
.mini-bars i {
  display: block;
  width: 100%;
  background: var(--green);
  border-radius: 4px 4px 0 0;
  min-height: 3px;
}
.mini-bars small {
  color: var(--muted);
}
.inline-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.inline-form input {
  width: auto;
  flex: 1 1 110px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
button.chip {
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 13px;
}
.session-pick {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  margin: 6px 0;
}
.session-pick input[type='date'] {
  width: auto;
  display: inline-block;
}
.jg-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.jg-name {
  flex: 1 1 200px;
  min-width: 0;
}
.jg-name button.link {
  padding: 0;
  border: 0;
  background: none;
}
.jg-track {
  height: 6px;
  background: #edf1e7;
  border-radius: 99px;
  margin: 5px 0 3px;
  overflow: hidden;
}
.jg-track i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--green), #6aa86b);
}
.jg-form {
  display: flex;
  gap: 6px;
  align-items: center;
}
.jg-form input {
  width: 82px;
}
.jg-form button {
  padding: 9px 11px;
}
.jg-form .ok {
  background: #2e7d4f;
  border-color: #2e7d4f;
  color: white;
}
.jg-ladder {
  list-style: none;
  padding: 0;
  margin: 8px 0;
  columns: 2;
  column-gap: 14px;
}
.jg-ladder li {
  break-inside: avoid;
  padding: 4px 0;
  font-size: 13px;
}
.jg-ladder li b {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #edf1e7;
  text-align: center;
  font-size: 11px;
  line-height: 22px;
  margin-right: 6px;
}
.jg-ladder li.done b {
  background: var(--green);
  color: white;
}
.jg-ladder li.current b {
  background: var(--lime);
}
.jg-ladder li.current {
  font-weight: 700;
}
@media (max-width: 760px) {
  .drill-detail {
    grid-template-columns: 1fr;
  }
  .jg-ladder {
    columns: 1;
  }
  .jg-form input {
    width: 70px;
  }
  .drill-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .drill-card .small.muted {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .drill-card {
    transition: none;
  }
}

.form-error {
  background: #fdecea;
  color: #8a1c13;
  border: 1px solid #f3c2bc;
  border-radius: 10px;
  padding: 10px 12px;
  margin: 14px 0 0;
  font-weight: 600;
}

/* ---------- v2.11 · fiches détaillées et progression d'équipe ---------- */
.badge.fff { background: #e4ecfb; color: #1d3f8a; }
.say-box { background: #f3f8e9; border-left: 4px solid #6aa86b; border-radius: 10px; padding: 12px 14px; margin: 16px 0; }
.say-box p { margin: 4px 0 0; font-size: 15px; }
.drill-facts .span2 { grid-column: 1 / -1; }
.check-list { list-style: none; padding: 0; }
.check-list li { padding: 3px 0 3px 22px; position: relative; }
.check-list li::before { content: '✓'; position: absolute; left: 0; color: #2e7d4f; font-weight: 700; }
.errors { display: grid; gap: 6px; }
.errors div { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: start; background: #fbf6f2; border-radius: 8px; padding: 8px 10px; font-size: 13px; }
.errors b { color: var(--muted); }
.drill-source { font-size: 12px; color: var(--muted); margin-top: 18px; border-top: 1px solid var(--line); padding-top: 10px; }
.drill-source.fff { color: #1d3f8a; }
.tp-head { display: grid; gap: 10px; }
.tp-counts { display: flex; gap: 6px; flex-wrap: wrap; }
.tp-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.tp-main { flex: 1 1 320px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tp-main button.link { padding: 0; border: 0; background: none; text-align: left; }
.tp-levels { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.tp-levels small { display: block; font-size: 11px; color: var(--muted); }
.dots { display: inline-flex; gap: 3px; }
.dots i { width: 12px; height: 12px; border-radius: 50%; background: #e5e9df; display: block; }
.dots i.on { background: var(--green); }
.dots.target i.on { background: #b9c7a9; }
.tp-status { font-size: 12px; font-weight: 700; border-radius: 99px; padding: 3px 10px; white-space: nowrap; }
.tp-status.ok { background: #dff3e4; color: #1f6b38; }
.tp-status.close { background: #fdf3d8; color: #7a5a08; }
.tp-status.behind { background: #fde4e1; color: #8a1c13; }
.tp-status.todo { background: #eef0eb; color: var(--muted); }
.small-chips button.chip { font-size: 12px; padding: 4px 10px; }
.tp-rate { border: 0; padding: 6px 0; margin: 0; border-top: 1px solid var(--line); }
.tp-rate legend { font-weight: 600; font-size: 14px; padding: 0; }
.tp-scale { display: flex; gap: 6px; margin-top: 6px; }
.tp-scale label { cursor: pointer; }
.tp-scale input { position: absolute; opacity: 0; }
.tp-scale span { display: inline-flex; width: 40px; height: 36px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 9px; font-weight: 700; }
.tp-scale input:checked + span { background: var(--green); color: white; border-color: var(--green); }
.tp-scale input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }
@media (max-width: 760px) { .errors div { grid-template-columns: 1fr; } .errors b { display: none; } }

button.whatsapp, a.whatsapp { background: #25d366; border-color: #25d366; color: #fff; }
button.whatsapp:hover { background: #1fb457; }
#callup-text { width: 100%; font-size: 14px; line-height: 1.5; }

.plan-list { padding-left: 20px; margin: 6px 0; }
.plan-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); }
.plan-list li .actions { margin: 0; gap: 2px; flex-wrap: nowrap; }
.plan-list button.link, .plan-cand button.link { padding: 4px 8px; }
.plan-cands { display: grid; gap: 0; max-height: 46vh; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.plan-cand { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 12px; border-top: 1px solid var(--line); }
.plan-cand:first-child { border-top: 0; }
.plan-cand .actions { margin: 0; flex-wrap: nowrap; }
.badge.amber { background: #fdf3d8; color: #7a5a08; }

button.spond { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }
button.spond:hover { background: #1e40af; }

/* v2.13.2 · le menu de gauche défile quand l'écran est trop bas */
@media (min-width: 761px) {
  .sidebar {
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
}
