/* Serpent API - customer reviews: the /reviews page, the homepage strip, the dashboard card and the review form.
   Built only from the site's own tokens (css/styles.css): light and dark follow [data-theme="dark"], nothing here
   sets a colour of its own except through a token or a mix of tokens. Phone first: it holds at 390px and 320px. */

:root {
  --rv-star: var(--warning);
  --rv-star-off: var(--border-light);
  --rv-accent-text: var(--accent-hover);
  --rv-error-text: var(--error);
  --rv-radius: 16px;
}
@supports (color: color-mix(in srgb, red, blue)) {
  /* amber is too pale on white to read as a shape (about 2:1); a deeper mix of the same token clears 3:1 */
  :root {
    --rv-star: color-mix(in srgb, var(--warning) 72%, black);
    --rv-error-text: color-mix(in srgb, var(--error) 78%, black);
  }
}
[data-theme="dark"] {
  --rv-star: var(--warning);
  --rv-accent-text: var(--accent-light);
  --rv-error-text: var(--error);
}

/* native controls (the sort list, the checkbox, scrollbars) follow the site's light/dark choice too */
.rv-select, .rv-input, .rv-check input, .rv-dialog { color-scheme: light; }
[data-theme="dark"] .rv-select, [data-theme="dark"] .rv-input, [data-theme="dark"] .rv-check input, [data-theme="dark"] .rv-dialog { color-scheme: dark; }

/* ── small shared pieces ─────────────────────────────────────────────── */
.rv-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.rv-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
:where(.rv-wrap, .rv-strip, .rv-mine, .rv-dialog) :focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
:where(.rv-wrap, .rv-strip, .rv-mine, .rv-dialog) .btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
:where(.rv-wrap, .rv-strip, .rv-mine, .rv-dialog) .btn {
  min-height: 44px;
}
/* an author rule such as .btn { display: inline-flex } would otherwise beat the browser's own [hidden] */
:where(.rv-wrap, .rv-strip, .rv-mine, .rv-dialog) [hidden] { display: none !important; }
/* the page behind a modal form stays put */
html:has(.rv-dialog[open]) { overflow: hidden; }

/* Stars: five glyphs painted with a hard colour stop, so 4.6 really fills 92% of the row.
   The row is decoration; the words (aria-label and the number beside it) carry the meaning. */
.rv-stars {
  display: inline-block;
  line-height: 1;
  font-size: 1.1rem;
  vertical-align: middle;
  white-space: nowrap;
}
.rv-stars--lg { font-size: 1.6rem; }
.rv-stars-glyphs {
  display: inline-block;
  letter-spacing: 0.06em;
  margin-right: -0.06em;
  color: var(--rv-star);
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .rv-stars-glyphs {
    background: linear-gradient(90deg, var(--rv-star) var(--rv-fill, 0%), var(--rv-star-off) var(--rv-fill, 0%));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}
@media (forced-colors: active) {
  .rv-stars-glyphs {
    background: none;
    -webkit-text-fill-color: currentColor;
    color: CanvasText;
  }
}

.rv-pill {
  display: inline-block;
  padding: 0.1rem 0.65rem;
  border: 1px solid var(--border-light);
  border-radius: 9999px;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}
.rv-pill[data-badge="paying"] { color: var(--rv-accent-text); border-color: currentColor; }
.rv-mark {
  display: inline-block;
  padding: 0.1rem 0.65rem;
  border-radius: 9999px;
  background: var(--accent-dim);
  color: var(--rv-accent-text);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
}

/* ── the review card (page, strip and dashboard use the same one) ────── */
.rv-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--rv-radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--card-shadow);
  min-width: 0;
}
.rv-card[data-highlighted="true"] { border-inline-start: 3px solid var(--accent); }
.rv-card-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.4rem 0.75rem; }
.rv-card-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.35;
  color: var(--text-primary);
  overflow-wrap: anywhere;
}
.rv-card-body {
  margin: 0;
  color: var(--text-primary);
  font-size: 0.97rem;
  line-height: 1.65;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.rv-card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  margin-top: 0.25rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}
