/* Diablo League tournament management: scoped to authenticated management route only.
   Brackets-Viewer and generator.css remain authoritative for bracket presentation. */
.dl-tournament-page:has(.dl-management-workspaces) .dl-management-workspaces {
 display:flex;flex-wrap:wrap;gap:4px;margin:1.1em 0 1em;position:relative;z-index:12;
 padding:8px;background:var(--primary-bg);border-radius:4px;
}
.dl-management-workspaces a, .dl-management-workspaces a:visited,
.dl-management-workspaces a:hover, .dl-management-workspaces a:focus {
 padding:8px 13px;display:inline-flex;align-items:center;min-height:36px;
 background:var(--secondary-bg);color:var(--primary);text-decoration:none;border-radius:4px;
}
.dl-management-workspaces a[aria-current="page"] {background:var(--tertiary-bg);font-weight:700;}
.dl-management-workspaces a:focus-visible {outline:2px solid var(--primary);outline-offset:2px;}
.dl-tournament-page.dl-workspaces-ready [data-dl-workspace-panel][hidden] {display:none !important;}
.dl-tournament-page:has(.dl-management-workspaces) > section.panel {margin-bottom:1em;}
.dl-tournament-page:has(.dl-management-workspaces) :is(#dl-group-results,#dl-playoff-results,#dl-match-audit-history,#dl-qualification,#dl-playoff-reset) {max-width:100%;}
.dl-tournament-page:has(.dl-management-workspaces) :is(#dl-group-results,#dl-playoff-results) form.dl-match-score-form {
 display:flex;align-items:end;flex-wrap:wrap;gap:8px 12px;
 margin:8px 0 14px;padding:12px;background:var(--secondary-bg);border-radius:4px;
}
.dl-tournament-page:has(.dl-management-workspaces) :is(#dl-group-results,#dl-playoff-results) form :is(input[type="number"],input[type="text"],textarea) {max-width:200px;min-width:65px;}
.dl-tournament-page:has(.dl-management-workspaces) :is(#dl-group-results,#dl-playoff-results) form input[type="number"] {width:76px;}
.dl-tournament-page:has(.dl-management-workspaces) :is(#dl-group-results,#dl-playoff-results) form button {white-space:normal;}
.dl-tournament-page:has(.dl-management-workspaces) :is(#dl-match-audit-history,#dl-qualification) table {width:100%;border-collapse:separate;border-spacing:2px;}
.dl-tournament-page:has(.dl-management-workspaces) :is(#dl-match-audit-history,#dl-qualification) :is(th,td) {overflow-wrap:anywhere;}
.dl-tournament-page:has(.dl-management-workspaces) :is(input,select,textarea) {max-width:100%;}
.dl-tournament-page:has(.dl-management-workspaces) section {scroll-margin-top:90px;}
@media(max-width:640px){.dl-management-workspaces a{flex:1 1 auto;justify-content:center}.dl-tournament-page:has(.dl-management-workspaces) :is(#dl-group-results,#dl-playoff-results) form.dl-match-score-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}}

/* v0.9.10.12.5.8.46 — shared tournament shell. No brackets-viewer or generator styles changed. */
.dl-tournament-page .dl-tournament-hero{margin:0 0 14px;background:var(--secondary-bg);border-radius:4px;}
.dl-tournament-hero-top,.dl-tournament-meta{display:flex;gap:8px 16px;flex-wrap:wrap;align-items:center;}
.dl-tournament-hero-top{margin-bottom:10px;}
.dl-tournament-status,.dl-tournament-format{display:inline-flex;padding:2px 9px;background:var(--tertiary-bg);border-radius:4px;font-size:.78em;color:var(--primary);}
.dl-tournament-page .dl-tournament-hero h1{overflow-wrap:anywhere;}
.dl-tournament-subtitle{color:var(--secondary);margin:0 0 10px;}
.dl-tournament-meta{font-size:.86em;color:var(--secondary);}
.dl-public-tournament .dl-public-tournament-tabs{margin:0 0 18px;padding:0 0 10px;border-bottom:2px solid var(--tertiary-bg);}
.dl-public-tournament .dl-public-tournament-tabs a{padding:9px 15px;background:var(--secondary-bg);color:var(--primary);text-decoration:none;border-radius:4px;}
.dl-public-tournament .dl-public-tournament-tabs a:hover,.dl-public-tournament .dl-public-tournament-tabs a:visited,.dl-public-tournament .dl-public-tournament-tabs a:focus{color:var(--primary);}
.dl-public-tournament .dl-public-tournament-tabs a.is-active{background:var(--tertiary-bg);font-weight:700;}
.dl-public-tournament .dl-public-tournament-main{display:grid;grid-template-columns:minmax(0,1fr) minmax(230px,300px);gap:18px;align-items:start;}
.dl-public-tournament .dl-public-tournament-content,.dl-public-tournament .dl-public-tournament-aside{min-width:0;}
.dl-public-tournament .dl-public-tournament-aside .panel{margin:0 0 16px;}
.dl-public-tournament .dl-public-tournament-aside h2{font-size:1.25em;margin:0 0 12px;}
.dl-public-tournament :is(#dl-public-participants,#dl-public-final-standing){background:var(--secondary-bg);padding:20px;border-radius:4px;}
/* Draft public page: keep participant list a panel, but let the shared team cards
   sit on the page background instead of matching an enclosing panel. */
.dl-public-tournament #dl-public-participants.dl-draft-participants-layout{background:transparent;padding:0;}
.dl-public-tournament .dl-draft-participant-roster{background:var(--secondary-bg);padding:20px;border-radius:4px;}
.dl-public-tournament #dl-public-participants.dl-draft-participants-layout #dl-public-draft{margin-top:20px;min-width:0;}
/* Draft overview is a separate panel; the team board remains on the page surface. */
.dl-public-tournament #dl-public-draft .dl-draft-overview{background:var(--secondary-bg);padding:20px;border-radius:4px;margin-bottom:20px;}

.dl-public-tournament #dl-public-participants ol{columns:2;column-gap:24px;padding-left:24px;}
.dl-public-tournament #dl-public-participants li{break-inside:avoid;padding:2px 0;}
.dl-public-tournament .dl-public-tournament-content .brackets-viewer{max-width:100%;overflow-x:auto;}
.dl-tournament-management .dl-management-workspaces{top:0;}
.dl-tournament-management [data-dl-workspace-panel]{min-width:0;}

@media(max-width:900px){.dl-public-tournament .dl-public-tournament-main{grid-template-columns:minmax(0,1fr)}.dl-public-tournament .dl-public-tournament-aside{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}}
@media(max-width:600px){.dl-tournament-page .dl-tournament-hero{padding:14px}.dl-public-tournament .dl-public-tournament-aside{display:block}.dl-public-tournament #dl-public-participants ol{columns:1}.dl-public-tournament .dl-public-tournament-tabs a{flex:1;text-align:center;padding:8px}}

/* v0.9.10.12.5.8.48: tournament information density and scoped score editor layout.
   Intentionally does not style .brackets-viewer internals or change generator.css. */
.dl-public-tournament #dl-group-standings{margin-bottom:20px;}
.dl-public-tournament #dl-group-standings .dl-standings-group{margin:8px 0;border:0;border-radius:4px;overflow:hidden;background:var(--secondary-bg);}
.dl-public-tournament #dl-group-standings .dl-standings-group>summary{cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;color:var(--primary);list-style:none;}
.dl-public-tournament #dl-group-standings .dl-standings-group>summary::-webkit-details-marker{display:none;}
.dl-public-tournament #dl-group-standings .dl-standings-group>summary span{font-size:.8em;color:var(--secondary);white-space:nowrap;}
.dl-public-tournament #dl-group-standings .dl-standings-group[open]>summary{border-bottom:2px solid var(--primary-bg);}
.dl-public-tournament #dl-group-standings .dl-standings-group>p{margin:8px 14px;}
.dl-public-tournament #dl-group-standings .dl-standings-group .dl-table-scroll{overflow-x:auto;}
.dl-public-tournament #dl-group-standings .dl-standings-group table{width:100%;margin:0;}
.dl-public-tournament .dl-public-stages #dl-group-bracket,
.dl-public-tournament #dl-playoff-bracket{max-width:100%;overflow:auto;overscroll-behavior-inline:contain;}
.dl-public-tournament .dl-public-stages h2{margin-top:0;}
/* v0.9.10.12.5.8.50 — compact official score editor.
   Scoped to management forms only; no Brackets-Viewer internals. */
.dl-tournament-management :is(#dl-group-results,#dl-playoff-results) form.dl-match-score-form {display:grid;gap:10px 16px;align-items:end;margin:0 0 8px;background:var(--secondary-bg);border:0;border-radius:4px;}
.dl-tournament-management :is(#dl-group-results,#dl-playoff-results) form.dl-match-score-form > p {grid-column:1/-1;padding:0 0 6px;border-bottom:0;line-height:1.4;overflow-wrap:anywhere;}
.dl-tournament-management :is(#dl-group-results,#dl-playoff-results) form.dl-match-score-form > label {
 display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:0;
 font-size:.86em;color:var(--secondary);line-height:1.35;
}
.dl-tournament-management :is(#dl-group-results,#dl-playoff-results) form.dl-match-score-form > label input[type=number] {
 width:100%;min-width:0;max-width:100%;height:38px;min-height:38px;
 background:var(--tertiary-bg);color:var(--primary);padding:7px 10px;
 border:0;border-radius:4px;box-sizing:border-box;
}
.dl-tournament-management :is(#dl-group-results,#dl-playoff-results) form.dl-match-score-form > label:has(input[name=reason]) {min-width:0;width:100%;}
.dl-tournament-management :is(#dl-group-results,#dl-playoff-results) form.dl-match-score-form > label input[name=reason] {min-width:0;height:38px;min-height:38px;background:var(--tertiary-bg);color:var(--primary);padding:7px 10px;border:0;border-radius:4px;box-sizing:border-box;}
.dl-tournament-management :is(#dl-group-results,#dl-playoff-results) form.dl-match-score-form > button {min-height:36px;white-space:nowrap;background:var(--tertiary-bg);color:var(--primary);border:0;border-radius:4px;cursor:pointer;}
.dl-tournament-management :is(#dl-group-results,#dl-playoff-results) form.dl-match-score-form > button:focus-visible {
 outline:2px solid var(--primary);outline-offset:2px;
}
@media(max-width:650px){
 .dl-tournament-management :is(#dl-group-results,#dl-playoff-results) form.dl-match-score-form {grid-template-columns:repeat(2,minmax(0,1fr));}
 .dl-tournament-management :is(#dl-group-results,#dl-playoff-results) form.dl-match-score-form > label:has(input[name=reason]) {grid-column:1/-1;}
 .dl-tournament-management :is(#dl-group-results,#dl-playoff-results) form.dl-match-score-form > button {grid-column:1/-1;grid-row:auto;justify-self:start;white-space:normal;}
}
/* v0.9.10.12.5.8.68: theme-native match input focus without resting borders. */
.dl-tournament-management :is(#dl-group-results,#dl-playoff-results) form.dl-match-score-form input:is([type=number],[name=reason]):focus-visible {
 outline:2px solid var(--primary);outline-offset:2px;
}
/* v0.9.10.12.5.8.51: public group selector and full-width match rows. */
.dl-public-tournament .dl-public-tournament-content { min-width:0; }
.dl-public-tournament .dl-public-stages { width:100%; min-width:0; }
.dl-public-tournament .dl-group-viewer-picker:not([hidden]) { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin:12px 0 18px; }
.dl-public-tournament .dl-group-viewer-picker label { color:var(--secondary); }
.dl-public-tournament .dl-group-viewer-picker select { color:var(--primary); background:var(--secondary-bg); min-width:180px; padding:7px 10px; border:0; border-radius:4px; }
#dl-group-bracket .round-robin > .group[hidden] { display:none !important; }

.dl-tournament-management :is(#dl-group-results,#dl-playoff-results) form.dl-match-score-form > button:is(:hover,:focus,:active) { color:var(--primary) !important; }




/* v0.9.10.12.5.8.54: restore the public two-column shell; fix only inner stage width. */
.dl-public-tournament .dl-public-tournament-main:has(.dl-public-stages) {
  grid-template-columns:minmax(0,1fr) minmax(230px,300px);
}
.dl-public-tournament .dl-public-tournament-content,
.dl-public-tournament .dl-public-tournament-aside {min-width:0; width:auto; max-width:none;}
.dl-public-tournament #dl-group-standings,
.dl-public-tournament #dl-group-standings .dl-standings-group,
.dl-public-tournament #dl-group-standings .dl-table-scroll,
.dl-public-tournament #dl-group-standings table {width:100%;max-width:none;}

.dl-public-tournament #dl-group-standings .dl-group-standings-table th:nth-child(2),
.dl-public-tournament #dl-group-standings .dl-group-standings-table td:nth-child(2) {
  text-align:center;
}
@media(max-width:900px) {
 .dl-public-tournament .dl-public-tournament-main:has(.dl-public-stages) {grid-template-columns:minmax(0,1fr);}
}


/* v0.9.10.12.5.8.57: independent stage overview row + full-width stage workspace. */
.dl-public-tournament .dl-public-tournament-main.dl-public-tournament-main--stages {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(230px,300px);
  gap:16px 18px;
  align-items:start;
}
.dl-public-tournament .dl-public-tournament-main--stages .dl-public-stage-brief { grid-column:1;grid-row:1;min-width:0; }
.dl-public-tournament .dl-public-tournament-main--stages .dl-public-stage-brief h2 { margin:0 0 10px; }
.dl-public-tournament .dl-public-tournament-main--stages .dl-public-tournament-aside {
  grid-column:2; grid-row:1; min-width:0; width:auto;
}
.dl-public-tournament .dl-public-tournament-main--stages .dl-public-tournament-content {
  grid-column:1/-1; grid-row:2; min-width:0; width:100%; max-width:none;
}
.dl-public-tournament .dl-public-tournament-main--stages .dl-public-stages,
.dl-public-tournament .dl-public-tournament-main--stages #dl-group-standings,
.dl-public-tournament .dl-public-tournament-main--stages #dl-group-bracket {width:100%;max-width:none;min-width:0;}
@media(max-width:800px){
 .dl-public-tournament .dl-public-tournament-main.dl-public-tournament-main--stages {grid-template-columns:minmax(0,1fr);}
 .dl-public-tournament .dl-public-tournament-main--stages .dl-public-stage-brief {grid-column:1;grid-row:1;}
 .dl-public-tournament .dl-public-tournament-main--stages .dl-public-tournament-aside {grid-column:1;grid-row:2;}
 .dl-public-tournament .dl-public-tournament-main--stages .dl-public-tournament-content {grid-column:1;grid-row:3;}
}


/* Dense match editor: align the scores and correction controls without large gaps. */
.dl-tournament-management :is(#dl-group-results,#dl-playoff-results) form.dl-match-score-form {grid-template-columns:repeat(2,minmax(0,1fr));column-gap:12px;row-gap:6px;padding:10px 12px;}
.dl-tournament-management :is(#dl-group-results,#dl-playoff-results) form.dl-match-score-form > p {margin:0 0 3px;padding-bottom:5px;}
.dl-tournament-management :is(#dl-group-results,#dl-playoff-results) form.dl-match-score-form > label {margin:0;}
.dl-tournament-management :is(#dl-group-results,#dl-playoff-results) form.dl-match-score-form > label:has(input[name=reason]) {grid-column:1 / -1;}
.dl-tournament-management :is(#dl-group-results,#dl-playoff-results) form.dl-match-score-form > label input[name=reason] {width:100%;max-width:none;}
.dl-tournament-management :is(#dl-group-results,#dl-playoff-results) form.dl-match-score-form > button {grid-row:auto;grid-column:1 / -1;justify-self:start;margin-top:2px;padding:6px 12px;}
.dl-tournament-management :is(#dl-group-results,#dl-playoff-results) form.dl-match-score-form > button:is(:link,:visited,:hover,:focus,:focus-visible,:active) {color:var(--primary) !important;}
@media(min-width:820px) {
 .dl-tournament-management :is(#dl-group-results,#dl-playoff-results) form.dl-match-score-form {grid-template-columns:140px 140px minmax(0,1fr) auto;align-items:end;}
 .dl-tournament-management :is(#dl-group-results,#dl-playoff-results) form.dl-match-score-form > p {grid-column:1/-1;}
 .dl-tournament-management :is(#dl-group-results,#dl-playoff-results) form.dl-match-score-form > label:has(input[name=reason]) {grid-column:3;}
 .dl-tournament-management :is(#dl-group-results,#dl-playoff-results) form.dl-match-score-form > button {grid-column:4;grid-row:auto;align-self:end;white-space:nowrap;}
}

/* 0.9.10.12.5.8.60: consistent score action surface for every input state. */
.dl-tournament-management :is(#dl-group-results,#dl-playoff-results) form.dl-match-score-form > button,
.dl-tournament-management :is(#dl-group-results,#dl-playoff-results) form.dl-match-score-form > button:hover,
.dl-tournament-management :is(#dl-group-results,#dl-playoff-results) form.dl-match-score-form > button:focus,
.dl-tournament-management :is(#dl-group-results,#dl-playoff-results) form.dl-match-score-form > button:active {
  background: var(--tertiary-bg) !important;
  color: var(--primary) !important;
  box-shadow: none;
}

/* v0.9.10.12.5.8.65 — four round columns; separate group title.
   Brackets-Viewer may emit h2 (not h3) for the group name.
   Only round wrappers participate in the four-column flow. */
.dl-public-tournament #dl-group-bracket {width:100%;min-width:0;max-width:100%;overflow-x:auto;text-align:left;}
.dl-public-tournament #dl-group-bracket .round-robin {display:block;width:100%;min-width:0;max-width:none;}
.dl-public-tournament #dl-group-bracket .round-robin > .group {
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
  gap:20px 12px;width:100%;min-width:0;margin:0;align-items:start;
}
.dl-public-tournament #dl-group-bracket .round-robin > .group[hidden] {display:none !important;}
/* Header/meta are not rounds. Span the full grid regardless of heading level. */
.dl-public-tournament #dl-group-bracket .round-robin > .group > :first-child {
  grid-column:1 / -1;min-width:0;
}
.dl-public-tournament #dl-group-bracket .round-robin > .group > :is(h1,h2,h3,h4) {
  text-align:center;margin:0;
}
.dl-public-tournament #dl-group-bracket .round-robin > .group > .round-wrapper {
  display:block;width:100%;min-width:0;max-width:none;margin:0;
}
.dl-public-tournament #dl-group-bracket .round-robin > .group > .round-wrapper > .round {
  display:flex;flex-direction:column;flex-wrap:nowrap;gap:8px;align-items:center;
  width:100%;max-width:none;
}
.dl-public-tournament #dl-group-bracket .round-robin > .group > .round-wrapper > .round > .match {
  width:min(100%,195px);min-width:0;max-width:195px;flex:0 0 auto;margin:0;
}
@media (max-width:850px) {
  .dl-public-tournament #dl-group-bracket .round-robin > .group {grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media (max-width:640px) {
  .dl-public-tournament #dl-group-bracket .round-robin > .group {grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:400px) {
  .dl-public-tournament #dl-group-bracket .round-robin > .group {grid-template-columns:minmax(0,1fr);}
}

/* v0.9.10.12.5.8.67: distinct separation between round-robin groups, without changing round grid. */
.dl-public-tournament #dl-group-bracket .round-robin > .group + .group { margin-top: 44px; }
@media (max-width:640px) { .dl-public-tournament #dl-group-bracket .round-robin > .group + .group { margin-top: 28px; } }

/* v0.9.10.12.5.8.69 — use management table visual language on public standings.
   Keeps the spacious manager row height, with centered player column. */
.dl-public-tournament #dl-group-standings .dl-group-standings-table {
  width:100%; border-collapse:separate; border-spacing:0; table-layout:auto;
}
.dl-public-tournament #dl-group-standings .dl-group-standings-table th,
.dl-public-tournament #dl-group-standings .dl-group-standings-table td {
  padding:10px 14px;
  text-align:center;
  vertical-align:middle;
  background:var(--secondary-bg);
  border-right:2px solid var(--primary-bg);
  border-bottom:2px solid var(--primary-bg);
}
.dl-public-tournament #dl-group-standings .dl-group-standings-table th {
  font-weight:700;
  background:var(--secondary-bg);
}
.dl-public-tournament #dl-group-standings .dl-group-standings-table th:last-child,
.dl-public-tournament #dl-group-standings .dl-group-standings-table td:last-child {border-right:0;}
.dl-public-tournament #dl-group-standings .dl-group-standings-table tbody tr:last-child td {border-bottom:0;}


/* Match the public disclosure panel treatment without affecting other admin sections. */
.dl-tournament-management #dl-group-standings .dl-standings-group {
 margin:8px 0;border:0;border-radius:4px;overflow:hidden;background:var(--secondary-bg);
}
.dl-tournament-management #dl-group-standings .dl-standings-group > summary {
 cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:12px;
 padding:10px 14px;color:var(--primary);list-style:none;
}
.dl-tournament-management #dl-group-standings .dl-standings-group > summary::-webkit-details-marker {display:none;}
.dl-tournament-management #dl-group-standings .dl-standings-group > summary span {font-size:.8em;color:var(--secondary);white-space:nowrap;}
.dl-tournament-management #dl-group-standings .dl-standings-group[open] > summary {border-bottom:2px solid var(--primary-bg);}
.dl-tournament-management #dl-group-standings .dl-standings-group > p {margin:8px 14px;}
.dl-tournament-management #dl-group-standings .dl-standings-group .dl-table-scroll {overflow-x:auto;}
/* v0.9.10.12.5.8.70 — identical public table treatment in management standings.
   Keeps the spacious manager row height, with centered player column. */
.dl-tournament-management #dl-group-standings .dl-group-standings-table {
  width:100%; border-collapse:separate; border-spacing:0; table-layout:auto;
}
.dl-tournament-management #dl-group-standings .dl-group-standings-table th,
.dl-tournament-management #dl-group-standings .dl-group-standings-table td {
  padding:10px 14px;
  text-align:center;
  vertical-align:middle;
  background:var(--secondary-bg);
  border-right:2px solid var(--primary-bg);
  border-bottom:2px solid var(--primary-bg);
}
.dl-tournament-management #dl-group-standings .dl-group-standings-table th {
  font-weight:700;
  background:var(--secondary-bg);
}
.dl-tournament-management #dl-group-standings .dl-group-standings-table th:last-child,
.dl-tournament-management #dl-group-standings .dl-group-standings-table td:last-child {border-right:0;}
.dl-tournament-management #dl-group-standings .dl-group-standings-table tbody tr:last-child td {border-bottom:0;}
.dl-tournament-management #dl-group-standings .dl-group-standings-table th:nth-child(2),
.dl-tournament-management #dl-group-standings .dl-group-standings-table td:nth-child(2) {text-align:center;}

/* .73: tournament title and registration share a dedicated header row.
   Stage content is no longer pushed down by a sidebar above it. */
.dl-public-tournament .dl-public-hero-row {display:grid;grid-template-columns:minmax(0,1fr) minmax(230px,300px);gap:18px;align-items:stretch;margin-bottom:14px;}
.dl-public-tournament .dl-public-hero-row .dl-tournament-hero {margin:0;min-width:0;}
.dl-public-tournament .dl-public-header-registration {min-width:0;}
.dl-public-tournament .dl-public-header-registration .dl-entrant-roster {height:100%;margin:0;box-sizing:border-box;}
.dl-public-tournament .dl-public-tournament-main--stages {display:block;}
.dl-public-tournament .dl-public-tournament-main--stages .dl-public-stage-brief,
.dl-public-tournament .dl-public-tournament-main--stages .dl-public-tournament-content {width:100%;max-width:none;min-width:0;}
.dl-public-tournament .dl-public-tournament-main--stages .dl-public-tournament-aside:empty {display:none;}
@media (max-width:800px) {
 .dl-public-tournament .dl-public-hero-row {grid-template-columns:minmax(0,1fr);}
}

/* v0.9.10.12.5.8.78 — compact tournament identity header.
   Only the title panel is affected; registration, match grids and brackets untouched. */
.dl-tournament-page .dl-tournament-hero {
  display:flex;flex-direction:column;justify-content:center;
  padding:22px 24px;
}
.dl-tournament-page .dl-tournament-hero-top {
  display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:12px;
}
.dl-tournament-page .dl-tournament-hero :is(.dl-tournament-status,.dl-tournament-format) {
  display:inline-flex;align-items:center;min-height:26px;box-sizing:border-box;
  padding:4px 9px;border:0;border-radius:4px;background:var(--tertiary-bg);
  color:var(--primary);font-size:.78rem;font-weight:600;line-height:1.25;letter-spacing:0;
}
.dl-tournament-page .dl-tournament-hero .dl-tournament-format {
  color:var(--primary);font-weight:500;
}
.dl-tournament-page .dl-tournament-hero h1 {
  font-size:clamp(1.65rem,2.5vw,2.35rem);line-height:1.14;
  letter-spacing:-.02em;margin:0 0 8px;
}
.dl-tournament-page .dl-tournament-subtitle {
  margin:0 0 16px;color:var(--secondary);font-size:.92rem;
}
.dl-tournament-page .dl-tournament-meta {
  display:flex;gap:8px;flex-wrap:wrap;align-items:center;
  margin-top:auto;font-size:.8rem;color:var(--secondary);
}
.dl-tournament-page .dl-tournament-meta > span {
  display:inline-flex;gap:6px;align-items:center;padding:5px 9px;
  background:var(--tertiary-bg);border-radius:4px;line-height:1.3;
}
.dl-tournament-page .dl-tournament-meta strong {color:var(--primary);font-weight:600;}
@media(max-width:600px) {
  .dl-tournament-page .dl-tournament-hero {padding:16px;}
  .dl-tournament-page .dl-tournament-hero h1 {font-size:1.65rem;}
}

/* v0.9.10.12.5.8.82 — align organizer metadata with ELO/points below title. */
.dl-tournament-page .dl-tournament-hero h1 {margin-bottom:16px;}

/* v0.9.10.12.5.8.83 — all public tournament destinations in one accessible row. */
.dl-public-tournament .dl-public-tournament-tabs {
  display:flex; flex-wrap:nowrap; gap:4px; overflow-x:auto; overflow-y:hidden;
  scrollbar-width:thin; -webkit-overflow-scrolling:touch;
}
.dl-public-tournament .dl-public-tournament-tabs a {
  flex:0 0 auto; white-space:nowrap; text-align:center;
}
.dl-public-tournament .dl-public-tournament-tabs a:focus-visible {
  outline:2px solid var(--primary); outline-offset:-2px;
}
@media (max-width:650px) {
  .dl-public-tournament .dl-public-tournament-tabs a {flex:0 0 auto; padding:8px 12px;}
}

/* v0.9.10.12.5.8.93 — participant report review cards.
   Match report action uses dedicated layout, not the match-score entry form. */
.dl-tournament-management #dl-group-results .dl-report-review {
  margin: 4px 0 16px; padding: 14px; border: 0;
  border-radius: 4px; background: var(--tertiary-bg);
}
.dl-tournament-management #dl-group-results .dl-report-review-header {
  display:flex; flex-flow:row wrap; align-items:center; gap:10px;
  margin:0 0 12px; padding:0;
}
.dl-tournament-management #dl-group-results .dl-report-review-header > strong {
  color:var(--primary); font-weight:700; line-height:1.25;
}
.dl-tournament-management #dl-group-results .dl-report-review-status {
  display:inline-flex; align-items:center; padding:4px 9px;
  background:var(--secondary-bg); color:var(--primary);
  border-radius:4px; font-size:13px; font-weight:600; line-height:1.25;
}
.dl-tournament-management #dl-group-results .dl-report-review-list {display:grid;gap:10px;}
.dl-tournament-management #dl-group-results form.dl-report-approval {
  display:grid; grid-template-columns:minmax(0,1fr) auto;
  align-items:center; gap:18px; width:100%; box-sizing:border-box;
  margin:0; padding:14px; border:0;
  border-radius:4px; background:var(--secondary-bg);
}
.dl-tournament-management #dl-group-results .dl-report-info {
  display:flex; flex-direction:column; align-items:flex-start;
  gap:6px; min-width:0; line-height:1.35;
}
.dl-tournament-management #dl-group-results .dl-report-reporter {
  display:block; color:var(--primary); font-weight:700; overflow-wrap:anywhere;
}
.dl-tournament-management #dl-group-results .dl-report-matchup {
  display:block; color:var(--primary); overflow-wrap:anywhere;
}
.dl-tournament-management #dl-group-results .dl-report-score {
  display:block; color:var(--secondary); font-size:14px;
}
.dl-tournament-management #dl-group-results .dl-report-score strong {color:var(--primary);}
.dl-tournament-management #dl-group-results form.dl-report-approval > button.dl-report-approve-btn,
.dl-tournament-management #dl-group-results form.dl-report-approval > button.dl-report-approve-btn:is(:hover,:focus,:active) {
  display:inline-flex; align-items:center; justify-content:center;
  align-self:center; justify-self:end; width:auto; min-height:40px;
  box-sizing:border-box; margin:0; padding:9px 15px;
  background:var(--tertiary-bg) !important; color:var(--primary) !important;
  border:0; border-radius:4px; font-weight:600; font-size:14px;
  opacity:1; white-space:nowrap; cursor:pointer;
}
.dl-tournament-management #dl-group-results form.dl-report-approval > button.dl-report-approve-btn:focus-visible {
  outline:2px solid var(--primary); outline-offset:3px;
}
@media (max-width:700px){
  .dl-tournament-management #dl-group-results form.dl-report-approval {grid-template-columns:1fr;}
  .dl-tournament-management #dl-group-results form.dl-report-approval > button.dl-report-approve-btn {justify-self:start;}
}

/* v0.9.10.12.5.8.94 — official editor layout only; preserve participant reports */
@media(min-width:821px){
.dl-tournament-management :is(#dl-group-results,#dl-playoff-results) form.dl-match-score-form{
display:grid!important;grid-template-columns:150px 150px minmax(0,1fr) auto!important;align-items:end!important;gap:10px 12px!important;padding:12px 14px!important}
.dl-tournament-management :is(#dl-group-results,#dl-playoff-results) form.dl-match-score-form>p{
grid-column:1/-1!important;grid-row:1!important;margin:0!important;padding:0 0 3px!important}
.dl-tournament-management :is(#dl-group-results,#dl-playoff-results) form.dl-match-score-form>label:nth-of-type(1){
grid-column:1!important;grid-row:2!important}
.dl-tournament-management :is(#dl-group-results,#dl-playoff-results) form.dl-match-score-form>label:nth-of-type(2){
grid-column:2!important;grid-row:2!important}
.dl-tournament-management :is(#dl-group-results,#dl-playoff-results) form.dl-match-score-form>label:has(input[name=reason]){
grid-column:3!important;grid-row:2!important}
.dl-tournament-management :is(#dl-group-results,#dl-playoff-results) form.dl-match-score-form>button{
grid-column:4!important;grid-row:2!important;align-self:end!important;justify-self:end!important;margin:0!important}
}
@media(max-width:820px){
.dl-tournament-management :is(#dl-group-results,#dl-playoff-results) form.dl-match-score-form{
display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px 12px!important;padding:12px!important}
.dl-tournament-management :is(#dl-group-results,#dl-playoff-results) form.dl-match-score-form>p{
grid-column:1/-1!important;grid-row:auto!important}
.dl-tournament-management :is(#dl-group-results,#dl-playoff-results) form.dl-match-score-form>label:has(input[name=reason]),
.dl-tournament-management :is(#dl-group-results,#dl-playoff-results) form.dl-match-score-form>button{
grid-column:1/-1!important;grid-row:auto!important;justify-self:start!important}
}
.dl-tournament-management :is(#dl-group-results,#dl-playoff-results) form.dl-match-score-form>label{min-width:0!important;margin:0!important}
.dl-tournament-management :is(#dl-group-results,#dl-playoff-results) form.dl-match-score-form>label input[type=number]{
width:100%!important;max-width:100%!important;min-height:38px!important}

/* v0.9.10.12.5.8.97: report fixture identification */
.dl-tournament-management .dl-report-approval .dl-report-fixture-id{display:block;color:var(--primary);font-size:.9rem;font-weight:700;margin-bottom:4px;}

/* v.98: pending-report amendment disclosure */
.dl-public-tournament .dl-report-amend{margin-top:12px;padding:10px 12px;background:var(--secondary-bg);border-radius:4px}
.dl-public-tournament .dl-report-amend>summary{cursor:pointer;color:var(--primary);font-weight:600}
.dl-public-tournament .dl-report-amend>p{color:var(--secondary);margin:10px 0}
.dl-public-tournament .dl-report-amend .dl-participant-score-form{margin-top:10px}

/* v0.9.10.12.5.8.103 — correction cards: readable independent styling. */
.dl-tournament-management .dl-correction-request-card {
  background:var(--secondary-bg)!important;
  border:0!important;border-radius:4px;
  padding:16px!important;
}
.dl-tournament-management .dl-correction-request-card > p {margin:0 0 12px!important;line-height:1.5;}
.dl-tournament-management .dl-correction-request-card .dl-score-correction-review {
  display:flex!important;flex-flow:row wrap!important;align-items:end!important;
  gap:12px!important;margin:16px 0 0!important;padding:0!important;
  border:0!important;background:transparent!important;box-shadow:none!important;
}
.dl-tournament-management .dl-correction-request-card .dl-score-correction-review > label {
  display:flex!important;flex:1 1 240px!important;flex-direction:column!important;
  gap:8px!important;min-width:0!important;width:auto!important;margin:0!important;
}
.dl-tournament-management .dl-correction-request-card .dl-score-correction-review input[name="review_reason"] {
  width:100%!important;min-width:0!important;min-height:42px!important;
  box-sizing:border-box!important;padding:9px 12px!important;
  border:0!important;border-radius:4px!important;
  background:var(--tertiary-bg)!important;color:var(--primary)!important;
}
.dl-tournament-management .dl-correction-request-card .dl-score-correction-review button[type="submit"],
.dl-tournament-management .dl-correction-request-card .dl-score-correction-review button[type="submit"]:is(:hover,:active,:focus) {
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  min-height:42px!important;padding:9px 16px!important;margin:0!important;
  border:1px solid var(--tertiary-bg)!important;border-radius:4px!important;
  background:var(--tertiary-bg)!important;color:var(--primary)!important;
  opacity:1!important;font-weight:600!important;white-space:nowrap;
}
.dl-tournament-management .dl-correction-request-card .dl-score-correction-review :focus-visible {
 outline:2px solid var(--primary)!important;outline-offset:2px!important;
}
@media(max-width:640px){
 .dl-tournament-management .dl-correction-request-card .dl-score-correction-review > label {flex-basis:100%!important;}
}

/* v0.9.10.12.5.8.105 — pending report rejection, scoped to management report cards. */
.dl-tournament-management .dl-report-approval{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto!important;align-items:center!important;gap:10px 12px!important;}
.dl-tournament-management .dl-report-approval>.dl-report-info{grid-column:1!important;grid-row:1/3!important;}
.dl-tournament-management .dl-report-approval>.dl-report-approve-btn{grid-column:2!important;grid-row:1!important;}
.dl-tournament-management .dl-report-approval>.dl-report-reject-btn{grid-column:3!important;grid-row:1!important;}
.dl-tournament-management .dl-report-approval>.dl-report-reject-reason{grid-column:2/4!important;grid-row:2!important;display:flex!important;flex-direction:column!important;gap:5px!important;margin:0!important;color:var(--secondary)!important;font-size:12px!important;}
.dl-tournament-management .dl-report-approval>.dl-report-reject-reason input{width:100%!important;min-height:36px!important;padding:7px 10px!important;box-sizing:border-box!important;border:0!important;border-radius:4px!important;background:var(--tertiary-bg)!important;color:var(--primary)!important;}
.dl-tournament-management .dl-report-approval>.dl-report-reject-reason input:focus-visible{outline:2px solid var(--primary)!important;outline-offset:2px!important;}
@media(max-width:800px){.dl-tournament-management .dl-report-approval{grid-template-columns:repeat(2,minmax(0,1fr))!important}.dl-tournament-management .dl-report-approval>.dl-report-info{grid-column:1/-1!important;grid-row:1!important}.dl-tournament-management .dl-report-approval>.dl-report-approve-btn{grid-column:1!important;grid-row:2!important;justify-self:start!important}.dl-tournament-management .dl-report-approval>.dl-report-reject-btn{grid-column:2!important;grid-row:2!important;justify-self:start!important}.dl-tournament-management .dl-report-approval>.dl-report-reject-reason{grid-column:1/-1!important;grid-row:3!important}}

/* Shared SOLO / TEAM qualification settings. Keep both inputs and action aligned vertically. */
.dl-tournament-page .dl-qualification-settings-form {
  display:flex; flex-direction:column; align-items:stretch; gap:14px;
  width:100%; max-width:760px; margin:12px 0 18px;
}
.dl-tournament-page .dl-qualification-settings-form > label {
  display:flex; flex-direction:column; gap:6px; width:100%; margin:0;
}
.dl-tournament-page .dl-qualification-settings-form :is(input[type="number"],select) {
  box-sizing:border-box; display:block; width:100%; min-width:0; max-width:100%;
  min-height:44px; padding:8px 10px; color:var(--primary);
  background:var(--tertiary-bg); border:0; border-radius:4px;
}
.dl-tournament-page .dl-qualification-settings-form > button {
  align-self:flex-start; width:auto; margin:0; border-radius:4px;
}

/* 163: TEAM Double Elimination uses the same compact Matches card language as SOLO.
   Scope after generic .dl-match-score-form selectors; DE has four labeled fields. */
.dl-tournament-management #dl-playoff-results .dl-team-de-result-card {
  padding:12px 14px; margin:0 0 12px; border:0; border-radius:4px;
  background:var(--secondary-bg); min-width:0;
}
.dl-tournament-management #dl-playoff-results .dl-team-de-result-card > .dl-score-fixture {
  margin:0 0 10px; line-height:1.4; overflow-wrap:anywhere;
}
/* DE uses the SAME official score form grid as SOLO and TEAM groups. */
.dl-tournament-management #dl-playoff-results .dl-team-de-result-card form.dl-match-score-form.dl-team-de-result-form {
  margin:0 0 12px!important; padding:0!important; border:0!important;
  background:transparent!important;
}
.dl-tournament-management #dl-playoff-results .dl-team-de-result-card form.dl-match-score-form > label {
  display:flex; flex-direction:column; gap:6px; margin:0!important; min-width:0;
}
.dl-tournament-management #dl-playoff-results .dl-team-de-result-card form.dl-match-score-form > label input {
  width:100%; max-width:100%; box-sizing:border-box; border:0; border-radius:4px;
  background:var(--tertiary-bg); color:var(--primary);
}
.dl-tournament-management #dl-playoff-results .dl-team-de-result-card .dl-team-result-line {
  margin:8px 0 0; color:var(--secondary); font-size:.9em;
}
.dl-tournament-management #dl-playoff-results .dl-team-de-review {
  display:flex; flex-wrap:wrap; gap:12px; align-items:end; padding:12px 14px;
  margin:0 0 12px; background:var(--secondary-bg); border:0; border-radius:4px;
}
.dl-tournament-management #dl-playoff-results .dl-team-de-review > p {flex:1 1 100%; margin:0; overflow-wrap:anywhere;}
.dl-tournament-management #dl-playoff-results .dl-team-de-review > form {
  display:flex!important; flex-wrap:wrap; align-items:end; gap:10px; margin:0!important; padding:0!important;
  background:transparent!important; border:0!important; min-width:0;
}
.dl-tournament-management #dl-playoff-results .dl-team-de-review .dl-de-review-reject {flex:1 1 350px;}
.dl-tournament-management #dl-playoff-results .dl-team-de-review .dl-de-review-reject > label {
  display:flex; flex-direction:column; gap:5px; flex:1 1 200px; min-width:0; margin:0;
}
.dl-tournament-management #dl-playoff-results .dl-team-de-review input[name=reason] {
  width:100%; min-width:0; min-height:42px; box-sizing:border-box; background:var(--tertiary-bg);
  color:var(--primary); border:0; border-radius:4px; padding:8px 10px;
}
.dl-tournament-management #dl-playoff-results .dl-team-de-review button,
.dl-tournament-management #dl-playoff-results .dl-team-de-review button:is(:hover,:focus,:active) {
  min-height:42px; margin:0; padding:8px 13px; border:0; border-radius:4px;
  background:var(--tertiary-bg)!important; color:var(--primary)!important; opacity:1!important;
}

