body[data-page="rehearsal"] {
  min-height: 100vh;
  background: #f5f7f1;
  color: #172421;
}

.rehearsal-header {
  min-height: 64px;
  padding: 10px clamp(14px, 3vw, 34px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #dfe4d9;
  background: #fffefa;
}

.workspace-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.workspace-nav a {
  color: #43544f;
  font-size: 13px;
  font-weight: 760;
  text-decoration: none;
}

.rehearsal-shell {
  width: min(1500px, calc(100vw - 24px));
  margin: 18px auto 36px;
  display: grid;
  gap: 14px;
}

.rehearsal-controls,
.role-grid article,
.notes-panel,
.pacing-panel,
.draft-player {
  border: 1px solid #dfe4d9;
  border-radius: 8px;
  background: #fffefa;
}

.rehearsal-controls {
  padding: 16px;
  display: grid;
  gap: 12px;
}

.rehearsal-controls h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 5vw, 54px);
  font-weight: 520;
  line-height: 1;
}

.rehearsal-status,
.simulation-label,
#notes-state {
  margin: 0;
  color: #61716b;
  font-size: 12px;
}

.simulation-label {
  color: #8a4934;
  font-weight: 760;
}

.control-row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
}

.control-row label {
  display: grid;
  gap: 5px;
  min-width: 190px;
  color: #52615c;
  font-size: 12px;
  font-weight: 760;
}

.control-row select,
.control-row input {
  border: 1px solid #cfd7cc;
  border-radius: 7px;
  padding: 9px 10px;
  background: #fbfcf7;
  color: #172421;
}

.role-grid {
  display: grid;
  grid-template-columns: 1.2fr .9fr .9fr;
  gap: 12px;
  min-height: 520px;
}

.role-grid article {
  min-width: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(360px, 1fr);
}

.role-grid header {
  min-height: 44px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #dfe4d9;
}

.role-grid header span {
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.role-grid header strong {
  border-radius: 999px;
  padding: 3px 7px;
  background: #eef3e9;
  color: #4c5e58;
  font-size: 10px;
  text-transform: uppercase;
}

.role-grid iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  background: white;
}

.rehearsal-bottom {
  display: grid;
  grid-template-columns: 1fr 320px 440px;
  gap: 12px;
}

.notes-panel,
.pacing-panel,
.draft-player {
  padding: 14px;
}

.notes-panel textarea {
  width: 100%;
  min-height: 220px;
  resize: vertical;
  border: 1px solid #cfd7cc;
  border-radius: 7px;
  padding: 10px;
  background: #fbfcf7;
}

.timer {
  margin: 8px 0 10px;
  font: 520 42px/1 Georgia, "Times New Roman", serif;
}

.pace-actions,
.draft-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pace-actions button,
.draft-actions button {
  border: 1px solid #cfd7cc;
  border-radius: 7px;
  padding: 8px 10px;
  background: #eef3e9;
  cursor: pointer;
  font-weight: 760;
}

#pace-beats {
  max-height: 178px;
  overflow: auto;
  margin: 12px 0 0;
  padding-left: 20px;
  color: #52615c;
  font-size: 12px;
}

.draft-board {
  min-height: 236px;
  border-radius: 8px;
  overflow: hidden;
  background: #17332f;
}

.draft-question {
  margin-top: 10px;
  color: #52615c;
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 1100px) {
  .role-grid,
  .rehearsal-bottom {
    grid-template-columns: 1fr;
  }

  .role-grid {
    min-height: 0;
  }
}

@media (max-width: 680px) {
  .rehearsal-header,
  .control-row {
    align-items: stretch;
    flex-direction: column;
  }

  .control-row label {
    min-width: 0;
  }
}
