[data-vote-product] { scroll-margin-top:100px }
.vote-panel { display:flex; align-items:center; flex-wrap:wrap; gap:0 8px }
.vote-group { display:flex; align-items:center; flex-wrap:wrap; column-gap:2px }
.vote-summary { color:var(--text-secondary); font-size:.8125rem; margin-inline-end:6px }
.vote-action { display:grid; place-items:center; width:44px; height:44px; padding:0; color:var(--text-secondary); background:transparent; border:0; border-radius:var(--radius-control); cursor:pointer }
.vote-action svg { width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round }
.vote-action:hover { color:var(--text-primary) }
.vote-action[aria-pressed=true] { color:var(--accent-lightning) }
.vote-action[aria-pressed=true] svg { fill:currentColor }
.vote-action:focus-visible { outline:2px solid var(--accent-lightning); outline-offset:-2px }
.vote-message { font-size:.8125rem; color:var(--text-secondary) }

.vote-group:has(.vote-action) { flex-wrap:nowrap; width:max-content; gap:0 }
.vote-action + .vote-summary { margin:0; font-weight:600; font-variant-numeric:tabular-nums; color:var(--text-primary) }
.vote-badge { display:inline-flex; align-items:center; padding:2px 8px; background:color-mix(in srgb,var(--accent-lightning) 9%,transparent); color:var(--accent-lightning); border-radius:var(--radius-control); font-size:12px; font-weight:600 }
.vote-badge[hidden] { display:none }
.ct-item.has-vote-badge { position:relative; padding-block-start:28px }
.vote-tile .vote-badge { position:absolute; inset:0 0 auto auto; border-radius:0 var(--radius-inner) 0 var(--radius-control) }
.vote-panel .vote-message:empty { display:none }

.hw-head-body:has(.vote-panel) {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  grid-template-areas:"title rating" "tags rating";
  column-gap:clamp(8px,2vw,24px);
  align-items:start;
}
.hw-head-body > .hw-title { grid-area:title; overflow-wrap:anywhere }
.hw-head-body > .hw-tags { grid-area:tags }
.hw-head-body > .vote-panel { grid-area:rating; flex-direction:column; align-items:flex-end; max-width:132px }

@media (prefers-reduced-motion: no-preference) {
  .vote-badge.vote-badge-seen {
    background-image:linear-gradient(112deg, transparent 43%, color-mix(in srgb, var(--accent-lightning) 20%, transparent) 49%, transparent 55%);
    background-size:300% 100%;
    background-position:0% 50%;
    background-repeat:no-repeat;
    animation:vote-badge-sheen 800ms ease-out 1;
  }
  @keyframes vote-badge-sheen {
    from { background-position:100% 50% }
    to { background-position:0% 50% }
  }
}
