.retention-panel { margin: 1.25rem 0; padding: 1.25rem; border: 1px solid var(--v2-border-color, #334155); border-radius: 16px; background: var(--v2-bg-secondary, #1e293b); color: var(--v2-text-primary, #f1f5f9); }
.retention-heading, .retention-card-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.retention-heading h2 { margin: .3rem 0 .8rem; font-size: 1.3rem; }
.retention-heading a { color: #93c5fd; min-height: 44px; display: inline-flex; align-items: center; }
.retention-eyebrow { margin: 0; font-size: .85rem; color: #cbd5e1; }
.retention-goal { display: grid; gap: .45rem; margin-bottom: 1rem; }
.retention-goal progress { width: 100%; height: 12px; accent-color: #3b82f6; }
.retention-goal span, .retention-help { font-size: .85rem; color: #cbd5e1; line-height: 1.6; }
.retention-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1rem; }
.retention-card { min-width: 0; padding: 1rem; border-radius: 12px; border: 1px solid #475569; }
.retention-card h3 { font-size: 1rem; margin: 0; display: flex; gap: .5rem; align-items: center; line-height: 1.5; }
.retention-card p, #learning-communications .v2-card-body > p { font-size: .95rem; line-height: 1.7; color: #e2e8f0; }
.retention-card i, .retention-card svg { width: 20px; height: 20px; flex-shrink: 0; }
.retention-dismiss { min-width: 44px; min-height: 44px; display: inline-flex; justify-content: center; align-items: center; border: 0; border-radius: 8px; color: #cbd5e1; background: transparent; cursor: pointer; }
.retention-dismiss:hover { background: #334155; }
.retention-fields { border: 1px solid #475569; border-radius: 8px; padding: .75rem 1rem; margin: 1rem 0; }
.retention-fields legend { padding: 0 .5rem; }
.retention-check { display: flex; align-items: flex-start; gap: .75rem; padding: .65rem 0; line-height: 1.6; cursor: pointer; }
.retention-check input { flex-shrink: 0; width: 20px; height: 20px; margin-top: .2rem; accent-color: #3b82f6; }
.retention-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1rem; }
.retention-form-grid label { display: grid; gap: .5rem; font-size: .9rem; }
.retention-form-grid select, .retention-form-grid input { width: 100%; min-width: 0; min-height: 44px; padding: .6rem; border: 1px solid #64748b; border-radius: 8px; background: #0f172a; color: #f1f5f9; font: inherit; box-sizing: border-box; }
.retention-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1rem; }
.retention-actions button, .retention-card .v2-btn { min-height: 44px; white-space: normal; }
.retention-status { margin: .75rem 0 0; color: #cbd5e1; line-height: 1.6; }
.retention-status:empty { display: none; }
.retention-suppression { padding: .75rem; border-left: 3px solid #fbbf24; }
.retention-panel :focus-visible, #learning-communications :focus-visible { outline: 2px solid #93c5fd; outline-offset: 4px; }
@media (max-width: 480px) { .retention-panel { padding: 1rem; } .retention-heading { align-items: flex-start; flex-direction: column; gap: 0; } .retention-actions button { width: 100%; justify-content: center; } }

/* The Premium week guide's card (WO-11; js/retention.js guideCardHtml): first in the row and full width, with
   the five steps, a summary line and a fold that keeps it to one line. */
.retention-guide { grid-column: 1 / -1; border-color: rgba(245, 158, 11, 0.45); background: rgba(245, 158, 11, 0.06); }
.retention-guide i, .retention-guide svg { color: var(--v2-accent-amber, #f59e0b); }
.retention-guide-fold { min-width: 44px; min-height: 44px; padding: 0 .75rem; border: 1px solid #475569; border-radius: 8px; background: transparent; color: #e2e8f0; font: inherit; font-size: .875rem; cursor: pointer; }
.retention-guide-fold:hover { background: #334155; }
.retention-guide .retention-guide-summary { margin: .25rem 0 0; font-weight: 600; color: #f1f5f9; }
.retention-guide-body[hidden] { display: none; }
.retention-guide-steps { list-style: none; margin: .75rem 0 1rem; padding: 0; display: grid; gap: .5rem; }
.retention-guide-steps li { display: flex; gap: .5rem; align-items: flex-start; line-height: 1.5; color: #e2e8f0; }
.retention-guide-steps li i, .retention-guide-steps li svg { width: 20px; height: 20px; margin-top: .1rem; color: #94a3b8; }
.retention-guide-steps li.is-done i, .retention-guide-steps li.is-done svg { color: var(--v2-accent-green, #10b981); }
.retention-guide-step { display: block; }
.retention-guide-detail { display: block; font-size: .85rem; color: #94a3b8; }
