.poll-alert {
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
}

.poll-alert--ok {
  background: #e8f6ec;
  color: #166534;
}

.poll-alert--err {
  background: #fde8e8;
  color: #b42318;
}

.poll-sidebar {
  margin: 0 0 0.85rem;
  padding: 0.9rem 0.95rem 1rem;
  border-radius: var(--theme-box-radius, 16px);
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-border, rgba(0, 0, 0, 0.08));
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

html[data-theme-mode="dark"] .poll-sidebar {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
}

.poll-sidebar__title {
  margin: -0.9rem -0.95rem 0.85rem;
  padding: 0.7rem 0.95rem;
  border-radius: var(--theme-box-radius, 16px) var(--theme-box-radius, 16px) 0 0;
  background: var(--color-primary, #ff6b00);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 800;
}

.poll-sidebar__body {
  display: grid;
  gap: 0.95rem;
}

.poll-slider.is-slider .poll-card {
  display: none;
}

.poll-slider.is-slider .poll-card.is-active {
  display: block;
}

.poll-sidebar__dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.9rem;
}

.poll-sidebar__dot {
  width: 1.35rem;
  height: 0.5rem;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: color-mix(in srgb, var(--color-text, #1a1a1a) 20%, transparent);
  cursor: pointer;
}

.poll-sidebar__dot.is-active {
  background: var(--color-primary, #ff6b00);
}

.poll-card__question {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-text, #1a1a1a);
}

.poll-card__options {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 0.95rem;
}

.poll-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  border: 1px solid var(--color-border, rgba(0, 0, 0, 0.1));
  cursor: pointer;
  font-size: 0.86rem;
  color: var(--color-text, #1a1a1a);
}

.poll-option:hover {
  border-color: var(--color-primary, #ff6b00);
}

.poll-option input {
  accent-color: var(--color-primary, #ff6b00);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.poll-card__submit {
  background: var(--color-primary, #ff6b00);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.poll-card__submit:hover {
  opacity: 0.9;
}

.poll-card__results {
  display: grid;
  gap: 0.75rem;
}

.poll-card__results--with-form {
  margin-top: 0.95rem;
  padding-top: 0.95rem;
  border-top: 1px dashed var(--color-border, rgba(0, 0, 0, 0.12));
}

.poll-result__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-text, #1a1a1a);
  margin-bottom: 0.3rem;
}

.poll-result__bar {
  height: 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-text, #1a1a1a) 10%, transparent);
  overflow: hidden;
}

.poll-result__bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--color-primary, #ff6b00);
}

.poll-card__total {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: color-mix(in srgb, var(--color-text, #1a1a1a) 58%, transparent);
}