/* 168: Keep saved result AFTER the editor; generic >p rules force row 1. */
.dl-tournament-management :is(#dl-group-results,#dl-playoff-results) form.dl-match-score-form > p.dl-team-result-line {
  grid-column: 1 / -1 !important;
  grid-row: 3 !important;
  margin: 0 !important;
  padding: 2px 0 0 !important;
  color: var(--secondary);
  font-size: .9em;
  border: 0;
}
@media(max-width:820px){
 .dl-tournament-management :is(#dl-group-results,#dl-playoff-results) form.dl-match-score-form > p.dl-team-result-line {
   grid-row: auto !important;
 }
}

/* Shared public participants layout for SOLO and regular TEAM only. Draft is unchanged. */
.dl-public-tournament .dl-public-tournament-main--regular-participants .dl-public-tournament-aside #dl-public-participants {min-width:0;}
.dl-public-tournament .dl-public-tournament-main--regular-participants #dl-public-participants :is(ul,ol) {columns:1;padding-left:20px;margin-bottom:0;}
.dl-public-tournament .dl-public-tournament-main--regular-participants #dl-public-participants li {overflow-wrap:anywhere;word-break:normal;max-width:100%;}
.dl-public-tournament .dl-public-tournament-main--regular-participants .dl-character-team-section {margin:0;min-width:0;}
.dl-public-tournament .dl-public-tournament-main--regular-participants :is(.dl-character-team-card,.dl-character-solo-card) {min-width:0;margin:0 0 16px;}
.dl-public-tournament .dl-public-tournament-main--regular-participants .dl-character-team-heading,
.dl-public-tournament .dl-public-tournament-main--regular-participants .dl-character-entry strong {overflow-wrap:anywhere;}
.dl-public-tournament .dl-public-tournament-main--regular-participants .dl-character-solo-card .dl-character-entry {padding:0;border:0;}
@media(max-width:900px) {
 .dl-public-tournament .dl-public-tournament-main--regular-participants .dl-public-tournament-aside {display:block;}
}

