/* Week in review: Home card + sheet (public/review-ui.js). */
.rv-card { display: block; width: 100%; text-align: left; font: inherit; color: inherit; border: 0; cursor: pointer; padding: 14px 16px; }
.rv-card svg, .rv-sheet svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.rv-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.rv-range { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.rv-win { display: inline-flex; align-items: center; gap: 5px; min-width: 0; font-size: 11.5px; font-weight: 600; color: #b45309; background: #fef3c7; padding: 3px 9px; border-radius: 999px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rv-win svg { color: #f59e0b; fill: #f59e0b; stroke: none; }
:root[data-theme="dark"] .rv-win { color: #fcd34d; background: rgba(245, 158, 11, .16); }
.rv-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.rv-tile { display: flex; flex-direction: column; gap: 2px; padding: 10px 10px 9px; border-radius: 14px; background: var(--u-tile); min-width: 0; }
.rv-tile > span:first-child { font-size: 11px; font-weight: 600; color: var(--muted); }
.rv-tile b { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rv-tile b small { font-size: 10.5px; font-weight: 600; color: var(--muted); }
.rv-d { font-size: 10.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.rv-d.up { color: var(--accent-dark); }
.rv-d.down { color: #dc2626; }
:root[data-theme="dark"] .rv-d.down { color: #f87171; }
.rv-focus { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px dotted var(--u-hair); font-size: 12.5px; line-height: 1.45; color: var(--text); }
.rv-focus svg { margin-top: 2px; color: var(--accent); }
.rv-focus b { font-weight: 700; margin-right: 2px; }
@media (max-width: 420px) { .rv-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.view-sheet-body > .vs-content > .rv-sheet:first-child { padding-right: 0; }
.view-sheet-body .rv-sheet > .st-head:first-child { padding: 0 50px 0 0; }
.rv-sheet .ef-sec { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 22px 2px 10px; }
.rv-sheet .ef-sec h3 { margin: 0; font-size: 15px; font-weight: 700; }
.rv-sheet .ef-sec > span { font-size: 11.5px; font-weight: 500; color: var(--muted); }
.rv-hero { margin-top: 10px; }
.rv-wins { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.rv-wins li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #fff; }
.rv-wins svg { width: 16px; height: 16px; fill: #fbbf24; stroke: none; filter: drop-shadow(0 0 8px rgba(251, 191, 36, .5)); }
.rv-quiet { margin: 8px 0 0; color: #c9ccd1; font-size: 13px; }
.rv-coach p + p { margin-top: 6px; }
.rv-list .u-val { margin-left: auto; display: block; font-size: 15px; }
.rv-list .u-val small { margin-left: 1px; }
.rv-dcol { flex: none; min-width: 58px; text-align: right; }
.rv-foot { margin: 16px 2px 4px; }

/* Week / Month switch */
.rv-modes { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--u-tile); margin: 8px 0 4px; }
.rv-modes button { border: 0; background: none; font: inherit; font-size: 13px; font-weight: 700; color: var(--muted); padding: 6px 16px; border-radius: 999px; cursor: pointer; }
.rv-modes button.on { background: var(--panel); color: var(--text); box-shadow: 0 1px 3px rgba(var(--n-ink-rgb), 0.12); }

/* Home card: link to last month's recap */
.rv-month-link { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 8px; padding: 11px 14px; border: 0; border-radius: 14px; background: #fef3c7; color: #92400e; font: inherit; font-size: 13.5px; font-weight: 700; text-align: left; cursor: pointer; }
.rv-month-link span { flex: 1; }
.rv-month-link svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rv-month-link svg:first-child { color: #f59e0b; fill: #f59e0b; stroke: none; }
:root[data-theme="dark"] .rv-month-link { background: rgba(245, 158, 11, .16); color: #fcd34d; }

/* Shareable monthly card (also saved as an image) */
.rv-share-card { margin-top: 12px; padding: 20px 20px 16px; border-radius: 24px; color: #fff; background: radial-gradient(120% 90% at 100% 0%, rgba(74, 222, 128, 0.28), transparent 55%), #16181b; box-shadow: 0 16px 32px -16px rgba(17, 18, 20, .7); }
.rv-sc-top { display: flex; flex-direction: column; gap: 2px; }
.rv-sc-kick { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #9ca3af; }
.rv-sc-month { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.rv-sc-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; margin: 18px 0 4px; }
.rv-sc-stat { display: flex; flex-direction: column; gap: 1px; }
.rv-sc-stat b { font-size: 28px; font-weight: 700; color: #4ade80; text-shadow: 0 0 18px rgba(74, 222, 128, .45); font-variant-numeric: tabular-nums; }
.rv-sc-stat b small { font-size: 14px; font-weight: 600; color: #c9ccd1; text-shadow: none; margin-left: 1px; }
.rv-sc-stat span { font-size: 12.5px; font-weight: 600; color: #c9ccd1; }
.rv-sc-lines { list-style: none; margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid rgba(255, 255, 255, .1); display: grid; gap: 8px; }
.rv-sc-lines li { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; font-weight: 600; line-height: 1.4; }
.rv-sc-lines svg { width: 14px; height: 14px; margin-top: 2px; flex: none; fill: #f59e0b; stroke: none; }
.rv-sc-foot { display: flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 12px; font-weight: 700; color: #9ca3af; }
.rv-sc-foot img { border-radius: 5px; }
.rv-share-row { margin: 12px 0 4px; }
.rv-share-row .btn { width: 100%; }
