.performance-review-page,
.performance-exercise-editor {
  width: 100%;
}

.performance-review-title,
.performance-editor-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin: 24px 0 28px;
}

.performance-review-title h2,
.performance-editor-heading h2 {
  margin: 5px 0 7px;
}

.performance-review-title p,
.performance-editor-heading p {
  margin: 0;
  opacity: 0.68;
}

.performance-review-toolbar {
  display: grid;
  grid-template-columns:
    minmax(220px, 1fr)
    repeat(3, minmax(150px, 190px));
  gap: 10px;
  margin-bottom: 18px;
}

.performance-review-toolbar input,
.performance-review-toolbar select,
.performance-editor-field input,
.performance-editor-field textarea,
.performance-editor-field select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.035);
  color: inherit;
  font: inherit;
}

.performance-review-page-summary {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.82rem;
  opacity: 0.7;
}

.performance-review-catalogue {
  display: grid;
  gap: 9px;
}

.performance-review-catalogue-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.018);
}

.performance-review-open {
  display: block;
  width: 100%;
  border: 0;
  padding: 18px 20px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.performance-review-open:hover {
  background: rgba(117, 88, 255, 0.045);
}

.performance-review-card-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.performance-review-card-heading h3 {
  margin: 4px 0 8px;
}

.performance-review-open p {
  max-width: 850px;
  margin: 0;
  line-height: 1.45;
  opacity: 0.66;
}

.performance-review-card-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}

.performance-review-card-facts span {
  padding: 5px 8px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.72rem;
  opacity: 0.75;
}

.performance-review-open-label {
  display: inline-block;
  margin-top: 13px;
  font-size: 0.78rem;
  font-weight: 800;
  opacity: 0.8;
}

.performance-review-no-results {
  padding: 48px 24px;
  border: 1px dashed rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  text-align: center;
}

.performance-editor-form {
  display: grid;
  gap: 18px;
  max-width: 1050px;
}

.performance-editor-field {
  display: grid;
  gap: 7px;
}

.performance-editor-field > span {
  font-size: 0.78rem;
  font-weight: 800;
}

.performance-editor-field small {
  opacity: 0.55;
}

.performance-editor-field textarea {
  resize: vertical;
  line-height: 1.5;
}

.performance-editor-two-column {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.performance-editor-prescription {
  margin-top: 6px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
}

.performance-editor-prescription h3 {
  margin: 5px 0 18px;
}

.performance-editor-number-grid {
  display: grid;
  grid-template-columns:
    repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.performance-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 10px;
}

.performance-editor-actions button {
  min-height: 42px;
}

.performance-editor-message {
  min-height: 24px;
  font-size: 0.85rem;
  font-weight: 700;
}

@media (max-width: 900px) {
  .performance-review-toolbar {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .performance-editor-number-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .performance-review-toolbar,
  .performance-editor-two-column {
    grid-template-columns: 1fr;
  }

  .performance-review-title,
  .performance-editor-heading {
    flex-direction: column;
  }
}
.performance-exercise-editor {
  position: relative;
  padding-bottom: 48px;
}

.performance-editor-heading {
  position: relative;
  z-index: 1;
}

.performance-editor-form {
  position: relative;
  z-index: 1;
}

.performance-review-video-status.has-video {
  border: 1px solid rgba(72, 214, 164, 0.18);
  background: rgba(72, 214, 164, 0.08);
}

.performance-review-video-status.no-video {
  border: 1px solid rgba(255, 191, 84, 0.15);
  background: rgba(255, 191, 84, 0.06);
}

.performance-video-preview {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.018);
}

.performance-video-empty {
  min-height: 150px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px;
}

.performance-video-empty-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(117, 88, 255, 0.1);
  font-weight: 900;
}

.performance-video-empty strong {
  display: block;
  margin-bottom: 5px;
}

.performance-video-empty p {
  max-width: 570px;
  margin: 0;
  line-height: 1.5;
  opacity: 0.6;
}

.performance-video-empty.is-invalid {
  border-color: rgba(255, 191, 84, 0.15);
}

.performance-video-ready {
  padding: 18px;
}

.performance-video-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.performance-video-heading strong {
  display: block;
  margin-top: 4px;
}

.performance-video-ready-badge {
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.performance-video-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
}

.performance-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}