/* Draft Participants tab: entrant summary beside the live picking/roster board. */
.dl-public-tournament .dl-public-tournament-main--draft-participants .dl-public-tournament-aside #dl-public-participants.dl-draft-participants-layout {background:var(--secondary-bg);padding:20px;border-radius:4px;min-width:0;}
.dl-public-tournament .dl-public-tournament-main--draft-participants .dl-draft-participant-roster {background:transparent;padding:0;min-width:0;}
.dl-public-tournament .dl-public-tournament-main--draft-participants #dl-public-participants ol {columns:1;padding-left:24px;margin:0;}
.dl-public-tournament .dl-public-tournament-main--draft-participants #dl-public-participants li {overflow-wrap:anywhere;word-break:normal;max-width:100%;}
.dl-public-tournament .dl-public-tournament-main--draft-participants .dl-draft-main-content {min-width:0;}
.dl-public-tournament .dl-public-tournament-main--draft-participants #dl-public-draft {min-width:0;}
@media(max-width:900px) {
 .dl-public-tournament .dl-public-tournament-main--draft-participants .dl-public-tournament-aside {display:block;}
}
/* Final standings: shared compact presentation for Solo, Team and Draft. */
.dl-public-tournament #dl-public-final-standing .dl-final-standing-table{width:100%;border-collapse:collapse;margin:12px 0 22px;table-layout:fixed}
.dl-public-tournament #dl-public-final-standing .dl-final-standing-table th,.dl-public-tournament #dl-public-final-standing .dl-final-standing-table td{padding:10px 12px;text-align:left;border-bottom:2px solid var(--primary-bg);overflow-wrap:anywhere}
.dl-public-tournament #dl-public-final-standing .dl-final-standing-table th:first-child,.dl-public-tournament #dl-public-final-standing .dl-final-standing-table td:first-child{width:100px;text-align:center}
.dl-public-tournament #dl-public-final-standing h4{margin:18px 0 8px}

