
.scr-tv-shell {
  --scr-tv-bg: #f3efe8;
  --scr-tv-paper: #fffdf9;
  --scr-tv-ink: #24201e;
  --scr-tv-muted: #746d67;
  --scr-tv-accent: #7d2020;
  --scr-tv-line: #ded6cc;
  color: var(--scr-tv-ink);
  background: var(--scr-tv-bg);
  border-radius: 20px;
  padding: 18px;
}

.scr-tv-hero {
  color: #fff;
  background: linear-gradient(135deg, #5b1515, #842525 58%, #9a3a2e);
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 14px 32px rgba(66, 24, 18, 0.16);
}

.scr-tv-eyebrow {
  opacity: 0.78;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
}

.scr-tv-hero h1 {
  color: #fff;
  margin: 8px 0 14px;
  font-size: clamp(32px, 5vw, 52px);
}

.scr-tv-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.scr-tv-pills span {
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.12);
  font-size: 14px;
}

.scr-tv-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr);
  gap: 18px;
  margin-top: 18px;
  align-items: start;
}

.scr-tv-panel {
  padding: 22px;
  background: var(--scr-tv-paper);
  border: 1px solid var(--scr-tv-line);
  border-radius: 16px;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.05);
}

.scr-tv-panel h2 {
  color: var(--scr-tv-accent);
  margin-top: 0;
}

.scr-tv-round-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.scr-tv-round-card {
  padding: 16px;
  border: 1px solid var(--scr-tv-line);
  border-radius: 14px;
  background: #fff;
}

.scr-tv-round-finished {
  border-color: rgba(48,112,72,.28);
}

.scr-tv-round-partial {
  border-color: rgba(182,138,75,.5);
}

.scr-tv-round-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.scr-tv-round-head small {
  color: var(--scr-tv-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.scr-tv-round-head h3 {
  color: var(--scr-tv-accent);
  margin: 3px 0;
}

.scr-tv-round-head > span {
  padding: 6px 9px;
  border-radius: 999px;
  background: #f7f2ec;
  color: var(--scr-tv-muted);
  font-size: 12px;
}

.scr-tv-date,
.scr-tv-bye {
  color: var(--scr-tv-muted);
  font-size: 14px;
}

.scr-tv-games {
  margin-top: 12px;
}

.scr-tv-game {
  display: grid;
  grid-template-columns: minmax(0,1fr) 46px minmax(0,1fr);
  gap: 7px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--scr-tv-line);
}

.scr-tv-game span:last-child {
  text-align: right;
}

.scr-tv-game strong {
  text-align: center;
  color: var(--scr-tv-accent);
}

.scr-tv-bye {
  margin-top: 11px;
}

.scr-tv-player-list {
  margin: 0;
  padding-left: 24px;
}

.scr-tv-player-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--scr-tv-line);
}

.scr-tv-player-list span {
  color: var(--scr-tv-muted);
}

.scr-tv-empty {
  padding: 18px;
  border: 1px solid #ded6cc;
  border-radius: 12px;
  background: #fffdf9;
}

@media (max-width: 900px) {
  .scr-tv-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .scr-tv-shell {
    padding: 9px;
  }

  .scr-tv-hero,
  .scr-tv-panel {
    padding: 17px;
  }

  .scr-tv-round-grid {
    grid-template-columns: 1fr;
  }
}


.scr-tv-nav {
  display: flex;
  gap: 10px;
  margin: 16px 0 0;
}

.scr-tv-nav a,
.scr-tv-section-head a {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--scr-tv-line);
  background: var(--scr-tv-paper);
  color: var(--scr-tv-ink);
  text-decoration: none;
  font-weight: 700;
}

.scr-tv-nav a:hover,
.scr-tv-section-head a:hover {
  border-color: var(--scr-tv-accent);
  color: var(--scr-tv-accent);
}

.scr-tv-standing-panel {
  margin-top: 18px;
}

.scr-tv-standing-list > div {
  display: grid;
  grid-template-columns: 28px minmax(0,1fr) 42px 50px;
  gap: 7px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--scr-tv-line);
}

.scr-tv-standing-list span,
.scr-tv-standing-list small {
  color: var(--scr-tv-muted);
}

.scr-tv-standing-list b,
.scr-tv-standing-list small {
  text-align: right;
}

.scr-tv-cross-panel {
  margin-top: 18px;
}

.scr-tv-section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.scr-tv-section-head h2 {
  margin-bottom: 0;
}

.scr-tv-eyebrow-dark {
  color: var(--scr-tv-muted);
  opacity: 1;
}

.scr-tv-table-scroll {
  overflow-x: auto;
  margin-top: 18px;
}

.scr-tv-cross-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  background: #fff;
  font-size: 14px;
}

.scr-tv-cross-table th,
.scr-tv-cross-table td {
  border: 1px solid var(--scr-tv-line);
  padding: 9px 8px;
  text-align: center;
  white-space: nowrap;
}

.scr-tv-cross-table th {
  background: #f7f2ec;
  color: var(--scr-tv-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 12px;
}

.scr-tv-cross-table th:nth-child(2),
.scr-tv-cross-table td:nth-child(2) {
  text-align: left;
  min-width: 180px;
}

.scr-tv-cross-table td:nth-child(2) {
  font-weight: 700;
}

.scr-tv-cross-table td {
  color: var(--scr-tv-accent);
  font-weight: 700;
}

.scr-tv-cross-table td:first-child {
  color: var(--scr-tv-muted);
  font-weight: 400;
}

.scr-tv-diagonal {
  background: #e9e2d9;
  color: #817a73 !important;
}

.scr-tv-player-key {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 10px 18px;
  margin-top: 18px;
}

.scr-tv-player-key div {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--scr-tv-line);
}

.scr-tv-player-key b {
  color: var(--scr-tv-accent);
  margin-right: 8px;
}

@media (max-width: 900px) {
  .scr-tv-player-key {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 650px) {
  .scr-tv-nav {
    flex-wrap: wrap;
  }

  .scr-tv-section-head {
    flex-direction: column;
  }

  .scr-tv-player-key {
    grid-template-columns: 1fr;
  }
}


/* Version 0.4 */
.scr-tv-progress {
  height: 8px;
  margin-top: 17px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
}

.scr-tv-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: rgba(255,255,255,.82);
}

.scr-tv-status-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1px;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid var(--scr-tv-line);
  border-radius: 14px;
  background: var(--scr-tv-line);
}

.scr-tv-status-strip > div {
  padding: 14px 17px;
  background: var(--scr-tv-paper);
}

