/* Review overlay: bar, pins, popover, panel. Fixed palette so it reads the same on any site. */
.rv-bar, .rv-panel, .rv-pop, .rv-pin {
  --rv-ink: #10161d; --rv-paper: #ffffff; --rv-muted: #5b6672; --rv-line: #dfe3e8;
  --rv-error: #c2361c; --rv-warn: #b7791f; --rv-fix: #1f7a4d; --rv-new: #2457c5; --rv-info: #5b6672;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; line-height: 1.4; letter-spacing: 0; text-transform: none;
  box-sizing: border-box;
}
.rv-bar *, .rv-panel *, .rv-pop * { box-sizing: border-box; }

.rv-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 6px max(16px, env(safe-area-inset-left, 0px)); background: #0e1720; color: #e9eef3; font-size: 13px; }
.rv-bar--fixed { position: fixed; top: 0; left: 0; right: 0; z-index: 2147483000; }
html.rv-has-fixed-bar { padding-top: var(--rv-bar-h, 44px) !important; }
.rv-bar__label { opacity: .78; margin-right: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.rv-bar__orig { color: #e9eef3 !important; opacity: .75; text-decoration: none !important; font-size: 12px; }
.rv-bar__orig:hover { opacity: 1; }
.rv-seg { display: inline-flex; background: rgba(255,255,255,.1); border-radius: 999px; padding: 3px; }
.rv-seg__opt { padding: 4px 14px; border-radius: 999px; color: #e9eef3 !important; text-decoration: none !important; font-weight: 600; font-size: 13px; line-height: 1.3; }
.rv-seg__opt.is-on { background: #e9eef3; color: #0e1720 !important; }
a.rv-seg__opt:hover { background: rgba(255,255,255,.18); }
.rv-switch { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; color: #e9eef3; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; padding: 4px 2px; }
.rv-switch__count { min-width: 22px; padding: 1px 6px; border-radius: 999px; background: rgba(255,255,255,.14); font-size: 12px; text-align: center; font-variant-numeric: tabular-nums; }
.rv-switch__count:empty { display: none; }
.rv-switch__track { width: 34px; height: 20px; border-radius: 999px; background: rgba(255,255,255,.25); position: relative; transition: background .15s; }
.rv-switch__track span { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.rv-switch[aria-checked="true"] .rv-switch__track { background: #d9a43a; }
.rv-switch[aria-checked="true"] .rv-switch__track span { transform: translateX(14px); }
.rv-switch:focus-visible, .rv-seg__opt:focus-visible, .rv-pin:focus-visible { outline: 2px solid #d9a43a; outline-offset: 2px; }

.rv-layer { position: absolute; top: 0; left: 0; width: 0; height: 0; z-index: 2147482990; }
.rv-pin { position: absolute; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.35); padding: 0; line-height: 1; }
.rv-pin:hover { transform: scale(1.15); }
.rv-k-error { background: var(--rv-error); } .rv-k-warn { background: var(--rv-warn); }
.rv-k-fix { background: var(--rv-fix); } .rv-k-new { background: var(--rv-new); } .rv-k-info { background: var(--rv-info); }
.rv-hl { outline: 3px solid #d9a43a !important; outline-offset: 3px; }

.rv-pop { position: absolute; z-index: 2147483001; background: var(--rv-paper); color: var(--rv-ink); border: 1px solid var(--rv-line); border-radius: 10px; padding: 12px 14px; box-shadow: 0 12px 32px rgba(0,0,0,.22); font-size: 14px; }
.rv-pop p { margin: 6px 0 0; color: var(--rv-ink); font-size: 14px; }
.rv-pop__k { display: inline-block; color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; letter-spacing: .03em; }

.rv-panel { position: fixed; right: 12px; bottom: 12px; top: calc(var(--rv-panel-top, 120px)); width: min(360px, calc(100vw - 24px)); z-index: 2147482995; background: var(--rv-paper); color: var(--rv-ink); border: 1px solid var(--rv-line); border-radius: 12px; box-shadow: 0 16px 40px rgba(0,0,0,.2); display: flex; flex-direction: column; overflow: hidden; font-size: 13.5px; }
.rv-panel[hidden] { display: none; }
.rv-panel__head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--rv-line); }
.rv-panel__head strong { font-size: 14px; }
.rv-panel__n { background: #eef1f4; border-radius: 999px; padding: 1px 8px; font-size: 12px; font-variant-numeric: tabular-nums; }
.rv-panel__close { margin-left: auto; background: none; border: 0; font-size: 22px; line-height: 1; cursor: pointer; color: var(--rv-muted); padding: 0 4px; }
.rv-list { list-style: none; margin: 0; padding: 6px 0; overflow-y: auto; }
.rv-item { display: grid; grid-template-columns: 24px 1fr; gap: 10px; padding: 9px 14px; align-items: start; }
.rv-item[data-rv-go] { cursor: pointer; }
.rv-item[data-rv-go]:hover { background: #f4f6f8; }
.rv-item em { display: block; font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--rv-muted); margin-bottom: 2px; }
.rv-item div { min-width: 0; overflow-wrap: anywhere; }
.rv-num { width: 22px; height: 22px; border-radius: 50%; color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.rv-dot { width: 10px; height: 10px; border-radius: 50%; margin: 5px 0 0 6px; }

@media (max-width: 720px) {
  .rv-panel { top: auto; height: 46vh; left: 8px; right: 8px; width: auto; bottom: 8px; }
  .rv-bar__label { display: none; }
}
@media (prefers-reduced-motion: reduce) { .rv-pin, .rv-switch__track span { transition: none; } }
