/* Review loop add-ons (IDEAS-NEXT v0.12 slice 1). Pearl: soft white, system sans, one deep blue. */
.rl-muted { color: var(--muted, #686b73); font-size: 14px; line-height: 1.5; }
.rl-kicker { color: var(--accent, #1046ab); font-size: 11px; font-weight: 650; letter-spacing: .085em; text-transform: uppercase; }
.rl-link { color: var(--accent, #1046ab); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.rl-primary { min-height: 52px; padding: 13px 22px; border: 1px solid var(--accent, #1046ab); border-radius: 14px; color: #fff; background: var(--pearl-action, var(--accent, #1046ab)); font: inherit; font-weight: 600; cursor: pointer; }
.rl-primary:disabled { opacity: .45; cursor: default; }
.rl-error { color: #9b2929; background: #fff2f1; padding: 12px 14px; border-radius: 12px; }
.rl-block { display: block; margin-top: 8px; }
.rl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* A1 · three thumb-sized outcome buttons, none preselected */
.rl-choices { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; min-width: 0; }
.rl-choices legend { font-weight: 600; font-size: 15px; margin-bottom: 8px; padding: 0; }
.rl-choice-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rl-choice { position: relative; display: flex !important; align-items: center; justify-content: center; text-align: center; min-height: 48px; padding: 10px 12px; border: 1px solid #d5dce8; border-radius: 12px; background: #fff; cursor: pointer; font-weight: 550; font-size: 15px; line-height: 1.25; }
.rl-choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.rl-choice:has(input:checked) { border-color: var(--accent, #1046ab); background: var(--accent-soft, #eef3fc); color: var(--accent-deep, #0d3889); box-shadow: inset 0 0 0 1px var(--accent, #1046ab); }
.rl-choice:has(input:focus-visible) { outline: 3px solid var(--accent, #1046ab); outline-offset: 3px; }
.rl-left { font-size: 14px; color: var(--muted, #686b73); margin: 0 0 8px; }
form[data-rl-rubric] fieldset.lr-options > label { display: grid; gap: 8px; padding: 0; border: 0; cursor: auto; }
@media (max-width: 768px) {
  /* Below the app header and above the bottom tab bar. */
  .lr-card article:has(form[data-rl-rubric]) > video { position: sticky; top: 72px; z-index: 3; max-height: 30vh; background: #000; }
  form[data-rl-rubric] .rl-save-bar { position: sticky; bottom: calc(74px + env(safe-area-inset-bottom)); z-index: 3; padding: 12px 0; background: linear-gradient(180deg, #ffffff00, #fff 30%); }
  form[data-rl-rubric] .rl-save-bar .lr-button { width: 100%; }
}
@media (max-width: 420px) { .rl-choice-row { grid-template-columns: 1fr; } }

/* A4 · last correction and "Did they fix it?" */
.rl-followup:empty { display: none; }
.rl-last { border-left: 3px solid var(--accent, #1046ab); background: #f4f7fc; border-radius: 0 14px 14px 0; padding: 14px 16px; margin: 0 0 14px; }
.rl-last-text { font-size: 17px; font-weight: 600; margin: 6px 0; line-height: 1.4; }
.rl-fix { margin-bottom: 18px; }
.rl-fix .rl-choice-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 520px) { .rl-fix .rl-choice-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rl-fix-result { margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; background: #f4f7fc; }

/* A7 · This week strip */
.rl-week[hidden] { display: none; }
.rl-week { display: grid; gap: 12px; margin-bottom: 18px; }
.rl-week-card { padding: 16px 18px; border: 1px solid var(--line, #e5e6ea); border-radius: 18px; background: var(--pearl-surface, #fff); box-shadow: var(--pearl-shadow, none); }
.rl-week-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.rl-parts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.rl-part a { position: relative; display: grid; gap: 2px; min-height: 64px; padding: 10px 10px 10px 34px; border: 1px solid #e3e7ee; border-radius: 12px; color: inherit; text-decoration: none; background: #fff; }
.rl-tick { position: absolute; left: 9px; top: 11px; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #c9d1de; display: grid; place-items: center; font-size: 11px; }
.rl-part-label { font-weight: 650; font-size: 15px; }
.rl-part-window { font-size: 12px; color: var(--muted, #686b73); }
.rl-part.is-done .rl-tick { background: var(--accent, #1046ab); border-color: var(--accent, #1046ab); color: #fff; }
.rl-part.is-due a { border-color: var(--accent, #1046ab); box-shadow: inset 0 0 0 1px var(--accent, #1046ab); background: var(--accent-soft, #eef3fc); }
.rl-part.is-passed .rl-part-label { color: var(--muted, #686b73); }
.rl-week-next { margin-top: 4px; }
.rl-cadence { margin: 2px 0 0; font-size: 12px; color: var(--muted, #686b73); }
.rl-week-none p { margin: 4px 0; }

/* A10 · self-scout */
.rl-scout:empty { display: none; }
.rl-scout-form { display: grid; gap: 16px; margin-top: 16px; padding: 18px; border: 1px solid #dfe5ef; border-radius: 16px; background: #fbfcfe; }
.rl-scout-form h3, .rl-compare h3, .rl-scout-saved h3 { margin: 0; }
.rl-stamp { justify-self: start; min-height: 44px; padding: 8px 12px; border: 0; background: transparent; color: var(--accent, #1046ab); font: inherit; font-size: 14px; cursor: pointer; }
.rl-compare table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 10px; }
.rl-compare th, .rl-compare td { text-align: left; padding: 9px 6px; border-bottom: 1px solid #e9edf2; vertical-align: top; }
.rl-scout-saved ul { padding-left: 18px; line-height: 1.7; }

/* A13 · validity sweep */
.rl-sweep { max-width: 1080px; margin: 0 auto; display: grid; gap: 18px; padding-bottom: 96px; }
.rl-sweep-head h1 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -.04em; margin: 6px 0 8px; }
.rl-count { font-weight: 600; margin: 0; }
.rl-sweep-list { display: grid; gap: 16px; }
.rl-sweep-item { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; padding: 18px; border: 1px solid var(--line, #e5e6ea); border-radius: 20px; background: var(--pearl-surface, #fff); box-shadow: var(--pearl-shadow, none); }
.rl-sweep-item.is-valid, .rl-sweep-item.is-recapture_sent { opacity: .72; }
.rl-sweep-item video { width: 100%; max-height: 420px; border-radius: 14px; background: #000; }
.rl-sweep-body h2 { margin: 0; font-size: 20px; }
.rl-sweep-body details { margin-top: 8px; }
.rl-sweep-body summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: var(--accent, #1046ab); }
.rl-sweep-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.rl-choice-btn { min-height: 52px; border: 1px solid #d5dce8; border-radius: 14px; background: #fff; font: inherit; font-weight: 650; cursor: pointer; color: var(--ink, #1d1d1f); }
.rl-choice-btn.is-on { border-color: var(--accent, #1046ab); background: var(--accent-soft, #eef3fc); color: var(--accent-deep, #0d3889); box-shadow: inset 0 0 0 1px var(--accent, #1046ab); }
.rl-reasons { display: grid; gap: 8px; }
.rl-reasons .rl-choice { justify-content: flex-start; text-align: left; }
.rl-sweep-state { font-weight: 600; color: var(--accent-deep, #0d3889); }
.rl-sweep-bar { position: sticky; bottom: 0; padding: 14px 0 calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, #f5f5f700, #f5f5f7 35%); display: flex; justify-content: flex-end; }
.rl-sweep-empty { padding: 28px; border: 1px solid var(--line, #e5e6ea); border-radius: 20px; background: var(--pearl-surface, #fff); }
@media (max-width: 768px) {
  .rl-sweep-item { grid-template-columns: 1fr; padding: 14px; }
  .rl-sweep-bar { bottom: calc(74px + env(safe-area-inset-bottom)); }
  .rl-sweep-bar .rl-primary { width: 100%; }
}

/* A16 · receipt */
.rl-receipt { margin-top: 14px; border: 1px solid var(--line, #e5e6ea); border-radius: 16px; background: var(--pearl-surface, #fff); padding: 0 16px; }
.rl-receipt summary { min-height: 48px; display: flex; align-items: center; cursor: pointer; font-weight: 600; color: var(--accent, #1046ab); }
.rl-receipt dl { margin: 0 0 8px; display: grid; gap: 10px; }
.rl-receipt dt { font-weight: 650; font-size: 14px; }
.rl-receipt dd { margin: 2px 0 0; line-height: 1.5; font-size: 14px; }
.rl-receipt-body { padding-bottom: 14px; }
.rl-awaiting { margin-top: 12px; }