/* Final Standing: shared Solo / Team / Draft result presentation. */
.dl-public-tournament #dl-public-final-standing .dl-final-standing-scroll{max-width:100%;overflow-x:auto}
.dl-public-tournament #dl-public-final-standing .dl-final-standing-ranking{table-layout:auto;min-width:560px}
.dl-public-tournament #dl-public-final-standing .dl-final-standing-ranking th:first-child,.dl-public-tournament #dl-public-final-standing .dl-final-standing-ranking td:first-child{width:82px;text-align:center}
.dl-public-tournament #dl-public-final-standing .dl-final-standing-ranking th:nth-child(2){min-width:120px}
.dl-public-tournament #dl-public-final-standing .dl-final-standing-ranking th:nth-child(3){min-width:100px}
.dl-public-tournament #dl-public-final-standing .dl-final-standing-ranking th:nth-child(4){min-width:135px}
.dl-public-tournament #dl-public-final-standing .dl-standing-rank{white-space:nowrap;font-weight:700}
.dl-public-tournament #dl-public-final-standing .dl-standing-name{font-weight:600}
.dl-public-tournament #dl-public-final-standing .dl-standing-characters{vertical-align:middle}
.dl-public-tournament #dl-public-final-standing .dl-standing-character{display:inline-flex;align-items:center;gap:6px;margin:2px 8px 2px 0;vertical-align:middle;white-space:nowrap}
.dl-public-tournament #dl-public-final-standing .dl-standing-member{font-size:.85em;color:var(--muted,#9aa0ad)}
.dl-public-tournament #dl-public-final-standing .dl-standing-character .dl-character-choice{display:inline-flex;align-items:center;gap:3px}
.dl-public-tournament #dl-public-final-standing .dl-standing-character .dl-character-choice img{width:24px;height:24px;object-fit:contain}
.dl-public-tournament #dl-public-final-standing .dl-standing-matches{white-space:normal;overflow-wrap:normal}
.dl-public-tournament #dl-public-final-standing .dl-standing-result{display:inline-flex;align-items:center;justify-content:center;min-width:26px;height:27px;margin:2px 4px 2px 0;padding:0 5px;border-radius:4px;background:var(--primary-bg);font-size:.9em;font-weight:600}
.dl-public-tournament #dl-public-final-standing .dl-standing-result.is-loss{opacity:.65}