.rv-card-who { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.5rem; min-width: 0; overflow-wrap: anywhere; }
.rv-card-name { min-width: 0; overflow-wrap: anywhere; font-weight: 600; color: var(--text-primary); }
.rv-card-company { min-width: 0; overflow-wrap: anywhere; color: var(--text-secondary); }
.rv-card-date { margin-left: auto; color: var(--text-secondary); font-size: 0.85rem; }

/* ── /reviews: hero and summary ──────────────────────────────────────── */
.rv-hero {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: calc(var(--nav-h, 93px) + 2.25rem) 0 2.25rem;
}
.rv-title {
  margin: 0;
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.rv-lede { margin: 0.6rem 0 0; max-width: 40rem; color: var(--text-secondary); font-size: 1.05rem; }
.rv-summary {
  display: grid;
  grid-template-columns: minmax(9rem, 13rem) minmax(0, 1fr);
  gap: 1.25rem 2.5rem;
  align-items: center;
  margin-top: 1.75rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--rv-radius);
  box-shadow: var(--card-shadow);
}
.rv-summary[data-empty="true"] { display: block; text-align: center; padding: 2rem 1.25rem; }
.rv-score { text-align: center; }
.rv-avg { font-size: 3.5rem; font-weight: 800; line-height: 1; letter-spacing: -0.02em; color: var(--text-primary); }
.rv-score .rv-stars { margin-top: 0.6rem; }
.rv-count { margin-top: 0.4rem; color: var(--text-secondary); font-size: 0.95rem; }
.rv-bars { display: grid; gap: 0.15rem; }
.rv-bars-hint { margin: 0 0 0.35rem; color: var(--text-secondary); font-size: 0.85rem; }
.rv-bar {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) 2.25rem;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 44px;
  padding: 0.25rem 0.5rem;
  background: none;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--text-primary);
  font: inherit;
  font-size: 0.92rem;
  text-align: left;
  cursor: pointer;
}
.rv-bar:hover:not([disabled]) { background: var(--bg-card-hover); }
.rv-bar[aria-pressed="true"] { background: var(--accent-dim); border-color: var(--accent); }
.rv-bar[disabled] { cursor: default; color: var(--text-secondary); }
.rv-bar-label { font-weight: 600; white-space: nowrap; }
.rv-bar-label span { color: var(--rv-star); }
.rv-bar-track { display: block; height: 8px; border-radius: 9999px; background: var(--border); overflow: hidden; }
.rv-bar-fill { display: block; height: 100%; width: var(--rv-w, 0%); border-radius: 9999px; background: var(--rv-star); }
.rv-bar-count { text-align: right; font-variant-numeric: tabular-nums; color: var(--text-secondary); }

/* ── /reviews: toolbar, list, side panels ────────────────────────────── */
.rv-main { padding: 2rem 0 4.5rem; }
.rv-layout { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: 2rem; align-items: start; }
.rv-results-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0.75rem 1.25rem; margin-bottom: 1rem; }
.rv-h2 { margin: 0; font-size: 1.35rem; font-weight: 700; }
.rv-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.75rem 1.25rem; }
.rv-control-label { display: block; margin-bottom: 0.3rem; color: var(--text-secondary); font-size: 0.8rem; font-weight: 600; }
.rv-select, .rv-input {
  width: 100%;
  min-height: 44px;
  padding: 0.6rem 0.85rem;
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  font: inherit;
  font-size: 1rem;
}
.rv-select { width: auto; min-width: 11rem; max-width: 100%; }
.rv-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.rv-chip {
  min-height: 44px;
  padding: 0.35rem 0.95rem;
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  border-radius: 9999px;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}
.rv-chip:hover { border-color: var(--accent); color: var(--text-primary); }
.rv-chip[aria-pressed="true"] { background: var(--accent-dim); color: var(--rv-accent-text); border-color: var(--accent); font-weight: 600; }
.rv-list { display: grid; gap: 1rem; }
.rv-more { display: flex; justify-content: center; margin-top: 1.5rem; }
.rv-more[hidden] { display: none; }
.rv-empty {
  padding: 2.5rem 1.25rem;
  text-align: center;
  color: var(--text-secondary);
  border: 1px dashed var(--border-light);
  border-radius: var(--rv-radius);
}
.rv-empty p { margin: 0 auto 1rem; max-width: 30rem; }
.rv-empty p:last-child { margin-bottom: 0; }
.rv-empty strong { color: var(--text-primary); }
.rv-error {
  padding: 1.5rem 1.25rem;
  text-align: center;
  color: var(--text-primary);
  border: 1px solid var(--error);
  border-radius: var(--rv-radius);
}
.rv-error p { margin: 0 0 0.9rem; }

