#tournamentChat {
 width: min(36rem,calc(100% - 2rem));
 max-height: calc(100dvh - 2rem);
 margin: auto;
 padding: 1rem;
 border: 1px solid currentColor;
 border-radius: .8rem;
 color: CanvasText;
 background: Canvas;
}
#tournamentChat::backdrop { background: rgb(0 0 0 / 65%); }
#tournamentChat[open] { display: flex; flex-direction: column; gap: .65rem; }
#tournamentChat header, #tournamentChat form { display: flex; gap: .75rem; align-items: start; }
#tournamentChat header { justify-content: space-between; }
#tournamentChat h2, #tournamentChat p { margin: 0; }
#tournamentChat [role="log"] { margin: 0; padding: .25rem; overflow-y: auto; min-height: 5rem; list-style: none; }
#tournamentChat li {
 width: fit-content;
 max-width: 88%;
 margin: .35rem 0;
 padding: .45rem .7rem;
 border-radius: .6rem;
 overflow-wrap: anywhere;
 background: color-mix(in srgb, CanvasText 9%, Canvas);
}
#tournamentChat li.mine { margin-inline-start: auto; background: color-mix(in srgb, #906530 30%, Canvas); }
#tournamentChat li strong { font-size: .85rem; }
#tournamentChat li p { white-space: pre-wrap; }
#tournamentChat textarea { flex: 1; min-width: 0; resize: vertical; font: inherit; }
#tournamentChat [role="status"]:empty { display: none; }

.tournament-result-dialog {
 width: min(28rem, calc(100% - 2rem));
 margin: auto;
 padding: 1rem;
 border: 1px solid currentColor;
 border-radius: .8rem;
 color: CanvasText;
 background: Canvas;
}
.tournament-result-dialog::backdrop { background: rgb(0 0 0 / 65%); }
.tournament-result-dialog label, .tournament-result-dialog select { display: block; }
.tournament-result-dialog select { width: 100%; margin: .5rem 0 1rem; font: inherit; }
.tournament-result-dialog div { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: end; }