/* Final Standing uses the entire tournament content width, with no enclosing panel. */
.dl-public-tournament .dl-public-tournament-main.dl-public-tournament-main--final-standing{grid-template-columns:minmax(0,1fr);}
.dl-public-tournament .dl-public-tournament-main--final-standing .dl-public-tournament-content{width:100%;min-width:0;max-width:none;}
.dl-public-tournament .dl-public-tournament-main--final-standing .dl-public-tournament-aside{display:none;}
.dl-public-tournament #dl-public-final-standing{width:100%;max-width:none;min-width:0;padding:0;background:transparent;border-radius:0;}
.dl-public-tournament #dl-public-final-standing .dl-final-standing-scroll{width:100%;max-width:none;}
.dl-public-tournament #dl-public-final-standing .dl-final-standing-table{width:100%;max-width:none;}

/* Tournament public header / registration parity: no vertical stretching for Solo. */
.dl-public-tournament .dl-public-hero-row {
  align-items:start;
  grid-auto-rows:max-content;
}
.dl-public-tournament .dl-public-hero-row > .dl-tournament-hero {
  align-self:start;
  height:auto;
  min-height:0;
  justify-content:flex-start;
}
.dl-public-tournament .dl-public-hero-row > .dl-tournament-hero .dl-tournament-meta {
  margin-top:12px;
}
.dl-public-tournament .dl-public-header-registration,
.dl-public-tournament .dl-public-header-registration > .dl-entrant-roster {
  align-self:start;
  height:auto;
  min-height:0;
}
/* A 300px sidebar cannot reasonably display two native selects side by side. */
.dl-public-tournament .dl-public-header-registration .dl-character-fields {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:12px;
  width:100%;
  margin:12px 0;
}
.dl-public-tournament .dl-public-header-registration .dl-character-fields label,
.dl-public-tournament .dl-public-header-registration .dl-character-fields select {
  min-width:0;
  width:100%;
  max-width:100%;
  box-sizing:border-box;
}
.dl-public-tournament .dl-public-header-registration form {min-width:0;}
.dl-public-tournament .dl-public-header-registration form > button[type=submit] {
  width:100%;max-width:100%;min-height:42px;
}


