/* V11.26 — unified tactical switches and clan configuration. */
/* Private Tournament: ensure the control titles and context are readable. */
body.aow-masters-theme .tournament-private-admin .private-approval-toggle {
  box-sizing:border-box;
  width:100%;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:18px!important;
  min-height:84px;
  padding:16px 19px!important;
  background:#0a1d22!important;
  border:1px solid #3f6269!important;
  border-radius:3px!important;
  margin:9px 0!important;
  cursor:pointer;
}
body.aow-masters-theme .tournament-private-admin .private-approval-title {
  display:block;
  flex:1 1 auto;
  min-width:0;
  font:750 clamp(18px,1.23vw,22px)/1.22 var(--aow-heading,inherit)!important;
  color:#e5f5f4!important;
  letter-spacing:.02em!important;
  overflow-wrap:anywhere;
}
body.aow-masters-theme .tournament-private-admin .private-setting-help {
  display:block!important;
  max-width:80ch;
  margin-top:7px!important;
  font:500 clamp(15px,.92vw,17px)/1.45 var(--aow-heading,inherit)!important;
  color:#afc9cb!important;
  letter-spacing:0!important;
}
body.aow-masters-theme .tournament-private-admin .private-switch-control {
  position:relative;
  display:inline-flex!important;
  flex:0 0 auto;
  align-items:center;
  gap:10px;
}
body.aow-masters-theme .tournament-private-admin .private-switch-track {
  box-sizing:border-box;
  width:57px!important;height:32px!important;
  padding:4px!important;
  background:#30444c!important;
  border:1px solid #729097!important;
  border-radius:3px!important;
}
body.aow-masters-theme .tournament-private-admin .private-switch-knob {
  display:block;
  width:22px!important;height:22px!important;
  background:#e8f5f5!important;
  border-radius:2px!important;
}
body.aow-masters-theme .tournament-private-admin .private-switch-control input:checked + .private-switch-track {
  background:#216976!important;
  border-color:#8be5e7!important;
}
body.aow-masters-theme .tournament-private-admin .private-switch-control input:checked + .private-switch-track .private-switch-knob {
  transform:translateX(25px)!important;
}
body.aow-masters-theme .tournament-private-admin .private-switch-state {
  min-width:35px!important;
  color:#b5cacc!important;
  font:800 16px/1 var(--aow-heading,inherit)!important;
}
body.aow-masters-theme .tournament-private-admin .private-switch-control input:checked ~ .private-switch-state {
  color:#8de4e6!important;
}
body.aow-masters-theme .tournament-private-admin .private-switch-control input:focus-visible + .private-switch-track {
  outline:3px solid #8ae6e5!important;
  outline-offset:3px!important;
}
body.aow-masters-theme .tournament-private-admin .private-approval-toggle:has(input:checked) {
  border-color:#54878c!important;
  background:linear-gradient(105deg,#0f3035,#0a1d22)!important;
}

/* Registration switches use the Private Tournament switch language, not raw checkboxes. */
body.aow-masters-theme .registration-section .aow-registration-switch-row {
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:16px!important;
  min-height:82px;
  margin:0!important;
  padding:16px 18px!important;
  border:1px solid #436a70!important;
  border-radius:3px!important;
  background:#0c252a!important;
  color:#e6f4f3!important;
  cursor:pointer;
}
body.aow-masters-theme .registration-section .clan-registration-box {
  background:linear-gradient(120deg,#122d32,#091b20)!important;
  border:1px solid #548187!important;
  padding:18px!important;
}
body.aow-masters-theme .registration-section .clan-registration-box .aow-registration-switch-row {
  padding:12px 0!important;
  border:0!important;
  background:transparent!important;
}
body.aow-masters-theme .registration-section .aow-registration-switch-copy {
  display:block;flex:1 1 auto;min-width:0;
}
body.aow-masters-theme .registration-section .aow-registration-switch-copy strong {
  display:block;
  font:800 clamp(19px,1.24vw,23px)/1.15 var(--aow-heading,inherit)!important;
  letter-spacing:.04em;
  color:#e9f8f7;
}
body.aow-masters-theme .registration-section .aow-registration-switch-copy small {
  display:block;
  margin-top:6px;
  font:500 clamp(15px,.95vw,17px)/1.4 var(--aow-heading,inherit)!important;
  letter-spacing:0;
  color:#acc7ca;
}
body.aow-masters-theme .registration-section .aow-registration-switch-control {
  position:relative;
  display:inline-flex;align-items:center;gap:9px;flex:0 0 auto;
}
body.aow-masters-theme .registration-section .aow-registration-switch-control input[type=checkbox] {
  position:absolute!important;
  width:100%!important;height:100%!important;
  inset:0!important;
  opacity:0!important;
  margin:0!important;
  z-index:2;
  cursor:pointer;
}
body.aow-masters-theme .registration-section .aow-registration-switch-track {
  box-sizing:border-box;
  display:flex;align-items:center;
  width:58px;height:32px;
  padding:4px;
  background:#32494e;
  border:1px solid #6b9298;
  border-radius:3px;
  transition:background .18s;
}
body.aow-masters-theme .registration-section .aow-registration-switch-knob {
  display:block;width:22px;height:22px;
  background:#e6f1f1;
  border-radius:2px;
  transition:transform .18s;
}
body.aow-masters-theme .registration-section input:checked + .aow-registration-switch-track {
  background:#226c78;
  border-color:#93e6e7;
}
body.aow-masters-theme .registration-section input:checked + .aow-registration-switch-track .aow-registration-switch-knob {
  transform:translateX(25px);
}
body.aow-masters-theme .registration-section input:focus-visible + .aow-registration-switch-track {
  outline:3px solid #9fe7e8;outline-offset:3px;
}
body.aow-masters-theme .registration-section input:disabled + .aow-registration-switch-track {opacity:.52}
body.aow-masters-theme .registration-section .aow-registration-switch-state {
  min-width:32px;
  font:800 16px/1 var(--aow-heading,inherit);
  color:#b3c5c8;
}
body.aow-masters-theme .registration-section .aow-registration-switch-state:after{content:'OFF'}
body.aow-masters-theme .registration-section input:checked ~ .aow-registration-switch-state {color:#92e8e8}
body.aow-masters-theme .registration-section input:checked ~ .aow-registration-switch-state:after{content:'ON'}
body.aow-masters-theme .registration-section .aow-registration-switch-row:has(input:checked) {
  border-color:#60949a!important;
  background:linear-gradient(120deg,#15383d,#0c252a)!important;
}
body.aow-masters-theme .registration-section .clan-registration-box .aow-registration-switch-row:has(input:checked) {
  background:transparent!important;
}

/* Points configuration: visually distinguish entry limit, podium, and elimination stages. */
body.aow-masters-theme .aow-clan-settings {
  padding:clamp(18px,2vw,30px)!important;
  background:linear-gradient(145deg,#0d252a,#06181b)!important;
  border:1px solid #57888d!important;
  box-shadow:inset 3px 0 0 #6dc2c6!important;
}
body.aow-masters-theme .aow-clan-settings-header {
  display:flex;align-items:flex-start;justify-content:space-between;gap:16px;
  padding-bottom:19px;
  border-bottom:1px solid #365b61;
}
body.aow-masters-theme .aow-clan-settings-header h3 {
  font:800 clamp(27px,2.3vw,37px)/1.12 var(--aow-heading,inherit)!important;
  color:#edf9f8;
  margin:5px 0 7px!important;
}
body.aow-masters-theme .aow-clan-settings-header p {
  max-width:75ch;
  font-size:17px!important;
  color:#aac8cb;
  margin:0;
}
body.aow-masters-theme .aow-clan-settings-tag {
  padding:9px 13px;
  border:1px solid #8f7747;
  color:#f6d784;
  background:#252c20;
  font:800 16px/1.1 var(--aow-heading,inherit);
  letter-spacing:.08em;
  white-space:nowrap;
}
body.aow-masters-theme .aow-clan-settings-group {
  margin-top:18px;
  padding:19px;
  border:1px solid #365e63;
  background:rgba(5,21,24,.82);
  min-width:0;
}
body.aow-masters-theme .aow-clan-settings-group h4 {
  margin:6px 0 13px;
  color:#ecf8f7;
  font:800 clamp(22px,1.45vw,27px)/1.2 var(--aow-heading,inherit);
}
body.aow-masters-theme .aow-clan-limit-group {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(140px,220px);
  align-items:center;
  gap:20px;
  border-left:4px solid #d7bd68;
}
body.aow-masters-theme .aow-clan-limit-group p {
  margin:0;
  font-size:16px!important;
  line-height:1.5;
  max-width:65ch;
  color:#adc8c9;
}
body.aow-masters-theme .aow-clan-limit-input,
body.aow-masters-theme .aow-clan-score-tile {
  display:flex;flex-direction:column;min-width:0;
  gap:10px;
  color:#dff3f2;
}
body.aow-masters-theme .aow-clan-limit-input > span {
  font:800 16px/1.1 var(--aow-heading,inherit);
  color:#eccf82;
  letter-spacing:.08em;
}
body.aow-masters-theme .aow-clan-limit-input input {
  width:100%;min-width:0;max-width:100%;height:58px;
  border:1px solid #a58e59!important;
  background:#122b30!important;
  color:#ffe29d!important;
  font:800 27px/1 var(--aow-heading,inherit)!important;
  padding:10px 14px!important;
}
body.aow-masters-theme .aow-clan-settings-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:13px;
}
body.aow-masters-theme .aow-clan-score-tile {
  padding:14px;
  background:linear-gradient(150deg,#102e33,#0b1c21);
  border:1px solid #467276;
  min-height:125px;
}
body.aow-masters-theme .aow-clan-score-label {
  font:800 clamp(16px,1.03vw,19px)/1.25 var(--aow-heading,inherit);
  color:#d9f1f0;
  min-height:23px;
}
body.aow-masters-theme .aow-clan-podium .aow-clan-score-tile:first-child {
  border-color:#c2a159;
  box-shadow:inset 3px 0 0 #e7c66a;
}
body.aow-masters-theme .aow-clan-score-input {display:flex;align-items:center;gap:10px;min-width:0;}
body.aow-masters-theme .aow-clan-score-input input {
  box-sizing:border-box;
  flex:1 1 auto;
  min-width:0;
  width:100%;height:55px!important;
  border:1px solid #547e83!important;
  border-radius:2px!important;
  padding:8px 12px!important;
  background:#06191c!important;
  color:#f2cf6e!important;
  font:800 25px/1 var(--aow-heading,inherit)!important;
}
body.aow-masters-theme .aow-clan-score-input small {
  flex:0 0 auto;
  color:#82cfd4;
  font:800 16px/1 var(--aow-heading,inherit);
}
body.aow-masters-theme .aow-clan-settings-footer {
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding-top:21px;
}
body.aow-masters-theme .aow-clan-settings-footer p {
  max-width:65ch;
  font-size:16px!important;
  color:#bad1d1;
}
body.aow-masters-theme .aow-clan-settings-footer .btn {min-height:49px;font-size:17px!important;white-space:normal;}
@media(max-width:1050px) {
  body.aow-masters-theme .aow-clan-settings-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:760px) {
  body.aow-masters-theme .aow-clan-settings-header {flex-wrap:wrap;}
  body.aow-masters-theme .aow-clan-settings-group {padding:14px;}
  body.aow-masters-theme .aow-clan-settings-footer {flex-direction:column;align-items:stretch;}
  body.aow-masters-theme .aow-clan-settings-footer .btn {width:100%;}
  body.aow-masters-theme .tournament-private-admin .private-approval-title {font-size:19px!important;max-width:none!important;}
  body.aow-masters-theme .tournament-private-admin .private-setting-help {font-size:18px!important;}
}
@media(max-width:480px) {
  body.aow-masters-theme .tournament-private-admin .private-approval-toggle {gap:10px!important;padding:13px 11px!important;}
  body.aow-masters-theme .tournament-private-admin .private-approval-title {font-size:17px!important;max-width:none!important;}
  body.aow-masters-theme .tournament-private-admin .private-switch-control {gap:6px;}
  body.aow-masters-theme .registration-section .aow-registration-switch-row {padding:12px!important;gap:10px!important;}
  body.aow-masters-theme .registration-section .aow-registration-switch-copy strong {font-size:18px!important;}
  body.aow-masters-theme .registration-section .aow-registration-switch-copy small {font-size:17px!important;}
  body.aow-masters-theme .aow-clan-limit-group {grid-template-columns:1fr;}
  body.aow-masters-theme .aow-clan-settings-grid {grid-template-columns:1fr;}
  body.aow-masters-theme .aow-clan-score-tile {min-height:0;}
}

/* V11.27 — autosave confirmation instead of a manual Save Settings button. */
body.aow-masters-theme .tournament-private-admin .aow-auto-save-indicator {
  display:inline-flex;align-items:center;gap:10px;min-height:47px;
  padding:10px 15px;margin-top:11px;
  border:1px solid #416d74;border-radius:2px;background:#0d272b;
  font:800 16px/1.2 var(--aow-heading,inherit);letter-spacing:.05em;color:#b2e3df;
}
body.aow-masters-theme .tournament-private-admin .aow-save-pulse {
  width:10px;height:10px;flex:0 0 10px;background:#54cfa6;border-radius:50%;
  box-shadow:0 0 0 3px #124436;
}
body.aow-masters-theme .tournament-private-admin .aow-auto-save-indicator[data-state="saving"] .aow-save-pulse {background:#e7c873;box-shadow:0 0 0 3px #695327}
body.aow-masters-theme .tournament-private-admin .aow-auto-save-indicator[data-state="error"] {color:#ffc8c4;border-color:#a24e4e}
body.aow-masters-theme .tournament-private-admin .aow-auto-save-indicator[data-state="error"] .aow-save-pulse {background:#fb7773;box-shadow:0 0 0 3px #632b2d}