.rv-side { display: grid; gap: 1rem; position: sticky; top: calc(var(--nav-h, 93px) + 1rem); }
.rv-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--rv-radius);
  padding: 1.25rem 1.35rem;
}
.rv-panel h2 { margin: 0 0 0.6rem; font-size: 1.05rem; font-weight: 700; }
.rv-panel p { margin: 0; color: var(--text-secondary); font-size: 0.93rem; }
.rv-link-list { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.85rem; }
.rv-how { list-style: none; display: grid; gap: 0.7rem; padding: 0; margin: 0; }
.rv-how li { position: relative; padding-left: 1.2rem; color: var(--text-secondary); font-size: 0.93rem; line-height: 1.55; }
.rv-how li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--accent); }
.rv-how strong { color: var(--text-primary); font-weight: 600; }
.rv-noscript { padding: 1rem; color: var(--text-secondary); }

/* loading skeletons */
.rv-skel { display: grid; gap: 0.7rem; padding: 1.25rem 1.35rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--rv-radius); }
.rv-skel-line { height: 0.9rem; border-radius: 6px; background: var(--skeleton-from); }
.rv-skel-line:nth-child(1) { width: 30%; }
.rv-skel-line:nth-child(2) { width: 70%; height: 1.1rem; }
.rv-skel-line:nth-child(3) { width: 100%; }
.rv-skel-line:nth-child(4) { width: 85%; }
@media (prefers-reduced-motion: no-preference) {
  .rv-skel-line, .rv-summary[aria-busy="true"] .rv-skel-line {
    background: linear-gradient(90deg, var(--skeleton-from) 25%, var(--skeleton-via) 50%, var(--skeleton-from) 75%);
    background-size: 200% 100%;
    animation: rv-shimmer 1.5s infinite;
  }
  .rv-bar, .rv-chip, .rv-star-label { transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease; }
}
@keyframes rv-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── homepage strip ──────────────────────────────────────────────────── */
.rv-strip { padding: 4rem 0; background: var(--bg-primary); border-top: 1px solid var(--border); }
.rv-strip[hidden] { display: none; }
.rv-strip-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 1.5rem; margin-bottom: 1.5rem; }
.rv-strip-title { margin: 0; font-size: clamp(1.4rem, 4.5vw, 1.9rem); font-weight: 800; line-height: 1.2; }
.rv-strip-score { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.6rem; color: var(--text-secondary); font-size: 0.95rem; }
.rv-strip-score strong { color: var(--text-primary); font-size: 1.15rem; }
.rv-strip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr)); gap: 1rem; }
.rv-strip .rv-card-body {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  line-clamp: 6;
  overflow: hidden;
}
.rv-strip-more { margin-top: 1.5rem; text-align: center; font-weight: 600; }

