:root {
	--dc-ink: #1c2b2a;
	--dc-ink-soft: #2c3f3c;
	--dc-paper: #f6f1e7;
	--dc-paper-raised: #fffdf8;
	--dc-accent: #ff6f59;
	--dc-accent-soft: #ffe3dc;
	--dc-sage: #7fa694;
	--dc-sage-soft: #e4efe9;
	--dc-text: #22302d;
	--dc-meta: #7c8a86;
	--dc-line: #e7ded0;
	--dc-nav-h: 60px;
	--dc-header-h: 64px;
	--dc-input-h: 60px;
	--font-display: "Fraunces", Georgia, serif;
	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
	margin: 0;
	height: 100%;
	background: #14201f;
	color: var(--dc-text);
	font-family: var(--font-body);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overscroll-behavior-y: none;
}

/* Native-app tap feedback everywhere: no lingering focus rings, no text
   selection ghosting on interactive chrome, buttons feel "pressed". */
button, a, .dc-nav-item { -webkit-user-select: none; user-select: none; }
button { font-family: inherit; }
a { -webkit-tap-highlight-color: transparent; }

/* Hide scrollbars app-wide while keeping scroll functional, so nothing
   reads as "a website" instead of an installed app. */
::-webkit-scrollbar { display: none; }
* { scrollbar-width: none; -ms-overflow-style: none; }

/* Lock the whole theme to a phone-width "app" frame, even on desktop browsers */
.dc-app {
	max-width: 480px;
	width: 100%;
	margin: 0 auto;
	min-height: 100dvh;
	background: var(--dc-paper);
	position: relative;
	overflow: hidden;
	isolation: isolate;
}

@media (min-width: 481px) {
	body { display: flex; justify-content: center; align-items: center; background: #0c1413; }
	.dc-app {
		min-height: 100dvh;
		max-height: 100dvh;
		border-radius: 34px;
		box-shadow: 0 30px 80px rgba(0,0,0,0.55), 0 0 0 10px #0c1413, 0 0 0 11px rgba(255,255,255,0.06);
	}
}

/* ---------- Chat ---------- */
.dc-chat-container {
	display: flex;
	flex-direction: column;
	height: 100dvh;
	background: var(--dc-paper);
	background-image: radial-gradient(circle at 1px 1px, rgba(28,43,42,0.05) 1px, transparent 1px);
	background-size: 22px 22px;
}

.dc-chat-header {
	background: var(--dc-ink);
	color: #fff;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 16px;
	padding-top: calc(10px + env(safe-area-inset-top));
	height: var(--dc-header-h);
	flex-shrink: 0;
	z-index: 5;
	border-bottom: 3px solid var(--dc-accent);
	background-image: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0));
	box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}

.dc-avatar {
	width: 40px; height: 40px;
	border-radius: 50%;
	background: var(--dc-accent);
	display: flex; align-items: center; justify-content: center;
	font-size: 19px;
	flex-shrink: 0;
	box-shadow: 0 0 0 2px rgba(255,255,255,0.15);
}

.dc-header-info { line-height: 1.3; min-width: 0; }
.dc-header-name { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: 0.01em; }
.dc-header-status { font-size: 0.72rem; color: rgba(255,255,255,0.6); font-family: var(--font-mono); text-transform: lowercase; }

#dc-chat-window {
	flex: 1;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: 18px 14px;
	display: flex;
	flex-direction: column;
}

.dc-msg-row { display: flex; margin-bottom: 10px; }
.dc-msg-row.dc-row-bot { justify-content: flex-start; }
.dc-msg-row.dc-row-user { justify-content: flex-end; }

.dc-msg {
	max-width: 78%;
	padding: 10px 13px 9px;
	border-radius: 14px;
	line-height: 1.45;
	font-size: 0.93rem;
	position: relative;
	word-break: break-word;
	box-shadow: 0 1px 2px rgba(28,43,42,0.06);
}

.dc-msg-bot {
	background: var(--dc-paper-raised);
	border: 1px solid var(--dc-line);
	border-bottom-left-radius: 3px;
	color: var(--dc-text);
}
.dc-msg-user {
	background: var(--dc-ink);
	color: #fdf9f2;
	border-bottom-right-radius: 3px;
}

