/* ================= Follow-ups after a review (feos:views/follow-ups, feos:views/followup/*, docs/modules/follow-ups.md) === */
.feos-fu, .feos-fu-modal, .feos-fu-wa, .feos-fu-outcome, .feos-fu-panel, .feos-wa-me {
    --fu-navy: #0F2A44; --fu-gold: #F2B544; --fu-ink: #0f1b26; --fu-muted: #5b6876; --fu-line: #e1e7ee;
    --fu-soft: #f4f7fa; --fu-wa: #1f9d55; --fu-wa-dark: #17804a; --fu-red: #a3271b; --fu-red-soft: #fde6e4;
    --fu-green-soft: #e6f4ec; --fu-amber-soft: #fff4d6;
    font-family: "Nunito Sans", system-ui, sans-serif;
}

.feos-fu { max-width: 1240px; margin: 0 auto; padding: 4px 0 24px; color: var(--fu-ink); }
.feos-fu-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.feos-fu-head h2 { margin: 0 0 2px; font-weight: 800; color: var(--fu-navy); }
.feos-fu-lede { margin: 0; color: var(--fu-muted); }
.feos-fu-whose, .feos-fu-adviser, .feos-fu-lang { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 600;
    font-size: 12.5px; color: var(--fu-muted); white-space: nowrap; }
.feos-fu-whose select, .feos-fu-adviser select, .feos-fu-lang select { min-width: 160px; width: auto; }

/* the counts */
.feos-fu-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.feos-fu-tile { background: var(--fu-navy); color: #fff; border-radius: 12px; padding: 12px 14px; display: flex;
    flex-direction: column; gap: 2px; border-bottom: 3px solid transparent; }
