.jrv-voting-skeleton,
.jrv-voting-skeleton-view {
  --jrv-voting-accent: currentColor;
  --jrv-voting-accent-strong: currentColor;
  --jrv-voting-accent-contrast: Canvas;
  --jrv-voting-accent-soft: transparent;
  --jrv-voting-accent-soft: color-mix(in srgb, var(--jrv-voting-accent) 12%, transparent);
  --jrv-voting-border: ButtonBorder;
  --jrv-voting-border: color-mix(in srgb, currentColor 22%, transparent);
  --jrv-voting-border-strong: ButtonBorder;
  --jrv-voting-border-strong: color-mix(in srgb, currentColor 38%, transparent);
  --jrv-voting-surface: transparent;
  --jrv-voting-sticky-surface: Canvas;
  --jrv-voting-surface-muted: ButtonFace;
  --jrv-voting-surface-muted: color-mix(in srgb, currentColor 6%, transparent);
  --jrv-voting-text: inherit;
  --jrv-voting-text-muted: GrayText;
  --jrv-voting-text-muted: color-mix(in srgb, currentColor 68%, transparent);
  --jrv-voting-danger: currentColor;
  --jrv-voting-success: var(--jrv-voting-accent);
  --jrv-voting-confirmation-action-gap: 1.75rem;
  width: 100%;
  max-width: 68rem;
  margin-inline: auto;
  color: var(--jrv-voting-text);
}

.jrv-voting-skeleton *,
.jrv-voting-skeleton *::before,
.jrv-voting-skeleton *::after,
.jrv-voting-skeleton-view *,
.jrv-voting-skeleton-view *::before,
.jrv-voting-skeleton-view *::after {
  box-sizing: border-box;
}

.jrv-voting-skeleton--progress {
  max-width: none;
  margin-block: 0.75rem clamp(1.25rem, 3vw, 2rem);
  padding: 0.48rem 0.75rem 0.5rem;
  border: 1px solid var(--jrv-voting-border);
  border-radius: 0.5rem;
  background: var(--jrv-voting-surface-muted);
}

.jrv-voting-skeleton--progress-sticky {
  position: sticky;
  top: var(--jrv-voting-sticky-top, 0px);
  z-index: 980;
  background: var(--jrv-voting-sticky-surface);
  box-shadow: 0 0.2rem 0.55rem color-mix(in srgb, currentColor 8%, transparent);
}

.jrv-voting-skeleton__progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 0.25rem;
  color: var(--jrv-voting-text);
  font-size: 0.9375rem;
}

.jrv-voting-skeleton__progress-meta strong {
  color: inherit;
  font-weight: 700;
}

.jrv-voting-skeleton--section {
  margin-block: 0 clamp(2.5rem, 6vw, 4.75rem);
}

/* Keep only the final section close to its submit block. */
.jrv-voting-skeleton--section:has(+ .jrv-voting-skeleton--submit) {
  margin-block-end: 0;
}

.jrv-voting-skeleton__section-title {
  margin: 0 0 1.25rem;
}

.jrv-voting-skeleton__section-title:not(.jrv-voting-skeleton__section-title--native-decoration) {
  padding: 0.15rem 0 0.15rem 0.875rem;
  border-inline-start: 0.25rem solid var(--jrv-voting-accent);
}

.jrv-voting-skeleton__section-title:not(.jrv-voting-skeleton__section-title--native-color) {
  color: var(--jrv-voting-text);
}

.jrv-voting-skeleton__section-title:not(.jrv-voting-skeleton__section-title--native-style) {
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
  line-height: 1.2;
}

.jrv-voting-skeleton__subtitle {
  max-width: 48rem;
  margin: -0.5rem 0 1.25rem;
}

.jrv-voting-skeleton__subtitle:not(.jrv-voting-skeleton__subtitle--native-color) {
  color: var(--jrv-voting-text-muted);
}

.jrv-voting-skeleton__question {
  position: relative;
  isolation: isolate;
  min-inline-size: 0;
  margin: 0 0 0.875rem;
  padding: clamp(1rem, 2.25vw, 1.5rem);
  border: 0;
}

.jrv-voting-skeleton__question::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  border: 1px solid var(--jrv-voting-border);
  border-radius: 0.875rem;
  background: var(--jrv-voting-surface);
  box-shadow: 0 0.125rem 0.75rem color-mix(in srgb, currentColor 6%, transparent);
  content: "";
}

.jrv-voting-skeleton__question legend {
  display: block;
  float: inline-start;
  width: 100%;
  margin: 0 0 0.875rem;
  padding: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.jrv-voting-skeleton__question > :not(legend) {
  clear: both;
}

.jrv-voting-skeleton__question-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.75rem;
  width: 100%;
}

.jrv-voting-skeleton__question-header--with-media {
  grid-template-columns: auto clamp(3.5rem, 7vw, 4.75rem) minmax(0, 1fr) auto;
}

.jrv-voting-skeleton__question-ordinal {
  font-variant-numeric: tabular-nums;
}