.dc-msg-meta {
	display: block;
	text-align: right;
	font-size: 0.63rem;
	font-family: var(--font-mono);
	color: var(--dc-meta);
	margin-top: 4px;
	margin-left: 10px;
}
.dc-msg-user .dc-msg-meta { color: rgba(253,249,242,0.55); }

.dc-ticks { color: var(--dc-accent); margin-left: 4px; }

.dc-input-row {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 12px;
	padding-bottom: calc(10px + var(--dc-nav-h) + env(safe-area-inset-bottom));
	background: var(--dc-paper-raised);
	border-top: 1px solid var(--dc-line);
	flex-shrink: 0;
}

#dc-input {
	flex: 1;
	padding: 12px 16px;
	border-radius: 24px;
	border: 1px solid var(--dc-line);
	background: var(--dc-paper);
	font-size: 16px; /* prevents iOS zoom-on-focus */
	font-family: var(--font-body);
	min-width: 0;
	color: var(--dc-text);
}
#dc-input:focus { outline: none; border-color: var(--dc-accent); background: #fff; }

#dc-send, #dc-mic {
	border: none;
	background: var(--dc-ink);
	color: #fff;
	width: 42px;
	height: 42px;
	flex-shrink: 0;
	border-radius: 50%;
	cursor: pointer;
	font-size: 1.05rem;
	transition: transform 0.12s ease;
}
#dc-send:active, #dc-mic:active { transform: scale(0.92); }

#dc-mic.dc-listening { background: var(--dc-accent); animation: dc-pulse 1s infinite; }

@keyframes dc-pulse {
	0% { box-shadow: 0 0 0 0 rgba(255,111,89,0.45); }
	70% { box-shadow: 0 0 0 12px rgba(255,111,89,0); }
	100% { box-shadow: 0 0 0 0 rgba(255,111,89,0); }
}

.dc-typing {
	display: inline-flex;
	gap: 4px;
	padding: 12px 14px;
}
.dc-typing span {
	width: 6px; height: 6px; border-radius: 50%;
	background: var(--dc-sage);
	animation: dc-blink 1.2s infinite;
}
.dc-typing span:nth-child(2) { animation-delay: 0.2s; }
.dc-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dc-blink { 0%, 60%, 100% { opacity: 0.3; } 30% { opacity: 1; } }

/* ---------- Bottom nav ---------- */
.dc-bottom-nav {
	display: flex;
	flex-shrink: 0;
	background: rgba(20, 32, 31, 0.86);
	-webkit-backdrop-filter: blur(20px) saturate(160%);
	backdrop-filter: blur(20px) saturate(160%);
	height: var(--dc-nav-h);
	padding-bottom: env(safe-area-inset-bottom);
	border-top: 1px solid rgba(255,255,255,0.06);

	/* Pinned to the true bottom of the viewport, independent of how much
	   (or how little) content is on the page above it — so it never
	   scrolls away, gets clipped, or leaves a gap on an empty screen. */
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	max-width: 480px;
	margin: 0 auto;
	z-index: 30;
	transition: transform 0.22s ease;
}

/* Slid fully off-screen (rather than display:none) so the transition is
   smooth; used while a chat thread is open so it gets the full screen,
   the way WhatsApp hides its tab bar inside a conversation. */
.dc-bottom-nav.dc-nav-hidden {
	transform: translateY(110%);
	pointer-events: none;
}

/* While a thread has taken over the screen, the input row no longer needs
   to reserve space for the (now hidden) tab bar underneath it. */
body.dc-thread-open .dc-thread-input-row {
	padding-bottom: calc(10px + env(safe-area-inset-bottom));
}

.dc-nav-item {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	text-decoration: none;
	color: rgba(255,255,255,0.48);
	font-size: 0.64rem;
	font-family: var(--font-mono);
	letter-spacing: 0.02em;
	position: relative;
	transition: color 0.18s ease, transform 0.15s ease;
}
.dc-nav-item:active { transform: scale(0.9); }