/* Tournament Lobby: compact public discussion, full main-column width. */
.dl-public-tournament .dl-public-tournament-main--lobby{grid-template-columns:minmax(0,1fr)}
.dl-public-tournament .dl-public-tournament-main--lobby .dl-public-tournament-aside{display:none}
.dl-public-tournament .dl-public-tournament-main--lobby .dl-public-tournament-content{max-width:none;min-width:0;width:100%}
#dl-public-lobby .dl-lobby-compose{display:flex;flex-direction:column;gap:10px;margin:18px 0 24px;padding:16px;background:var(--secondary-bg);border-radius:4px}
#dl-public-lobby .dl-lobby-compose label{font-weight:600}
#dl-public-lobby .dl-lobby-compose textarea{width:100%;box-sizing:border-box;min-height:95px;padding:12px;background:var(--tertiary-bg);color:var(--primary);border:0;border-radius:4px;resize:vertical;font:inherit}
#dl-public-lobby .dl-lobby-compose button{align-self:flex-end;width:auto}
#dl-public-lobby .dl-lobby-posts{display:flex;flex-direction:column;gap:12px}
#dl-public-lobby .dl-lobby-post{display:flex;gap:14px;padding:16px;background:var(--secondary-bg);border-radius:4px;min-width:0}
#dl-public-lobby .dl-lobby-avatar{display:grid;place-items:center;flex:0 0 42px;height:42px;background:var(--tertiary-bg);border-radius:4px;font-weight:700;font-size:18px}
#dl-public-lobby .dl-lobby-post-body{flex:1;min-width:0}
#dl-public-lobby .dl-lobby-post-header{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:4px 12px}
#dl-public-lobby .dl-lobby-post-header time{font-size:.85em;opacity:.7}
#dl-public-lobby .dl-lobby-message{white-space:normal;overflow-wrap:anywhere;margin:10px 0 0;line-height:1.55}
#dl-public-lobby .dl-lobby-moderate{margin-top:12px;font-size:.9em}
#dl-public-lobby .dl-lobby-moderate form{display:flex;flex-wrap:wrap;align-items:end;gap:10px;padding:10px 0}
#dl-public-lobby .dl-lobby-moderate input{max-width:360px}
#dl-public-lobby .dl-lobby-pages{display:flex;gap:6px;flex-wrap:wrap;margin-top:18px}
#dl-public-lobby .dl-lobby-pages a{padding:7px 12px;background:var(--secondary-bg);border-radius:4px;text-decoration:none}
#dl-public-lobby .dl-lobby-pages a[aria-current=page]{background:var(--tertiary-bg)}
@media(max-width:600px){#dl-public-lobby .dl-lobby-post{padding:12px;gap:9px}#dl-public-lobby .dl-lobby-avatar{flex-basis:32px;height:32px}}

/* Compact team signup while keeping both actions available on demand. */
.dl-public-tournament .dl-public-header-registration .dl-team-registration-action{margin:10px 0 0;border-radius:4px;background:transparent;min-width:0;}
.dl-public-tournament .dl-public-header-registration .dl-team-registration-action>summary{cursor:pointer;list-style:none;padding:10px 12px;color:var(--primary);font-weight:600;}
.dl-public-tournament .dl-public-header-registration .dl-team-registration-action>summary::-webkit-details-marker{display:none;}
/* Consistent native disclosures: one symbol across public pages and manager.
   Native <details> retains its keyboard, focus and open/close behavior. */
/* Disclosure markers only apply to page content. The site header also uses
   <details> for avatar/account and notifications, which must keep their icons. */
.site-primary details > summary{list-style:none;cursor:pointer}
.site-primary details > summary::-webkit-details-marker{display:none}
.site-primary details > summary::marker{content:""}
.site-primary details > summary::before{content:"⋯";display:inline-block;flex:none;margin-right:7px;font-weight:700;letter-spacing:0}
.site-primary details > summary:focus-visible{outline:2px solid var(--primary);outline-offset:2px;border-radius:4px}
.dl-public-tournament .dl-public-header-registration .dl-team-registration-action>summary:focus-visible{outline:2px solid var(--primary);outline-offset:2px;}
.dl-public-tournament .dl-public-header-registration .dl-team-registration-action>form{margin:0;padding:0 12px 12px;background:transparent;min-width:0;}

/* Lobby / compact team forms: contrast for controls inside secondary-bg cards.
   Do not change the card backgrounds. */
.dl-public-tournament .dl-public-header-registration .dl-team-registration-action > form :is(input:not([type="hidden"]), select),
.dl-public-tournament .dl-public-header-registration .dl-team-registration-action > form :is(input:not([type="hidden"]), select):focus {
  background:var(--tertiary-bg);
  color:var(--primary);
  border:0;
  border-radius:4px;
}
.dl-public-tournament .dl-public-header-registration .dl-team-registration-action > form button[type="submit"],
.dl-public-tournament .dl-public-header-registration .dl-team-registration-action > form button[type="submit"]:hover,
.dl-public-tournament .dl-public-header-registration .dl-team-registration-action > form button[type="submit"]:focus {
  background:var(--tertiary-bg);
  color:var(--primary);
  border:0;
  border-radius:4px;
}
#dl-public-lobby .dl-lobby-compose button[type="submit"],
#dl-public-lobby .dl-lobby-compose button[type="submit"]:hover,
#dl-public-lobby .dl-lobby-compose button[type="submit"]:focus,
#dl-public-lobby .dl-lobby-moderate button[type="submit"],
#dl-public-lobby .dl-lobby-moderate button[type="submit"]:hover,
#dl-public-lobby .dl-lobby-moderate button[type="submit"]:focus {
  background:var(--tertiary-bg);
  color:var(--primary);
  border:0;
  border-radius:4px;
  padding:9px 14px;
  min-height:38px;
  opacity:1;
}
#dl-public-lobby .dl-lobby-moderate input:not([type="hidden"]),
#dl-public-lobby .dl-lobby-moderate input:not([type="hidden"]):focus {
  background:var(--tertiary-bg);
  color:var(--primary);
  border:0;
  border-radius:4px;
  box-sizing:border-box;
  min-height:38px;
}
#dl-public-lobby :is(textarea, button, input):focus-visible {
  outline:2px solid var(--primary);
  outline-offset:2px;
}

/* Lobby discussion presentation: one coherent set of layout rules.
   Cards retain secondary-bg; controls retain tertiary-bg. */
#dl-public-lobby .dl-lobby-intro{margin-bottom:14px}
#dl-public-lobby .dl-lobby-intro h2{margin:0 0 6px}
#dl-public-lobby .dl-lobby-intro p{margin:0;line-height:1.5}
#dl-public-lobby .dl-lobby-compose{padding:16px;gap:12px;margin:0 0 24px}
#dl-public-lobby .dl-lobby-compose label{font-weight:600}
#dl-public-lobby .dl-lobby-compose textarea{min-height:90px;line-height:1.5;padding:12px}
#dl-public-lobby .dl-lobby-compose textarea::placeholder{opacity:.7}
#dl-public-lobby .dl-lobby-compose-actions{display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:10px}
#dl-public-lobby .dl-lobby-compose button[type="submit"]{min-height:38px;font-weight:600}
#dl-public-lobby .dl-lobby-posts{gap:16px}
#dl-public-lobby .dl-lobby-post{align-items:flex-start;gap:14px;padding:16px}
#dl-public-lobby .dl-lobby-avatar{flex:0 0 42px;width:42px;height:42px;aspect-ratio:1;overflow:hidden;font-size:16px}
#dl-public-lobby .dl-lobby-avatar img{display:block;width:100%;height:100%;object-fit:cover}
#dl-public-lobby .dl-lobby-post-body{display:flex;flex-direction:column;min-width:0;gap:9px}
#dl-public-lobby .dl-lobby-post-header{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:4px 16px;min-height:0}
#dl-public-lobby .dl-lobby-author{font-weight:700;overflow-wrap:anywhere}
#dl-public-lobby .dl-lobby-author a{color:inherit;text-decoration:none}
#dl-public-lobby .dl-lobby-author a:hover{text-decoration:none}
#dl-public-lobby .dl-lobby-post-header time{color:var(--muted,#98a1b3);font-size:.8em;line-height:1.45;opacity:1;white-space:nowrap}
#dl-public-lobby .dl-lobby-message{margin:0;line-height:1.55;white-space:normal;overflow-wrap:anywhere}
#dl-public-lobby .dl-lobby-moderate{margin:0;font-size:.82em;flex:0 0 auto;align-self:center;max-width:100%}
#dl-public-lobby .dl-lobby-moderate>summary{display:inline-flex;align-items:center;cursor:pointer;list-style:none;color:var(--muted,#98a1b3);padding:3px 0;line-height:1.4}
#dl-public-lobby .dl-lobby-moderate>summary::-webkit-details-marker{display:none}

#dl-public-lobby .dl-lobby-moderate>summary:hover{color:var(--primary)}
#dl-public-lobby .dl-lobby-moderate>summary:focus-visible{outline:2px solid var(--primary);outline-offset:2px;border-radius:4px}
.dl-public-tournament .dl-public-header-registration .dl-team-registration-action>summary:hover{background:var(--tertiary-bg);border-radius:4px}
#dl-public-lobby .dl-lobby-moderation-form{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:8px 0 0;padding:10px 0 0;border-top:1px solid var(--primary-bg)}
#dl-public-lobby .dl-lobby-moderate[open]{flex:0 0 100%;align-self:stretch}
#dl-public-lobby .dl-lobby-moderate[open]>summary{width:max-content;margin-left:auto}
#dl-public-lobby .dl-lobby-moderation-form label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#dl-public-lobby .dl-lobby-moderation-form input:not([type="hidden"]){flex:1 1 240px;min-width:0;max-width:380px;min-height:34px;padding:6px 10px}
#dl-public-lobby .dl-lobby-moderation-form button[type="submit"]{min-height:34px;padding:6px 12px;font-size:.95em;white-space:nowrap}
#dl-public-lobby .dl-lobby-post--removed{opacity:.75}
#dl-public-lobby .dl-lobby-pages{justify-content:center;margin-top:20px}
@media(max-width:600px){
  #dl-public-lobby .dl-lobby-compose{padding:12px}
  #dl-public-lobby .dl-lobby-post{padding:14px;gap:10px}
  #dl-public-lobby .dl-lobby-avatar{flex-basis:36px;width:36px;height:36px}
  #dl-public-lobby .dl-lobby-post-header time{white-space:normal}
  #dl-public-lobby .dl-lobby-moderation-form input:not([type="hidden"]){max-width:none}
}