.scr-tv-status-strip small {
  display: block;
  color: var(--scr-tv-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 11px;
}

.scr-tv-status-strip strong {
  display: block;
  margin-top: 4px;
  color: var(--scr-tv-accent);
}

.scr-tv-round-card .scr-tv-game.is-open {
  color: var(--scr-tv-muted);
}

.scr-tv-round-card .scr-tv-game.is-open strong {
  color: #a19a93;
}

.scr-tv-standing-head,
.scr-tv-standing-list > div {
  display: grid;
  grid-template-columns: 28px minmax(0,1fr) 34px 42px 50px;
  gap: 7px;
  align-items: center;
}

.scr-tv-standing-head {
  padding: 0 0 7px;
  color: var(--scr-tv-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 10px;
  font-weight: 700;
}

.scr-tv-standing-head span:nth-last-child(-n+3) {
  text-align: right;
}

.scr-tv-standing-list > div {
  padding: 8px 0;
  border-bottom: 1px solid var(--scr-tv-line);
}

.scr-tv-standing-list > div > span:nth-child(3),
.scr-tv-standing-list b,
.scr-tv-standing-list small {
  text-align: right;
}

.scr-tv-ranking-note {
  margin: 12px 0 0;
  color: var(--scr-tv-muted);
  font-size: 12px;
  line-height: 1.45;
}

.scr-tv-cross-table tbody tr:hover td:not(.scr-tv-diagonal) {
  background: #fff7eb;
}

.scr-tv-result-win {
  color: #2e6b43 !important;
  background: rgba(46,107,67,.05);
}

.scr-tv-result-draw {
  color: #9a6814 !important;
  background: rgba(154,104,20,.05);
}

.scr-tv-result-loss {
  color: #9a2929 !important;
  background: rgba(154,41,41,.04);
}

.scr-tv-result-open {
  color: #aaa29a !important;
  font-weight: 400 !important;
}

.scr-tv-open-panel {
  margin-top: 18px;
}

.scr-tv-open-count {
  padding: 8px 11px;
  border-radius: 999px;
  background: #f7f2ec;
  color: var(--scr-tv-accent);
  font-weight: 700;
}

.scr-tv-open-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
  margin-top: 18px;
}

.scr-tv-open-grid article {
  padding: 13px 14px;
  border: 1px solid var(--scr-tv-line);
  border-radius: 12px;
  background: #fff;
}

.scr-tv-open-grid small {
  display: block;
  margin-bottom: 5px;
  color: var(--scr-tv-muted);
}

.scr-tv-open-grid strong {
  display: block;
  color: var(--scr-tv-ink);
}

@media (max-width: 900px) {
  .scr-tv-open-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 650px) {
  .scr-tv-status-strip,
  .scr-tv-open-grid {
    grid-template-columns: 1fr;
  }
}


/* Version 0.5 – kompaktere Kreuztabelle */
.scr-tv-cross-table {
  table-layout: fixed;
  min-width: 820px;
}

.scr-tv-cross-table th,
.scr-tv-cross-table td {
  padding: 8px 5px;
}

.scr-tv-cross-table th:first-child,
.scr-tv-cross-table td:first-child {
  width: 44px;
  min-width: 44px;
  max-width: 44px;
}

.scr-tv-cross-table th:nth-child(2),
.scr-tv-cross-table td:nth-child(2) {
  width: 168px;
  min-width: 168px;
  max-width: 168px;
}

.scr-tv-cross-table thead tr:first-child th[colspan="2"] {
  width: 70px;
  min-width: 70px;
  max-width: 70px;
}

.scr-tv-cross-table thead tr:nth-child(2) th {
  width: 35px;
  min-width: 35px;
  max-width: 35px;
}

.scr-tv-cross-table tbody td:not(:first-child):not(:nth-child(2)) {
  width: 35px;
  min-width: 35px;
  max-width: 35px;
}

.scr-tv-cross-table th:last-child,
.scr-tv-cross-table td:last-child,
.scr-tv-cross-table th:nth-last-child(2),
.scr-tv-cross-table td:nth-last-child(2) {
  width: 58px;
  min-width: 58px;
  max-width: 58px;
}

.scr-tv-cross-table td:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 650px) {
  .scr-tv-cross-table {
    min-width: 760px;
  }

  .scr-tv-cross-table th:nth-child(2),
  .scr-tv-cross-table td:nth-child(2) {
    width: 145px;
    min-width: 145px;
    max-width: 145px;
  }
}


/* Version 0.6 – Layout-Finish */
@media (min-width: 1180px) {
  .scr-tv-shell {
    width: min(1500px, calc(100vw - 48px));
    max-width: none;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
  }

  .scr-tv-layout {
    grid-template-columns: minmax(0, 1fr) 370px;
    gap: 22px;
  }
}

.scr-tv-standing-panel,
.scr-tv-player-list {
  min-width: 0;
}

.scr-tv-standing-list > div,
.scr-tv-standing-head {
  grid-template-columns: 34px minmax(150px, 1fr) 38px 48px 62px;
  column-gap: 9px;
}

.scr-tv-standing-list strong,
.scr-tv-player-list strong {
  white-space: nowrap;
}

.scr-tv-standing-list small {
  white-space: nowrap;
}

.scr-tv-cross-panel {
  overflow: hidden;
}

.scr-tv-table-scroll {
  display: flex;
  justify-content: center;
}

.scr-tv-cross-table {
  width: 100%;
  margin-inline: auto;
}

.scr-tv-cross-table th,
.scr-tv-cross-table td {
  text-align: center;
  vertical-align: middle;
}

.scr-tv-cross-table th:nth-child(2),
.scr-tv-cross-table td:nth-child(2) {
  text-align: left;
}

.scr-tv-cross-table thead tr:first-child th[colspan="2"] {
  text-align: center;
}

.scr-tv-player-key {
  grid-template-columns: repeat(4, minmax(180px, 1fr));
}

.scr-tv-player-key div {
  white-space: nowrap;
}

.scr-tv-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: center;
  margin-top: 18px;
  padding: 12px 15px;
  border: 1px solid var(--scr-tv-line);
  border-radius: 12px;
  background: #fff;
  color: var(--scr-tv-muted);
  font-size: 13px;
}

.scr-tv-legend b {
  display: inline-block;
  min-width: 16px;
  text-align: center;
}

@media (max-width: 1179px) {
  .scr-tv-layout {
    grid-template-columns: minmax(0, 1fr) 330px;
  }

  .scr-tv-standing-list > div,
  .scr-tv-standing-head {
    grid-template-columns: 30px minmax(120px, 1fr) 34px 44px 54px;
    column-gap: 7px;
  }
}

@media (max-width: 900px) {
  .scr-tv-layout {
    grid-template-columns: 1fr;
  }

  .scr-tv-player-key {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }
}

@media (max-width: 650px) {
  .scr-tv-player-key {
    grid-template-columns: 1fr;
  }

  .scr-tv-legend {
    gap: 8px 16px;
  }
}


