/* Follow-up: the due-now queue as calm cards on paper. Each person carries a
   step rail (first reply, then each call), one volt next action (the call),
   coral only for overdue, and one-click outcomes. Shared chips, avatars and
   the rail live in the comms block at the end of styles.css. */
.follow-up { width: 100%; max-width: 1180px; margin: 0 auto; padding-bottom: 48px; color: var(--cx-ink); font-size: var(--fs-md); line-height: 1.55; }
.follow-up h3 { font-size: var(--fs-xl); line-height: 1.25; letter-spacing: -0.02em; margin: 0 0 16px; }
.follow-up h4 { font-size: var(--fs-lg); letter-spacing: -0.01em; margin: 28px 0 12px; }
.follow-up h5 { font-size: var(--fs-md); margin: 0 0 8px; }
.fu-heading { margin-bottom: 8px; }
.fu-heading p { margin: 0; color: var(--cx-muted); font-size: var(--fs-md); }
.fu-help, .fu-item small { color: var(--cx-muted); }
.fu-help { font-size: var(--fs-sm); max-width: 72ch; }
.follow-up .btn, .follow-up .select { min-height: 40px; height: auto; white-space: normal; }
.follow-up .btn { gap: 6px; padding: 0 14px; font-weight: 550; transition: transform var(--cx-dur) var(--cx-ease), background var(--cx-dur) var(--cx-ease), border-color var(--cx-dur) var(--cx-ease); }
.follow-up .btn:active { transform: scale(0.98); }
.follow-up .field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.follow-up .field-label { font: inherit; color: var(--cx-muted); font-size: var(--fs-xs); font-weight: 500; letter-spacing: normal; text-transform: none; }
.fu-reload { color: var(--cx-ink); }
.fu-feedback { min-height: 22px; margin: 12px 0; font-size: var(--fs-sm); overflow-wrap: anywhere; }
.fu-feedback:empty { min-height: 0; margin: 4px 0; }
.fu-feedback.is-error { color: var(--cx-coral-text); }
.fu-notice { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 18px; margin: 16px 0; background: var(--cx-card); border: 1px solid var(--cx-line); border-radius: 14px; box-shadow: var(--cx-shadow-card); }
.fu-notice > .cm-icon { width: 18px; height: 18px; }
.fu-notice p { margin: 0; }
.fu-paused > .cm-icon { padding: 7px; width: 32px; height: 32px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--cx-ink); }
.fu-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 20px; margin: 20px 0 18px; }
.fu-office { min-width: 240px; }
.fu-total { margin: 0 0 10px auto; color: var(--cx-ink); font-size: var(--fs-sm); font-weight: 600; font-variant-numeric: tabular-nums; }

/* The queue: one calm card per person. */
.fu-list { list-style: none; display: grid; gap: 14px; padding: 0; margin: 0; }
.fu-item {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); grid-template-areas: "who who" "rail state" "acts acts";
  gap: 18px 36px; padding: 20px 22px; align-items: start;
  background: var(--cx-card); border: 1px solid var(--cx-line); border-radius: var(--cx-r-card); box-shadow: var(--cx-shadow-card);
  transition: transform var(--cx-dur) var(--cx-ease), box-shadow var(--cx-dur) var(--cx-ease);
}
.fu-who {
  grid-area: who; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; column-gap: 14px; row-gap: 2px; align-items: center; min-width: 0; overflow-wrap: anywhere;
}
.fu-who > .cm-avatar { grid-column: 1; grid-row: 1 / span 3; align-self: start; }
.fu-name { grid-column: 2; grid-row: 1; font-size: var(--fs-lg); font-weight: 650; letter-spacing: -0.015em; line-height: 1.3; }
.fu-who > small { grid-column: 2; grid-row: 2; font-size: var(--fs-sm); }
.fu-who > .fu-call, .fu-who > .fu-call-none { grid-column: 3; grid-row: 1 / span 2; justify-self: end; }
.fu-who > .fu-owner { grid-column: 2; grid-row: 3; }
.fu-who > .fu-owner-actions { grid-column: 3; grid-row: 3; justify-self: end; }
.fu-who > .fu-owner-actions:has(select) { grid-column: 2 / -1; grid-row: 4; justify-self: start; }
.fu-phone { font-variant-numeric: tabular-nums; }
/* The one volt action per person: call them. */
.fu-call {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px 0 12px; border-radius: 999px;
  background: var(--cx-volt); color: var(--cx-volt-ink); box-shadow: inset 0 0 0 1px var(--cx-volt-edge);
  font-weight: 600; white-space: nowrap; text-decoration: none;
  transition: transform var(--cx-dur) var(--cx-ease), box-shadow var(--cx-dur) var(--cx-ease);
}
.fu-call:hover { color: var(--cx-volt-ink); text-decoration: none; box-shadow: inset 0 0 0 1px var(--cx-volt-edge), 0 8px 18px -10px rgba(31, 42, 0, 0.55); transform: translateY(-1px); }
.fu-call:active { transform: scale(0.98); }
.fu-call .cm-icon { width: 16px; height: 16px; }
.fu-call-number { font-weight: 500; font-variant-numeric: tabular-nums; opacity: 0.86; }
.fu-call-none { font-size: var(--fs-sm); }
.fu-owner { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--cx-ink); font-size: var(--fs-sm); }
.fu-owner.is-queue { color: var(--cx-muted); }
.fu-owner.is-you { font-weight: 600; }
.fu-owner-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.fu-owner-actions .btn { min-height: 32px; font-size: var(--fs-xs); }
.fu-owner-actions .select { min-width: 160px; }

