/* Phase 157 tournament tools: compact and theme-native, all progressive. */
.dl-tournament-page .dl-tournament-tools{display:flex;align-items:center;flex-wrap:wrap;gap:9px 12px;margin:12px 0 16px;padding:11px 12px;background:var(--secondary-bg);border-radius:4px;min-width:0}
.dl-tournament-page .dl-tool-label{display:flex;flex:1 1 210px;align-items:center;gap:10px;flex-wrap:wrap;min-width:0;color:var(--secondary);font-size:.9em}
.dl-tournament-page .dl-tool-search{flex:1 1 150px;min-width:0;width:100%;max-width:310px;height:37px;border:0;border-radius:4px;padding:7px 11px;background:var(--primary-bg);color:var(--primary);box-sizing:border-box}
.dl-tournament-page .dl-tool-count{font-size:.85em;color:var(--secondary);font-variant-numeric:tabular-nums}
.dl-tournament-page .dl-tool-reset,.dl-tournament-page .dl-tool-jump,.dl-tournament-page .dl-tool-select{display:inline-flex;align-items:center;min-height:35px;padding:6px 11px;border:0;border-radius:4px;color:var(--primary);text-decoration:none;cursor:pointer;font:inherit;font-size:.85em}
/* Clear and history actions must contrast with the input and surrounding panel. */
.dl-tournament-page .dl-tool-reset{background:var(--tertiary-bg);font-weight:600}
.dl-tournament-page .dl-tool-reset:hover{filter:brightness(1.14)}
.dl-tournament-page .dl-tool-jump,.dl-tournament-page .dl-tool-select{background:var(--primary-bg)}
.dl-tournament-page .dl-tool-jump:hover{background:var(--tertiary-bg)}
.dl-tournament-page :is(.dl-tool-search,.dl-tool-reset,.dl-tool-jump,.dl-tool-select):focus-visible,.dl-tournament-page .dl-review-queue a:focus-visible{outline:2px solid var(--primary);outline-offset:2px}
.dl-tournament-page .dl-tool-title{font-size:.9em;margin-right:3px}
.dl-tournament-management .dl-match-tools{margin-top:-4px}
.dl-tournament-page .dl-history-tools{margin-bottom:16px}
.dl-tournament-page .dl-tool-empty{padding:10px 12px;margin:-10px 0 16px;color:var(--secondary);font-size:.9em}
.dl-tournament-page .dl-review-queue{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:0 0 16px;padding:11px 12px;background:var(--secondary-bg);border-radius:4px}
.dl-tournament-page .dl-review-queue .dl-tool-jump{max-width:100%;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}
.dl-tournament-page .dl-match-filter{margin-top:0}
.dl-tournament-page .dl-final-standing-ranking tr[hidden],.dl-tournament-page #dl-public-participants li[hidden],.dl-tournament-page #dl-match-audit-history :is(details,tr)[hidden],.dl-tournament-page :is(.dl-team-match-card,.dl-match-score-form)[hidden],.dl-tournament-page .dl-tool-empty[hidden]{display:none!important}
@media(max-width:600px){.dl-tournament-page .dl-tournament-tools{align-items:stretch}.dl-tournament-page .dl-tool-label{flex-basis:100%}.dl-tournament-page .dl-tool-search{max-width:none}.dl-tournament-page .dl-review-queue .dl-tool-jump{flex:1 1 100%}}

/* Match tools are children of the active Matches panel, not the global tab shell. */
.dl-tournament-management #dl-group-results > .dl-match-tools:first-of-type{margin-top:10px}
.dl-tournament-management #dl-match-audit-history .dl-history-empty{color:var(--secondary);padding:10px 0}
.dl-tournament-page .dl-audit-timeline[hidden]{display:none!important}

