/* The advisor's pages: Renewals hub, My book and the Grow pages. The prototype's own measurements
   (docs/static-prototype/madison/v2.css), in this app's tokens. The run card is the prototype's
   .agent-run, which v2.css did not carry because no internal screen used it. */
.agent-run{background:var(--night,#0F161D);border-radius:var(--r-xl,18px);padding:26px 28px;color:#fff;margin-bottom:26px;position:relative;overflow:hidden}
.agent-run h2{margin:10px 0 0;font-size:24px;font-weight:600;letter-spacing:-.02em;color:#fff}
.agent-run p{margin:9px 0 0;font-size:14px;line-height:1.6;color:#A3ABBC;max-width:70ch}
.agent-run p b{color:#fff;font-weight:600}
.adv-run-eyebrow{color:#8A92A3}
.adv-ghost{background:transparent;border-color:rgba(255,255,255,.18);color:#CBD0DB}
.adv-ghost:hover{border-color:rgba(255,255,255,.32);color:#fff}
.adv-run-actions{gap:10px;margin-top:20px;flex-wrap:wrap}
.adv-run-actions .btn svg{margin-left:6px}
.run-grid>div[title]{cursor:help}

.adv-updated{white-space:nowrap}
.adv-deadlines{margin-bottom:16px}
.adv-gates{gap:18px;flex-wrap:wrap;margin-top:6px}
.adv-over{color:var(--red-deep)}
.adv-strip{margin-bottom:20px}
.adv-card{min-width:0}
.adv-sec-toggle{cursor:pointer}
.adv-row{cursor:default}

.adv-book-head{align-items:flex-end;gap:8px}
.adv-book-actions{gap:8px;flex-wrap:wrap;justify-content:flex-end}
.adv-count{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;font-size:13px;font-weight:600;color:var(--blue-deep);background:var(--tint-blue);border-color:rgba(34,103,234,.22)}
.adv-book-actions .btn:disabled{opacity:.55;cursor:not-allowed}
.adv-book-tiles{margin-bottom:20px}
.adv-book-tiles .xs{margin-top:4px}
.adv-tabs{gap:8px;margin-bottom:14px}
.adv-tab-n{margin-left:6px;opacity:.7;font-variant-numeric:tabular-nums}
.adv-book-table td{vertical-align:middle}
.adv-book-table td.num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.adv-client{max-width:190px}
.adv-client b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text)}
.adv-trunc{max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.adv-badge{display:inline-grid;place-items:center;min-width:22px;height:22px;margin-right:7px;border-radius:999px;border:1px solid var(--line);font-size:11.5px;font-weight:600;color:var(--text-2)}
.adv-conditions{display:grid;gap:12px}
.adv-condition-head{justify-content:space-between;gap:12px}
.adv-condition-clients{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}

.adv-grow .ed-new-layout,.adv-grow .ed-frame,.adv-grow .ed-qualify{margin-top:4px}
.adv-denied{max-width:640px}
.adv-denied .btn{margin-top:10px}

/* The advisor's renewal page and clickable rows (session 18, spec 16.1). */
.adv-link-row { cursor: pointer; }
.adv-link-row:hover td, .mrow.adv-link-row:hover { background: var(--surface-2, rgba(0,0,0,.025)); }
.adv-coverage-note { margin-top: 10px; }
.adv-renewal-head { align-items: flex-end; gap: 6px; }
.adv-assess { margin-bottom: 14px; }
.adv-assess h2 { margin-top: 3px; }
.adv-assess-ico { width: 32px; height: 32px; border-radius: 999px; background: var(--tint-purple, #efeafd); color: var(--purple-deep, #5b3fb8); display: grid; place-items: center; }
.adv-do, .adv-do-note { margin-bottom: 16px; }
.adv-chips { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.adv-muted-v { font-size: 14px; color: var(--text-muted); }
.adv-gates { gap: 20px; flex-wrap: wrap; }
.adv-gate-v { font-size: 14px; font-weight: 600; }
.adv-renewal-foot { gap: 8px; margin-top: 8px; }

/* The landing page (Direction A, session 26): one list, longest at its step first, each row with its
   one next action, and the email to the client opening in place. */
.adv-work { display: grid; gap: 10px; margin-bottom: 22px; }
.adv-work-row { border: 1px solid var(--line); border-radius: var(--r-lg, 14px); padding: 14px 16px; background: var(--surface, #fff); }
.adv-work-top { display: flex; align-items: flex-start; gap: 12px; }
.adv-work-main { min-width: 0; }
.adv-work-client { font-size: 15px; font-weight: 600; color: var(--text); text-decoration: none; }
.adv-work-client:hover { text-decoration: underline; }
.adv-work-stage { margin-top: 3px; font-size: 13px; color: var(--text-2); }
.adv-days { font-weight: 600; color: var(--text); }
.adv-work-need { margin-top: 6px; font-size: 14px; color: var(--text); }
.adv-work-actions { gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.adv-work-actions .btn svg { margin-right: 6px; }
.adv-work-actions .btn.p svg { margin: 0 0 0 6px; }
.adv-empty { margin-bottom: 22px; }

.adv-email { margin-top: 12px; border: 1px solid var(--line); border-radius: var(--r-md, 10px); background: var(--surface-2, rgba(0,0,0,.025)); padding: 12px 14px; }
.adv-email-head { display: grid; gap: 4px; font-size: 13px; margin-bottom: 8px; }
.adv-email-body { margin: 0; white-space: pre-wrap; word-break: break-word; font-family: inherit; font-size: 13.5px; line-height: 1.55; color: var(--text); max-height: 340px; overflow: auto; }
.adv-email-actions { gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.adv-email-actions .btn svg { margin-right: 6px; }
.adv-email-error { margin-top: 8px; color: var(--red-deep); }

.adv-book-links { display: flex; gap: 10px; margin-top: 3px; }
.adv-portal-link { display: inline-flex; align-items: center; gap: 5px; }
.adv-do-bar { display: block; }
.adv-do-bar .adv-work-actions { margin-top: 0; }

@media (max-width: 640px) {
  .adv-work-top { flex-direction: column; }
  .adv-work-actions .btn { flex: 1 1 auto; justify-content: center; }
}
/* A card's recommendation, Madison's own step and the policy context (session 26, 2026-10-14). */
.adv-work-rec { display: flex; gap: 8px; align-items: baseline; margin-top: 8px; font-size: 14px; color: var(--text); }
.adv-work-rec .eyebrow { flex: none; }
.adv-work-madison { display: flex; gap: 6px; align-items: center; margin-top: 5px; font-size: 13px; color: var(--text-2); }
.adv-work-policy { margin-top: 5px; font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.adv-work-asked { margin-top: 3px; font-size: 12.5px; color: var(--text-muted); }
