/* Task Helper — REVIEW BEFORE SEND (NOTE-REVIEW R2, lane TASK HELPER EMAIL). Copyright Rapid Surveys Pty Ltd. Namespace erv-; the page's tokens. */
.erv { display: flex; flex-direction: column; gap: 10px; }
.erv-sugs { display: flex; flex-wrap: wrap; gap: 6px; }
.erv-sug { position: relative; display: inline-flex; align-items: stretch; border: 1px solid var(--line, #d0d7de); border-radius: 999px; overflow: visible; }
.erv-sug button { font: inherit; font-size: 13px; background: transparent; border: 0; color: inherit; min-height: 36px; padding: 0 10px; cursor: pointer; }
.erv-sug .erv-sug-more { border-left: 1px solid var(--line, #d0d7de); padding: 0 8px; }
.erv-sug-on { border-color: var(--accent, #2f6df6); }
.erv-sug-empty { display: inline-flex; align-items: center; min-height: 36px; padding: 0 10px; border: 1px dashed var(--line, #d0d7de); border-radius: 999px; color: var(--muted, #667); font-size: 13px; }
.erv-menu { position: absolute; top: 100%; right: 0; z-index: 5; display: flex; flex-direction: column; min-width: 96px; background: var(--card, #fff); border: 1px solid var(--line, #d0d7de); border-radius: 10px; box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.erv-menu button { min-height: 40px; text-align: left; }
.erv-row { display: grid; grid-template-columns: 44px 1fr; gap: 4px 8px; align-items: start; }
.erv-rl { font-weight: 700; font-size: 13px; padding-top: 8px; color: var(--muted, #667); }
.erv-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; min-height: 36px; align-items: center; }
.erv-chip { display: inline-flex; align-items: center; gap: 2px; background: var(--chip, #eef2f7); border-radius: 999px; padding-left: 10px; font-size: 13px; max-width: 100%; }
.erv-chip-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.erv-x { font: inherit; background: transparent; border: 0; min-width: 36px; min-height: 36px; cursor: pointer; color: var(--muted, #667); }
.erv-add { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px; }
.erv-add select, .erv-add input { font: inherit; font-size: 14px; min-height: 40px; flex: 1 1 160px; min-width: 0; }
/* EMTO: the person picker on its own line, then the typed box full width + Add — the same in To · CC · BCC */
.erv .erv-add select.erv-pick { flex: 1 1 100%; width: 100%; }
.erv .erv-add input.erv-typed { flex: 1 1 auto; width: auto; }
.erv .erv-add .erv-addb { flex: none; width: auto; min-height: 40px; }
.erv-note { grid-column: 2; margin: 0; font-size: 12px; color: var(--muted, #667); }
.erv-share { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; }
.erv-count { margin: 0; font-size: 13px; color: var(--muted, #667); }
.erv-back { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-start; justify-content: center; padding: 16px; background: rgba(15, 20, 30, .45); overflow-y: auto; }
.erv-dlg { width: min(560px, 100%); background: var(--card, #fff); color: var(--text, #1b2430); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.erv-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.erv-head h3 { margin: 0; font-size: 18px; }
.erv-close { font: inherit; background: transparent; border: 0; min-width: 44px; min-height: 44px; cursor: pointer; }
.erv-prev { white-space: pre-wrap; font-size: 13px; background: var(--chip, #eef2f7); border-radius: 10px; padding: 10px; max-height: 240px; overflow: auto; }
.erv-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.erv-btns button { min-height: 44px; }
@media (max-width: 400px) { .erv-row { grid-template-columns: 1fr; } .erv-add, .erv-note { grid-column: 1; } .erv-rl { padding-top: 0; } }
/* the page's global button / input rules must not swell the module's small controls */
.erv .erv-sug button { padding: 0 10px; width: auto; white-space: nowrap; border-radius: 0; box-shadow: none; }
.erv .erv-chip { flex: 0 1 auto; }
.erv .erv-chip-l { min-width: 0; max-width: 240px; }
.erv .erv-x { padding: 0; width: 36px; min-width: 36px; flex: none; box-shadow: none; }
.erv .erv-share input { width: auto; flex: none; margin: 0; min-height: 0; }
.erv .erv-share { justify-content: flex-start; text-align: left; }
.erv-menu button { padding: 0 14px; width: auto; border: 0; background: transparent; color: inherit; font: inherit; box-shadow: none; }
/* R5: open()'s intro line + note box */
.erv-intro { margin: 0; font-size: 14px; color: var(--muted, #667); }
.erv-notel { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 700; color: var(--muted, #667); }
.erv-notel textarea { font: inherit; font-size: 14px; font-weight: 400; min-height: 72px; width: 100%; box-sizing: border-box; }
/* the page's global button rules must not swell the sheet's ✕ (R5 shots: a wide empty box at 360) */
.erv-head .erv-close { flex: none; width: 44px; min-width: 44px; padding: 0; border: 0; background: transparent; box-shadow: none; color: inherit; font-size: 18px; line-height: 1; }
/* R6: "Always told" — fixed lines nobody can remove */
.erv-fixed { display: flex; flex-direction: column; gap: 4px; }
.erv-fixed .erv-rl { padding-top: 0; }
.erv-chip-fixed { padding-right: 10px; min-height: 36px; }