.dc-nav-icon {
	font-size: 1.22rem;
	transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.dc-nav-active { color: var(--dc-accent); }
.dc-nav-active .dc-nav-icon {
	transform: translateY(-1px) scale(1.08);
	filter: drop-shadow(0 0 8px rgba(255,111,89,0.55));
}
/* Small glowing pill under the active tab's icon, like a real app's tab bar */
.dc-nav-active::before {
	content: "";
	position: absolute;
	top: 6px;
	left: 50%;
	transform: translateX(-50%);
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: rgba(255,111,89,0.14);
	z-index: -1;
}

/* ---------- Dashboard ---------- */
.dc-dashboard {
	display: flex;
	flex-direction: column;
	height: 100dvh;
	background: var(--dc-paper);
}

.dc-dashboard-header {
	background: var(--dc-ink);
	color: #fdf9f2;
	padding: 16px 20px;
	padding-top: calc(16px + env(safe-area-inset-top));
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1.2rem;
	flex-shrink: 0;
	border-bottom: 3px solid var(--dc-accent);
}

.dc-dashboard-body {
	padding: 20px 18px 32px;
	padding-bottom: calc(32px + var(--dc-nav-h) + env(safe-area-inset-bottom));
	overflow-y: auto;
	flex: 1;
	-webkit-overflow-scrolling: touch;
}

.dc-dashboard-body h3 {
	font-family: var(--font-mono);
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--dc-meta);
	margin: 24px 0 8px;
	font-weight: 500;
}
.dc-dashboard-body h3:first-child { margin-top: 4px; }

.dc-stat {
	font-family: var(--font-display);
	font-size: 2.4rem;
	font-weight: 600;
	color: var(--dc-ink);
}

/* Streak trail: a row of dots, like markers on a journal's page edge */
#dc-mood-trend {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 4px;
	padding: 14px;
	background: var(--dc-paper-raised);
	border: 1px solid var(--dc-line);
	border-radius: 14px;
}
.dc-mood-bar {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	box-shadow: 0 0 0 3px var(--dc-paper-raised), 0 0 0 4px var(--dc-line);
}

.dc-back-link { display: none; }

.dc-kiarahub-input {
	width: 100%;
	padding: 12px 14px;
	border-radius: 10px;
	border: 1px solid var(--dc-line);
	background: var(--dc-paper-raised);
	font-size: 16px;
	font-family: var(--font-body);
	color: var(--dc-text);
}
.dc-kiarahub-input:focus { outline: none; border-color: var(--dc-accent); }

/* ---------- Auth modal ---------- */
.dc-modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 1000;
	background: rgba(20, 32, 31, 0.6);
	display: flex;
	align-items: flex-end;
	justify-content: center;
}

.dc-modal-sheet {
	position: relative;
	width: 100%;
	max-width: 480px;
	max-height: 92dvh;
	overflow-y: auto;
	background: var(--dc-ink);
	border-radius: 22px 22px 0 0;
	border-top: 3px solid var(--dc-accent);
	padding-bottom: env(safe-area-inset-bottom);
	animation: dc-modal-up 0.22s ease-out;
}

@media (min-width: 520px) {
	.dc-modal-overlay { align-items: center; }
	.dc-modal-sheet { border-radius: 20px; margin: 20px; border-top: none; }
}

@keyframes dc-modal-up {
	from { transform: translateY(24px); opacity: 0; }
	to { transform: translateY(0); opacity: 1; }
}

.dc-modal-close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	width: 34px;
	height: 34px;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-size: 1.3rem;
	line-height: 1;
	cursor: pointer;
}

.dc-login-hero-modal { padding: 44px 0 20px; }

.dc-login-hero {
	flex: 0 0 auto;
	text-align: center;
	color: #fdf9f2;
	padding: 56px 0 30px;
}

.dc-login-logo {
	width: 64px;
	height: 64px;
	margin: 0 auto 14px;
	border-radius: 50%;
	background: var(--dc-accent);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.9rem;
}

.dc-login-title {
	font-family: var(--font-display);
	font-size: 1.7rem;
	font-weight: 600;
	margin: 0 0 6px;
}

.dc-login-subtitle {
	font-size: 0.88rem;
	color: rgba(253,249,242,0.65);
	margin: 0;
}

.dc-login-card,
.dc-login-card-modal {
	background: var(--dc-paper-raised);
	border-radius: 22px 22px 0 0;
	padding: 26px 22px 30px;
}

@media (min-width: 520px) {
	.dc-login-card-modal { border-radius: 0 0 20px 20px; }
}

.dc-login-heading {
	font-family: var(--font-display);
	margin: 0 0 6px;
	font-size: 1.25rem;
	color: var(--dc-text);
}