/* Shared player avatars; preserve the compact 4px Diablo League language. */
.dl-player-profile{max-width:900px}
.dl-profile-summary{display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.dl-profile-avatar{display:grid;place-items:center;flex:none;width:96px;height:96px;overflow:hidden;border-radius:4px;background:var(--tertiary-bg);font-size:36px;font-weight:700}
.dl-profile-avatar img{display:block;width:100%;height:100%;object-fit:cover}
.dl-player-profile form{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:12px}
.dl-player-profile input[type=file]{width:min(100%,360px);max-width:100%;background:var(--tertiary-bg);padding:10px;border-radius:4px}

/* Lobby: avatar, author, and date form one header; message uses full card width. */
#dl-public-lobby .dl-lobby-post{display:block}
#dl-public-lobby .dl-lobby-post-body{display:flex;flex-direction:column;gap:10px}
#dl-public-lobby .dl-lobby-post-header{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:8px 12px}
#dl-public-lobby .dl-lobby-post-header .dl-lobby-avatar{flex:none;width:42px;height:42px}
#dl-public-lobby .dl-lobby-post-header time{margin-left:auto}
#dl-public-lobby .dl-lobby-message{margin:0}
@media(max-width:600px){
  #dl-public-lobby .dl-lobby-post-header .dl-lobby-avatar{width:36px;height:36px}
  #dl-public-lobby .dl-lobby-post-header time{flex-basis:100%;margin-left:48px}
}

/* Admin/Owner irreversible deletion: keep the explicit confirmation usable in compact Lobby cards. */
#dl-public-lobby .dl-lobby-permanent-delete{border-top:1px solid var(--primary-bg)}
#dl-public-lobby .dl-lobby-permanent-delete .dl-lobby-delete-confirm{position:static;width:auto;height:auto;clip:auto;overflow:visible;margin:0;display:inline-flex;align-items:center;gap:6px;white-space:nowrap;color:var(--muted,#98a1b3)}
#dl-public-lobby .dl-lobby-permanent-delete .dl-lobby-delete-confirm input[type="checkbox"]{
  flex:0 0 24px;
  width:24px;
  min-width:24px;
  max-width:24px;
  height:24px;
  min-height:24px;
  max-height:24px;
  padding:0;
  margin:0;
  box-sizing:border-box;
  border-radius:4px;
  vertical-align:middle;
}

/* Phase 80: manager organizer guidance */
.dl-tournament-management .dl-manager-progress-guide{margin:14px 0 18px;padding:0;background:transparent;border:0;max-width:100%;}
.dl-tournament-management .dl-manager-progress-intro{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px 18px;margin-bottom:12px;}
.dl-tournament-management .dl-manager-progress-guide h2{font-size:1.2em;margin:0 0 5px;}
.dl-tournament-management .dl-manager-progress-message{margin:0;line-height:1.5;color:var(--secondary);max-width:72ch;}
.dl-tournament-management .dl-manager-next{display:inline-flex;align-items:center;justify-content:center;background:var(--secondary-bg);color:var(--primary);text-decoration:none;border-radius:4px;padding:10px 13px;white-space:nowrap;}
.dl-tournament-management .dl-manager-next:hover,.dl-tournament-management .dl-manager-next:focus-visible{background:var(--dl-surface-hover,var(--secondary-bg));color:var(--primary);}
.dl-tournament-management .dl-manager-progress-steps{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;}
.dl-tournament-management .dl-manager-progress-steps li{margin:0;padding:0;min-width:0;}
.dl-tournament-management .dl-manager-progress-steps a{display:flex;flex-direction:column;gap:4px;padding:10px 12px;background:var(--secondary-bg);border-radius:4px;text-decoration:none;color:var(--primary);height:100%;box-sizing:border-box;}
.dl-tournament-management .dl-manager-progress-steps a:hover,.dl-tournament-management .dl-manager-progress-steps a:focus-visible{background:var(--dl-surface-hover,var(--secondary-bg));}
.dl-tournament-management .dl-manager-progress-steps span{font-size:.83em;color:var(--secondary);line-height:1.35;}
.dl-tournament-management .dl-manager-progress-note{margin:9px 0 0;color:var(--secondary);font-size:.78em;}
@media(max-width:760px){.dl-tournament-management .dl-manager-progress-steps{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:420px){.dl-tournament-management .dl-manager-progress-steps{grid-template-columns:1fr;}}

/* Phase 82: scoped read-only manager readiness */
.dl-tournament-management .dl-manager-readiness{margin:0 0 18px;padding:0;background:transparent;border:0;}
.dl-tournament-management .dl-manager-readiness h2{margin:0 0 5px;font-size:1.2em;}
.dl-tournament-management .dl-manager-readiness-intro,.dl-tournament-management .dl-manager-readiness-footnote{margin:0 0 10px;color:var(--secondary);line-height:1.45;font-size:.9em;}
.dl-tournament-management .dl-manager-readiness-footnote{font-size:.8em;margin:9px 0 0;}
.dl-tournament-management .dl-manager-readiness-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
.dl-tournament-management .dl-manager-readiness-item{display:flex;flex-direction:column;gap:4px;padding:12px;background:var(--secondary-bg);border-radius:4px;min-width:0;}
.dl-tournament-management .dl-manager-readiness-count{font-size:1.3em;font-weight:700;}
.dl-tournament-management .dl-manager-readiness-item small{color:var(--secondary);line-height:1.4;}
.dl-tournament-management .dl-manager-readiness-next{margin:12px 0 0;}
.dl-tournament-management .dl-manager-readiness-state{margin:8px 0 10px;}
@media(max-width:560px){.dl-tournament-management .dl-manager-readiness-grid{grid-template-columns:1fr;}}

/* Phase 83: scope-only read-only match attention */
.dl-tournament-management .dl-manager-evidence{background:transparent;border:0;padding:0;margin:0 0 18px;}
.dl-tournament-management .dl-manager-evidence h3{margin:0 0 7px;}
.dl-tournament-management .dl-manager-evidence-note{color:var(--secondary);font-size:.85em;line-height:1.45;margin:6px 0 10px;}
.dl-tournament-management .dl-manager-evidence-list{display:grid;gap:1px;}
.dl-tournament-management .dl-manager-evidence-line{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:9px 12px;background:var(--secondary-bg);border-radius:4px;}
.dl-tournament-management .dl-manager-evidence-line span{text-align:right;}
.dl-tournament-management .dl-manager-evidence-next{margin:11px 0;}
@media(max-width:600px){.dl-tournament-management .dl-manager-evidence-line{align-items:flex-start;flex-direction:column;gap:4px;}.dl-tournament-management .dl-manager-evidence-line span{text-align:left;}}

/* Phase 84 read-only group progression: no tertiary card surfaces */
.dl-tournament-management .dl-manager-checklist{background:transparent;border:0;padding:0;margin:0 0 18px;}
.dl-tournament-management .dl-manager-checklist h3{margin:0 0 7px;}
.dl-tournament-management .dl-manager-checklist-note{color:var(--secondary);font-size:.85em;margin:8px 0;line-height:1.45;}
.dl-tournament-management .dl-manager-checklist-line{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 12px;background:var(--secondary-bg);border-radius:4px;margin-bottom:1px;}
.dl-tournament-management .dl-manager-checklist-line span{text-align:right;}
.dl-tournament-management .dl-manager-checklist-next{margin:12px 0;}
.dl-tournament-management .dl-manager-checklist-warning{margin:7px 0;color:var(--primary);font-weight:600;}
@media(max-width:600px){.dl-tournament-management .dl-manager-checklist-line{flex-direction:column;align-items:flex-start;gap:4px;}.dl-tournament-management .dl-manager-checklist-line span{text-align:left;}}

/* Phase 85: consolidated organizer overview; transparent nested surfaces */
.dl-tournament-management .dl-manager-overview{margin:12px 0 18px;padding:0;border:0;background:transparent;min-width:0}
.dl-tournament-management .dl-manager-overview h2{font-size:1.2em;margin:0 0 5px}
.dl-tournament-management .dl-manager-overview-muted{color:var(--secondary);font-size:.86em;line-height:1.45;margin:0}
.dl-tournament-management .dl-manager-overview-focus{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:13px 0;border-top:1px solid var(--primary-bg);border-bottom:1px solid var(--primary-bg);margin:12px 0}
.dl-tournament-management .dl-manager-overview-focus p{margin:5px 0 0;color:var(--secondary);line-height:1.45}
.dl-tournament-management .dl-manager-overview-action{display:inline-flex;white-space:nowrap;padding:9px 12px;border-radius:4px;background:var(--secondary-bg);color:var(--primary);text-decoration:none}
.dl-tournament-management .dl-manager-overview-action:hover,.dl-tournament-management .dl-manager-overview-action:focus-visible{background:var(--dl-surface-hover,var(--secondary-bg))}
.dl-tournament-management .dl-manager-overview-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;margin-bottom:10px}
.dl-tournament-management .dl-manager-overview-fact{padding:9px 10px;background:var(--secondary-bg);border-radius:4px;display:flex;flex-direction:column;gap:4px;min-width:0}
.dl-tournament-management .dl-manager-overview-fact span{font-size:.88em;color:var(--secondary)}
.dl-tournament-management .dl-manager-overview-nav{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.dl-tournament-management .dl-manager-overview-nav a{font-size:.88em;text-decoration:none;color:var(--primary)}
.dl-tournament-management .dl-manager-overview-nav a:hover,.dl-tournament-management .dl-manager-overview-nav a:focus-visible{text-decoration:underline}
.dl-tournament-management .dl-manager-overview-footnote{font-size:.79em;margin-top:8px}
@media(max-width:700px){.dl-tournament-management .dl-manager-overview-facts{grid-template-columns:1fr}.dl-tournament-management .dl-manager-overview-focus{align-items:flex-start;flex-direction:column}}

/* Phase 87: completion preview: open nested surface and distinct helper text */
.dl-manager-completion-note { margin: .75em 0 .25em; line-height: 1.45; }
.dl-manager-overview-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 800px) { .dl-manager-overview-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .dl-manager-overview-facts { grid-template-columns: minmax(0, 1fr); } }

