/* public/app-reina-improving.css -- extras for "How Reina is improving" (app-reina-improving.js). The rest is the sales-drafts look
 * (app-sales-drafts.css): same tokens, same type scale (13 body, 12 helper, 11 labels). Colour carries state only, never prose.
 * Contrast (measured, light / dark): --hlm-strong on --hlm-bg 16.6:1 / 14.2:1, --hlm-ok 5.3:1 / 8.4:1, --hlm-bad 5.4:1 / 6.6:1,
 * --hlm-mut on --hlm-bg 6.1:1 / 7.4:1.
 */
.ri-root .ri-title { margin: 10px 0 0; font-size: 14px; font-weight: 800; line-height: 1.4; color: var(--hlm-strong, #161e2e); overflow-wrap: anywhere; }
.ri-root .sd-top + .ri-title { margin-top: 12px; }
.ri-root .ri-ver { border-color: var(--hlm-ok, #1B7A50); color: var(--hlm-ok, #1B7A50); }
.ri-root .ri-impact { margin: 8px 0 0; font-size: 13px; font-weight: 500; line-height: 1.6; color: var(--hlm-strong, #161e2e); }
#hlmodal.hlset-modal .ri-root p.ri-impact { color: var(--hlm-strong, #161e2e); }
.ri-root .ri-sub { margin: 14px 0 6px; font-size: 11px; font-weight: 800; color: var(--hlm-strong, #161e2e); }
.ri-root .ri-bullets { margin: 0; padding: 0 0 0 18px; }
.ri-root .ri-bullets li { margin: 0 0 4px; font-size: 13px; font-weight: 500; line-height: 1.55; color: var(--hlm-strong, #161e2e); overflow-wrap: anywhere; }
.ri-root .ri-reason { margin: 12px 0 0; padding: 10px 12px; border-left: 3px solid var(--hlm-bad, #b4482f); border-radius: 0 8px 8px 0; background: var(--sd-paper); font-size: 13px; font-weight: 600; line-height: 1.55; color: var(--hlm-strong, #161e2e); }
#hlmodal.hlset-modal .ri-root p.ri-reason { color: var(--hlm-strong, #161e2e); }

.ri-root .ri-check { margin-top: 12px; border: 1px solid var(--hlm-line, #dadde8); border-radius: 10px; overflow: hidden; }
.ri-root .ri-check-head {
  display: flex; align-items: center; gap: 8px; width: 100%; min-height: 36px; padding: 6px 12px; cursor: pointer; text-align: left;
  border: 0; border-radius: 0; background: var(--sd-paper); box-shadow: none; font-family: 'Montserrat', sans-serif; font-size: 12px; font-weight: 700; color: var(--hlm-strong, #161e2e);
}
.ri-root .ri-check-head:focus-visible { outline: 2px solid var(--hlm-btn, #59718a); outline-offset: -2px; }
.ri-root .ri-dot { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 99px; font-size: 11px; font-weight: 800; background: var(--hlm-ok, #1B7A50); color: var(--sd-ink); }
.ri-root .ri-check-head.is-bad .ri-dot { background: var(--hlm-bad, #b4482f); }
.ri-root .ri-more { margin-left: auto; font-weight: 600; color: var(--hlm-mut, #5d657b); }
.ri-root .ri-list { margin: 0; padding: 4px 12px 10px; list-style: none; }
.ri-root .ri-list li { padding: 7px 0 0; font-size: 12px; line-height: 1.5; }
.ri-root .ri-list li b { display: block; font-weight: 700; color: var(--hlm-strong, #161e2e); }
.ri-root .ri-list li.is-bad b { color: var(--hlm-bad, #b4482f); }
.ri-root .ri-list li span { display: block; font-weight: 600; color: var(--hlm-mut, #5d657b); }

.ri-root .sd-btn.ri-undo { border-color: var(--hlm-bad, #b4482f); color: var(--hlm-bad, #b4482f); background: transparent; }
.ri-root .sd-btn.ri-undo:hover { background: var(--sd-paper); }

.ri-root .ri-hist { margin-top: 10px; }
.ri-root .ri-hist .sd-btn { min-height: 28px; padding: 0 8px; font-size: 11px; }
.ri-root .ri-steps { margin: 6px 0 0; padding: 0 0 0 18px; }
.ri-root .ri-steps li { margin: 0 0 6px; font-size: 12px; line-height: 1.5; }
.ri-root .ri-steps li b { display: block; font-weight: 700; color: var(--hlm-strong, #161e2e); }
.ri-root .ri-steps li span { font-weight: 600; color: var(--hlm-mut, #5d657b); }

.ri-root .ri-target { display: grid; gap: 8px; }
.ri-root .ri-opt { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; cursor: pointer; border: 1px solid var(--hlm-line, #dadde8); border-radius: 10px; background: var(--hlm-field, #fff); }
.ri-root .ri-opt:has(input:checked) { border-color: var(--hlm-btn, #59718a); box-shadow: inset 0 0 0 1px var(--hlm-btn, #59718a); }
.ri-root .ri-opt input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--hlm-btn, #59718a); }
.ri-root .ri-opt b { display: block; font-size: 13px; font-weight: 800; color: var(--hlm-strong, #161e2e); }
.ri-root .ri-opt span span { display: block; margin-top: 2px; font-size: 12px; font-weight: 600; line-height: 1.5; color: var(--hlm-mut, #5d657b); }
.ri-root .ri-opt:focus-within { outline: 2px solid var(--hlm-btn, #59718a); outline-offset: 2px; }

@media (max-width: 520px) {
  .ri-root .ri-check-head { min-height: 44px; }
}
