/*
 * K-be526053 — audio clips on the creator dashboard (the flows signed off 21 Nov 2026: c01-c04 drawn by K; Sam's 6.5-6.8
 * for the chat). Plain CSS: the tiles and the player are drawn by the pages' scripts too, which Tailwind does not read.
 * The colours are the dashboard's own tokens, so Heduno's look and each brand app's /creator follow.
 */
.audio-tile {
	position: relative;
	display: block;
	overflow: hidden;
	background: linear-gradient(160deg, #3b1d4a 0%, #7b2559 55%, #d61f69 100%);
	color: #fff;
}
.audio-tile-cover {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.audio-tile-mark {
	position: absolute;
	left: 3px;
	bottom: 3px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 14px;
	height: 14px;
	border-radius: 999px;
	background: rgba(17, 17, 17, 0.72);
	color: #fff;
}
.audio-tile-mark svg {
	width: 9px;
	height: 9px;
}
.audio-tile-pill {
	position: absolute;
	left: 8px;
	bottom: 8px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px 7px;
	border-radius: 999px;
	background: rgba(17, 17, 17, 0.72);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	line-height: 16px;
}
.audio-tile-pill svg {
	width: 11px;
	height: 11px;
}
/* The Library's length under the file name (c04). */
.contents-clip-length {
	display: block;
	margin-top: 2px;
	font-size: 12px;
	font-weight: 500;
	color: var(--text-muted-oklch, #6b7280);
}
.contents-type-badge-audio {
	background: #f3e8ff;
	color: #7e22ce;
}
/* New post: the Cover picture tile. */
.post-composer-cover-label {
	white-space: nowrap;
	position: absolute;
	left: 8px;
	bottom: 8px;
	z-index: 1;
	padding: 2px 7px;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.92);
	color: #111;
	font-size: 11px;
	font-weight: 600;
	line-height: 16px;
}
.post-composer-clip-failed {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	color: #b91c1c;
	font-size: 12px;
	font-weight: 600;
}
.post-composer-clip-failed svg {
	width: 16px;
	height: 16px;
}
/* The clip player (Sam's 6.5 sent bubble, 6.6, 6.8). */
.clip-player {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}
.clip-player-play {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 999px;
	background: #fff;
	color: var(--primary-oklch, #d61f69);
	cursor: pointer;
}
.clip-player-play svg {
	width: 14px;
	height: 14px;
}
.clip-player-play svg + svg,
.clip-player[data-state="playing"] .clip-player-play svg:first-child {
	display: none;
}
.clip-player[data-state="playing"] .clip-player-play svg + svg {
	display: block;
}
.clip-player-wave {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	justify-content: space-between;
	gap: 2px;
	height: 26px;
	min-width: 60px;
	overflow: hidden;
}
.clip-player-wave span {
	flex: 0 0 2px;
	border-radius: 2px;
	background: currentColor;
	opacity: 0.45;
}
.clip-player-wave span.is-played {
	opacity: 1;
}
.clip-player-time {
	flex: none;
	font-size: 13px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}
/* The chat bubble: the creator's sent clip in the brand colour; still being checked or held, its pale version. */
.messages-clip-bubble {
	width: 280px;
	max-width: 100%;
	padding: 10px 12px;
	border-radius: 18px;
	background: var(--primary-oklch, #d61f69);
	color: var(--primary-fg-oklch, #fff);
}
.messages-clip-bubble.is-incoming {
	border: 1px solid var(--border-oklch, #e5e7eb);
	background: var(--surface-oklch, #fff);
	color: var(--text-oklch, #111);
}
.messages-clip-bubble.is-incoming .clip-player-play,
.messages-clip-bubble.is-pale .clip-player-play {
	background: var(--primary-oklch, #d61f69);
	color: #fff;
}
.messages-clip-bubble.is-pale {
	background: color-mix(in oklch, var(--primary-oklch, #d61f69) 16%, #fff);
	color: var(--primary-oklch, #d61f69);
}
.messages-clip-bubble.is-pale .clip-player-play {
	background: #fff;
	color: var(--primary-oklch, #d61f69);
}
.messages-clip-caption {
	margin: 8px 2px 0;
	font-size: 14px;
	line-height: 1.35;
	white-space: pre-line;
	overflow-wrap: anywhere;
}
.messages-clip-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 6px;
	font-size: 10px;
	color: var(--text-muted-oklch, #6b7280);
}
.messages-clip-chip {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--surface-2-oklch, #f3f4f6);
	color: var(--text-oklch, #111);
	font-size: 11px;
	font-weight: 600;
}
.messages-clip-chip svg {
	width: 11px;
	height: 11px;
}
.messages-clip-chip.is-held,
.messages-clip-chip.is-unbought {
	background: color-mix(in oklch, var(--primary-oklch, #d61f69) 12%, #fff);
	color: #be123c;
}
.messages-clip-chip.is-held {
	color: #b91c1c;
	background: #fef2f2;
}
/* The Media tab (6.7, 6.8): the chips, the days, the tiles and the Audio rows. */
.messages-media-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 14px;
}
.messages-media-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.messages-media-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border: 0;
	border-radius: 999px;
	background: var(--surface-2-oklch, #f3f4f6);
	color: var(--text-oklch, #111);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}
.messages-media-chip svg {
	width: 14px;
	height: 14px;
}
.messages-media-chip .messages-media-chip-count {
	color: var(--text-muted-oklch, #6b7280);
	font-weight: 600;
}
.messages-media-chip[aria-pressed="true"] {
	background: #111;
	color: #fff;
}
.messages-media-chip[aria-pressed="true"] .messages-media-chip-count {
	color: rgba(255, 255, 255, 0.75);
}
.messages-media-everything {
	font-size: 13px;
	color: var(--text-muted-oklch, #6b7280);
}
.messages-media-day {
	margin: 14px 0 8px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--text-muted-oklch, #6b7280);
}
.messages-media-day:first-child {
	margin-top: 0;
}
.messages-media-tile-caption {
	margin-top: 6px;
	font-size: 12px;
	color: var(--text-oklch, #111);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.messages-media-kind {
	position: absolute;
	top: 8px;
	right: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 999px;
	background: var(--primary-oklch, #d61f69);
	color: #fff;
}
.messages-media-kind svg {
	width: 15px;
	height: 15px;
}
.messages-media-audio-tile {
	position: absolute;
	inset: 0;
	background: linear-gradient(160deg, #fbe4ef 0%, #efe4f8 100%);
}
.messages-media-tag {
	position: absolute;
	top: 8px;
	left: 8px;
	padding: 2px 8px;
	border-radius: 999px;
	background: #fff;
	color: var(--primary-oklch, #d61f69);
	font-size: 12px;
	font-weight: 700;
}
.messages-media-tag.is-bought {
	background: #ecfdf3;
	color: #067647;
}
.messages-media-rows {
	display: grid;
	gap: 10px;
}
.messages-media-row {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 12px 16px;
	border: 1px solid var(--border-oklch, #e5e7eb);
	border-radius: 14px;
	background: var(--surface-oklch, #fff);
}
.messages-media-row .clip-player {
	flex: 0 1 380px;
	color: var(--primary-oklch, #d61f69);
}
.messages-media-row .clip-player-play {
	background: var(--primary-oklch, #d61f69);
	color: #fff;
}
.messages-media-row-text {
	flex: 1 1 auto;
	min-width: 0;
}
.messages-media-row-text strong {
	display: block;
	font-size: 14px;
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.messages-media-row-text strong.is-empty {
	color: var(--text-muted-oklch, #6b7280);
	font-weight: 500;
}
.messages-media-row-text span {
	font-size: 13px;
	color: var(--text-muted-oklch, #6b7280);
}
@media (width <= 640px) {
	.messages-media-row {
		flex-wrap: wrap;
		gap: 8px;
	}
	.messages-media-row .clip-player {
		flex-basis: 100%;
	}
}