/* Version 0.6.1 – Zentrierung und Ranglisten-Fix */
.scr-tv-shell {
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (min-width: 1180px) {
  .scr-tv-shell {
    width: min(1500px, calc(100vw - 64px));
    max-width: 1500px;
    left: auto !important;
    transform: none !important;
  }

  .scr-tv-layout {
    grid-template-columns: minmax(0, 1fr) 390px;
  }
}

.scr-tv-standing-panel {
  overflow: hidden;
}

.scr-tv-standing-head,
.scr-tv-standing-list > div {
  width: 100%;
  box-sizing: border-box;
  grid-template-columns: 32px minmax(0, 1fr) 40px 52px 64px;
  column-gap: 8px;
}

.scr-tv-standing-head > *,
.scr-tv-standing-list > div > * {
  min-width: 0;
}

.scr-tv-standing-list strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scr-tv-standing-head span:nth-child(3),
.scr-tv-standing-head span:nth-child(4),
.scr-tv-standing-head span:nth-child(5),
.scr-tv-standing-list > div > span:nth-child(3),
.scr-tv-standing-list > div > b,
.scr-tv-standing-list > div > small {
  text-align: right;
}

.scr-tv-standing-list > div > small {
  padding-right: 2px;
}

@media (max-width: 1179px) {
  .scr-tv-layout {
    grid-template-columns: minmax(0, 1fr) 350px;
  }

  .scr-tv-standing-head,
  .scr-tv-standing-list > div {
    grid-template-columns: 30px minmax(0, 1fr) 36px 48px 58px;
    column-gap: 7px;
  }
}

@media (max-width: 900px) {
  .scr-tv-layout {
    grid-template-columns: 1fr;
  }

  .scr-tv-standing-head,
  .scr-tv-standing-list > div {
    grid-template-columns: 32px minmax(0, 1fr) 40px 52px 64px;
  }
}


/* Version 0.6.2 – finale Layoutanpassungen */
.scr-tv-shell {
  box-sizing: border-box;
  margin-inline: auto !important;
}

@media (min-width: 1180px) {
  .scr-tv-shell {
    width: min(1580px, calc(100vw - 72px));
    max-width: 1580px;
    left: auto !important;
    right: auto !important;
    transform: none !important;
  }

  .scr-tv-layout {
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 24px;
  }
}

.scr-tv-panel {
  box-sizing: border-box;
}

.scr-tv-cross-panel,
.scr-tv-open-panel,
.scr-tv-status-strip,
.scr-tv-layout {
  width: 100%;
}

.scr-tv-cross-table {
  width: 100%;
  margin-inline: auto;
}

.scr-tv-cross-table th,
.scr-tv-cross-table td {
  text-align: center;
  vertical-align: middle;
}

.scr-tv-cross-table th:nth-child(2),
.scr-tv-cross-table td:nth-child(2) {
  text-align: left;
}

.scr-tv-cross-table th:first-child,
.scr-tv-cross-table td:first-child {
  text-align: center;
}

.scr-tv-cross-table th:nth-last-child(2),
.scr-tv-cross-table td:nth-last-child(2),
.scr-tv-cross-table th:last-child,
.scr-tv-cross-table td:last-child {
  text-align: center;
}

.scr-tv-standing-panel,
.scr-tv-player-list {
  width: 100%;
}

.scr-tv-standing-head,
.scr-tv-standing-list > div {
  grid-template-columns: 34px minmax(0, 1fr) 42px 54px 68px;
  column-gap: 9px;
}

.scr-tv-standing-head span,
.scr-tv-standing-list > div > span,
.scr-tv-standing-list > div > b,
.scr-tv-standing-list > div > small {
  box-sizing: border-box;
}

.scr-tv-standing-head span:nth-child(1),
.scr-tv-standing-list > div > span:nth-child(1) {
  text-align: left;
}

.scr-tv-standing-head span:nth-child(3),
.scr-tv-standing-head span:nth-child(4),
.scr-tv-standing-head span:nth-child(5),
.scr-tv-standing-list > div > span:nth-child(3),
.scr-tv-standing-list > div > b,
.scr-tv-standing-list > div > small {
  text-align: right;
}

.scr-tv-player-key {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 28px;
}

.scr-tv-section-head {
  align-items: center;
}

.scr-tv-section-head > div {
  min-width: 0;
}

.scr-tv-nav {
  justify-content: flex-start;
}

@media (max-width: 1179px) {
  .scr-tv-shell {
    width: auto;
    max-width: none;
  }

  .scr-tv-layout {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 20px;
  }

  .scr-tv-standing-head,
  .scr-tv-standing-list > div {
    grid-template-columns: 32px minmax(0, 1fr) 38px 50px 62px;
    column-gap: 8px;
  }
}

@media (max-width: 900px) {
  .scr-tv-layout {
    grid-template-columns: 1fr;
  }

  .scr-tv-standing-head,
  .scr-tv-standing-list > div {
    grid-template-columns: 34px minmax(0, 1fr) 42px 54px 68px;
  }

  .scr-tv-player-key {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .scr-tv-player-key {
    grid-template-columns: 1fr;
  }
}


/* Version 0.7 – persönliche Spielerseite */
.scr-tv-player-body {
  margin: 0;
  background: #f3efe8;
  color: #272421;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.scr-tv-player-shell {
  width: min(980px, calc(100% - 28px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.scr-tv-player-hero {
  padding: 28px;
  border-radius: 20px;
  background: linear-gradient(135deg, #5b1515, #842525 58%, #9a3a2e);
  color: #fff;
  box-shadow: 0 14px 32px rgba(66, 24, 18, .16);
}

.scr-tv-player-kicker {
  margin-top: 6px;
  opacity: .9;
}

.scr-tv-player-hero h1 {
  margin: 8px 0 5px;
  color: #fff;
  font-size: clamp(34px, 6vw, 54px);
}

.scr-tv-player-hero p {
  margin: 0;
  opacity: .92;
}

.scr-tv-player-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, .75fr);
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}

.scr-tv-player-card {
  margin-bottom: 18px;
  padding: 20px;
  border: 1px solid #ded6cc;
  border-radius: 16px;
  background: #fffdf9;
  box-shadow: 0 5px 16px rgba(0,0,0,.05);
}

.scr-tv-player-card h1,
.scr-tv-player-card h2 {
  margin-top: 0;
  color: #7d2020;
}

.scr-tv-player-game-list {
  display: grid;
  gap: 14px;
}

.scr-tv-player-game {
  padding: 16px;
  border: 1px solid #ded6cc;
  border-radius: 14px;
  background: #fff;
}

.scr-tv-player-game-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.scr-tv-player-game-head small,
.scr-tv-player-game-head span {
  display: block;
  color: #746d67;
}

.scr-tv-player-game-head strong {
  display: block;
  margin: 7px 0 4px;
  font-size: 18px;
}

.scr-tv-player-game-head > b {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 14px;
}

.scr-tv-player-game-head > b.is-open {
  background: #e8f3e8;
  color: #356847;
}

.scr-tv-player-game-head > b.is-played {
  background: #f7f2ec;
  color: #7d2020;
}

.scr-tv-player-result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 14px;
}

.scr-tv-player-result-grid form {
  margin: 0;
}

.scr-tv-player-result {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  min-height: 50px;
  border: 1px solid #ded6cc;
  border-radius: 10px;
  background: #fff;
  color: #7d2020;
  -webkit-text-fill-color: #7d2020;
  font: inherit;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
}

.scr-tv-player-result:hover,
.scr-tv-player-result:focus {
  border-color: #7d2020;
  background: #f8f4ee;
  outline: none;
}

.scr-tv-player-edit-label {
  margin-top: 12px;
  color: #746d67;
  font-size: 13px;
  font-weight: 700;
}

.scr-tv-player-delete {
  width: 100%;
  margin-top: 9px;
  padding: 10px 12px;
  border: 1px solid #d8b7b7;
  border-radius: 10px;
  background: #fff7f7;
  color: #7b2424;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.scr-tv-player-help,
.scr-tv-player-empty {
  margin-bottom: 0;
  color: #746d67;
  font-size: 13px;
}

.scr-tv-player-stats > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid #ded6cc;
}

.scr-tv-player-link {
  display: block;
  padding: 12px;
  border-radius: 10px;
  background: #7d2020;
  color: #fff !important;
  text-align: center;
  text-decoration: none;
  font-weight: 800;
}

.scr-tv-player-notice {
  margin-top: 18px;
  padding: 13px 15px;
  border-radius: 11px;
  font-weight: 700;
}

.scr-tv-player-notice-success {
  background: #e8f3e8;
  color: #356847;
}

.scr-tv-player-notice-error {
  background: #fff0f0;
  color: #8a2929;
}

@media (max-width: 760px) {
  .scr-tv-player-shell {
    padding-top: 14px;
  }

  .scr-tv-player-layout {
    grid-template-columns: 1fr;
  }

  .scr-tv-player-hero {
    padding: 22px;
  }

  .scr-tv-player-card {
    padding: 17px;
  }
}


/* Version 1.2.2 – alte Divi-Sonderzentrierung entfernt.
   Die Turnierverwaltung verändert keine übergeordneten Divi-Container mehr. */


/* Version 0.9 – Spielleiterportal */
.scr-tv-director-body {
  margin: 0;
  background: #f3efe8;
  color: #2c2926;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.scr-tv-director-shell {
  width: min(1420px, calc(100% - 28px));
  margin: 0 auto;
  padding: 22px 0 44px;
}

.scr-tv-director-hero {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  padding: 26px 30px;
  border-radius: 20px;
  background: linear-gradient(135deg, #641818, #8c2929 58%, #a13b31);
  color: #fff;
  box-shadow: 0 14px 34px rgba(66,24,18,.15);
}

.scr-tv-director-hero h1 {
  margin: 4px 0 6px;
  color: #fff;
  font-size: clamp(34px, 5vw, 52px);
}

.scr-tv-director-hero p {
  margin: 0;
  opacity: .9;
}

.scr-tv-director-logout {
  display: inline-block;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 10px;
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
}

.scr-tv-director-tournaments,
.scr-tv-director-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.scr-tv-director-tournaments a,
.scr-tv-director-nav a {
  padding: 10px 14px;
  border: 1px solid #ddd3c8;
  border-radius: 10px;
  background: #fffdf9;
  color: #322f2c;
  text-decoration: none;
  font-weight: 700;
}

.scr-tv-director-tournaments a.is-active {
  background: #7d2020;
  color: #fff;
  border-color: #7d2020;
}

.scr-tv-director-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 1px;
  overflow: hidden;
  margin-top: 16px;
  border: 1px solid #ddd3c8;
  border-radius: 14px;
  background: #ddd3c8;
}

.scr-tv-director-summary > div {
  padding: 14px 17px;
  background: #fffdf9;
}

.scr-tv-director-summary small {
  display: block;
  color: #756f68;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 11px;
}

.scr-tv-director-summary strong {
  display: block;
  margin-top: 5px;
  color: #7d2020;
}

.scr-tv-director-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) 390px;
  gap: 18px;
  align-items: start;
}

.scr-tv-director-card {
  margin: 0 0 18px;
  padding: 22px;
  border: 1px solid #ddd3c8;
  border-radius: 16px;
  background: #fffdf9;
  box-shadow: 0 5px 16px rgba(0,0,0,.045);
}

.scr-tv-director-card h1,
.scr-tv-director-card h2 {
  margin-top: 0;
  color: #7d2020;
}

.scr-tv-director-section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.scr-tv-director-games {
  display: grid;
  gap: 11px;
  max-height: 900px;
  overflow-y: auto;
}

.scr-tv-director-game {
  display: grid;
  grid-template-columns: minmax(220px,1fr) 250px auto;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid #e2dad1;
  border-radius: 12px;
  background: #fff;
}

.scr-tv-director-game-info small,
.scr-tv-director-game-info span {
  display: block;
  color: #756f68;
}

.scr-tv-director-game-info strong {
  display: block;
  margin: 4px 0;
}

.scr-tv-director-result-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.scr-tv-director-result-buttons form,
.scr-tv-director-game > form {
  margin: 0;
}

.scr-tv-director-result-buttons button,
.scr-tv-director-reopen,
.scr-tv-director-copy,
.scr-tv-director-print,
.scr-tv-director-access a {
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid #d7ccc1;
  border-radius: 9px;
  background: #fffdf9;
  color: #7d2020;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}

.scr-tv-director-result-buttons button {
  width: 100%;
  min-height: 42px;
}

.scr-tv-director-reopen {
  padding: 9px 10px;
  white-space: nowrap;
}

.scr-tv-director-standing-head,
.scr-tv-director-standing-list > div {
  display: grid;
  grid-template-columns: 32px minmax(0,1fr) 38px 48px 60px;
  gap: 7px;
  align-items: center;
}

.scr-tv-director-standing-head {
  padding-bottom: 7px;
  color: #756f68;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 800;
}

.scr-tv-director-standing-list > div {
  padding: 9px 0;
  border-bottom: 1px solid #e2dad1;
}

.scr-tv-director-standing-head span:nth-last-child(-n+3),
.scr-tv-director-standing-list > div > span:nth-child(3),
.scr-tv-director-standing-list b,
.scr-tv-director-standing-list small {
  text-align: right;
}

.scr-tv-director-access-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px,1fr));
  gap: 14px;
}

