/* P13 — Feedback block styling.
 * Same restrained glass surface as the warm-up, cool-down and progression
 * blocks. No new palette: the accent stays amber, the "too hard" state reuses
 * the existing rose warning tone, inputs reuse the app's dark field look.
 */
.workout-feedback {
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  padding: 1rem 1rem 0.9rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(255, 173, 50, .16);
  background: linear-gradient(150deg, rgba(255, 173, 50, .06), rgba(255, 255, 255, .022));
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 10px 24px rgba(0, 0, 0, .14);
}

.workout-feedback-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.6rem;
}

.workout-feedback-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  flex: 0 0 auto;
  border-radius: 0.85rem;
  color: #ffad32;
  background: rgba(255, 173, 50, .13);
  border: 1px solid rgba(255, 173, 50, .28);
}

.workout-feedback h3 {
  font-size: 1rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.2;
}

.workout-feedback-subtitle {
  margin-top: 0.15rem;
  font-size: 0.72rem;
  line-height: 1.35;
  color: rgba(226, 232, 240, .74);
}

.workout-feedback-saved {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.6rem;
  padding: 0.4rem 0.6rem;
  border-radius: 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #86efac;
  background: rgba(134, 239, 172, .1);
  border: 1px solid rgba(134, 239, 172, .22);
}

.workout-feedback-chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.workout-feedback-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-height: 3.5rem;
  padding: 0.5rem 0.35rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .04);
  color: rgba(226, 232, 240, .85);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.workout-feedback-chip i { font-size: 0.95rem; }

.workout-feedback-chip:focus-visible {
  outline: 2px solid rgba(255, 173, 50, .7);
  outline-offset: 2px;
}

.workout-feedback-chip.is-active {
  border-color: rgba(255, 173, 50, .55);
  background: rgba(255, 173, 50, .14);
  color: #ffd08a;
}

.workout-feedback-chip.is-too_hard.is-active {
  border-color: rgba(251, 113, 133, .5);
  background: rgba(251, 113, 133, .14);
  color: #ffb4c1;
}

.workout-feedback-chip.is-too_easy.is-active {
  border-color: rgba(134, 239, 172, .45);
  background: rgba(134, 239, 172, .12);
  color: #a7f3d0;
}

.workout-feedback-live {
  margin: 0 0 0.6rem;
  font-size: 0.7rem;
  color: rgba(148, 163, 184, .9);
}

.workout-feedback-numbers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.workout-feedback-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.workout-feedback-field.is-wide { margin-bottom: 0.7rem; }

.workout-feedback-field > span {
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(148, 163, 184, .95);
}

.workout-feedback-field input,
.workout-feedback-field select,
.workout-feedback-field textarea {
  width: 100%;
  min-height: 2.6rem;
  padding: 0.45rem 0.55rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(190, 231, 235, .16);
  background: rgba(8, 17, 27, .55);
  color: #f1f5f9;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

.workout-feedback-field textarea {
  min-height: 3.4rem;
  resize: vertical;
}

.workout-feedback-field input:focus,
.workout-feedback-field select:focus,
.workout-feedback-field textarea:focus {
  outline: none;
  border-color: rgba(255, 173, 50, .6);
  box-shadow: 0 0 0 3px rgba(255, 173, 50, .12);
}

.workout-feedback-label {
  margin: 0 0 0.4rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, .95);
}

.workout-feedback-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0 0 0.45rem;
  padding: 0;
  list-style: none;
}

.workout-feedback-row {
  padding: 0.6rem 0.65rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, .07);
  background: rgba(255, 255, 255, .035);
}

.workout-feedback-row-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.3rem 0.5rem;
  margin-bottom: 0.45rem;
}

.workout-feedback-name {
  flex: 1 1 45%;
  min-width: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: #f1f5f9;
  overflow-wrap: anywhere;
}

.workout-feedback-planned {
  font-size: 0.74rem;
  font-weight: 800;
  color: #ffd08a;
  font-variant-numeric: tabular-nums;
}

.workout-feedback-status {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 800;
  color: rgba(148, 163, 184, .95);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .08);
}

.workout-feedback-status.is-done {
  color: #86efac;
  background: rgba(134, 239, 172, .1);
  border-color: rgba(134, 239, 172, .22);
}

.workout-feedback-inputs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
}

.workout-feedback-hint,
.workout-feedback-note {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  line-height: 1.35;
  color: rgba(148, 163, 184, .85);
}

.workout-feedback-note { margin: 0.55rem 0 0; }

.workout-feedback-save { margin-top: 0.2rem; }

@media (max-width: 420px) {
  .workout-feedback { padding: 0.85rem 0.8rem 0.75rem; }
  .workout-feedback-chip { font-size: 0.66rem; }
  .workout-feedback-inputs { gap: 0.3rem; }
  .workout-feedback-field input { font-size: 0.78rem; padding: 0.4rem 0.45rem; }
}

@media (prefers-reduced-motion: reduce) {
  .workout-feedback-chip { transition: none; }
}
