/* HOP — Coach report. The page is always drawn light (it is meant for paper
   and for sending), whatever theme the app is in. 749px wide = Letter minus
   0.35in margins; on a phone it is zoomed down to fit, in print it is 1:1. */
.rp-tools{ display:grid; gap:10px; margin-bottom:14px; }
.rp-fields{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.rp-fields label{ display:block; font-size:13px; color:var(--text-muted); font-weight:600; }
.rp-fields input{ display:block; width:100%; margin-top:4px; font:inherit; font-size:16px; padding:11px 12px; border-radius:12px; border:1px solid var(--border-strong); background:var(--surface); color:var(--text); }
.rp-lead{ margin:0 0 12px; font-size:15px; line-height:1.45; color:var(--text-muted); }
.rp-btns{ display:grid; gap:8px; }
.rp-scroll{ width:100%; overflow:hidden; border-radius:12px; border:1px solid var(--border); background:#e9eef5; padding:0; }

.rp-page{
  width:749px; box-sizing:border-box; padding:22px 24px 16px; background:#fff; color:#14233b;
  font-family:-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif; font-size:11px; line-height:1.34;
  -webkit-print-color-adjust:exact; print-color-adjust:exact; margin:0 auto;
}
.rp-page *{ box-sizing:border-box; }
.rp-page h3{ margin:0 0 7px; font-size:11.5px; font-weight:800; letter-spacing:.04em; text-transform:uppercase; color:#084f82; display:flex; justify-content:space-between; align-items:baseline; gap:8px; }
.rp-page h3 span{ font-weight:600; letter-spacing:0; text-transform:none; color:#5b6b84; font-size:10.5px; }

.rp-head{ display:flex; justify-content:space-between; align-items:center; gap:16px; padding:9px 14px; border-radius:12px; color:#fff; background:linear-gradient(135deg,#4ba6de,#0b64a0 62%,#084f82); }
.rp-brand{ display:flex; align-items:center; gap:12px; }
.rp-logo{ display:flex; align-items:center; background:#fff; border-radius:10px; padding:3px 9px; }
.rp-logo img{ display:block; height:46px; width:auto; }
.rp-title{ font-size:19px; font-weight:800; line-height:1.1; }
.rp-sub{ font-size:11px; opacity:.92; margin-top:2px; }
.rp-who{ text-align:right; display:flex; flex-direction:column; gap:1px; font-size:11px; }
.rp-who b{ font-size:15px; }
.rp-who .rp-blank{ opacity:.6; font-weight:600; }
.rp-sample{ margin:8px 0 7px; padding:5px 10px; border-radius:8px; background:#fbf0dc; color:#7a5200; font-weight:700; font-size:10.5px; text-align:center; border:1px solid #ecd49b; }
.rp-nodata{ margin:10px 0 0; padding:10px 12px; border-radius:10px; background:#e4f2fb; color:#084f82; font-size:12px; }
.rp-lede{ margin:8px 2px 7px; font-size:12.5px; line-height:1.5; }
.rp-lede b{ color:#084f82; }

.rp-kpis{ display:grid; grid-template-columns:repeat(5,1fr); gap:7px; margin-bottom:7px; }
.rp-kpi{ border:1px solid #dde5f0; border-radius:10px; padding:7px 9px 6px; background:#f6f9fd; }
.rp-kpi-l{ font-size:9.5px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:#5b6b84; }
.rp-kpi-v{ font-size:22px; font-weight:800; line-height:1.15; color:#14233b; }
.rp-kpi-v small{ font-size:12px; font-weight:600; color:#5b6b84; }
.rp-kpi-s{ font-size:10.5px; color:#5b6b84; }

.rp-cols{ display:grid; grid-template-columns:1fr 1fr; gap:7px; margin-bottom:7px; align-items:start; }
.rp-col{ display:grid; gap:7px; min-width:0; }
.rp-two{ display:grid; grid-template-columns:1fr 1fr; gap:7px; margin-bottom:7px; }
.rp-box{ border:1px solid #dde5f0; border-radius:10px; padding:7px 10px 6px; min-width:0; }
.rp-box svg{ display:block; width:100%; height:auto; max-width:360px; }
.rp-ch svg{ max-width:260px; }
.rp-subh{ margin:7px 0 3px; padding-top:5px; border-top:1px dashed #dde5f0; font-size:9.5px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:#084f82; display:flex; justify-content:space-between; }
.rp-subh span{ font-weight:600; letter-spacing:0; text-transform:none; color:#5b6b84; }
.rp-key{ margin-top:3px; font-size:9px; color:#5b6b84; display:flex; flex-wrap:wrap; gap:2px 3px; align-items:center; }
.rp-key i{ width:8px; height:8px; border-radius:2px; display:inline-block; margin-left:4px; }
.rp-cap{ margin-top:5px; font-size:9.5px; color:#5b6b84; line-height:1.35; }
.rp-empty{ padding:14px 4px; color:#5b6b84; font-size:11px; }
.rp-empty.rp-tight{ padding:4px 0; }

.rp-rows{ display:grid; gap:2.5px; }
.rp-row2{ grid-template-columns:128px 1fr 56px !important; }
.rp-row{ display:grid; grid-template-columns:142px 1fr 34px; align-items:center; gap:7px; font-size:10.5px; }
.rp-rl{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.rp-bar{ display:block; height:8px; border-radius:99px; background:#e8eef6; overflow:hidden; }
.rp-bar i{ display:block; height:100%; border-radius:99px; }
.rp-rp{ text-align:right; font-weight:700; font-variant-numeric:tabular-nums; }

.rp-list{ margin:0; padding:0; list-style:none; display:grid; gap:4px; font-size:11px; line-height:1.4; }
.rp-list li{ padding-left:12px; position:relative; }
.rp-list li::before{ content:""; position:absolute; left:0; top:.5em; width:6px; height:6px; border-radius:50%; background:#4ba6de; }
.rp-list li.rp-good::before{ background:#0d8a79; }
.rp-list li.rp-watch::before{ background:#b87d0e; }
.rp-quotes{ margin-top:6px; padding-top:5px; border-top:1px dashed #dde5f0; }
.rp-quotes p{ margin:0 0 3px; font-size:10.5px; color:#344a66; line-height:1.35; }
.rp-quotes em{ color:#5b6b84; font-style:normal; }

.rp-coach{ border:1.5px solid #0f78be; border-radius:10px; padding:7px 12px 8px; background:#f3f9fe; margin-bottom:6px; }
.rp-coach-grid{ display:grid; grid-template-columns:1.1fr 1fr; gap:16px; }
.rp-sm{ font-size:9.5px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:#5b6b84; margin-bottom:4px; }
.rp-lines{ display:grid; gap:0; }
.rp-lines i{ display:block; height:14px; border-bottom:1px solid #9fb3c8; }
.rp-foot{ display:flex; justify-content:space-between; gap:18px; font-size:8.5px; color:#6b7c93; line-height:1.35; border-top:1px solid #dde5f0; padding-top:6px; }
.rp-foot span:last-child{ text-align:right; flex-shrink:0; max-width:190px; }

/* Exercise progress */
.rp-ex{ display:grid; gap:2px; }
.rp-ex-row{ display:grid; grid-template-columns:1fr 54px 112px 38px; gap:6px; align-items:center; padding:2px 0; border-bottom:1px dotted #e3eaf3; font-size:10.5px; }
.rp-ex-row:last-child{ border-bottom:0; }
.rp-ex-n{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.rp-ex-n b{ font-weight:600; }
.rp-ex-n small{ font-size:9px; color:#5b6b84; }
.rp-ex-s svg{ display:block; width:54px; height:16px; max-width:54px; }
.rp-ex-v{ font-size:10px; white-space:nowrap; text-align:right; }
.rp-ex-p{ text-align:right; font-weight:700; font-size:10px; }

/* Sunday Challenge */
.rp-ch{ margin-bottom:7px; }
.rp-ch-grid{ display:grid; grid-template-columns:260px 1fr; gap:14px; align-items:start; }
.rp-ch-head, .rp-ch-row{ display:grid; grid-template-columns:1fr 62px 28px 64px; gap:6px; align-items:center; font-size:10.5px; }
.rp-ch-head{ font-size:9px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:#5b6b84; padding-bottom:3px; border-bottom:1px solid #dde5f0; margin-bottom:2px; }
.rp-ch-head span:nth-child(3), .rp-ch-head span:nth-child(4){ text-align:right; }
.rp-ch-row{ padding:2.5px 0; border-bottom:1px dotted #e3eaf3; }
.rp-ch-row .rp-rl em{ font-style:normal; color:#5b6b84; font-size:9.5px; }
.rp-ch-row > span:nth-child(4){ text-align:right; font-weight:700; font-size:10px; white-space:nowrap; }
.rp-up{ color:#0d8a79; } .rp-down{ color:#b87d0e; } .rp-same{ color:#5b6b84; font-weight:600 !important; }

/* Printing: the report is copied into #rp-print-root (a direct child of <body>) and everything
   else is hidden, so no app container, fixed bar or transform can shift or clip it. @page margin is 0
   (which also keeps the browser's own URL/date header and footer off the sheet); the root supplies
   the 0.35in margin. Width follows the sheet, so Letter and A4 both work. */
#rp-print-root, #rp-measure{ position:absolute; left:-10000px; top:0; width:749px; visibility:hidden; pointer-events:none; }
#rp-measure{ height:0; overflow:hidden; }
@page{ size:Letter portrait; margin:0; }
@media print{
  html, body{ margin:0 !important; padding:0 !important; background:#fff !important; height:auto !important; min-height:0 !important; overflow:visible !important; display:block !important; }
  body > *:not(#rp-print-root):not(#rp-measure){ display:none !important; }
  #rp-measure{ display:block !important; position:absolute !important; left:-10000px !important; height:0 !important; overflow:hidden !important; visibility:hidden !important; }
  #rp-print-root{ position:static !important; left:auto !important; width:auto !important; visibility:visible !important; padding:0.35in !important; box-sizing:border-box; }
  #rp-print-root .rp-page{ width:calc(7.8in / var(--rp-z,1)) !important; width:calc((100vw - 0.7in) / var(--rp-z,1)) !important; zoom:var(--rp-z,1); padding:0 !important; margin:0 !important; max-width:none !important; }
}

/* range selector on the Coach report page */
.rp-range{ display:flex; align-items:center; gap:10px; margin:0 0 12px; font-size:14px; color:var(--text-muted); font-weight:600; }
.rp-range .d8-toggle{ margin-left:auto; }

/* v86: the Easy 8, habit by habit */
.rp-d8h{ display:grid; grid-template-columns:118px 1fr 70px 58px 42px; gap:6px; font-size:8.5px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:#5b6b84; margin:0 0 3px; }
.rp-d8h span{ text-align:right; } .rp-d8h span:nth-child(2){ text-align:left; }
.rp-row.rp-d8r{ grid-template-columns:118px 1fr 70px 58px 42px; gap:6px; }
.rp-d8r .rp-rp{ font-weight:500; white-space:nowrap; }
.rp-d8r .rp-rp b{ font-weight:800; }