.scr-tv-director-access {
  padding: 15px;
  border: 1px solid #e2dad1;
  border-radius: 13px;
  background: #fff;
  text-align: center;
}

.scr-tv-director-access h3 {
  margin: 0 0 9px;
  color: #7d2020;
}

.scr-tv-director-qr {
  display: flex;
  justify-content: center;
  min-height: 150px;
}

.scr-tv-director-access input {
  width: 100%;
  box-sizing: border-box;
  margin: 10px 0;
  padding: 8px;
  border: 1px solid #d7ccc1;
  border-radius: 7px;
  background: #f7f4ef;
  font-size: 10px;
}

.scr-tv-director-access > div:last-child {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.scr-tv-director-copy,
.scr-tv-director-access a,
.scr-tv-director-print {
  padding: 9px 11px;
}

.scr-tv-director-print {
  background: #7d2020;
  color: #fff;
  border-color: #7d2020;
}

.scr-tv-director-locked {
  max-width: 620px;
  margin: 80px auto;
}

@media (max-width: 1050px) {
  .scr-tv-director-layout {
    grid-template-columns: 1fr;
  }

  .scr-tv-director-access-grid {
    grid-template-columns: repeat(2, minmax(220px,1fr));
  }
}

@media (max-width: 760px) {
  .scr-tv-director-shell {
    padding-top: 12px;
  }

  .scr-tv-director-hero {
    padding: 21px;
  }

  .scr-tv-director-summary {
    grid-template-columns: 1fr 1fr;
  }

  .scr-tv-director-game {
    grid-template-columns: 1fr;
  }

  .scr-tv-director-access-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  .scr-tv-director-body * {
    visibility: hidden !important;
  }

  #scr-tv-director-print-area,
  #scr-tv-director-print-area * {
    visibility: visible !important;
  }

  #scr-tv-director-print-area {
    position: absolute;
    inset: 0;
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10mm !important;
    width: 100%;
    padding: 10mm;
    background: #fff;
  }

  .scr-tv-director-access {
    break-inside: avoid;
    box-shadow: none;
  }

  .scr-tv-director-access input,
  .scr-tv-director-access > div:last-child {
    display: none !important;
  }
}


/* Version 0.9.1 – Spielleiter-Login */
.scr-tv-director-login {
  max-width: 560px;
  margin: 70px auto;
}

.scr-tv-director-login h1 {
  margin-bottom: 8px;
  font-size: clamp(34px, 6vw, 50px);
}

.scr-tv-director-login-form {
  margin-top: 20px;
}

.scr-tv-director-login-form label {
  display: block;
  margin-bottom: 7px;
  font-weight: 800;
}

.scr-tv-director-login-form input {
  box-sizing: border-box;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #d7ccc1;
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 18px;
}

.scr-tv-director-login-form button {
  width: 100%;
  margin-top: 12px;
  padding: 13px 15px;
  border: 1px solid #7d2020;
  border-radius: 10px;
  background: #7d2020;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.scr-tv-director-back {
  margin-bottom: 0;
  text-align: center;
}


/* Version 0.9.2 – Kreuztabelle im Spielleiterportal */
.scr-tv-director-cross-card {
  overflow: hidden;
}

.scr-tv-director-cross-card .scr-tv-table-scroll {
  margin-top: 18px;
}

.scr-tv-director-cross-card .scr-tv-cross-table {
  margin-inline: auto;
}

.scr-tv-director-cross-card .scr-tv-player-key {
  margin-top: 16px;
}

.scr-tv-director-cross-card .scr-tv-legend {
  margin-top: 16px;
}


/* Version 0.9.3 – Rückweg zur öffentlichen Turnierverwaltung */
.scr-tv-director-hero-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.scr-tv-director-public-link {
  display: inline-block;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
}

.scr-tv-director-public-link:hover,
.scr-tv-director-public-link:focus {
  background: rgba(255,255,255,.16);
}

@media (max-width: 760px) {
  .scr-tv-director-hero {
    flex-direction: column;
  }

  .scr-tv-director-hero-actions {
    width: 100%;
    justify-content: flex-start;
  }
}


/* Version 0.9.4 – klar getrennte Zugangsdaten für Passwortmanager */
.scr-tv-director-login-form input + label {
  margin-top: 14px;
}

.scr-tv-director-login-form #scr-tv-director-username {
  font-weight: 700;
}

/* Version 1.0.0 – Turnier-Assistent */
.scr-tv-setup {
  margin: 18px 0;
  padding: 0;
  overflow: hidden;
}

.scr-tv-setup > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
  background: #f7f4ef;
}

.scr-tv-setup > summary::-webkit-details-marker {
  display: none;
}

.scr-tv-setup > summary strong,
.scr-tv-setup > summary small {
  display: block;
}

.scr-tv-setup > summary strong {
  color: #7d2020;
  font-size: 20px;
}

.scr-tv-setup > summary small {
  margin-top: 3px;
  color: #6f675f;
}

.scr-tv-setup > summary b {
  font-size: 26px;
  color: #7d2020;
}

.scr-tv-setup[open] > summary b {
  transform: rotate(45deg);
}

.scr-tv-setup-note {
  margin: 18px 20px 0;
  padding: 11px 13px;
  border-left: 4px solid #7d2020;
  background: #fff8ef;
  border-radius: 8px;
}

.scr-tv-setup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
  padding: 20px;
}

.scr-tv-setup-panel {
  padding: 18px;
  border: 1px solid #e2dad1;
  border-radius: 14px;
  background: #fff;
}

.scr-tv-setup-panel h2 {
  margin: 5px 0 8px;
}

.scr-tv-setup-form > label {
  display: block;
  margin-top: 15px;
  font-weight: 800;
}

.scr-tv-setup-form label small {
  font-weight: 500;
  color: #756f68;
}

.scr-tv-setup-form input[type="text"],
.scr-tv-setup-form input[type="date"],
.scr-tv-setup-form input[type="number"],
.scr-tv-setup-form select,
.scr-tv-setup-form textarea {
  box-sizing: border-box;
  width: 100%;
  margin-top: 6px;
  padding: 10px 11px;
  border: 1px solid #d7ccc1;
  border-radius: 9px;
  background: #fff;
  color: #24201d;
  font: inherit;
}

