.match-head h1{font-size:clamp(1.75rem,4vw,2.7rem);overflow-wrap:anywhere}
.match-manager{--match-pink:var(--accent,#e65b9c);--match-navy:var(--ink,#29235c);--match-lavender:var(--violet,#797ab8);--match-soft:#f3f0fb;--match-soft-pink:#fbe7f0;--match-line:var(--line,#dddbea);padding-bottom:94px}
.match-manager .button-primary{background:var(--match-pink);border-color:var(--match-pink);color:#fff}
.match-manager button:focus-visible,.match-manager select:focus-visible,.match-manager input:focus-visible{outline:3px solid var(--match-pink);outline-offset:3px}
.match-live-score{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:16px;align-items:center;padding:18px;margin-bottom:16px;border:1px solid var(--match-line);box-shadow:var(--shadow)}
.score-team{display:flex;flex-direction:column;gap:8px;min-width:0}.score-team>strong{font-size:1rem;color:var(--match-navy);overflow-wrap:anywhere}.score-team-away{text-align:right;align-items:flex-end}
.score-center{text-align:center;min-width:130px}.score-value{display:flex;justify-content:center;align-items:center;gap:12px;font-size:2.4rem;line-height:1;font-weight:900;color:var(--match-navy);font-variant-numeric:tabular-nums}.score-value span:first-child{color:var(--match-pink)}.score-value b{font-weight:600;color:var(--muted)}.score-period{display:block;margin-top:6px;color:var(--muted);font-size:.9rem}.score-center>strong{display:inline-block;margin-top:6px;padding:7px 16px;border-radius:12px;background:var(--match-soft-pink);color:var(--match-pink);font-size:1.35rem;font-variant-numeric:tabular-nums}
.score-actions{display:flex;gap:5px;flex-wrap:wrap}.score-team-away .score-actions{justify-content:flex-end}.score-actions button{border:1px solid var(--match-line);background:var(--surface);color:var(--match-navy);border-radius:9px;padding:6px 8px;font:inherit;font-weight:800;cursor:pointer;display:flex;flex-direction:column;align-items:center;line-height:1.05}.score-actions button b{font-size:.95rem}.score-actions button small{font-size:.62rem;font-weight:700;color:var(--muted);margin-top:2px}.score-actions button:hover{border-color:var(--match-pink);color:var(--match-pink)}.score-actions button:hover small{color:var(--match-pink)}.score-actions button:disabled{opacity:.45;cursor:not-allowed}
.score-main-actions{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.score-main-actions .button{min-height:46px}.score-main-actions .button:only-child{grid-column:1/-1}.score-main-actions .button-card{background:var(--match-soft);border-color:var(--match-lavender);color:var(--match-navy);font-weight:800}.match-ended{grid-column:1/-1;text-align:center;font-weight:800;color:var(--match-pink);padding:10px;background:var(--match-soft-pink);border-radius:12px}
.match-next:not(:empty){margin:0 0 14px;padding:10px 14px;border-radius:12px;background:var(--match-soft);color:var(--match-navy);font-weight:800;border-left:4px solid var(--match-pink)}
.match-live-zone{display:grid;gap:16px}.match-setup-callout{border:2px solid var(--match-lavender)}
.live-pitch{position:relative;overflow:hidden;border-radius:22px;background:linear-gradient(180deg,#247c55,#1d6b4b);min-height:650px;padding:36px 22px;box-shadow:0 12px 28px rgba(41,35,92,.13)}
.live-pitch::before{content:"";position:absolute;inset:14px;border:3px solid rgba(255,255,255,.78);border-radius:8px;pointer-events:none}.live-pitch::after{content:"";position:absolute;left:14px;right:14px;top:50%;border-top:2px solid rgba(255,255,255,.72);pointer-events:none}
.live-pitch-lines{position:absolute;inset:0;background:repeating-linear-gradient(180deg,transparent 0,transparent 19%,rgba(255,255,255,.42) 19.2%,transparent 19.6%);opacity:.9;pointer-events:none}
.live-pitch-rows{position:relative;z-index:1;height:100%;display:flex;flex-direction:column;justify-content:space-between;gap:22px}.live-pitch-row{display:grid;gap:10px;justify-content:center}.live-pitch-row-1{grid-template-columns:minmax(110px,150px)}.live-pitch-row-2{grid-template-columns:repeat(2,minmax(110px,150px))}.live-pitch-row-3{grid-template-columns:repeat(3,minmax(100px,145px))}.live-pitch-row-4{grid-template-columns:repeat(4,minmax(90px,130px))}
.live-slot{min-width:0;display:flex;align-items:center;gap:8px;text-align:left;background:#fff;color:var(--match-navy);border:2px solid transparent;border-radius:14px;padding:9px 10px;box-shadow:0 5px 12px rgba(10,20,30,.22);font:inherit;cursor:pointer}.live-slot:hover{border-color:var(--match-pink);transform:translateY(-1px)}.live-slot:disabled{cursor:default}.live-slot-empty{opacity:.72}.live-slot-sanction{background:var(--match-soft-pink);border-color:var(--match-pink);cursor:default}.live-slot-sanction .live-number{background:var(--match-lavender)}.live-number{display:grid;place-items:center;width:34px;height:34px;flex:0 0 34px;border-radius:50%;background:var(--match-pink);color:#fff;font-weight:900}.live-person{display:flex;flex-direction:column;min-width:0}.live-person strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.live-person small{color:var(--muted);font-size:.78rem;margin-top:2px}
.live-bench h2{margin:0}.bench-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(105px,1fr));gap:10px;margin-top:14px}.bench-card{display:grid;grid-template-columns:34px 1fr;grid-template-areas:"num name" "num time";align-items:center;gap:2px 8px;padding:10px;border:1px solid var(--match-line);border-radius:12px;background:var(--surface);color:var(--match-navy);font:inherit;text-align:left;cursor:pointer}.bench-card:hover{border-color:var(--match-pink);background:var(--match-soft-pink)}.bench-card:disabled{cursor:default}.bench-number{grid-area:num;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--match-lavender);color:#fff;font-weight:800}.bench-card strong{grid-area:name;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bench-card small{grid-area:time;color:var(--muted)}
.match-change-main{width:100%;margin-top:14px;min-height:52px;font-size:1.05rem;font-weight:900}.last-change{margin-top:12px;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 14px;border-radius:12px;background:var(--match-soft);color:var(--match-navy);font-weight:800}.last-change .button{flex-shrink:0}
.match-live-nav{position:sticky;bottom:0;z-index:20;display:grid;grid-template-columns:repeat(4,1fr);gap:4px;margin:18px -4px -94px;padding:8px 4px calc(8px + env(safe-area-inset-bottom));background:color-mix(in srgb,var(--surface) 94%,transparent);backdrop-filter:blur(10px);border-top:1px solid var(--match-line)}.match-live-nav button{border:0;background:transparent;color:var(--muted);font:inherit;font-size:.8rem;font-weight:700;padding:7px 3px;border-radius:10px;cursor:pointer}.match-live-nav button span{display:block;font-size:1.25rem;line-height:1.2;margin-bottom:2px}.match-live-nav button.active{color:var(--match-pink);background:var(--match-soft-pink)}
.match-section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.match-players,.match-plans{padding:0;margin:12px 0 0;list-style:none}.match-players li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;border-top:1px solid var(--match-line);overflow-wrap:anywhere}.match-plans li{padding:14px 0;border-top:1px solid var(--match-line)}.match-plan-heading{display:flex;justify-content:space-between;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:8px}.match-plan-status{display:inline-block;font-size:.875rem;font-weight:700;padding:4px 9px;border-radius:8px;background:var(--match-soft)}.match-plan-done .match-plan-status{background:#e6f6eb;color:#174e36}.match-plan-blocked .match-plan-status{background:#fff0cc;color:#805000}.match-plans [data-match-due]{font-weight:800;color:var(--match-pink)}
.change-history{list-style:none;padding:0;margin:14px 0 0}.change-history li{display:grid;grid-template-columns:58px 1fr auto;gap:10px;align-items:center;padding:12px 0;border-top:1px solid var(--match-line)}.change-history time{font-weight:900;color:var(--match-pink)}.change-history small{color:var(--muted)}
/* COACHSL-MATCH-TIMELINE-CENTERED-1 */
.match-timeline-centered{position:relative;display:grid;gap:18px;padding:10px 0 16px}.match-timeline-centered::before{content:"";position:absolute;top:12px;bottom:18px;left:50%;width:2px;transform:translateX(-1px);background:var(--match-line);border-radius:2px}.timeline-row{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 82px minmax(0,1fr);align-items:start;min-height:82px}.timeline-axis{grid-column:2;grid-row:1;display:flex;flex-direction:column;align-items:center;gap:5px;position:relative;z-index:2}.timeline-axis time{display:inline-block;padding:2px 7px;border-radius:999px;background:var(--surface);color:var(--match-navy);font-size:.78rem;font-weight:900;font-variant-numeric:tabular-nums;white-space:nowrap}.timeline-dot{display:grid;place-items:center;width:32px;height:32px;border:2px solid var(--surface);border-radius:50%;background:var(--match-soft-pink);color:var(--match-pink);font-weight:900;box-shadow:0 0 0 2px var(--match-line)}.timeline-card{grid-row:1;background:var(--surface);border:1px solid var(--match-line);border-radius:14px;padding:12px 14px;box-shadow:var(--shadow);max-width:min(440px,94%);overflow-wrap:anywhere}.timeline-card strong,.timeline-card span{display:block}.timeline-card span{margin-top:3px;color:var(--muted)}.timeline-row-home .timeline-card{grid-column:1;justify-self:end;text-align:right;margin-right:12px;border-right:4px solid var(--match-pink)}.timeline-row-away .timeline-card{grid-column:3;justify-self:start;text-align:left;margin-left:12px;border-left:4px solid var(--match-lavender)}.timeline-row-neutral{min-height:104px}.timeline-row-neutral .timeline-card{grid-column:1 / -1;justify-self:center;align-self:end;text-align:center;max-width:min(360px,70%);margin-top:48px;background:var(--match-soft);border-color:var(--match-lavender)}.timeline-row-neutral .timeline-axis{z-index:3}.timeline-card .timeline-team{font-size:.76rem;font-weight:800;color:var(--match-lavender);text-transform:uppercase;letter-spacing:.04em}
.match-stat-row{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.match-stat-row>div{padding:12px;border:1px solid var(--match-line);border-radius:12px;background:var(--match-soft)}.match-stat-row span,.match-stat-row strong{display:block}.match-stat-row span{font-size:.78rem;color:var(--muted)}.match-stat-row strong{font-size:1.35rem;margin-top:2px;color:var(--match-navy)}.match-table-wrap{overflow:auto;margin-top:14px}.match-roster-table{width:100%;border-collapse:collapse}.match-roster-table th,.match-roster-table td{padding:11px 8px;border-bottom:1px solid var(--match-line);text-align:left}.match-roster-table th{font-size:.82rem;color:var(--muted);background:var(--match-soft)}.match-roster-table td small{display:block;color:var(--muted);margin-top:2px}.roster-num{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--match-pink);color:#fff;font-weight:900}.roster-status{display:inline-block;padding:5px 10px;border-radius:999px;background:var(--match-soft);font-size:.82rem;font-weight:800}.roster-status-terrain{background:#e5f5ea;color:#17613c}.roster-status-blesse{background:var(--match-soft-pink);color:#9c285e}
.match-change-form .match-reasons{border:0;padding:0;margin:16px 0}.match-change-form .match-reasons legend{font-weight:800;margin-bottom:8px}.match-reasons{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}.match-reasons legend{grid-column:1/-1}.match-reasons label{margin:0}.match-reasons input{position:absolute;opacity:0;pointer-events:none}.match-reasons span{display:block;text-align:center;padding:10px 5px;border:1px solid var(--match-line);border-radius:10px;cursor:pointer;color:var(--match-navy);font-weight:700}.match-reasons input:checked+span{background:var(--match-soft-pink);border-color:var(--match-pink);color:var(--match-pink)}.change-preview{display:flex;align-items:center;justify-content:center;gap:16px;margin:14px 0;padding:14px;border-radius:12px;background:var(--match-soft)}.change-preview .out,.change-preview .in{font-weight:900;color:var(--match-navy)}.change-preview b{color:var(--match-lavender);font-size:1.4rem}
.match-formation{margin-top:18px}.formation-pitch{position:relative;isolation:isolate;background:linear-gradient(180deg,#247c55,#1d6b4b);border-radius:16px;padding:44px 20px;overflow:hidden}.formation-lines{position:absolute;inset:0;width:100%;height:100%;fill:none;stroke:#d0e9dc;stroke-width:2;opacity:.65;pointer-events:none;z-index:-1}.formation-dashed{stroke-dasharray:10 9}.formation-rows{display:grid;gap:20px}.formation-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.formation-pair{grid-template-columns:repeat(2,minmax(0,1fr));width:66.67%;justify-self:center}.formation-slot{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;text-align:center;gap:6px;width:100%;min-width:0;min-height:122px;padding:12px 8px;background:#fff;color:#29235c;border:2px solid #d8d6ea;border-radius:14px;font:inherit;overflow-wrap:anywhere;box-shadow:0 3px 10px #00261c33}.formation-slot.filled{border-color:var(--match-pink)}button.formation-slot{cursor:pointer;position:relative;z-index:3;pointer-events:auto}.formation-rows{position:relative;z-index:2}.formation-number{display:grid;place-items:center;background:var(--match-pink);color:#fff;border-radius:50%;font-size:1rem;font-weight:800;width:32px;height:32px;flex-shrink:0}.formation-position{font-size:.875rem;line-height:1.3}.formation-name{font-size:.9375rem;line-height:1.4}.formation-bench{margin-top:22px}.formation-bench h3{font-size:1.1rem;margin:0}

/* COACHSL-MATCH-SCORE-CARDS-1 */
.match-cards{margin:0 0 16px}.match-cards h2{margin:0}.match-card-list{display:grid;gap:9px;margin-top:12px}.match-card-item{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:10px;align-items:center;padding:11px 12px;border:1px solid var(--match-line);border-left:5px solid var(--match-lavender);border-radius:12px;background:var(--surface)}.match-card-symbol{font-size:1.35rem}.match-card-item strong,.match-card-item small{display:block}.match-card-item small{margin-top:3px;color:var(--muted)}.match-card-item small b{color:var(--match-pink);font-variant-numeric:tabular-nums}.match-card-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.match-card-white{border-left-color:#d8d8df}.match-card-yellow{border-left-color:#e4b600}.match-card-red{border-left-color:#d74b61}.match-card-blue{border-left-color:#456fc6}.roster-status-carton-blanc{background:#f1f1f4;color:#444}.roster-status-carton-jaune{background:#fff2bd;color:#725900}.roster-status-carton-rouge{background:#fbe1e6;color:#a0223b}.roster-status-carton-bleu{background:#e1eafa;color:#264d96}.roster-status-peut-revenir{background:#e8f4ee;color:#17613c}
#dialog .match-card-form,#dialog .match-score-form{--match-pink:var(--accent,#e65b9c);--match-navy:var(--ink,#29235c);--match-lavender:var(--violet,#797ab8);--match-soft:#f3f0fb;--match-soft-pink:#fbe7f0;--match-line:var(--line,#dddbea)}
.card-colors,.score-types{border:0;padding:0;margin:14px 0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.score-types{grid-template-columns:repeat(2,minmax(0,1fr))}.card-colors legend,.score-types legend{grid-column:1/-1;font-weight:800;margin-bottom:2px}.card-colors label,.score-types label{margin:0}.card-colors input,.score-types input{position:absolute;opacity:0;pointer-events:none}.card-colors span,.score-types span{display:block;text-align:center;padding:10px 6px;border:1px solid var(--match-line);border-radius:10px;cursor:pointer;color:var(--match-navy);font-weight:800;background:var(--surface,#fff)}.card-colors input:checked+span,.score-types input:checked+span{background:var(--match-soft-pink);border-color:var(--match-pink);color:var(--match-pink);box-shadow:0 0 0 2px rgba(230,91,156,.18)}
@media(max-width:700px){.match-live-score{grid-template-columns:1fr auto 1fr;padding:14px 10px;gap:8px}.score-team>strong{font-size:.82rem}.score-center{min-width:100px}.score-value{font-size:2rem;gap:7px}.score-actions button{padding:5px 6px;font-size:.78rem}.score-main-actions{gap:6px}.score-main-actions .button{padding:9px 5px;font-size:.82rem}.live-pitch{min-height:560px;padding:28px 10px}.live-pitch-rows{gap:14px}.live-pitch-row{gap:5px}.live-pitch-row-4{grid-template-columns:repeat(4,minmax(70px,1fr))}.live-pitch-row-3{grid-template-columns:repeat(3,minmax(80px,1fr))}.live-pitch-row-2{grid-template-columns:repeat(2,minmax(90px,130px))}.live-slot{padding:7px 6px;gap:5px;border-radius:10px}.live-number{width:29px;height:29px;flex-basis:29px;font-size:.85rem}.live-person strong{font-size:.78rem}.live-person small{font-size:.7rem}.bench-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.match-stat-row{grid-template-columns:repeat(2,1fr)}.match-reasons{grid-template-columns:repeat(2,1fr)}.match-reasons label:last-child{grid-column:1/-1}.change-history li{grid-template-columns:48px 1fr}.change-history small{grid-column:2}.last-change{align-items:flex-start;flex-direction:column}.last-change .button{width:100%}.timeline-row{grid-template-columns:minmax(0,1fr) 66px minmax(0,1fr)}.timeline-card{padding:10px 9px;font-size:.82rem;max-width:96%}.timeline-row-home .timeline-card{margin-right:6px}.timeline-row-away .timeline-card{margin-left:6px}.timeline-row-neutral .timeline-card{max-width:78%;margin-top:46px}.timeline-axis time{font-size:.7rem;padding:2px 5px}.timeline-dot{width:28px;height:28px}}
@media(max-width:420px){.live-pitch{min-height:520px}.live-pitch-row-4{grid-template-columns:repeat(4,minmax(62px,1fr))}.live-person strong{font-size:.72rem}.live-person small{font-size:.66rem}.score-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px}.score-actions button{padding:5px 2px;font-size:.7rem}.score-actions button small{display:none}.score-team{justify-content:center}.score-team-away{align-items:flex-end}.match-live-score{grid-template-columns:1fr 104px 1fr}.score-value{font-size:1.7rem}.score-center>strong{font-size:1.08rem}.score-main-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.match-live-nav button{font-size:.7rem}.match-stat-row strong{font-size:1.15rem}.match-card-item{grid-template-columns:34px 1fr}.match-card-actions{grid-column:1/-1}.match-card-actions .button{width:100%}.card-colors{grid-template-columns:repeat(2,1fr)}.timeline-row{grid-template-columns:minmax(0,1fr) 54px minmax(0,1fr);min-height:88px}.timeline-card{padding:9px 7px;font-size:.75rem;line-height:1.28}.timeline-row-neutral .timeline-card{max-width:86%;margin-top:44px}.timeline-axis time{font-size:.66rem}.timeline-dot{width:26px;height:26px;font-size:.8rem}}
@media(prefers-color-scheme:dark){.match-manager{--match-soft:#332e50;--match-soft-pink:#502c46}.live-slot,.bench-card{background:#fff;color:#29235c}.score-team>strong,.score-center .score-value,.match-stat-row strong{color:var(--ink)}.match-timeline .timeline-row>div{background:var(--surface)}}
/* COACHSL-MATCH-REASONS-VISUAL-FIX-2
   Le dialog global est en dehors de .match-manager. On applique donc directement
   la palette Stade Leonien au formulaire de remplacement et a l option cochee. */
#dialog .match-change-form{
  --match-pink:var(--accent,#e65b9c);
  --match-navy:var(--ink,#29235c);
  --match-lavender:var(--violet,#797ab8);
  --match-soft:#f3f0fb;
  --match-soft-pink:#fbe7f0;
  --match-line:var(--line,#dddbea);
}
#dialog .match-change-form .match-reasons span{
  border-color:var(--match-line,#dddbea);
  color:var(--match-navy,#29235c);
  background:var(--surface,#fff);
  transition:background .12s ease,border-color .12s ease,color .12s ease,box-shadow .12s ease,transform .12s ease;
}
#dialog .match-change-form .match-reasons input:checked + span{
  background:var(--match-soft-pink,#fbe7f0) !important;
  border-color:var(--match-pink,#e65b9c) !important;
  color:var(--match-pink,#e65b9c) !important;
  box-shadow:0 0 0 2px rgba(230,91,156,.18);
  transform:translateY(-1px);
}


/* COACHSL-MATCH-END-SUMMARY-1 */

.match-summary-page{
  display:grid;
  gap:16px;
  padding-bottom:32px;
}

.match-summary-head{
  margin-bottom:0;
}

.match-summary-score{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  gap:18px;
  align-items:center;
  padding:24px;
}

.match-summary-team{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.match-summary-team span{
  color:var(--muted);
  font-weight:800;
}

.match-summary-team strong{
  font-size:clamp(2.5rem,8vw,4.5rem);
  line-height:1;
  color:var(--match-pink);
}

.match-summary-away{
  text-align:right;
  align-items:flex-end;
}

.match-summary-away strong{
  color:var(--match-navy);
}

.match-summary-score-center{
  display:grid;
  justify-items:center;
  gap:5px;
  color:var(--muted);
  text-align:center;
}

.match-summary-score-center span{
  font-size:.78rem;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.match-summary-score-center b{
  font-size:2rem;
  color:var(--muted);
}

.match-summary-score-center small{
  font-size:.9rem;
  font-weight:800;
}

.match-summary-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:0;
}

.match-summary-kpis{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}

.match-summary-kpis .card{
  box-shadow:none;
}

.match-summary-kpis span,
.match-summary-kpis strong{
  display:block;
}

.match-summary-kpis span{
  color:var(--muted);
  font-size:.8rem;
}

.match-summary-kpis strong{
  margin-top:4px;
  font-size:1.65rem;
  color:var(--match-navy);
}

.match-summary-section{
  overflow:hidden;
}

.match-summary-table-wrap{
  overflow:auto;
  margin-top:14px;
}

.match-summary-table{
  width:100%;
  min-width:760px;
  border-collapse:collapse;
}

.match-summary-table th,
.match-summary-table td{
  padding:11px 10px;
  border-bottom:1px solid var(--match-line);
  text-align:left;
  vertical-align:top;
}

.match-summary-table th{
  background:var(--match-soft);
  color:var(--muted);
  font-size:.78rem;
}

.match-summary-table td{
  font-size:.9rem;
}

.match-summary-table td small{
  display:block;
  margin-top:3px;
  color:var(--muted);
}

.match-summary-number{
  white-space:nowrap;
  font-variant-numeric:tabular-nums;
}

.match-summary-empty{
  margin:14px 0 0;
  color:var(--muted);
}

.match-summary-chronology
.match-timeline{
  margin-top:16px;
}


@media(max-width:700px){

  .match-summary-score{
    grid-template-columns:1fr auto 1fr;
    gap:8px;
    padding:18px 12px;
  }

  .match-summary-team strong{
    font-size:2.5rem;
  }

  .match-summary-team span{
    font-size:.78rem;
  }

  .match-summary-kpis{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .match-summary-actions .button{
    flex:1 1 160px;
  }
}


@media print{

  body{
    background:#fff !important;
  }

  .topbar,
  .bottom-nav,
  .match-summary-actions,
  .match-summary-head>.button{
    display:none !important;
  }

  .match-manager.match-summary-page{
    padding:0 !important;
  }

  .match-summary-page .card{
    box-shadow:none !important;
    break-inside:avoid;
  }

  .match-summary-section{
    break-before:auto;
  }

  .match-summary-table{
    min-width:0;
    font-size:9pt;
  }

  .match-summary-table th,
  .match-summary-table td{
    padding:6px 5px;
  }

  .timeline-row{
    break-inside:avoid;
  }
}


/* COACHSL-MATCH-ENGINE-V2-1 */

.match-second-half{
  min-height:52px;
  font-weight:900;
}

.score-period{
  font-weight:800;
}



/* COACHSL-MATCH-LIVE-UI-V2-1 */

.match-live-ui-v2{
  display:grid;
  gap:16px;
  padding-bottom:100px;
}

.match-live-ui-v2 .match-head{
  margin-bottom:0;
}


/* SCORE / CHRONO */

.match-v2-score{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(150px,220px) minmax(0,1fr);
  align-items:center;
  gap:16px;
  margin:0;
  padding:22px;
  border:2px solid var(--match-line);
}

.match-v2-team{
  min-width:0;
}

.match-v2-team-name{
  display:block;
  color:var(--muted);
  font-size:.9rem;
  font-weight:900;
  line-height:1.2;
}

.match-v2-team>strong{
  display:none;
}

.match-v2-team-away{
  text-align:right;
}

.match-v2-center{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
}

.match-v2-state{
  margin-bottom:8px;
  color:var(--muted);
  font-size:.7rem;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.match-v2-scoreline{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  font-size:clamp(2.7rem,8vw,4.4rem);
  font-weight:900;
  line-height:1;
  color:var(--match-navy);
  font-variant-numeric:tabular-nums;
}

.match-v2-scoreline span:first-child{
  color:var(--match-pink);
}

.match-v2-scoreline b{
  color:var(--muted);
  font-weight:500;
}

.match-v2-clock{
  display:block;
  margin-top:12px;
  padding:9px 18px;
  border-radius:14px;
  background:var(--match-soft-pink);
  color:var(--match-pink);
  font-size:clamp(1.45rem,5vw,2rem);
  font-variant-numeric:tabular-nums;
}

.match-v2-clock-actions{
  grid-column:1/-1;
  display:flex;
  justify-content:center;
  gap:10px;
}

.match-v2-clock-actions .button{
  min-width:170px;
  min-height:50px;
  font-weight:900;
}

.match-v2-clock-actions .match-main-clock-button:only-child{
  min-width:260px;
}

.match-halftime-main{
  border-color:var(--match-lavender);
  background:var(--match-soft);
  color:var(--match-navy);
}


/* ACTIONS RAPIDES */

.match-v2-actions{
  margin:0;
  padding:18px;
}

.match-v2-section-title{
  margin-bottom:14px;
}

.match-v2-section-title h2{
  margin-top:3px;
}

.match-v2-points{
  display:grid;
  grid-template-columns:minmax(0,2fr) minmax(220px,.8fr);
  gap:14px;
}

.match-v2-points-team{
  padding:14px;
  border:1px solid var(--match-line);
  border-radius:16px;
}

.match-v2-points-team h3{
  margin:0 0 10px;
  font-size:.9rem;
}

.match-v2-point-buttons{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}

.match-v2-point{
  min-height:70px;
  border:1px solid var(--match-line);
  border-radius:14px;
  background:var(--surface);
  color:var(--ink);
  cursor:pointer;
  font:inherit;
}

.match-v2-point-home{
  background:var(--match-soft-pink);
  border-color:color-mix(
    in srgb,
    var(--match-pink) 45%,
    var(--match-line)
  );
}

.match-v2-point strong,
.match-v2-point span{
  display:block;
}

.match-v2-point strong{
  color:var(--match-pink);
  font-size:1.35rem;
}

.match-v2-point span{
  margin-top:3px;
  font-size:.76rem;
  font-weight:800;
}

.match-v2-points-away{
  background:var(--match-soft);
}

.match-v2-opponent-buttons{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:7px;
}

.match-v2-opponent-buttons button{
  min-height:50px;
  border:1px solid var(--match-line);
  border-radius:12px;
  background:var(--surface);
  color:var(--match-navy);
  cursor:pointer;
  font:inherit;
  font-weight:900;
}

.match-v2-points-away small{
  display:block;
  margin-top:7px;
  color:var(--muted);
}

.match-v2-tools{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:9px;
  margin-top:14px;
}

.match-v2-tools .button{
  min-height:54px;
  font-weight:900;
}

.match-v2-tool-card{
  border-color:var(--match-lavender);
  background:var(--match-soft);
  color:var(--match-navy);
}

.match-v2-tool-finish{
  border-color:var(--danger);
  color:var(--danger);
}


/* MI-TEMPS */

.match-v2-halftime{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  gap:16px;
  align-items:center;
  margin:0;
  border:2px solid var(--match-lavender);
  background:var(--match-soft);
}

.match-v2-halftime-icon{
  display:grid;
  place-items:center;
  width:52px;
  height:52px;
  border-radius:50%;
  background:var(--match-lavender);
  color:#fff;
  font-size:1.4rem;
  font-weight:900;
}

.match-v2-halftime-text h2{
  margin:2px 0 4px;
}

.match-v2-halftime-text p{
  margin:0;
  color:var(--muted);
}

.match-v2-halftime>.button{
  min-height:52px;
  font-weight:900;
}


/* A SURVEILLER */

.match-v2-watch{
  display:none;
  padding:13px 15px;
  border-radius:16px;
  border:1px solid var(--match-line);
  background:var(--match-soft);
}

.match-v2-watch:has(.match-next:not(:empty)){
  display:block;
}

.match-v2-watch-title{
  margin-bottom:5px;
  color:var(--muted);
  font-size:.72rem;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.match-v2-watch .match-next{
  margin:0;
  font-weight:800;
  color:var(--match-navy);
}


/* NAVIGATION */

.match-live-ui-v2 .match-live-nav{
  border-radius:16px 16px 0 0;
}

.match-live-ui-v2 .match-live-nav button{
  min-height:54px;
}


/* IPHONE / PETITS ECRANS */

@media(max-width:700px){

  .match-live-ui-v2{
    gap:12px;
  }

  .match-v2-score{
    grid-template-columns:minmax(0,1fr) 126px minmax(0,1fr);
    gap:7px;
    padding:16px 10px;
  }

  .match-v2-team-name{
    font-size:.72rem;
  }

  .match-v2-scoreline{
    gap:7px;
    font-size:2.25rem;
  }

  .match-v2-clock{
    margin-top:9px;
    padding:7px 11px;
    font-size:1.35rem;
  }

  .match-v2-state{
    font-size:.58rem;
    letter-spacing:.04em;
  }

  .match-v2-clock-actions{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    width:100%;
  }

  .match-v2-clock-actions .button{
    width:100%;
    min-width:0;
    min-height:48px;
  }

  .match-v2-clock-actions .button:only-child{
    grid-column:1/-1;
  }

  .match-v2-points{
    grid-template-columns:1fr;
  }

  .match-v2-point{
    min-height:64px;
    padding:7px 4px;
  }

  .match-v2-point strong{
    font-size:1.2rem;
  }

  .match-v2-point span{
    font-size:.66rem;
  }

  .match-v2-tools{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }

  .match-v2-tools .button{
    padding:8px 4px;
    font-size:.78rem;
  }

  .match-v2-halftime{
    grid-template-columns:auto 1fr;
  }

  .match-v2-halftime>.button{
    grid-column:1/-1;
    width:100%;
  }

}


@media(max-width:420px){

  .match-v2-score{
    grid-template-columns:minmax(0,1fr) 112px minmax(0,1fr);
  }

  .match-v2-scoreline{
    font-size:1.9rem;
  }

  .match-v2-clock{
    font-size:1.2rem;
  }

  .match-v2-point-buttons{
    gap:5px;
  }

  .match-v2-tools{
    grid-template-columns:1fr 1fr;
  }

  .match-v2-tool-finish{
    grid-column:1/-1;
  }

}


/* MODE SOMBRE */

@media(prefers-color-scheme:dark){

  .match-v2-points-away,
  .match-v2-halftime,
  .match-v2-watch{
    background:var(--match-soft);
  }

}


/* COACHSL-MATCH-FACTS-V3-1 */


/* SCORE + FAITS MARQUANTS */

.match-live-ui-v3{
  gap:10px;
}

.match-v3-score{
  grid-template-columns:
    minmax(0,1fr)
    minmax(125px,175px)
    minmax(0,1fr);
  gap:12px;
  padding:16px;
}

.match-v3-score .match-v2-team{
  align-self:stretch;
  display:flex;
  flex-direction:column;
}

.match-v3-score .match-v2-team>strong{
  display:block;
}

.match-v3-side-score{
  margin-top:4px;
  color:var(--match-navy);
  font-size:clamp(2.2rem,7vw,3.6rem);
  font-weight:900;
  line-height:1;
  font-variant-numeric:tabular-nums;
}

.match-v3-score .match-v2-team-home .match-v3-side-score{
  color:var(--match-pink);
}

.match-v3-facts{
  display:flex;
  flex-direction:column;
  gap:3px;
  margin-top:10px;
  color:var(--muted);
  font-size:.72rem;
  line-height:1.25;
}

.match-v3-facts span{
  display:block;
}

.match-v3-facts b{
  color:var(--match-navy);
  font-weight:900;
}

.match-v2-team-away .match-v3-facts{
  align-items:flex-end;
}

.match-v3-score .match-v2-center{
  justify-content:center;
}

.match-v3-score .match-v2-clock{
  margin-top:6px;
}


/* BANDEAU CARTONS + CHANGEMENTS */

.match-v3-strip{
  display:flex;
  align-items:center;
  gap:6px;
  min-height:34px;
  padding:4px 6px;
  overflow-x:auto;
  overscroll-behavior-x:contain;
  scrollbar-width:thin;
  border:1px solid var(--match-line);
  border-radius:10px;
  background:var(--match-soft);
  white-space:nowrap;
}

.match-v3-strip-item{
  display:inline-flex;
  align-items:center;
  flex:0 0 auto;
  gap:5px;
  min-height:25px;
  padding:3px 8px;
  border:1px solid var(--match-line);
  border-radius:999px;
  background:var(--surface);
  color:var(--match-navy);
  font:inherit;
  font-size:.72rem;
  line-height:1;
  text-decoration:none;
}

button.match-v3-strip-item{
  cursor:pointer;
}

.match-v3-strip-item strong,
.match-v3-strip-item b{
  font-size:inherit;
}

.match-v3-strip-card b{
  color:var(--match-pink);
  font-variant-numeric:tabular-nums;
}

.match-v3-strip-change b{
  color:var(--match-pink);
}

.match-v3-strip-empty{
  padding:0 7px;
  color:var(--muted);
  font-size:.7rem;
}


/* BOUTON UNIQUE */

.match-v3-add-fact{
  margin:0;
}

.match-v3-add-fact-button{
  width:100%;
  min-height:56px;
  border-radius:15px;
  font-size:1rem;
  font-weight:900;
}


/* MENU FAITS DE MATCH */

.match-fact-menu h2{
  margin-bottom:16px;
}

.match-fact-menu h3{
  margin:18px 0 8px;
  font-size:.85rem;
}

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

.match-fact-score-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
}

.match-fact-button{
  min-height:72px;
  padding:8px 6px;
  border:1px solid var(--match-line);
  border-radius:14px;
  background:var(--surface);
  color:var(--match-navy);
  cursor:pointer;
  font:inherit;
}

.match-fact-button strong,
.match-fact-button span{
  display:block;
}

.match-fact-button strong{
  margin-bottom:4px;
  font-size:1.25rem;
  font-weight:900;
}

.match-fact-button span{
  font-size:.72rem;
  font-weight:800;
  line-height:1.15;
}

.match-fact-score{
  border-color:
    color-mix(
      in srgb,
      var(--match-pink) 45%,
      var(--match-line)
    );
  background:var(--match-soft-pink);
}

.match-fact-score strong{
  color:var(--match-pink);
}

.match-fact-missed{
  border-style:dashed;
}

.match-fact-missed strong{
  color:var(--match-lavender);
}

.match-fact-footer{
  display:flex;
  justify-content:space-between;
  gap:8px;
  margin-top:20px;
}

.match-fact-finish{
  border-color:var(--danger);
  color:var(--danger);
}


/* MINI TERRAIN DES TIRS */

.match-shot-wrap{
  margin-top:8px;
}

.match-shot-map{
  position:relative;
  width:min(100%,280px);
  aspect-ratio:68 / 100;
  margin:10px auto;
  overflow:hidden;
  border:2px solid var(--match-navy);
  border-radius:12px;
  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.12),
      rgba(255,255,255,.04)
    ),
    var(--match-soft);
  cursor:crosshair;
  touch-action:manipulation;
}

.match-shot-map svg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  pointer-events:none;
}

.match-shot-map svg rect,
.match-shot-map svg path{
  fill:none;
  stroke:var(--match-lavender);
  stroke-width:.6;
  vector-effect:non-scaling-stroke;
}

.match-shot-map svg .match-shot-dashed{
  stroke-dasharray:2 2;
}

.match-shot-marker{
  position:absolute;
  width:18px;
  height:18px;
  transform:translate(-50%,-50%);
  border:3px solid #fff;
  border-radius:50%;
  background:var(--match-pink);
  box-shadow:0 1px 6px rgba(0,0,0,.35);
  pointer-events:none;
}

.match-shot-status{
  display:block;
  text-align:center;
  color:var(--muted);
  font-weight:800;
}


/* MOBILE */

@media(max-width:700px){

  .match-v3-score{
    grid-template-columns:
      minmax(0,1fr)
      105px
      minmax(0,1fr);
    gap:6px;
    padding:12px 8px;
  }

  .match-v3-side-score{
    font-size:2.15rem;
  }

  .match-v3-facts{
    margin-top:7px;
    font-size:.62rem;
    line-height:1.2;
  }

  .match-v3-score .match-v2-state{
    font-size:.53rem;
  }

  .match-v3-score .match-v2-clock{
    padding:6px 8px;
    font-size:1.2rem;
  }

  .match-v3-strip{
    min-height:32px;
  }

  .match-v3-strip-item{
    font-size:.67rem;
  }

  .match-fact-grid,
  .match-fact-score-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .match-fact-button{
    min-height:66px;
  }

  .match-fact-score-grid .match-fact-button:first-child{
    grid-column:1/-1;
  }

  .match-shot-map{
    width:min(78vw,260px);
  }

}


@media(max-width:390px){

  .match-v3-score{
    grid-template-columns:
      minmax(0,1fr)
      92px
      minmax(0,1fr);
  }

  .match-v3-facts{
    font-size:.57rem;
  }

  .match-v3-side-score{
    font-size:1.9rem;
  }

}


/* COACHSL-SHOTMAP-V2-1 */

.match-shot-direction{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin:8px 0 10px;
  color:var(--match-navy);
  font-size:.8rem;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.match-shot-direction-arrow{
  display:grid;
  place-items:center;
  width:22px;
  height:22px;
  border-radius:50%;
  background:var(--match-pink);
  color:#fff;
  font-size:.9rem;
  line-height:1;
}

.match-shot-caption{
  display:block;
  margin-top:6px;
  text-align:center;
  color:var(--muted);
  font-weight:700;
}

.match-shot-map{
  width:min(100%,300px);
  aspect-ratio:100 / 140;
  border:2px solid var(--match-navy);
  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.10),
      rgba(255,255,255,.04)
    ),
    var(--match-soft);
}

.match-shot-map svg rect,
.match-shot-map svg path{
  fill:none;
  stroke:var(--match-lavender);
  stroke-width:1;
  vector-effect:non-scaling-stroke;
}

.match-shot-map svg .match-shot-ingoal{
  fill:rgba(255,255,255,.10);
  stroke:var(--match-lavender);
}

.match-shot-map svg .match-shot-dashed{
  stroke-dasharray:3 3;
}

.match-shot-map svg .match-shot-posts{
  stroke:var(--match-pink);
  stroke-width:1.6;
}

.match-shot-map svg .match-shot-posts-secondary{
  opacity:.4;
}

.match-shot-map svg .match-shot-attack{
  stroke:var(--match-pink);
  stroke-width:1.5;
}

@media(max-width:700px){
  .match-shot-map{
    width:min(82vw,280px);
  }
}


/* COACHSL-SHOTMAP-RUGBY-LINES-1 */

.match-shot-wrap{
  --shot-dark:#29235c;
  --shot-pink:#e65b9c;
  --shot-grass:#57984f;
}


/* SENS DU TIR */

.match-shot-direction{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;

  margin:8px 0 10px;

  color:#29235c;

  font-size:.8rem;
  font-weight:900;
  letter-spacing:.04em;
  text-transform:uppercase;
}

.match-shot-direction-arrow{
  display:grid;
  place-items:center;

  width:24px;
  height:24px;

  border-radius:50%;

  background:#e65b9c;
  color:#fff;

  font-size:1rem;
  font-weight:900;
}


/* TERRAIN */

.match-shot-rugby-map{
  position:relative;

  width:min(100%,300px);
  aspect-ratio:70 / 120;

  margin:10px auto;

  overflow:hidden;

  border:3px solid #29235c;
  border-radius:12px;

  background:
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,.025) 0,
      rgba(255,255,255,.025) 18px,
      rgba(0,0,0,.025) 18px,
      rgba(0,0,0,.025) 36px
    ),
    #57984f;

  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.15),
    0 4px 14px rgba(0,0,0,.16);

  cursor:crosshair;
  touch-action:manipulation;
}

.match-shot-rugby-map svg{
  position:absolute;
  inset:0;

  display:block;

  width:100%;
  height:100%;

  pointer-events:none;
}


/* CONTOUR */

.match-shot-rugby-map .match-shot-field-outline{
  fill:none;
  stroke:#fff;
  stroke-width:1.4;
  vector-effect:non-scaling-stroke;
}


/* LIGNES HORIZONTALES */

.match-shot-rugby-map .match-shot-major-line,
.match-shot-rugby-map .match-shot-goal-line{
  fill:none;
  stroke:rgba(255,255,255,.96);
  stroke-width:1.5;
  vector-effect:non-scaling-stroke;
}

.match-shot-rugby-map .match-shot-halfway-line{
  fill:none;
  stroke:#fff;
  stroke-width:2.2;
  vector-effect:non-scaling-stroke;
}

.match-shot-rugby-map .match-shot-secondary-line{
  opacity:.7;
}


/* LIGNES 5 ET 15 M */

.match-shot-rugby-map .match-shot-touch-guide{
  fill:none;
  stroke:rgba(255,255,255,.82);
  stroke-width:1.1;
  stroke-dasharray:5 5;
  vector-effect:non-scaling-stroke;
}

.match-shot-rugby-map .match-shot-fifteen{
  stroke-width:1.3;
}


/* AXE DES POTEAUX */

.match-shot-rugby-map .match-shot-center-guide{
  fill:none;
  stroke:rgba(255,255,255,.28);
  stroke-width:.9;
  stroke-dasharray:3 5;
  vector-effect:non-scaling-stroke;
}


/* POTEAUX */

.match-shot-rugby-map .match-shot-posts{
  fill:none;
  stroke:#ffd84a;
  stroke-width:3.5;
  stroke-linecap:round;
  vector-effect:non-scaling-stroke;
}


/* FLECHE */

.match-shot-rugby-map .match-shot-attack{
  fill:none;
  stroke:#ff4d9a;
  stroke-width:3;
  stroke-linecap:round;
  stroke-linejoin:round;
  vector-effect:non-scaling-stroke;
}


/* LABELS */

.match-shot-rugby-map .match-shot-line-label{
  fill:#fff;

  font-size:3.1px;
  font-family:Arial,sans-serif;
  font-weight:900;

  paint-order:stroke;
  stroke:rgba(0,0,0,.3);
  stroke-width:.5px;
}

.match-shot-rugby-map .match-shot-middle-label{
  font-size:3.3px;
}

.match-shot-rugby-map .match-shot-side-label{
  fill:rgba(255,255,255,.75);

  font-size:2.5px;
  font-family:Arial,sans-serif;
  font-weight:800;
}


/* POINT DU TIR */

.match-shot-rugby-map .match-shot-marker{
  position:absolute;

  width:20px;
  height:20px;

  transform:translate(-50%,-50%);

  border:3px solid #fff;
  border-radius:50%;

  background:#e65b9c;

  box-shadow:
    0 0 0 2px rgba(41,35,92,.65),
    0 2px 8px rgba(0,0,0,.4);

  pointer-events:none;
}


/* LEGENDE */

.match-shot-caption,
.match-shot-status{
  display:block;
  text-align:center;
}

.match-shot-caption{
  margin-top:6px;
  color:#5f6174;
  font-weight:700;
}

.match-shot-status{
  margin-top:5px;
  color:#29235c;
  font-weight:900;
}


@media(max-width:700px){

  .match-shot-rugby-map{
    width:min(84vw,290px);
  }

}


/* COACHSL-SHOT-SUMMARY-V1-1 */

.match-summary-shot-grid{
  display:grid;
  grid-template-columns:
    repeat(2,minmax(0,1fr));
  gap:18px;
  margin-top:14px;
}

.match-summary-shot-card{
  min-width:0;
  padding:14px;
  border:1px solid var(--match-line);
  border-radius:16px;
  background:var(--surface);
}

.match-summary-shot-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-bottom:5px;
}

.match-summary-shot-head h3{
  margin:0;
  font-size:.95rem;
}

.match-summary-shot-head span{
  color:var(--muted);
  font-size:.75rem;
  font-weight:800;
}

.match-summary-shot-direction{
  margin-bottom:7px;
  text-align:center;
  color:var(--match-pink);
  font-size:.7rem;
  font-weight:900;
  letter-spacing:.04em;
  text-transform:uppercase;
}


/* TERRAIN BILAN */

.match-summary-shot-map{
  position:relative;
  width:min(100%,260px);
  aspect-ratio:70 / 120;
  margin:0 auto;
  overflow:hidden;
  border:2px solid #29235c;
  border-radius:10px;

  background:
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,.025) 0,
      rgba(255,255,255,.025) 18px,
      rgba(0,0,0,.025) 18px,
      rgba(0,0,0,.025) 36px
    ),
    #57984f;

  print-color-adjust:exact;
  -webkit-print-color-adjust:exact;
}

.match-summary-shot-map svg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  pointer-events:none;
}


/* LIGNES */

.match-summary-field-outline,
.match-summary-field-line,
.match-summary-field-halfway,
.match-summary-field-touch,
.match-summary-field-center,
.match-summary-field-posts{
  fill:none;
  vector-effect:non-scaling-stroke;
}

.match-summary-field-outline{
  stroke:#fff;
  stroke-width:1.3;
}

.match-summary-field-line{
  stroke:rgba(255,255,255,.94);
  stroke-width:1.3;
}

.match-summary-field-halfway{
  stroke:#fff;
  stroke-width:2;
}

.match-summary-field-secondary{
  opacity:.7;
}

.match-summary-field-touch{
  stroke:rgba(255,255,255,.8);
  stroke-width:1;
  stroke-dasharray:5 5;
}

.match-summary-field-center{
  stroke:rgba(255,255,255,.25);
  stroke-width:.8;
  stroke-dasharray:3 5;
}

.match-summary-field-posts{
  stroke:#ffd84a;
  stroke-width:3.2;
  stroke-linecap:round;
}

.match-summary-field-label{
  fill:#fff;
  stroke:rgba(0,0,0,.3);
  stroke-width:.45px;
  paint-order:stroke;

  font-family:Arial,sans-serif;
  font-size:3px;
  font-weight:900;
}


/* MARQUEURS */

.match-summary-shot-marker{
  position:absolute;
  z-index:2;

  display:flex;
  align-items:center;
  justify-content:center;
  gap:1px;

  width:30px;
  height:30px;

  transform:translate(-50%,-50%);

  border:3px solid;
  border-radius:50%;

  background:#fff;

  box-shadow:
    0 1px 5px rgba(0,0,0,.32);

  font-size:.68rem;
  line-height:1;

  pointer-events:none;

  print-color-adjust:exact;
  -webkit-print-color-adjust:exact;
}

.match-summary-shot-marker b{
  font-size:.68rem;
}

.match-summary-shot-marker i{
  font-size:.68rem;
  font-style:normal;
  font-weight:900;
}

.match-summary-shot-made{
  border-color:#176b3a;
  color:#176b3a;
}

.match-summary-shot-missed{
  border-color:#b42318;
  color:#b42318;
}


/* STATS */

.match-summary-shot-stats{
  display:flex;
  justify-content:center;
  gap:22px;
  margin-top:8px;
  font-size:.82rem;
  font-weight:800;
}

.match-summary-shot-stats b{
  color:var(--match-navy);
}


/* LEGENDE */

.match-summary-shot-legend{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:8px 14px;
  margin-top:14px;
  color:var(--muted);
  font-size:.75rem;
  font-weight:800;
}

.match-summary-shot-legend b{
  color:var(--match-navy);
}

.match-summary-legend-made{
  color:#176b3a;
}

.match-summary-legend-missed{
  color:#b42318;
}


@media(max-width:700px){

  .match-summary-shot-grid{
    grid-template-columns:1fr;
  }

  .match-summary-shot-map{
    width:min(76vw,270px);
  }

}


@media print{

  .match-summary-shots{
    break-inside:avoid;
    page-break-inside:avoid;
  }

  .match-summary-shot-grid{
    grid-template-columns:
      repeat(2,minmax(0,1fr));
  }

  .match-summary-shot-map{
    width:200px;
  }

  .match-summary-shot-marker{
    box-shadow:none;
  }

}


/* COACHSL-MATCH-DISPLAY-ORDER-1 */


/* ==========================================================
   CREATION DU MATCH
   ========================================================== */

.session-match-fields{
  display:grid;
  gap:14px;
  margin:4px 0;
  padding:15px;
  border:1px solid #dddbea;
  border-radius:16px;
  background:#f8f7fc;
}

.session-match-fields[hidden]{
  display:none;
}

.session-match-team-fixed{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:11px 12px;
  border-radius:12px;
  background:#fbe7f0;
}

.session-match-team-fixed span{
  color:#6d6c7d;
  font-size:.78rem;
  font-weight:800;
}

.session-match-team-fixed strong{
  color:#e65b9c;
  font-size:.95rem;
}

.session-match-venue{
  margin:0;
  padding:0;
  border:0;
}

.session-match-venue legend{
  margin-bottom:7px;
  font-size:.84rem;
  font-weight:900;
}

.session-match-venue-options{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}

.session-match-venue-options label{
  position:relative;
  margin:0;
}

.session-match-venue-options input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.session-match-venue-options span{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:8px;
  border:1px solid #dddbea;
  border-radius:12px;
  background:#fff;
  cursor:pointer;
  font-size:.82rem;
  font-weight:900;
}

.session-match-venue-options input:checked + span{
  border-color:#e65b9c;
  background:#fbe7f0;
  color:#29235c;
  box-shadow:inset 0 0 0 1px #e65b9c;
}

.session-match-preview{
  padding:10px 12px;
  border-radius:12px;
  background:#fff;
  text-align:center;
}

.session-match-preview span{
  display:block;
  margin-bottom:3px;
  color:#6d6c7d;
  font-size:.7rem;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.05em;
}

.session-match-preview strong{
  color:#29235c;
  font-size:.88rem;
}


/* ==========================================================
   SCORE LIVE
   ========================================================== */

.match-v3-score .match-v3-team-panel{
  display:grid;
  grid-template-rows:
    2.6em
    minmax(54px,auto)
    minmax(54px,auto);

  align-content:start;
  min-width:0;
}

.match-team-display-name{
  display:-webkit-box;
  height:2.6em;
  overflow:hidden;

  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;

  line-height:1.25;
  word-break:break-word;
}

.match-v3-team-left{
  text-align:left;
}

.match-v3-team-right{
  text-align:right;
}

.match-v3-team-right .match-v3-facts{
  align-items:flex-end;
  text-align:right;
}

.match-v3-team-left .match-v3-facts{
  align-items:flex-start;
  text-align:left;
}


/* SCORE DU CLUB = TOUJOURS ROSE */

.match-v3-score
.match-team-club
.match-v3-side-score,
.match-summary-score
.match-team-club
.match-v3-side-score{
  color:#e65b9c;
}


/* SCORE ADVERSAIRE = TOUJOURS BLEU */

.match-v3-score
.match-team-opponent
.match-v3-side-score,
.match-summary-score
.match-team-opponent
.match-v3-side-score{
  color:#2563eb;
}


.match-v3-score .match-v3-side-score{
  display:flex;
  align-items:center;
  min-height:54px;
  margin:0;

  font-size:clamp(2.25rem,7vw,3.6rem);
  line-height:1;
  font-variant-numeric:tabular-nums;
}

.match-v3-team-right .match-v3-side-score{
  justify-content:flex-end;
}

.match-v3-team-left .match-v3-side-score{
  justify-content:flex-start;
}


/* FAITS : MEME HAUTEUR DES DEUX COTES */

.match-v3-score .match-v3-facts,
.match-summary-score .match-v3-facts{
  display:grid;
  grid-template-rows:
    minmax(22px,auto)
    minmax(22px,auto);

  width:100%;
  min-height:50px;
  margin-top:5px;
  gap:3px;
}

.match-v3-score .match-v3-facts span,
.match-summary-score .match-v3-facts span{
  display:block;
  min-height:22px;
  line-height:1.25;
}


/* ==========================================================
   BILAN FINAL
   ========================================================== */

.match-summary-score-v2{
  display:grid;
  grid-template-columns:
    minmax(0,1fr)
    minmax(105px,145px)
    minmax(0,1fr);

  align-items:start;
  gap:14px;
}

.match-summary-score-v2 .match-summary-team{
  display:grid;
  grid-template-rows:
    2.6em
    minmax(58px,auto)
    minmax(54px,auto);

  align-content:start;
  min-width:0;
}

.match-summary-score-v2 .match-v3-side-score{
  display:flex;
  align-items:center;
  min-height:58px;
  margin:0;

  font-size:clamp(2.35rem,7vw,4rem);
  line-height:1;
  font-variant-numeric:tabular-nums;
}

.match-summary-score-v2
.match-v3-team-left
.match-v3-side-score{
  justify-content:flex-start;
}

.match-summary-score-v2
.match-v3-team-right
.match-v3-side-score{
  justify-content:flex-end;
}

.match-summary-score-v2
.match-v3-team-right{
  text-align:right;
}

.match-summary-score-v2
.match-summary-score-center{
  align-self:start;
  padding-top:2.6em;
}


/* ==========================================================
   RESULTAT DANS L'AGENDA
   ========================================================== */

.match-agenda-result{
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:9px;
}

.match-agenda-outcome{
  display:grid;
  place-items:center;
  flex:0 0 auto;

  width:28px;
  height:28px;

  border-radius:8px;

  font-size:.82rem;
  font-weight:900;
}

.match-agenda-outcome-V{
  background:#e7f6ec;
  color:#176b3a;
}

.match-agenda-outcome-D{
  background:#fdeceb;
  color:#b42318;
}

.match-agenda-outcome-N{
  background:#f1f2f4;
  color:#555b66;
}

.match-agenda-score{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:5px;

  color:#29235c;

  font-size:.8rem;
  font-weight:800;
}

.match-agenda-score>span{
  display:inline-flex;
  align-items:center;
  gap:4px;
}

.match-agenda-score strong{
  font-size:1rem;
  font-variant-numeric:tabular-nums;
}

.match-agenda-club strong{
  color:#e65b9c;
}

.match-agenda-opponent strong{
  color:#2563eb;
}

.match-agenda-score>b{
  color:#9293a1;
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media(max-width:700px){

  .match-v3-score{
    grid-template-columns:
      minmax(0,1fr)
      100px
      minmax(0,1fr);
  }

  .match-v3-score .match-v3-team-panel{
    grid-template-rows:
      2.8em
      48px
      minmax(54px,auto);
  }

  .match-team-display-name{
    height:2.8em;
    font-size:.69rem;
  }

  .match-v3-score .match-v3-side-score{
    min-height:48px;
    font-size:2rem;
  }

  .match-v3-score .match-v3-facts{
    font-size:.59rem;
  }

  .match-summary-score-v2{
    grid-template-columns:
      minmax(0,1fr)
      88px
      minmax(0,1fr);

    gap:7px;
  }

  .match-summary-score-v2 .match-summary-team{
    grid-template-rows:
      2.8em
      50px
      minmax(54px,auto);
  }

  .match-summary-score-v2 .match-v3-side-score{
    min-height:50px;
    font-size:2.1rem;
  }

  .match-summary-score-v2
  .match-summary-score-center{
    padding-top:2.8em;
  }

  .match-summary-score-v2
  .match-v3-facts{
    font-size:.58rem;
  }

  .match-agenda-result{
    align-items:flex-start;
  }

  .match-agenda-score{
    line-height:1.35;
  }

}


@media(max-width:420px){

  .session-match-venue-options{
    grid-template-columns:1fr;
  }

  .match-v3-score{
    grid-template-columns:
      minmax(0,1fr)
      82px
      minmax(0,1fr);
  }

  .match-summary-score-v2{
    grid-template-columns:
      minmax(0,1fr)
      78px
      minmax(0,1fr);
  }

}


/* COACHSL-MATCH-UX-V3-7 */

.live-bench .bench-columns{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:18px;
  margin-top:14px;
}

.live-bench .bench-column{
  min-width:0;
}

.live-bench .bench-column h3{
  margin:0 0 8px;
  font-size:.95rem;
  font-weight:800;
}

.live-bench .bench-column .bench-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:8px;
  margin-top:0;
}

.live-bench .bench-column .bench-card{
  width:100%;
  min-width:0;
}

/*
 * Les anciennes actions separees restent compatibles
 * avec les anciens matchs mais ne sont plus proposees.
 */
[data-match-fact="penaltyMiss"],
[data-match-fact="conversionMiss"]{
  display:none!important;
}

#dialog .match-result-choice{
  grid-template-columns:repeat(2,minmax(0,1fr));
}

@media(max-width:420px){
  .live-bench .bench-columns{
    gap:8px;
  }

  .live-bench .bench-column h3{
    font-size:.82rem;
  }

  .live-bench .bench-column .bench-card{
    padding:8px 6px;
    grid-template-columns:28px minmax(0,1fr);
  }

  .live-bench .bench-column .bench-number{
    width:27px;
    height:27px;
    font-size:.76rem;
  }
}


/* COACHSL-MATCH-FORM-SELECT-FALLBACK-1 */
/*
   Securite d'affichage :
   le bloc Match devient visible directement lorsque
   l'option Matchs est selectionnee, meme si un evenement
   JavaScript de changement n'est pas traite par l'appareil.
*/
#sessionForm:has(
  select[name="eventType"]
  option[value="match"]:checked
) [data-session-match-fields]{
  display:grid !important;
}


/* COACHSL-OPPONENT-NO-PLAYER-MENU-1 */

/*
   Les joueurs de Coach SL appartiennent au Stade Léonien.
   Lorsqu'un fait de match concerne l'adversaire,
   aucune association à un joueur du Stade Léonien
   ne doit être proposée à l'écran.
*/

#matchFactScoreForm
[data-match-fact-player][hidden]{
  display:none !important;
}

#matchFactScoreForm:has(
  select[name="side"]
  option[value="away"]:checked
)
[data-match-fact-player]{
  display:none !important;
}



/* COACHSL-MATCH-TERRAIN-ACTIONS-1 */

.match-terrain-actions{
  display:grid;
  grid-template-columns:
    repeat(2,minmax(0,1fr));
  gap:10px;
  margin:12px 0 14px;
}

.match-terrain-actions .button{
  width:100%;
  min-width:0;
  margin:0;
}


/* COACHSL-LIVE-PHASES-V3 - actions Terrain and compact chronology */
.match-phase-actions{border:1px solid var(--match-line);border-radius:16px;padding:13px;margin:12px 0 16px;background:var(--surface);color:var(--ink)}
.match-phase-header{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;margin-bottom:10px}
.match-phase-header h2{font-size:.91rem;margin:0;font-weight:850}
.match-phase-holder{padding:5px 9px;border:1px solid var(--match-line);border-radius:999px;font-size:.73rem;color:var(--muted)}
.match-phase-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.match-manager .match-phase-button{display:flex;flex-direction:column;gap:6px;justify-content:center;align-items:center;min-height:65px;border:1px solid var(--match-line);background:var(--match-soft);color:var(--ink);border-radius:10px;font-size:.79rem;font-weight:800;cursor:pointer;padding:9px 5px}
.match-phase-button span{font-size:1.15rem}
.match-manager .match-phase-button:active{background:var(--match-soft-pink)}
.match-phase-undo{margin-top:8px;background:transparent;border:0;color:var(--muted);font-size:.75rem;text-decoration:underline;cursor:pointer}
.match-phase-stats{display:flex;flex-direction:column;gap:1px;margin-top:12px;min-width:0;font-variant-numeric:tabular-nums}
.match-phase-stats small{font-size:.65rem;line-height:1.3;color:var(--muted)}
.match-phase-stats strong{font-size:.88rem;line-height:1.35;font-weight:900;color:var(--ink)}
.match-v3-score .match-v3-team-panel{grid-template-rows:2.6em minmax(54px,auto) minmax(54px,auto) auto}
.match-v3-team-right .match-phase-stats{align-items:flex-end;text-align:right}
.match-v3-team-left .match-phase-stats{align-items:flex-start;text-align:left}
[data-phase-recovery][hidden]{display:none!important}
.match-phase-dialog h2{font-size:1.25rem}.match-phase-choice-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:14px 0}
.match-phase-dialog .match-phase-choice-row .button{min-width:0;min-height:54px;white-space:normal;text-align:center}
.timeline-row-coachsl-phase{min-height:56px}
.timeline-row-coachsl-phase .timeline-card{padding:6px 10px;border-width:1px;font-size:.76rem;border-radius:9px;box-shadow:none}
.timeline-row-coachsl-phase .timeline-card strong{font-size:.8rem}
.timeline-row-coachsl-phase .timeline-card span{font-size:.7rem}
.timeline-row-coachsl-phase .timeline-dot{width:21px;height:21px;font-size:.68rem}
.timeline-row-coachsl-phase.timeline-row-neutral{min-height:76px}
.timeline-row-coachsl-phase.timeline-row-neutral .timeline-card{margin-top:32px}
@media(max-width:600px){.match-phase-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.match-phase-choice-row{grid-template-columns:repeat(2,minmax(0,1fr))}.match-phase-stats small{font-size:.6rem}}


/* COACHSL-LIVE-TIMELINE-V3-1: header inside the compact phase card; original match events unchanged. */
.match-manager .timeline-row-coachsl-phase{
  min-height:0;
  align-items:center;
}
.match-manager .timeline-row-coachsl-phase .timeline-card-coachsl-phase{
  padding:7px 10px;
  font-size:.76rem;
  line-height:1.3;
  text-align:left;
  min-width:0;
  box-sizing:border-box;
  overflow-wrap:anywhere;
}
.match-manager .timeline-row-coachsl-phase .timeline-phase-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:8px;
  min-width:0;
}
.match-manager .timeline-row-coachsl-phase .timeline-phase-heading{
  display:inline-flex;
  align-items:flex-start;
  gap:5px;
  min-width:0;
  flex:1 1 auto;
  margin:0;
}
.match-manager .timeline-row-coachsl-phase .timeline-phase-symbol{
  display:inline-block;
  flex:none;
  color:var(--match-pink);
  font-size:.85rem;
  font-weight:900;
  line-height:1.2;
}
.match-manager .timeline-row-coachsl-phase .timeline-phase-heading strong{
  display:block;
  min-width:0;
  overflow-wrap:anywhere;
  font-size:.77rem;
  line-height:1.25;
}
.match-manager .timeline-row-coachsl-phase .timeline-phase-time{
  display:block;
  flex:none;
  white-space:nowrap;
  font-size:.67rem;
  font-weight:800;
  font-variant-numeric:tabular-nums;
  color:var(--muted);
  line-height:1.3;
}
.match-manager .timeline-row-coachsl-phase .timeline-phase-detail{
  display:block;
  margin-top:4px;
  font-size:.69rem;
  line-height:1.38;
  color:var(--muted);
  overflow-wrap:anywhere;
}
/* Central turnovers, kicks and other phase markers: no time bubble overlapping the axis. */
.match-manager .timeline-row-coachsl-phase.timeline-row-neutral{
  min-height:0;
}
.match-manager .timeline-row-coachsl-phase.timeline-row-neutral .timeline-card-coachsl-phase{
  position:relative;
  z-index:2;
  margin-top:0;
  max-width:min(360px,84%);
  justify-self:center;
  align-self:center;
}
@media(max-width:420px){
  .match-manager .timeline-row-coachsl-phase .timeline-card-coachsl-phase{padding:7px 8px}
  .match-manager .timeline-row-coachsl-phase .timeline-phase-head{gap:5px}
  .match-manager .timeline-row-coachsl-phase .timeline-phase-heading{gap:4px}
  .match-manager .timeline-row-coachsl-phase .timeline-phase-heading strong{font-size:.73rem}
  .match-manager .timeline-row-coachsl-phase .timeline-phase-time{font-size:.64rem}
  .match-manager .timeline-row-coachsl-phase.timeline-row-neutral .timeline-card-coachsl-phase{max-width:90%}
}


/* COACHSL-ANALYSE-V3-3-1 : 7 actions rapides & trois pavés de statistiques */
.match-phase-grid-v33{grid-template-columns:repeat(4,minmax(0,1fr))}
.match-analytics-v33{display:grid;gap:15px;margin:20px 0}
.match-analytics-v33>h2{font-size:1.18rem;margin:0}
.match-analytics-card{padding:15px;min-width:0}
.match-analytics-card>header{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px}
.match-analytics-card>header h3{margin:0;font-size:1.04rem}
.match-analytics-card>header span{color:var(--muted);font-size:.82rem;font-weight:750}
.match-analytics-tablewrap{overflow-x:auto;max-width:100%}
.match-analytics-card table{border-collapse:collapse;width:100%;font-size:.82rem}
.match-analytics-card th,.match-analytics-card td{border-bottom:1px solid var(--match-line);padding:7px 5px;text-align:right;vertical-align:top}
.match-analytics-card th:first-child{text-align:left;width:50%}
.match-analytics-card tbody th{font-weight:550}
.match-analytics-card h4{margin:12px 0 5px;font-size:.9rem}
.match-analytics-touchline{font-size:.81rem;line-height:1.45;padding:5px 0}
.match-analytics-touches{border-top:1px solid var(--match-line);margin-top:10px}
.match-analytics-shortage{border-top:1px solid var(--match-line);margin-top:10px}
@media(max-width:720px){.match-phase-grid-v33{grid-template-columns:repeat(2,minmax(0,1fr))}.match-analytics-card{padding:10px}.match-analytics-card table{font-size:.75rem}.match-analytics-card th,.match-analytics-card td{padding:6px 3px}}


/* COACHSL-POSTGAME-V3-3-2 : separate correction UI, no legacy timeline overrides. */
.match-postgame-tools{display:grid;gap:10px;border:1px solid var(--line,#76658a);}
.match-postgame-tools h2{margin:0 0 5px;font-size:1.15rem;}
.match-postgame-tools .toolbar{display:flex;gap:8px;flex-wrap:wrap;}
#dialog .match-postgame-dialog{min-width:0;max-width:690px;display:grid;gap:12px;}
#dialog .match-postgame-dialog h2{margin:0;}
#dialog .match-postgame-dialog [hidden]{display:none!important;}
#dialog .match-postgame-dialog .event-form{display:grid;gap:10px;}
#dialog .match-postgame-dialog label{display:grid;gap:5px;font-size:.92rem;font-weight:600;}
#dialog .match-postgame-dialog input,#dialog .match-postgame-dialog select{max-width:100%;min-width:0;}
#dialog .match-postgame-timegrid{display:grid;grid-template-columns:1fr 1fr;gap:12px;}
#dialog .match-postgame-dialog [data-pg-kind],#dialog .match-postgame-dialog [data-pg-family]{display:grid;gap:10px;}
#dialog .match-postgame-dialog [data-pg-if]{display:grid;gap:10px;}
#dialog .match-postgame-list{display:grid;gap:5px;max-height:55vh;overflow:auto;}
#dialog .match-postgame-entry{display:grid;grid-template-columns:72px minmax(0,1fr) 26px;align-items:center;
  width:100%;gap:9px;border-radius:9px;text-align:left;border:1px solid var(--line,#d9d5e6);background:var(--surface,#fff);
  color:var(--ink,#29235c);padding:10px;cursor:pointer;font:inherit;}
#dialog .match-postgame-entry time{font-size:.87rem;font-variant-numeric:tabular-nums;}
#dialog .match-postgame-entry:hover,#dialog .match-postgame-entry:focus-visible{border-color:var(--accent,#e65b9c);}
#dialog .match-postgame-error:not(:empty){padding:10px;border-radius:7px;border:1px solid #b93857;color:#b93857;}
#dialog .match-postgame-dialog .button-danger{border:1px solid #c24c69;color:#a92346;}
@media(max-width:480px){#dialog .match-postgame-timegrid{grid-template-columns:1fr;}}


/* COACHSL-MATCH-NAV-EXCLUSIVE-V3-3-2a
   One bottom navigation at a time. Only the match route uses a viewport-fixed bar.
   This is presentation only: no changes to match logic or data. */
body.coachsl-match-management .app-shell > .bottom-nav {
  display:none !important;
}
body.coachsl-match-management .app-shell {
  padding-bottom:0;
}
body.coachsl-match-management .match-manager.match-live {
  padding-bottom:calc(104px + env(safe-area-inset-bottom));
}
body.coachsl-match-management .match-live-ui-v2 .match-live-nav {
  position:fixed;
  bottom:0;
  left:50%;
  right:auto;
  top:auto;
  transform:translateX(-50%);
  width:min(1068px,100%);
  max-width:100%;
  margin:0;
  z-index:25;
  padding:8px max(8px,env(safe-area-inset-right))
    calc(8px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));
  border:1px solid var(--match-line);
  border-bottom:0;
  border-radius:16px 16px 0 0;
  background:var(--surface);
  box-shadow:0 -9px 28px rgba(10,8,33,.23);
  -webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
}
body.coachsl-match-management .match-live-nav button {
  min-width:0;
  min-height:54px;
  touch-action:manipulation;
}
body.coachsl-match-management .toast {
  bottom:calc(96px + env(safe-area-inset-bottom));
}
@media(max-width:700px){
  body.coachsl-match-management .match-live-ui-v2 .match-live-nav {
    width:100%;
    border-left:0;
    border-right:0;
  }
}
@media print {
  body.coachsl-match-management .match-live-ui-v2 .match-live-nav {
    display:none !important;
  }
}


/* COACHSL-CHANGEMENTS-COMPACT-V3-3-2b
 * Ne concerne que l'onglet Changements ; Terrain et les autres vues inchanges.
 */
.match-live[data-match-tab="changes"] .match-change-zone {
  display:grid;
  gap:14px;
}
.match-live[data-match-tab="changes"] .match-change-field .live-pitch {
  min-height:560px;
}
.match-live[data-match-tab="changes"] .match-changes-compact,
.match-live[data-match-tab="changes"] .match-changes-history {
  min-width:0;
}
.match-live[data-match-tab="changes"] .match-changes-compact h2,
.match-live[data-match-tab="changes"] .match-changes-history h2 {
  margin:0;
}
.match-live[data-match-tab="changes"] .match-plans-compact,
.match-live[data-match-tab="changes"] .match-history-compact {
  margin:10px 0 0;
  padding:0;
  list-style:none;
}
.match-live[data-match-tab="changes"] .match-plans-compact li,
.match-live[data-match-tab="changes"] .match-history-compact li {
  border-top:1px solid var(--match-line);
  padding:8px 0;
  margin:0;
}
.match-live[data-match-tab="changes"] .match-plan-inline,
.match-live[data-match-tab="changes"] .match-history-compact-row {
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto auto;
  gap:8px 12px;
  align-items:center;
}
.match-live[data-match-tab="changes"] .match-plan-minute {
  display:inline-flex;
  min-width:56px;
  align-items:center;
  justify-content:center;
  padding:6px 8px;
  border-radius:9px;
  background:var(--match-soft);
  color:var(--ink);
  font-weight:800;
  font-size:.81rem;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}
.match-live[data-match-tab="changes"] .match-plan-main,
.match-live[data-match-tab="changes"] .match-history-description {
  min-width:0;
  display:block;
  overflow-wrap:anywhere;
  font-size:.89rem;
  font-weight:650;
  line-height:1.35;
}
.match-live[data-match-tab="changes"] .match-plan-main small,
.match-live[data-match-tab="changes"] .match-history-description small {
  display:block;
  margin-top:2px;
  font-size:.75rem;
  font-weight:400;
  color:var(--muted);
}
.match-live[data-match-tab="changes"] .match-plan-warning {color:var(--match-pink)!important;}
.match-live[data-match-tab="changes"] .match-plan-status,
.match-live[data-match-tab="changes"] .match-change-done {
  font-size:.77rem;
  font-weight:800;
  text-align:center;
  white-space:nowrap;
  padding:6px 9px;
  border-radius:8px;
  background:var(--match-soft);
}
.match-live[data-match-tab="changes"] .match-change-done,
.match-live[data-match-tab="changes"] .match-plan-done .match-plan-status {
  background:#164831;
  color:#c6f9dc;
}
.match-live[data-match-tab="changes"] .match-plan-actions,
.match-live[data-match-tab="changes"] .match-history-actions {
  display:flex;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:6px;
}
.match-live[data-match-tab="changes"] .match-plan-actions .button,
.match-live[data-match-tab="changes"] .match-history-actions .button {
  margin:0;
  min-height:36px;
  padding:7px 10px;
  font-size:.79rem;
  white-space:nowrap;
}
@media (max-width:810px) {
  .match-live[data-match-tab="changes"] .match-plan-inline,
  .match-live[data-match-tab="changes"] .match-history-compact-row {
    grid-template-columns:auto minmax(0,1fr) auto;
  }
  .match-live[data-match-tab="changes"] .match-plan-actions,
  .match-live[data-match-tab="changes"] .match-history-actions {
    grid-column:2/-1;
  }
}
@media (max-width:480px) {
  .match-live[data-match-tab="changes"] .match-change-field .live-pitch {
    min-height:520px;
  }
  .match-live[data-match-tab="changes"] .match-plans-compact li,
  .match-live[data-match-tab="changes"] .match-history-compact li {
    padding:9px 0;
  }
  .match-live[data-match-tab="changes"] .match-plan-inline,
  .match-live[data-match-tab="changes"] .match-history-compact-row {
    gap:6px;
  }
  .match-live[data-match-tab="changes"] .match-plan-minute {min-width:50px;padding:6px 5px;}
  .match-live[data-match-tab="changes"] .match-plan-actions .button,
  .match-live[data-match-tab="changes"] .match-history-actions .button {
    min-height:40px;
    padding:7px 8px;
    font-size:.76rem;
  }
}

/* COACHSL-PHASE-BUTTONS-V3-3-2d - validated CSS */
/* Two columns on desktop and mobile. */
.match-manager .match-phase-grid.match-phase-grid-v33 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

/* Accessible touch targets without changing button behavior. */
.match-manager .match-phase-grid-v33 > .match-phase-button {
  min-height: 102px;
  padding: 16px 12px;
  border-radius: 14px;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.3;
  gap: 10px;
  text-align: center;
  touch-action: manipulation;
}
.match-manager .match-phase-grid-v33 > .match-phase-button span {
  font-size: 1.6rem;
  line-height: 1;
}

/* Requested order, without modifying the JS action handlers. */
.match-manager .match-phase-grid-v33 > [data-coach-phase="ruck"] { order: 1; }
.match-manager .match-phase-grid-v33 > [data-coach-phase="turnover"] { order: 2; }
.match-manager .match-phase-grid-v33 > [data-coach-phase="knock"] { order: 3; }
.match-manager .match-phase-grid-v33 > [data-coach-phase="penalty"] { order: 4; }
.match-manager .match-phase-grid-v33 > [data-coach-phase="kick"] { order: 5; }
.match-manager .match-phase-grid-v33 > [data-coach-phase="lineout"] { order: 6; }
.match-manager .match-phase-grid-v33 > [data-coach-phase="kickoff"] {
  order: 7;
  grid-column: 1 / -1;
}

/* Keep two large, comfortable buttons per row on phones. */
@media (max-width: 720px) {
  .match-manager .match-phase-grid.match-phase-grid-v33 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .match-manager .match-phase-grid-v33 > .match-phase-button {
    min-height: 96px;
    padding: 12px 8px;
    font-size: .95rem;
  }
}

/* COACHSL-MATCH-ROSTERS-V1: forwards left, backs right, preferred-position order. */
.match-roster-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-top:20px}
.match-roster-group{min-width:0}
.match-roster-group[data-match-roster-group="unknown"]{grid-column:1/-1}
.match-roster-group>h3,.match-roster-group>h4{font-size:1rem;margin:0;padding:0 0 10px;border-bottom:2px solid var(--match-line,var(--line))}
.match-roster-group .match-players{margin-top:0}
.match-roster-group .match-players li:first-child{border-top:0}
.match-roster-group .match-players li>div{min-width:0}
.match-roster-group .match-players .button{flex-shrink:0}
.match-roster-columns .match-table-wrap{margin-top:10px}
.match-roster-columns .match-roster-table{table-layout:fixed}
.match-roster-columns .match-roster-table td{overflow-wrap:anywhere;vertical-align:middle}
.match-roster-number-col{width:46px}.match-roster-status-col{width:106px}.match-roster-time-col{width:68px}
.match-roster-columns .match-roster-subheading th{padding:10px 8px;background:transparent;color:var(--ink);font-weight:800;border-bottom:1px solid var(--match-line,var(--line))}
@media(max-width:760px){
  .match-roster-columns{grid-template-columns:minmax(0,1fr);gap:24px}
  .match-roster-number-col{width:38px}.match-roster-status-col{width:92px}.match-roster-time-col{width:70px}
  .match-roster-columns .match-roster-table th,.match-roster-columns .match-roster-table td{padding:10px 5px}
  .match-roster-columns .roster-status{padding:5px 7px}
}

.match-roster-columns .match-roster-table td:last-child{white-space:nowrap}

/* COACHSL-FAUTES-AVANTAGE-V1 */
.match-manager .match-phase-grid-v33>[data-coach-phase="kickoff"]{order:7;grid-column:auto}
.match-manager .match-phase-grid-v33>[data-coach-phase="advantage"]{order:8;border-color:#d6ae47}
.match-manager .match-phase-button:disabled{opacity:.5;cursor:not-allowed}
.match-advantage-banner{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;margin:0 0 16px;padding:16px 18px;border:2px solid #d6ae47;border-radius:16px;background:var(--surface);color:var(--ink)}
.match-advantage-banner>div:first-child{display:grid;gap:4px;min-width:0}
.match-advantage-banner strong{font-size:1.15rem;overflow-wrap:anywhere}
.match-advantage-banner small{color:var(--muted)}
.match-advantage-actions{display:flex;flex-wrap:wrap;gap:8px}
.match-advantage-actions .button{min-height:44px}
/* Menu validé : sept actions et points fortement contrastés, même en mode sombre. */
#dialog:has(.match-fact-menu-v2)>.dialog-close{display:none}
.match-fact-menu-v2{display:grid;gap:24px;color:var(--ink)}
.match-fact-menu-v2 .match-fact-head h2{font-size:23px;line-height:1.2;margin:10px 0 0;letter-spacing:-.5px}
.match-fact-menu-v2 .match-fact-section h3{margin:0 0 11px;font-size:12px;font-weight:800;color:var(--muted)}
.match-fact-menu-v2 .match-fact-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.match-fact-menu-v2 .match-fact-button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;min-width:0;margin:0;border:1px solid var(--line);border-radius:14px;background:var(--surface-2,var(--surface));color:var(--ink);cursor:pointer;touch-action:manipulation;transition:border-color .15s,transform .15s}
.match-fact-menu-v2 .match-fact-button strong,.match-fact-menu-v2 .match-fact-button span{margin:0}
.match-fact-menu-v2 .match-fact-score{min-height:154px;padding:20px 9px;background:#eee6ff;border-color:transparent;color:#241440;text-align:center}
.match-fact-menu-v2 .match-fact-score strong{font-size:56px;line-height:1;font-weight:900;letter-spacing:-2px;color:#241440}
.match-fact-menu-v2 .match-fact-score span{display:flex;align-items:center;justify-content:center;min-height:2.5em;font-size:14px;font-weight:800;line-height:1.25;color:#241440}
.match-fact-menu-v2 .match-fact-score-grid .match-fact-button:first-child{grid-column:auto}
.match-fact-menu-v2 .match-fact-utility-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.match-fact-menu-v2 .match-fact-utility{flex-direction:row;justify-content:flex-start;gap:12px;min-height:88px;padding:16px;text-align:left}
.match-fact-menu-v2 .match-fact-symbol{display:grid;place-items:center;flex:0 0 25px;min-height:26px}
.match-fact-menu-v2 .match-fact-symbol svg{display:block;width:23px;height:23px}
.match-fact-menu-v2 .match-fact-action-label{display:flex;flex-direction:column;gap:5px;min-width:0}
.match-fact-menu-v2 .match-fact-action-label strong{font-size:14px;line-height:1.25;font-weight:750}
.match-fact-menu-v2 .match-fact-action-label small{font-size:11px;line-height:1.3;font-weight:500;color:var(--muted)}
.match-fact-menu-v2 .match-fact-button:hover{border-color:var(--primary,#7863ba);transform:translateY(-1px)}
.match-fact-menu-v2 .match-fact-button:active{transform:translateY(0)}
.match-fact-menu-v2 .match-fact-button:focus-visible{outline:3px solid var(--primary,#7863ba);outline-offset:3px}
.match-fact-menu-v2 .match-fact-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0;padding-top:20px;border-top:1px solid var(--line)}
.match-fact-menu-v2 .match-fact-footer .button{min-height:44px;padding:11px 17px;font-size:13px}
.match-fact-menu-v2 .match-fact-finish{background:transparent;border-color:#d98187;color:var(--danger,#a8293b)}
@media(prefers-color-scheme:dark){.match-fact-menu-v2 .match-fact-score{background:#f0e8ff}.match-fact-menu-v2 .match-fact-finish{border-color:#ffacb5;color:#ffacb5}}
@media(max-width:480px){
 .match-advantage-banner{padding:14px;gap:12px}
 .match-advantage-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}
 .match-advantage-actions .button{padding:10px 8px;font-size:.8rem;white-space:normal}
 .match-fact-menu-v2{gap:22px}
 .match-fact-menu-v2 .match-fact-head h2{font-size:20px}
 .match-fact-menu-v2 .match-fact-grid{gap:8px}
 .match-fact-menu-v2 .match-fact-score{min-height:142px;padding:16px 5px;gap:14px}
 .match-fact-menu-v2 .match-fact-score strong{font-size:48px}
 .match-fact-menu-v2 .match-fact-score span{font-size:12px}
 .match-fact-menu-v2 .match-fact-utility{flex-direction:column;align-items:flex-start;gap:9px;padding:13px 12px;min-height:108px}
 .match-fact-menu-v2 .match-fact-action-label strong{font-size:13px}
 .match-fact-menu-v2 .match-fact-footer .button{padding:11px 13px}
}
@media(prefers-reduced-motion:reduce){.match-fact-menu-v2 .match-fact-button{transition:none;transform:none}}
@media print{.match-advantage-banner{display:none}}

/* COACHSL-POSSESSION-FRISE-V1: live controls and the five most recent match facts. */
.match-manager .match-phase-header{flex-direction:column;justify-content:center;align-items:center;gap:14px;margin-bottom:18px;text-align:center}
.match-manager .match-phase-header h2{font-size:.9rem;color:var(--muted)}
.match-manager .match-phase-holder{display:block;width:fit-content;max-width:100%;padding:12px 24px;border:1px solid var(--match-lavender);border-radius:16px;background:var(--match-soft);color:var(--ink);font-size:1.4rem;line-height:1.35;font-weight:600;text-align:center;overflow-wrap:anywhere}
.match-manager .match-phase-holder strong{font-weight:900}
.match-manager .match-phase-undo-wrap{display:flex;flex-direction:column;align-items:center;gap:7px;margin:20px 0;text-align:center}
.match-manager .match-phase-undo{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:48px;max-width:100%;margin:0;padding:12px 22px;border:1px solid var(--match-lavender);border-radius:12px;background:var(--surface);color:var(--ink);font:inherit;font-size:.95rem;font-weight:750;line-height:1.3;text-decoration:none;cursor:pointer;touch-action:manipulation}
.match-manager .match-phase-undo:hover:not(:disabled){border-color:var(--match-pink);background:var(--match-soft)}
.match-manager .match-phase-undo:focus-visible{outline:3px solid var(--match-pink);outline-offset:3px}
.match-manager .match-phase-undo:disabled{opacity:.5;cursor:default}
.match-manager .match-phase-undo-wrap small{font-size:.74rem;color:var(--muted)}
.match-manager .match-recent-facts{margin-top:18px;padding:18px;border:1px solid var(--match-line);border-radius:14px;background:var(--surface);color:var(--ink);min-width:0}
.match-manager .match-recent-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px}
.match-manager .match-recent-header h2{margin:0;font-size:1rem;line-height:1.3}
.match-manager .match-recent-link{min-height:44px;padding:8px 10px;font-size:.78rem}
.match-manager .match-recent-hint{margin:4px 0 16px;color:var(--muted);font-size:.76rem}
.match-manager .match-recent-teams{display:grid;grid-template-columns:1fr 1fr;gap:32px;margin-bottom:10px;color:var(--muted);font-size:.78rem;line-height:1.35;overflow-wrap:anywhere}
.match-manager .match-recent-teams strong:last-child{text-align:right}
.match-manager .match-recent-empty{margin:16px 0 0;color:var(--muted);font-size:.9rem;text-align:center}
.match-manager .match-recent-facts .match-timeline{margin:0}
@media(max-width:480px){
 .match-manager .match-phase-holder{padding:12px 14px;font-size:1.18rem}
 .match-manager .match-phase-undo{padding:12px 14px;font-size:.9rem}
 .match-manager .match-recent-facts{padding:12px 8px}
 .match-manager .match-recent-header{justify-content:center;text-align:center;gap:4px}
 .match-manager .match-recent-header h2{font-size:.94rem}
 .match-manager .match-recent-hint{text-align:center}
 .match-manager .match-recent-teams{gap:20px;font-size:.72rem}
 .match-manager .match-recent-facts .timeline-row{grid-template-columns:minmax(0,1fr) 32px minmax(0,1fr)}
 .match-manager .match-recent-facts .timeline-card{max-width:100%;padding:9px 7px;font-size:.78rem}
 .match-manager .match-recent-facts .timeline-row-home .timeline-card{margin-right:4px}
 .match-manager .match-recent-facts .timeline-row-away .timeline-card{margin-left:4px}
 .match-manager .match-recent-facts .timeline-phase-head{flex-wrap:wrap;gap:4px}
 .match-manager .match-recent-facts .timeline-phase-heading{flex-basis:100%}
}
@media print{.match-recent-facts{display:none}}

/* COACHSL-WORKFLOWS-V1 */
.match-manager .match-phase-grid-v33>[data-coach-phase="foul"]{order:3;grid-column:1/-1}
.match-manager .match-phase-grid-v33>[data-coach-phase="kick"]{order:4}
.match-manager .match-phase-grid-v33>[data-coach-phase="lineout"]{order:5}
.match-manager .match-phase-button .match-phase-hint{font-size:.73rem;line-height:1.3;font-weight:500;color:var(--muted);margin-top:5px}
.match-workflow{display:grid;gap:14px;margin:16px 0;min-width:0}
.match-workflow-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.match-workflow-field{padding:0;margin:0;border:0;min-width:0}
.match-workflow-field legend{padding:0;margin-bottom:8px;font-size:.88rem;font-weight:750;color:var(--ink)}
.match-workflow .match-workflow-choice{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:0;min-height:52px;padding:12px 10px;white-space:normal;text-align:center;overflow-wrap:anywhere}
.match-workflow-choice strong{font-size:.9rem;line-height:1.25}
.match-workflow-choice small{font-size:.74rem;line-height:1.35;font-weight:500;color:var(--muted)}
.match-workflow .match-workflow-choice.is-selected{border-color:var(--accent,#e65b9c);background:color-mix(in srgb,var(--accent,#e65b9c) 15%,var(--surface));box-shadow:inset 0 0 0 1px var(--accent,#e65b9c)}
.match-workflow .match-workflow-choice:disabled{opacity:.45;cursor:default}
.match-workflow .match-workflow-choice:focus-visible{outline:3px solid var(--accent,#e65b9c);outline-offset:2px}
.match-workflow .match-workflow-secondary{min-height:44px;font-size:.8rem;white-space:normal}
.match-workflow-context{margin:0;color:var(--muted);font-size:.9rem}
.match-workflow-context strong{color:var(--ink)}
.match-workflow .help{margin:0}
@media(max-width:420px){.match-workflow{gap:12px}.match-workflow-grid{gap:7px}.match-workflow .match-workflow-choice{padding:11px 7px}.match-workflow-choice strong{font-size:.8rem}.match-workflow-choice small{font-size:.7rem}}
