.rws-vm {
  --rws-red: #a43d45;
  --rws-ink: #2b2f32;
  --rws-paper: #f4f5f5;
  color: var(--rws-ink);
  font:
    16px/1.55 Rubik,
    system-ui,
    sans-serif;
  max-width: 1400px;
  margin: 24px auto;
  box-sizing: border-box;
}
.rws-vm * {
  box-sizing: border-box;
}
.rws-vm h1,
.rws-vm h2,
.rws-vm h3,
.rws-vm h4 {
  font-family: "Bebas Neue", Impact, system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.025em;
  color: var(--rws-ink);
  margin: 0 0 16px;
}
.rws-vm h1,
.rws-vm h2 {
  font-size: clamp(32px, 4vw, 52px);
}
.rws-vm h3 {
  font-size: 28px;
}
.rws-vm h4 {
  font-size: 23px;
}
.rws-vm p {
  margin: 0 0 14px;
}
.rws-vm button,
.rws-vm .rws-button {
  background: var(--rws-red);
  border: 2px solid var(--rws-red);
  border-radius: 0;
  color: #fff;
  font:
    700 15px/1.3 Rubik,
    system-ui,
    sans-serif;
  padding: 11px 17px;
  cursor: pointer;
  text-decoration: none;
  min-height: 44px;
  display: inline-block;
}
.rws-vm button:hover {
  filter: brightness(0.9);
}
.rws-vm button:disabled {
  opacity: 0.55;
  cursor: default;
}
.rws-vm form[aria-busy="true"] button[type="submit"] {
  cursor: wait;
}
.rws-vm button.rws-secondary {
  background: #fff;
  color: var(--rws-ink);
  border-color: #b9bfc1;
}
.rws-vm button.rws-danger {
  background: #fff;
  color: var(--rws-red);
  border-color: var(--rws-red);
}
.rws-vm a {
  color: var(--rws-red);
  text-decoration: underline;
  overflow-wrap: anywhere;
}
.rws-vm :focus-visible {
  outline: 3px solid #1563a4;
  outline-offset: 3px;
}
.rws-vm input:not([type="checkbox"]),
.rws-vm select,
.rws-vm textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  border: 1px solid #9da5aa;
  border-radius: 0;
  padding: 10px;
  background: #fff;
  color: #20272b;
  font: inherit;
}
.rws-vm input[type="checkbox"] {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
  accent-color: var(--rws-red);
  margin-top: 3px;
}
.rws-vm textarea {
  min-height: 110px;
}
.rws-vm .rws-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 500;
  margin-bottom: 16px;
}
.rws-vm .rws-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 10px 0;
  font-weight: 400;
}
.rws-vm .rws-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 0 20px;
}
.rws-vm fieldset {
  border: 1px solid #ccd1d2;
  padding: 18px;
  margin: 16px 0;
}
.rws-vm legend {
  font-weight: 700;
  padding: 0 8px;
}
.rws-vm .rws-kicker {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--rws-red);
  display: block;
  margin-bottom: 9px;
}
.rws-vm .rws-version {
  display: block;
  margin-bottom: 9px;
}
.rws-vm .rws-heading {
  border-bottom: 4px solid var(--rws-red);
  margin-bottom: 26px;
  padding-bottom: 10px;
}
.rws-vm .rws-muted {
  color: #515a60;
  font-size: 14px;
}
.rws-vm .rws-badge {
  display: inline-block;
  background: #e9eded;
  color: #27343a;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
}
.rws-vm .rws-notice,
.rws-vm .rws-error {
  padding: 14px 18px;
  background: #edf3f7;
  border-left: 4px solid #1b5b82;
  margin: 14px 0;
}
.rws-vm .rws-error {
  background: #fff0f0;
  border-color: var(--rws-red);
  color: var(--rws-red);
}
.rws-vm table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}
.rws-vm th,
.rws-vm td {
  border: 0;
  border-bottom: 1px solid #d9dddf;
  padding: 12px;
  text-align: left;
  vertical-align: top;
}
.rws-vm th {
  font-weight: 700;
  background: var(--rws-paper);
}
.rws-vm .rws-table-scroll {
  overflow: auto;
  max-width: 100%;
  margin: 18px 0;
}
.rws-vm .rws-table-scroll table {
  min-width: 520px;
}
.rws-vm .rws-competition-title,
.rws-vm .rws-competition-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
}
.rws-vm .rws-competition-title {
  flex-direction: column;
}
.rws-vm .rws-competition-overview > table > tbody > tr > td:first-child {
  min-width: 190px;
}
.rws-vm .rws-competition-overview > table > tbody > tr > td:last-child {
  max-width: 350px;
}
.rws-vm .rws-competition-detail-row > td {
  background: var(--rws-paper);
}
.rws-vm .rws-competition-detail-row > td::before {
  display: none;
}
.rws-vm .rws-competition-list {
  padding: 12px;
}
.rws-vm .rws-competition-list .rws-table-scroll {
  background: #fff;
  margin-bottom: 0;
}
.rws-vm .rws-competition-overview [hidden] {
  display: none !important;
}
@media (max-width: 782px) {
  .rws-vm .rws-competition-overview > table > tbody > tr > td:last-child {
    max-width: none;
  }
  .rws-vm .rws-competition-list {
    padding: 0;
  }
}
.rws-vm .rws-bracket {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  align-items: flex-start;
  padding: 12px 3px 24px;
  scroll-snap-type: x proximity;
}
.rws-vm .rws-round {
  min-width: 270px;
  max-width: 360px;
  flex: 1;
  scroll-snap-align: start;
}
.rws-vm .rws-match {
  border: 1px solid #c7cdcf;
  border-left: 3px solid var(--rws-red);
  padding: 14px;
  background: #fff;
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.rws-vm .rws-match p {
  margin: 0;
}
.rws-vm .rws-winner {
  font-weight: 700;
  color: var(--rws-red);
}
.rws-vm .rws-toolbar,
.rws-vm .rws-tabs,
.rws-vm .rws-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  align-items: center;
  margin: 16px 0;
}
.rws-vm .rws-toolbar select {
  width: auto;
  min-width: 220px;
}
.rws-vm .rws-tabs {
  border-bottom: 1px solid #ccd1d2;
  padding-bottom: 12px;
}
.rws-vm .rws-tabs button {
  background: #fff;
  color: #30383d;
  border-color: #d1d5d7;
}
.rws-vm .rws-tabs button[aria-current="page"] {
  background: var(--rws-red);
  color: white;
  border-color: var(--rws-red);
}
.rws-vm .rws-panel {
  background: #fff;
  border: 1px solid #d5dadc;
  padding: 24px;
  margin: 20px 0;
}
.rws-vm .rws-stat {
  background: var(--rws-paper);
  padding: 20px;
  margin: 10px 0;
}
.rws-vm .rws-stat strong {
  font-size: 34px;
  display: block;
  color: var(--rws-red);
}
.rws-vm .rws-seed {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid #ccd1d2;
  background: white;
  margin: 8px 0;
}
.rws-vm .rws-seed span {
  flex: 1;
}
.rws-vm .rws-seed input {
  width: 70px !important;
}
.rws-vm .rws-seed button {
  padding: 8px;
}
.rws-vm .rws-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.rws-vm pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f5f6f6;
  padding: 18px;
}
.rws-vm details {
  margin: 14px 0;
}
.rws-vm summary {
  font-weight: 700;
  cursor: pointer;
}
.rws-standalone {
  margin: 0;
  background: #f4f5f5;
}
.rws-standalone .rws-vm-landing {
  background: #fff;
  padding: 20px;
}
.rws-vm-landing {
  max-width: 1200px;
  margin: 32px auto;
  padding: 0 20px;
}
.rws-vm dialog {
  max-width: min(780px, 95vw);
  max-height: 90vh;
  overflow: auto;
  border: 1px solid #aaa;
  padding: 24px;
}
.rws-vm dialog::backdrop {
  background: #0008;
}
@media (max-width: 600px) {
  .rws-vm {
    margin: 16px 0;
    font-size: 15px;
  }
  .rws-vm .rws-panel {
    padding: 16px;
  }
  .rws-vm .rws-tabs button {
    flex: 1;
    min-width: 130px;
  }
  .rws-vm .rws-toolbar select {
    width: 100%;
  }
  .rws-vm .rws-actions button {
    flex: 1;
  }
  .rws-vm .rws-seed {
    flex-wrap: wrap;
  }
  .rws-vm .rws-seed span {
    min-width: 100%;
  }
}
@media print {
  .rws-vm .rws-no-print,
  .rws-vm button,
  .rws-vm .rws-tabs,
  .rws-vm .rws-toolbar {
    display: none !important;
  }
  .rws-vm .rws-bracket {
    display: block;
    overflow: visible;
  }
  .rws-vm .rws-round {
    max-width: none;
    break-inside: avoid;
  }
  .rws-vm .rws-match {
    break-inside: avoid;
  }
  .rws-vm .rws-table-scroll {
    overflow: visible;
  }
  .rws-vm {
    color: #000;
    font-size: 11pt;
  }
  .rws-vm .rws-version {
    display: block;
    margin-bottom: 9px;
  }
  .rws-vm .rws-heading {
    border-color: #000;
  }
}
/* Management help panels, keyboard-friendly draw slots and competition columns. */
.rws-vm .rws-help-field {
  position: relative;
  min-width: 0;
  padding-right: 36px;
}
.rws-vm .rws-help-button {
  position: absolute;
  right: 0;
  top: 0;
  min-width: 30px;
  padding: 4px;
  background: transparent;
  color: var(--rws-red);
  border: 1px solid currentColor;
  font-size: 20px;
  line-height: 1.2;
}
.rws-vm .rws-transfer-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.rws-vm .rws-transfer-column {
  padding: 16px;
  border: 2px solid #d3d6d6;
  background: #f4f5f5;
}
.rws-vm .rws-entry-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px;
  margin: 8px 0;
  border: 1px solid #d3d6d6;
  background: white;
}
.rws-vm [draggable="true"] {
  cursor: grab;
}
.rws-vm .rws-manual-slots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.rws-vm .rws-slot {
  padding: 14px;
  border: 2px dashed #a5aaaa;
  background: #fff;
  min-width: 0;
}
.rws-vm .rws-slot strong {
  display: block;
  margin-bottom: 8px;
}
.rws-vm .rws-slot select {
  width: 100%;
  max-width: 100%;
}
.rws-vm .rws-slot-bank {
  padding: 12px;
  background: #f4f5f5;
}
.rws-vm [hidden] {
  display: none !important;
}
.rws-vm .rws-mixed-category {
  max-width: 420px;
  margin: 16px 0;
}
.rws-vm dialog {
  max-height: 85vh;
  overflow: auto;
  width: min(900px, 90vw);
  box-sizing: border-box;
}
@media (max-width: 600px) {
  .rws-vm .rws-manual-slots {
    grid-template-columns: 1fr;
  }
}
.rws-vm .rws-slot strong,
.rws-vm .rws-entry-card > span {
  user-select: none;
}
.rws-vm .rws-dragging {
  opacity: 0.55;
  outline: 3px solid var(--rws-red);
}
.rws-drag-marker {
  position: fixed;
  z-index: 2147483647;
  pointer-events: none;
  padding: 8px 12px;
  background: #2b2f32;
  color: #fff;
  font: bold 14px sans-serif;
}