/* ── dashboard card ──────────────────────────────────────────────────── */
.rv-mine {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--rv-radius);
  box-shadow: var(--card-shadow);
}
.rv-mine[data-state="ask"] { background: linear-gradient(180deg, var(--accent-dim), transparent 70%), var(--bg-card); }
.rv-mine-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; margin-bottom: 0.6rem; }
.rv-mine h2 { margin: 0; font-size: 1.25rem; font-weight: 600; }
.rv-mine p { margin: 0 0 0.9rem; color: var(--text-secondary); }
.rv-mine .rv-fine { font-size: 0.85rem; margin-bottom: 0; }
.rv-mine-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.75rem; margin-top: 1rem; }
.rv-ghost {
  min-height: 44px;
  padding: 0.5rem 0.85rem;
  background: none;
  border: 0;
  color: var(--text-secondary);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.rv-ghost:hover { color: var(--text-primary); }
.rv-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.15rem 0.75rem;
  border: 1px solid var(--border-light);
  border-radius: 9999px;
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 600;
}
.rv-status::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--rv-tone, var(--text-muted)); }
.rv-status[data-tone="pending"] { --rv-tone: var(--warning); }
.rv-status[data-tone="published"] { --rv-tone: var(--success); }
.rv-status[data-tone="rejected"] { --rv-tone: var(--error); }
.rv-status[data-tone="edit"] { --rv-tone: var(--accent); }
.rv-mine-review { margin: 0.5rem 0 0.9rem; padding: 1rem 1.1rem; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 12px; }
.rv-mine-review .rv-card-title { margin-top: 0.4rem; }
.rv-mine-review .rv-card-body { margin-top: 0.3rem; }
.rv-mine-review .rv-card-who { margin-top: 0.6rem; font-size: 0.9rem; }
.rv-mine-label { margin: 0 0 0.25rem; color: var(--text-secondary); font-size: 0.8rem; font-weight: 600; }
.rv-confirm { margin-top: 1rem; padding: 0.9rem 1rem; border: 1px solid var(--border-light); border-radius: 12px; }
.rv-confirm p { margin-bottom: 0.6rem; color: var(--text-primary); }

/* ── the form dialog ─────────────────────────────────────────────────── */
.rv-dialog {
  width: min(40rem, calc(100vw - 2rem));
  max-width: none;
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  padding: 0;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.35);
  overflow: hidden;
}
.rv-dialog[open] { display: flex; flex-direction: column; }
.rv-dialog::backdrop { background: rgb(0 0 0 / 0.55); }
.rv-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.5rem 0.75rem; border-bottom: 1px solid var(--border); }
.rv-dialog-title { margin: 0; font-size: 1.3rem; font-weight: 700; line-height: 1.3; }
.rv-dialog-lede { margin: 0.25rem 0 0; color: var(--text-secondary); font-size: 0.92rem; }
.rv-x {
  flex: none;
  width: 44px;
  height: 44px;
  margin: -0.4rem -0.6rem 0 0;
  background: none;
  border: 0;
  border-radius: 10px;
  color: var(--text-secondary);
  font: inherit;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.rv-x:hover { color: var(--text-primary); background: var(--bg-card-hover); }
.rv-dialog-body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 1.25rem 1.5rem 1.5rem; }
.rv-field { margin: 0 0 1.15rem; padding: 0; border: 0; min-width: 0; }
.rv-label { display: block; margin: 0 0 0.35rem; padding: 0; font-size: 0.92rem; font-weight: 600; color: var(--text-primary); }
.rv-opt { font-weight: 400; color: var(--text-secondary); }
.rv-hint { margin: 0.3rem 0 0; color: var(--text-secondary); font-size: 0.85rem; }
.rv-input[aria-invalid="true"] { border-color: var(--rv-error-text); }
textarea.rv-input { min-height: 8.5rem; resize: vertical; line-height: 1.55; }
.rv-input:focus-visible { border-color: var(--accent); }
.rv-field-foot { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }
.rv-error-text { margin: 0.35rem 0 0; color: var(--rv-error-text); font-size: 0.88rem; font-weight: 500; overflow-wrap: anywhere; }
.rv-error-text:empty { display: none; }
.rv-counter { flex: none; margin: 0.3rem 0 0 auto; color: var(--text-secondary); font-size: 0.82rem; font-variant-numeric: tabular-nums; }
.rv-counter[data-state="bad"] { color: var(--rv-error-text); }
.rv-preview { margin: 0.4rem 0 0; color: var(--text-secondary); font-size: 0.9rem; overflow-wrap: anywhere; }
.rv-rate { display: flex; flex-wrap: wrap; gap: 0.1rem; }
.rv-star-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border-radius: 10px;
  font-size: 2rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
}
.rv-star-label.is-on { color: var(--rv-star); }
.rv-rate input:focus-visible + .rv-star-label { outline: 2px solid var(--accent); outline-offset: 2px; }
.rv-rate-caption { min-height: 1.4em; margin: 0.15rem 0 0; color: var(--text-secondary); font-size: 0.9rem; }
.rv-check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.7rem; align-items: start; }
.rv-check input { width: 1.3rem; height: 1.3rem; margin-top: 0.15rem; accent-color: var(--accent); }
.rv-check label { font-size: 0.92rem; line-height: 1.5; color: var(--text-primary); }
.rv-policy { margin: 0 0 1.25rem; padding: 0.85rem 1rem; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 12px; color: var(--text-secondary); font-size: 0.86rem; line-height: 1.55; }
.rv-form-error { margin: 0 0 1rem; padding: 0.8rem 1rem; border: 1px solid var(--rv-error-text); border-radius: 12px; color: var(--rv-error-text); font-size: 0.92rem; overflow-wrap: anywhere; }
.rv-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.6rem 0.75rem; }
.rv-spin {
  display: inline-block;
  width: 1em;
  height: 1em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
}
@media (prefers-reduced-motion: no-preference) {
  .rv-spin { animation: rv-spin 0.7s linear infinite; }
}
@keyframes rv-spin { to { transform: rotate(360deg); } }
.rv-done { text-align: center; padding: 0.5rem 0 0; }
.rv-done-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 0.8rem;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--rv-accent-text);
  font-size: 1.6rem;
  font-weight: 700;
}
.rv-done h3 { margin: 0 0 0.4rem; font-size: 1.3rem; }
.rv-done p { margin: 0 auto 1rem; max-width: 28rem; color: var(--text-secondary); }
.rv-done .rv-link-list { justify-content: center; }
.rv-done h4 { margin: 1.25rem 0 0; font-size: 1rem; }

