/* ── Reviews dashboard ───────────────────────────────────────────────
 *
 * Loaded only on /dashboard/provider/reviews/.
 *
 * Everything this page can borrow, it borrows: .wrap, .phead, .proofcard,
 * .split, .sec, .rcard, .vrow, .empty, .notice, .btn and the form fields all
 * come from hrhs-system.css. What is left here is the handful of shapes that
 * exist nowhere else — the slide-over, the star distribution, the outcome
 * meter — written against the system tokens (--ink, --line, --go) rather than
 * the --hrhs-* set, because a page that mixes the two token families is
 * exactly the mismatch the provider redesign set out to remove. */

/* ── first-run card ──────────────────────────────────────────────── */
.rv-first { text-align: center; padding: 30px 22px 8px; }
.rv-first__stars { font-size: 30px; color: var(--gold); letter-spacing: 5px; margin-bottom: 12px; }
.rv-first h2 { margin: 0 0 8px; }
.rv-first p { max-width: 48ch; margin: 0 auto 18px; color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }
.rv-first .hint { max-width: 44ch; margin-left: auto; margin-right: auto; }

.rv-note { margin-bottom: 18px; }

/* ── one review ──────────────────────────────────────────────────── */
.rv-item { padding: 17px 0; border-bottom: 1px solid var(--line-soft); }
.rv-item:first-of-type { padding-top: 0; }
.rv-item:last-of-type { border-bottom: 0; padding-bottom: 0; }
.rv-item__top { display: flex; gap: 12px; align-items: flex-start; }
.rv-av {
    width: 36px; height: 36px; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center;
    background: var(--ink); color: #fff; font-weight: 700; font-size: 13px;
}
.rv-av--i { background: var(--tint); color: var(--muted); border: 1px solid var(--line); }
.rv-item__who { flex: 1; min-width: 0; }
.rv-item__who b { display: block; font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; }
.rv-item__who .bdg { margin-left: 7px; vertical-align: 1px; }
.rv-item__meta { display: block; font-size: 11px; color: var(--faint); letter-spacing: .06em; margin-top: 4px; }
.rv-item__stars { flex: 0 0 auto; }
.rv-item__body { margin: 10px 0 0 48px; font-size: 14px; color: var(--ink-2); line-height: 1.65; }

/* The report control is a shared partial styled in hrhs-core.css. Only its
 * placement belongs to this page. */
.rv-item .hrhs-rb { margin: 9px 0 0 48px; }

