/* All selectors belong to the vote component; legacy row styles are untouched. */
.post-votes {
  --pv-up: var(--up, #16834c);
  --pv-down: var(--down, #cf4056);
  --pv-bg: var(--card, #fff);
  --pv-text: var(--text, #23364a);
  --pv-muted: var(--text-muted, #758396);
  --pv-border: var(--border, #dfe5eb);
  display: inline-grid;
  max-width: 100%;
  vertical-align: top;
  margin: 0 0 16px;
  color: var(--pv-text);
  font-size: 11px;
  line-height: 1.5;
  text-align: start;
}
.post-votes:has(.pv-panel:not([hidden])) {display: contents; font: inherit}
.post-votes *, .post-votes *::before, .post-votes *::after {box-sizing: border-box}
.post-votes button {font: inherit; color: inherit; border: 0; padding: 0; background: transparent; border-radius: 4px; cursor: pointer}
.post-votes button:disabled {cursor: default; opacity: .5}
.post-votes button:focus-visible, .post-votes a:focus-visible {outline: 2px solid var(--pv-muted); outline-offset: 2px}
.post-votes .pv-inline {display: inline-flex; align-items: center; height: 32px; vertical-align: top; white-space: nowrap}
.post-votes .pv-buttons {display: inline-flex; align-items: center; gap: 12px; flex: none}
.post-votes .pv-choice {display: inline-flex; align-items: center; gap: 0; height: 36px; color: var(--pv-muted)}
.post-votes .pv-vote {display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; min-width: 36px; min-height: 36px; margin-inline: -6px; box-shadow: none}
/* Keep the historical FA class names; SVG always renders, even with missing icon fonts. */
.post-votes .pv-icon {display: inline-flex; align-items: center; justify-content: center; width: 22.5px; height: 18px; line-height: 1}
.post-votes .pv-icon::before, .post-votes .pv-icon::after {content: none !important; display: none !important}
.post-votes .pv-icon svg {display: block; flex: none; width: 16px; height: 16px}
.post-votes .pv-count {display: inline-flex; align-items: center; justify-content: center; min-width: 12px; height: 36px; margin-inline-start: -6px; position: relative; font-size: 11px; font-variant-numeric: tabular-nums}
.post-votes .pv-count b {font-weight: 400}
.post-votes .pv-agree:has(.pv-vote[aria-pressed=true]) {color: var(--pv-up)}
.post-votes .pv-disagree:has(.pv-vote[aria-pressed=true]) {color: var(--pv-down)}
.post-votes .pv-status {grid-column: 1 / -1; color: var(--pv-muted); font-size: 11px; white-space: normal}
.post-votes .pv-status:empty {display: none}
.post-votes .pv-panel {display: block; margin: 16px 0; padding: 0; border: 0; background: transparent; box-shadow: none}
.post-votes [hidden] {display: none !important}
.post-votes .pv-list {display: flow-root; padding: 0; line-height: inherit}
.post-votes .pv-list:focus {outline: none}
.post-votes .pv-list:focus-visible {outline: 1px dotted var(--pv-muted); outline-offset: 2px}
.post-votes .pv-person {display: inline-block; float: right; position: relative; margin: 2px 3px 2px 0; z-index: 10; line-height: inherit}
.post-votes .pv-person img {display: inline; vertical-align: middle; box-sizing: border-box; width: 20px; height: 20px; padding: 2px; border: 0 solid; border-radius: 1px; object-fit: cover}
.post-votes .pv-person.pv-agree img {background-color: #22a200; border-color: #22a200}
.post-votes .pv-person.pv-disagree img {background-color: #f00; border-color: #f00}
.post-votes .pv-more {float: right; min-height: 24px; padding-inline: 4px; color: var(--pv-muted); font-size: 10px}
.post-votes .pv-skeleton {display: inline-block; float: right; width: 20px; height: 20px; margin: 2px 3px 2px 0; border-radius: 1px; background: var(--pv-border); animation: pv-pulse 1s infinite alternate}
.post-votes .pv-number {animation: pv-pop .18s ease}
body.dark-mode .post-votes {--pv-bg: var(--card, #1c2633); --pv-text: var(--text, #e4e9f0); --pv-border: var(--border, #3d4959)}
@keyframes pv-pop {50% {transform: scale(1.08)}}
@keyframes pv-pulse {to {opacity: .35}}
@media (prefers-reduced-motion: reduce) {.post-votes * {animation: none !important; transition: none !important}}
