.team-settings {
  width: min(502px,calc(100% - 24px)); max-height: calc(100dvh - 24px);
  padding: 0; border: 1px solid #a28d57; border-radius: 12px;
  background: #f4e7c8; color: #26372a; color-scheme: light;
  box-shadow: 0 15px 45px #100e0aba;
}
.team-settings::backdrop { background: #111c13b3; }
.team-settings > header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 18px; background: #304932; color: #fff0ca;
}
.team-settings header h2, .team-settings h3 { margin: 0; font-family: var(--serif,Georgia,serif); }
.team-settings button {
  width: fit-content; min-height: 36px; padding: 5px 10px;
  border: 1px solid #9e8a5c; border-radius: 6px; background: #fff2ce; color: #27392a; font-weight: 700;
}
.team-settings button:hover { background: #eaddb4; }
.team-content { display: grid; gap: 10px; padding: 15px 17px 5px; }
.team-content p { padding: 0; margin: 0; }
.team-settings .team-section { display: grid; gap: 8px; justify-content: stretch; justify-items: start; text-align: left; }
.team-field input[type="number"] { max-width: 130px; }
.team-section + .team-section { border-top: 1px solid #c7b68d; padding-top: 12px; }
.team-field { display: grid; gap: 4px; width: 100%; font-size: .84rem; font-weight: 730; }
.team-field input, .team-field select {
  width: 100%; padding: 7px 8px; min-height: 36px; border: 1px solid #a29465;
  border-radius: 5px; background: #fff5d9; color: #29392c; font: inherit;
}
.team-actions { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; }
.team-code { font-weight: 800; }
.team-people { margin: 0; padding: 0; list-style: none; }
.team-people li {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  border-bottom: 1px solid #c5b48c; padding: 5px 0;
}
.team-people button { min-height: 30px; font-size: .76rem; }
.team-settings p.team-feedback { padding: 8px 17px 15px; min-height: 26px; margin: 0; font-size: .88rem; }
.game-room-status { color: #ebd39c; font-size: .79rem; }
.match + .game-room-status, .room-lobby { margin-bottom: 12px; }
.room-lobby .team-actions > .field { width: min(268px,100%); }
.valley-nav select {
  min-height: 35px; border: 1px solid #81936a; border-radius: 6px; padding: 4px 7px;
  background: #293f2c; color: #f9eacc; font: inherit;
}
.studio-menu { position: relative; align-self: center; }
.studio-menu summary {
  padding: 8px; border-radius: 6px; color: #edd6a1; background: #294032; font-size: .88rem; font-weight: 730;
}
.studio-menu > div {
  position: absolute; z-index: 20; top: calc(100% + 4px); right: 0; min-width: max-content;
  display: grid; padding: 5px; border: 1px solid #887b53; border-radius: 7px; background: #25382f;
  box-shadow: 0 6px 15px #0005;
}
.studio-menu:not([open]) > div { display: none; }
.studio-menu button { text-align: left; }
