/* NUUMA 2.5.1 · Cabecera del expediente: una sola franja baja con los datos
   del paciente a la izquierda y la ruta esperada a la derecha. */
.expedient { container: expd / inline-size; }
.exp-overview {
  display: grid;
  grid-template-columns: minmax(330px, 390px) minmax(0, 1fr);
  border: 1px solid rgba(27,45,65,.1);
  border-radius: 20px;
  box-shadow: 0 12px 32px -24px rgba(27,45,65,.25);
  margin-bottom: 22px;
}
.exp-overview .exp-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  padding: 24px 26px;
  background: linear-gradient(150deg, #213b52, #142231);
  color: #fff;
  border: 0;
  min-width: 0;
}
.exp-overview .exp-main > * { min-width: 0; }
.exp-overview .exp-id { align-items: center; gap: 14px; }
.exp-overview .avatar-lg {
  width: 38px; height: 38px; flex: 0 0 38px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px;
  color: #fff; font-size: 16px;
}
.exp-overview .exp-id-txt h2 { margin: 0; color: #fff; font-size: 15.5px; line-height: 1.35; font-weight: 500; overflow-wrap: break-word; }
.exp-overview .exp-meta-row { flex-wrap: nowrap; gap: 7px; margin-top: 11px; color: #cfdae4; font-size: 10px; }
.exp-overview .exp-meta-row > span { flex: none; white-space: nowrap; padding: 3px 8px; border: 1px solid rgba(255,255,255,.13); border-radius: 6px; line-height: 1.45; }
.exp-overview .exp-meta-row .exp-week { background: rgba(112,187,224,.13); border-color: rgba(112,187,224,.25); color: #cce9f6; }
.exp-overview .exp-meta-row .is-warn { color: #ffca98; }
.exp-overview .exp-hero { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px 12px; margin: 0; padding: 0; }
.exp-overview .exp-weight-label { flex-basis: 100%; font-size: 10px; color: #b5c9d9; }
.exp-overview .exp-weight-value { display: flex; align-items: baseline; gap: 4px; }
.exp-overview .exp-hero-num { font-size: 26px; line-height: 1.15; font-weight: 400; color: #fff; }
.exp-overview .exp-weight-unit { font-size: 12px; color: #b5c9d9; }
.exp-overview .exp-hero-sub { color: #b7dbc6; font-size: 10.5px; line-height: 1.4; }
.exp-overview .exp-progress { margin: 2px 0 0; }
.exp-overview .exp-progress-bar { height: 5px; background: rgba(255,255,255,.12); }
.exp-overview .exp-progress-bar span { background: linear-gradient(90deg, #70bbe0, #8abc9e); min-width: 0; }
.exp-overview .exp-progress-scale { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 14px; color: #b5c9d9; font-size: 9.5px; line-height: 1.35; }
.exp-overview .exp-progress-scale > span:nth-child(2) { text-align: center; }
.exp-overview .exp-progress-scale > span:last-child { text-align: right; }
.exp-overview .exp-progress-scale strong { display: block; margin-top: 6px; color: #fff; font-size: 11.5px; font-weight: 500; }
.exp-overview .consideraciones {
  margin: 0; padding: 9px 12px; border: 1px solid rgba(243,161,89,.2); border-radius: 9px;
  background: rgba(243,161,89,.08); color: #f5d6b8; font-size: 10.5px; line-height: 1.55; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Ruta esperada dentro de la franja: encabezado y cifras en una línea,
   trazado bajo y apaisado. */
.exp-overview .exp-graph { display: flex; flex-direction: column; justify-content: center; padding: 14px 20px 10px; background: #fff; min-width: 0; container-type: inline-size; }
.exp-overview .ruta {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "head" "plot" "legend";
  align-items: center;
  gap: 8px;
}
.exp-overview .ruta-head { grid-area: head; margin: 0; flex-direction: row; flex-wrap: nowrap; align-items: center; justify-content: flex-start; gap: 10px; }
.exp-overview .ruta-head h3 { margin: 0; font-size: 13.5px; font-weight: 500; }
.exp-overview .ruta-head p { font-size: 10.5px; line-height: 1.4; }
.exp-overview .ruta-status { padding: 3px 8px; font-size: 10.5px; }
.exp-overview .ruta-plot2 { grid-area: plot; margin: 0; }
.exp-overview .ruta-plot2 svg { max-width: none; }
.exp-overview .ruta-linea { stroke-width: 2.6px; }
.exp-overview .ruta-borde { opacity: .5; }
.exp-overview .ruta-axisln { opacity: .65; }
.exp-overview .ruta-legend { grid-area: legend; margin: 0; justify-content: flex-start; gap: 4px 16px; }
.exp-overview .ruta-legend span { font-size: 10px; gap: 6px; }
/* Versión baja (apaisada) en la franja; la estándar solo en espacios muy angostos. */
.exp-overview :is(.ruta-svg-wide, .ruta-svg-mid) :is(.ruta-yl, .ruta-xl) { font-size: 14px; }
.exp-overview :is(.ruta-svg-wide, .ruta-svg-mid) .ruta-y-title { font-size: 11px; }
.ruta-plot2.is-responsive :is(.ruta-svg-mid, .ruta-svg-std) { display: none; }
@container (max-width: 860px) {
  .exp-overview .ruta-svg-wide :is(.ruta-yl, .ruta-xl) { font-size: 16px; }
  .exp-overview .ruta-svg-wide .ruta-y-title { font-size: 12px; }
}
@container (max-width: 600px) {
  .ruta-plot2.is-responsive .ruta-svg-wide { display: none; }
  .ruta-plot2.is-responsive .ruta-svg-mid { display: block; }
}
@container (max-width: 460px) {
  .ruta-plot2.is-responsive :is(.ruta-svg-wide, .ruta-svg-mid) { display: none; }
  .ruta-plot2.is-responsive .ruta-svg-std { display: block; }
  .exp-overview .ruta-svg-std .ruta-yl,
  .exp-overview .ruta-svg-std .ruta-xl { font-size: 20px; }
  .exp-overview .ruta-svg-std .ruta-y-title { font-size: 16px; }
  .exp-overview .ruta-head { flex-wrap: wrap; justify-content: space-between; }
}
/* Celular angosto: etiquetas un poco más compactas para que sigan en una fila. */
@container expd (max-width: 380px) {
  .exp-overview .exp-meta-row { gap: 5px; font-size: 9px; }
  .exp-overview .exp-meta-row > span { padding: 2px 6px; }
}
@container expd (max-width: 300px) {
  .exp-overview .exp-meta-row { flex-wrap: wrap; }
}
/* Expediente angosto: datos arriba en una línea, gráfica debajo. */
@container expd (max-width: 860px) {
  .exp-overview { grid-template-columns: minmax(0, 1fr); }
  .exp-overview .exp-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 22px 28px; padding: 22px 24px; }
  .exp-overview .exp-progress { grid-column: 1 / -1; margin: 0; }
  .exp-overview .consideraciones { grid-column: 1 / -1; }
}
@container expd (max-width: 520px) {
  /* Etiquetas en una sola fila, a todo el ancho bajo el avatar y el nombre. */
  .exp-overview .exp-id { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px 14px; }
  .exp-overview .exp-id-txt { display: contents; }
  .exp-overview .exp-meta-row { grid-column: 1 / -1; margin-top: 0; }
  .exp-overview { border-radius: 16px; }
  .exp-overview .exp-main { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 22px 20px; }
  .exp-overview .exp-graph { padding: 18px 18px 14px; }
}

/* Eje de peso con intervalos uniformes y cifras discretas. */
.ruta-plot2 .ruta-yl { font-family: 'Poppins', sans-serif; font-size: 10px; font-weight: 400; font-variant-numeric: tabular-nums; fill: #718291; }
.ruta-plot2 .ruta-y-title { font-family: 'Poppins', sans-serif; font-size: 8px; font-weight: 500; fill: #718291; }
.ruta-plot2 .ruta-grid { stroke: #eaf0f3; }
.ruta-plot2 .ruta-axisln { stroke: #dce5eb; }

/* Nota compartida entre la evaluación médica y la nutricional. */
.nuuma-story-form .nutrition-handoff { padding: 16px 18px; margin: 0 0 20px; border: 1px solid #cee1d6; border-left: 3px solid var(--teal); border-radius: 12px; background: #f2f8f4; color: var(--ink); overflow-wrap: anywhere; }
.nuuma-story-form .nutrition-handoff > strong { display: block; color: var(--teal); font-size: 13px; font-weight: 500; }
.nuuma-story-form .nutrition-handoff > p { margin: 8px 0 0; font-size: 13px; line-height: 1.7; }
.nuuma-story-form .nutrition-note label { display: block; }

/* Bioimpedancia: siete mediciones y revisión del informe disponible. */
.nuuma-story-form .bio-intro { margin: -3px 0 14px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.nuuma-story-form .bio-import-actions, .nuuma-story-form .bio-review-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.nuuma-story-form .bio-import-actions .btn, .nuuma-story-form .bio-review-actions .btn { min-width: 0; white-space: normal; font-size: 12px; padding: 10px 14px; }
.nuuma-story-form .bio-status { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.nuuma-story-form .bio-status[data-state="error"] { color: #a44836; }
.nuuma-story-form .bio-fields { margin-top: 20px; align-items: stretch; }
.nuuma-story-form .bio-fields > label { display: flex; flex-direction: column; min-width: 0; }
.nuuma-story-form .bio-fields > label > span { flex: 1; margin-bottom: 7px; }
.nuuma-story-form .bio-review { margin-top: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); }
.nuuma-story-form .bio-review h4 { margin: 0 0 14px; font-size: 14px; font-weight: 500; }
.nuuma-story-form .bio-review-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; align-items: stretch; }
.nuuma-story-form .bio-review-metric { display: flex; flex-direction: column; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.nuuma-story-form label.bio-review-label { display: flex; flex-direction: row; align-items: flex-start; gap: 8px; margin: 0 0 10px; min-width: 0; }
.nuuma-story-form .bio-review-label input { flex: 0 0 16px; width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--teal); }
.nuuma-story-form .bio-review-label > span { margin: 0; font-size: 12px; font-weight: 500; color: var(--ink); line-height: 1.5; }
.nuuma-story-form .bio-review-value { display: flex; align-items: center; gap: 8px; min-width: 0; }
.nuuma-story-form .bio-review-value input { flex: 1 1 0; width: 0; min-width: 0; min-height: 44px; padding: 9px 10px; font-size: 18px; font-variant-numeric: tabular-nums; font-weight: 500; }
.nuuma-story-form .bio-unit { flex-shrink: 0; color: var(--muted); font-size: 11px; }
.nuuma-story-form .bio-warning { margin: 9px 0 0; font-size: 11px; line-height: 1.5; color: #806038; overflow-wrap: anywhere; }
.nuuma-story-form .bio-review-actions { margin-top: 16px; }
.nuuma-story-form .bio-review:not([hidden]) ~ .bio-fields { display: none; }
@media (max-width: 560px) {
  .nuuma-story-form .bio-review { padding: 12px; }
  .nuuma-story-form .bio-review-grid { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .nuuma-story-form .bio-import-actions .btn, .nuuma-story-form .bio-review-actions .btn { flex: 1 1 150px; justify-content: center; }
  .nuuma-story-form .nutrition-handoff { padding: 14px; }
}
@container nwiz (max-width: 540px) {
  .nuuma-story-form .bio-review-grid { grid-template-columns: minmax(0,1fr); }
  .nuuma-story-form .bio-import-actions .btn, .nuuma-story-form .bio-review-actions .btn { flex: 1 1 150px; justify-content: center; }
}

.clinical-draft-status {
  display: flex; align-items: center; gap: 9px; padding: 11px 14px;
  margin: 0 0 18px; background: #f3f7f5; border: 1px solid #dce9e2;
  border-radius: 12px; color: #496854; font-size: 12px; line-height: 1.5;
}
.clinical-draft-status .icon { flex-shrink: 0; }
/* v2.7.4: en Seguimiento el aviso quedaba pegado al historial de cambios de arriba. */
.followup-form > .clinical-draft-status { margin-top: 18px; }
.clinical-draft-status[data-state="saving"],
.clinical-draft-status[data-state="pending"] { background: #f0f6fa; border-color: #d6e5ee; color: #46687d; }
.clinical-draft-status[data-state="error"] { background: #fff4f1; border-color: #eed3cd; color: #a44836; }
[data-clinical-draft] .wizard-forward { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-left: auto; min-width: 0; }
[data-clinical-draft] .clinical-draft-save { background: #fff; border: 1px solid #c9d9d2; color: #38604a; gap: 7px; }
[data-clinical-draft] .clinical-draft-save:hover { background: #edf5ef; border-color: #8abc9e; }
.clinical-draft-save svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.clinical-draft-save:disabled { opacity: .65; cursor: progress; }
[data-clinical-draft] .wizard-forward .btn { font-size: 12px; padding: 10px 15px; white-space: normal; }

/* v2.5.0 · Ruta: estado de hoy y peso registrado */
.ruta-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; }
.ruta-status { flex: none; padding: 5px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 500; line-height: 1.3; background: #eef4f8; color: #1b2d41; }
.ruta-status.is-good, .ruta-today .is-good dd { color: #3f7a57; }
.ruta-status.is-good { background: #e9f4ee; }
.ruta-status.is-warn, .ruta-today .is-warn dd { color: #b4692a; }
.ruta-status.is-warn { background: #fdf1e6; }
.ruta-status.is-ok { background: #e8f3f9; color: #2f6f8f; }
.ruta-today { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 8px; border: 1px solid rgba(27,45,65,.08); border-radius: 12px; overflow: hidden; }
.ruta-today > div { min-width: 0; padding: 10px 12px; border-right: 1px solid rgba(27,45,65,.08); }
.ruta-today > div:last-child { border-right: 0; }
.ruta-today dt { font-size: 10.5px; line-height: 1.4; color: var(--muted); }
.ruta-today dd { margin: 5px 0 0; font-size: 14px; line-height: 1.3; font-weight: 500; color: var(--ink); }
.ruta-real { fill: none; stroke: #8abc9e; stroke-width: 2px; stroke-dasharray: 1 0; stroke-linejoin: round; }
.ruta-real-pt { fill: #8abc9e; stroke: #fff; stroke-width: 1.5; }
.ruta-legend .l-real { height: 8px; width: 8px; border-radius: 50%; background: #8abc9e; box-shadow: 8px 0 0 -2px #8abc9e, -8px 0 0 -2px #8abc9e; margin: 0 8px; }
@media (max-width: 560px) {
  .ruta-today { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ruta-today > div:nth-child(2) { border-right: 0; }
  .ruta-today > div:nth-child(-n+2) { border-bottom: 1px solid rgba(27,45,65,.08); }
}

@media (max-width: 560px) {
  [data-clinical-draft] .wizard-forward { width: 100%; display: grid; grid-template-columns: auto minmax(0,1fr); margin: 0; }
  [data-clinical-draft] .wizard-forward .btn { justify-content: center; font-size: 12px; padding: 10px 12px; }
  .clinical-draft-status { font-size: 11px; padding: 10px 12px; }
}
@container nwiz (max-width: 600px) {
  [data-clinical-draft] .wizard-forward { width: 100%; display: grid; grid-template-columns: auto minmax(0,1fr); margin: 0; }
}

/* Evaluación médica · objetivos con selección múltiple. */
.nuuma-story-form .therapeutic-objectives { min-width: 0; border: 0; margin: 0; padding: 0; }
.nuuma-story-form .therapeutic-objectives > legend { padding: 0; margin-bottom: 9px; color: var(--muted); font-size: 12px; }

/* Antropometría inicial y seguimiento · indicadores compactos. */
.nuuma-story-form .anthro-circumferences { margin-top: 18px; }
:is(.nuuma-story-form, .followup-form) .computed-row.anthro-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
  padding: 0;
  margin: 22px 0 0;
  background: transparent;
  border-radius: 0;
}
:is(.nuuma-story-form, .followup-form) .anthro-metric {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
}
:is(.nuuma-story-form, .followup-form) .anthro-metric-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
:is(.nuuma-story-form, .followup-form) .anthro-metric-reading {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 10px;
}
:is(.nuuma-story-form, .followup-form) .anthro-metric output {
  display: block;
  color: var(--ink);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
:is(.nuuma-story-form, .followup-form) .anthro-metric-unit {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
:is(.nuuma-story-form, .followup-form) .anthro-metric-classification {
  background: rgba(112,187,224,.1);
  border-color: rgba(112,187,224,.3);
}
:is(.nuuma-story-form, .followup-form) .anthro-metric-classification output {
  font-size: 18px;
  line-height: 1.45;
}
.followup-form .computed-row.anthro-summary.followup-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 4px 0 0;
}
.followup-form .ib-add { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.followup-form .ib-add .dictate-wrap { min-width: 0; }
@media (max-width: 640px) {
  .followup-form .ib-add { grid-template-columns: minmax(0, 1fr); }
  .followup-form .ib-add > .btn { width: 100%; justify-content: center; }
  :is(.nuuma-story-form, .followup-form) .computed-row.anthro-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
  :is(.nuuma-story-form, .followup-form) .anthro-metric { padding: 14px; }
  :is(.nuuma-story-form, .followup-form) .anthro-metric-classification { grid-column: 1 / -1; }
}
@container nwiz (max-width: 600px) {
  .followup-form .ib-add { grid-template-columns: minmax(0, 1fr); }
  .followup-form .ib-add > .btn { width: 100%; justify-content: center; }
  :is(.nuuma-story-form, .followup-form) .computed-row.anthro-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
  :is(.nuuma-story-form, .followup-form) .anthro-metric { padding: 14px; }
  :is(.nuuma-story-form, .followup-form) .anthro-metric-classification { grid-column: 1 / -1; }
}

/* Importación y revisión del informe de composición corporal. */
.nuuma-story-form .composition-intro { margin: -4px 0 16px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.nuuma-story-form .composition-upload-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
.nuuma-story-form .composition-upload { width: auto; margin: 0; color: var(--ink); border: 1px solid var(--line); background: var(--white); padding: 10px 15px; font-size: 12px; white-space: normal; }
.nuuma-story-form .composition-upload:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.nuuma-story-form .composition-native-file { position: static; opacity: 1; width: 100%; min-width: 0; max-width: 100%; font-size: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.nuuma-story-form .composition-upload-row.is-dragging { outline: 2px dashed var(--teal); outline-offset: 8px; border-radius: 8px; }
.nuuma-story-form .composition-upload-row > small { color: var(--muted); font-size: 11px; line-height: 1.5; }
.nuuma-story-form .composition-progress { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.nuuma-story-form .composition-progress progress { flex: 1 1 160px; max-width: 100%; height: 7px; accent-color: var(--teal); }
.nuuma-story-form .composition-progress .btn { font-size: 11px; padding: 7px 10px; }
.nuuma-story-form .composition-status { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.nuuma-story-form .composition-status:empty { display: none; }
.nuuma-story-form .composition-status[data-state="error"] { color: #a44836; }
.nuuma-story-form .composition-fields { margin-top: 20px; }
.nuuma-story-form .composition-review:not([hidden]) ~ .composition-fields { display: none; }
.nuuma-story-form .composition-review { margin-top: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); }
.nuuma-story-form .composition-review h4 { margin: 0 0 6px; font-size: 14px; font-weight: 500; }
.nuuma-story-form .composition-review > p { margin: 0 0 14px; font-size: 12px; color: var(--muted); line-height: 1.6; }
.nuuma-story-form .composition-preview-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(130px,.6fr); gap: 6px 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.nuuma-story-form label.composition-preview-label { display: flex; flex-direction: row; align-items: center; gap: 9px; margin: 0; min-width: 0; }
.nuuma-story-form label.composition-preview-label > span { margin: 0; color: var(--ink); font-size: 12px; line-height: 1.5; }
.nuuma-story-form .composition-preview-label input[type="checkbox"] { flex: 0 0 17px; width: 17px; height: 17px; }
.nuuma-story-form label.composition-preview-value { display: flex; flex-direction: row; align-items: center; gap: 8px; margin: 0; min-width: 0; }
.nuuma-story-form .composition-preview-value input { min-width: 0; width: 100%; }
.nuuma-story-form label.composition-preview-value > span { flex: 0 0 20px; margin: 0; font-size: 11px; color: var(--muted); }
.nuuma-story-form .composition-current, .nuuma-story-form .composition-warning { grid-column: 1 / -1; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.nuuma-story-form .composition-current { color: var(--muted); }
.nuuma-story-form .composition-warning { color: #8a5a2b; }
.nuuma-story-form .composition-review-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.nuuma-story-form .composition-review-actions .btn { font-size: 12px; white-space: normal; }
.nuuma-story-form .composition-source { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.nuuma-story-form .composition-source > span { color: var(--muted); font-size: 11px; }
.nuuma-story-form .composition-source > a { min-width: 0; max-width: 100%; font-size: 12px; white-space: normal; overflow-wrap: anywhere; text-align: left; }
.nuuma-story-form [data-body-composition] [hidden] { display: none; }
@media (max-width: 640px) {
  .nuuma-story-form .composition-review { padding: 12px; }
  .nuuma-story-form .composition-preview-row { grid-template-columns: minmax(0,1fr); gap: 8px; }
  .nuuma-story-form .composition-review-actions { flex-direction: column; align-items: stretch; }
}
@container nwiz (max-width: 600px) {
  .nuuma-story-form .composition-review { padding: 12px; }
  .nuuma-story-form .composition-preview-row { grid-template-columns: minmax(0,1fr); gap: 8px; }
  .nuuma-story-form .composition-review-actions { flex-direction: column; align-items: stretch; }
}
/* v2.6.7 · Eliminar informe y datos de Antropometría / Laboratorio. */
.section-clear-row { display:flex; align-items:center; flex-wrap:wrap; gap:6px 12px; margin-top:14px; padding-top:12px; border-top:1px dashed #e2e8e4; }
.section-clear-row small { color:#5d6a79; font-size:12px; line-height:1.45; }
.section-clear-row .section-clear { color:#923c38; border-color:#ecd3d1; }
.section-clear-row .section-clear:hover { background:#fbf1f0; }
.section-clear-row .section-clear:disabled { opacity:.6; }
.nuuma-story-form .bioimpedance-card .bio-intro { margin:0 0 6px; }
