/* Polls component — theme-agnostic: colors derive from currentColor/opacity */
.boom_poll {
	display: block;
	max-width: 420px;
	margin: 6px 0;
	padding: 10px 12px;
	border: 1px solid rgba(128, 128, 128, 0.25);
	border-radius: 10px;
	font-size: 13px;
	line-height: 1.4;
}
.chat_message .boom_poll {
	margin: 6px 0 2px 0;
}
.poll_question {
	font-weight: bold;
	font-size: 14px;
	word-wrap: break-word;
}
.poll_meta {
	opacity: 0.6;
	font-size: 11px;
	margin: 2px 0 8px 0;
}
.poll_closed_badge {
	font-weight: bold;
}
.poll_option {
	margin: 4px 0;
	word-wrap: break-word;
}
.poll_pickable {
	cursor: pointer;
	padding: 6px 8px;
	border: 1px solid rgba(128, 128, 128, 0.3);
	border-radius: 8px;
}
.poll_pickable:hover {
	background: rgba(128, 128, 128, 0.12);
}
.poll_radio {
	display: inline-block;
	width: 14px;
	height: 14px;
	margin-right: 8px;
	vertical-align: -2px;
	border: 2px solid rgba(128, 128, 128, 0.6);
	border-radius: 50%;
}
.poll_pickable.picked {
	background: rgba(128, 128, 128, 0.15);
}
.poll_pickable.picked .poll_radio {
	border-color: currentColor;
	background: currentColor;
	box-shadow: inset 0 0 0 2.5px rgba(255, 255, 255, 0.85);
}
.poll_option_top {
	display: flex;
	justify-content: space-between;
	gap: 8px;
}
.poll_option_nums {
	opacity: 0.65;
	font-size: 11px;
	white-space: nowrap;
}
.poll_mine .poll_option_text {
	font-weight: bold;
}
.poll_bar {
	height: 5px;
	margin-top: 3px;
	border-radius: 3px;
	background: rgba(128, 128, 128, 0.2);
	overflow: hidden;
}
.poll_bar_fill {
	height: 100%;
	border-radius: 3px;
	background: currentColor;
	opacity: 0.65;
	min-width: 2px;
}
.poll_vote_btn {
	width: 100%;
	margin-top: 6px;
	cursor: pointer;
}
.poll_footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px 10px;
	margin-top: 8px;
	font-size: 11px;
	opacity: 0.85;
}
.poll_total {
	opacity: 0.7;
}
.poll_voters_link {
	cursor: pointer;
	text-decoration: underline;
	opacity: 1;
}
.poll_actions {
	display: inline-flex;
	gap: 10px;
	flex-wrap: wrap;
}
.poll_action {
	cursor: pointer;
	text-decoration: underline;
}
.poll_close_action {
	opacity: 0.8;
}

/* Poll creation modal */
.poll_create_option_row {
	margin: 6px 0;
}
.poll_builder .poll_create_option_row input,
#poll_create_box .poll_create_option_row input {
	width: 100%;
}
.poll_create_add {
	cursor: pointer;
	font-size: 12px;
	display: inline-block;
	margin: 4px 0 8px 0;
}
.poll_create_toggles label {
	display: block;
	margin: 6px 0;
	cursor: pointer;
}

/* Voters modal */
.poll_voters_option {
	font-weight: bold;
	margin: 10px 0 6px 0;
}
.poll_voters_grid {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

/* Inline builder in news/wall composers */
.poll_builder {
	display: none;
	margin-top: 8px;
	padding: 8px;
	border: 1px dashed rgba(128, 128, 128, 0.4);
	border-radius: 8px;
}
.poll_builder.open {
	display: block;
}
/* Inside the chat creation modal the builder is the whole dialog — no frame */
#poll_create_box .poll_builder {
	border: none;
	padding: 0;
	margin: 0 0 10px 0;
}
.poll_builder input[type=text] {
	margin: 3px 0;
}
