/* ===== Ulasan ===== */
.rv-feed { margin-bottom: var(--section); scroll-margin-top: 90px; position: relative; z-index: 5; }

/* bar + dropdown */
.rv-bar { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; }
.rv-bar-label { font-size: 12px; color: var(--muted); }
.rv-count { margin-left: auto; font-size: 12px; color: var(--muted); }
.rv-dd { position: relative; }
.rv-dd-btn { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 160px; padding: 7px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
.rv-dd-btn::after { content: ""; flex: none; width: 10px; height: 6px; background: currentColor; opacity: .55; clip-path: polygon(0 0, 100% 0, 50% 100%); transition: transform .2s; }
.rv-dd-btn[aria-expanded="true"]::after { transform: rotate(180deg); }
.rv-dd-btn:focus-visible, .rv-dd-list li:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rv-dd-list { position: absolute; top: calc(100% + 6px); left: 0; z-index: 20; min-width: 100%; margin: 0; padding: 6px; list-style: none; border: 1px solid var(--border); border-radius: 16px; background: var(--bg); box-shadow: var(--shadow); }
.rv-dd-list[hidden] { display: none; }
.rv-dd-list li { padding: 8px 12px; border-radius: 10px; font-size: 13px; white-space: nowrap; cursor: pointer; }
.rv-dd-list li[aria-selected="true"] { font-weight: 600; background: var(--soft); }
@media (hover: hover) { .rv-dd-list li:hover { background: var(--soft); } }

/* kartu: teks utama besar, data kecil */
.rv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.rv-card { display: flex; flex-direction: column; gap: 12px; padding: 18px 20px; }
.rv-card[hidden], .rv-empty[hidden], .rv-pager[hidden] { display: none; }
.rv-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.rv-pill { padding: 2px 8px; border-radius: 999px; background: var(--soft); color: var(--soft-text); font-size: 10px; font-weight: 500; white-space: nowrap; }
.rv-pill--svc::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 5px; border-radius: 50%; background: var(--accent); vertical-align: 1px; }
.rv-text { flex: 1; margin: 0; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.rv-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: auto; font-size: 10px; color: var(--muted); }
.rv-who { min-width: 0; overflow-wrap: anywhere; }
.rv-who b { margin-left: 6px; font-size: 11px; font-weight: 500; color: var(--soft-text); }
.rv-date { white-space: nowrap; }
.rv-empty { color: var(--muted); }
.rv-mask { display: inline-block; width: 3.2em; height: .7em; margin: 0 2px; border-radius: 3px; background: currentColor; opacity: .35; vertical-align: -1px; user-select: none; -webkit-user-select: none; }

/* paginasi + tombol */
.rv-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 20px; }
.rv-pager button { min-width: 34px; height: 34px; padding: 0 10px; border: 1px solid var(--border); border-radius: 999px; background: transparent; color: var(--text); font: inherit; font-size: 13px; cursor: pointer; }
.rv-pager button[aria-current="page"] { background: var(--strong); border-color: var(--strong); color: var(--on-strong); font-weight: 600; }
.rv-pager button:disabled { opacity: .35; cursor: default; }
.rv-pager span { align-self: center; color: var(--muted); }
@media (hover: hover) { .rv-pager button:not(:disabled):not([aria-current]):hover { background: var(--soft); } }


/* popup form */
html.rv-lock { overflow: hidden; }
.rv-modal { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.rv-modal[hidden] { display: none; }
.rv-scrim { position: absolute; inset: 0; background: color-mix(in srgb, var(--bg) 45%, transparent); }
.rv-form { position: relative; width: min(420px, 100%); max-height: calc(100dvh - 32px); margin: 0; padding: 24px; overflow: auto; background: var(--bg); border: 1px solid var(--border); border-radius: 20px; box-shadow: none; animation: rvpop .22s ease; }
.rv-form h2 { margin: 0 36px 18px 0; font-size: 18px; font-weight: 600; }
.rv-form .field { margin-bottom: 14px; }
.rv-form label { display: block; margin-bottom: 6px; font-size: 12px; color: var(--muted); }
.rv-form input, .rv-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: transparent; color: var(--text); font: inherit; font-size: 14px; box-shadow: none; }
.rv-form textarea { resize: none; }
.rv-form .btn { width: 100%; margin-top: 4px; }
.rv-dd--field .rv-dd-btn { width: 100%; padding: 10px 12px; border-radius: 12px; background: transparent; font-weight: 400; }
.rv-x { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--soft); color: var(--text); font-size: 20px; line-height: 1; cursor: pointer; }
@keyframes rvpop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rv-form { animation: none; } .rv-dd-btn::after { transition: none; } }

@media (max-width: 700px) {
  .rv-grid { grid-template-columns: 1fr; gap: 12px; }
  .rv-card { padding: 16px 18px; gap: 10px; }
  .rv-text { font-size: 12px; }
  .rv-bar { flex-wrap: wrap; }
  .rv-dd { order: 3; flex: 1 1 100%; }
  .rv-dd-btn { width: 100%; padding: 13px 18px; font-size: 14px; }
}

html.rv-lock .fab { display: none; }
html.rv-lock body > :not(.rv-modal) { filter: blur(6px); }
html.rv-lock .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; }