/* Greg's Wrap-up (board/wrapup.js), rebuilt as the design's WrapUpPage (design replica, Oct 23, 2026): its page header,
   progress card, split layout, wrap rows, choice grid and buttons are the shared .ds-* pieces in styles.css. This file
   holds only the Hub's own extras on it: the bar as a <progress> (no inline widths), the hours and crew steppers, the
   problems, the stock rows, the summary's help line and the crew's notes, and Send greyed out until all is answered.
   Loaded after styles.css, so a rule here wins over the same rule there. Colours only from the tokens in styles.css. */

/* ---------- The progress card's bar: a <progress> drawn as the design's track ---------- */
progress.ds-progress-track { display: block; width: 100%; border: 0; color: var(--accent); -webkit-appearance: none; appearance: none; }
progress.ds-progress-track::-webkit-progress-bar { border-radius: 999px; background: var(--surface-2); }
progress.ds-progress-track::-webkit-progress-value { border-radius: 999px; background: var(--accent); transition: width 250ms ease; }
progress.ds-progress-track::-moz-progress-bar { border-radius: 999px; background: var(--accent); }
.ds-progress-card[hidden] { display: none; }

/* ---------- The list: the name with its Late badge; the add-a-job fold at its foot ---------- */
.ds-wrap-row { color: var(--text); font: inherit; }
.ds-wrap-row strong { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.ds-wrap-row .ds-record-icon .ic { width: 20px; height: 20px; }
.ds-list-card .ds-empty-state { min-height: 200px; border: 0; }
.wu-add { margin: 8px 4px 4px; border: 0; background: none; }
.wu-add > .more-s { min-height: 44px; padding: 0 8px; }
.wu-add select { width: 100%; min-height: 48px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: 11px; background: var(--field); color: var(--text); }

/* ---------- The card: the task line ---------- */
.wu-task { display: flex; align-items: center; gap: 8px; margin-bottom: 0; }
.wu-task .ib { margin-left: auto; }
.wu-detail > .ds-button-row:first-of-type { margin-top: 0; }

/* Fields in the design's look: the small label over the control. */
.wu .wu-field, .wu .wu-sum { gap: 8px; margin: 14px 0; }
.wu .field > label.ds-field-label { margin: 0; font: 600 .78rem/1.3 var(--rt-body); color: var(--text-3); }
.wu .wu-field input { min-height: 46px; border: 1px solid var(--border-strong); border-radius: 11px; background: var(--field); }
.wu-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.wu-two .wu-field { margin: 14px 0 0; }
.wu-step { display: flex; align-items: center; gap: 6px; }
.wu-sb { flex: none; width: 46px; height: 46px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface-2); color: var(--text); font: 600 1.25rem/1 var(--rt-body); cursor: pointer; }
.wu .wu-step input { flex: 1; min-width: 0; padding: 0 4px; text-align: center; font: 700 1.25rem/1 var(--rt-body); }
.wu-slow { margin-top: 0; }
/* Save this job, or Saved once the Hub has the job's answers. */
.wu-jobsave { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 16px 0 4px; }
.wu-jobsave .ds-muted { font-size: .8125rem; }
.wu-slow .ds-button { min-height: 38px; padding: 0 14px; }

/* Errors and the photo reminder. */
.wu .msg-err { font-size: .875rem; }
.wu .photo-remind { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 14px; }

/* ---------- Anything damaged or missing?: the plants, when Yes ---------- */
.wu-stock .stockrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.wu-stock .stockrow .full { grid-column: 1 / -1; }
.wu-stock .stockrow .wu-rm { display: flex; justify-content: flex-end; }
.wu-stock .field label, .wu-stock .field > .lab { font: 600 .78rem/1.3 var(--rt-body); color: var(--text-3); }
.wu-stock .field input { min-height: 44px; padding: 8px 12px; border: 1px solid var(--border-strong); border-radius: 11px; background: var(--field); }
.seg.wu-what { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; border: 0; border-radius: 0; background: none; }
.seg.wu-what button { min-height: 38px; padding: 0 14px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface-2); color: var(--text); font: 600 .8125rem/1.2 var(--rt-body); }
.seg.wu-what button .ic { display: none; }
.seg.wu-what button[aria-pressed="true"] { border-color: transparent; background: var(--accent); color: var(--on-cta); }
.wu-stock > .ds-button--ghost { margin-top: 8px; padding-inline: 4px; }
.wu-stock > .ds-button--ghost .ic { width: 16px; height: 16px; }

/* ---------- Today's summary: where its words came from, then what the crew wrote ---------- */
.wu-help { margin: 0; font-size: .78rem; }
.wu .wu-crew { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface-2); overflow-wrap: anywhere; }
.wu .wu-crew > .lab { font: 600 .74rem/1.3 var(--rt-body); color: var(--text-3); }
.wu .wu-crew p { margin: 0; color: var(--text); font-size: .875rem; white-space: pre-wrap; }

/* ---------- Send: the card's last button; greyed out (the design's disabled look) until all is answered ---------- */
.wu-sendbar { display: flex; flex-direction: column; gap: 8px; }
/* Greyed until all is answered, but still readable (an opacity fade fell below the 4.5:1 text contrast). */
#wu-send.is-waiting { border-color: var(--border-strong); background: var(--surface-2); color: var(--text-2); }
/* The box in the label's type, as the design draws it (its textarea sits inside the label there). */
.wu .wu-sum textarea, .wu .wu-field textarea { font: 600 .78rem/1.5 var(--rt-body); }
