#bbaudio-recorder-container,
#bbaudio-recorder-container * {
	box-sizing: border-box;
}

.bbaudio-feed-player {
	margin: 10px 0;
}

.bbaudio-feed-player audio {
	display: block;
	width: 100%;
}

.activity-item.bbaudio-audio-only .bb-activity-media-wrap.ac-document,
.activity-item.bbaudio-audio-only .bb-activity-media-wrap .document-activity[data-id],
.activity-item.bbaudio-audio-only .bb-activity-media-wrap .bb-rl-document-activity[data-id],
.activity-item.bbaudio-audio-only .bp-activity-document-attachment,
.bbaudio-hidden-document {
	display: none !important;
}

#bbaudio-recorder-container [hidden] {
	display: none !important;
}

#bbaudio-recorder-container {
	margin: 12px 0 4px;
	padding: 20px;
	border: 1px solid #dce1e8;
	border-radius: 14px;
	background: #f7f9fc;
	color: #1c2738;
}

.bbaudio-heading {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin-bottom: 16px;
}

.bbaudio-heading-icon {
	display: grid;
	flex: 0 0 42px;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 11px;
	background: #e9edf3;
	color: #34445a;
	font-size: 24px;
}

.bbaudio-eyebrow {
	display: block;
	margin: 0 0 3px;
	color: #69798e;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .1em;
}

#bbaudio-recorder-container .bbaudio-heading h3 {
	margin: 0 0 3px;
	color: #1c2738;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
}

#bbaudio-recorder-container .bbaudio-heading p {
	margin: 0;
	color: #627185;
	font-size: 14px;
	line-height: 1.5;
}

.bbaudio-display {
	padding: 16px 18px 12px;
	border: 1px solid #344156;
	border-radius: 12px;
	background: linear-gradient(150deg, #202b3c, #121b2a);
	box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.bbaudio-display-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.bbaudio-state-indicator {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	color: #aebbd0;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .11em;
}

.bbaudio-led {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #8695aa;
	box-shadow: 0 0 0 4px rgba(134,149,170,.12);
}

.bbaudio-recorder[data-state="recording"] .bbaudio-led {
	background: #ff5b5d;
	box-shadow: 0 0 0 4px rgba(255,91,93,.18);
	animation: bbaudio-pulse 1.25s ease-in-out infinite;
}

.bbaudio-recorder[data-state="requesting"] .bbaudio-led,
.bbaudio-recorder[data-state="countdown"] .bbaudio-led,
.bbaudio-recorder[data-state="uploading"] .bbaudio-led {
	background: #efb969;
	box-shadow: 0 0 0 4px rgba(239,185,105,.14);
}

.bbaudio-recorder[data-state="review"] .bbaudio-led,
.bbaudio-recorder[data-state="attached"] .bbaudio-led {
	background: #71d4b2;
	box-shadow: 0 0 0 4px rgba(113,212,178,.14);
}

.bbaudio-timer {
	color: #f2f6fc;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: clamp(28px, 4vw, 40px);
	font-variant-numeric: tabular-nums;
	font-weight: 600;
	letter-spacing: .04em;
	line-height: 1;
}

.bbaudio-recorder[data-state="countdown"] .bbaudio-timer {
	color: #ffd58e;
}

#bbaudio-meter {
	display: block;
	width: 100%;
	height: 58px;
	margin-top: 12px;
}

#bbaudio-recorder-container .bbaudio-status {
	min-height: 22px;
	margin: 13px 1px 0;
	color: #526178;
	font-size: 14px;
	line-height: 1.5;
}

#bbaudio-recorder-container .bbaudio-status.is-error {
	color: #ac2729;
}

.bbaudio-preview {
	margin-top: 15px;
	padding: 13px 15px;
	border: 1px solid #dce1e8;
	border-radius: 11px;
	background: #fff;
}

.bbaudio-preview-label {
	display: block;
	margin-bottom: 8px;
	color: #34445a;
	font-size: 13px;
	font-weight: 700;
}

.bbaudio-preview audio {
	display: block;
	width: 100%;
	height: 48px;
}

.bbaudio-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 16px;
}

#bbaudio-recorder-container .bbaudio-button {
	min-height: 44px;
	padding: 9px 18px;
	border: 1px solid transparent;
	border-radius: 9px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	cursor: pointer;
	transition: background-color .16s ease, border-color .16s ease, transform .16s ease;
}

#bbaudio-recorder-container .bbaudio-button-primary {
	background: #cf2824;
	color: #fff;
}

#bbaudio-recorder-container .bbaudio-button-primary:hover {
	background: #a91d1a;
	color: #fff;
}

#bbaudio-recorder-container .bbaudio-button-secondary {
	border-color: #cbd4df;
	background: #fff;
	color: #28364a;
}

#bbaudio-recorder-container .bbaudio-button-secondary:hover {
	background: #edf1f6;
	color: #28364a;
}

#bbaudio-recorder-container .bbaudio-button-cancel {
	border-color: #56657a;
	background: #56657a;
	color: #fff;
}

#bbaudio-recorder-container .bbaudio-button-cancel:hover {
	border-color: #405066;
	background: #405066;
	color: #fff;
}

#bbaudio-recorder-container .bbaudio-button:focus-visible {
	outline: 3px solid #2d75b9;
	outline-offset: 2px;
}

#bbaudio-recorder-container .bbaudio-button:disabled {
	opacity: .55;
	cursor: wait;
}

@keyframes bbaudio-pulse {
	50% { box-shadow: 0 0 0 7px rgba(255,91,93,.06); }
}

@media (max-width: 600px) {
	#bbaudio-recorder-container { padding: 15px; }
	.bbaudio-heading { gap: 10px; }
	.bbaudio-heading-icon { flex-basis: 36px; width: 36px; height: 36px; }
	.bbaudio-display { padding: 14px 13px 10px; }
	.bbaudio-actions { flex-direction: column; }
	#bbaudio-recorder-container .bbaudio-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.bbaudio-recorder[data-state="recording"] .bbaudio-led { animation: none; }
	#bbaudio-recorder-container .bbaudio-button { transition: none; }
}