.dc-login-text {
	color: var(--dc-meta);
	font-size: 0.87rem;
	margin: 0 0 18px;
	line-height: 1.45;
}

.dc-login-error {
	background: var(--dc-accent-soft);
	color: #b3421f;
	padding: 10px 12px;
	border-radius: 10px;
	font-size: 0.85rem;
	margin-bottom: 16px;
}

.dc-social-btn-wrap { margin-bottom: 12px; }

.dc-social-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 13px 16px;
	border-radius: 12px;
	border: 1px solid var(--dc-line);
	background: #fff;
	color: var(--dc-text);
	font-size: 0.94rem;
	font-weight: 600;
	font-family: var(--font-body);
	cursor: pointer;
	margin-bottom: 12px;
	text-decoration: none;
	box-sizing: border-box;
}

.dc-fb-btn { background: #1877f2; color: #fff; border-color: #1877f2; }
.dc-social-icon { font-weight: 800; font-style: italic; font-size: 1.1rem; }

.dc-login-divider {
	text-align: center;
	color: #c9beac;
	font-size: 0.78rem;
	margin: 6px 0 16px;
	position: relative;
}
.dc-login-divider::before,
.dc-login-divider::after {
	content: '';
	position: absolute;
	top: 50%;
	width: 38%;
	height: 1px;
	background: var(--dc-line);
}
.dc-login-divider::before { left: 0; }
.dc-login-divider::after { right: 0; }

.dc-login-footer {
	text-align: center;
	color: rgba(253,249,242,0.4);
	font-size: 0.7rem;
	font-family: var(--font-mono);
	padding: 16px 0 22px;
}

.dc-auth-tabs {
	display: flex;
	background: var(--dc-paper);
	border-radius: 12px;
	padding: 4px;
	margin-bottom: 18px;
}

.dc-auth-tab {
	flex: 1;
	border: none;
	background: transparent;
	padding: 10px 0;
	border-radius: 9px;
	font-size: 0.87rem;
	font-weight: 600;
	font-family: var(--font-body);
	color: var(--dc-meta);
	cursor: pointer;
}

.dc-auth-tab-active {
	background: var(--dc-ink);
	color: #fdf9f2;
}

.dc-email-form {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 4px;
}

.dc-text-input {
	width: 100%;
	padding: 13px 14px;
	border-radius: 12px;
	border: 1px solid var(--dc-line);
	font-size: 16px;
	font-family: var(--font-body);
	box-sizing: border-box;
	background: var(--dc-paper);
	color: var(--dc-text);
}
.dc-text-input:focus { outline: none; border-color: var(--dc-accent); background: #fff; }

.dc-primary-btn {
	background: var(--dc-ink);
	color: #fdf9f2;
	border-color: var(--dc-ink);
	margin-top: 4px;
}

.dc-forgot-link { text-align: center; margin: 0 0 18px; }
.dc-forgot-link a { color: var(--dc-meta); font-size: 0.8rem; text-decoration: none; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
	#dc-mic.dc-listening,
	.dc-typing span,
	.dc-modal-sheet { animation: none; }
}

/* ---------- KiaraHub hub cards (used by Reels ad slides) ---------- */
.dc-hub-intro {
	color: var(--dc-meta);
	font-size: 0.88rem;
	line-height: 1.5;
	margin: 0 0 20px;
}
.dc-hub-intro a { color: var(--dc-ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--dc-accent); }

.dc-hub-grid {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.dc-hub-card {
	display: block;
	background: var(--dc-paper-raised);
	border: 1px solid var(--dc-line);
	border-left: 4px solid var(--dc-ink);
	border-radius: 16px;
	padding: 16px 18px;
	text-decoration: none;
	color: inherit;
	transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.dc-hub-card:active { transform: scale(0.98); }

.dc-hub-card-coral { border-left-color: var(--dc-accent); }
.dc-hub-card-sage { border-left-color: var(--dc-sage); }
.dc-hub-card-ink { border-left-color: var(--dc-ink); }

.dc-hub-card-top {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
}

.dc-hub-icon {
	font-size: 1.4rem;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--dc-paper);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.dc-hub-eyebrow {
	font-family: var(--font-mono);
	font-size: 0.66rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--dc-meta);
}

.dc-hub-title {
	font-family: var(--font-display);
	font-size: 1.08rem;
	font-weight: 600;
	margin: 0 0 6px;
	color: var(--dc-text);
	line-height: 1.3;
}

.dc-hub-text {
	font-size: 0.85rem;
	color: var(--dc-meta);
	line-height: 1.45;
	margin: 0 0 10px;
}

.dc-hub-link {
	font-family: var(--font-mono);
	font-size: 0.78rem;
	font-weight: 500;
	color: var(--dc-accent);
}

.dc-hub-promo-banner {
	display: block;
	background: var(--dc-ink);
	color: #fdf9f2;
	text-decoration: none;
	padding: 12px 14px;
	margin: 10px 10px 0;
	border-radius: 12px;
	font-size: 0.82rem;
	border: 1px solid var(--dc-ink);
}
.dc-hub-promo-banner strong { color: var(--dc-accent); }

/* ---------- Reels feed ---------- */
.dc-reels-empty {
	height: 100dvh;
	background: #000;
	color: #fff;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	text-align: center;
	padding: 24px;
}
.dc-reels-empty-icon { font-size: 2.5rem; }
.dc-reels-empty a { color: var(--dc-accent); }

/* ---------- Reel submit ---------- */
.dc-reel-add-btn {
	position: fixed;
	right: 16px;
	bottom: calc(var(--dc-nav-h) + 18px + env(safe-area-inset-bottom));
	z-index: 40;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	border: none;
	background: var(--dc-accent);
	color: #fff;
	font-size: 1.8rem;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
	cursor: pointer;
}
.dc-reel-add-btn:active { transform: scale(0.9); }
.dc-reel-add-btn::after {
	content: "";
	position: absolute;
	inset: -6px;
	border-radius: 50%;
	border: 1.5px solid rgba(255,111,89,0.4);
	animation: dc-reel-add-ring 2.4s ease-out infinite;
}
@keyframes dc-reel-add-ring {
	0% { transform: scale(0.9); opacity: 0.9; }
	100% { transform: scale(1.35); opacity: 0; }
}

@media (min-width: 520px) {
	.dc-reel-add-btn { right: calc(50% - 240px + 16px); }
}

/* Floating mute/unmute toggle — reflects whichever video is currently
   on screen, since only one is ever audible at a time. */
.dc-reel-mute-btn {
	position: fixed;
	right: 16px;
	top: calc(env(safe-area-inset-top) + 16px);
	z-index: 40;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid rgba(255,255,255,0.16);
	background: rgba(20, 32, 31, 0.55);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	color: #fff;
	font-size: 1.05rem;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: transform 0.12s ease, background 0.18s ease;
}
.dc-reel-mute-btn:active { transform: scale(0.88); }
.dc-reel-mute-btn-muted { background: rgba(255,111,89,0.22); border-color: rgba(255,111,89,0.4); }

@media (min-width: 520px) {
	.dc-reel-mute-btn { right: calc(50% - 240px + 16px); }
}

.dc-reels {
	height: 100dvh;
	overflow-y: scroll;
	scroll-snap-type: y mandatory;
	background: #000;
	scroll-behavior: smooth;
}

.dc-reel {
	position: relative;
	height: 100dvh;
	scroll-snap-align: start;
	scroll-snap-stop: always;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #000;
	overflow: hidden;
}

/* Subtle top/bottom vignette on every video slide so overlaid UI (mute
   button, caption, nav) stays legible over any footage. */
.dc-reel-video::before,
.dc-reel-video::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	pointer-events: none;
	z-index: 1;
}
.dc-reel-video::before {
	top: 0;
	height: 110px;
	background: linear-gradient(rgba(0,0,0,0.45), transparent);
}
.dc-reel-video::after {
	bottom: 0;
	height: 42%;
	background: linear-gradient(transparent, rgba(0,0,0,0.7) 85%);
}

.dc-reel-yt-wrap {
	position: absolute;
	inset: 0;
}
.dc-reel-yt-frame {
	width: 100%;
	height: 100%;
	border: none;
}

.dc-reel-embed-wrap {
	width: 100%;
	height: 100%;
	overflow-y: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #111;
	padding: 12px;
}

.dc-reel-caption {
	position: absolute;
	left: 16px;
	right: 70px;
	bottom: calc(var(--dc-nav-h) + env(safe-area-inset-bottom) + 22px);
	color: #fff;
	font-size: 0.88rem;
	line-height: 1.4;
	font-weight: 500;
	text-shadow: 0 1px 6px rgba(0,0,0,0.7);
	pointer-events: none;
	z-index: 2;
}

/* Ad slide — visually distinct from content, clearly labeled */
.dc-reel-ad {
	background: var(--dc-ink);
	padding: 32px 26px;
	flex-direction: column;
	align-items: stretch;
	justify-content: center;
}

.dc-reel-ad-badge {
	position: absolute;
	top: 18px;
	left: 18px;
	background: rgba(255,255,255,0.14);
	color: #fdf9f2;
	font-family: var(--font-mono);
	font-size: 0.66rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	padding: 5px 10px;
	border-radius: 20px;
	z-index: 2;
}

.dc-reel-ad-body {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: #fdf9f2;
}

.dc-reel-ad-icon {
	font-size: 3rem;
	margin-bottom: 18px;
}

.dc-reel-ad-eyebrow {
	font-family: var(--font-mono);
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: rgba(253,249,242,0.55);
	margin-bottom: 8px;
}

.dc-reel-ad-title {
	font-family: var(--font-display);
	font-size: 1.7rem;
	font-weight: 600;
	line-height: 1.25;
	margin: 0 0 12px;
}

.dc-reel-ad-text {
	font-size: 0.95rem;
	color: rgba(253,249,242,0.75);
	line-height: 1.5;
	margin: 0 0 26px;
}

.dc-reel-ad-cta {
	display: inline-block;
	background: var(--dc-accent);
	color: var(--dc-ink);
	font-weight: 600;
	font-size: 0.9rem;
	padding: 13px 20px;
	border-radius: 12px;
	text-align: center;
}

.dc-reel-ad-coral .dc-reel-ad-cta { background: var(--dc-accent); }
.dc-reel-ad-sage .dc-reel-ad-cta { background: var(--dc-sage); color: var(--dc-ink); }
.dc-reel-ad-ink .dc-reel-ad-cta { background: #fdf9f2; color: var(--dc-ink); }

/* ---------- Chats (person-to-person messaging) ---------- */
.dc-people {
	height: 100dvh;
	display: flex;
	flex-direction: column;
	background: #fdf9f2;
	position: relative;
	overflow: hidden;
}

.dc-people-list-view,
.dc-people-thread-view {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
}

.dc-people-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px;
	background: var(--dc-ink);
	color: #fff;
	box-shadow: 0 4px 14px rgba(0,0,0,0.18);
	position: relative;
	z-index: 2;
}
.dc-people-header h2 { margin: 0; font-family: var(--font-display); font-size: 1.3rem; }
.dc-people-header-actions { display: flex; gap: 8px; }
.dc-people-header button {
	background: rgba(255,255,255,0.15);
	border: none;
	color: #fff;
	font-size: 1.1rem;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	cursor: pointer;
}

.dc-people-search-row {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	background: #fff;
	border-bottom: 1px solid #eee2cf;
}
.dc-people-search-row input {
	flex: 1;
	padding: 10px 12px;
	border: 1px solid #eee2cf;
	border-radius: 20px;
	font-size: 0.95rem;
	background: #fdf9f2;
}
.dc-people-search-row button {
	background: none;
	border: none;
	font-size: 1rem;
	color: var(--dc-meta);
	cursor: pointer;
}

.dc-people-search-results:empty { display: none; }
.dc-people-search-results {
	max-height: 50vh;
	overflow-y: auto;
	margin: 4px -16px -16px;
}
.dc-people-search-results .dc-convo-row { padding: 10px 16px; }
.dc-search-status {
	flex-shrink: 0;
	font-size: 0.72rem;
	color: var(--dc-meta);
	font-weight: 600;
}
.dc-search-status-online { color: var(--dc-sage); }

/* Invite friends panel */
.dc-invite-panel {
	background: #fff;
	border-bottom: 1px solid #eee2cf;
	max-height: 70vh;
	display: flex;
	flex-direction: column;
}
.dc-invite-body {
	padding: 12px 16px 16px;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.dc-invite-primary-btn,
.dc-invite-secondary-btn {
	display: block;
	width: 100%;
	padding: 12px 14px;
	border-radius: 12px;
	border: none;
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	text-align: left;
}
.dc-invite-primary-btn { background: var(--dc-ink); color: #fff; }
.dc-invite-secondary-btn { background: var(--dc-sage-soft); color: var(--dc-ink); }
.dc-invite-hint { margin: 0; font-size: 0.8rem; color: var(--dc-meta); }
.dc-invite-results .dc-convo-row { cursor: default; }

/* Find-friends channel row inside the Contacts panel */
.dc-find-friends-label {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--dc-meta);
	margin-bottom: 2px;
}
.dc-channel-row {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px;
	margin-bottom: 8px;
}
.dc-channel-btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 10px 4px;
	border: none;
	border-radius: 12px;
	background: var(--dc-sage-soft);
	color: var(--dc-ink);
	font-size: 0.68rem;
	font-weight: 600;
	cursor: pointer;
}
.dc-channel-icon { font-size: 1.25rem; }

/* Group avatar badge overlay + member-picker rows on the New Group panel */
.dc-group-badge {
	position: absolute;
	right: -2px;
	bottom: -2px;
	font-size: 0.65rem;
	background: #fff;
	border-radius: 50%;
	padding: 1px 2px;
	line-height: 1;
	box-shadow: 0 0 0 2px #fff;
}
.dc-group-name-input {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid #eee2cf;
	border-radius: 12px;
	font-size: 0.95rem;
	font-family: inherit;
	background: #fdf9f2;
}
.dc-group-member-row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 4px;
	cursor: pointer;
	border-bottom: 1px solid #f4ede0;
}
.dc-group-member-row:last-child { border-bottom: none; }
.dc-group-member-check { width: 18px; height: 18px; flex-shrink: 0; }

/* Sender name label above a group message bubble from someone else */
.dc-msg-sender {
	display: block;
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--dc-sage);
	margin-bottom: 2px;
}

