/* Next Best Set uses the actual V4 fields; there is no second editable form. */
.next-set { margin-block: 4px 6px; }
.next-set-top { display: flex; justify-content: space-between; gap: 12px; font: 10px/1.5 var(--font-technical); text-transform: uppercase; letter-spacing: .045em; color: var(--text-secondary); }
.next-set-top > span:first-child { color: var(--text-primary); }
.next-set-prescription { display: grid; grid-template-columns: .8fr 1fr 1.2fr; gap: 10px; margin: 8px 0 0; }
.next-set-prescription > div { border-left: 1px solid var(--border-subtle); padding-left: 12px; min-width: 0; }
.next-set-prescription > div:first-child { border: 0; padding: 0; }
.next-set-prescription dt { color: var(--text-secondary); font-size: 12px; margin-bottom: 4px; }
.next-set-prescription dd { margin: 0; color: var(--text-primary); font: 550 25px/1.15 var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: -.035em; }
.next-set-prescription dd small { font-size: 14px; color: var(--text-secondary); font-weight: 400; letter-spacing: 0; }
.next-set-prescription .next-set-reserve { font-size: 16px; line-height: 1.6; letter-spacing: -.015em; }
.next-set-scope { color: var(--text-secondary); font-size: 12px; margin: 8px 0; }
.next-set-target { margin: 8px 0 0; font-size: 13px; line-height: 1.5; color: var(--text-primary); }
.next-set-target span { display: block; color: var(--text-secondary); font-size: 12px; }
.next-set-guidance { font-size: 12px; line-height: 1.5; color: var(--text-secondary); margin: 6px 0 0; }
.next-set[data-state='safety'] { padding: 12px; border-left: 2px solid var(--signal-red); background: var(--surface-1); }
.next-set[data-state='safety'] .next-set-prescription { display: none; }
.next-set[data-state='safety'] .next-set-guidance { color: var(--text-primary); font-size: 14px; }
.next-set-input-label, .next-set-previous { display: none; }
/* Compact only while a visible workout is actually in focus mode. Home and
   the full editor retain their original header, spacing and navigation. */
body:has(#view-workout.active #builderCard.cockpit-mode:not(.cockpit-expanded):not([hidden])) > .top { min-height: 56px; padding-block: 6px; }
body:has(#view-workout.active #builderCard.cockpit-mode:not(.cockpit-expanded):not([hidden])) > .top .byke-brand > span { font-size: 30px; }
body:has(#view-workout.active #builderCard.cockpit-mode:not(.cockpit-expanded):not([hidden])) > .top .byke-brand > small { font-size: 12px; }
.cockpit-mode:not(.cockpit-expanded) { padding-top: 0; }
.cockpit-mode:not(.cockpit-expanded) .cockpit-progress { margin: 2px 0 6px; }
.byke-shell .cockpit-mode:not(.cockpit-expanded) .cockpit-name { margin: 4px 0; font-size: 29px; }
.cockpit-mode:not(.cockpit-expanded) .exercise { margin-bottom: 0; }
.cockpit-mode:not(.cockpit-expanded) .cockpit-cue { margin: 8px 0; font-size: 13px; line-height: 1.45; }
.cockpit-mode:not(.cockpit-expanded) .cockpit-set { display: none; }
.cockpit-mode:not(.cockpit-expanded) .cockpit-why { margin: 0; }
.cockpit-mode:not(.cockpit-expanded) .cockpit-why summary { padding-block: 8px; }
.cockpit-mode:not(.cockpit-expanded) .set-line.active-set { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 0 12px; padding-block: 8px 6px; margin-top: 0; }
.cockpit-mode:not(.cockpit-expanded) .active-set .set-number, .cockpit-mode:not(.cockpit-expanded) .active-set .x,
.cockpit-mode:not(.cockpit-expanded) .active-set .set-beat { display: none; }
.cockpit-mode:not(.cockpit-expanded) .active-set .next-set-input-label { display: block; color: var(--text-secondary); font-size: 12px; line-height: 1.4; padding: 10px 12px 0; background: var(--surface-1); }
.cockpit-mode:not(.cockpit-expanded) .active-set .next-set-weight-label { grid-column: 1; grid-row: 1; }
.cockpit-mode:not(.cockpit-expanded) .active-set .next-set-reps-label { grid-column: 2; grid-row: 1; }
.cockpit-mode:not(.cockpit-expanded) .active-set .s-weight { grid-column: 1; grid-row: 2; }
.cockpit-mode:not(.cockpit-expanded) .active-set .s-reps { grid-column: 2; grid-row: 2; }
.cockpit-mode:not(.cockpit-expanded) .active-set .s-reps, .cockpit-mode:not(.cockpit-expanded) .active-set .s-weight { background: var(--surface-1); border: 0; border-bottom: 1px solid var(--border-control); border-radius: 0; text-align: left; padding: 5px 12px 7px; min-height: 52px; font-size: 40px; }
.cockpit-mode:not(.cockpit-expanded) .active-set[data-unweighted='true'] .s-reps,
.cockpit-mode:not(.cockpit-expanded) .active-set[data-unweighted='true'] .next-set-reps-label { grid-column: 1 / -1; }
.cockpit-mode:not(.cockpit-expanded) .active-set[data-unweighted='true'] .next-set-weight-label { display: none; }
.cockpit-mode:not(.cockpit-expanded) .active-set .rir-controls { grid-column: 1 / -1; margin-top: 8px; }
.cockpit-mode:not(.cockpit-expanded) .active-set .next-set-previous { display: block; grid-column: 1 / -1; border-block: 1px solid var(--border-subtle); padding: 6px 0; margin-top: 8px; }
.next-set-previous > span { color: var(--text-secondary); font: 10px/1.5 var(--font-technical); text-transform: uppercase; letter-spacing: .05em; }
.next-set-previous p { font-size: 14px; line-height: 1.5; margin: 4px 0; }
.next-set-previous small { display: block; color: var(--text-secondary); font-size: 12px; line-height: 1.5; }
.cockpit-mode:not(.cockpit-expanded)[data-next-set-state='safety'] .active-set { display: none; }
.cockpit-mode:not(.cockpit-expanded) .active-set .set-details { grid-column: 1 / -1; margin-top: 0; }
@media (prefers-reduced-motion:reduce) { .next-set *, .next-set-previous * { animation: none !important; transition: none !important; } }
