.tournament-management{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}.tournament-editor{width:min(1120px,calc(100vw - 24px));max-height:calc(100dvh - 32px);padding:20px;box-sizing:border-box;border:1px solid #dce2eb;border-radius:18px;overflow:auto}.tournament-editor::backdrop{background:#101724a8}.tournament-editor-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}.tournament-editor-heading h2{margin:0 0 16px}.tournament-editor form>label{display:grid;gap:6px;margin:12px 0}.tournament-editor-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.tournament-editor-grid label{display:grid;gap:6px}.tournament-editor-scroll{max-width:100%;overflow:auto;margin:16px 0}.tournament-editor table{border-collapse:collapse}.tournament-editor th,.tournament-editor td{padding:6px;text-align:left;white-space:nowrap}.tournament-editor td input{width:92px}.tournament-editor td:nth-child(2) input{width:170px}.tournament-editor td select{width:150px}.tournament-editor td:first-child input{width:66px}.tournament-event{display:grid;grid-template-columns:76px 1fr 76px;gap:8px;margin:12px 0;padding:12px;border:1px solid #dce2eb;border-radius:12px}.tournament-event label{display:grid;gap:6px}.tournament-event label:last-of-type{grid-column:1/-1}.tournament-editor [data-error]{color:#b3261e;white-space:pre-wrap}.tournament-editor button{min-height:44px}.tournament-editor fieldset{min-width:0;border:0;padding:0}.tournament-editor input,.tournament-editor textarea{box-sizing:border-box}@media(max-width:600px){.tournament-editor{padding:14px}.tournament-editor-grid{grid-template-columns:1fr}.tournament-event{grid-template-columns:60px 1fr}.tournament-event label:nth-child(3){grid-column:1/-1}}
.tournament-management { padding:14px; border:1px solid #8d9bb329; border-radius:18px; background:#10182bd9; box-shadow:inset 0 1px #ffffff0a; }
.tournament-management .button,.tournament-editor button { font:inherit; cursor:pointer; transition:background-color .15s,border-color .15s,box-shadow .15s; }
.tournament-management .button { min-height:44px; padding:11px 16px; border:1px solid #697b9d70; border-radius:12px; background:#1d2940; color:#eef3ff; font-size:13px; font-weight:700; }
.tournament-management .button[data-create] { background:#3d3be0; border-color:#7976ff; }
.tournament-management .button[data-logout] { margin-left:auto; background:transparent; color:#b5c3dc; }
.tournament-management .button:hover:not(:disabled) { background:#304368; border-color:#a2b7e1; box-shadow:0 3px 12px #0003; }
.tournament-management .button[data-create]:hover:not(:disabled) { background:#504dff; }
.tournament-management .button:focus-visible,.tournament-editor button:focus-visible { outline:3px solid #89a9ff; outline-offset:3px; }
.tournament-management .button:disabled,.tournament-editor button:disabled { cursor:default; opacity:.55; }
.tournament-management [data-management-error]:empty { display:none; }
.tournament-management [data-management-error] { flex-basis:100%; margin:0; color:#ff929b; }
@media(max-width:650px) { .tournament-management { padding:10px; gap:8px; } .tournament-management .button { flex:1 1 150px; font-size:14px; } .tournament-management .button[data-logout] { flex:0 1 auto; margin-left:0; } }
.tournament-sync-note { flex-basis:100%; margin:2px 0 0; font-size:12px; line-height:1.5; color:#a9bad3; }
.tournament-title-rename { flex:0 0 auto; min-height:44px; padding:10px 14px; border:1px solid #9b9bdf85; border-radius:12px; background:#282653; color:#f0eeff; font:inherit; font-size:13px; font-weight:700; cursor:pointer; }
.tournament-title-rename:hover:not(:disabled) { background:#39356d; border-color:#b3aeff; }
.tournament-title-rename:focus-visible { outline:3px solid #89a9ff; outline-offset:3px; }
.tournament-title-rename:disabled { opacity:.55; cursor:default; }
.tournament-title-editor { width:min(520px,calc(100vw - 24px)); color:#eef2ff; background:#151c34; border-color:#7485a766; }
.tournament-title-editor .tournament-editor-heading h2 { margin:0; font-size:22px; }
.tournament-title-editor form>p { color:#bac6de; line-height:1.55; }
.tournament-title-editor input { min-width:0; width:100%; min-height:44px; padding:10px 12px; border:1px solid #687d9d; border-radius:10px; background:#0c1427; color:#f0f4ff; font:inherit; }
.tournament-title-editor input:focus-visible { outline:3px solid #89a9ff; outline-offset:2px; }
.tournament-title-editor button { padding:9px 14px; border:1px solid #7185a8; border-radius:10px; background:#243250; color:#f0f4ff; }
.tournament-title-editor .button-primary { background:#5548cd; border-color:#9f94ff; }
.tournament-title-editor [data-close] { padding:4px 14px; }
.tournament-title-editor [data-error] { color:#ffb3ba; }
.tournament-title-editor [data-error]:empty,.tournament-title-editor [data-title-status]:empty { display:none; }
.tournament-title-editor [data-title-status] { overflow-wrap:anywhere; }
.tournament-title-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:10px; }
@media(max-width:600px) { .tournament-title-rename { align-self:flex-start; } .tournament-title-actions button { flex:1; } }
