.twro-poll { min-width: 0; }

.twro-poll-loading {
  padding: 16px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--twro-mute, #6b8fa8);
}

.twro-poll-widget {
  background: linear-gradient(160deg, rgba(42, 74, 114, 0.95), rgba(30, 53, 88, 0.98));
  border: 1px solid rgba(232, 192, 90, 0.22);
  border-radius: 12px;
  padding: 16px 18px;
  font-family: inherit;
}

.twro-poll-widget__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.twro-poll-widget__cat {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--twro-gold-light, #ffe9a8);
  font-family: var(--twro-mono, monospace);
}

.twro-poll-widget__status {
  font-size: 0.68rem;
  padding: 3px 8px;
  border-radius: 999px;
}

.twro-poll-widget__status.is-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(74, 222, 128, 0.12);
  color: #4ade80;
  animation: twro-poll-live-bg 2.4s ease-in-out infinite;
}

.twro-poll-live-dot {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.65);
  animation: twro-poll-live-pulse 1.6s ease-in-out infinite;
}

@keyframes twro-poll-live-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55);
  }
  50% {
    opacity: 0.55;
    transform: scale(0.88);
    box-shadow: 0 0 0 6px rgba(74, 222, 128, 0);
  }
}

@keyframes twro-poll-live-bg {
  0%, 100% { background: rgba(74, 222, 128, 0.12); }
  50% { background: rgba(74, 222, 128, 0.22); }
}

