.msa-coach-season{padding:clamp(1rem,3vw,1.7rem);margin-block:1.2rem;color:var(--text,#183649)}
.msa-coach-ranking-note{border-inline-start:4px solid #e6ac35;padding:.75rem 1rem;background:var(--surface-2,rgba(120,155,180,.12));font-weight:700}
.msa-coach-table-scroll{max-width:100%;overflow-x:auto;border:1px solid var(--border,#9db7c8);border-radius:14px;margin-block:1rem}
.msa-coach-season-table{border-collapse:collapse;width:100%;min-width:660px;font-size:1rem;line-height:1.65;color:inherit}
.msa-coach-season-table caption{caption-side:top;text-align:start;padding:.8rem;font-weight:700}
.msa-coach-season-table th,.msa-coach-season-table td{padding:.7rem .65rem;text-align:start;border-bottom:1px solid var(--border,#b5c9d5);white-space:nowrap}
.msa-coach-season-table thead{background:#173e59;color:#fff}
.msa-coach-season-table tbody th{min-width:170px;font-weight:700}
.msa-coach-season-table a{color:inherit;text-decoration:none}
.msa-coach-season-table a:hover,.msa-coach-season-table a:focus-visible{text-decoration:underline}
.msa-coach-season-table small{display:block;font-size:.9rem;font-weight:400;margin-top:.2rem}
.msa-coach-snapshot{font-size:.95rem}
.msa-coach-season-table tr:last-child>*{border-bottom:0}

#content .coach-profile .coach-scorecard {
  margin:0; padding:clamp(14px,2.6vw,30px);
  border:1px solid var(--coach-edge); border-radius:20px;
  background:var(--coach-gradient); color:var(--coach-ink);
}
.coach-scorecard-header,.coach-scorecard-footer {
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px 20px;
}
#content .coach-scorecard h2 {
  margin:0 0 .3rem; color:var(--coach-ink); font-size:clamp(1.4rem,2.5vw,1.95rem); line-height:1.35;
}
#content .coach-scorecard :is(header,footer) p {
  margin:0; color:var(--coach-muted); font-size:1rem; line-height:1.6;
}
.coach-scorecard time { white-space:nowrap; }
#content .coach-scorecard .coach-scorecard-rate {
  display:flex; gap:.65rem; align-items:center; padding:.46rem .85rem;
  border:1px solid var(--coach-edge); border-radius:12px; background:var(--coach-tile);
}
.coach-scorecard-rate strong { color:var(--coach-ink); font-size:1.12rem; }
.coach-scorecard-grid {
  display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:clamp(8px,1.3vw,16px); margin:1.1rem 0;
}
.coach-scorecard-metric {
  --metric-highlight:#edf7ff; --metric-shade:#c9e1f5; --metric-edge:#aac8de; --metric-mark:#336e9b;
  min-width:0; display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:6px 8px;
  padding:clamp(10px,1.4vw,17px);
  border:1px solid var(--coach-edge); border-radius:15px; background:var(--coach-tile);
  box-shadow:0 5px 12px rgba(15,42,72,.07);
}
.coach-metric-won { --metric-highlight:#e8faf2; --metric-shade:#c6e9db; --metric-edge:#a4cdbd; --metric-mark:#24775d; }
.coach-metric-drawn { --metric-highlight:#f1f1fb; --metric-shade:#dbdef4; --metric-edge:#c0c4e4; --metric-mark:#515a99; }
.coach-metric-lost { --metric-highlight:#fff2f0; --metric-shade:#f3d6d3; --metric-edge:#e0b6b2; --metric-mark:#a04e52; }
.coach-metric-points { --metric-highlight:#fffaea; --metric-shade:#f0dfb4; --metric-edge:#dac58d; --metric-mark:#8a631e; }
.coach-scorecard-metric dt { grid-column:1/-1; grid-row:2; color:var(--coach-muted); font-size:1rem; font-weight:700; }
.coach-scorecard-metric dd {
  grid-column:1; grid-row:1; margin:0; color:var(--coach-ink);
  font-size:clamp(1.75rem,3.4vw,2.75rem); font-weight:800; line-height:1.1; font-variant-numeric:tabular-nums;
}
.coach-metric-icon {
  grid-column:2; grid-row:1; display:grid; place-items:center;
  width:clamp(38px,4.2vw,54px); aspect-ratio:1; border:1px solid var(--metric-edge); border-radius:13px;
  background:linear-gradient(155deg,var(--metric-highlight),var(--metric-shade));
  box-shadow:inset 0 1px 1px #fff,0 2px 0 var(--metric-edge),0 4px 6px rgba(19,47,71,.14);
}
.coach-metric-icon .msa-menu-art { display:block; position:relative; overflow:hidden; width:78%; height:auto; }
.coach-metric-icon .msa-menu-art img { position:absolute; max-width:none; max-height:none; }
.coach-metric-drawn .coach-metric-icon::before {
  content:""; width:48%; height:4px; border-radius:4px; background:var(--metric-mark);
  box-shadow:0 7px 0 var(--metric-mark); transform:translateY(-3.5px);
  filter:drop-shadow(0 1px 0 #fff);
}
.coach-metric-lost .coach-metric-icon::before {
  content:""; width:30%; aspect-ratio:1; border:solid var(--metric-mark); border-width:0 4px 4px 0;
  border-radius:2px; transform:translateY(-17%) rotate(45deg); filter:drop-shadow(1px 1px 0 #fff);
}
#content .coach-scorecard-footer .pill { min-height:44px; color:var(--coach-ink); background:var(--coach-tile); }
@media(max-width:700px) {
  .coach-scorecard-grid { grid-template-columns:repeat(auto-fit,minmax(110px,1fr)); }
}
@media(max-width:440px) {
  .coach-scorecard-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .coach-scorecard-metric.coach-metric-points { grid-column:1/-1; }
}
