/* Yoga uses text-only library rows. Photos appear in the guide and upload preview. */
.yoga-pose-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.yoga-pose-list .yoga-pose-row {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  margin: 0;
  padding: 14px 16px;
  text-align: left;
  color: var(--ink);
}

.yoga-pose-row strong {
  display: block;
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.yoga-flow,
.yoga-flow > *,
.yoga-editor .field,
.yoga-editor input,
.yoga-editor textarea,
.yoga-editor select {
  min-width: 0;
  max-width: 100%;
}

body[data-route="flow"] .page-title-row {
  display: block;
}

body[data-route="flow"] .page-title-row h1 {
  margin: 0;
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: anywhere;
}

.yoga-flow .yoga-guide-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 12px;
  margin: 0 0 18px;
}

.yoga-flow .yoga-pose-counter {
  position: static;
  max-width: 100%;
  line-height: 1.4;
  white-space: normal;
}

.yoga-flow .yoga-pose-title {
  position: static;
  display: block;
  width: 100%;
  margin: 0;
  font-size: 22px;
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: anywhere;
}

.yoga-flow .yoga-pose-notes {
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.yoga-flow .yoga-photo-large {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: contain;
}

.yoga-flow .yoga-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 12px;
}

.yoga-flow .yoga-controls > button {
  flex: 1 1 72px;
  min-width: 0;
  min-height: 44px;
  padding: 10px 8px;
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: anywhere;
}

.yoga-flow .yoga-discard {
  display: block;
  width: 100%;
  min-height: 44px;
  margin: 18px 0 0;
  padding: 10px 14px;
  border: 1px solid #b34d4d;
  border-radius: 10px;
  white-space: normal;
}

@media (max-width: 360px) {
  .yoga-flow .yoga-pose-title { font-size: 20px; }
  .yoga-resume { flex-wrap: wrap; }
  .yoga-resume > div { min-width: 0; overflow-wrap: anywhere; }
  .yoga-resume > button { width: 100%; }
  .yoga-editor .button-row { flex-wrap: wrap; }
  .yoga-editor .button-row > button { flex: 1 1 88px; min-width: 0; }
}