.jrv-voting-skeleton__question-copy {
  display: grid;
  min-width: 0;
  gap: 0.2rem;
}

.jrv-voting-skeleton__question-title {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.jrv-voting-skeleton__entity-description,
.jrv-voting-skeleton__question-description {
  display: block;
  overflow-wrap: anywhere;
}

.jrv-voting-skeleton__question-description {
  white-space: pre-line;
}

.jrv-voting-skeleton__answer-text {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.jrv-voting-skeleton__options--multi {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}

.jrv-voting-skeleton__multi-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.75rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--jrv-voting-border-strong);
  border-radius: 0.625rem;
  cursor: pointer;
}

.jrv-voting-skeleton__multi-option:has(input:checked) {
  border-color: var(--jrv-voting-accent);
  background: var(--jrv-voting-accent-soft);
  font-weight: 700;
}

.jrv-voting-skeleton__multi-option:has(input:checked) .jrv-voting-skeleton__answer-text {
  color: inherit !important;
}

.jrv-voting-skeleton__multi-option:has(input:disabled:not(:checked)) {
  cursor: not-allowed;
  opacity: 0.52;
}

.jrv-voting-skeleton__multi-option input {
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
  accent-color: var(--jrv-voting-accent);
}

.jrv-voting-skeleton__multi-option input:focus-visible {
  outline: 3px solid Highlight;
  outline: 3px solid color-mix(in srgb, var(--jrv-voting-accent) 45%, transparent);
  outline-offset: 3px;
}

.jrv-voting-skeleton__multi-counter,
.jrv-voting-skeleton__multi-error {
  margin: 0.65rem 0 0;
  font-size: 0.9rem;
}

.jrv-voting-skeleton__multi-counter { color: var(--jrv-voting-text-muted); }
.jrv-voting-skeleton__multi-error { color: var(--jrv-voting-danger); font-weight: 650; }

.jrv-voting-skeleton__schedule {
  display: grid;
  gap: 0.8rem;
  margin-top: 0;
}

.jrv-voting-skeleton__schedule-label,
.jrv-voting-skeleton__schedule-active,
.jrv-voting-skeleton__schedule-counter,
.jrv-voting-skeleton__schedule-feedback,
.jrv-voting-skeleton__schedule-error,
.jrv-voting-skeleton__schedule-summary-count {
  margin: 0;
}

.jrv-voting-skeleton__schedule-none {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin: 1rem 0;
  padding: .8rem 1rem;
  border: 1px solid currentColor;
  border-radius: .4rem;
  cursor: pointer;
}
.jrv-voting-skeleton__schedule-none input { inline-size: 1.15rem; block-size: 1.15rem; }
.jrv-voting-skeleton__schedule-none-dialog { max-inline-size: min(32rem, calc(100vi - 2rem)); border: 0; border-radius: .5rem; padding: 1.5rem; }
.jrv-voting-skeleton__schedule-none-dialog::backdrop { background: color-mix(in srgb, CanvasText 55%, transparent); }
.jrv-voting-skeleton__schedule-none-dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .75rem; margin-block-start: 1rem; }
.jrv-voting-skeleton__schedule-none-dialog-actions button { min-block-size: 2.75rem; padding-inline: 1rem; }
.jrv-voting-skeleton__question.is-none-selected .jrv-voting-skeleton__schedule-desktop,
.jrv-voting-skeleton__question.is-none-selected .jrv-voting-skeleton__schedule-mobile,
.jrv-voting-skeleton__question.is-none-selected .jrv-voting-skeleton__schedule-actions { opacity: .55; }

.jrv-voting-skeleton__schedule-label,
.jrv-voting-skeleton__schedule-summary-count {
  font-weight: 700;
}

.jrv-voting-skeleton__schedule-activities,
.jrv-voting-skeleton__schedule-days,
.jrv-voting-skeleton__schedule-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.jrv-voting-skeleton__schedule-activity,
.jrv-voting-skeleton__schedule-day,
.jrv-voting-skeleton__schedule-clear,
.jrv-voting-skeleton__schedule-clear-day {
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--jrv-voting-border-strong);
  border-radius: 999px;
  background: var(--jrv-voting-surface);
  color: var(--jrv-voting-text);
  cursor: pointer;
  font-size: inherit;
  line-height: 1.25;
}

.jrv-voting-skeleton__schedule-activity.is-selected,
.jrv-voting-skeleton__schedule-day.is-selected,
.jrv-voting-skeleton__schedule-activity[aria-pressed="true"],
.jrv-voting-skeleton__schedule-day[aria-selected="true"] {
  border-color: var(--jrv-voting-accent);
  background: var(--jrv-voting-accent);
  color: var(--jrv-voting-accent-contrast);
  font-weight: 700;
}

.jrv-voting-skeleton__schedule-activity[aria-pressed="true"] .jrv-voting-skeleton__answer-text {
  color: inherit !important;
}