.rws-vm .rws-email-preview {
  width: 100%;
  height: 620px;
  max-height: 70vh;
  border: 1px solid #d7dadc;
  background: #f4f5f5;
}
.rws-vm .rws-job-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 460px;
}
.rws-vm .rws-job-actions small {
  display: block;
  flex-basis: 100%;
}

.rws-vm .rws-competition-order {
  list-style: none;
  margin: 16px 0;
  padding: 0;
  max-height: 55vh;
  overflow-y: auto;
}
.rws-vm .rws-competition-order li {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #ccd1d2;
  padding: 10px;
  margin: 6px 0;
  background: #fff;
  cursor: grab;
}
.rws-vm .rws-order-name {
  flex: 1;
  overflow-wrap: anywhere;
}
.rws-vm .rws-competition-order button {
  min-width: 44px;
  min-height: 44px;
  flex-shrink: 0;
}

.rws-vm .rws-competition-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.rws-vm .rws-entry-card {
  flex-wrap: wrap;
}
.rws-vm .rws-entry-card > span {
  overflow-wrap: anywhere;
  min-width: 0;
}
.rws-vm .rws-entry-card .rws-actions {
  margin: 0;
}

.rws-vm .rws-competition-name > button {
  margin: 0;
}

/* 1.2: readable on small screens and within Divi modules. */
.rws-vm {
  min-width: 0;
}
.rws-vm :is(h1, h2, h3, h4) {
  overflow-wrap: anywhere;
  text-transform: none;
}
.rws-vm .rws-heading h2 {
  font-size: clamp(26px, 4.1vw, 52px);
}
#rws-vm-admin h1 {
  font-size: 32px;
}
#rws-vm-admin h2 {
  font-size: 29px;
}
#rws-vm-admin h3 {
  font-size: 24px;
}
.rws-vm :is(input:not([type="checkbox"]), select, textarea) {
  border-color: #707b82;
}
.rws-vm .rws-help-field {
  padding-right: 54px;
}
.rws-vm .rws-help-button {
  min-width: 44px;
  min-height: 44px;
}
.rws-vm summary {
  min-height: 44px;
  padding: 10px 0;
}
.rws-vm .rws-check {
  min-height: 44px;
  align-items: center;
}
.rws-vm .rws-section {
  padding: 0 16px 12px;
  border: 1px solid #c7cdcf;
  background: #fff;
}
.rws-vm .rws-section > summary {
  font-size: 18px;
}
.rws-vm .rws-receipt {
  border-left: 5px solid #237047;
  background: #edf6f0;
  padding: 20px;
  margin: 20px 0;
}
.rws-vm .rws-score-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.rws-vm .rws-score-row > strong {
  grid-column: 1/-1;
}
.rws-vm .rws-field-error {
  color: #94313a;
  display: block;
}
.rws-vm [aria-invalid="true"] {
  border: 2px solid #94313a !important;
}
.rws-vm button.rws-error-link {
  display: block;
  background: transparent;
  border: 0;
  color: #94313a;
  text-decoration: underline;
  text-align: left;
  padding: 5px;
}
.rws-vm .rws-round-list {
  display: block;
}
.rws-vm .rws-round-list .rws-round {
  max-width: none;
  min-width: 0;
}
.rws-vm .rws-mobile-nav {
  display: none;
}
.rws-vm .rws-sticky-context {
  position: sticky;
  top: 32px;
  z-index: 20;
  background: #f4f5f5;
  border-bottom: 1px solid #707b82;
  padding: 8px;
}
.rws-vm .rws-save-bar {
  position: sticky;
  bottom: 0;
  padding: 12px;
  background: #fff;
  border-top: 1px solid #707b82;
  z-index: 10;
}
.rws-vm .rws-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 16px;
}
.rws-vm .rws-card {
  border: 1px solid #b9bfc1;
  padding: 18px;
  background: white;
}
.rws-vm .rws-card h3 {
  font-size: 24px;
}
.rws-vm .rws-step-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-left: 24px;
}
.rws-vm .rws-inline-hint {
  padding: 10px;
  background: #f4f5f5;
  margin: 10px 0;
}
@media (max-width: 782px) {
  .rws-vm {
    font-size: 16px;
  }
  .rws-vm input,
  .rws-vm select,
  .rws-vm textarea {
    font-size: 16px !important;
  }
  .rws-vm .rws-tabs {
    display: none;
  }
  .rws-vm .rws-mobile-nav {
    display: block;
  }
  .rws-vm .rws-sticky-context {
    position: static;
  }
  .rws-vm .rws-table-scroll {
    overflow: visible;
  }
  .rws-vm .rws-table-scroll table {
    min-width: 0;
  }
  .rws-vm .rws-table-scroll thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .rws-vm .rws-table-scroll :is(tbody, tr, td) {
    display: block;
    width: 100%;
  }
  .rws-vm .rws-table-scroll tr {
    border: 1px solid #b9bfc1;
    margin: 14px 0;
    padding: 8px;
  }
  .rws-vm .rws-table-scroll td {
    border: 0;
    padding: 6px;
    overflow-wrap: anywhere;
  }
  .rws-vm .rws-table-scroll td::before {
    content: attr(data-label);
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #515a60;
  }
  .rws-vm dialog {
    width: calc(100vw - 24px);
    max-width: none;
    padding: 16px;
  }
  .rws-vm .rws-toolbar select {
    min-width: 0;
  }
  .rws-vm .rws-actions button {
    flex: auto;
  }
}
@media print {
  .rws-vm .rws-mobile-nav,
  .rws-vm .rws-save-bar {
    display: none !important;
  }
}
/* WordPress adds a one-pixel select margin; remove it inside this plugin. */
.rws-vm input:not([type="checkbox"]),
.rws-vm select,
.rws-vm textarea {
  margin: 0;
}
#rws-vm-admin h1 {
  font-size: clamp(24px, 4vw, 32px);
}