/* Thread header title + subtitle stack (used for group member counts) */
.dc-thread-title { display: flex; flex-direction: column; line-height: 1.2; }
.dc-thread-subtitle { font-size: 0.72rem; color: rgba(255,255,255,0.7); }
.dc-invite-action-btn {
	flex-shrink: 0;
	background: var(--dc-ink);
	color: #fff;
	border: none;
	padding: 7px 14px;
	border-radius: 16px;
	font-size: 0.8rem;
	font-weight: 600;
	cursor: pointer;
}

.dc-conversations-list {
	flex: 1;
	overflow-y: auto;
	padding-bottom: calc(var(--dc-nav-h) + env(safe-area-inset-bottom));
}

.dc-people-loading,
.dc-people-empty {
	padding: 24px 16px;
	text-align: center;
	color: var(--dc-meta);
	font-size: 0.9rem;
}

.dc-convo-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	cursor: pointer;
	border-bottom: 1px solid #f4ede0;
}
.dc-convo-row:active,
.dc-convo-row:hover { background: #f4ede0; }

.dc-avatar-bubble {
	flex-shrink: 0;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-weight: 700;
	font-size: 1.05rem;
	position: relative;
	background-size: cover;
	background-position: center;
	box-shadow: 0 0 0 2px rgba(255,255,255,0.6);
}

/* Small green presence dot, bottom-right of any avatar bubble */
.dc-online-dot {
	position: absolute;
	right: -1px;
	bottom: -1px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #3bc26a;
	box-shadow: 0 0 0 2px #fdf9f2;
}

/* "Online now" horizontal strip above the conversation list */
.dc-online-strip {
	display: flex;
	gap: 14px;
	padding: 12px 16px 4px;
	overflow-x: auto;
	background: #fdf9f2;
	border-bottom: 1px solid #f4ede0;
}
.dc-online-strip[hidden] { display: none; }
.dc-online-item {
	flex-shrink: 0;
	width: 58px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	cursor: pointer;
}
.dc-online-avatar {
	width: 50px;
	height: 50px;
	font-size: 1.15rem;
	box-shadow: 0 0 0 2px var(--dc-accent);
}
.dc-online-name {
	font-size: 0.68rem;
	color: var(--dc-meta);
	max-width: 58px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.dc-convo-body { flex: 1; min-width: 0; }
.dc-convo-top {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
}
.dc-convo-name { font-weight: 600; color: var(--dc-ink); font-size: 0.98rem; }
.dc-convo-time { font-size: 0.75rem; color: var(--dc-meta); flex-shrink: 0; }
.dc-convo-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: 2px;
}
.dc-convo-preview {
	color: var(--dc-meta);
	font-size: 0.85rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.dc-convo-unread {
	flex-shrink: 0;
	background: var(--dc-sage);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 700;
	min-width: 18px;
	height: 18px;
	border-radius: 9px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 5px;
}

/* Thread view */
.dc-people-thread-header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	background: var(--dc-ink);
	color: #fff;
}
.dc-people-thread-header button {
	background: none;
	border: none;
	color: #fff;
	font-size: 1.2rem;
	cursor: pointer;
	padding: 4px 6px;
}
.dc-thread-avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-weight: 700;
	flex-shrink: 0;
	background-size: cover;
	background-position: center;
}
.dc-thread-name { font-weight: 600; }

