dialog.mdDialog {
  box-sizing:border-box; margin:auto; width:min(94vw,35rem); max-height:min(86dvh,52rem);
  padding:1.3rem 1.55rem 1.6rem; background:#f7f9f6; color:#17281e;
  border:1px solid #d7e0d4; border-radius:24px; box-shadow:0 32px 100px #07110d55; overflow-y:auto;
  overscroll-behavior:contain; font-family:inherit;
}
.mdDialog::backdrop { background:#07120dc9; backdrop-filter:blur(6px); }
.mdTop,.mdControls,.mdSides,.mdPair {display:flex;align-items:center;gap:.55rem}
.mdTop {justify-content:space-between;min-height:2.3rem}
.mdDialog button {font:inherit;cursor:pointer}
.mdDialog button:focus-visible,.mdDialog input:focus-visible,.mdDialog summary:focus-visible {outline:3px solid #678c24;outline-offset:2px}
.mdBack,.mdClose {border:0;background:#e9efe7;color:#263b2a;padding:.45rem .85rem;border-radius:999px;font-weight:650!important}
.mdClose {margin-left:auto;width:2.25rem;height:2.25rem;padding:0;font-size:1.6rem!important;line-height:1}
.mdDialog h2 {font-size:clamp(1.9rem,5.4vw,2.65rem);line-height:1.05;letter-spacing:-.05em;color:#17281e;margin:.55rem 0 1.5rem;text-wrap:balance;font-weight:760}
.mdDialog h2:focus {outline:none}
.mdDialog h3 {font-size:1.05rem;line-height:1.3;color:#263c2b;margin:1.3rem 0 .65rem}
.mdPrimary,.mdSecondary,.mdProgram {display:inline-flex;align-items:center;justify-content:center;min-height:2.9rem;border-radius:12px;padding:.65rem 1rem;font-weight:700!important;font-size:.96rem!important;}
.mdPrimary {background:#c8f573;color:#142b1c;border:1px solid #b8df67}
.mdSecondary {background:white;color:#1d3426;border:1px solid #c9d4c8}
.mdProgram {background:transparent;color:#264c32;border:0;padding-inline:.1rem;justify-content:start;text-align:left;text-decoration:underline;text-underline-offset:.2em}
.mdControls {align-items:stretch;flex-wrap:wrap}
.mdAlt {margin-top:1rem}
.mdRow {display:flex;align-items:center;gap:.8rem;text-align:left;color:#16291e;border:0;border-bottom:1px solid #dce4da;background:transparent;width:100%;min-height:4.4rem;padding:.72rem .15rem}
.mdRow:hover,.mdRow:focus-visible {background:#eaf1e7}
.mdRowText {display:grid;flex:1;min-width:0;gap:.15rem}
.mdRowText strong {font-size:1.02rem;line-height:1.28}
.mdRowText small,.mdTail,.mdResults,.mdResults p {font-size:.94rem;color:#506153}
.mdRowText small:empty,.mdTail:empty {display:none}
.mdCrest {width:2.8rem;height:2.8rem;flex:none;position:relative;display:grid;place-items:center;background:#e2eade;border-radius:13px;color:#345336;font-size:.87rem;font-weight:730;letter-spacing:-.02em}
.mdCrest img {position:absolute;inset:0;padding:.22rem;box-sizing:border-box;width:100%;height:100%;background:#f0f4ec;object-fit:contain;border-radius:11px}
.mdCrest img[hidden],.mdBack[hidden] {display:none}
.mdTail {font-weight:650}
.mdForm {display:grid;gap:.85rem}
.mdLabel,.mdDialog legend {font-size:.93rem;font-weight:660;color:#334d3a}
.mdLabel {display:grid;gap:.38rem}
.mdLabel input {font:inherit;font-size:1rem;min-height:2.85rem;padding:.6rem .8rem;box-sizing:border-box;width:100%;min-width:0;border:1px solid #c5d1c4;border-radius:10px;background:#fff;color:#13291d;display:block}
.mdForm fieldset {margin:0;padding:0;border:0}
.mdForm legend {margin-bottom:.35rem}
.mdSides {gap:0;border:1px solid #c5d1c4;border-radius:10px;padding:.2rem}
.mdSides label {position:relative;flex:1}
.mdSides input {position:absolute;inset:0;opacity:0;cursor:pointer}
.mdSides span {display:block;text-align:center;font-weight:650;padding:.6rem;pointer-events:none;border-radius:8px}
.mdSides input:checked+span {background:#233c2b;color:white}
.mdSides input:focus-visible+span {outline:2px solid #689225}
.mdPair {align-items:stretch}
.mdPair .mdLabel {flex:1;min-width:0}
.mdResults {margin:.85rem 0 .3rem;line-height:1.48}
.mdPast {padding:.7rem 0}
.mdPast summary {color:#233c2b;cursor:pointer;font-weight:650}
@media(max-width:520px){dialog.mdDialog{width:100%;max-width:100%;max-height:92dvh;margin:auto 0 0;padding:1rem 1.1rem max(1.4rem,env(safe-area-inset-bottom));border-radius:22px 22px 0 0}.mdControls>*{flex:1;white-space:normal}.mdClose,.mdBack {min-height:2.6rem}.mdForm .mdPrimary {margin-top:.4rem}}

.matchTeamStrip,.matchTeamLabel,.mdCrestActions,.mdDraftCrest {display:inline-flex;align-items:center;gap:.45em}
.matchTeamStrip,.mdCrestActions {flex-wrap:wrap}
.matchTeamLabel {min-width:0}
.matchTeamLabel>span:last-child {overflow-wrap:anywhere}
.matchVersus {color:inherit;opacity:.65}
.mdDraftCrest {justify-self:start;min-height:44px;padding:.3rem .65rem;border:1px solid var(--line);border-radius:.65rem}
.mdCrestActions,.tsCrests {display:flex;flex-wrap:wrap;gap:.6rem}
.tsCrests[hidden] {display:none}
.heroTeam .matchTeamLabel {gap:.28em}
.heroTeam .clubBadge {flex-shrink:0;width:.85em;height:.85em;min-width:1.8rem;min-height:1.8rem}
.heroTeam .clubBadge>span {font-size:.42em}