.feos-fu-tile b { font-size: 26px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.feos-fu-tile span { font-size: 12.5px; opacity: .85; }
.feos-fu-tile.warn { border-bottom-color: var(--fu-gold); }
.feos-fu-tile.warn b { color: var(--fu-gold); }
.feos-fu-tile.good b { color: #8fe3b0; }

/* filters and chips */
.feos-fu-filters { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.feos-fu-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.feos-fu-chip { border: 1px solid var(--fu-line); background: #fff; color: var(--fu-ink); border-radius: 999px; padding: 3px 11px;
    font-size: 12.5px; font-weight: 600; line-height: 1.5; cursor: pointer; white-space: nowrap; }
span.feos-fu-chip { cursor: default; }
.feos-fu-chip i { font-style: normal; font-weight: 800; color: var(--fu-muted); margin-left: 2px; }
.feos-fu-chip.on { background: var(--fu-navy); border-color: var(--fu-navy); color: #fff; }
.feos-fu-chip.on i { color: var(--fu-gold); }
span.feos-fu-chip.on { background: #e8eef5; border-color: #e8eef5; color: var(--fu-navy); }
.feos-fu-chip .feos-fu-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--fu-gold);
    vertical-align: middle; margin-left: 3px; }

/* the cards */
.feos-fu-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
.feos-fu-card { background: #fff; border: 1px solid var(--fu-line); border-radius: 14px; padding: 14px 14px 12px; display: flex;
    flex-direction: column; gap: 9px; border-left: 4px solid var(--fu-navy); box-shadow: 0 1px 2px rgba(15,42,68,.05); min-width: 0; }
.feos-fu-card.is-late { border-left-color: var(--fu-red); }
.feos-fu-card header { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.feos-fu-who { min-width: 0; }
.feos-fu-name { font-size: 16px; font-weight: 800; color: var(--fu-navy); }
.feos-fu-meta { font-size: 12.5px; color: var(--fu-muted); margin-top: 1px; }
.feos-fu-due { font-size: 12px; font-weight: 700; white-space: nowrap; color: var(--fu-muted); background: var(--fu-soft);
    border-radius: 999px; padding: 2px 9px; }
.feos-fu-due.late { color: var(--fu-red); background: var(--fu-red-soft); }
.feos-fu-pol { font-size: 12.5px; color: var(--fu-muted); }
.feos-fu-pol .fas { color: var(--fu-gold); }
.feos-fu-note { font-size: 13px; background: var(--fu-amber-soft); border-radius: 8px; padding: 6px 9px; color: #5c4400; }
.feos-fu-by { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--fu-muted); }
.feos-fu-by b { color: var(--fu-ink); }
.feos-fu-waiting { color: var(--fu-wa-dark); font-weight: 600; }
.feos-fu-card footer { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: auto; padding-top: 4px;
    border-top: 1px solid var(--fu-line); padding-top: 9px; }
.feos-fu-task { margin-left: auto; font-size: 12px; color: var(--fu-muted); }
.feos-fu-empty { grid-column: 1 / -1; text-align: center; color: var(--fu-muted); padding: 40px 12px; border: 1px dashed var(--fu-line);
    border-radius: 14px; }
.feos-fu-empty .far { display: block; font-size: 28px; margin-bottom: 8px; color: var(--fu-gold); }
.feos-fu-stop { background: var(--fu-red-soft); color: var(--fu-red); border-radius: 8px; padding: 7px 10px; font-weight: 600; font-size: 13px; }

/* the green WhatsApp button */
.btn.feos-fu-btn-wa { background: var(--fu-wa); border-color: var(--fu-wa); color: #fff; font-weight: 700; }
.btn.feos-fu-btn-wa:hover, .btn.feos-fu-btn-wa:focus { background: var(--fu-wa-dark); border-color: var(--fu-wa-dark); color: #fff; }
.btn.feos-fu-btn-wa[disabled] { opacity: .45; }

/* the WhatsApp window and the outcome window */
.feos-fu-wa-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.feos-fu-wa-to { font-size: 15px; }
.feos-fu-wa-to .fab { color: var(--fu-wa); }
.feos-fu-label { font-weight: 700; margin: 10px 0 6px; color: var(--fu-navy); }
.feos-fu-label small { font-weight: 400; color: var(--fu-muted); }
.feos-fu-reset { float: right; font-weight: 600; font-size: 12px; }
.feos-fu-text { font-size: 14px; line-height: 1.5; resize: vertical; }
.feos-fu-hint { font-size: 12px; color: var(--fu-muted); margin-top: 5px; }
.feos-fu-wa-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.feos-fu-sent { margin-top: 14px; background: var(--fu-green-soft); color: var(--fu-wa-dark); border-radius: 8px; padding: 9px 11px; font-weight: 600; }
.feos-fu-outcomes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.feos-fu-radios { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.feos-fu-radio { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; border: 1px solid var(--fu-line);
    border-radius: 10px; padding: 8px 10px; cursor: pointer; margin: 0; }
.feos-fu-radio:has(input:checked) { border-color: var(--fu-navy); background: #f2f6fa; }
.feos-fu-radio span { display: flex; flex-direction: column; }
.feos-fu-radio small { color: var(--fu-muted); }

/* the task's side panel */
.feos-fu-panel { display: flex; flex-direction: column; gap: 8px; }
.feos-fu-kv { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; }
.feos-fu-kv span { color: var(--fu-muted); }
.feos-fu-panel-acts { display: flex; gap: 6px; flex-wrap: wrap; }

/* My profile → WhatsApp messages (feos:my-wa-templates) */
.feos-wa-me .feos-wa-speak { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; padding: 10px 12px; margin-bottom: 10px; border: 1px solid var(--fu-line); border-radius: 8px; }
.feos-wa-me .feos-wa-speak label { margin: 0; font-weight: 600; display: inline-flex; gap: 5px; align-items: center; }
.feos-wa-me .feos-wa-ph { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 12px; }
.feos-wa-me .feos-wa-langs { display: inline-flex; border: 1px solid var(--fu-line); border-radius: 999px; overflow: hidden; margin-bottom: 12px; }
.feos-wa-me .feos-wa-langs button { border: 0; background: #fff; padding: 5px 14px; font-weight: 700; color: var(--fu-muted); }
.feos-wa-me .feos-wa-langs button.on { background: var(--fu-navy); color: #fff; }
.feos-wa-me .feos-wa-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.feos-wa-me .feos-wa-piece { margin-bottom: 12px; }
.feos-wa-me .feos-wa-piece label { display: flex; justify-content: space-between; gap: 8px; font-weight: 700; color: var(--fu-navy); margin-bottom: 4px; }
.feos-wa-me .feos-wa-piece label a { font-weight: 600; font-size: 12px; }
.feos-wa-me .feos-wa-piece textarea { font-size: 13px; resize: vertical; }
.feos-wa-me .feos-wa-piece.own textarea { border-color: var(--fu-gold); }
.feos-wa-me .feos-wa-own { font-size: 11px; font-weight: 700; color: #7a5a00; background: var(--fu-amber-soft); border-radius: 999px; padding: 0 7px; }
.feos-wa-me .feos-wa-preview { position: sticky; top: 12px; background: #e9f7ee; border-radius: 12px; padding: 12px; }
.feos-wa-me .feos-wa-bubble { background: #fff; border-radius: 10px; padding: 10px 12px; white-space: pre-wrap; font-size: 13.5px;
    box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.feos-wa-me .feos-wa-save { position: sticky; bottom: 0; background: #fff; padding: 10px 0; display: flex; gap: 10px; align-items: center; }

@media (max-width: 900px) {
    .feos-fu-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .feos-wa-me .feos-wa-grid { grid-template-columns: 1fr; }
    .feos-wa-me .feos-wa-preview { position: static; }
}
@media (max-width: 560px) {
    .feos-fu-cards { grid-template-columns: 1fr; }
    .feos-fu-filters { flex-direction: column; align-items: stretch; }
    .feos-fu-adviser select, .feos-fu-whose select { flex: 1; min-width: 0; }
    .feos-fu-tile b { font-size: 22px; }
}