.scr-tv-setup-form textarea {
  resize: vertical;
  line-height: 1.45;
}

.scr-tv-setup-help {
  display: block;
  margin-top: 5px;
  color: #756f68;
  line-height: 1.4;
}

.scr-tv-setup-fields {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

.scr-tv-setup-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.scr-tv-setup-inline input {
  max-width: 95px;
}

.scr-tv-setup-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.scr-tv-setup-actions button {
  padding: 10px 14px;
  border: 1px solid #7d2020;
  border-radius: 9px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.scr-tv-setup-preview-button {
  background: #fff;
  color: #7d2020;
}

.scr-tv-setup-submit {
  background: #7d2020;
  color: #fff;
}

.scr-tv-setup-submit:disabled {
  opacity: .42;
  cursor: not-allowed;
}

.scr-tv-setup-preview {
  margin-top: 16px;
  padding: 13px;
  border: 1px solid #d9c9b8;
  border-radius: 10px;
  background: #faf7f2;
}

.scr-tv-setup-preview.is-error {
  border-color: #b32d2e;
  background: #fff2f2;
  color: #8b1f20;
}

.scr-tv-setup-preview-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.scr-tv-setup-preview-head span {
  color: #756f68;
  font-size: 13px;
}

.scr-tv-setup-preview-table {
  max-height: 360px;
  overflow: auto;
  border-top: 1px solid #e2dad1;
}

.scr-tv-setup-preview-round {
  display: grid;
  grid-template-columns: 110px 100px 1fr;
  gap: 7px 10px;
  padding: 9px 0;
  border-bottom: 1px solid #e2dad1;
}

.scr-tv-setup-preview-round b {
  grid-row: 1 / span 10;
}

.scr-tv-setup-preview-round small {
  grid-row: 1 / span 10;
  color: #756f68;
}

.scr-tv-setup-preview-round span,
.scr-tv-setup-preview-round em {
  grid-column: 3;
}

.scr-tv-setup-preview-round em {
  color: #756f68;
}

.scr-tv-setup-preview-row {
  display: grid;
  grid-template-columns: 85px 105px 1fr 40px;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #e2dad1;
}

.scr-tv-setup-preview-row small,
.scr-tv-setup-preview-row em {
  color: #756f68;
}

@media (max-width: 950px) {
  .scr-tv-setup-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .scr-tv-setup-fields {
    grid-template-columns: 1fr;
  }

  .scr-tv-setup-preview-round,
  .scr-tv-setup-preview-row {
    grid-template-columns: 1fr;
  }

  .scr-tv-setup-preview-round b,
  .scr-tv-setup-preview-round small,
  .scr-tv-setup-preview-round span,
  .scr-tv-setup-preview-round em {
    grid-row: auto;
    grid-column: auto;
  }
}


/* ---------- Verwaltete Turniere / Version 1.1 ---------- */
.scr-tv-list-shell,
.scr-tv-list-detail {
  --scr-tv-list-blue: #316793;
  --scr-tv-list-blue-dark: #245173;
  color: #24201e;
}

.scr-tv-list-hero {
  margin-bottom: 28px;
  padding: 6px 0 18px;
  border-bottom: 1px solid #ded6cc;
}

.scr-tv-list-hero h1 {
  margin: 7px 0 8px;
  color: #302b28;
  font-size: clamp(30px, 4vw, 46px);
}

.scr-tv-list-hero p {
  max-width: 780px;
  margin: 0;
  color: #746d67;
  font-size: 17px;
  line-height: 1.55;
}

.scr-tv-list-groups {
  display: grid;
  gap: 30px;
}

.scr-tv-list-group {
  padding: 22px;
  border: 1px solid #ded6cc;
  border-radius: 18px;
  background: #f8f5f0;
}

.scr-tv-list-group-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  margin-bottom: 16px;
}

.scr-tv-list-group-head h2 {
  margin: 0;
  color: #7d2020;
  font-size: 25px;
}

.scr-tv-list-group-head span {
  color: #746d67;
  font-size: 13px;
}

.scr-tv-list-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.scr-tv-list-card {
  display: flex;
  flex-direction: column;
  min-height: 195px;
  padding: 19px;
  border: 1px solid #ded6cc;
  border-radius: 14px;
  background: #fffdf9;
  box-shadow: 0 5px 16px rgba(0,0,0,.04);
}

.scr-tv-list-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.scr-tv-list-card-top small {
  color: #746d67;
}

.scr-tv-list-status {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eee8df;
  color: #615b55;
  font-size: 12px;
  font-weight: 700;
}

.scr-tv-list-status-active {
  background: #e5f2e8;
  color: #2f6942;
}

.scr-tv-list-status-completed,
.scr-tv-list-status-finished,
.scr-tv-list-status-closed {
  background: #ececec;
  color: #5b5b5b;
}

.scr-tv-list-card h3 {
  margin: 17px 0 8px;
  color: #302b28;
  font-size: 22px;
}

.scr-tv-list-card p {
  margin: 0 0 18px;
  color: #746d67;
}

.scr-tv-list-open {
  margin-top: auto;
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 11px 13px;
  border-radius: 9px;
  background: var(--scr-tv-list-blue);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
}

.scr-tv-list-open:hover {
  background: var(--scr-tv-list-blue-dark);
}

.scr-tv-list-open span {
  font-size: 24px;
  line-height: .8;
}

.scr-tv-list-back {
  margin: 0 0 14px;
}

.scr-tv-list-back a {
  display: inline-block;
  padding: 9px 13px;
  border: 1px solid #ded6cc;
  border-radius: 9px;
  background: #fffdf9;
  color: #302b28;
  text-decoration: none;
  font-weight: 700;
}

.scr-tv-list-back a:hover {
  border-color: #7d2020;
  color: #7d2020;
}

@media (max-width: 760px) {
  .scr-tv-list-grid {
    grid-template-columns: 1fr;
  }
  .scr-tv-list-group {
    padding: 14px;
  }
}

/* Version 1.1.1 – Detailansicht auf „Verwaltete Turniere“ sauber zentrieren */
.scr-tv-list-detail {
  width: 100%;
  box-sizing: border-box;
}

.scr-tv-list-detail > .scr-tv-shell {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  position: static !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
}

/* Version 1.1.2 – Turnierpflege, mehr Reserve für grosse Kreuztabellen */
.scr-tv-tournament-edit {
  margin-top: 18px;
}

.scr-tv-tournament-edit-body {
  padding-top: 18px;
}

.scr-tv-tournament-edit .scr-tv-setup-fields {
  grid-template-columns: minmax(240px, 1.5fr) minmax(240px, 1.25fr) minmax(170px, .65fr);
}

/* Ergebniszellen bewusst mittig halten – auch nach Divi-/Theme-Regeln. */
.scr-tv-cross-table td.scr-tv-result-win,
.scr-tv-cross-table td.scr-tv-result-draw,
.scr-tv-cross-table td.scr-tv-result-loss,
.scr-tv-cross-table td.scr-tv-result-open,
.scr-tv-cross-table td.scr-tv-diagonal {
  text-align: center !important;
  vertical-align: middle !important;
}

/* Bei vielen Spielern wächst die Tabelle statt die Ergebnisfelder zusammenzuquetschen. */
.scr-tv-table-scroll {
  justify-content: flex-start;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.scr-tv-cross-table {
  width: max-content;
  min-width: 100%;
}

/* Detailansicht etwas breiter als 1.1.1, aber weiterhin zentriert. */
@media (min-width: 1180px) {
  .scr-tv-list-detail > .scr-tv-shell {
    width: min(1580px, calc(100vw - 64px)) !important;
    max-width: 1580px !important;
    position: relative !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

@media (max-width: 800px) {
  .scr-tv-tournament-edit .scr-tv-setup-fields {
    grid-template-columns: 1fr;
  }
}



/* ---------- Turnierserie / Version 1.2 ---------- */
.scr-tv-series-setup-fields {
  grid-template-columns: 1fr 1fr;
}

.scr-tv-series-panel {
  margin-top: 18px;
}

.scr-tv-series-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 14px;
}

.scr-tv-series-table th,
.scr-tv-series-table td {
  min-width: 54px;
  padding: 9px 8px;
  border: 1px solid var(--scr-tv-line, #ded6cc);
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}

.scr-tv-series-table th {
  background: #f7f2ec;
  color: var(--scr-tv-muted, #746d67);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 12px;
}

.scr-tv-series-table th:first-child,
.scr-tv-series-table td:first-child {
  min-width: 52px;
  width: 52px;
  color: var(--scr-tv-muted, #746d67);
  font-weight: 500;
}

.scr-tv-series-table th:nth-child(2),
.scr-tv-series-table td:nth-child(2) {
  min-width: 190px;
  text-align: left;
}

.scr-tv-series-table td:nth-child(2) {
  color: var(--scr-tv-accent, #8b2323);
  font-weight: 800;
}

.scr-tv-series-table th:last-child,
.scr-tv-series-table td:last-child {
  min-width: 78px;
}

.scr-tv-series-table td:last-child {
  color: var(--scr-tv-accent, #8b2323);
  font-weight: 800;
}

.scr-tv-series-table tbody tr:hover td {
  background: #fffaf4;
}

.scr-tv-series-status-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.scr-tv-series-round-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 20px;
}

.scr-tv-series-round-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 8px 10px;
  border: 1px solid #d9cec3;
  border-radius: 9px;
  background: #fff;
  color: #312c28;
  text-decoration: none;
  font-weight: 800;
}

.scr-tv-series-round-nav a.is-recorded {
  border-color: #bfd8c4;
  background: #edf7ef;
  color: #2f6942;
}

.scr-tv-series-round-nav a.is-active {
  border-color: #7d2020;
  background: #7d2020;
  color: #fff;
}

.scr-tv-series-score-form {
  max-width: 760px;
  border: 1px solid #ded6cc;
  border-radius: 14px;
  overflow: hidden;
  background: #fffdf9;
}

.scr-tv-series-score-head,
.scr-tv-series-score-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 140px;
  gap: 16px;
  align-items: center;
  padding: 11px 14px;
}

.scr-tv-series-score-head {
  background: #f7f2ec;
  color: #746d67;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.scr-tv-series-score-row {
  margin: 0;
  border-top: 1px solid #ece5dc;
}

.scr-tv-series-score-row strong {
  color: #302b28;
}

.scr-tv-series-score-row input {
  box-sizing: border-box;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid #d8cec3;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  text-align: center;
}

.scr-tv-series-score-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  padding: 14px;
  border-top: 1px solid #ece5dc;
  background: #faf7f2;
}

.scr-tv-series-score-actions button,
.scr-tv-series-add-player button {
  padding: 10px 14px;
  border: 1px solid #7d2020;
  border-radius: 9px;
  background: #7d2020;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.scr-tv-series-score-actions span {
  color: #746d67;
  font-size: 13px;
}

.scr-tv-series-ranking-card .scr-tv-table-scroll {
  margin-top: 4px;
}

.scr-tv-series-add-player {
  display: flex;
  align-items: end;
  gap: 12px;
  max-width: 720px;
}

.scr-tv-series-add-player label {
  flex: 1;
  margin: 0;
  font-weight: 800;
}

.scr-tv-series-add-player label span {
  display: block;
  margin-bottom: 5px;
}

.scr-tv-series-add-player input {
  box-sizing: border-box;
  width: 100%;
  padding: 10px 11px;
  border: 1px solid #d7ccc1;
  border-radius: 9px;
  background: #fff;
  font: inherit;
}

.scr-tv-setup-preview-series {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 9px 14px;
  padding: 12px 0;
}

.scr-tv-setup-preview-series b {
  color: #7d2020;
}

@media (max-width: 760px) {
  .scr-tv-series-status-strip {
    grid-template-columns: 1fr;
  }

  .scr-tv-series-score-head,
  .scr-tv-series-score-row {
    grid-template-columns: minmax(0, 1fr) 100px;
  }

  .scr-tv-series-add-player {
    align-items: stretch;
    flex-direction: column;
  }

  .scr-tv-series-setup-fields,
  .scr-tv-setup-preview-series {
    grid-template-columns: 1fr;
  }
}

/* Version 1.2.2 – sichere Zentrierung nur innerhalb des vorhandenen Seiteninhalts.
   Wichtig: Keine .et_pb_section/.et_pb_row-Regeln; Divi bleibt vollständig unangetastet. */
.scr-tv-shell,
.scr-tv-list-shell,
.scr-tv-list-detail {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 1440px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  position: static !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
}

.scr-tv-list-detail > .scr-tv-shell,
.scr-tv-list-detail > .scr-tv-series-shell {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.scr-tv-director-bottom-nav {
  display: flex;
  justify-content: center;
  margin: 24px 0 8px;
}

.scr-tv-director-bottom-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  padding: 11px 18px;
  border: 1px solid var(--scr-tv-line, #ded6cc);
  border-radius: 10px;
  background: #fffdf9;
  color: #302b28 !important;
  text-decoration: none !important;
  font-weight: 700;
}

.scr-tv-director-bottom-nav a:hover {
  border-color: #7d2020;
  color: #7d2020 !important;
}



/* Version 1.2.3 – breitere Verwaltungsseiten, zentrierte Kreuztabelle, sichere Löschzone */

/* Auf grossen Bildschirmen darf die Turnierverwaltung den vorhandenen
   Seitenbereich vollständig nutzen. Sie wird aber nicht mehr mit left/transform
   aus dem Divi-Rahmen herausgezogen. */
.scr-tv-list-shell,
.scr-tv-list-detail {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 1580px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 18px;
  padding-right: 18px;
  position: static !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
}

.scr-tv-shell {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 1580px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  position: static !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
}

.scr-tv-list-detail > .scr-tv-shell,
.scr-tv-list-detail > .scr-tv-series-shell {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (min-width: 1180px) {
  .scr-tv-director-shell {
    width: min(1580px, calc(100% - 48px));
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 650px) {
  .scr-tv-list-shell,
  .scr-tv-list-detail {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* Die Kreuztabelle steht mittig, solange sie in den verfügbaren Platz passt.
   Wird sie breiter als der Bildschirm, bleibt horizontales Scrollen weiterhin möglich. */
.scr-tv-table-scroll {
  display: block !important;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.scr-tv-cross-table {
  width: max-content !important;
  min-width: 820px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.scr-tv-series-table {
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 650px) {
  .scr-tv-cross-table {
    min-width: 760px !important;
  }
}

/* Archivieren bleibt verlustfrei; endgültiges Löschen ist bewusst optisch getrennt. */
.scr-tv-danger-zone {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 460px);
  gap: 22px;
  align-items: center;
  margin: 24px 20px 20px;
  padding: 18px;
  border: 1px solid #d8a9a9;
  border-radius: 12px;
  background: #fff6f6;
}

.scr-tv-danger-zone h3 {
  margin: 0 0 6px;
  color: #8b1f20;
}

.scr-tv-danger-zone p {
  margin: 0;
  color: #6e4b4b;
  line-height: 1.45;
}

.scr-tv-delete-tournament-form {
  display: grid;
  gap: 11px;
}

.scr-tv-delete-confirm {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  color: #5e3f3f;
  font-size: 13px;
  line-height: 1.4;
}

.scr-tv-delete-confirm input {
  margin-top: 2px;
}

.scr-tv-delete-tournament-button {
  padding: 10px 14px;
  border: 1px solid #9b2425;
  border-radius: 9px;
  background: #9b2425;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.scr-tv-delete-tournament-button:hover,
.scr-tv-delete-tournament-button:focus {
  background: #74191a;
  border-color: #74191a;
}

@media (max-width: 800px) {
  .scr-tv-danger-zone {
    grid-template-columns: 1fr;
    margin-left: 14px;
    margin-right: 14px;
  }
}

/* Version 1.2.7 – breite Turnieransicht exakt mittig */

/* Die breite Desktop-Ansicht wird relativ zum zentrierten WordPress-/Divi-
   Inhaltsbereich symmetrisch erweitert. Gleiche negative/positive Seitenränder
   vermeiden die sichtbare Linkslastigkeit der vorherigen Fassung. */
@media (min-width: 1180px) {
  .scr-tv-shell,
  .scr-tv-list-shell,
  .scr-tv-list-detail {
    --scr-tv-wide-width: min(1680px, calc(100vw - 64px));
    box-sizing: border-box !important;
    width: var(--scr-tv-wide-width) !important;
    max-width: none !important;
    margin-left: calc((100% - var(--scr-tv-wide-width)) / 2) !important;
    margin-right: calc((100% - var(--scr-tv-wide-width)) / 2) !important;
    position: static !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
  }

  /* In der Detailansicht ist der äußere Listen-Container bereits verbreitert.
     Der eigentliche Turnier-Shell darf deshalb nicht ein zweites Mal wachsen. */
  .scr-tv-list-detail > .scr-tv-shell,
  .scr-tv-list-detail > .scr-tv-series-shell {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .scr-tv-director-shell {
    width: min(1680px, calc(100vw - 64px));
    max-width: 1680px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Rapid/Chess960: die vorhandene Breite vollständig ausnutzen. */
  .scr-tv-series-ranking-card .scr-tv-table-scroll {
    overflow-x: visible;
  }

  .scr-tv-series-table {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed;
    margin-left: auto;
    margin-right: auto;
  }

  .scr-tv-series-table th,
  .scr-tv-series-table td {
    box-sizing: border-box;
    min-width: 0 !important;
    padding: 8px 5px;
  }

  .scr-tv-series-table th:first-child,
  .scr-tv-series-table td:first-child {
    width: 48px;
    min-width: 48px !important;
    max-width: 48px;
  }

  .scr-tv-series-table th:nth-child(2),
  .scr-tv-series-table td:nth-child(2) {
    width: 180px;
    min-width: 180px !important;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .scr-tv-series-table th:last-child,
  .scr-tv-series-table td:last-child {
    width: 78px;
    min-width: 78px !important;
    max-width: 78px;
  }
}

/* Version 1.2.8 – mehr Platz für Sonneborn-Berger-Werte */
.scr-tv-cross-table th:last-child,
.scr-tv-cross-table td:last-child {
  width: 78px !important;
  min-width: 78px !important;
  max-width: 78px !important;
  padding-left: 10px !important;
  padding-right: 10px !important;
  white-space: nowrap;
  text-align: center;
}


/* Version 1.2.9 – frei einstellbare Streichresultate für Turnierserien */
.scr-tv-series-table .scr-tv-series-discarded span {
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  opacity: .55;
}

.scr-tv-series-table .scr-tv-series-total,
.scr-tv-series-table .scr-tv-series-value {
  min-width: 78px;
  white-space: nowrap;
}

.scr-tv-series-table .scr-tv-series-value {
  color: var(--scr-tv-accent, #8b2323);
  font-weight: 800;
}

@media (min-width: 980px) {
  .scr-tv-series-table.has-discard-results .scr-tv-series-total,
  .scr-tv-series-table.has-discard-results .scr-tv-series-value {
    width: 76px;
    min-width: 76px !important;
    max-width: 76px;
  }
}

/* Version 1.3.0 – Druckansichten und kompaktere Turnierbearbeitung */
.scr-tv-print-only {
  display: none;
}

.scr-tv-print-screen-head,
.scr-tv-section-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.scr-tv-print-screen-head h2 {
  margin-bottom: 0;
}

.scr-tv-section-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.scr-tv-print-button {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--scr-tv-accent, #7d2020);
  border-radius: 10px;
  background: #fffdf9;
  color: var(--scr-tv-accent, #7d2020);
  font: inherit;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
}

.scr-tv-print-button:hover,
.scr-tv-print-button:focus {
  background: var(--scr-tv-accent, #7d2020);
  color: #fff;
}

.scr-tv-standing-panel .scr-tv-print-screen-head {
  margin-bottom: 12px;
}


.scr-tv-series-setup-fields {
  grid-template-columns: minmax(160px, 1fr) minmax(160px, 1fr) minmax(140px, .7fr);
}

.scr-tv-tournament-edit .scr-tv-tournament-edit-fields.has-series-options {
  grid-template-columns: minmax(280px, 1.55fr) minmax(250px, 1.25fr) minmax(160px, .6fr) 150px;
  align-items: end;
}

.scr-tv-tournament-edit .scr-tv-discard-field input {
  text-align: center;
}

.scr-tv-edit-notes {
  display: grid;
  gap: 5px;
  margin: 14px 0 0;
  padding: 11px 13px;
  border: 1px solid #e2dad1;
  border-radius: 10px;
  background: #faf7f2;
  color: #756f68;
  font-size: 13px;
  line-height: 1.42;
}

.scr-tv-edit-notes p {
  margin: 0;
}

@media (max-width: 1180px) {
  .scr-tv-tournament-edit .scr-tv-tournament-edit-fields.has-series-options {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .scr-tv-print-screen-head,
  .scr-tv-section-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .scr-tv-print-button {
    width: 100%;
  }

  .scr-tv-tournament-edit .scr-tv-tournament-edit-fields.has-series-options {
    grid-template-columns: 1fr;
  }
}

@page {
  size: A4 landscape;
  margin: 10mm;
}

@media print {
  html,
  body.scr-tv-print-mode {
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
  }

  body.scr-tv-print-mode > :not(#scr-tv-print-root) {
    display: none !important;
  }

  #scr-tv-print-root {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    color: #191919 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  #scr-tv-print-root .scr-tv-panel,
  #scr-tv-print-root .scr-tv-standing-panel,
  #scr-tv-print-root .scr-tv-cross-panel,
  #scr-tv-print-root .scr-tv-series-panel {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
  }

  #scr-tv-print-root .scr-tv-print-only {
    display: block !important;
  }

  #scr-tv-print-root .scr-tv-print-screen-head,
  #scr-tv-print-root .scr-tv-print-button,
  #scr-tv-print-root .scr-tv-section-actions {
    display: none !important;
  }

  #scr-tv-print-root .scr-tv-print-heading {
    margin: 0 0 6mm;
    padding: 0 0 4mm;
    border-bottom: 1.2pt solid #7d2020;
  }

  #scr-tv-print-root .scr-tv-print-kicker {
    margin-bottom: 1.5mm;
    color: #666 !important;
    text-transform: uppercase;
    letter-spacing: .11em;
    font-size: 8.5pt;
  }

  #scr-tv-print-root .scr-tv-print-heading h1 {
    margin: 0;
    color: #7d2020 !important;
    font-size: 20pt;
    line-height: 1.15;
  }

  #scr-tv-print-root .scr-tv-print-heading p {
    margin: 1.8mm 0 0;
    color: #555 !important;
    font-size: 9pt;
  }

  #scr-tv-print-root .scr-tv-table-scroll {
    display: block !important;
    overflow: visible !important;
    width: 100% !important;
    margin: 0 !important;
  }

  #scr-tv-print-root table {
    border-collapse: collapse !important;
    break-inside: auto;
  }

  #scr-tv-print-root thead {
    display: table-header-group;
  }

  #scr-tv-print-root tr {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  #scr-tv-print-root th,
  #scr-tv-print-root td {
    border: 1px solid #cfc8bf !important;
  }

  #scr-tv-print-root th {
    background: #f3efe9 !important;
  }

  #scr-tv-print-root .scr-tv-ranking-note {
    margin-top: 4mm;
    color: #555 !important;
    font-size: 8pt;
  }

  #scr-tv-print-root .scr-tv-player-key {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 1.5mm 5mm !important;
    margin-top: 4mm !important;
    font-size: 8pt;
  }

  #scr-tv-print-root .scr-tv-player-key div {
    padding-bottom: 1mm;
  }

  #scr-tv-print-root .scr-tv-legend {
    gap: 2mm 5mm !important;
    border: 1px solid #d6d0c9 !important;
    margin-top: 3mm !important;
    padding: 2.5mm 3mm !important;
    border-radius: 0 !important;
    background: #fff !important;
    font-size: 7.5pt;
  }

  #scr-tv-print-root.scr-tv-print-cross .scr-tv-cross-table {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    table-layout: fixed !important;
    font-size: 8pt !important;
  }

  #scr-tv-print-root.scr-tv-print-cross .scr-tv-cross-table th,
  #scr-tv-print-root.scr-tv-print-cross .scr-tv-cross-table td {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    padding: 2mm 1mm !important;
    white-space: nowrap !important;
  }

  #scr-tv-print-root.scr-tv-print-cross .scr-tv-cross-table th:first-child,
  #scr-tv-print-root.scr-tv-print-cross .scr-tv-cross-table td:first-child {
    width: 8mm !important;
  }

  #scr-tv-print-root.scr-tv-print-cross .scr-tv-cross-table th:nth-child(2),
  #scr-tv-print-root.scr-tv-print-cross .scr-tv-cross-table td:nth-child(2) {
    width: 38mm !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }

  #scr-tv-print-root.scr-tv-print-cross .scr-tv-cross-table th:nth-last-child(2),
  #scr-tv-print-root.scr-tv-print-cross .scr-tv-cross-table td:nth-last-child(2) {
    width: 13mm !important;
  }

  #scr-tv-print-root.scr-tv-print-cross .scr-tv-cross-table th:last-child,
  #scr-tv-print-root.scr-tv-print-cross .scr-tv-cross-table td:last-child {
    width: 17mm !important;
  }

  #scr-tv-print-root.scr-tv-print-series .scr-tv-series-table {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    table-layout: fixed !important;
    font-size: 8pt !important;
  }

  #scr-tv-print-root.scr-tv-print-series .scr-tv-series-table th,
  #scr-tv-print-root.scr-tv-print-series .scr-tv-series-table td {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    padding: 2mm 1mm !important;
    white-space: nowrap !important;
  }

  #scr-tv-print-root.scr-tv-print-series .scr-tv-series-table th:first-child,
  #scr-tv-print-root.scr-tv-print-series .scr-tv-series-table td:first-child {
    width: 8mm !important;
  }

  #scr-tv-print-root.scr-tv-print-series .scr-tv-series-table th:nth-child(2),
  #scr-tv-print-root.scr-tv-print-series .scr-tv-series-table td:nth-child(2) {
    width: 40mm !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }

  #scr-tv-print-root.scr-tv-print-series .scr-tv-series-total,
  #scr-tv-print-root.scr-tv-print-series .scr-tv-series-value {
    width: 17mm !important;
  }

  #scr-tv-print-root.scr-tv-print-standing .scr-tv-standing-head,
  #scr-tv-print-root.scr-tv-print-standing .scr-tv-standing-list > div {
    display: grid !important;
    grid-template-columns: 12mm minmax(60mm, 1fr) 18mm 22mm 25mm !important;
    gap: 4mm !important;
    padding: 2.4mm 0 !important;
    border-bottom: 1px solid #d6d0c9 !important;
    font-size: 10pt;
  }

  #scr-tv-print-root.scr-tv-print-standing .scr-tv-standing-head {
    padding-top: 0 !important;
    color: #555 !important;
    font-size: 8pt;
  }

  #scr-tv-print-root.scr-tv-print-standing .scr-tv-standing-list strong {
    overflow: visible !important;
    text-overflow: clip !important;
  }
}