/* ── narrow screens ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .rv-layout { grid-template-columns: minmax(0, 1fr); }
  .rv-side { position: static; }
}
@media (max-width: 768px) {
  .rv-hero { padding-top: calc(var(--nav-h, 69px) + 1.5rem); padding-bottom: 1.5rem; }
  .rv-summary { grid-template-columns: minmax(0, 1fr); padding: 1.25rem; }
  .rv-avg { font-size: 3rem; }
}
@media (max-width: 560px) {
  .rv-wrap { padding: 0 1rem; }
  .rv-card, .rv-skel { padding: 1.1rem 1.1rem; }
  .rv-card-date { margin-left: 0; width: 100%; }
  .rv-controls { width: 100%; }
  .rv-select { width: 100%; }
  .rv-strip { padding: 3rem 0; }
  .rv-mine { padding: 1.25rem; }
  .rv-mine-actions .btn { flex: 1 1 100%; }
  .rv-dialog {
    width: 100vw;
    max-height: 92vh;
    max-height: 92dvh;
    margin: auto 0 0;
    border-radius: 20px 20px 0 0;
    border-bottom: 0;
  }
  .rv-dialog-head { padding: 1rem 1rem 0.6rem; }
  .rv-dialog-body { padding: 1rem 1rem 1.25rem; }
  .rv-actions { flex-direction: column-reverse; }
  .rv-actions .btn { width: 100%; }
}
@media (max-width: 380px) {
  .rv-wrap { padding: 0 0.85rem; }
  .rv-bar { grid-template-columns: 2.25rem minmax(0, 1fr) 1.9rem; gap: 0.5rem; padding: 0.25rem 0.25rem; }
  .rv-avg { font-size: 2.6rem; }
  .rv-star-label { min-width: 40px; font-size: 1.8rem; }
  .rv-chip { padding: 0.35rem 0.75rem; font-size: 0.85rem; }
  .rv-summary { padding: 1rem; }
  .rv-dialog-title { font-size: 1.15rem; }
}