.jrv-voting-skeleton__schedule-active {
  padding: 0.55rem 0.7rem;
  border-inline-start: 0.25rem solid var(--jrv-voting-accent);
  background: var(--jrv-voting-surface-muted);
}

.jrv-voting-skeleton__schedule-desktop {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.jrv-voting-skeleton__schedule-grid {
  width: 100%;
  min-width: 42rem;
  border-collapse: separate;
  border-spacing: 0.3rem;
  table-layout: fixed;
}

.jrv-voting-skeleton__schedule-grid th {
  padding: 0.35rem;
  color: var(--jrv-voting-text-muted);
  text-align: center;
  font-size: 0.85rem;
  font-weight: 650;
}

.jrv-voting-skeleton__schedule-grid tbody th {
  width: 4.5rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.jrv-voting-skeleton__schedule-grid td {
  min-width: 0;
  padding: 0;
}

.jrv-voting-skeleton__schedule-cell,
.jrv-voting-skeleton__schedule-mobile-cell {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.4rem;
  border: 1px solid var(--jrv-voting-border);
  border-radius: 0.45rem;
  background: var(--jrv-voting-surface);
  color: var(--jrv-voting-text-muted);
  cursor: pointer;
  font-size: 0.78rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.jrv-voting-skeleton__schedule-cell.is-assigned,
.jrv-voting-skeleton__schedule-mobile-cell.is-assigned {
  border-color: var(--jrv-voting-accent);
  background: var(--jrv-voting-accent-soft);
  color: var(--jrv-voting-text);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px var(--jrv-voting-accent);
}

.jrv-voting-skeleton__schedule-mobile { display: none; }

.jrv-voting-skeleton__schedule-feedback,
.jrv-voting-skeleton__schedule-counter {
  color: var(--jrv-voting-text-muted);
  font-size: 0.9rem;
}

.jrv-voting-skeleton__schedule-error {
  color: var(--jrv-voting-danger);
  font-size: 0.9rem;
  font-weight: 650;
}

.jrv-voting-skeleton__schedule-summary {
  padding: 0.8rem;
  border: 1px solid var(--jrv-voting-border);
  border-radius: 0.65rem;
  background: var(--jrv-voting-surface-muted);
}

.jrv-voting-skeleton__schedule-summary h4 {
  margin: 0.75rem 0 0.25rem;
  font-size: 0.95rem;
}

.jrv-voting-skeleton__schedule-summary ul {
  margin: 0;
  padding-inline-start: 1.25rem;
}

.jrv-voting-skeleton__schedule-summary li {
  overflow-wrap: anywhere;
}

.jrv-voting-skeleton__schedule button:focus-visible {
  border-color: var(--jrv-voting-accent);
  outline: 3px solid Highlight;
  outline: 3px solid color-mix(in srgb, var(--jrv-voting-accent) 45%, transparent);
  outline-offset: 2px;
}

.jrv-voting-skeleton__selected-score {
  display: grid;
  place-items: center;
  min-width: 3.125rem;
  min-height: 3.125rem;
  padding-inline: 0.55rem;
  border: 1px solid var(--jrv-voting-border);
  border-radius: 0.5rem;
  background: var(--jrv-voting-surface-muted);
  color: var(--jrv-voting-text);
  font-variant-numeric: tabular-nums;
  font-size: 1.2rem;
  line-height: 1;
  font-weight: 700;
}

.jrv-voting-skeleton__entity-media {
  display: grid;
  overflow: hidden;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid var(--jrv-voting-border);
  border-radius: 0.625rem;
  background: var(--jrv-voting-surface-muted);
  color: var(--jrv-voting-text-muted);
}

.jrv-voting-skeleton__entity-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.jrv-voting-skeleton__entity-placeholder {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
}

.jrv-voting-skeleton__entity-placeholder:not(:has(svg))::before {
  width: 1.5rem;
  height: 1.15rem;
  border: 0.125rem solid currentColor;
  border-radius: 0.2rem;
  content: "";
}

.jrv-voting-skeleton__options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0;
}

.jrv-voting-skeleton__options:has(> .jrv-voting-skeleton__option:nth-child(11):last-child) {
  grid-template-columns: repeat(11, minmax(0, 1fr));
}

.jrv-voting-skeleton__option {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--jrv-voting-border-strong);
  border-radius: 0.625rem;
  background: var(--jrv-voting-surface);
  color: var(--jrv-voting-text);
  cursor: pointer;
}

.jrv-voting-skeleton__option:focus-visible {
  border-color: var(--jrv-voting-accent);
  outline: 3px solid Highlight;
  outline: 3px solid color-mix(in srgb, var(--jrv-voting-accent) 45%, transparent);
  outline-offset: 2px;
}

.jrv-voting-skeleton__option.is-selected,
.jrv-voting-skeleton__option[aria-checked="true"] {
  border-color: var(--jrv-voting-accent);
  background: var(--jrv-voting-accent);
  color: var(--jrv-voting-accent-contrast);
  font-weight: 700;
  box-shadow: 0 0 0 1px var(--jrv-voting-accent);
}

.jrv-voting-skeleton__option.is-selected .jrv-voting-skeleton__answer-text,
.jrv-voting-skeleton__option[aria-checked="true"] .jrv-voting-skeleton__answer-text {
  color: inherit !important;
}

.jrv-voting-skeleton__progress {
  display: block;
  overflow: hidden;
  width: 100%;
  height: 0.5rem;
  border: 0;
  border-radius: 999px;
  background: var(--jrv-voting-surface-muted);
  accent-color: var(--jrv-voting-accent);
}

.jrv-voting-skeleton--progress .jrv-voting-skeleton__status:empty {
  display: none;
}

.jrv-voting-skeleton__progress::-webkit-progress-bar {
  border-radius: 999px;
  background: var(--jrv-voting-surface-muted);
}

.jrv-voting-skeleton__progress::-webkit-progress-value {
  border-radius: 999px;
  background: var(--jrv-voting-accent);
}

.jrv-voting-skeleton__progress::-moz-progress-bar {
  border-radius: 999px;
  background: var(--jrv-voting-accent);
}

.jrv-voting-skeleton--submit {
  margin-block: clamp(2.75rem, 7vw, 5.5rem) clamp(1.5rem, 4vw, 3rem);
  padding-top: clamp(1.25rem, 3vw, 2rem);
  border-top: 1px solid var(--jrv-voting-border);
  text-align: center;
}

.jrv-voting-skeleton--section + .jrv-voting-skeleton--submit {
  margin-block-start: 0;
}

.jrv-voting-skeleton__submit {
  width: min(100%, 32rem);
  min-height: 3.25rem;
  padding: 0.75rem 1.35rem;
  border-radius: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.jrv-voting-skeleton__submit:focus-visible {
  outline: 3px solid Highlight;
  outline: 3px solid color-mix(in srgb, var(--jrv-voting-accent) 45%, transparent);
  outline-offset: 3px;
}

.jrv-voting-skeleton--submit .jrv-voting-skeleton__submit:disabled {
  cursor: not-allowed;
}

.jrv-voting-skeleton--submit[data-jrv-submit-state="submitting"] .jrv-voting-skeleton__submit {
  cursor: wait;
}

.jrv-voting-skeleton--submit[data-jrv-submit-state="accepted"] .jrv-voting-skeleton__submit {
  cursor: default;
}

.jrv-voting-skeleton--submit[data-jrv-submit-state="submitted"] {
  margin-block: clamp(3rem, 8vw, 6.5rem);
  padding-top: 0;
  border-top: 0;
}

.jrv-voting-skeleton__confirmation[hidden],
.jrv-voting-skeleton[data-jrv-voting-state="submitted"][hidden] {
  display: none;
}

.jrv-voting-skeleton__confirmation {
  width: min(100%, 48rem);
  margin-inline: auto;
  padding: clamp(1.5rem, 5vw, 3.25rem);
  border: 1px solid var(--jrv-voting-border);
  border-radius: 0.875rem;
  background: var(--jrv-voting-surface-muted);
  box-shadow: 0 0.125rem 0.75rem color-mix(in srgb, currentColor 6%, transparent);
  text-align: center;
}

.jrv-voting-skeleton__confirmation-title {
  margin: 0;
  color: var(--jrv-voting-text);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  line-height: 1.2;
}

.jrv-voting-skeleton__confirmation-title:focus-visible {
  outline: 3px solid Highlight;
  outline: 3px solid color-mix(in srgb, var(--jrv-voting-accent) 45%, transparent);
  outline-offset: 0.35rem;
}

.jrv-voting-skeleton__confirmation-text {
  max-width: 38rem;
  margin: 0.875rem auto 0;
  color: var(--jrv-voting-text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.jrv-voting-skeleton .jrv-voting-skeleton__confirmation-actions {
  margin-block-start: var(--jrv-voting-confirmation-action-gap);
}

.jrv-voting-skeleton__confirmation-button:focus-visible {
  outline: 3px solid Highlight;
  outline: 3px solid color-mix(in srgb, var(--jrv-voting-accent) 45%, transparent);
  outline-offset: 3px;
}

.jrv-voting-skeleton--submit[data-jrv-submit-state="error"] .jrv-voting-skeleton__status {
  color: var(--jrv-voting-danger);
}

.jrv-voting-skeleton__status {
  min-height: 1.5em;
  margin: 0.65rem 0 0;
  color: var(--jrv-voting-text-muted);
  font-size: 0.9375rem;
}

.jrv-voting-skeleton[data-jrv-voting-error="1"] {
  border: 2px solid var(--jrv-voting-danger);
  border-radius: 0.875rem;
  padding: 1rem;
}

@media (hover: hover) {
  .jrv-voting-skeleton__option:hover {
    border-color: var(--jrv-voting-accent);
    background: var(--jrv-voting-accent-soft);
  }

  .jrv-voting-skeleton__option.is-selected:hover,
  .jrv-voting-skeleton__option[aria-checked="true"]:hover {
    border-color: var(--jrv-voting-accent-strong);
    background: var(--jrv-voting-accent-strong);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .jrv-voting-skeleton__option {
    transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
  }
}

@media (max-width: 56.25rem) {
  .jrv-voting-skeleton__options:has(> .jrv-voting-skeleton__option:nth-child(11):last-child) {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 33.75rem) {
  .jrv-voting-skeleton--progress {
    margin-bottom: 1.25rem;
    padding: 0.45rem 0.625rem 0.48rem;
    border-radius: 0.45rem;
  }

  .jrv-voting-skeleton--section {
    margin-bottom: 2.75rem;
  }

  .jrv-voting-skeleton__section-title {
    margin-bottom: 1rem;
  }

  .jrv-voting-skeleton__section-title:not(.jrv-voting-skeleton__section-title--native-decoration) {
    padding-inline-start: 0.7rem;
  }

  .jrv-voting-skeleton__question {
    padding: 0.9rem;
  }

  .jrv-voting-skeleton__question::before {
    border-radius: 0.75rem;
  }

  .jrv-voting-skeleton__question-header,
  .jrv-voting-skeleton__question-header--with-media {
    grid-template-columns: auto 3.25rem minmax(0, 1fr) auto;
    gap: 0.55rem;
  }

  .jrv-voting-skeleton__question-header:not(.jrv-voting-skeleton__question-header--with-media) {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .jrv-voting-skeleton__selected-score {
    min-width: 2.75rem;
    min-height: 2.75rem;
    font-size: 1.1rem;
  }

  .jrv-voting-skeleton__options:has(> .jrv-voting-skeleton__option:nth-child(11):last-child) {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.375rem;
  }

  .jrv-voting-skeleton--submit {
    margin-top: 3.25rem;
  }

  .jrv-voting-skeleton--submit[data-jrv-submit-state="submitted"] {
    margin-block: 2.5rem;
  }

  .jrv-voting-skeleton__confirmation {
    padding: 1.35rem 1rem;
    border-radius: 0.75rem;
  }
}

@media (max-width: 39.9375rem) {
  .jrv-voting-skeleton__schedule-desktop { display: none; }
  .jrv-voting-skeleton__schedule-mobile { display: grid; gap: 0.75rem; }
  /* Keep activity feedback in normal flow so it cannot cover schedule controls. */
  .jrv-voting-skeleton__schedule-days { flex-wrap: nowrap; overflow-x: auto; padding-block: 0.15rem; }
  .jrv-voting-skeleton__schedule-day { flex: 0 0 auto; }
  .jrv-voting-skeleton__schedule-day-panel h4 { margin: 0; }
  .jrv-voting-skeleton__schedule-time-list { display: grid; gap: 0.45rem; }
  .jrv-voting-skeleton__schedule-time-row {
    display: grid;
    grid-template-columns: 4.25rem minmax(0, 1fr);
    align-items: stretch;
    gap: 0.5rem;
  }
  .jrv-voting-skeleton__schedule-time {
    align-self: center;
    font-variant-numeric: tabular-nums;
    font-weight: 650;
  }
  .jrv-voting-skeleton__schedule-mobile-cell { min-height: 2.75rem; text-align: start; font-size: 0.9rem; }
  .jrv-voting-skeleton__schedule-clear-day { margin-top: 0.65rem; }
}

@media (max-width: 22.5rem) {
  .jrv-voting-skeleton__options:has(> .jrv-voting-skeleton__option:nth-child(11):last-child) {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.jrv-voting-results {
  --jrv-results-accent: currentColor;
  --jrv-results-accent-strong: currentColor;
  --jrv-results-accent-contrast: Canvas;
  --jrv-results-accent-soft: transparent;
  --jrv-results-accent-soft: color-mix(in srgb, var(--jrv-results-accent) 12%, transparent);
  --jrv-results-border: ButtonBorder;
  --jrv-results-border: color-mix(in srgb, currentColor 22%, transparent);
  --jrv-results-surface: transparent;
  --jrv-results-surface-muted: ButtonFace;
  --jrv-results-surface-muted: color-mix(in srgb, currentColor 6%, transparent);
  --jrv-results-schedule-surface: ButtonFace;
  --jrv-results-schedule-surface: color-mix(in srgb, currentColor 8%, transparent);
  --jrv-results-track: var(--jrv-results-surface-muted);
  --jrv-results-text: inherit;
  --jrv-results-text-muted: GrayText;
  --jrv-results-text-muted: color-mix(in srgb, currentColor 68%, transparent);
  --jrv-results-danger: currentColor;
  width: 100%;
  max-width: 68rem;
  margin: 0 auto clamp(2.75rem, 6vw, 4.75rem);
  color: var(--jrv-results-text);
}

.jrv-voting-results *,
.jrv-voting-results *::before,
.jrv-voting-results *::after {
  box-sizing: border-box;
}

.jrv-voting-results__participants {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
  margin: 0 0 1.25rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--jrv-results-border);
  border-radius: 999px;
  background: var(--jrv-results-surface-muted);
  color: var(--jrv-results-text-muted);
  font-size: 0.9375rem;
}

.jrv-voting-results__participants strong {
  color: var(--jrv-results-text);
  font-size: 1.05rem;
}

.jrv-voting-results--summary [data-jrv-results-content] {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.875rem;
}

.jrv-voting-results--summary .jrv-voting-results__participants {
  grid-column: 1 / -1;
  justify-self: start;
}

.jrv-voting-results__summary-item,
.jrv-voting-results__distribution {
  padding: clamp(1rem, 2vw, 1.3rem);
  border: 1px solid var(--jrv-results-border);
  border-radius: 0.875rem;
  background: var(--jrv-results-surface);
  box-shadow: 0 0.125rem 0.75rem color-mix(in srgb, currentColor 6%, transparent);
}

.jrv-voting-results__summary-item {
  display: grid;
  align-content: start;
  gap: 0.35rem;
}

.jrv-voting-results__summary-item .jrv-voting-results__score {
  order: -1;
  margin: 0 0 0.2rem;
  color: var(--jrv-results-accent);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 750;
  line-height: 1;
}

.jrv-voting-results__ranking,
.jrv-voting-results__distribution-list {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.jrv-voting-results__ranking-section + .jrv-voting-results__ranking-section {
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

.jrv-voting-results__section-title {
  margin: 0 0 1.1rem;
  padding: 0.15rem 0 0.15rem 0.875rem;
  border-inline-start: 0.25rem solid var(--jrv-results-accent);
  color: var(--jrv-results-text);
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  line-height: 1.2;
}

.jrv-voting-results__ranking-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--jrv-results-border);
  border-radius: 0.75rem;
  background: var(--jrv-results-surface);
}

.jrv-voting-results--ranking[data-jrv-results-show-count="1"] .jrv-voting-results__ranking-item {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
}

.jrv-voting-results__rank {
  display: inline-grid;
  place-items: center;
  min-width: 2.4rem;
  min-height: 2.4rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: var(--jrv-results-accent-soft);
  color: var(--jrv-results-accent-strong);
  font-weight: 750;
  line-height: 1;
}

.jrv-voting-results__identity {
  min-width: 0;
}

.jrv-voting-results__title {
  margin: 0;
  color: var(--jrv-results-text);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.jrv-voting-results__entity {
  margin: 0.2rem 0 0;
  color: var(--jrv-results-text-muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.jrv-voting-results__ranking-item > .jrv-voting-results__score {
  min-width: 3.4rem;
  padding: 0.45rem 0.6rem;
  border-radius: 0.55rem;
  background: var(--jrv-results-accent);
  color: var(--jrv-results-accent-contrast);
  text-align: center;
  font-size: 1.05rem;
  line-height: 1;
}

.jrv-voting-results__count,
.jrv-voting-results__percentage {
  color: var(--jrv-results-text-muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.jrv-voting-results__distribution .jrv-voting-results__title {
  font-size: 1.1rem;
}

.jrv-voting-results__description,
.jrv-voting-results__distribution-meta,
.jrv-voting-results__multi-note {
  margin: 0.45rem 0 0;
  color: var(--jrv-results-text-muted);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.jrv-voting-results__distribution-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.35rem;
  font-size: 0.9rem;
}

.jrv-voting-results__distribution-meta strong {
  color: var(--jrv-results-text);
}

.jrv-voting-results__multi-note {
  font-size: 0.875rem;
}

.jrv-voting-results__distribution-list {
  margin-top: 1rem;
}

.jrv-voting-results__distribution-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(4.75rem, auto);
  align-items: baseline;
  gap: 0.45rem 0.8rem;
  padding: 0.65rem 0;
}

.jrv-voting-results__distribution-option .jrv-voting-results__count,
.jrv-voting-results__distribution-option .jrv-voting-results__percentage {
  line-height: 1.4;
}

.jrv-voting-results__option-label {
  min-width: 0;
  color: var(--jrv-results-text);
  font-weight: 650;
  overflow-wrap: anywhere;
}

.jrv-voting-results__percentage {
  color: var(--jrv-results-text);
  font-variant-numeric: tabular-nums;
  text-align: end;
}

.jrv-voting-results__bar {
  display: block;
  overflow: hidden;
  grid-column: 1 / -1;
  width: 100%;
  height: 0.65rem;
  border: 0;
  border-radius: 999px;
  accent-color: var(--jrv-results-accent);
  background: var(--jrv-results-track);
}

.jrv-voting-results__bar::-webkit-progress-bar {
  border-radius: 999px;
  background: var(--jrv-results-track);
}

.jrv-voting-results__bar::-webkit-progress-value {
  border-radius: 999px;
  background: var(--jrv-results-accent);
}

.jrv-voting-results__bar::-moz-progress-bar {
  border-radius: 999px;
  background: var(--jrv-results-accent);
}

.jrv-voting-results__visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

.jrv-voting-results__schedule-result {
  grid-column: 1 / -1;
  min-width: 0;
  margin-top: 1rem;
  padding-top: clamp(1rem, 3vw, 2rem);
  border-top: 1px solid var(--jrv-results-border);
}

.jrv-voting-results__preview-note {
  margin: 0 0 1rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--jrv-results-border);
  border-radius: 0.65rem;
  background: var(--jrv-results-surface-muted);
  color: var(--jrv-results-text-muted);
}

.jrv-voting-results__schedule-title { margin: 0; font-size: clamp(1.4rem, 3vw, 2rem); }
.jrv-voting-results__schedule-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0 1.5rem;
}
.jrv-voting-results__schedule-metrics > div {
  min-width: 10rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--jrv-results-border);
  border-radius: 0.75rem;
  background: var(--jrv-results-surface-muted);
}
.jrv-voting-results__schedule-metrics dt { color: var(--jrv-results-text-muted); font-size: 0.875rem; }
.jrv-voting-results__schedule-metrics dd { margin: 0.15rem 0 0; font-size: 1.3rem; font-weight: 750; }
.jrv-voting-results__schedule-result > .jrv-voting-results__section-title { margin-top: 2rem; }
.jrv-voting-results__schedule-grid-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--jrv-results-border);
  border-radius: 0.75rem;
  overscroll-behavior-inline: contain;
}
.jrv-voting-results__schedule-grid {
  width: 100%;
  min-width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}
.jrv-voting-results__schedule-grid tr { height: auto !important; }
.jrv-voting-results__schedule-grid th,
.jrv-voting-results__schedule-grid td {
  height: auto !important;
  min-height: 0 !important;
  padding: 0.5rem;
  border: 1px solid var(--jrv-results-border);
  vertical-align: top;
}
.jrv-voting-results__schedule-grid thead th,
.jrv-voting-results__schedule-grid tbody th { background: var(--jrv-results-surface-muted); }
.jrv-voting-results__schedule-grid thead th:first-child,
.jrv-voting-results__schedule-grid tbody th { text-align: start; }
.jrv-voting-results__schedule-grid thead th:not(:first-child) { text-align: center; }
.jrv-voting-results__schedule-grid thead th:first-child,
.jrv-voting-results__schedule-grid tbody th { width: 5.5rem; }
.jrv-voting-results__schedule-grid thead th:not(:first-child),
.jrv-voting-results__schedule-grid tbody td { min-width: 12.5rem; }
.jrv-voting-results__schedule-grid td.jrv-voting-results__schedule-cell--result {
  --jrv-results-text: CanvasText;
  --jrv-results-text-muted: GrayText;
  padding: 0;
  background: Canvas;
  color: var(--jrv-results-text);
  box-shadow: none;
}
.jrv-voting-results__schedule-grid td.jrv-voting-results__schedule-cell--empty {
  vertical-align: middle;
  text-align: center;
}
.jrv-voting-results__schedule-cell-detail {
  display: block;
  width: 100%;
  min-width: 0;
  height: auto !important;
  min-height: 0 !important;
  margin: 0;
  padding: 0.5rem 0.5rem 0.5rem 24px;
  background: var(--jrv-results-schedule-surface);
}
.jrv-voting-results__schedule-cell-summary {
  height: auto !important;
  min-height: 0;
  margin: 0;
  padding: 0;
  cursor: pointer;
  list-style-position: inside;
  line-height: 1.3;
}
.jrv-voting-results__schedule-cell-summary:focus-visible {
  outline: 3px solid var(--jrv-results-accent);
  outline-offset: 3px;
}
.jrv-voting-results__schedule-winner { display: inline; }
.jrv-voting-results__schedule-compact { display: block; }
.jrv-voting-results__schedule-winner { max-width: 100%; overflow-wrap: anywhere; }
.jrv-voting-results__schedule-compact { margin-top: 0.25rem; color: var(--jrv-results-text-muted); font-size: 0.8rem; }
.jrv-voting-results__schedule-empty { display: grid; min-height: 2.6rem; place-items: center; color: var(--jrv-results-text-muted); text-align: center; font-variant-numeric: tabular-nums; }
.jrv-voting-results__schedule-detail-panel {
  margin-top: 0.55rem;
  padding: 0;
}
.jrv-voting-results__schedule-detail-title { margin: 0; font-size: 0.9rem; line-height: 1.3; }
.jrv-voting-results__schedule-detail-total { margin: 0.15rem 0 0.55rem; color: var(--jrv-results-text-muted); font-size: 0.8rem; line-height: 1.35; }
.jrv-voting-results__schedule-breakdown { display: grid; gap: 0.45rem; margin: 0; padding: 0; list-style: none; }
.jrv-voting-results__schedule-breakdown-item { display: grid; gap: 0.08rem; font-size: 0.8rem; line-height: 1.35; }
.jrv-voting-results__schedule-breakdown-title { max-width: 100%; min-width: 0; overflow-wrap: anywhere; }
.jrv-voting-results__schedule-breakdown-value { white-space: nowrap; font-variant-numeric: tabular-nums; }
.jrv-voting-results__demand-cell {
  background: color-mix(in srgb, var(--jrv-results-accent) var(--jrv-demand-intensity), transparent);
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.jrv-voting-results__schedule-mobile { display: none; }
.jrv-voting-results__schedule-rankings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.jrv-voting-results__schedule-ranking {
  padding: 1rem;
  border: 1px solid var(--jrv-results-border);
  border-radius: 0.75rem;
}
.jrv-voting-results__schedule-ranking h3 { margin: 0 0 0.75rem; font-size: 1.05rem; }
.jrv-voting-results__schedule-ranking-list { display: grid; gap: 0.4rem; margin: 0; padding-inline-start: 1.5rem; }
.jrv-voting-results__schedule-ranking-item { padding-inline-start: 0.25rem; }
.jrv-voting-results__schedule-ranking-item span { overflow-wrap: anywhere; }
.jrv-voting-results__schedule-ranking-item strong { float: inline-end; margin-inline-start: 0.5rem; }

.jrv-voting-results__empty,
.jrv-voting-results__status {
  margin: 0.75rem 0 0;
  color: var(--jrv-results-text-muted);
}

.jrv-voting-results[data-jrv-results-state="loading"] .jrv-voting-results__status,
.jrv-voting-results[data-jrv-results-state="hidden"] .jrv-voting-results__status,
.jrv-voting-results[data-jrv-results-state="error"] .jrv-voting-results__status {
  padding: 0.85rem 1rem;
  border: 1px solid var(--jrv-results-border);
  border-radius: 0.75rem;
  background: var(--jrv-results-surface-muted);
}

.jrv-voting-results[data-jrv-results-state="error"] {
  --jrv-results-border: currentColor;
}

.jrv-voting-results[data-jrv-results-state="error"] .jrv-voting-results__status {
  color: var(--jrv-results-danger);
}

@media (max-width: 48rem) {
  .jrv-voting-results--summary [data-jrv-results-content] {
    grid-template-columns: 1fr;
  }

  .jrv-voting-results__ranking-item,
  .jrv-voting-results--ranking[data-jrv-results-show-count="1"] .jrv-voting-results__ranking-item {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.55rem 0.65rem;
  }

  .jrv-voting-results__ranking-item > .jrv-voting-results__count {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .jrv-voting-results__schedule-rankings { grid-template-columns: 1fr; }
}

@media (max-width: 39.9375rem) {
  .jrv-voting-results__schedule-grid-wrap { display: none; }
  .jrv-voting-results__schedule-mobile { display: grid; gap: 0.9rem; }
  .jrv-voting-results__schedule-day-card {
    padding: 0.85rem;
    border: 1px solid var(--jrv-results-border);
    border-radius: 0.75rem;
  }
  .jrv-voting-results__schedule-day-card h4 { margin: 0 0 0.65rem; }
  .jrv-voting-results__schedule-day-list { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 0; margin: 0; }
  .jrv-voting-results__schedule-day-list dt,
  .jrv-voting-results__schedule-day-list dd { margin: 0; padding: 0.55rem 0; border-top: 1px solid var(--jrv-results-border); }
  .jrv-voting-results__schedule-day-list dt { padding-inline-end: 0.5rem; font-weight: 650; }
  .jrv-voting-results__schedule-day-list dd { min-width: 0; }
  .jrv-voting-results__schedule-day-list dd.jrv-voting-results__schedule-cell--result {
    --jrv-results-text: CanvasText;
    --jrv-results-text-muted: GrayText;
    padding: 0;
    background: Canvas;
    color: var(--jrv-results-text);
    box-shadow: none;
  }
  .jrv-voting-results__schedule-day-list dd.jrv-voting-results__schedule-cell--result > .jrv-voting-results__schedule-cell-detail { padding: 0.55rem 0.5rem 0.55rem 24px; }
  .jrv-voting-results__schedule-day-list .jrv-voting-results__demand-cell { padding-inline: 0.5rem; }
}

@media (max-width: 33.75rem) {
  .jrv-voting-results {
    margin-bottom: 3rem;
  }

  .jrv-voting-results__summary-item,
  .jrv-voting-results__distribution {
    padding: 0.9rem;
    border-radius: 0.75rem;
  }

  .jrv-voting-results__ranking-item {
    padding: 0.75rem;
  }

  .jrv-voting-results__rank {
    min-width: 2.2rem;
    min-height: 2.2rem;
  }

  .jrv-voting-results__distribution-option {
    grid-template-columns: minmax(0, 1fr) auto minmax(4.5rem, auto);
    gap: 0.4rem 0.55rem;
  }
}

.jrv-voting-skeleton__schedule-cell.is-unavailable,
.jrv-voting-skeleton__schedule-mobile-cell.is-unavailable {
  cursor: not-allowed;
  border-style: dashed;
  background: var(--jrv-voting-surface-muted, var(--jrv-voting-surface));
}