.dc-thread-messages {
	flex: 1;
	overflow-y: auto;
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	background: #f4ede0;
}

.dc-msg {
	max-width: 78%;
	padding: 8px 12px;
	border-radius: 14px;
	font-size: 0.92rem;
	line-height: 1.4;
	position: relative;
	word-wrap: break-word;
	margin-top: 6px;
}
.dc-msg-theirs {
	align-self: flex-start;
	background: #fff;
	color: var(--dc-ink);
	border-bottom-left-radius: 4px;
}
.dc-msg-mine {
	align-self: flex-end;
	background: var(--dc-sage);
	color: #fff;
	border-bottom-right-radius: 4px;
}

/* Consecutive messages from the same person sit closer together and lose
   their "tail" corner on the joined edge, Better-Messages/WhatsApp style,
   instead of every single bubble having equal spacing and a full tail. */
.dc-msg-grouped-top { margin-top: 2px; }
.dc-msg-theirs.dc-msg-grouped-top { border-top-left-radius: 4px; }
.dc-msg-mine.dc-msg-grouped-top { border-top-right-radius: 4px; }
.dc-msg-theirs.dc-msg-grouped-bottom { border-bottom-left-radius: 4px; }
.dc-msg-mine.dc-msg-grouped-bottom { border-bottom-right-radius: 4px; }
.dc-msg-theirs:not(.dc-msg-grouped-bottom) { border-bottom-left-radius: 4px; }

