/* All rules are local to the match editor or its separate modal. */
.match-editor{margin:0;min-width:0}.match-editor-title{font-size:17px;line-height:1.3;margin:0 0 12px}.match-editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 18px}.match-field{display:flex;flex-direction:column;gap:6px;min-width:0}.match-field>label{font-weight:700;font-size:13px;line-height:1.4}.match-field select,.match-field input{display:block;width:100%;min-width:0;min-height:44px;box-sizing:border-box;font:inherit;font-size:16px;padding:9px 12px;border:1px solid #d6b36b88;border-radius:6px;color:var(--ivory,#f6efdf);background:#1a2a22}.match-field select{padding-right:30px}.match-field select:focus-visible,.match-field input:focus-visible{outline:3px solid var(--gold,#d6b36b);outline-offset:2px}.match-field-help{margin:0;color:var(--muted,#c0b89f);font-size:12px;line-height:1.5;overflow-wrap:anywhere}.match-readonly fieldset{margin:0;padding:0;border:0;min-width:0}.match-readonly input:disabled,.match-readonly select:disabled{opacity:.8;color:var(--ivory,#f6efdf);-webkit-text-fill-color:var(--ivory,#f6efdf)}
.match-control-dialog{box-sizing:border-box;width:min(940px,calc(100vw - 28px));max-width:none;max-height:calc(100dvh - 28px);padding:0;border:1px solid #d6b36b88;border-radius:12px;background:#202b23;color:var(--ivory,#f6efdf);overflow:hidden}.match-control-dialog[open]{display:flex;flex-direction:column}.match-control-dialog::backdrop{background:#000b}.match-control-header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:18px 20px;border-bottom:1px solid #d6b36b33;flex:0 0 auto;min-width:0}.match-control-header>div{min-width:0}.match-control-header h2{font-size:24px;line-height:1.2;margin:3px 0 0}.match-eyebrow{font-size:10px;font-weight:700;letter-spacing:1.8px;color:var(--gold,#d6b36b);margin:0}.match-table-name{font-size:12px;line-height:1.4;color:var(--muted,#c0b89f);margin:6px 0 0;overflow-wrap:anywhere}.match-close-button,.match-save-button{min-height:44px;min-width:44px;touch-action:manipulation}.match-close-button{flex:0 0 auto}.match-control-scroll{flex:1 1 auto;overflow-y:auto;min-height:0;padding:18px 20px;overscroll-behavior:contain;scroll-padding-block:12px}.match-record{margin:0 0 22px}.match-record h3{font-size:17px;margin:0 0 12px}.match-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0 0 14px}.match-summary>div{min-width:0;border:1px solid #d6b36b33;border-radius:7px;padding:10px;background:#ffffff04}.match-summary dt{font-size:11px;line-height:1.4;color:var(--muted,#c0b89f)}.match-summary dd{font-size:22px;line-height:1.2;margin:5px 0 0;font-weight:700}.match-table-scroll{overflow-x:auto;max-width:100%;border:1px solid #d6b36b33;border-radius:7px;overscroll-behavior:contain}.match-table{width:100%;border-collapse:collapse;font-size:13px;line-height:1.4}.match-table caption{padding:9px 12px;text-align:left;font-size:11px;color:var(--muted,#c0b89f)}.match-table th,.match-table td{padding:10px 12px;text-align:right;vertical-align:top;border-top:1px solid #d6b36b22}.match-table th:first-child{text-align:left;min-width:140px}.match-table thead th{min-width:115px;color:var(--gold,#d6b36b)}.match-table th small{display:block;font-size:11px;line-height:1.4;font-weight:400;color:var(--muted,#c0b89f);overflow-wrap:anywhere;margin-top:4px;max-width:230px}.match-table td{font-variant-numeric:tabular-nums}.match-last-round,.match-change-note,.match-completion{font-size:12px;line-height:1.5;margin:12px 0;overflow-wrap:anywhere}.match-completion{padding:10px 12px;border:1px solid #d6b36b66;background:#d6b36b0b;border-radius:7px;color:#f3dcaa}.match-change-note{color:var(--muted,#c0b89f)}.match-save-status{font-size:12px;line-height:1.4;min-height:16px;margin:8px 0 0}.match-control-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:12px 20px;border-top:1px solid #d6b36b33;flex:0 0 auto}.match-control-actions>p{margin:0;font-size:12px;line-height:1.4;color:var(--muted,#c0b89f)}.match-settings-form{margin:0}.match-control-dialog .match-save-button{min-width:140px}
@media(max-width:650px){.match-editor-grid{grid-template-columns:minmax(0,1fr);gap:14px}.match-editor-title{font-size:16px}.match-control-dialog{width:calc(100vw - 12px);max-height:calc(100dvh - 12px);border-radius:9px}.match-control-header{padding:12px;gap:8px}.match-control-header h2{font-size:20px}.match-control-header .match-close-button{padding:8px 12px}.match-control-scroll{padding:14px 12px}.match-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.match-summary dd{font-size:21px}.match-control-actions{padding:10px 12px}.match-control-dialog .match-save-button{width:100%}.match-table th,.match-table td{padding:9px 10px}.match-field select,.match-field input{font-size:16px;min-height:44px}.match-field-help{font-size:12px}.match-table thead th{min-width:112px}}
@media(prefers-reduced-motion:reduce){.match-control-dialog *{scroll-behavior:auto}}

.match-create-options{margin:12px 0}.match-create-options>summary{min-height:44px;display:flex;align-items:center;cursor:pointer;color:var(--gold);font-size:13px}.match-create-options[open]>.match-editor{padding:12px 0}.table-toolbar #match-control{min-height:44px;min-width:44px}.match-control-dialog .match-control-actions{display:flex}
