/* ===================================================================
   /customer-reviews — Customer Stories (+ the moderation preview)
   -------------------------------------------------------------------
   Built on the site.css tokens; loaded only by this page and /review-admin.
   Restraint is the point: hairline borders, one shadow level, the brand
   magenta reserved for the primary action. Stars are amber #b45309
   (5.0:1 on white), not magenta (#e2208c is 4.36:1 and fails AA).
   =================================================================== */

:root {
    --rv-star: #b45309;
    --rv-star-off: #d3d7e0;
}

/* ---------- Hero ---------- */
.rv-hero .h-display { max-width: 18ch; }
.rv-hero .lede { max-width: 60ch; }
.rv-hero-sub { color: var(--ink-50); max-width: 58ch; margin: 0; }
.rv-btn { text-decoration: none; }
.rv-btn-quiet {
    display: inline-flex; align-items: center; min-height: 52px; padding: 0 22px;
    border: 1px solid var(--line-strong); border-radius: 999px;
    color: var(--ink-900); font-weight: 600; text-decoration: none;
    transition: border-color .2s ease, background .2s ease;
}
.rv-btn-quiet:hover { border-color: var(--ink-50); background: var(--surface-2); color: var(--ink); }

.rv-stats {   /* 1px gaps over a hairline background: dividers stay right however the cells wrap */
    display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1px;
    border: 1px solid var(--line); border-radius: var(--r); background: var(--line);
    margin: 0; overflow: hidden;
}
.rv-stat { padding: 20px 22px; background: var(--surface); }
.rv-stat dt { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-50); margin-bottom: 6px; }
.rv-stat dd { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; }
.rv-stat-num { font-family: var(--font-display); font-size: 2.1rem; line-height: 1; color: var(--ink); }
.rv-stat-of { color: var(--ink-50); font-size: .95rem; }
.rv-stats-note { font-size: .8rem; color: var(--ink-50); margin: 10px 2px 0; }

.rv-steps { list-style: none; counter-reset: rv; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.rv-steps li { counter-increment: rv; position: relative; padding: 0 0 18px 30px; }
.rv-steps li:last-child { padding-bottom: 0; }
.rv-steps li::before {
    content: counter(rv); position: absolute; left: -13px; top: 0;
    width: 24px; height: 24px; border-radius: 50%;
    background: var(--surface); border: 2px solid var(--ink-900);
    font-size: .75rem; font-weight: 700; color: var(--ink-900);
    display: grid; place-items: center;
}
.rv-steps strong { display: block; color: var(--ink-900); font-size: .95rem; }
.rv-steps span { display: block; font-size: .875rem; color: var(--ink-50); line-height: 1.55; }

/* ---------- Stars ---------- */
.rv-stars { display: inline-flex; gap: 2px; align-items: center; }
.rv-stars svg { display: block; fill: var(--rv-star-off); }
.rv-stars svg.on { fill: var(--rv-star); }
.rv-stars-sm svg { width: 14px; height: 14px; }

/* ---------- Filter ---------- */
.rv-filter ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 clamp(28px, 4vw, 44px); padding: 0; }
.rv-filter a {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
    border: 1px solid var(--line-strong); border-radius: 999px;
    color: var(--ink-70); font-size: .9rem; font-weight: 600; text-decoration: none;
    transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.rv-filter a:hover { border-color: var(--ink-50); color: var(--ink); }
.rv-filter a[aria-current="page"] { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }
.rv-count { font-size: .78rem; font-weight: 700; opacity: .75; }

/* ---------- Sections ---------- */
.rv-section + .rv-section { margin-top: clamp(44px, 6vw, 72px); padding-top: clamp(36px, 5vw, 56px); border-top: 1px solid var(--line); }
.rv-section-head { display: grid; gap: 8px; margin-bottom: clamp(20px, 3vw, 30px); max-width: 68ch; }
.rv-section-note { color: var(--ink-50); font-size: .95rem; line-height: 1.65; }
.rv-sep { margin: 0 10px; color: var(--ink-40); }

/* ---------- Review card ---------- */
.rv-grid { display: grid; gap: clamp(14px, 2vw, 22px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.rv-card {
    display: flex; flex-direction: column; gap: 10px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
    padding: 22px 22px 18px;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.rv-card:hover { border-color: var(--line-strong); box-shadow: var(--sh-sm); }
.rv-card:target { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.rv-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rv-tag {
    font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--ink-50); white-space: nowrap;
}
.rv-item { margin: 0; font-size: .85rem; font-weight: 600; color: var(--ink-70); }
.rv-item a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(29,78,216,.35); }
.rv-item a:hover { text-decoration-color: currentColor; }
.rv-title { font-family: var(--font-heading); font-weight: 400; font-size: 1.15rem; line-height: 1.35; color: var(--ink); margin: 2px 0 0; }
.rv-body { color: var(--ink-70); font-size: .94rem; line-height: 1.7; }
.rv-body p { margin: 0; }
/* Long reviews fold to six lines once the script has measured them. */
.rv-body.is-clamped { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.rv-more {
    align-self: flex-start; background: none; border: 0; padding: 6px 0; min-height: 32px;
    color: var(--accent); font-weight: 600; font-size: .875rem; cursor: pointer;
    text-decoration: underline; text-underline-offset: 3px;
}
.rv-photos { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 0; padding: 0; }
.rv-photos li { width: calc((100% - 16px) / 3); max-width: 120px; }
.rv-photo {
    display: block; position: relative; overflow: hidden; border-radius: 8px;
    background: var(--surface-3); aspect-ratio: 1;
}
.rv-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.rv-photo:hover img { transform: scale(1.04); }
.rv-by {
    display: flex; align-items: center; gap: 10px;
    margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line);
    font-size: .85rem;
}
.rv-avatar {
    flex: 0 0 34px; height: 34px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--surface-3); color: var(--ink-900); font-weight: 700;
}
.rv-by-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.rv-name { font-weight: 700; color: var(--ink-900); }
.rv-company { color: var(--ink-50); overflow-wrap: anywhere; }
.rv-by time { margin-left: auto; color: var(--ink-50); white-space: nowrap; font-size: .8rem; }

.rv-pager { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 36px; font-size: .9rem; color: var(--ink-50); }
.rv-pager a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink-900); font-weight: 600; text-decoration: none; }
.rv-pager a:hover { border-color: var(--ink-50); }

