/* Follow-ups (followups/). Loaded after styles.css, so a rule here wins over the same rule there. Colours only from the
   tokens in styles.css.
   The exact rebuild (Oct 23, 2026): the page is the design's /follow-ups, drawn from the shared .ds-* pieces in
   styles.css (.ds-page, .ds-page-header, .ds-card, .ds-followup-card, .ds-section-heading, .ds-compact-row,
   .ds-button-row, .ds-empty-state ...). This file holds only what the Hub has and the design doesn't: the lines between
   the card's heading and its words, the email's subject, Next up's rows as buttons, the two folds under the design
   (Customers and Sent lately) and the placeholder. */

/* ---------- Moved from styles.css (Oct 21, 2026): only this area draws these, so they load with it (js/screen-css.js). ---------- */
/* ---------- shared pieces (Hub polish, phase 1, Oct 11, 2026; parts.js and h.js draw them) ---------- */
.li-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.fu-under { margin-top: 0; }
.fu-under .fresh { font-size: .75rem; }
.fu-cust .fu-usual { margin: 0; font-size: .75rem; }
.fu-cust .fu-usual .lab { font: 600 .75rem/1.4 var(--rt-body); color: var(--text-2); }
.fu-none-t { font-size: .9375rem; color: var(--text-2); }
.fu-edit-s, .fu-edited { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; font-size: .75rem; line-height: 1.4; color: var(--text-3); }
/* A customer in follow-ups: compact, the three steps as bars. */
.fu-custs { display: flex; flex-direction: column; gap: 8px; }
.fu-c { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 14px; background: var(--surface); min-width: 0; }
.fu-c-t { flex: 1; min-width: 0; margin: 0; font: 700 .875rem/1.3 var(--rt-body); color: var(--text); overflow-wrap: anywhere; }
.fu-pill { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: var(--r-pill); background: var(--rt-attn-bg); color: var(--text); font: 700 .75rem/1.4 var(--rt-body); }
.fu-pill.dot-before::before { width: 6px; height: 6px; margin-right: 5px; }
.fu-c-b { display: inline-flex; align-items: center; gap: 4px; }
.fu-c-s { font-size: .75rem; line-height: 1.4; color: var(--text-3); overflow-wrap: anywhere; }
.fu-track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.fu-step { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fu-bar { height: 4px; border-radius: 2px; background: var(--muted-line); }
.fu-step.is-sent .fu-bar { background: var(--cta); }
.fu-step.is-wait .fu-bar { background: var(--alert); }
.fu-step-l { font-size: .75rem; line-height: 1.2; color: var(--text-3); }
.fu-step-v { min-height: 1.3em; font-size: .75rem; line-height: 1.3; color: var(--text-3); }
.fu-step.is-sent .fu-step-v, .fu-step.is-other .fu-step-v { color: var(--text-2); }
.fu-step-v.dot-before::before { margin-right: 0; vertical-align: .1em; }
.fu-c-note { padding: 8px 10px; border-radius: 10px; background: var(--surface-2); font-size: .75rem; line-height: 1.4; color: var(--text-2); }
/* Sent lately: a soft row each, the result at the right. */
.fu-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.fu-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface); }
.fu-row-w { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fu-row-w strong { font: 700 .875rem/1.3 var(--rt-body); }
.fu-row-s { font-size: .75rem; line-height: 1.35; color: var(--text-3); overflow-wrap: anywhere; }
.fu-st { flex: none; font: 700 .75rem/1 var(--rt-body); color: var(--text-3); }
/* ---------- end of the rules moved from styles.css ---------- */

/* ---------- Customers, a quieter list (a fold under the design) ---------- */
.fu-cust, .fu-recent { min-width: 0; }
.fu-c { gap: 8px; padding: 10px 16px; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--surface); }
.fu-c-h { flex-wrap: nowrap; gap: 6px; min-height: 40px; }
.fu-c-t { flex: 1 1 auto; font-size: 1rem; }
.fu-c-b { flex: none; gap: 0; margin-right: -6px; }
.fu-c .ib.fu-mini { width: 36px; height: 36px; }
.fu-c .ib.fu-mini .ic { width: 18px; height: 18px; }
.fu-c .ib.fu-rm { color: var(--rt-bad); }
.fu-c .ib.fu-mini[disabled] { opacity: .5; }
@media (pointer: coarse) { .fu-c .ib.fu-mini { width: 44px; height: 44px; } }
body.big-text .fu-c .ib.fu-mini { width: 48px; height: 48px; }
.fu-c-h .pill, .fu-c-h .fu-pill { flex: none; }
.fu-c-s { font-size: .8125rem; }
/* Each customer's row opens with a tap (trim pass, Oct 16, 2026). */
.fu-cd > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.fu-cd > summary::-webkit-details-marker { display: none; }
.fu-cd > summary .chev { flex: none; margin-left: auto; color: var(--text-3); transition: transform var(--t-press, .15s) var(--ease-out, ease-out); }
.fu-cd[open] > summary .chev { transform: rotate(180deg); }
.fu-cb { display: flex; flex-direction: column; gap: 10px; }
.fu-cbody { display: flex; flex-direction: column; gap: 8px; padding-top: 8px; position: relative; }
.fu-cbody > .fu-c-b { align-self: flex-end; }
.fu-c-n { flex: none; font-size: .8125rem; color: var(--text-2); }
.fu-cd > summary.fu-c-h { flex-wrap: wrap; row-gap: 0; }
.fu-cd > summary .fu-c-t { flex: 1 1 0; min-width: 6em; }
.fu-cd > summary .fu-c-n { flex: 0 0 100%; order: 5; margin-top: -2px; }
/* Inside the design's page its h3 and p rules would win (styles.css :is(.ds-page) h3, p): these keep the Hub's. */
.ds-page .fu-c-t { margin: 0; color: var(--text); }
.ds-page .fu-c-note, .ds-page .fu-none-t { color: var(--text-2); }

