.match-detail-dialog{--match-dialog-inset:14px;box-sizing:border-box;width:min(500px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 80px);inset:48px 0 auto;margin:0 auto;padding:var(--match-dialog-inset);border:1px solid var(--edge,#344256);border-radius:10px;background:var(--surface,#172334);color:var(--text,#f2eee6);overflow:auto}
.match-detail-dialog::backdrop{background:#050b16a8}.match-dialog-open{overflow:hidden}
.match-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:14px}.match-dialog-header h2{font-size:20px;line-height:1.3;margin:0;min-width:0}.match-detail-dialog .match-dialog-header .button{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;flex:0 0 28px;aspect-ratio:1;width:28px;height:28px;min-width:28px;max-width:28px;min-height:28px;max-height:28px;padding:0;font-family:Arial,sans-serif;font-size:22px;line-height:1}
.match-dialog-note{font-size:13px;color:var(--secondary,#b9c3d1)}.match-dialog-note:empty{display:none}
.match-detail-dialog .public-board-history>.panel{padding:0;margin:var(--match-dialog-inset) 0 0;border:0;background:transparent;box-shadow:none}.match-dialog-context{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin:8px 0 12px;font-size:12px;line-height:1.5;color:var(--secondary,#b9c3d1)}.match-dialog-context>span:first-child{min-width:0}.match-dialog-context>.badge{flex-shrink:0}.match-detail-dialog .public-board-history>.panel>p{font-size:12px;line-height:1.5;margin:8px 0 12px;color:var(--secondary,#b9c3d1)}
.match-detail-dialog .sheet-game-summary{display:none}.match-detail-dialog .sheet-pairing{margin:0 calc(-1 * var(--match-dialog-inset));gap:0;padding:5px 0;border:1px solid var(--edge,#344256);border-left:0;border-right:0;background:var(--page,#0e1522)}.match-detail-dialog .sheet-pairing-row{padding:4px 10px;border:0;background:transparent}.match-detail-dialog .sheet-pairing .sheet-player-name{font-size:14px}
.match-dialog-games{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:var(--match-dialog-inset) 0}.match-dialog-games button{box-sizing:border-box;width:100%;min-width:0;border:1px solid var(--edge,#344256);border-radius:6px;background:var(--page,#0e1522);color:var(--secondary,#b9c3d1);padding:8px 4px;font:inherit;font-size:12px;cursor:pointer}.match-dialog-games strong{display:block;font-size:17px;font-weight:600;margin-top:3px}.match-dialog-games small{display:block;font-size:10px;margin-top:2px}.match-dialog-games button[aria-selected=true]{background:#253e5b;border-color:#6486ad;color:#f2eee6}.match-dialog-games button[aria-selected=true] strong{color:var(--accent,#ddbd7c)}.match-dialog-games button:disabled{opacity:.45;cursor:default}.match-dialog-games button:focus-visible{outline:2px solid var(--accent,#ddbd7c);outline-offset:2px}
.match-detail-dialog .public-board-history>.sheet-game{padding:0;border:0;background:transparent}.match-detail-dialog [data-dialog-panel][hidden]{display:none!important}
.match-dialog-games button:not(:disabled){transition:background-color .15s,border-color .15s}
@media(hover:hover){.match-dialog-games button:not(:disabled):hover{background:#304c6b;border-color:#8ba8c7;color:#f2eee6}}
@media(prefers-reduced-motion:reduce){.match-dialog-games button:not(:disabled){transition:none}}
@media(max-width:600px){.match-detail-dialog{--match-dialog-inset:10px;width:calc(100vw - 20px);max-height:calc(100dvh - 20px);top:10px;padding:var(--match-dialog-inset)}.match-dialog-header h2{font-size:18px}.match-dialog-games{gap:6px}.match-detail-dialog .sheet-pairing .sheet-player-name{font-size:13px}}

.match-detail-dialog .team-board-history{padding:0;margin:var(--match-dialog-inset) 0 0;border:0;background:transparent;box-shadow:none}.match-detail-dialog .team-board-history>p{font-size:12px;color:var(--secondary,#b9c3d1)}
@media(min-width:601px){.match-detail-dialog .public-scoresheet tbody td,.match-detail-dialog .public-scoresheet tfoot td{height:32px;padding:4px 0;line-height:1.2}}
@media(max-width:600px){.match-detail-dialog .sheet-column-full{display:none}.match-detail-dialog .sheet-column-short{display:inline}}

.match-dialog-header .button>svg{display:block;flex-shrink:0}

.match-detail-dialog .sheet-pairing>.match-dialog-context{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;margin:-5px 0 5px;padding:7px 10px;border-bottom:1px solid var(--edge,#344256);font-size:11px}.match-detail-dialog .sheet-pairing>.match-dialog-context>span:first-child{flex:1 1 180px}.match-detail-dialog .sheet-pairing>.match-dialog-context>.badge{margin-left:auto;white-space:nowrap}

.match-detail-dialog .sheet-names{margin-left:calc(-1 * var(--match-dialog-inset));margin-right:calc(-1 * var(--match-dialog-inset))}

.match-dialog-header-actions{display:flex;align-items:center;gap:6px;flex:none}.match-detail-dialog .match-dialog-header .button[hidden]{display:none}

.match-detail-dialog:focus,.match-detail-dialog :focus,.match-detail-dialog :focus-visible{outline:none;box-shadow:none}