.twro-poll-widget__status.is-closed {
  background: rgba(255, 255, 255, 0.06);
  color: var(--twro-mute, #9eb0cc);
}

.twro-poll-widget__q {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--twro-cream, #f8f4ee);
  margin: 0 0 14px;
}

.twro-poll-opts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.twro-poll-opt {
  position: relative;
  display: block;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: transparent;
  padding: 0;
  cursor: pointer;
  text-align: left;
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.twro-poll-opt:hover:not(:disabled) {
  border-color: rgba(232, 192, 90, 0.35);
}

.twro-poll-opt.is-selected {
  border-color: rgba(232, 192, 90, 0.55);
}

.twro-poll-opt:disabled {
  cursor: default;
}

.twro-poll-opt__bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: rgba(232, 192, 90, 0.1);
  transition: width 0.35s ease;
  z-index: 0;
}

.twro-poll-opt__row {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
}

.twro-poll-opt__label {
  font-size: 0.88rem;
  color: var(--twro-cream, #f8f4ee);
  line-height: 1.35;
}

.twro-poll-opt__pct {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--twro-gold-light, #ffe9a8);
  opacity: 0;
  transition: opacity 0.25s ease;
  flex-shrink: 0;
}

.twro-poll-opt__pct.is-visible {
  opacity: 1;
}

.twro-poll-widget__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.twro-poll-widget__total,
.twro-poll-widget__thanks {
  font-size: 0.78rem;
  color: var(--twro-mute, #9eb0cc);
}

.twro-poll-vote-btn {
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(232, 192, 90, 0.35);
  background: rgba(232, 192, 90, 0.12);
  color: var(--twro-gold-light, #ffe9a8);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  opacity: 0.45;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.twro-poll-vote-btn.is-ready {
  opacity: 1;
}

.twro-poll-vote-btn.is-ready:hover {
  background: rgba(232, 192, 90, 0.22);
}

.twro-poll-widget__embed {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.twro-poll-copy-btn {
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: var(--twro-mute, #9eb0cc);
  font-size: 0.72rem;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.twro-poll-copy-btn:hover {
  color: var(--twro-gold-light, #ffe9a8);
  border-color: rgba(232, 192, 90, 0.35);
  background: rgba(232, 192, 90, 0.06);
}

.twro-poll-copy-btn.is-copied {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.4);
  background: rgba(74, 222, 128, 0.1);
}

.portal-fresh-widget--poll,
.portal-fresh-widget--polls {
  padding-bottom: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  background: linear-gradient(160deg, rgba(42, 74, 114, 0.98), rgba(30, 53, 88, 1));
}

.portal-fresh-widget__poll-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.portal-fresh-widget__poll-item {
  flex-shrink: 0;
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.portal-fresh-widget__poll-item:first-child {
  padding-top: 0;
  margin-top: 0;
  border-top: none;
}

.portal-fresh-widget--poll-extra {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.portal-fresh-widget--poll .twro-poll-widget,
.portal-fresh-widget--polls .twro-poll-widget {
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
}

.portal-fresh-widget--poll .twro-poll-widget__embed,
.portal-fresh-widget--polls .twro-poll-widget__embed {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.portal-fresh-widget--polls .portal-fresh-widget__more {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.portal-fresh-widget__poll-more-link {
  color: var(--twro-lime, #c8ff3d) !important;
  font-weight: 600;
}

.portal-fresh-widget__poll-more {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.portal-fresh-widget__poll-more-label {
  margin: 0 0 8px;
  font-size: 0.68rem;
  font-family: var(--twro-mono, monospace);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--twro-gold-light, #ffe9a8);
}

.portal-fresh-widget__poll-more-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.portal-fresh-widget__poll-more-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  gap: 2px 8px;
  padding: 10px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  color: var(--twro-cream, #f4efe6);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.portal-fresh-widget__poll-more-item:hover {
  background: rgba(232, 192, 90, 0.1);
  border-color: rgba(232, 192, 90, 0.28);
  color: var(--twro-gold-light, #ffe9a8);
}

.portal-fresh-widget__poll-more-meta {
  grid-column: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.portal-fresh-widget__poll-more-cat {
  font-size: 0.62rem;
  font-family: var(--twro-mono, monospace);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--twro-gold-light, #ffe9a8);
  opacity: 0.9;
}

.portal-fresh-widget__poll-more-live {
  font-size: 0.6rem;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(74, 222, 128, 0.14);
  color: #4ade80;
}

.portal-fresh-widget__poll-more-q {
  grid-column: 1;
  font-size: 0.82rem;
  line-height: 1.45;
  font-weight: 600;
}

.portal-fresh-widget__poll-more-go {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--twro-lime, #c8ff3d);
  white-space: nowrap;
}

html[data-twro-theme="light"] .twro-poll-widget {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.1);
}

html[data-twro-theme="light"] .twro-poll-widget__q,
html[data-twro-theme="light"] .twro-poll-opt__label {
  color: #1e293b;
}

html[data-twro-theme="light"] .twro-poll-opt {
  border-color: rgba(15, 23, 42, 0.1);
}

html[data-twro-theme="light"] .twro-poll-vote-btn {
  color: #b45309;
  border-color: rgba(180, 83, 9, 0.3);
  background: rgba(251, 191, 36, 0.12);
}

html[data-twro-theme="light"] .twro-poll-widget__embed {
  border-top-color: rgba(15, 23, 42, 0.08);
}

html[data-twro-theme="light"] .twro-poll-copy-btn {
  color: #64748b;
  border-color: rgba(15, 23, 42, 0.12);
}

html[data-twro-theme="light"] .twro-poll-copy-btn:hover {
  color: #b45309;
  border-color: rgba(180, 83, 9, 0.3);
  background: rgba(251, 191, 36, 0.08);
}

html[data-twro-theme="light"] .portal-fresh-widget__poll-item {
  border-top-color: rgba(15, 23, 42, 0.1);
}

html[data-twro-theme="light"] .portal-fresh-widget__poll-more {
  border-top-color: rgba(15, 23, 42, 0.1);
}

html[data-twro-theme="light"] .portal-fresh-widget__poll-more-item {
  border-color: rgba(15, 23, 42, 0.1);
  background: rgba(15, 23, 42, 0.03);
  color: #1e293b;
}

html[data-twro-theme="light"] .portal-fresh-widget__poll-more-item:hover {
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(180, 83, 9, 0.25);
  color: #92400e;
}

html[data-twro-theme="light"] .portal-fresh-widget__poll-more-cat,
html[data-twro-theme="light"] .portal-fresh-widget__poll-more-label {
  color: #b45309;
}

html[data-twro-theme="light"] .portal-fresh-widget__poll-more-go,
html[data-twro-theme="light"] .portal-fresh-widget__poll-more-link {
  color: #4d7c0f !important;
}
