body { background: #f8f9fa; }
.navbar { margin-bottom: 2rem; }
.poll-settings-btn, .vote-btn {
  border: none;
  background: #2563eb;
  color: #fff;
}
#poll-settings-btn {
  background: #dc3545 !important;
  color: #fff !important;
  border: none;
}
#poll-settings-btn:hover {
  background: #b52a37 !important;
  color: #fff !important;
}
  border-radius: 0.25rem;
  height: 38px;
  min-width: 120px;
  width: 120px;
  font-size: 1rem;
  padding: 6px 0;
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: none;
  margin-left: 0.5rem;
  font-weight: 500;
  letter-spacing: 1px;
  vertical-align: bottom;
}
.poll-settings-btn:hover, .vote-btn:hover {
  background: #1746b8;
  box-shadow: 0 0 0 2px #2563eb33;
}
.vote-img { max-width: 100px; max-height: 80px; display:block; margin-top:8px; }
.vote-video { max-width: 180px; max-height: 120px; display:block; margin-top:8px; }
.pointer { cursor:pointer; }
.option-card { transition: box-shadow .2s; }

/* 统一操作图标和徽章样式 */
.option-actions-top .badge,
.option-actions-top .icon-btn {
  background: #dc3545;
  color: #fff;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 1rem;
  margin-left: 4px;
  transition: background 0.2s;
  border: none;
  box-shadow: none;
  padding: 0;
}
.option-actions-top .badge {
  font-weight: bold;
  font-size: 1rem;
  min-width: 28px;
}
.option-actions-top .icon-btn:hover,
.option-actions-top .badge:hover {
  background: #b52a37;
}
.option-actions-top .icon-btn svg {
  width: 18px;
  height: 18px;
  display: block;
  margin: auto;
  pointer-events: none;
}

#poll-settings-modal {
  overflow-y: auto;
  max-height: 90vh;
  top: 0 !important;
  align-items: flex-start;
  display: flex;
  justify-content: center;
}
#poll-settings-modal .modal-content {
  max-height: 85vh;
  overflow-y: auto;
  box-sizing: border-box;
}
@media (max-width: 600px) {
  #poll-settings-modal {
    max-height: 100vh;
    padding-top: env(safe-area-inset-top, 12px);
    align-items: flex-start;
  }
  #poll-settings-modal .modal-content {
    max-height: 80vh;
    margin: 0 auto;
    width: 98vw;
    min-width: 0;
  }
}
/* 输入框获得焦点时弹窗靠顶，防止键盘遮挡 */
#poll-settings-modal input:focus, #poll-settings-modal textarea:focus {
  scroll-margin-top: 24px;
}
body.keyboard-open #poll-settings-modal {
  align-items: flex-start !important;
  padding-top: 8px !important;
}