/* ---------- Sent lately: a fold ---------- */
.fu-recent .more { border-radius: var(--r-card); }
.fu-recent .more > .more-s { padding: 0 4px; }
.fu-recent .more-b { padding: 4px 0 8px; }
.fu-row { border: 1px solid var(--border); }

/* ---------- The design's page (the exact rebuild, Oct 23, 2026) ---------- */
/* The design's page gap (styles.css still says 14 px for this screen's old look). */
.screen.ds-page[data-screen="followups"] { gap: 22px; }
@media (max-width: 899px) { .screen.ds-page[data-screen="followups"] { gap: 16px; } }
.ds-followup-card h2 .namelink { text-decoration: none; }
/* What to know before approving, between the heading and the words: small lines and badges; the notes are the design's. */
.ds-followup-card > .fu-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 10px; }
.ds-followup-card > .fu-facts { margin: 0 0 4px; color: var(--text-3); font-size: .82rem; line-height: 1.45; overflow-wrap: anywhere; }
.ds-followup-card > .fu-facts.dot-before { color: var(--text); }
.ds-followup-card > .fu-note { margin: 10px 0 0; }
.ds-followup-card > .fu-note .fu-reply-open { min-height: 0; margin: 0; padding: 0; font-size: inherit; }
/* The words' box (styles.css :is(.ds-page) textarea and .ds-followup-card > textarea): as tall as the words, so a long
   email shows whole; the email's subject in a box like it, on one line. */
.ds-followup-card > textarea { display: block; margin-top: 12px; field-sizing: content; }
.ds-followup-card > .fu-subject { display: block; width: 100%; margin-top: 12px; padding: 11px 13px; border: 1px solid var(--border-strong); border-radius: 11px;
  outline: 0; background: var(--field); color: var(--text); font-weight: 600; }
.ds-followup-card > .fu-subject:focus { border-color: var(--accent); }
.ds-followup-card > .fu-subject + textarea { margin-top: 8px; }
.ds-followup-card > .fu-edited, .ds-followup-card > .fu-edit-s { margin: 8px 0 0; }
/* Next up: each row is a button that brings that message up (the design's compact-row, a button's own look taken off). */
.fu-next button.ds-compact-row { width: 100%; padding: 0; border: 0; border-top: 1px solid var(--ds-line); border-radius: 0; background: none; color: inherit;
  font: inherit; text-align: left; cursor: pointer; }
.fu-next button.ds-compact-row:hover strong { color: var(--link); }
.fu-next .ds-compact-row > div { min-width: 0; }
/* The two folds under the design (Customers, Sent lately). */
.ds-stack.fu-more { gap: 12px; }

/* No data yet (the Inbox rollout, Oct 21, 2026; js/followups/followups-skel.js): the real page's own boxes with soft
   bars in them, each the height of what comes, so nothing moves when the list swaps in. */
.sk.fu-skp-desc { display: inline-block; width: 12rem; height: .9rem; vertical-align: middle; }
.fu-skp-hw { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }
.sk.fu-skp-k { width: 7rem; height: .7rem; }
.sk.fu-skp-name { width: 40%; height: 1.2rem; }
.sk.fu-skp-line { width: 34%; height: .95rem; }
.sk.fu-skp-av { flex: none; width: 44px; height: 44px; border-radius: 50%; }
.fu-skp-msg { display: flex; flex-direction: column; gap: 10px; height: 150px; overflow: hidden; padding: 14px 13px; border: 1px solid var(--border-strong); border-radius: 11px; }
.sk.fu-skp-go { width: 200px; height: 42px; }
.sk.fu-skp-ed { width: 92px; height: 42px; }
.sk.fu-skp-ib { width: 40px; height: 40px; border-radius: 12px; }
.sk.fu-skp-h { width: 5rem; height: 1.1rem; }
.sk.fu-skp-n { width: 1rem; height: 1rem; }
.fu-skp-row > div { gap: 7px; }
.sk.fu-skp-t { height: .95rem; }
.sk.fu-skp-s { height: .7rem; }
.sk.fu-skp-st { flex: none; width: 90px; height: 32px; }
.fu-skp-fold { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 0 8px; }
.sk.fu-skp-ft { height: .9375rem; }
.sk.fu-skp-fn { width: 4.5rem; height: .75rem; }
