/* Tournament studio: clear save semantics and focused setup guidance. */
#tournamentStudio .studio-save-state {
  display: block;
  max-width: 340px;
  font-size: 12px;
  line-height: 1.55;
  color: #cbc6c0;
  text-wrap: balance;
}
#tournamentStudio .studio-toolbar > div { align-items: center; }
#tournamentStudio .studio-footer { flex-wrap: wrap; }
#tournamentStudio .studio-footer > span {
  display: block;
  flex: 1 1 180px;
  font-size: 12px;
  line-height: 1.55;
  color: #bbb6b0;
}
#tournamentStudio .studio-footer-review > span {
  flex-basis: calc(100% - 110px);
  text-align: right;
}
#tournamentStudio .studio-footer-review .studio-save-private { margin-left: auto; }
#tournamentStudio .studio-save-private { border-color: #66513e; background: #211c17; }
#tournamentStudio .studio-format-preview {
  margin: 0 0 26px;
  padding: 20px;
  border: 1px solid #484036;
  border-radius: 10px;
  background: linear-gradient(125deg,#251d16,#171719 75%);
}
#tournamentStudio .studio-format-preview h3 {
  margin: 7px 0 0;
  font-size: 15px;
  line-height: 1.45;
}
#tournamentStudio .studio-format-preview ol {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 20px;
  margin: 21px 0 15px;
  padding: 0;
  list-style: none;
}
#tournamentStudio .studio-format-preview li { position: relative; min-width: 0; }
#tournamentStudio .studio-format-node {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 1px solid #9e673d;
  border-radius: 8px;
  background: #37271b;
  color: #ffc390;
  font-size: 12px;
  font-weight: 700;
}
#tournamentStudio .studio-format-preview strong { display: block; font-size: 12px; line-height: 1.5; margin-top: 9px; }
#tournamentStudio .studio-format-preview svg {
  position: absolute;
  top: 2px;
  left: calc(50% + 12px);
  width: 24px;
  height: 24px;
  stroke: #8b7b6e;
  stroke-width: 1.5;
  fill: none;
}
#tournamentStudio .studio-format-preview p { margin: 0; color: #bdb7b0; font-size: 12px; line-height: 1.65; }
#tournamentStudio .studio-zone-picker {
  padding: 18px;
  border: 1px solid #3e3935;
  border-radius: 9px;
  background: #141416;
}
#tournamentStudio .studio-zone-search { display: flex; gap: 12px; align-items: end; margin-bottom: 17px; }
#tournamentStudio .studio-zone-search label { flex: 1; min-width: 0; }
#tournamentStudio .studio-zone-search button { flex: 0 0 auto; min-height: 44px; }
#tournamentStudio .studio-zone-picker .field-hint { margin-bottom: 0; }
#tournamentStudio .studio-zone-matches { font-size: 12px; color: #d7c7b9; }
@media(max-width:680px) {
  #tournamentStudio .studio-toolbar { align-items: start; }
  #tournamentStudio .studio-toolbar > div { flex: 1; justify-content: flex-end; flex-wrap: wrap; }
  #tournamentStudio .studio-save-state { flex-basis: 100%; max-width: 260px; font-size: 12px; text-align: right; }
  #tournamentStudio .studio-format-preview { padding: 16px; }
  #tournamentStudio .studio-format-preview ol { gap: 12px; }
  #tournamentStudio .studio-format-preview strong { font-size: 12px; }
  #tournamentStudio .studio-format-preview svg { left: calc(50% + 4px); width: 20px; }
  #tournamentStudio .studio-zone-picker { padding: 14px; }
  #tournamentStudio .studio-zone-search { flex-wrap: wrap; }
  #tournamentStudio .studio-zone-search label { flex-basis: 100%; }
  #tournamentStudio .studio-zone-search button { margin: -9px 0 0 auto; }
  #tournamentStudio .studio-footer { gap: 12px; }
  #tournamentStudio .studio-footer > span { order: -1; flex-basis: 100%; text-align: left; }
  #tournamentStudio .studio-footer-review .studio-save-private { margin-left: 0; }
  #tournamentStudio .studio-footer-review .button { flex: 1 1 calc(50% - 12px); white-space: normal; }
  #tournamentStudio .studio-footer-review .primary { flex-basis: 100%; }
}
@media(prefers-reduced-motion:reduce) {
  #tournamentStudio * { scroll-behavior: auto; }
}