/* Phase 161: compact participant score queue. Never hides a form until a visitor filters it. */
.dl-public-tournament .dl-report-summary{margin:0 0 9px;color:var(--secondary);font-size:.9em}
.dl-public-tournament .dl-player-report-tools{margin:0 0 16px}
.dl-public-tournament .dl-report-fixture h3{display:flex;align-items:center;flex-wrap:wrap;gap:9px}
.dl-public-tournament .dl-report-state{display:inline-flex;padding:3px 8px;border-radius:4px;background:var(--tertiary-bg);color:var(--secondary);font-size:.7em;font-weight:500;line-height:1.4}
.dl-public-tournament .dl-report-state--official{color:#88d6ae}
.dl-public-tournament .dl-report-state--action{color:var(--primary)}
.dl-public-tournament #dl-report-score .dl-report-fixture[hidden]{display:none!important}
.dl-public-tournament #dl-public-final-standing .dl-standing-name a,
.dl-public-tournament #dl-public-final-standing .dl-standing-member a{color:var(--primary);text-decoration:none}
.dl-public-tournament #dl-public-final-standing .dl-standing-name a:hover,
.dl-public-tournament #dl-public-final-standing .dl-standing-name a:focus-visible,
.dl-public-tournament #dl-public-final-standing .dl-standing-member a:hover,
.dl-public-tournament #dl-public-final-standing .dl-standing-member a:focus-visible{text-decoration:none;text-decoration-line:none}

/* Phase 163: direct player report status filters use the existing dropdown state. */
.dl-public-tournament .dl-report-status-shortcuts{display:flex;flex-wrap:wrap;gap:7px;margin:0 0 10px}
.dl-public-tournament .dl-report-status-shortcut{background:var(--secondary-bg);border:0;border-radius:4px;color:var(--primary);font:inherit;font-size:.85em;min-height:34px;padding:6px 11px;cursor:pointer}
.dl-public-tournament .dl-report-status-shortcut[aria-pressed="true"]{background:var(--tertiary-bg);font-weight:600}
.dl-public-tournament .dl-report-status-shortcut:focus-visible{outline:2px solid var(--primary);outline-offset:2px}

/* Phase 172: player-only participation summary and match queue. */
.dl-public-tournament .dl-my-tournament{background:var(--secondary-bg);border-radius:4px;padding:15px 18px;margin:0 0 18px}
.dl-public-tournament .dl-my-tournament-head{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:8px 14px}
.dl-public-tournament .dl-my-tournament-head h3{font-size:1.05em;margin:0}
.dl-public-tournament .dl-my-tournament-head span,.dl-public-tournament .dl-my-tournament-team{color:var(--secondary);font-size:.88em}
.dl-public-tournament .dl-my-tournament-team{margin:8px 0 0}
.dl-public-tournament .dl-my-tournament-links{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}
.dl-public-tournament .dl-my-tournament-links a{display:inline-flex;align-items:center;background:var(--tertiary-bg);color:var(--primary);padding:8px 12px;border-radius:4px;text-decoration:none;font-size:.87em}
.dl-public-tournament .dl-my-tournament-links a:hover{text-decoration:none;background:var(--tertiary-bg)}
.dl-public-tournament .dl-my-tournament-links a:focus-visible{outline:2px solid var(--primary);outline-offset:2px}
.dl-public-tournament .dl-my-match-queue{background:var(--secondary-bg);border-radius:4px;padding:12px;margin:0 0 18px}
.dl-public-tournament .dl-my-match-queue-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 7px}
.dl-public-tournament .dl-my-match-queue-items{display:grid;gap:3px}
.dl-public-tournament .dl-my-match-queue-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px 9px;border-radius:4px;color:var(--primary);text-decoration:none;min-width:0}
.dl-public-tournament .dl-my-match-queue-item:hover{background:var(--tertiary-bg);text-decoration:none}
.dl-public-tournament .dl-my-match-queue-item:focus-visible{outline:2px solid var(--primary);outline-offset:-2px}
.dl-public-tournament .dl-my-match-queue-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.9em}
.dl-public-tournament .dl-my-match-queue-item .dl-report-state{flex:none}
.dl-public-tournament .dl-my-match-queue-more{border:0;border-radius:4px;background:var(--tertiary-bg);color:var(--primary);padding:8px 11px;margin-top:9px;font:inherit;font-size:.86em;cursor:pointer}
.dl-public-tournament .dl-report-fixture[id]{scroll-margin-top:90px}
@media(max-width:580px){.dl-public-tournament .dl-my-tournament{padding:13px}.dl-public-tournament .dl-my-match-queue-label{white-space:normal}}