/* Version 1.3.1 – Feinschliff Druckbreite und Formularausrichtung */
.scr-tv-tournament-edit .scr-tv-tournament-edit-fields.has-series-options {
  align-items: start;
}

.scr-tv-tournament-edit .scr-tv-tournament-edit-fields.has-series-options > label {
  align-self: start;
}

.scr-tv-tournament-edit .scr-tv-tournament-edit-fields.has-series-options input[type="text"],
.scr-tv-tournament-edit .scr-tv-tournament-edit-fields.has-series-options input[type="number"],
.scr-tv-tournament-edit .scr-tv-tournament-edit-fields.has-series-options select {
  min-height: 52px;
}

@media print {
  /* Serienturniere etwas kompakter, damit TOTAL/WERTUNG rechts sicher Luft behalten. */
  #scr-tv-print-root.scr-tv-print-series .scr-tv-series-table {
    width: 96% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    font-size: 7.8pt !important;
  }

  #scr-tv-print-root.scr-tv-print-series .scr-tv-series-table th:nth-child(2),
  #scr-tv-print-root.scr-tv-print-series .scr-tv-series-table td:nth-child(2) {
    width: 37mm !important;
  }

  #scr-tv-print-root.scr-tv-print-series .scr-tv-series-total,
  #scr-tv-print-root.scr-tv-print-series .scr-tv-series-value {
    width: 16mm !important;
  }
}

