.player-input { display:flex; gap:.5rem }
.player-input input { flex:1; width:0; min-width:0; font-size:1rem }
.player-input button,.player-list button { background:#fff; color:#ca0010; border:1px solid #aaa; border-radius:4px; padding:.35rem .7rem; font:inherit; font-weight:650; cursor:pointer; min-height:44px }
.player-list { padding:0; margin:.5rem 0 0; list-style:none; display:grid; gap:.4rem }
.player-list:empty { display:none }
.player-list li { display:grid; grid-template-columns:40px minmax(0,1fr) auto auto; align-items:center; column-gap:.5rem; padding:.45rem; background:#fff; border:1px solid #ccc; border-radius:6px }
.player-portrait { position:relative; overflow:hidden; width:40px; height:40px; grid-row:span 2; display:grid; place-items:center; background:#fff; color:#333; border-radius:50%; font-weight:750 }
.player-portrait img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover }
.player-identity { grid-column:2; grid-row:1; display:flex; flex-wrap:wrap; align-items:baseline; gap:0 .4rem; overflow-wrap:anywhere; line-height:1.25 }
.player-list li>span { grid-column:2; grid-row:2; font-size:.76rem; color:#505050 }
.player-list li[data-state=found]>span { color:#216642 }
.player-list li[data-state=missing] { border-color:#e60012 }
.player-list button { grid-row:1 / span 2; font-size:.82rem }
.player-list button:last-child { grid-column:4; min-width:44px; font-size:1.2rem; background:transparent; border:0 }
#player-editor [role=status] { font-size:.85rem; color:#555 }
.player-announcement { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap }

#race-create {
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
}
#race-create .dates {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: .75rem;
}
#race-create .dates label {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .3rem;
}
#race-create input[type="date"] {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  font-size: 1rem;
}
#race-create :is(input, textarea)::placeholder {
  color: #767676;
  opacity: 1;
  font-weight: 400;
  font-style: italic;
}

#race-create .dates > label { min-width: 0; }
#race-create .date-field {
  display: block;
  position: relative;
  min-width: 0;
  height: 2.875rem;
}
#race-create .date-field input {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  height: 100%;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
}
#race-create input::-webkit-date-and-time-value { text-align: start; }
@media (max-width: 540px) {
  #race-create .dates { grid-template-columns: minmax(0, 1fr); }
}