/* ---------- Gallery ---------- */
.rv-gallery { display: grid; gap: clamp(12px, 2vw, 20px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); margin: 0; padding: 0; }
.rv-gallery .rv-photo { aspect-ratio: 4 / 3; border-radius: var(--r-sm); }
.rv-gallery figcaption { font-size: .82rem; line-height: 1.5; color: var(--ink-50); margin-top: 10px; }
.rv-fig-link { display: inline-block; margin-left: 4px; color: var(--accent); font-weight: 600; }

/* ---------- Empty state ---------- */
.rv-empty {
    display: flex; gap: 22px; align-items: flex-start;
    padding: clamp(24px, 4vw, 40px); border: 1px dashed var(--line-strong); border-radius: var(--r);
    background: var(--surface-2); max-width: 860px;
}
.rv-empty > svg { flex: 0 0 36px; color: var(--ink-50); margin-top: 4px; }
.rv-empty p { color: var(--ink-70); max-width: 62ch; }
@media (max-width: 575.98px) { .rv-empty { flex-direction: column; } }

/* ---------- Machine & service showcase ---------- */
.rv-cat-grid { display: grid; gap: clamp(14px, 2vw, 22px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.rv-svc-grid { display: grid; gap: clamp(14px, 2vw, 22px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.rv-cat, .rv-svc {
    position: relative; display: flex; flex-direction: column;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden;
}
.rv-svc { padding: 24px 22px 20px; }
.rv-cat-figure { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.rv-cat-figure img { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); object-fit: contain; }
.rv-cat-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--ink-40); font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.rv-cat-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 18px; }
.rv-cat-title { font-family: var(--font-heading); font-weight: 400; font-size: 1.12rem; line-height: 1.3; margin: 0 0 8px; color: var(--ink); }
.rv-cat-title a { color: inherit; text-decoration: none; }
.rv-cat-title a:hover { color: var(--brand-700); }
.rv-cat-text { font-size: .88rem; line-height: 1.6; color: var(--ink-50); margin: 0 0 12px; }
.rv-cat-meta { font-size: .78rem; font-weight: 600; color: var(--ink-50); margin: 0 0 10px; }
.rv-cat-actions { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: auto; padding-top: 6px; }
.rv-link {
    display: inline-flex; align-items: center; min-height: 44px;
    font-weight: 600; font-size: .9rem; color: var(--ink-900);
    text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-strong);
}
.rv-link:hover { text-decoration-color: currentColor; color: var(--ink); }
.rv-link-strong { color: var(--brand-700); text-decoration-color: rgba(168,18,100,.35); }
.rv-link-strong:hover { color: var(--brand-700); }
.rv-svc-icon {
    display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 16px;
    border-radius: 12px; background: var(--brand-tint); color: var(--brand-700);
}
.rv-snippet { margin: 0 0 12px; padding: 12px 14px; background: var(--surface-2); border-left: 2px solid var(--rv-star); border-radius: 0 8px 8px 0; }
.rv-snippet p { margin: 6px 0 4px; font-size: .86rem; line-height: 1.55; color: var(--ink-70); }
.rv-snippet footer { font-size: .78rem; color: var(--ink-50); }
.rv-snippet a { color: var(--accent); }

/* ---------- Q & A ---------- */
.rv-qa { margin: 0; display: grid; gap: 0; }
.rv-qa > div { padding: 18px 0; border-top: 1px solid var(--line); }
.rv-qa > div:last-child { border-bottom: 1px solid var(--line); }
.rv-qa dt { font-weight: 700; color: var(--ink-900); margin-bottom: 6px; }
.rv-qa dd { margin: 0; color: var(--ink-70); line-height: 1.7; }
.rv-qa a { color: var(--brand-700); }

/* ---------- Form ---------- */
.rv-share { background: linear-gradient(180deg, var(--surface-2), var(--surface) 70%); }
.rv-assure { margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.rv-assure li { position: relative; padding-left: 28px; font-size: .9rem; color: var(--ink-70); }
.rv-assure li::before {
    content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23067647' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") no-repeat center / contain;
}
.rv-form-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
    box-shadow: var(--sh-md); padding: clamp(20px, 3.4vw, 36px);
}
.rv-fieldset { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; position: relative; }
.rv-legend, .rv-label { font-weight: 600; font-size: .875rem; color: var(--ink-900); margin-bottom: 9px; float: none; width: auto; padding: 0; line-height: 1.4; display: block; }
.rv-legend .req, .rv-label .req { color: var(--brand-700); }

.rv-choice-row { display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 575.98px) { .rv-choice-row { grid-template-columns: 1fr; } }
.rv-choice { position: relative; display: block; cursor: pointer; margin: 0; }
.rv-choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.rv-choice-box {
    display: flex; flex-direction: column; gap: 3px; height: 100%; min-height: 64px;
    padding: 12px 14px; border: 1px solid var(--ink-40); border-radius: var(--r-sm);
    background: var(--surface); transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.rv-choice-box strong { color: var(--ink-900); font-size: .95rem; }
.rv-choice-box span { color: var(--ink-50); font-size: .8rem; line-height: 1.4; }
.rv-choice:hover .rv-choice-box { border-color: var(--ink-50); }
.rv-choice input:checked + .rv-choice-box { border-color: var(--brand-600); background: var(--brand-tint); box-shadow: inset 0 0 0 1px var(--brand-600); }
.rv-choice input:focus-visible + .rv-choice-box { outline: 3px solid var(--accent); outline-offset: 2px; }
.rv-fieldset[aria-invalid="true"] .rv-choice-box { border-color: #b42318; }

.rv-when { margin-bottom: 20px; }
.rv-when[hidden] { display: none; }

/* Star rating: real radios (arrow keys work), stars drawn by the labels.
   Without :has() the selected radio's own star still fills. */
.rv-rate { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.rv-rate input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rv-rate label { display: grid; place-items: center; width: 44px; height: 44px; cursor: pointer; border-radius: 8px; }
/* Unselected stars in the form are a control, so they need 3:1 against white (WCAG 1.4.11):
   --ink-40 is 3.2:1. The display stars on cards stay lighter. */
.rv-rate { --rv-star-off: var(--ink-40); }
.rv-rate label svg { fill: var(--rv-star-off); transition: fill .12s ease, transform .12s ease; }
.rv-rate label:hover svg { transform: scale(1.08); }
.rv-rate input:checked + label svg { fill: var(--rv-star); }
.rv-rate:has(input:checked) label svg { fill: var(--rv-star); }
.rv-rate:has(input:checked) input:checked + label ~ label svg { fill: var(--rv-star-off); }
.rv-rate:has(label:hover) label svg { fill: var(--rv-star); }
.rv-rate:has(label:hover) label:hover ~ label svg { fill: var(--rv-star-off); }
.rv-rate input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 0; }
.rv-rate-word { margin-left: 10px; font-size: .9rem; font-weight: 600; color: var(--ink-70); min-width: 6em; }
.rv-fieldset[aria-invalid="true"] .rv-rate label svg { fill: #f4c7c1; }

.rv-count-hint.is-over { color: #b42318; }

/* Photos */
.rv-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.rv-drop {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    min-height: 84px; padding: 16px; text-align: center;
    border: 1.5px dashed var(--ink-40); border-radius: var(--r-sm);
    background: var(--surface-2); color: var(--ink-70); cursor: pointer;
    transition: border-color .18s ease, background .18s ease;
}
.rv-drop:hover, .rv-drop.is-over { border-color: var(--brand-600); background: var(--brand-tint); }
.rv-drop strong { color: var(--brand-700); }
.rv-drop-or { color: var(--ink-50); }
.rv-file:focus-visible + .hint, .rv-upload:has(.rv-file:focus-visible) .rv-drop { outline: 3px solid var(--accent); outline-offset: 2px; }
.rv-upload:has(.rv-file[aria-invalid="true"]) .rv-drop { border-color: #b42318; }
.rv-previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin: 12px 0 0; padding: 0; }
.rv-previews li { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--surface-3); border: 1px solid var(--line); }
.rv-previews img { width: 100%; height: 100%; object-fit: cover; }
.rv-previews .rv-remove {
    position: absolute; top: 4px; right: 4px; width: 32px; height: 32px;
    display: grid; place-items: center; border: 0; border-radius: 50%;
    background: rgba(8,8,8,.72); color: #fff; cursor: pointer;
}
.rv-previews .rv-remove::after { content: ""; position: absolute; inset: -6px; }   /* 44px hit area */
.rv-previews .rv-remove:hover { background: var(--ink); }
.rv-previews .rv-size { position: absolute; left: 0; right: 0; bottom: 0; padding: 3px 6px; font-size: .7rem; color: #fff; background: linear-gradient(transparent, rgba(8,8,8,.7)); }

.rv-submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 20px; }
.rv-submit-row .btn-submit[disabled] { opacity: .7; cursor: progress; }
.rv-progress { display: flex; align-items: center; gap: 12px; flex: 1 1 200px; }
.rv-progress[hidden] { display: none; }
.rv-progress-bar { flex: 1; height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.rv-progress-bar span { display: block; height: 100%; width: 0; background: var(--brand-600); transition: width .2s ease; }
.rv-progress-text { font-size: .85rem; color: var(--ink-70); white-space: nowrap; }
.rv-fine { font-size: .8rem; color: var(--ink-50); margin: 14px 0 0; }

.rv-success { text-align: center; padding: clamp(16px, 4vw, 40px) 8px; }
.rv-success[hidden] { display: none; }
.rv-success svg { color: #067647; margin: 0 auto 14px; }
.rv-success-title { font-family: var(--font-heading); font-weight: 400; font-size: 1.4rem; color: var(--ink); margin: 0 0 8px; }
.rv-success p { color: var(--ink-70); max-width: 46ch; margin-left: auto; margin-right: auto; }
.rv-success a { color: var(--brand-700); font-weight: 600; }
.rv-success:focus { outline: none; }

/* ---------- Lightbox ---------- */
.rv-lightbox {
    width: min(1100px, 100vw - 24px); max-height: calc(100vh - 24px); padding: 0;
    border: 0; border-radius: var(--r); background: #0d0f14; color: #fff;
}
.rv-lightbox::backdrop { background: rgba(8,8,8,.82); }
.rv-lightbox-inner { position: relative; padding: 56px 64px 20px; }
.rv-lightbox figure { display: grid; gap: 12px; justify-items: center; }
.rv-lightbox img { max-width: 100%; max-height: calc(100vh - 190px); width: auto; height: auto; object-fit: contain; border-radius: 6px; }
.rv-lightbox figcaption { font-size: .9rem; color: rgba(255,255,255,.82); text-align: center; max-width: 70ch; }
.rv-lb-btn {
    position: absolute; width: 44px; height: 44px; display: grid; place-items: center;
    border: 1px solid rgba(255,255,255,.25); border-radius: 50%;
    background: rgba(255,255,255,.08); color: #fff; cursor: pointer;
}
.rv-lb-btn:hover { background: rgba(255,255,255,.18); }
.rv-lb-btn:focus-visible { outline: 3px solid var(--accent-bright); outline-offset: 2px; }
.rv-lb-close { top: 8px; right: 8px; }
.rv-lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.rv-lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.rv-lb-btn[hidden] { display: none; }
.rv-lb-count { text-align: center; font-size: .8rem; color: rgba(255,255,255,.65); margin: 8px 0 0; }
@media (max-width: 575.98px) {
    .rv-lightbox-inner { padding: 56px 12px 72px; }
    .rv-lb-prev, .rv-lb-next { top: auto; bottom: 14px; transform: none; }
    .rv-lb-prev { left: calc(50% - 54px); }
    .rv-lb-next { right: calc(50% - 54px); }
}

@media (prefers-reduced-motion: reduce) {
    .rv-photo img, .rv-card, .rv-rate label svg, .rv-progress-bar span { transition: none; }
    .rv-photo:hover img, .rv-rate label:hover svg { transform: none; }
}

/* ===================================================================
   /review-admin — moderation screen (noindex, staff only)
   =================================================================== */
.rva { background: var(--surface-2); min-height: 100vh; }
.rva-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px; background: var(--ink-900); color: #fff; }
.rva-bar a, .rva-bar button { color: #fff; }
.rva-bar strong { font-family: var(--font-heading); font-weight: 400; font-size: 1.15rem; }
.rva-main { max-width: 1240px; margin: 0 auto; padding: 24px 20px 64px; }
.rva-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.rva-table { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); border-collapse: separate; border-spacing: 0; overflow: hidden; font-size: .9rem; }
.rva-table th, .rva-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.rva-table th { background: var(--surface-3); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-70); }
.rva-table tr:last-child td { border-bottom: 0; }
.rva-table a { color: var(--accent); font-weight: 600; }
.rva-status { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; border: 1px solid; }
.rva-status-pending  { color: #93370d; background: #fffaeb; border-color: #fedf89; }
.rva-status-approved { color: #085d3a; background: #ecfdf3; border-color: #abefc6; }
.rva-status-rejected { color: #912018; background: #fef3f2; border-color: #fecdc9; }
.rva-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 20px 22px; margin-bottom: 20px; }
.rva-panel h2 { font-size: 1.05rem; font-weight: 700; color: var(--ink-900); margin: 0 0 14px; }
.rva-dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; font-size: .9rem; }
.rva-dl dt { color: var(--ink-50); font-weight: 600; }
.rva-dl dd { margin: 0; overflow-wrap: anywhere; }
.rva-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.rva-actions form { margin: 0; }
.rva-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-900); font-weight: 700; font-size: .9rem; cursor: pointer; text-decoration: none; }
.rva-btn:hover { border-color: var(--ink-50); }
.rva-btn-go { background: #067647; border-color: #067647; color: #fff; }
.rva-btn-go:hover { background: #085d3a; }
.rva-btn-danger { color: #b42318; border-color: #fecdc9; }
.rva-photo-edit { display: grid; grid-template-columns: 180px 1fr; gap: 18px; padding: 16px 0; border-top: 1px solid var(--line); }
.rva-photo-edit img { width: 180px; height: auto; border-radius: 8px; background: var(--surface-3); }
@media (max-width: 767.98px) { .rva-photo-edit { grid-template-columns: 1fr; } .rva-table thead { display: none; } .rva-table td { display: block; border: 0; padding: 4px 14px; } .rva-table tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); } }
.rva-warn { background: #fffaeb; border: 1px solid #fedf89; color: #93370d; border-radius: 8px; padding: 10px 14px; font-size: .88rem; }
.rva-log { list-style: none; padding: 0; margin: 0; font-size: .85rem; color: var(--ink-70); }
.rva-log li { padding: 6px 0; border-top: 1px solid var(--line); }
.rva-preview { max-width: 420px; }

/* ---------- Moderation inbox (2026-11-02) ----------
   Card list rather than a wide table: readable on a phone, the whole review
   visible, actions beside it. Status is text + colour, never colour alone. */
.rva-bar { position: sticky; top: 0; z-index: 10; }
.rva-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin: 8px 0 20px; }
.rva-h1 { font-family: var(--font-heading); font-weight: 400; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); color: var(--ink); margin: 0 0 4px; }
.rva-sub { color: var(--ink-50); margin: 0; font-size: .92rem; }
.rva-sub a { color: var(--accent); }
.rva-tiles { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.rva-tile {
    display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; min-height: 76px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
    text-decoration: none; color: var(--ink-70); transition: border-color .2s ease, box-shadow .2s ease;
}
.rva-tile:hover { border-color: var(--line-strong); box-shadow: var(--sh-xs); }
.rva-tile[aria-current="page"] { border-color: var(--ink-900); box-shadow: inset 0 0 0 1px var(--ink-900); }
.rva-tile-num { font-family: var(--font-display); font-size: 1.7rem; line-height: 1.1; color: var(--ink); }
.rva-tile-label { font-size: .82rem; font-weight: 600; }
.rva-tile-pending .rva-tile-num { color: #93370d; }
.rva-tools { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; margin-bottom: 18px; }
.rva-tools .field { margin: 0; }
.rva-search { flex: 1 1 280px; }
.rva-tools .rva-btn { min-height: 48px; }
.rva-link { display: inline-flex; align-items: center; min-height: 48px; color: var(--accent); font-weight: 600; }
.rva-bulk {
    position: sticky; top: 52px; z-index: 5;
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
    padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
    box-shadow: var(--sh-xs);
}
.rva-check-all { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; font-size: .9rem; color: var(--ink-900); margin: 0; cursor: pointer; }
.rva-check-all input, .rva-item-check input { width: 20px; height: 20px; accent-color: var(--ink-900); cursor: pointer; }
.rva-selected { font-size: .85rem; color: var(--ink-50); margin-right: auto; }
.rva-btn[disabled] { opacity: .5; cursor: not-allowed; }
.rva-btn-quiet { border-color: transparent; color: var(--accent); }
.rva-count-line { font-size: .82rem; color: var(--ink-50); margin: 12px 2px 8px; }
.rva-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rva-item {
    display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 6px 16px;
    background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--line-strong);
    border-radius: var(--r-sm); padding: 16px 18px;
}
.rva-item-pending  { border-left-color: #f79009; }
.rva-item-approved { border-left-color: #12b76a; }
.rva-item-rejected { border-left-color: #d0d5dd; background: var(--surface-2); }
.rva-item-check { padding-top: 2px; }
.rva-item-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: .82rem; color: var(--ink-70); }
.rva-rating { font-weight: 700; color: var(--ink-900); }
.rva-dot { color: var(--ink-40); margin: 0 2px; }
.rva-item-title { font-family: var(--font-heading); font-weight: 400; font-size: 1.15rem; line-height: 1.35; margin: 8px 0 4px; }
.rva-item-title a { color: var(--ink); text-decoration: none; }
.rva-item-title a:hover { color: var(--accent); text-decoration: underline; }
.rva-item-body { color: var(--ink-70); font-size: .92rem; line-height: 1.65; margin: 0 0 8px; max-width: 80ch;
    display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.rva-thumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 10px; }
.rva-thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; background: var(--surface-3); border: 1px solid var(--line); }
.rva-chip { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px; background: #fffaeb; border: 1px solid #fedf89; color: #93370d; font-size: .8rem; font-weight: 600; text-decoration: none; }
.rva-item-who { font-size: .84rem; color: var(--ink-50); margin: 0; overflow-wrap: anywhere; }
.rva-item-who strong { color: var(--ink-900); }
.rva-item-who a { color: var(--ink-70); }
.rva-item-actions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; min-width: 170px; }
.rva-item-actions .rva-btn { justify-content: center; }
.rva-empty { background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--r-sm); padding: 28px; color: var(--ink-70); }
.rva-empty a { color: var(--accent); }
@media (max-width: 767.98px) {
    .rva-item { grid-template-columns: 28px minmax(0, 1fr); }
    .rva-item-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; min-width: 0; }
    .rva-item-actions .rva-btn { flex: 1 1 140px; }
    .rva-bulk { top: 0; }
}
@media (max-width: 575.98px) {
    .rva-bar { flex-wrap: wrap; gap: 6px 14px; padding: 10px 16px; }
    .rva-bar form { flex-wrap: wrap; gap: 4px 14px !important; }
    .rva-bar .small:first-of-type { flex-basis: 100%; opacity: .75; }   /* "Signed in as …" on its own line */
}

/* Review box: grows with the text (customer-reviews.js); no counter, no visible limit. */
.rv-form textarea[data-rv-autogrow] { min-height: 140px; line-height: 1.6; overflow-y: auto; }
/* overflow is never hidden: if the height is ever stale, a scrollbar shows instead of text disappearing. */