/* Version 1.3.2 – Bearbeitungsfelder wirklich gleich hoch ausrichten */
.scr-tv-tournament-edit .scr-tv-tournament-edit-fields.has-series-options > label {
  display: grid;
  grid-template-rows: auto 52px;
  gap: 6px;
  align-content: start;
  align-self: start;
  margin: 0;
}

.scr-tv-tournament-edit .scr-tv-tournament-edit-fields.has-series-options input[type="text"],
.scr-tv-tournament-edit .scr-tv-tournament-edit-fields.has-series-options input[type="number"],
.scr-tv-tournament-edit .scr-tv-tournament-edit-fields.has-series-options select {
  box-sizing: border-box !important;
  width: 100% !important;
  height: 52px !important;
  min-height: 52px !important;
  max-height: 52px !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  line-height: 50px !important;
  vertical-align: middle !important;
}

.scr-tv-tournament-edit .scr-tv-tournament-edit-fields.has-series-options select {
  line-height: normal !important;
  padding-left: 11px !important;
  padding-right: 34px !important;
}

.scr-tv-tournament-edit .scr-tv-tournament-edit-fields.has-series-options input[type="number"] {
  padding-left: 11px !important;
  padding-right: 11px !important;
}

/* Version 1.4.0 – PDF-Import für vorhandene Vorrundenpläne */
.scr-tv-pdf-import-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 14px;
  align-items: center;
  margin: 4px 0 18px;
  padding: 14px;
  border: 1px solid #d7ccc1;
  border-radius: 11px;
  background: #f7f2ec;
}