/* Phase 135: consistent disclosure marker and readable irreversible-delete consent. */
#dl-public-lobby .dl-lobby-moderate>summary::marker,
#dl-public-lobby .dl-lobby-audit-history>summary::marker{content:""}
#dl-public-lobby .dl-lobby-audit-history>summary{cursor:pointer;list-style:none}
#dl-public-lobby .dl-lobby-audit-history>summary::-webkit-details-marker{display:none}
#dl-public-lobby .dl-lobby-moderation-form .dl-lobby-delete-confirm{
  position:static;width:auto;height:auto;overflow:visible;clip:auto;white-space:normal;
  display:inline-flex;align-items:center;gap:8px;margin:0;padding:0;line-height:1.4;
}

/* Team group corrections: one labeled field, with its input and both actions
   in the same control row. Vertical alignment follows the row itself, not
   independent label/button baselines. */
.dl-tournament-management .dl-correction-request-card form.dl-team-group-correction-review {
  display:block!important;
}
.dl-tournament-management .dl-team-group-correction-review .dl-review-field {
  width:100%; min-width:0;
}
.dl-tournament-management .dl-team-group-correction-review .dl-review-field>label {
  display:block; margin-bottom:8px;
}
.dl-tournament-management .dl-team-group-correction-review .dl-review-control-row {
  display:grid; grid-template-columns:minmax(0,1fr) max-content;
  align-items:stretch; gap:12px; min-width:0;
}
.dl-tournament-management .dl-team-group-correction-review .dl-review-control-row>input {
  min-width:0; width:100%; height:100%; box-sizing:border-box;
}
.dl-tournament-management .dl-team-group-correction-review .dl-correction-review-actions {
  display:flex; align-items:stretch; gap:12px;
}
@media(max-width:760px) {
  .dl-tournament-management .dl-team-group-correction-review .dl-review-control-row {
    grid-template-columns:minmax(0,1fr);
  }
  .dl-tournament-management .dl-team-group-correction-review .dl-correction-review-actions {
    justify-content:flex-end; flex-wrap:wrap;
  }
}
/* Phase 220 — manager quick action for administrator-issued sanction cases */
.dl-manager-sanctions{max-width:100%;min-width:0}
.dl-manager-sanctions p{line-height:1.55;max-width:75ch}
.dl-manager-sanction-link,.dl-manager-sanction-link:visited,.dl-manager-sanction-link:hover{display:inline-flex;align-items:center;min-height:40px;padding:9px 13px;background:var(--tertiary-bg);color:var(--primary);border-radius:4px;text-decoration:none}
.dl-manager-sanction-link:hover{filter:brightness(1.12)}

/* Phase 326: inline Lobby action feedback uses the same subdued site surfaces. */
#dl-public-lobby .dl-lobby-notice{margin:0 0 14px;padding:10px 13px;border:1px solid var(--tertiary-bg);border-radius:4px;background:transparent;line-height:1.5}
#dl-public-lobby .dl-lobby-notice--error{border-color:#95656b;color:var(--primary)}
#dl-public-lobby .dl-lobby-notice--success{border-color:#56776b;color:var(--primary)}

.dl-public-tournament .dl-tournament-action-notice{margin:0 0 14px;padding:10px 13px;border:1px solid #95656b;border-radius:4px;background:transparent;color:var(--primary);line-height:1.5;}

/* Phase 361: history disclosures can render outside .site-primary in manager shells.
   Match the shared ellipsis marker instead of exposing the native triangle. */
details.dl-audit-details > summary{list-style:none;cursor:pointer}
details.dl-audit-details > summary::-webkit-details-marker{display:none}
details.dl-audit-details > summary::marker{content:""}
details.dl-audit-details > summary::before{content:"⋯";display:inline-block;flex:none;margin-right:7px;font-weight:700;letter-spacing:0}
details.dl-audit-details > summary:focus-visible{outline:2px solid var(--primary);outline-offset:2px;border-radius:4px}

/* 1.0 release: owner impact preview and mobile management ergonomics */
.dl-delete-impact{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:8px;margin:12px 0 20px}
.dl-delete-impact>div{min-width:0;background:var(--tertiary-bg);border-radius:4px;padding:10px 12px;display:flex;flex-direction:column;gap:5px}
.dl-delete-impact span{font-size:.85rem;opacity:.8}.dl-delete-impact strong{font-size:1.1rem}
.dl-manager-activity .dl-table-scroll{max-width:100%;overflow-x:auto}
@media(max-width:720px){
 .dl-tournament-management,.dl-tournament-management .panel{min-width:0;max-width:100%;box-sizing:border-box}
 .dl-tournament-management .dl-management-workspaces{display:flex;gap:5px;overflow-x:auto;max-width:100%;scrollbar-width:thin}
 .dl-tournament-management .dl-management-workspaces a{white-space:nowrap;flex:0 0 auto;min-height:42px;display:inline-flex;align-items:center}
 .dl-tournament-management #dl-tournament-schedule input[type="datetime-local"],
 .dl-tournament-management #dl-tournament-schedule select,
 .dl-tournament-management #dl-tournament-permanent-delete input,
 .dl-tournament-management #dl-tournament-permanent-delete textarea{width:100%;max-width:100%;min-width:0;box-sizing:border-box}
 .dl-tournament-management button,.dl-tournament-management .dl-tournament-permanent-delete-form button{min-height:42px;max-width:100%}
 .dl-tournament-management .dl-table-scroll{overflow-x:auto;max-width:100%}
 .dl-tournament-management .dl-match-score-form,.dl-tournament-management .dl-report-approval{grid-template-columns:minmax(0,1fr)}
 .dl-delete-impact{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Diablo League 1.0: shared quiet navigation treatment, derived from Rankings.
   These two navigation surfaces are section selectors, not action buttons. */
.dl-tournament-page:has(.dl-management-workspaces) .dl-management-workspaces,
.dl-public-tournament .dl-public-tournament-tabs {
  display:flex;
  align-items:stretch;
  flex-wrap:nowrap;
  gap:1.15rem;
  padding:0;
  margin:0 0 1.5rem;
  position:relative;
  background:transparent;
  border:0;
  border-bottom:1px solid rgba(170,180,203,.15);
  border-radius:0;
  overflow-x:auto;
  overflow-y:hidden;
  scrollbar-width:thin;
  -webkit-overflow-scrolling:touch;
}
.dl-tournament-page .dl-management-workspaces a,
.dl-tournament-page .dl-management-workspaces a:visited,
.dl-tournament-page .dl-management-workspaces a:hover,
.dl-tournament-page .dl-management-workspaces a:focus,
.dl-public-tournament .dl-public-tournament-tabs a,
.dl-public-tournament .dl-public-tournament-tabs a:visited,
.dl-public-tournament .dl-public-tournament-tabs a:hover,
.dl-public-tournament .dl-public-tournament-tabs a:focus {
  position:relative;
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:.8rem .15rem .75rem;
  margin:0;
  white-space:nowrap;
  border:0;
  border-radius:0;
  background:transparent;
  color:#adb4c4;
  font-weight:500;
  text-align:center;
  text-decoration:none;
  box-shadow:none;
}
.dl-tournament-page .dl-management-workspaces a:is(:hover,:focus-visible),
.dl-public-tournament .dl-public-tournament-tabs a:is(:hover,:focus-visible) {
  background:transparent;
  color:var(--primary,#fff);
  text-decoration:none;
}
.dl-tournament-page .dl-management-workspaces a[aria-current="page"],
.dl-public-tournament .dl-public-tournament-tabs a:is(.is-active,[aria-current="page"]) {
  background:transparent;
  color:var(--primary,#fff);
  font-weight:650;
}
.dl-tournament-page .dl-management-workspaces a[aria-current="page"]::after,
.dl-public-tournament .dl-public-tournament-tabs a:is(.is-active,[aria-current="page"])::after {
  position:absolute;
  content:"";
  bottom:0;
  left:0;
  right:0;
  height:2px;
  border-radius:2px;
  background:#adbacd;
}
.dl-tournament-page .dl-management-workspaces a:focus-visible,
.dl-public-tournament .dl-public-tournament-tabs a:focus-visible {
  outline:2px solid #adbacd;
  outline-offset:-3px;
}
@media(max-width:720px) {
  .dl-tournament-page:has(.dl-management-workspaces) .dl-management-workspaces,
  .dl-public-tournament .dl-public-tournament-tabs {gap:1rem;}
  .dl-tournament-page .dl-management-workspaces a,
  .dl-public-tournament .dl-public-tournament-tabs a {flex:0 0 auto;padding:.8rem .15rem .75rem;}
}

/* Prevent old global hover chip backgrounds from bleeding into quiet section tabs. */
.dl-tournament-page .dl-management-workspaces a:is(:hover,:focus,:active),
.dl-public-tournament .dl-public-tournament-tabs a:is(:hover,:focus,:active) {
  background:transparent!important;box-shadow:none;text-decoration:none;
}