@media (max-width: 782px) {
  .rws-vm .rws-sticky-context {
    gap: 8px;
  }
  .rws-vm .rws-sticky-context > label {
    flex-basis: 100%;
  }
  .rws-vm .rws-sticky-context > button {
    font-size: 14px;
    padding: 8px 10px;
  }
}

.rws-vm .rws-pagination {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}
.rws-vm .rws-pagination span {
  flex: 1;
  min-width: 180px;
}

.rws-vm .rws-export-actions {
  margin-top: 20px;
}

/* RWS Glasdesign 2026-11. */
body .rws-vm .rws-panel,body .rws-vm .rws-match,body .rws-vm .rws-section,body .rws-vm .rws-stat,body .rws-vm .rws-competition-list .rws-table-scroll{background-image:linear-gradient(125deg,rgba(255,255,255,.96),rgba(255,255,255,.64) 55%,rgba(248,244,244,.85));border-radius:12px;box-shadow:0 9px 28px rgba(43,47,50,.055),inset 0 1px 0 rgba(255,255,255,.95),inset 0 0 0 1px rgba(164,61,69,.07)}
body .rws-vm button,body .rws-vm .rws-button{border-radius:8px;background-image:none;box-shadow:0 2px 6px rgba(43,47,50,.07);transition:background-color 160ms ease,border-color 160ms ease,box-shadow 160ms ease}
body .rws-vm input:not([type=checkbox]):not([type=radio]):not([type=hidden]),body .rws-vm select,body .rws-vm textarea{border-radius:7px;background-color:rgba(255,255,255,.97);box-shadow:inset 0 1px 3px rgba(43,47,50,.045)}
body.rws-standalone{background-image:radial-gradient(ellipse at 10% 0,rgba(164,61,69,.05),transparent 65%)}
@media (prefers-reduced-transparency:reduce),(forced-colors:active),print{
body .rws-vm .rws-panel,body .rws-vm .rws-match,body .rws-vm .rws-section,body .rws-vm .rws-stat,body .rws-vm .rws-competition-list .rws-table-scroll,body .rws-vm button,body .rws-vm .rws-button,body .rws-vm input:not([type=checkbox]):not([type=radio]):not([type=hidden]),body .rws-vm select,body .rws-vm textarea{background-image:none!important;box-shadow:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
}

/* RWS ruhige Button-Reaktionen. */
@media(hover:hover) and (pointer:fine){body .rws-vm button:hover:not(:disabled):not([aria-disabled=true]),body .rws-vm .rws-button:hover:not(:disabled):not([aria-disabled=true]){box-shadow:0 4px 10px rgba(43,47,50,.11)}}
body .rws-vm button:focus-visible:not(:disabled),body .rws-vm .rws-button:focus-visible:not(:disabled){box-shadow:0 4px 10px rgba(43,47,50,.11)}
@media(prefers-reduced-motion:reduce){body .rws-vm button,body .rws-vm .rws-button{transition:none}}
@media(forced-colors:active),print{body .rws-vm button:is(:hover,:focus-visible,*),body .rws-vm .rws-button:is(:hover,:focus-visible,*){box-shadow:none!important}}