.scr-tv-pdf-import-box > div:first-child {
  grid-column: 1 / -1;
}

.scr-tv-pdf-import-box strong,
.scr-tv-pdf-import-box small {
  display: block;
}

.scr-tv-pdf-import-box small {
  margin-top: 4px;
  color: #756f68;
  line-height: 1.4;
}

.scr-tv-pdf-import-box input[type="file"] {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 9px 10px;
  border: 1px solid #d7ccc1;
  border-radius: 9px;
  background: #fff;
  color: #24201d;
  font: inherit;
}

.scr-tv-pdf-read-button {
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid #7d2020;
  border-radius: 9px;
  background: #7d2020;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.scr-tv-pdf-read-button:disabled {
  opacity: .55;
  cursor: wait;
}

.scr-tv-pdf-status {
  grid-column: 1 / -1;
  padding: 9px 11px;
  border-radius: 8px;
  background: #fff;
  color: #5f5953;
  font-size: 13px;
  line-height: 1.4;
}

.scr-tv-pdf-status.is-success {
  border: 1px solid #bad6c3;
  background: #f2faf4;
  color: #27653b;
}

.scr-tv-pdf-status.is-error {
  border: 1px solid #e2bcbc;
  background: #fff2f2;
  color: #8b1f20;
}

.scr-tv-pdf-preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin: -2px 0 10px;
  color: #756f68;
  font-size: 13px;
}

.scr-tv-pdf-preview-note {
  margin: 12px 0 0;
  color: #5f5953;
  font-size: 13px;
  line-height: 1.45;
}

/* Kleiner Layout-Wunsch aus 1.3.x: Bearbeitungsfelder nicht mehr direkt an den Kartenrand ziehen. */
.scr-tv-tournament-edit-body > .scr-tv-setup-form {
  padding-left: 28px;
  padding-right: 28px;
}

@media (max-width: 680px) {
  .scr-tv-pdf-import-box {
    grid-template-columns: 1fr;
  }

  .scr-tv-pdf-import-box > div:first-child,
  .scr-tv-pdf-status {
    grid-column: 1;
  }

  .scr-tv-pdf-read-button {
    width: 100%;
  }

  .scr-tv-tournament-edit-body > .scr-tv-setup-form {
    padding-left: 14px;
    padding-right: 14px;
  }
}