.fu-item > .fu-rail { grid-area: rail; align-self: center; padding: 14px 16px 12px; border-radius: 14px; background: var(--cx-card-2); box-shadow: inset 0 0 0 1px var(--cx-line); }
.fu-state { grid-area: state; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0; overflow-wrap: anywhere; }
.fu-count { font-size: var(--fs-md); font-weight: 650; font-variant-numeric: tabular-nums; }
.fu-late, .fu-ok { display: inline-flex; align-items: center; min-height: 24px; padding: 2px 10px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 500; }
.fu-late { background: var(--cx-coral-soft); color: var(--cx-coral-text); }
.fu-ok { background: var(--cx-paper-2); color: var(--cx-ink); }
.fu-again {
  display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 3px 11px; margin-bottom: 2px; border-radius: 999px;
  background: var(--cx-coral-text); color: var(--danger-on, #FFFFFF); font-size: var(--fs-xs); font-weight: 600;
}
.fu-next, .fu-last { font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }
.fu-next.is-due { color: var(--cx-coral-text); font-weight: 600; }
.fu-actions { grid-area: acts; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 16px; border-top: 1px solid var(--cx-line); }
.fu-outcome { background: var(--cx-card); border-color: var(--cx-line-strong); color: var(--cx-ink); }
.fu-outcome:hover { background: var(--cx-paper-2); border-color: var(--cx-ink); }
.fu-empty {
  display: flex; align-items: center; gap: 14px; padding: 22px 24px; margin: 0; border-radius: var(--cx-r-card);
  background: var(--cx-card); border: 1px solid var(--cx-line); box-shadow: var(--cx-shadow-card); color: var(--cx-muted);
}
.fu-empty::before { content: ""; flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; background: var(--cx-volt); box-shadow: 0 0 0 5px var(--cx-volt-soft), 0 0 0 6px var(--cx-volt-edge); }
.fu-footnote { margin: 18px 4px 0; }

/* Setup and approval (admins). */
.fu-admin { margin-top: 40px; padding: 24px; background: var(--cx-card); border: 1px solid var(--cx-line); border-radius: var(--cx-r-card); box-shadow: var(--cx-shadow-card); }
.fu-admin > .kicker { margin-bottom: 4px; }
.fu-ready { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 10px; margin: 0 0 18px; }
.fu-ready > div { min-width: 0; padding: 12px 14px; border-radius: 12px; background: var(--cx-card-2); box-shadow: inset 0 0 0 1px var(--cx-line); overflow-wrap: anywhere; }
.fu-ready dt { color: var(--cx-muted); font-size: var(--fs-xs); font-weight: 500; }
.fu-ready dd { margin: 2px 0 0; color: var(--cx-ink); font-size: var(--fs-sm); }
.fu-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 16px 0; }
.fu-controls p { margin: 0; }
.fu-table-wrap { max-width: 100%; overflow-x: auto; }
.fu-offices, .fu-metrics { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.fu-offices th, .fu-offices td, .fu-metrics th, .fu-metrics td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--cx-line, var(--border-faint)); vertical-align: top; }
.fu-offices thead th, .fu-metrics thead th { color: var(--cx-muted, var(--text-3)); font-family: inherit; font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0; text-transform: none; }
.fu-offices tbody th, .fu-metrics tbody th { font-weight: 600; }
.fu-templates { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 12px; }
.fu-template { min-width: 0; padding: 16px 18px; border-radius: 14px; background: var(--cx-card); box-shadow: inset 0 0 0 1px var(--cx-line-strong); }
.fu-template.is-approved { box-shadow: inset 0 0 0 1px var(--cx-line); background: var(--cx-card-2); }
.fu-empty .btn { margin-left: auto; }
.fu-template h5 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; text-transform: capitalize; }
.fu-template h5 .chip { margin-left: auto; text-transform: none; }
.fu-template-icon { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--cx-brand-soft); color: var(--cx-ink); }
.fu-template-icon .cm-icon { width: 14px; height: 14px; }
.fu-template p { margin: 6px 0 0; }
.fu-copy { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--cx-muted); font-size: var(--fs-sm); }
.fu-preview-tools { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; margin: 20px 0; }
.fu-plan { margin-top: 8px; }
.fu-plan-steps { position: relative; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.fu-plan-steps::before { content: ""; position: absolute; top: 14px; bottom: 14px; left: 13px; width: 2px; border-radius: 2px; background: var(--cx-line-strong); }
.fu-plan-step { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; align-items: start; }
.fu-plan-node { position: relative; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--cx-card); color: var(--cx-muted); box-shadow: inset 0 0 0 1.5px var(--cx-line-strong); }
.fu-plan-node .cm-icon { width: 14px; height: 14px; }
.fu-plan-step.is-send .fu-plan-node { color: var(--cx-ink); box-shadow: inset 0 0 0 1.5px var(--cx-ink); }
.fu-plan-step.is-call .fu-plan-node { background: var(--cx-ink); color: var(--cx-card); box-shadow: none; }
.fu-plan-body { min-width: 0; padding-top: 3px; }
.fu-plan-body > p { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; }
.fu-bubble { margin-top: 10px; padding: 12px 16px; max-width: 64ch; border-radius: 16px 16px 16px 6px; background: var(--cx-card-2); box-shadow: inset 0 0 0 1px var(--cx-line); }
.fu-bubble p { margin: 0; }
.fu-bubble p + p { margin-top: 4px; }
.fu-queue { padding-left: 20px; }
.fu-check { display: flex; align-items: center; gap: 12px; min-height: 44px; margin: 16px 0; cursor: pointer; }
.fu-check input { width: 20px; height: 20px; accent-color: var(--cx-ink); }
.fu-stops { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.fu-stops li { display: grid; gap: 8px; padding: 14px 16px; border-radius: 12px; background: var(--cx-card-2); box-shadow: inset 0 0 0 1px var(--cx-line); }
.fu-stops p { margin: 0; }
.fu-stops .btn { justify-self: start; }
.follow-up :focus-visible { outline: 2px solid var(--cx-volt); outline-offset: 2px; box-shadow: 0 0 0 2px var(--cx-ink); }
.fu-off { border-color: var(--cx-line-strong); }
.fu-off p { margin: 0; }
.fu-off p + p { margin-top: 4px; color: var(--cx-muted); }
.fu-scopes { display: inline-flex; flex-wrap: wrap; gap: 3px; padding: 3px; border-radius: 999px; background: var(--cx-paper-2); }
.fu-scopes .btn { min-height: 34px; border: 0; border-radius: 999px; background: transparent; color: var(--cx-muted); font-size: var(--fs-sm); font-weight: 500; }
.fu-scopes .btn:hover { color: var(--cx-ink); background: color-mix(in srgb, var(--cx-card) 60%, transparent); }
.fu-scopes .btn.is-active { background: var(--cx-card); border-color: transparent; color: var(--cx-ink); font-weight: 600; box-shadow: 0 1px 2px rgba(11, 13, 18, 0.08), 0 4px 10px -6px rgba(11, 13, 18, 0.18); }

@media (max-width: 1000px) {
  .fu-item { grid-template-columns: minmax(0, 1fr); grid-template-areas: "who" "rail" "state" "acts"; gap: 16px; }
  .fu-state { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
}
@media (max-width: 760px) {
  .fu-toolbar { align-items: stretch; }
  .fu-office { min-width: 0; width: 100%; }
  .fu-scopes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; border-radius: 14px; }
  .fu-scopes .btn { border-radius: 11px; padding: 0 8px; }
  .fu-total { margin: 0; }
  .fu-item { padding: 16px; }
  .fu-who { grid-template-columns: 44px minmax(0, 1fr); }
  .fu-who > .fu-call, .fu-who > .fu-call-none { grid-column: 1 / -1; grid-row: 4; justify-self: stretch; justify-content: center; margin-top: 14px; }
  .fu-who > .fu-owner-actions, .fu-who > .fu-owner-actions:has(select) { grid-column: 2; grid-row: 5; justify-self: start; }
  .fu-who > .fu-owner-actions:has(select) { grid-column: 1 / -1; }
  .fu-item > .fu-rail { padding: 12px 10px 10px; gap: 8px; }
  .fu-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .follow-up .btn, .follow-up .select, .fu-call, .fu-scopes .btn, .fu-owner-actions .btn { min-height: 44px; }
  .fu-offices, .fu-metrics { display: block; overflow-x: auto; }
  .fu-admin { padding: 18px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .fu-call, .follow-up .btn { transition: none; }
  .fu-call:hover { transform: none; }
}
.follow-up [tabindex="-1"]:focus { outline: none; box-shadow: none; }
