/* Meet Scores (#/scores) and Meeting Attendance (#/attendance) */
.ms-seasons { margin-bottom: 14px; flex-wrap: wrap; }
.ms-meets { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.ms-meets > .card, .ms-summary > .card, .at-meetings > .card, .tk-stats > .card { margin: 0; }
.ms-meet { display: flex; flex-direction: column; gap: 10px; padding: 14px; text-align: left; color: var(--text); cursor: pointer; }
.ms-meet-top { display: flex; align-items: center; gap: 12px; }
.ms-meet-top b, .ms-meet-top small { display: block; }
.ms-meet-top small { color: var(--muted); font-size: var(--fs-xs); font-weight: 600; margin-top: 2px; }
.ms-meet-foot { display: flex; flex-direction: column; gap: 6px; }
.ms-meet-foot small { font-size: var(--fs-xs); font-weight: 600; color: var(--text-2); }
.ms-meet.is-past .ms-date { background: var(--surface-2); color: var(--text-2); }
.ms-date { width: 48px; height: 52px; border-radius: 12px; background: var(--teal-soft); color: var(--teal-strong); display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; line-height: 1; }
.ms-date b { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.ms-date span { font-family: var(--font-display); font-size: 22px; margin-top: 2px; }
.ms-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; margin-bottom: 10px; }
.ms-sumcard { padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.ms-sumcard small { color: var(--muted); font-size: var(--fs-xs); font-weight: 600; }
.ms-sumcard b { font-family: var(--font-display); font-size: 26px; color: var(--ink); line-height: 1.1; }
.ms-sumcard span { font-size: var(--fs-sm); color: var(--text-2); font-weight: 600; }
.ms-leader b { color: var(--teal-strong); }
.ms-levels { display: flex; align-items: center; gap: 6px; margin: 4px 2px 10px; }
.ms-tools { display: flex; gap: 8px; margin-bottom: 8px; }
.ms-level { margin-bottom: 16px; }
.ms-level .list-label { display: flex; align-items: baseline; gap: 8px; }
.ms-gridwrap { padding: 0; overflow-x: auto; }
.ms-grid { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 640px; }
.ms-grid th { font-size: var(--fs-xs); font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; text-align: center; padding: 10px 6px; border-bottom: 1px solid var(--line); background: var(--surface); }
.ms-grid td { padding: 6px; border-bottom: 1px solid var(--line); vertical-align: middle; background: var(--surface); }
.ms-grid tr:last-child td { border-bottom: 0; }
.ms-grid .ms-name { text-align: left; position: sticky; left: 0; z-index: 1; min-width: 150px; max-width: 200px; padding-left: 14px; }
.ms-grid td.ms-name b, .ms-grid td.ms-name small { display: block; }
.ms-grid td.ms-name small { color: var(--muted); font-size: 11px; font-weight: 600; }
.ms-grid tr.is-dirty td { background: color-mix(in srgb, var(--amber, #E9B140) 9%, var(--surface)); }
.ms-grid tr.is-dirty td.ms-name { box-shadow: inset 3px 0 0 var(--amber, #E9B140); }
.ms-cell { text-align: center; }
.ms-cell input { display: block; width: 100%; max-width: 92px; margin: 0 auto; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); color: var(--text); text-align: center; font: inherit; }
.ms-score { height: 36px; font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.ms-place { height: 24px; margin-top: 4px !important; font-size: 11px; color: var(--text-2); background: transparent !important; border-style: dashed !important; }
.ms-cell select.ms-place { display: block; width: 100%; max-width: 92px; margin: 0 auto; height: 28px; padding: 0 6px; border: 1px dashed var(--line); border-radius: 9px; color: var(--text); text-align: center; text-align-last: center; font: inherit; font-size: 12px; font-weight: 600; -webkit-appearance: none; appearance: none; cursor: pointer; }
.ms-cell select.ms-place:focus { outline: none; border-color: var(--teal); border-style: solid; box-shadow: 0 0 0 3px var(--teal-soft); }
.ms-cell input:focus { outline: none; border-color: var(--teal); background: var(--surface); box-shadow: 0 0 0 3px var(--teal-soft); }
.ms-score.is-bad { border-color: var(--coral); background: var(--coral-soft, #FBE7E3); }
.ms-aa b { display: block; font-family: var(--font-display); font-size: 17px; color: var(--ink); font-variant-numeric: tabular-nums; height: 36px; line-height: 36px; }
.ms-x { width: 40px; }
.ms-x .icon-btn:disabled { opacity: .35; }
.ms-short { display: none; }
.ms-savebar { position: sticky; bottom: 12px; z-index: 5; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg, 0 10px 30px rgba(27,33,89,.18)); }
.ms-savebar b, .ms-savebar small { display: block; }
.ms-savebar small { color: var(--muted); font-size: var(--fs-xs); }
.tk-person.is-locked { opacity: .6; cursor: default; }
.at-top { display: flex; gap: 8px; margin-bottom: 10px; }
.at-season { max-width: 260px; }
.at-tabs { margin: 4px 0 12px; }
.at-search { margin-bottom: 10px; }
.at-meetings { display: flex; flex-direction: column; gap: 8px; }
.at-meeting { display: flex; align-items: center; gap: 12px; padding: 12px 14px; text-align: left; color: var(--text); cursor: pointer; }
.at-meeting b, .at-meeting small { display: block; }
.at-meeting small { color: var(--muted); font-size: var(--fs-xs); font-weight: 600; }
.at-count { text-align: center; flex: none; }
.at-count b { font-family: var(--font-display); font-size: 24px; color: var(--ink); line-height: 1; }
@media (max-width: 600px) {
  .ms-full { display: none; } .ms-short { display: inline; }
  .ms-grid { min-width: 560px; }
  .ms-grid .ms-name { min-width: 112px; max-width: 120px; padding-left: 10px; }
  .ms-cell input { max-width: 72px; }
  .ms-summary { grid-template-columns: 1fr 1fr; }
  .ms-savebar { bottom: calc(var(--tabbar-h, 76px) + 10px); }
  .ms-savebar small { display: none; }
}
@media (max-width: 600px) {
  .ms-summary { display: flex; overflow-x: auto; scrollbar-width: none; gap: 8px; margin-left: -2px; padding: 2px; }
  .ms-summary > .card { flex: 0 0 auto; min-width: 140px; padding: 10px 12px; }
  .ms-sumcard b { font-size: 21px; }
  .ms-grid td.ms-name small { display: none; }
}