.dc-msg-meta {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 4px;
	margin-top: 3px;
}
.dc-msg-time {
	font-size: 0.68rem;
	opacity: 0.65;
}
.dc-msg-ticks {
	font-size: 0.72rem;
	line-height: 1;
	letter-spacing: -2px;
	opacity: 0.75;
}
.dc-msg-ticks-read { color: #4fc3f7; opacity: 1; }
.dc-msg-pending { opacity: 0.6; }
.dc-msg-failed {
	background: #c1666b;
	cursor: pointer;
}
.dc-msg-failed .dc-msg-time { opacity: 0.9; }

/* "Today" / "Yesterday" / date pill centered between message groups */
.dc-day-divider {
	display: flex;
	justify-content: center;
	margin: 10px 0 4px;
}
.dc-day-divider span {
	background: rgba(0,0,0,0.06);
	color: var(--dc-meta);
	font-size: 0.7rem;
	font-family: var(--font-mono);
	padding: 3px 12px;
	border-radius: 20px;
}

/* Three-dot "typing…" bubble, same shape as an incoming message */
.dc-msg-typing {
	padding: 10px 14px;
	display: flex;
	align-items: center;
}
.dc-typing-dots { display: inline-flex; gap: 4px; }
.dc-typing-dots span {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--dc-meta);
	opacity: 0.5;
	animation: dc-typing-bounce 1.1s infinite ease-in-out;
}
.dc-typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.dc-typing-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes dc-typing-bounce {
	0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
	30% { transform: translateY(-4px); opacity: 1; }
}

.dc-thread-input-row button:disabled {
	opacity: 0.5;
	pointer-events: none;
}

.dc-thread-input-row {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 12px;
	padding-bottom: calc(10px + var(--dc-nav-h) + env(safe-area-inset-bottom));
	background: #fff;
	border-top: 1px solid #eee2cf;
}
.dc-thread-input-row input {
	flex: 1;
	padding: 10px 14px;
	border: 1px solid #eee2cf;
	border-radius: 22px;
	font-size: 0.95rem;
}
.dc-thread-input-row button {
	background: var(--dc-ink);
	color: #fff;
	border: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	font-size: 1.05rem;
	cursor: pointer;
	flex-shrink: 0;
}