/* ── who you have asked ──────────────────────────────────────────── */
.rvt { border: 1px solid var(--line); border-radius: var(--r-tile); overflow: hidden; }
.rvt__hd, .rvt__r {
    display: grid; grid-template-columns: 1.6fr 1.4fr 1.3fr 0.6fr; gap: 14px; padding: 12px 15px;
}
.rvt__hd {
    background: var(--tint); border-bottom: 1px solid var(--line);
    font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .13em; color: var(--muted);
}
.rvt__r { align-items: start; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.rvt__r:last-child { border-bottom: 0; }
.rvt__r b { display: block; font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.rvt__sub { display: block; font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.rvt__work { color: var(--ink-2); font-size: 13.5px; line-height: 1.45; }
.rvt__date { font-size: 11.5px; color: var(--muted); letter-spacing: .06em; }

.rvst { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; }
.rvst i { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; }
.rvst--written { color: var(--go); }
.rvst--written i { background: var(--go); }
.rvst--sent { color: var(--ink); }
.rvst--sent i { background: var(--ink); }
.rvst--reminded { color: var(--warn-ink); }
.rvst--reminded i { background: var(--gold); }
.rvst--expired, .rvst--declined { color: var(--muted); }
.rvst--expired i, .rvst--declined i { background: #C3CBD6; }

/* ── asks-left rail card ─────────────────────────────────────────── */
.rv-left {
    font-family: 'IBM Plex Mono', monospace; font-size: 34px; font-weight: 600;
    letter-spacing: -.03em; line-height: 1; margin: 0; color: var(--ink);
}
.rv-left__sub { font-size: 13px; color: var(--ink-2); line-height: 1.5; margin: 7px 0 0; }
.rv-left__btn { margin-top: 13px; }
.rv-left__up {
    display: block; margin-top: 11px; font-size: 13px; font-weight: 600; color: var(--go);
    text-decoration: none;
}
.rv-left__up:hover { text-decoration: underline; }

/* ── rating rail card ────────────────────────────────────────────── */
.rv-score { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.rv-score__big {
    font-size: 40px; font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--ink);
}
.rv-score__sub { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }

.rv-dist { padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); margin-bottom: 4px; }
.rv-drow { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 12px; }
.rv-drow:last-child { margin-bottom: 0; }
.rv-drow__n { width: 10px; text-align: right; color: var(--muted); font-weight: 700; }
.rv-drow__bar { flex: 1; height: 7px; background: var(--line-soft); border-radius: 99px; overflow: hidden; }
.rv-drow__bar i { display: block; height: 100%; background: var(--gold); border-radius: 99px; }
.rv-drow__c { width: 20px; text-align: right; color: var(--muted); font-size: 11.5px; }

/* ── outcome meter ───────────────────────────────────────────────── */
.rv-big { font-size: 26px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin: 0; color: var(--ink); }
.rv-big span { font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.rv-meter {
    height: 8px; border-radius: 99px; background: var(--line-soft);
    display: flex; overflow: hidden; margin: 12px 0 4px;
}
.rv-meter i { display: block; height: 100%; }
.rv-frow { display: flex; align-items: center; gap: 11px; padding: 9px 0; font-size: 13.5px; border-bottom: 1px solid var(--line-soft); }
.rv-frow:last-of-type { border-bottom: 0; padding-bottom: 0; }
.rv-dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
.rv-frow__k { flex: 1; color: var(--ink-2); }
.rv-frow__v { font-size: 13px; font-weight: 600; color: var(--ink); }

/* ── the ask panel ───────────────────────────────────────────────── */
.rv-scrim {
    position: fixed; inset: 0; background: rgba(6, 20, 33, .5);
    opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s; z-index: 60;
}
.rv-panel {
    position: fixed; top: 0; right: 0; bottom: 0; width: 460px; max-width: 100%;
    background: var(--card); z-index: 61; box-shadow: -18px 0 50px rgba(6, 20, 33, .24);
    display: flex; flex-direction: column;
    transform: translateX(100%); transition: transform .28s cubic-bezier(.4, 0, .2, 1);
}
/* :target is the no-JS path — the trigger is a real anchor, so the panel opens
 * for somebody whose JavaScript never loaded. is-open is the enhanced path and
 * is also set server-side, both when a submission comes back with an error and
 * when the URL carries ?ask=1 from another screen. */
.rv-panel:target, .rv-panel.is-open { transform: translateX(0); }
.rv-panel:target ~ .rv-scrim, .rv-scrim.is-on { opacity: 1; visibility: visible; }

.rv-panel__hd {
    padding: 22px 24px 17px; border-bottom: 1px solid var(--line);
    display: flex; justify-content: space-between; align-items: flex-start; gap: 14px;
}
.rv-panel__hd h2 { margin: 0 0 5px; font-size: 19px; font-weight: 700; letter-spacing: -.024em; color: var(--ink); }
.rv-panel__hd p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.rv-panel__x {
    border: 0; background: var(--tint); width: 34px; height: 34px; border-radius: 50%;
    cursor: pointer; color: var(--muted); font-size: 17px; flex: 0 0 auto; line-height: 1;
    text-decoration: none; display: grid; place-items: center;
}
.rv-panel__x:hover { background: var(--line-soft); color: var(--ink); }
.rv-panel form { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.rv-panel__body { padding: 20px 24px; overflow: auto; flex: 1; }
.rv-panel__ft { padding: 16px 24px 20px; border-top: 1px solid var(--line); background: var(--tint); }
.rv-panel__note { font-size: 12px; color: var(--muted); margin: 11px 0 0; line-height: 1.55; text-align: center; }

.rv-quota { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.rv-quota b { color: var(--ink); }

.rv-attest {
    display: flex; gap: 11px; align-items: flex-start; padding: 13px 14px;
    border-radius: 11px; background: var(--tint); border: 1px solid var(--line);
    font-size: 13.5px; line-height: 1.5; color: var(--ink-2);
}
.rv-attest input { margin-top: 2px; width: 17px; height: 17px; flex: 0 0 auto; accent-color: var(--go); }

/* The page behind the panel must not scroll under it — on a phone the panel is
 * full width and a scrolling page beneath reads as the form losing its place. */
body.rv-locked { overflow: hidden; }

/* Focus must stay obvious inside a panel that traps it. */
.rv-panel :focus-visible { outline: 2px solid var(--go); outline-offset: 2px; border-radius: 4px; }

@media (max-width: 900px) {
    .rvt__hd { display: none; }
    .rvt__r { grid-template-columns: 1fr; gap: 6px; }
    .rv-panel { width: 100%; }
    .rv-item__body, .rv-item .hrhs-rb { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .rv-panel, .rv-scrim { transition: none; }
}

/* ── 4.76.0: how asking works — the explainer on the ask panel ─────── */
.rv-how { margin: 14px 0 0; background: var(--tint); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.rv-how__t { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; }
.rv-how__t a, .rv-how__t a:link, .rv-how__t a:visited, .rv-how__t a:hover, .rv-how__t a:focus, .rv-how__t a:active {
  font-size: 12px; letter-spacing: 0; text-transform: none; font-weight: 700; color: var(--go) !important; text-decoration: none !important; }
.rv-how__t a:hover { text-decoration: underline !important; }
.rv-how__l { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.rv-how__l li { display: flex; gap: 11px; font-size: 13.5px; line-height: 1.45; color: var(--ink); }
.rv-how__l li i { width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--green);
  display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 800; flex: 0 0 auto; }
.rv-how__l li b { display: block; font-weight: 700; }
.rv-how__l li small { display: block; color: var(--muted); font-size: 12.5px; }

/* ── 4.76.0: the help page, /pros/reviews/ ──────────────────────────── */
.rv-help { max-width: 760px; }
.rv-help__h { font-size: 34px; letter-spacing: -.03em; margin: 0 0 8px; font-weight: 800; line-height: 1.1; }
.rv-help__lede { font-size: 17px; color: var(--ink-2); margin: 0 0 26px; line-height: 1.55; }
.rv-help h2 { font-size: 19px; letter-spacing: -.02em; margin: 30px 0 10px; font-weight: 700; }
.rv-help p { font-size: 15px; line-height: 1.65; color: var(--ink-2); margin: 0 0 12px; }
.rv-help ul { margin: 0 0 12px; padding-left: 20px; font-size: 15px; color: var(--ink-2); line-height: 1.65; }
.rv-help ul li { margin-bottom: 4px; }
.rv-help ul li b { color: var(--ink); }
.rv-help__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 14px 0; }
.rv-help__steps div { background: var(--ink); color: #fff; border-radius: 14px; padding: 16px; }
.rv-help__steps i { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--green); color: var(--ink); font-style: normal; font-weight: 800; font-size: 12px; margin-bottom: 8px; }
.rv-help__steps b { display: block; font-size: 15px; margin-bottom: 4px; color: #fff; }
.rv-help__steps span { font-size: 13px; color: #B9C6D8; line-height: 1.5; }
.rv-help__mail { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin: 12px 0 18px; }
.rv-help__from { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.rv-help__subj { font-weight: 700; margin-bottom: 8px; color: var(--ink); }
.rv-help__mail p { font-size: 14px; margin: 0 0 8px; }
.rv-help__dim { color: var(--muted) !important; font-size: 13px !important; }
.rv-help__nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 14px 0 6px; }
.rv-help__nums div { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.rv-help__nums b { display: block; font-size: 26px; letter-spacing: -.03em; line-height: 1.1; color: var(--ink); }
.rv-help__nums span { font-size: 13px; color: var(--muted); line-height: 1.5; }
.rv-help__honest { border-left: 3px solid var(--green); padding: 4px 0 4px 16px; margin: 16px 0; font-size: 15px; line-height: 1.65; color: var(--ink-2); }
.rv-help__honest b { color: var(--ink); }
.rv-help__cta { margin-top: 22px; }
@media (max-width: 860px) {
  .rv-help__h { font-size: 27px; }
  .rv-help__steps { grid-template-columns: 1fr; }
  .rv-help__nums { grid-template-columns: 1fr; }
}
