.art-poll {
  --poll-green: #217843;
  --poll-yellow: #886400;
  --poll-red: #c0343b;
  --poll-marker: #b85c64;
  --poll-divider: rgba(0, 0, 0, 0.07);
  --poll-concealed: #e5e5e5;
  --poll-concealed-text: #777;
  --poll-selected-text: #fff;
  --poll-results-space: 0.65rem;
  --poll-button-height: 44px;
  margin: 2rem 0;
}
html[data-theme="dark"] .art-poll {
  --poll-green: #77d697;
  --poll-yellow: #e9c451;
  --poll-red: #ff8d93;
  --poll-marker: #e69a9f;
  --poll-divider: rgba(255, 255, 255, 0.09);
  --poll-concealed: #3b3b3b;
  --poll-concealed-text: #aaa;
  --poll-selected-text: #222;
}
.art-poll__current {
  display: block;
  color: var(--poll-marker);
  font-weight: inherit;
}
.art-poll__intro {
  font-size: 0.9rem;
}
.art-poll__table {
  width: 100%;
  border-collapse: collapse;
}
.art-poll__table thead th {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  padding-bottom: 0.75rem;
}
.art-poll__table thead th:not(:first-child) {
  width: 1%;
  text-align: center;
  white-space: nowrap;
}
.art-poll__table tbody {
  border-top: 1px solid var(--poll-divider);
  scroll-margin-top: 80px;
}
.art-poll__table.table-hover tbody tr:hover {
  background-color: transparent;
  color: inherit;
}
.art-poll__table tbody th {
  font-size: 0.9rem;
  font-weight: inherit;
  line-height: 1.55;
  padding: 0.55rem 1.75rem calc(0.55rem + var(--poll-results-space)) 0;
}
.art-poll__table td {
  padding: 0.55rem 0;
}
.art-poll__table th,
.art-poll__table td {
  vertical-align: middle;
}
.art-poll__choices {
  display: flex;
  gap: 0.4rem;
  justify-content: flex-end;
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.art-poll__table .art-poll__author-cell {
  padding-left: 0.8rem;
  text-align: center;
}
.art-poll__author-label {
  display: none;
}
.art-poll__author-vote {
  margin-bottom: var(--poll-results-space);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--poll-button-height);
  width: 4.5rem;
  border-radius: 5px;
  font-size: 0.82rem;
  white-space: nowrap;
  background: var(--poll-concealed);
  color: var(--poll-concealed-text);
}
.art-poll__author-vote--revealed {
  background: color-mix(in srgb, currentColor 12%, transparent);
}
.art-poll__not-slop {
  --poll-choice-color: var(--poll-green);
  color: var(--poll-green);
}
.art-poll__unsure {
  --poll-choice-color: var(--poll-yellow);
  color: var(--poll-yellow);
}
.art-poll__slop {
  --poll-choice-color: var(--poll-red);
  color: var(--poll-red);
}
.art-poll__choice {
  position: relative;
  display: block;
  margin: 0;
  cursor: pointer;
}
.art-poll__choice input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  margin: 0;
  cursor: pointer;
  z-index: 1;
}
.art-poll__choice span {
  position: relative;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: var(--poll-button-height);
  padding: 0.4rem 1.1rem;
  border: 1px solid currentColor;
  border-radius: 5px;
  font-size: 0.82rem;
  white-space: nowrap;
  background: transparent;
}
.art-poll__choice input:checked + span {
  background: var(--poll-choice-color);
  border-color: var(--poll-choice-color);
  color: var(--poll-selected-text);
  font-weight: 600;
}
.art-poll__percentage {
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 0.55rem;
  line-height: 1;
  font-weight: 400;
}
.art-poll__choice input:focus-visible + span {
  outline: 2px solid var(--poll-choice-color);
  outline-offset: 3px;
}
.art-poll__choice:hover input:not(:disabled) + span {
  box-shadow: inset 0 0 0 1px var(--poll-choice-color);
}
.art-poll__choices:disabled {
  opacity: 0.55;
}
.art-poll [hidden] {
  display: none !important;
}
.art-poll__voting {
  width: max-content;
  max-width: 100%;
  margin-left: auto;
}
.art-poll__results-space {
  height: var(--poll-results-space);
  box-sizing: border-box;
}
.art-poll__voting-cell {
  position: relative;
}
.art-poll__results {
  position: absolute;
  left: 0;
  right: 0;
  /* Center the 3px bar between the button bottoms and the row divider, even on tall rows. */
  top: calc(75% + var(--poll-button-height) / 4 - var(--poll-results-space) / 4 - 1.5px);
}
.art-poll__bar {
  display: flex;
  width: 100%;
  height: 3px;
  border-radius: 3px;
  overflow: hidden;
  background: var(--global-divider-color, #d8d8d8);
}
.art-poll__bar span {
  height: 100%;
  background: currentColor;
}
.art-poll__footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.25rem;
}
.art-poll__footer button {
  min-height: 44px;
  border-radius: 5px;
  padding: 0.55rem 0.9rem;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}
.art-poll__submit {
  background: var(--global-text-color, #222);
  color: var(--global-bg-color, #fff);
  border: 1px solid var(--global-text-color, #222);
}
.art-poll__view {
  background: transparent;
  color: var(--global-text-color, #222);
  border: 1px solid var(--global-divider-color, #aaa);
}
.art-poll__footer button:disabled {
  opacity: 0.5;
  cursor: default;
}
.art-poll__footer button:focus-visible {
  outline: 2px solid var(--global-theme-color, #555);
  outline-offset: 3px;
}
.art-poll__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
@media (max-width: 700px) {
  .art-poll__table thead {
    display: none;
  }
  .art-poll__table,
  .art-poll__table tbody,
  .art-poll__table tr,
  .art-poll__table th,
  .art-poll__table td {
    display: block;
  }
  .art-poll__table tbody th {
    padding: 0.55rem 0 0.65rem;
    grid-column: 1 / -1;
  }
  .art-poll__table tbody > tr:first-child {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    column-gap: 0.5rem;
  }
  .art-poll__table .art-poll__author-cell {
    padding-left: 0;
  }
  .art-poll__author-label {
    display: flex;
    justify-content: center;
    height: 1.25rem;
    font-size: 0.7rem;
  }
  .art-poll__author-vote {
    width: 4rem;
    font-size: 0.75rem;
  }
  .art-poll__choice span {
    font-size: 0.75rem;
    padding: 0.4rem 0.55rem;
  }
  .art-poll__table td {
    padding: 0 0 0.55rem;
  }
  .art-poll__choices {
    justify-content: flex-start;
    gap: 0.25rem;
  }
  .art-poll__voting {
    margin-left: 0;
    margin-top: 1.25rem;
  }
  .art-poll__results {
    position: static;
  }
  .art-poll__results-space {
    padding-top: calc((var(--poll-results-space) + 0.55rem - 3px) / 2);
  }
  .art-poll__table tbody > tr:first-child {
    align-items: start;
  }
  .art-poll__table .art-poll__author-cell {
    align-self: start;
  }
}
