/* Theme-safe modal / scheduled card fill (replaces hard cream hexes) */
.uc-modal-surface {
	background: var(--uc-dna-card-surface, var(--uc-surface)) !important;
	color: var(--uc-text);
}

.border-strong {
	border-color: var(--uc-dna-border-strong, var(--uc-border-strong)) !important;
}

/* ── Metric Tiles (wallet stats) ─────────────────────────────── */
.uc-settings-metric-tile {
	text-align: center;
	padding: 8px 6px;
	border: 1px solid var(--uc-border);
	border-radius: 6px;
	background: var(--uc-surface-soft);
}
.uc-settings-metric-kicker {
	font-size: 9px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--uc-text-muted);
	margin-bottom: 2px;
}
.uc-settings-metric-value {
	font-size: 20px;
	font-weight: 900;
	color: var(--uc-text);
	letter-spacing: -0.02em;
}

/* ── Point Package Cards ─────────────────────────────────────── */
.uc-pkg-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 10px 8px;
	border: 1px solid var(--uc-border);
	border-radius: 8px;
	background: var(--uc-surface);
	cursor: pointer;
	transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
}
.uc-pkg-card:hover {
	border-color: var(--uc-primary);
	box-shadow: 0 2px 8px rgba(153, 27, 27, 0.12);
}
.uc-pkg-card:active {
	transform: scale(0.97);
}
.uc-pkg-card-points {
	font-size: 18px;
	font-weight: 900;
	color: var(--uc-text);
}
.uc-pkg-card-price {
	font-size: 11px;
	font-weight: 700;
	color: var(--uc-danger-text);
}
.uc-pkg-card-label {
	font-size: 9px;
	color: var(--uc-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

#page-settings .uc-settings-shell {
	border: 2px solid var(--uc-dna-border-strong);
	border-radius: var(--uc-dna-card-radius, 8px);
	box-shadow:
		var(--uc-dna-shadow-hard, 6px 6px 0 rgba(0, 0, 0, 0.35)),
		0 0 0 1px color-mix(in srgb, var(--uc-gold) 22%, transparent);
	background: var(--uc-dna-card-surface, var(--uc-surface));
	overflow: hidden;
}

#page-settings .uc-settings-intro {
	color: var(--uc-text-secondary);
}

#page-settings .uc-settings-accordion {
	display: grid;
	gap: 8px;
}

#page-settings .uc-settings-item {
	border: 2px solid var(--uc-dna-border-strong, var(--uc-border));
	border-radius: 6px;
	overflow: hidden;
	background: var(--uc-surface);
	box-shadow: var(--uc-dna-shadow-soft, 3px 3px 0 rgba(0, 0, 0, 0.25));
}

#page-settings .uc-settings-summary {
	list-style: none !important;
	cursor: pointer;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 8px;
	padding: 10px 12px;
	border-bottom: 2px solid var(--uc-gold-dim, var(--uc-border));
	box-shadow: inset 0 -2px 0 var(--uc-gold);
	background: var(--uc-dna-header-red, var(--uc-primary));
	color: var(--uc-text-on-primary);
}

#page-settings .uc-settings-summary::-webkit-details-marker {
	display: none;
}

#page-settings .uc-settings-summary::marker {
	content: "";
}

#page-settings .uc-settings-summary::before {
	content: "▸";
	font-size: 13px;
	font-weight: 900;
	color: var(--uc-gold);
}

#page-settings .uc-settings-item[open] .uc-settings-summary::before {
	content: "▾";
}

#page-settings .uc-settings-summary::after {
	content: "";
}

#page-settings .uc-settings-title {
	font-size: 12px;
	font-weight: 900;
	color: var(--uc-text-on-primary);
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

#page-settings .uc-settings-meta {
	font-size: 11px;
	color: color-mix(in srgb, var(--uc-text-on-primary) 78%, transparent);
	text-align: right;
}

#page-settings .uc-settings-panel {
	padding: 10px 12px 12px;
	background: var(--uc-surface-sunken);
	color: var(--uc-text);
}

/* Danger Zone — heat-safe destructive DNA (no Classic !bg-red-50 pink paper) */
#page-settings .uc-settings-item--danger {
	border-color: var(--uc-danger-border);
	box-shadow:
		var(--uc-dna-shadow-hard, 6px 6px 0 rgba(0, 0, 0, 0.4)),
		0 0 0 1px color-mix(in srgb, var(--uc-danger) 35%, transparent);
}

#page-settings .uc-settings-item--danger > .uc-settings-summary {
	background: color-mix(in srgb, var(--uc-danger) 88%, #1a0508);
	border-bottom-color: var(--uc-gold-dim);
	box-shadow: inset 0 -2px 0 var(--uc-gold);
}

#page-settings .uc-settings-item--danger .uc-settings-title {
	color: var(--uc-text-on-primary);
	letter-spacing: 0.06em;
}

#page-settings .uc-settings-item--danger .uc-settings-meta {
	color: color-mix(in srgb, var(--uc-text-on-primary) 80%, transparent);
}

#page-settings .uc-settings-item--danger .uc-settings-summary::before {
	color: var(--uc-gold);
}

#page-settings .uc-settings-panel--danger {
	background: var(--uc-danger-surface);
	color: var(--uc-danger-text);
	display: grid;
	gap: 12px;
}

#page-settings .uc-settings-danger-copy {
	font-size: 12px;
	line-height: 1.45;
	color: var(--uc-text);
}

#page-settings .uc-settings-danger-heading {
	margin: 0 0 6px;
	font-size: 11px;
	font-weight: 900;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--uc-danger-text);
}

#page-settings .uc-settings-danger-copy p:last-child {
	margin: 0;
	color: var(--uc-text-secondary);
}

#page-settings .uc-settings-danger-confirm {
	padding: 12px;
	border: 2px solid var(--uc-danger-border);
	border-radius: 8px;
	background: var(--uc-surface-sunken);
	box-shadow: var(--uc-dna-shadow-soft, 3px 3px 0 rgba(0, 0, 0, 0.3));
}

#page-settings .uc-settings-danger-label {
	display: block;
	margin-bottom: 8px;
	font-size: 11px;
	font-weight: 800;
	color: var(--uc-text);
}

#page-settings .uc-settings-danger-delete-token {
	color: var(--uc-danger-text);
	text-decoration: underline;
	text-underline-offset: 2px;
	text-decoration-color: color-mix(in srgb, var(--uc-danger) 45%, transparent);
	user: none;
}

#page-settings .uc-settings-danger-row {
	display: flex;
	gap: 8px;
	align-items: stretch;
}

#page-settings .uc-settings-danger-input {
	flex: 1 1 auto;
	min-width: 0;
	border-color: var(--uc-danger-border) !important;
}

#page-settings .uc-settings-danger-input:focus {
	border-color: var(--uc-danger) !important;
	outline-color: var(--uc-danger);
}

#page-settings .uc-settings-danger-btn {
	flex: 0 0 auto;
	background: var(--uc-danger) !important;
	border: 2px solid var(--uc-border-strong) !important;
	color: var(--uc-text-on-primary) !important;
	box-shadow: var(--uc-dna-shadow-soft, 3px 3px 0 rgba(0, 0, 0, 0.35));
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

#page-settings .uc-settings-danger-btn:hover {
	filter: brightness(1.06);
}

#page-settings .uc-settings-danger-btn:active {
	transform: translate(1px, 1px);
	box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.4);
}

#page-settings .uc-settings-field-hint {
	margin: 4px 0 0;
	font-size: 11px;
	line-height: 1.35;
	color: var(--uc-text-muted);
}

#page-settings .uc-settings-field-hint.is-error {
	color: var(--uc-danger-text);
}

#page-settings .uc-settings-field-hint.is-ok {
	color: var(--uc-success-text);
}

#page-settings .uc-settings-email-verify {
	margin-top: 8px;
	padding: 10px;
	border: 1px solid rgba(127, 29, 29, 0.2);
	background: var(--uc-surface-soft);
}

#page-settings .uc-settings-email-verify.hidden {
	display: none;
}

#page-settings .uc-settings-vibe-board {
	display: grid;
	gap: 10px;
	padding: 12px;
	border: 2px solid var(--uc-dna-border-strong, var(--uc-border));
	border-radius: 10px;
	background: var(--uc-surface);
	box-shadow: var(--uc-dna-shadow-soft, 3px 3px 0 rgba(0, 0, 0, 0.25));
}

#page-settings .uc-settings-vibe-main {
	padding-bottom: 8px;
	border-bottom: 1px dashed var(--uc-divider, var(--uc-border));
}

#page-settings .uc-settings-vibe-kicker {
	font-size: 9px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	color: var(--uc-primary-ink);
}

#page-settings .uc-settings-vibe-username {
	font-size: 20px;
	font-weight: 900;
	letter-spacing: -0.02em;
	color: var(--uc-text);
	line-height: 1.1;
}

#page-settings .uc-settings-vibe-subcopy {
	font-size: 11px;
	color: var(--uc-text-secondary);
	font-weight: 700;
}

#page-settings .uc-settings-vibe-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
}

#page-settings .uc-settings-vibe-stat {
	border: 1px solid var(--uc-border);
	border-radius: 10px;
	background: var(--uc-surface);
	padding: 8px;
	text-align: center;
}

#page-settings .uc-settings-vibe-stat-label {
	font-size: 9px;
	font-weight: 900;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--uc-text-muted);
	margin-bottom: 2px;
}

#page-settings .uc-settings-vibe-stat-value {
	font-size: 13px;
	font-weight: 900;
	color: var(--uc-text);
}

.uc-inbox-thread-btn {
	width: 100%;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 10px;
	align-items: center;
	text-align: left;
	border: 2px solid var(--uc-border-strong);
	border-radius: 12px;
	background: var(--uc-surface-raised);
	padding: 8px 10px;
	box-shadow: 2px 2px 0 var(--uc-shadow-ink-soft);
	transition: border-color 0.14s ease, transform 0.08s ease, box-shadow 0.14s ease, background 0.14s ease;
}

.uc-inbox-thread-btn:hover {
	border-color: var(--uc-primary);
	box-shadow: 3px 3px 0 var(--uc-shadow-ink-strong);
}

.uc-inbox-thread-btn:active {
	transform: scale(0.99);
}

.uc-inbox-thread-btn.is-active {
	border-color: var(--uc-gold-dim);
	background: var(--uc-surface);
	box-shadow: 2px 2px 0 var(--uc-shadow-ink-strong), 0 0 0 1px rgba(255, 223, 0, 0.22);
}

.uc-inbox-thread-btn.is-active-now {
	box-shadow: 0 0 0 1px var(--uc-success-border), 2px 2px 0 var(--uc-shadow-ink-soft);
}

.uc-inbox-thread-btn.is-unread .uc-inbox-thread-name {
	color: var(--uc-primary-ink);
}

.uc-inbox-thread-body {
	min-width: 0;
}

.uc-inbox-thread-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.uc-inbox-thread-name {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.01em;
	color: var(--uc-primary-ink);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	text-transform: none;
}

.uc-inbox-thread-badge {
	font-size: 8px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	border-radius: 999px;
	padding: 2px 6px;
	background: var(--uc-surface-sunken);
	border: 1px solid var(--uc-border);
	color: var(--uc-text-secondary);
	flex-shrink: 0;
}

.uc-inbox-thread-btn.is-unread .uc-inbox-thread-badge {
	background: var(--uc-primary);
	border-color: var(--uc-primary-darker);
	color: var(--uc-text-on-primary);
}

/* Phase 31: group kind badge retired (people-only inbox)
.uc-inbox-thread-btn.is-kind-group .uc-inbox-thread-badge:not(.is-unread) {
	background: #ecfeff;
	color: #0e7490;
}
*/

.uc-inbox-thread-teaser {
	font-size: 11px;
	color: var(--uc-text-secondary);
	margin-top: 1px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-weight: 600;
	line-height: 1.25;
}

.uc-inbox-thread-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: 2px;
	font-size: 10px;
	color: var(--uc-text-muted);
	font-weight: 700;
	line-height: 1.2;
	min-width: 0;
}

.uc-inbox-thread-meta-kind {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.uc-inbox-thread-presence {
	margin-top: 0;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 9px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	flex-shrink: 0;
}

.uc-inbox-thread-presence::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 999px;
	background: var(--uc-text-muted);
}

.uc-inbox-thread-presence.is-active {
	color: var(--uc-success-text);
}

.uc-inbox-thread-presence.is-active::before {
	background: var(--uc-success);
	box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.12);
	animation: uc-inbox-presence-pulse 1100ms infinite ease-in-out;
}

.uc-inbox-thread-presence.is-idle {
	color: var(--uc-text-muted);
}

.uc-inbox-thread-presence.is-idle::before {
	background: var(--uc-text-muted);
}

.uc-inbox-avatar {
	position: relative;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: var(--uc-surface-sunken);
	border: 2px solid var(--uc-border-strong);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	flex-shrink: 0;
}

.uc-inbox-avatar.is-active-ring {
	box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.35);
}

.uc-inbox-avatar-status {
	position: absolute;
	right: -1px;
	bottom: -1px;
	width: 10px;
	height: 10px;
	border-radius: 999px;
	border: 2px solid var(--uc-surface-raised);
	z-index: 2;
}

.uc-inbox-avatar-status.is-active {
	background: var(--uc-success);
}

.uc-inbox-avatar-status.is-idle {
	background: var(--uc-text-muted);
}

.uc-inbox-avatar-status.is-pulse {
	animation: uc-inbox-presence-pulse 1100ms infinite ease-in-out;
}

.uc-inbox-avatar.is-xs {
	width: 34px;
	height: 34px;
	border-radius: 12px;
}

.uc-inbox-avatar.is-xxs {
	width: 28px;
	height: 28px;
	border-radius: 10px;
}

/* Phase 31: group avatar stack retired (people-only inbox)
.uc-inbox-avatar.is-stack {
	width: 28px;
	height: 28px;
	border-radius: 10px;
	border: 2px solid #fff;
	box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
}

.uc-inbox-avatar-stack {
	position: relative;
	width: 42px;
	height: 42px;
	flex-shrink: 0;
}

.uc-inbox-avatar-stack .uc-inbox-avatar {
	position: absolute;
}

.uc-inbox-avatar-stack .uc-inbox-avatar:nth-child(1) {
	left: 0;
	top: 0;
}

.uc-inbox-avatar-stack .uc-inbox-avatar:nth-child(2) {
	right: 0;
	bottom: 0;
}

.uc-inbox-avatar-stack-more {
	position: absolute;
	right: -2px;
	top: -2px;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: 999px;
	background: #0f172a;
	color: #fff;
	font-size: 9px;
	font-weight: 800;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	z-index: 4;
}
*/

.uc-inbox-avatar-fallback {
	font-size: 10px;
	font-weight: 900;
	color: var(--uc-primary-ink);
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.uc-inbox-avatar-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.uc-inbox-request-card {
	border: 2px solid var(--uc-border-strong);
	border-radius: 12px;
	background: var(--uc-surface-raised);
	box-shadow: 2px 2px 0 var(--uc-shadow-ink-soft);
	padding: 10px;
}

.uc-inbox-request-top {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 8px;
}

.uc-inbox-request-detail {
	min-width: 0;
}

.uc-inbox-msg-row {
	display: flex;
	gap: 8px;
	align-items: flex-end;
}

.uc-inbox-msg-row.is-self {
	justify-content: flex-end;
}

.uc-inbox-msg-row.is-peer {
	justify-content: flex-start;
}

.uc-inbox-msg-bubble {
	max-width: min(78%, 480px);
	border-radius: 14px;
	padding: 10px 12px;
	border: 2px solid var(--uc-border-strong);
	box-shadow: 2px 2px 0 var(--uc-shadow-ink-soft);
}

.uc-inbox-msg-bubble.is-peer {
	background: var(--uc-surface-raised);
	border-color: var(--uc-border-strong);
	border-bottom-left-radius: 6px;
	color: var(--uc-text);
}

.uc-inbox-msg-bubble.is-self {
	background: var(--uc-primary);
	border-color: var(--uc-primary-darker);
	color: var(--uc-text-on-primary);
	border-bottom-right-radius: 6px;
}

.uc-inbox-msg-author {
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.04em;
	margin-bottom: 3px;
	opacity: 0.9;
	text-transform: none;
	color: var(--uc-primary-ink);
}

.uc-inbox-msg-bubble.is-self .uc-inbox-msg-author {
	color: var(--uc-text-on-primary);
	opacity: 0.85;
}

.uc-inbox-msg-text {
	font-size: 13px;
	line-height: 1.45;
	font-weight: 600;
	color: inherit;
}

.uc-inbox-msg-delete {
	display: inline-flex;
	align-items: center;
	margin-top: 6px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--uc-text-muted);
	font-size: 9px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: underline;
	cursor: pointer;
	opacity: 0.72;
}

.uc-inbox-msg-bubble.is-self .uc-inbox-msg-delete {
	color: color-mix(in srgb, var(--uc-text-on-primary) 78%, transparent);
}

.uc-inbox-msg-bubble.is-self:hover .uc-inbox-msg-delete,
.uc-inbox-msg-bubble.is-self:focus-within .uc-inbox-msg-delete {
	opacity: 1;
}

.uc-inbox-msg-delete:hover,
.uc-inbox-msg-delete:focus-visible {
	color: var(--uc-primary-ink);
	opacity: 1;
}

.uc-inbox-msg-bubble.is-self .uc-inbox-msg-delete:hover,
.uc-inbox-msg-bubble.is-self .uc-inbox-msg-delete:focus-visible {
	color: var(--uc-text-on-primary);
}

.uc-inbox-msg-receipt {
	font-size: 9px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-top: 5px;
	opacity: 0.78;
}

.uc-inbox-msg-enter {
	animation: uc-inbox-msg-rise 240ms ease both;
}

@keyframes uc-inbox-msg-rise {
	0% {
		opacity: 0;
		transform: translateY(8px) scale(0.98);
	}
	100% {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@keyframes uc-inbox-presence-pulse {
	0%,
	100% {
		transform: scale(1);
		opacity: 1;
	}
	50% {
		transform: scale(1.18);
		opacity: 0.75;
	}
}

.uc-inbox-thread-btn.is-heat,
.uc-inbox-thread-btn.is-night,
.uc-inbox-thread-btn.is-sunset {
	background: var(--uc-surface-raised);
}

.uc-inbox-typing-hint {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 10px;
	border: 1px solid var(--uc-border);
	border-radius: 999px;
	background: var(--uc-surface-sunken);
	color: var(--uc-text-secondary);
}

.uc-inbox-typing-dot {
	width: 6px;
	height: 6px;
	border-radius: 999px;
	background: var(--uc-primary);
	animation: uc-inbox-dot-bounce 900ms infinite ease-in-out;
}

.uc-inbox-typing-dot:nth-child(2) {
	animation-delay: 120ms;
}

.uc-inbox-typing-dot:nth-child(3) {
	animation-delay: 240ms;
}

.uc-inbox-typing-copy {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: none;
	color: var(--uc-text-secondary);
}

.uc-inbox-preview-presence {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 5px 9px;
	border-radius: 999px;
	font-size: 9px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	border: 1px solid var(--uc-gold-dim);
	color: var(--uc-text-on-primary);
	background: var(--uc-scrim-strong);
}

.uc-inbox-preview-presence::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 999px;
	background: var(--uc-text-muted);
}

/* ── Inbox DNA shell (match Home / Chat / Live cards) ───────────────────── */
#page-inbox .uc-inbox-shell {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--uc-dna-card-surface) !important;
	border: 2px solid var(--uc-dna-border-strong) !important;
	box-shadow: var(--uc-dna-shadow-hard), 0 0 0 1px rgba(255, 223, 0, 0.18) !important;
	overflow: hidden;
}

#page-inbox .uc-inbox-shell::after {
	content: "";
	display: block;
	flex: 0 0 auto;
	min-height: 6px;
	border-top: 2px solid var(--uc-gold-dim);
	box-shadow: inset 0 2px 0 var(--uc-gold);
	background: var(--uc-dna-header-red);
	pointer-events: none;
}

#page-inbox .uc-inbox-shell > .section-header,
.uc-inbox-shell .section-header {
	border-bottom: 2px solid var(--uc-gold-dim) !important;
	box-shadow: inset 0 -2px 0 var(--uc-gold) !important;
	background: linear-gradient(90deg, var(--uc-primary) 0%, var(--uc-primary-darker) 55%, var(--uc-primary) 100%) !important;
	color: var(--uc-text-on-primary) !important;
}

#page-inbox .uc-inbox-shell > .section-header > div > span {
	color: var(--uc-text-on-primary);
	font-weight: 900;
	letter-spacing: 0.14em;
}

#page-inbox .uc-inbox-shell > div.p-4 {
	background: var(--uc-surface-sunken);
	flex: 1 1 auto;
	min-height: 0;
}

.uc-inbox-tabs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	justify-content: flex-end;
}

.uc-inbox-tab {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border: 1px solid var(--uc-gold-dim);
	background: var(--uc-scrim-strong);
	color: var(--uc-text-on-primary);
	border-radius: 999px;
	padding: 7px 12px;
	font-size: 9px;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	box-shadow: none;
	transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease, transform 0.08s ease;
}

.uc-inbox-tab:hover {
	background: var(--uc-chrome);
	border-color: var(--uc-gold);
	color: var(--uc-gold);
}

.uc-inbox-tab:active {
	transform: scale(0.97);
}

.uc-inbox-tab.is-active {
	border-color: var(--uc-gold);
	background: var(--uc-gold);
	color: var(--uc-text-on-gold);
	box-shadow: 2px 2px 0 var(--uc-scrim);
}

.uc-inbox-tab-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	font-size: 9px;
	font-weight: 900;
	background: var(--uc-veil-strong);
	color: inherit;
}

/* display:inline-flex above would otherwise override [hidden] without !important. */
.uc-inbox-tab-count[hidden],
.uc-inbox-tab-count.is-zero {
	display: none !important;
}

.uc-inbox-tab.is-active .uc-inbox-tab-count {
	background: var(--uc-scrim);
	color: var(--uc-text-on-gold);
}

.uc-inbox-note[hidden],
.uc-inbox-note.hidden {
	display: none !important;
}

.uc-inbox-stage-back {
	width: 36px;
	height: 36px;
	flex-shrink: 0;
	border-radius: 999px;
	border: 1px solid var(--uc-gold-dim);
	background: var(--uc-scrim-strong);
	color: var(--uc-text-on-primary);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	font-weight: 800;
	line-height: 1;
	transition: background 0.12s ease, transform 0.08s ease, border-color 0.12s ease, color 0.12s ease;
}

.uc-inbox-stage-back:hover {
	background: var(--uc-chrome);
	border-color: var(--uc-gold);
	color: var(--uc-gold);
}

.uc-inbox-stage-back:active {
	transform: scale(0.96);
}

.uc-inbox-note {
	margin-bottom: 18px;
	padding: 14px 16px;
	border-radius: 12px;
	background: var(--uc-surface-raised);
	border: 2px solid var(--uc-border-strong);
	box-shadow: 2px 2px 0 var(--uc-shadow-ink-soft);
	color: var(--uc-text);
}

.uc-inbox-note-title {
	font-size: 11px;
	font-weight: 900;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin-bottom: 4px;
	color: var(--uc-gold);
}

.uc-inbox-note p {
	margin: 0;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.45;
	color: var(--uc-text-secondary);
}

.uc-inbox-layout {
	--uc-inbox-visible-rows: 7;
	--uc-inbox-row-h: 58px;
	--uc-inbox-row-gap: 5px;
	--uc-inbox-list-pad: 16px;
	--uc-inbox-list-max-h: calc(
		(var(--uc-inbox-visible-rows) * var(--uc-inbox-row-h))
		+ ((var(--uc-inbox-visible-rows) - 1) * var(--uc-inbox-row-gap))
		+ var(--uc-inbox-list-pad)
	);
	display: grid;
	grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.8fr);
	min-height: 0;
	height: min(70vh, 560px);
	max-height: min(70vh, 560px);
	/* Flat body plate under Inbox tabs — no nested DNA “section card”. */
	border: 0;
	border-radius: 0;
	overflow: hidden;
	background: transparent;
	box-shadow: none;
}

.uc-inbox-rail {
	display: flex;
	flex-direction: column;
	min-height: 0;
	background: transparent;
	border-right: 1px solid var(--uc-divider, var(--uc-border));
	backdrop-filter: none;
}

#inbox-panel-conversations:not(.hidden),
#inbox-panel-pending:not(.hidden) {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
}

.uc-inbox-rail-head,
.uc-inbox-rail-foot,
.uc-inbox-stage-head,
.uc-inbox-compose {
	padding: 12px 14px;
}

/* Legacy rail section titles (removed from markup) — keep harmless if present. */
.uc-inbox-rail-head {
	display: none;
}

.uc-inbox-unread-pill {
	background: var(--uc-gold);
	color: var(--uc-text-on-gold);
	border-radius: 999px;
	padding: 3px 8px;
	font-size: 9px;
	font-weight: 900;
}

.uc-inbox-requests-panel {
	border-bottom: 0;
	background: transparent;
	padding: 8px 4px 4px;
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
}

.uc-inbox-requests-label {
	font-size: 9px;
	font-weight: 900;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--uc-gold);
	margin-bottom: 8px;
}

.uc-inbox-thread-list {
	flex: 1 1 auto;
	min-height: 0;
	max-height: none;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 4px 0 8px;
	display: flex;
	flex-direction: column;
	gap: var(--uc-inbox-row-gap, 5px);
	-webkit-overflow-scrolling: touch;
	scroll-behavior: smooth;
	background: transparent;
}

.uc-inbox-swipe {
	position: relative;
	overflow: hidden;
	border-radius: 12px;
	touch-action: pan-y;
}

.uc-inbox-swipe__rail {
	position: absolute;
	inset: 0 0 0 auto;
	width: 88px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--uc-danger);
	color: var(--uc-text-on-primary);
	font-size: 11px;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.uc-inbox-swipe .uc-inbox-thread-btn {
	position: relative;
	z-index: 1;
	min-height: var(--uc-inbox-row-h, 58px);
	box-sizing: border-box;
	transition: transform 160ms ease-out, border-color 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}

.uc-inbox-swipe.is-swiping .uc-inbox-thread-btn {
	transition: none;
}

.uc-inbox-thread-btn {
	min-height: var(--uc-inbox-row-h, 58px);
	box-sizing: border-box;
}

.uc-inbox-loading {
	padding: 28px 12px;
	text-align: center;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--uc-text-secondary);
}

.uc-inbox-rail-foot {
	border-top: 1px solid var(--uc-divider, var(--uc-border));
	background: transparent;
	padding: 10px 0 0;
	margin-top: auto;
}

.uc-inbox-rail-tool {
	width: 100%;
	min-height: 36px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: var(--uc-text-muted);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
	padding: 8px 10px;
}

.uc-inbox-rail-tool:hover {
	color: var(--uc-gold);
	background: color-mix(in srgb, var(--uc-gold) 8%, transparent);
}

.uc-inbox-stage {
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 0;
	background: var(--uc-surface-sunken);
	border-left: 0;
	border-radius: 0;
}

.uc-inbox-stage-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 12px;
	border-bottom: 2px solid var(--uc-gold-dim);
	box-shadow: inset 0 -2px 0 var(--uc-gold);
	background: linear-gradient(90deg, var(--uc-primary) 0%, var(--uc-primary-darker) 55%, var(--uc-primary) 100%);
	color: var(--uc-text-on-primary);
}

.uc-inbox-stage-title {
	min-width: 0;
	flex: 1;
	color: var(--uc-text-on-primary);
}

.uc-inbox-stage-tools {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
}

.uc-inbox-preview-identity {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.uc-inbox-preview-identity-copy {
	min-width: 0;
}

.uc-inbox-preview-name {
	font-size: 14px;
	font-weight: 800;
	color: var(--uc-text-on-primary);
	letter-spacing: 0.01em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	line-height: 1.2;
}

.uc-inbox-preview-meta {
	font-size: 11px;
	color: rgba(255, 255, 255, 0.78);
	font-weight: 600;
	margin-top: 2px;
}

.uc-inbox-kind-chip {
	display: none;
}

.uc-inbox-icon-btn {
	width: 36px;
	height: 36px;
	border-radius: 999px;
	border: 1px solid var(--uc-gold-dim);
	background: var(--uc-scrim-strong);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--uc-text-on-primary);
	transition: background 0.12s ease, transform 0.08s ease, border-color 0.12s ease, color 0.12s ease;
}

.uc-inbox-icon-btn:hover {
	background: var(--uc-chrome);
	border-color: var(--uc-gold);
	color: var(--uc-gold);
}

.uc-inbox-icon-btn:active {
	transform: scale(0.96);
}

.uc-inbox-icon-btn.is-danger {
	color: var(--uc-gold);
}

.uc-inbox-stage-more {
	position: relative;
}

.uc-inbox-stage-menu {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	z-index: 8;
	min-width: 168px;
	padding: 6px;
	border: 2px solid var(--uc-border-strong);
	border-radius: 14px;
	background: var(--uc-surface-raised);
	box-shadow: 4px 4px 0 var(--uc-shadow-ink-soft);
}

.uc-inbox-stage-menu[hidden] {
	display: none !important;
}

.uc-inbox-stage-menu button {
	display: block;
	width: 100%;
	text-align: left;
	border: 0;
	background: none;
	border-radius: 10px;
	padding: 10px 12px;
	font-size: 12px;
	font-weight: 800;
	color: var(--uc-text);
	cursor: pointer;
}

.uc-inbox-stage-menu button:hover {
	background: var(--uc-surface-sunken);
}

.uc-inbox-stage-menu button.is-danger {
	color: var(--uc-danger-text);
}

.uc-inbox-stage-body {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 18px 16px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	background: var(--uc-surface-sunken);
}

.uc-inbox-empty-state {
	margin: auto;
	text-align: center;
	color: var(--uc-text-secondary);
	max-width: 240px;
}

.uc-inbox-empty-title {
	margin-top: 12px;
	font-size: 12px;
	font-weight: 900;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--uc-text);
}

.uc-inbox-empty-state p {
	margin-top: 8px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--uc-text-secondary);
}

.uc-inbox-empty-state.is-thread {
	max-width: 260px;
}

.uc-inbox-compose {
	border-top: 1px solid var(--uc-border);
	background: var(--uc-surface);
	padding: 10px 12px 12px;
}

.uc-inbox-compose-form {
	display: flex;
	gap: 8px;
	align-items: stretch;
	flex-wrap: nowrap;
}

.uc-inbox-compose-field {
	flex: 1;
	min-width: 0;
	position: relative;
}

.uc-inbox-compose-input {
	width: 100%;
	border: 2px solid var(--uc-border-strong);
	border-radius: 16px;
	background: var(--uc-surface-input, var(--uc-surface-raised));
	padding: 12px 14px;
	font-size: 14px;
	font-weight: 600;
	color: var(--uc-text);
	outline: none;
	box-shadow: 2px 2px 0 var(--uc-shadow-ink-soft);
}

.uc-inbox-compose-input::placeholder {
	color: var(--uc-text-muted);
}

.uc-inbox-compose-input:focus {
	border-color: var(--uc-gold-dim);
	box-shadow: 0 0 0 2px rgba(255, 223, 0, 0.22), 2px 2px 0 var(--uc-shadow-ink-soft);
}

.uc-inbox-compose-tools {
	display: flex;
	gap: 2px;
	align-items: center;
	flex-shrink: 0;
}

.uc-inbox-compose-tool {
	background: none;
	border: none;
	font-size: 18px;
	line-height: 1;
	width: 40px;
	height: 40px;
	padding: 0;
	border-radius: 12px;
	cursor: pointer;
	transition: background 0.15s;
	color: var(--uc-text);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.uc-inbox-compose-tool:hover {
	background: var(--uc-surface-sunken);
}

.uc-inbox-compose-tool.is-recording {
	background: var(--uc-danger-surface);
	animation: uc-inbox-voice-pulse 1s ease-in-out infinite;
}

.uc-inbox-voice-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 0 14px;
	border-radius: 16px;
	background: var(--uc-surface-input, var(--uc-surface-raised));
	color: var(--uc-danger-text);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.04em;
}

.uc-inbox-voice-overlay[hidden] {
	display: none !important;
}

.uc-inbox-voice-rec-dot {
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: var(--uc-danger);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--uc-danger) 22%, transparent);
}

.uc-inbox-compose-note {
	margin: 8px 0 0;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--uc-text-muted);
}

.uc-inbox-send-btn {
	border-radius: 16px;
	padding: 0 18px;
	font-size: 12px;
	flex-shrink: 0;
	min-height: 44px;
}

.uc-media-expired {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	min-width: 160px;
	padding: 12px 14px;
	border: 2px dashed var(--uc-border);
	border-radius: 14px;
	background: var(--uc-surface-sunken);
	color: var(--uc-text-muted);
}

.uc-media-expired-kicker {
	font-size: 11px;
	font-weight: 900;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--uc-text-secondary);
}

.uc-media-expired-note {
	font-size: 11px;
	font-weight: 600;
	color: var(--uc-text-muted);
}

@keyframes uc-inbox-voice-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.6; }
}

.uc-inbox-footer-actions {
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid var(--uc-border);
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
}

.uc-inbox-soft-btn {
	background: var(--uc-surface-raised);
	border: 2px solid var(--uc-border-strong);
	border-radius: 999px;
	padding: 7px 12px;
	font-size: 9px;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--uc-text);
	box-shadow: 2px 2px 0 var(--uc-shadow-ink-soft);
}

.uc-inbox-live-pill {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--uc-text-secondary);
}

.uc-inbox-live-dot {
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: var(--uc-gold);
	box-shadow: 0 0 0 5px rgba(255, 223, 0, 0.14);
	animation: uc-inbox-presence-pulse 1400ms infinite ease-in-out;
}

/* Single-column inbox (≤1024): list OR stage, never both stacked.
 * Open thread → #page-inbox.is-stage-open swaps rail for the message stage. */
@media (max-width: 1024px) {
	.uc-inbox-layout {
		grid-template-columns: 1fr;
		height: min(70vh, 560px);
		max-height: min(70vh, 560px);
		min-height: 0;
		--uc-inbox-visible-rows: 6;
	}

	.uc-inbox-rail {
		border-right: 0;
		border-bottom: 0;
		min-height: 0;
		max-height: none;
		height: 100%;
	}

	/* List mode: rail only */
	.uc-inbox-stage {
		display: none;
	}

	#page-inbox.is-stage-open .uc-inbox-rail {
		display: none;
	}

	#page-inbox.is-stage-open .uc-inbox-layout {
		grid-template-columns: 1fr;
		height: min(72vh, 640px);
		max-height: min(72vh, 640px);
	}

	#page-inbox.is-stage-open .uc-inbox-stage {
		display: flex;
		flex-direction: column;
		min-height: 0;
		max-height: none;
		height: 100%;
		flex: 1 1 auto;
		border-top: 0;
	}

	#page-inbox.is-stage-open .uc-inbox-stage-back:not(.hidden) {
		display: inline-flex;
	}

	#page-inbox.is-stage-open .uc-inbox-footer-actions {
		display: none;
	}
}

@media (max-width: 768px) {
	.uc-inbox-layout {
		--uc-inbox-visible-rows: 5;
		height: min(74vh, 640px);
		max-height: min(74vh, 640px);
	}

	#page-inbox.is-stage-open .uc-inbox-layout {
		height: min(76vh, 680px);
		max-height: min(76vh, 680px);
	}
}

.uc-inbox-preview-presence.is-active {
	color: var(--uc-success-text);
	border-color: var(--uc-success-border);
	background: var(--uc-success-surface);
}

.uc-inbox-preview-presence.is-active::before {
	background: var(--uc-success);
	animation: uc-inbox-presence-pulse 1100ms infinite ease-in-out;
}

@keyframes uc-inbox-dot-bounce {
	0%,
	80%,
	100% {
		transform: translateY(0);
		opacity: 0.4;
	}
	40% {
		transform: translateY(-4px);
		opacity: 1;
	}
}

#page-settings .uc-settings-item {
	animation: uc-settings-card-rise 220ms ease both;
}

#page-settings .uc-settings-item:nth-child(2) {
	animation-delay: 20ms;
}

#page-settings .uc-settings-item:nth-child(3) {
	animation-delay: 40ms;
}

#page-settings .uc-settings-item:nth-child(4) {
	animation-delay: 60ms;
}

#page-settings .uc-settings-item:nth-child(5) {
	animation-delay: 80ms;
}

@keyframes uc-settings-card-rise {
	0% {
		opacity: 0;
		transform: translateY(8px);
	}
	100% {
		opacity: 1;
		transform: translateY(0);
	}
}

#page-settings .uc-settings-vibe-themes {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 6px;
}

#page-settings .uc-settings-vibe-theme-btn {
	border: 1px solid var(--uc-border);
	background: var(--uc-surface);
	color: var(--uc-text-secondary);
	border-radius: 999px;
	padding: 6px 8px;
	font-size: 9px;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	transition: transform 0.1s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

#page-settings .uc-settings-vibe-theme-btn:hover {
	border-color: var(--uc-gold);
	box-shadow: 0 4px 10px var(--uc-shadow-ink-soft);
}

#page-settings .uc-settings-vibe-theme-btn:active {
	transform: scale(0.97);
}

#page-settings .uc-settings-vibe-theme-btn.is-active {
	background: var(--uc-chrome);
	color: var(--uc-gold);
	border-color: var(--uc-border-strong);
}

#page-settings .uc-settings-pro-themes-wrap {
	border: 1px solid var(--uc-border);
	border-radius: 10px;
	padding: 10px;
	background: var(--uc-surface-raised);
}

#page-settings .uc-settings-pro-winback {
	border: 2px solid var(--uc-warning-border);
	background: var(--uc-warning-surface);
	border-radius: 10px;
	padding: 10px;
	display: grid;
	gap: 6px;
	box-shadow: var(--uc-dna-shadow-soft, 3px 3px 0 rgba(0, 0, 0, 0.25));
}

#page-settings .uc-settings-pro-winback__title {
	font-size: 11px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--uc-primary-ink);
}

#page-settings .uc-settings-pro-winback__detail {
	font-size: 12px;
	color: var(--uc-text-secondary);
}

#page-settings .uc-settings-pro-winback__code {
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--uc-warning-text);
}

#page-settings .uc-settings-pro-theme-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

#page-settings .uc-settings-pro-theme-card {
	border: 1px solid var(--uc-border);
	background: var(--uc-surface);
	border-radius: 10px;
	padding: 8px;
	text-align: left;
	display: grid;
	gap: 4px;
	transition: transform 0.1s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

#page-settings .uc-settings-pro-theme-card:hover {
	border-color: var(--uc-primary-darker);
	box-shadow: 0 4px 10px rgba(127, 29, 29, 0.12);
}

#page-settings .uc-settings-pro-theme-card:active {
	transform: scale(0.98);
}

#page-settings .uc-settings-pro-theme-card.is-active {
	border-color: var(--uc-border-strong);
	box-shadow: 0 0 0 1px var(--uc-border-strong) inset;
}

#page-settings .uc-settings-pro-theme-card.is-locked {
	opacity: 0.8;
}

#page-settings .uc-settings-pro-theme-swatch {
	display: block;
	height: 18px;
	border-radius: 999px;
	border: 1px solid var(--uc-wash-strong);
}

#page-settings .uc-settings-pro-theme-swatch.is-midnight { background: linear-gradient(90deg, #312e81, #1e1b4b); }
#page-settings .uc-settings-pro-theme-swatch.is-ocean { background: linear-gradient(90deg, #0369a1, var(--uc-slate-700)); }
#page-settings .uc-settings-pro-theme-swatch.is-forest { background: linear-gradient(90deg, #166534, #14532d); }
#page-settings .uc-settings-pro-theme-swatch.is-sunset { background: linear-gradient(90deg, #b45309, var(--uc-primary-dark)); }
#page-settings .uc-settings-pro-theme-swatch.is-neon { background: linear-gradient(90deg, #7e22ce, #831843); }

#page-settings .uc-settings-pro-theme-label {
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--uc-text);
}

#page-settings .uc-settings-pro-theme-lock {
	font-size: 9px;
	color: var(--uc-text-muted);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

/* Legacy Pro palette stubs removed — see /assets/css/themes.css (classic|street|concrete|heat) */

.uc-browse-shell {
	border: 2px solid var(--uc-dna-border-strong);
	background: var(--uc-dna-card-surface);
	box-shadow: var(--uc-dna-shadow-hard), 0 0 0 1px color-mix(in srgb, var(--uc-gold) 16%, transparent);
	border-radius: var(--uc-dna-card-radius, 12px);
	overflow: hidden;
}

/* Inventory load-more (Browse, Circles list, Confessions, Chat lobby, Live) */
.uc-inventory-more {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	margin-top: 1rem;
	padding: 0.25rem 0 0.5rem;
}

.uc-inventory-more.hidden {
	display: none;
}

.uc-inventory-more-btn {
	min-width: 10rem;
}

.uc-inventory-more-meta {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--uc-text-muted);
}

#chat-room-list > .uc-inventory-more,
#live-streams-grid > .uc-inventory-more,
#live-scheduled-grid > .uc-inventory-more {
	grid-column: 1 / -1;
}

.uc-browse-modern-intro {
	border: 1px solid var(--uc-surface-sunken);
	background: linear-gradient(135deg, var(--uc-surface), var(--uc-surface-raised));
	padding: 10px 12px;
	border-radius: 10px;
}

.uc-browse-intro {
	color: var(--uc-text-secondary);
}

.uc-browse-filterbar {
	border: 1px solid var(--uc-border);
	background: var(--uc-surface-raised);
	padding: 10px;
}

.uc-browse-modern-filterbar {
	border-radius: 14px;
	background: var(--uc-surface-sunken);
	border: 2px solid var(--uc-border-strong);
	box-shadow: var(--uc-dna-shadow-soft);
	padding: 14px 16px;
}

.uc-browse-filter-title {
	color: var(--uc-primary-ink);
	letter-spacing: 0.08em;
	margin-bottom: 8px;
}

.uc-surface-field-label,
.uc-browse-field-label,
.uc-circles-field-label {
	font-size: 11px;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--uc-text);
}

.uc-surface-control-wrap,
.uc-surface-select-wrap,
.uc-browse-control-wrap,
.uc-browse-select-wrap,
.uc-circles-input-wrap,
.uc-circles-select-wrap {
	position: relative;
}

.uc-surface-control-icon,
.uc-browse-control-icon {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--uc-text-muted);
	font-size: 14px;
	font-weight: 900;
}

.uc-surface-input,
.uc-browse-control {
	width: 100%;
	border: 1px solid var(--uc-border);
	border-radius: 14px;
	background: var(--uc-surface-sunken);
	padding: 10px 12px;
	font-size: 12px;
	font-weight: 800;
	color: var(--uc-text);
	box-shadow: inset 0 1px 0 var(--uc-veil-weak);
	transition: transform 0.1s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.uc-surface-input:active,
.uc-browse-control:active {
	transform: scale(0.99);
}

.uc-surface-input-search,
.uc-browse-control-search {
	padding-left: 32px;
}

.uc-surface-select,
.uc-browse-select {
	appearance: none;
	padding-right: 34px;
}

.uc-surface-select-icon,
.uc-browse-select-icon {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 14px;
	font-weight: 900;
	color: var(--uc-text-muted);
	pointer-events: none;
}

.uc-surface-input:focus,
.uc-surface-select:focus,
.uc-browse-control:focus,
.uc-browse-select:focus,
.uc-circles-input:focus,
.uc-circles-select:focus {
	outline: 3px solid var(--uc-primary-wash-strong);
	border-color: var(--uc-primary);
	background: var(--uc-surface);
}

.uc-surface-toggle,
.uc-browse-online-label {
	padding: 10px 12px;
	border-radius: 12px;
	border: 1px solid var(--uc-border-strong);
	background: var(--uc-surface-input);
	color: var(--uc-text-secondary);
	font-weight: 800;
}

.uc-browse-filter-grid {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(1, minmax(0, 1fr));
	grid-template-areas:
		"search"
		"state"
		"city"
		"radius"
		"show"
		"agemin"
		"agemax"
		"sort"
		"online"
		"submit";
}

.uc-browse-filter-grid--simple {
	grid-template-areas:
		"search"
		"city"
		"state"
		"online"
		"submit";
}

.uc-browse-search { grid-area: search; }
.uc-browse-state { grid-area: state; }
.uc-browse-city { grid-area: city; }
.uc-browse-radius { grid-area: radius; }
.uc-browse-show { grid-area: show; }
.uc-browse-age-min { grid-area: agemin; }
.uc-browse-age-max { grid-area: agemax; }
.uc-browse-sort { grid-area: sort; }
.uc-browse-online { grid-area: online; }
.uc-browse-submit { grid-area: submit; }

.uc-browse-chip {
	background: var(--uc-surface-sunken);
	border: 1px solid var(--uc-border);
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 10px;
	font-weight: 800;
	color: var(--uc-text);
}

.uc-surface-card {
	border: 2px solid var(--uc-dna-border-strong, var(--uc-border));
	border-radius: 14px;
	background: linear-gradient(180deg, var(--uc-surface-raised) 0%, var(--uc-surface-sunken) 100%);
	box-shadow: var(--uc-dna-shadow-soft, 0 4px 14px var(--uc-wash-weak));
	color: var(--uc-text);
}

.uc-surface-card-hover {
	transition: transform 0.16s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.uc-surface-card-hover:hover {
	transform: translateY(-2px);
	border-color: var(--uc-border);
	box-shadow: 0 14px 24px var(--uc-wash-soft);
}

/* Pro pricing — yearly plan gets gold ring (token surface, not Classic cream) */
#page-pro .uc-pro-plan--yearly {
	border-color: var(--uc-gold-dim, var(--uc-warning-border));
	box-shadow:
		0 4px 14px var(--uc-wash-weak),
		inset 0 0 0 1px color-mix(in srgb, var(--uc-gold) 35%, transparent);
}

.uc-surface-pill {
	display: inline-flex;
	align-items: center;
	padding: 5px 11px;
	border-radius: 999px;
	border: 1px solid var(--uc-border);
	background: var(--uc-surface-raised);
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--uc-text-secondary);
	line-height: 1;
}

.uc-surface-pill--positive {
	border-color: #86efac;
	background: linear-gradient(180deg, var(--uc-surface-soft) 0%, #dcfce7 100%);
	color: var(--uc-success-text);
}

.uc-chat-lobby-room-badge.is-on-fire {
	border-color: #f97316;
	background: linear-gradient(135deg, var(--uc-surface-soft) 0%, #ffedd5 100%);
	color: #c2410c;
	box-shadow: 0 0 12px rgba(249, 115, 22, 0.2);
}

.uc-chat-lobby-room-badge.is-on-fire .uc-chat-lobby-room-badge-dot {
	background-color: #f97316;
	box-shadow: 0 0 8px #ea580c;
	animation: uc-pulse-fire 1s infinite alternate ease-in-out;
}

@keyframes uc-pulse-fire {
	from { transform: scale(1); opacity: 1; }
	to { transform: scale(1.4); opacity: 0.7; }
}

.uc-surface-pill--warning {
	border-color: var(--uc-warning-border);
	background: linear-gradient(180deg, var(--uc-warning-surface) 0%, var(--uc-warning-surface) 100%);
	color: var(--uc-warning-text);
}

.uc-surface-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 11px;
	padding: 10px 14px;
	font-size: 11px;
	font-weight: 900;
	letter-spacing: 0.11em;
	text-transform: uppercase;
	transition: transform 0.1s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

/* Tailwind .hidden loses to .uc-surface-btn { display: inline-flex } — keep host-only / gated buttons actually hidden */
.uc-surface-btn.hidden {
	display: none !important;
}

.uc-surface-btn:active {
	transform: scale(0.95);
}

.uc-surface-btn--primary {
	border: 1px solid var(--uc-primary-darker);
	background: linear-gradient(135deg, var(--uc-primary), var(--uc-primary-darker));
	color: var(--uc-text-on-primary);
	box-shadow: 0 5px 0 rgba(127, 29, 29, 0.55);
}

.uc-surface-btn--primary:hover {
	filter: brightness(1.04);
}

.uc-surface-btn--primary:active {
	transform: translateY(1px);
	box-shadow: 0 4px 0 rgba(127, 29, 29, 0.5);
}

.uc-surface-btn--secondary {
	border: 2px solid var(--uc-border-strong);
	background: var(--uc-surface-raised);
	color: var(--uc-text);
	box-shadow: 2px 2px 0 var(--uc-shadow-ink-strong);
}

.uc-surface-btn--accent {
	border: 1px solid #a16207;
	background-color: var(--uc-gold);
	background-image: linear-gradient(135deg, var(--uc-gold), var(--uc-gold-dim));
	color: var(--uc-text-on-gold);
	box-shadow: 0 4px 10px rgba(161, 98, 7, 0.22);
}

.uc-surface-btn--ghost {
	border: 1.5px solid var(--uc-danger-border);
	background: transparent;
	color: var(--uc-primary-ink);
	box-shadow: none;
}

.uc-surface-btn--ghost:hover {
	background: var(--uc-danger-surface);
	border-color: var(--uc-danger);
	color: var(--uc-danger-text);
}

.uc-surface-btn--danger {
	border: 1px solid var(--uc-danger-border);
	background: var(--uc-danger-surface);
	color: var(--uc-danger-text);
	box-shadow: none;
}

.uc-surface-btn--danger:hover {
	filter: brightness(1.06);
}

.uc-browse-card {
	border: 2px solid var(--uc-dna-border-strong, var(--uc-border));
	background: var(--uc-surface-sunken);
	border-radius: 12px;
	padding: 12px;
	display: flex;
	gap: 10px;
	box-shadow: var(--uc-dna-shadow-soft);
}

.uc-browse-card.is-highlighted {
	border-color: var(--uc-gold-dim);
	box-shadow: var(--uc-dna-shadow-soft), 0 0 0 1px color-mix(in srgb, var(--uc-gold) 35%, transparent);
	background: color-mix(in srgb, var(--uc-gold) 8%, var(--uc-surface-sunken));
}

.uc-browse-card-official {
	position: relative;
	padding: 16px;
	gap: 14px;
	border-color: var(--uc-border);
	box-shadow: 0 1px 3px var(--uc-wash-soft);
}

.uc-browse-status-wrap {
	position: absolute;
	top: 12px;
	right: 12px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	z-index: 2;
}

.uc-browse-message-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 999px;
	border: 1px solid var(--uc-danger-border);
	background: linear-gradient(180deg, var(--uc-surface) 0%, var(--uc-surface-soft) 100%);
	color: var(--uc-danger-text);
	cursor: pointer;
	box-shadow: 0 1px 3px rgba(127, 29, 29, 0.12);
	transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
	padding: 0;
	line-height: 0;
}

.uc-browse-message-btn:hover {
	background: var(--uc-danger-surface);
	border-color: var(--uc-danger-border);
	color: var(--uc-danger-text);
}

.uc-browse-message-btn:active {
	transform: scale(0.94);
}

.uc-browse-message-btn:focus-visible {
	outline: 2px solid var(--uc-primary);
	outline-offset: 2px;
}

.uc-browse-message-btn.is-gated {
	color: var(--uc-text-muted);
	border-color: var(--uc-border);
	background: var(--uc-surface-raised);
	box-shadow: none;
}

.uc-browse-message-btn.is-gated:hover {
	color: var(--uc-text-muted);
	border-color: var(--uc-border);
	background: var(--uc-surface-muted);
}

.uc-browse-message-icon {
	display: block;
	flex-shrink: 0;
}

.uc-browse-card-label {
	font-size: 9px;
	font-weight: 900;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--uc-text-muted);
	margin-bottom: 2px;
}

.uc-browse-avatar-wrap {
	width: 68px;
	height: 68px;
	border-radius: 14px;
	overflow: hidden;
	border: 2px solid var(--uc-surface-sunken);
	background: var(--uc-surface-raised);
	flex-shrink: 0;
}

.uc-browse-avatar-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.uc-browse-avatar-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-size: 22px;
	font-weight: 900;
	color: var(--uc-primary-ink);
	background: linear-gradient(180deg, var(--uc-surface-soft) 0%, #fde68a 100%);
}

.uc-browse-userline {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.uc-browse-username {
	font-size: 17px;
	font-weight: 900;
	color: var(--uc-primary-ink);
	line-height: 1;
}

.uc-browse-highlight-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 2px 7px;
	border-radius: 999px;
	font-size: 9px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--uc-text-on-gold);
	background: linear-gradient(135deg, #fde68a 0%, var(--uc-warning) 100%);
	border: 1px solid rgba(180, 83, 9, 0.4);
	vertical-align: middle;
}

.uc-browse-meta {
	margin-top: 2px;
	font-size: 11px;
	color: var(--uc-text-muted);
}

.uc-browse-identity {
	margin-top: 3px;
	font-size: 11px;
	color: var(--uc-text-muted);
}

.uc-browse-identity-link {
	color: var(--uc-danger-text);
	font-weight: 900;
	text-decoration: none;
}

.uc-browse-status {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border-radius: 999px;
	padding: 3px 9px;
	font-size: 10px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.uc-browse-status-chip {
	padding: 2px 8px;
	font-size: 8px;
}

.uc-browse-status-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
}

.uc-browse-status-online {
	color: var(--uc-success-text);
	background: var(--uc-success-surface);
	border: 1px solid var(--uc-success-border);
}

.uc-browse-status-online .uc-browse-status-dot {
	background: var(--uc-success);
}

.uc-browse-status-offline {
	color: var(--uc-text-muted);
	background: var(--uc-surface-muted);
	border: 1px solid var(--uc-border);
}

.uc-browse-status-offline .uc-browse-status-dot {
	background: var(--uc-slate-400);
}

.uc-browse-actions {
	margin-top: 10px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.uc-browse-actions > a {
	box-shadow: 0 2px 0 var(--uc-shadow-ink-soft);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

#page-browse .uc-surface-btn {
	border-radius: 12px;
	padding: 9px 13px;
	font-size: 10px;
	letter-spacing: 0.1em;
}

#page-browse .uc-surface-btn--primary {
	border: 1px solid var(--uc-primary-darker) !important;
	background: linear-gradient(135deg, var(--uc-primary), var(--uc-primary-darker));
	color: var(--uc-text-on-primary) !important;
	box-shadow: 0 4px 0 rgba(127, 29, 29, 0.52);
}

#page-browse button.uc-surface-btn--primary,
#page-browse a.uc-surface-btn--primary {
	appearance: none;
	-webkit-appearance: none;
	text-decoration: none;
}

#page-browse .uc-surface-btn--secondary {
	background: linear-gradient(180deg, var(--uc-surface-raised), var(--uc-surface-sunken));
	border: 2px solid var(--uc-border-strong);
	box-shadow: 2px 2px 0 var(--uc-shadow-ink-strong);
}

#page-browse .uc-surface-btn--accent {
	border: 1px solid #b17a09 !important;
	background: linear-gradient(135deg, var(--uc-gold), var(--uc-gold-dim));
	color: var(--uc-text-on-gold) !important;
	box-shadow: 0 4px 0 rgba(177, 122, 9, 0.5);
}

#page-browse button.uc-surface-btn--accent,
#page-browse a.uc-surface-btn--accent {
	appearance: none;
	-webkit-appearance: none;
	text-decoration: none;
}

#page-browse .uc-browse-actions > a {
	padding-inline: 12px;
	min-height: 33px;
}

#page-browse .uc-surface-btn:hover {
	transform: translateY(-1px);
}

#page-browse .uc-browse-shell {
	border-width: 2px;
	border-color: var(--uc-dna-border-strong);
	border-radius: var(--uc-dna-card-radius, 12px);
	overflow: hidden;
	background: var(--uc-dna-card-surface);
	box-shadow: var(--uc-dna-shadow-hard), 0 0 0 1px color-mix(in srgb, var(--uc-gold) 16%, transparent);
}

#page-browse .uc-browse-shell > .p-6 {
	background: var(--uc-surface-sunken);
	color: var(--uc-text-secondary);
}

#page-browse .uc-browse-shell .border-l-4 {
	border-color: var(--uc-primary) !important;
}

#page-browse .uc-browse-shell .border-l-4 .text-gray-800,
#page-browse .uc-browse-shell .border-l-4 .text-gray-600 {
	color: var(--uc-text) !important;
}

#page-browse .uc-browse-head-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

#page-browse .uc-browse-head-highlight {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 9px;
	border: 1px solid var(--uc-gold-dim);
	border-radius: 999px;
	background: linear-gradient(135deg, var(--uc-gold), var(--uc-gold-dim));
	color: var(--uc-text-on-gold);
	font-size: 9px;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	white-space: nowrap;
	box-shadow: 0 2px 0 rgba(0, 0, 0, 0.45);
	transition: transform 0.1s ease, filter 0.12s ease;
}

#page-browse .uc-browse-head-highlight:hover {
	filter: brightness(1.05);
	transform: translateY(-1px);
}

#page-browse .uc-browse-head-highlight:active {
	transform: scale(0.96);
}

#page-browse .uc-browse-head-highlight-short {
	display: none;
}

#page-browse .uc-browse-head-highlight-pts {
	padding: 1px 5px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--uc-text-on-gold) 18%, transparent);
	color: var(--uc-text-on-gold);
	font-size: 8px;
	letter-spacing: 0.06em;
}

#page-browse .uc-browse-head-link {
	font-size: 10px;
	font-weight: 900;
	color: var(--uc-gold);
	white-space: nowrap;
}

#page-browse .uc-browse-head-link:hover {
	text-decoration: underline;
}

/* Narrow phones: keep the header on one line. The body already repeats a
   "Join a circle" CTA, so the header link is the first thing to go. */
@media (max-width: 560px) {
	#page-browse .uc-browse-head-link {
		display: none;
	}

	#page-browse .uc-browse-head-highlight {
		padding: 4px 8px;
		letter-spacing: 0.04em;
	}

	#page-browse .uc-browse-head-highlight-full {
		display: none;
	}

	#page-browse .uc-browse-head-highlight-short {
		display: inline;
	}
}

#page-browse .uc-browse-modern-intro {
	border: 0;
	border-radius: 12px;
	background: transparent;
}

#page-browse .uc-browse-modern-filterbar {
	border-width: 2px;
	border-color: var(--uc-border-strong);
	border-radius: 14px;
	background: var(--uc-surface-sunken);
	box-shadow: var(--uc-dna-shadow-soft);
}

#page-browse .uc-browse-more-filters {
	margin-top: 0.75rem;
	border-radius: 12px;
	border: 1px solid var(--uc-border);
	background: color-mix(in srgb, var(--uc-surface-raised) 70%, var(--uc-surface-sunken));
	padding: 0.75rem;
	color: var(--uc-text-secondary);
}

#page-browse .uc-browse-more-filters > summary {
	color: var(--uc-text);
	font-size: 11px;
	font-weight: 900;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
	list-style: none;
}

#page-browse .uc-browse-more-filters > summary::-webkit-details-marker {
	display: none;
}

#page-browse .uc-browse-more-filters[open] > summary {
	margin-bottom: 0.5rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid var(--uc-divider);
}

#page-browse .uc-browse-card,
#page-browse .uc-browse-card-official,
#page-browse .uc-surface-card {
	border-width: 2px;
	border-color: var(--uc-dna-border-strong);
	border-radius: 12px;
	background: var(--uc-surface-sunken);
	box-shadow: var(--uc-dna-shadow-soft);
}

#page-browse .uc-browse-card.is-highlighted {
	border-color: var(--uc-gold-dim);
	background: color-mix(in srgb, var(--uc-gold) 8%, var(--uc-surface-sunken));
}

#page-browse .uc-browse-avatar-wrap {
	border-color: var(--uc-border-strong);
	border-width: 2px;
	border-radius: 12px;
}

#page-browse .uc-surface-input,
#page-browse .uc-surface-select,
#page-browse .uc-browse-control,
#page-browse .uc-browse-select,
#page-browse .uc-surface-toggle,
#page-browse .uc-browse-online-label,
#page-browse input,
#page-browse select {
	border-width: 2px !important;
	border-color: var(--uc-border-strong) !important;
	border-radius: 12px !important;
	background: var(--uc-surface-input) !important;
	color: var(--uc-text) !important;
	box-shadow: inset 0 1px 0 var(--uc-veil-weak);
}

#page-browse .uc-browse-online-label {
	color: var(--uc-text-secondary) !important;
}

#page-browse .uc-surface-input:focus,
#page-browse .uc-surface-select:focus,
#page-browse .uc-browse-control:focus,
#page-browse .uc-browse-select:focus,
#page-browse input:focus,
#page-browse select:focus {
	border-color: var(--uc-gold-dim) !important;
	outline: 2px solid color-mix(in srgb, var(--uc-gold) 35%, transparent);
	background: var(--uc-surface-raised) !important;
}

#page-browse .uc-browse-cta {
	margin-top: 1rem;
	padding: 1rem;
	border-radius: 12px;
	border: 2px solid var(--uc-warning-border);
	background: var(--uc-warning-surface);
	box-shadow: var(--uc-dna-shadow-soft);
}

#page-browse .uc-browse-cta__title {
	margin: 0 0 0.25rem;
	font-size: 0.88rem;
	font-weight: 900;
	color: var(--uc-warning-text);
}

#page-browse .uc-browse-cta__copy {
	margin: 0;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--uc-text-secondary);
}

#page-browse .uc-browse-cta__actions {
	margin-top: 0.75rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

#page-browse #browse-results-summary {
	color: var(--uc-text-muted);
}

#page-browse .uc-surface-btn--secondary {
	background: var(--uc-surface-raised);
	border: 2px solid var(--uc-border-strong);
	color: var(--uc-text);
	box-shadow: 2px 2px 0 var(--uc-shadow-ink-strong);
}

.uc-circles-shell {
	border: 2px solid var(--uc-dna-border-strong);
	background: var(--uc-dna-card-surface);
	box-shadow: var(--uc-dna-shadow-hard), 0 0 0 1px color-mix(in srgb, var(--uc-gold) 16%, transparent);
	border-radius: var(--uc-dna-card-radius, 12px);
	overflow: hidden;
}

/* Circles is a working surface (map/list) — no trippy lift on hover */
#page-circles .uc-circles-shell.uc-card-trippy,
#page-circles .uc-circles-shell.uc-card-trippy:hover,
#page-circles .uc-circles-shell.uc-card-trippy:focus-within {
	transform: none !important;
	will-change: auto;
}

#page-circles .uc-circles-shell.uc-card-trippy::after {
	content: none !important;
	display: none !important;
}

#page-circles .uc-circles-shell > .p-4,
#page-circles .uc-circles-shell > .p-6,
#page-circles .uc-circles-shell > [class*="p-4"],
#page-circles .uc-circles-shell > [class*="p-6"] {
	background: var(--uc-surface-sunken);
	color: var(--uc-text-secondary);
}

#page-circles .uc-circles-shell .text-gray-600 {
	color: var(--uc-text-secondary) !important;
}

.uc-circles-header-actions {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	flex: 0 0 auto;
	min-width: 0;
}

.uc-circles-create-cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 36px;
	padding: 8px 14px;
	border: 2px solid var(--uc-border-strong);
	border-radius: 999px;
	background: linear-gradient(135deg, var(--uc-gold) 0%, var(--uc-warning) 100%);
	color: var(--uc-text-on-gold);
	font-size: 12px;
	font-weight: 900;
	letter-spacing: 0.02em;
	line-height: 1.1;
	cursor: pointer;
	box-shadow: 2px 2px 0 var(--uc-shadow-ink-strong);
	-webkit-tap-highlight-color: transparent;
	white-space: nowrap;
}

.uc-circles-create-cta:hover {
	background: linear-gradient(135deg, var(--uc-gold) 0%, var(--uc-gold) 100%);
	transform: translateY(-1px);
}

.uc-circles-create-cta:active {
	transform: translate(1px, 1px);
	box-shadow: 0 0 0 var(--uc-shadow-ink-strong);
}

.uc-circles-create-cta__plus {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border-radius: 999px;
	background: var(--uc-chrome);
	color: var(--uc-gold);
	font-size: 14px;
	font-weight: 900;
	line-height: 1;
}

.uc-circles-create-cta__label {
	text-transform: none;
}

@media (max-width: 420px) {
	.uc-circles-header-actions {
		gap: 8px;
	}

	.uc-circles-create-cta {
		padding: 8px 11px;
		font-size: 11px;
		gap: 6px;
	}
}

.uc-circles-hero {
	display: grid;
	gap: 6px;
	margin-bottom: 4px;
}

.uc-circles-hero-title {
	font-size: clamp(22px, 3.6vw, 36px);
	font-weight: 900;
	letter-spacing: -0.02em;
	color: var(--uc-text);
	line-height: 1;
	text-shadow: none;
}

.uc-circles-hero-title::after {
	content: "";
	display: inline-block;
	width: 86px;
	height: 4px;
	margin-left: 10px;
	border-radius: 999px;
	vertical-align: middle;
	background: linear-gradient(90deg, var(--uc-primary), var(--uc-gold-dim));
	box-shadow: 0 0 0 1px color-mix(in srgb, var(--uc-gold) 25%, transparent);
}

.uc-circles-hero-copy {
	font-size: 15px;
	color: var(--uc-text-secondary);
	max-width: 720px;
}

.uc-circles-urban-upgrade {
	margin: 10px 0 0;
	max-width: 720px;
	padding: 10px 12px;
	border: 1px solid var(--uc-gold);
	border-radius: 12px;
	background: var(--uc-warning-surface);
	color: var(--uc-warning-text);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.35;
}

.uc-circles-urban-upgrade.hidden {
	display: none;
}

.uc-circles-filterbar {
	border: 2px solid var(--uc-border-strong);
	background: var(--uc-surface-sunken);
	border-radius: 14px;
	padding: 16px;
	box-shadow: var(--uc-dna-shadow-soft);
}

.uc-circles-primary-row {
	display: grid;
	gap: 12px;
}

.uc-circles-primary-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.uc-circles-filters-toggle {
	min-height: 38px;
	padding: 8px 14px;
	border: 2px solid var(--uc-border-strong);
	border-radius: 999px;
	background: var(--uc-surface-raised);
	color: var(--uc-text-secondary);
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	cursor: pointer;
	box-shadow: var(--uc-dna-shadow-soft);
}

.uc-circles-filters-toggle.is-active {
	border-color: var(--uc-primary);
	background: var(--uc-danger-surface);
	color: var(--uc-danger-text);
	box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--uc-primary) 45%, transparent);
}

.uc-circles-advanced-filters {
	margin-top: 14px;
	display: none;
}

.uc-circles-filterbar.is-filters-open .uc-circles-advanced-filters {
	display: block;
	animation: uc-circles-filters-in 0.2s ease;
}

@keyframes uc-circles-filters-in {
	from {
		opacity: 0.4;
		transform: translateY(-6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.uc-circles-filter-grid {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(1, minmax(0, 1fr));
	grid-template-areas:
		"state"
		"status"
		"sort"
		"submit";
}

.uc-circles-state-field { grid-area: state; }
.uc-circles-status-field { grid-area: status; }
.uc-circles-sort-field { grid-area: sort; }
.uc-circles-submit-field { grid-area: submit; }

.uc-circles-input-icon,
.uc-surface-control-icon {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--uc-text-muted);
	font-size: 14px;
	font-weight: 900;
}

.uc-circles-input,
.uc-circles-select {
	width: 100%;
	border: 2px solid var(--uc-border-strong);
	border-radius: 12px;
	background: var(--uc-surface-input);
	padding: 10px 12px;
	font-size: 12px;
	font-weight: 800;
	color: var(--uc-text);
	box-shadow: inset 0 1px 0 color-mix(in srgb, var(--uc-text) 4%, transparent);
}

.uc-circles-input:focus,
.uc-circles-select:focus {
	outline: none;
	border-color: var(--uc-gold-dim);
	box-shadow: 0 0 0 1px color-mix(in srgb, var(--uc-gold) 35%, transparent);
}

.uc-circles-input {
	padding-left: 32px;
}

.uc-circles-select {
	appearance: none;
	padding-right: 34px;
}

.uc-circles-select-icon {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 14px;
	font-weight: 900;
	color: var(--uc-text-muted);
	pointer-events: none;
}

.uc-circles-search-btn {
	padding: 10px 14px;
	gap: 8px;
}

.uc-circles-submit-wrap {
	min-height: 40px;
}

.uc-circles-chip {
	background: var(--uc-surface-sunken);
	border: 1px solid var(--uc-border);
	border-radius: 999px;
	padding: 5px 11px;
	font-size: 10px;
	font-weight: 800;
	color: var(--uc-text);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.uc-circles-chip-label {
	display: inline-flex;
	align-items: center;
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--uc-text-muted);
	padding-right: 2px;
}

.uc-circles-inline-status {
	margin-top: 10px;
	padding: 10px 12px;
	border: 1px solid var(--uc-gray-300);
	border-radius: 10px;
	background: var(--uc-surface-raised);
	color: var(--uc-text-secondary);
	font-size: 12px;
	font-weight: 700;
}

.uc-circles-inline-status.is-error {
	border-color: var(--uc-danger-border);
	background: var(--uc-danger-surface);
	color: var(--uc-danger-text);
}

.uc-circles-inline-status.is-success {
	border-color: var(--uc-success-border);
	background: var(--uc-success-surface);
	color: var(--uc-success-text);
}

.uc-circles-inline-status.is-hint {
	border-color: var(--uc-info-border);
	background: var(--uc-info-surface);
	color: var(--uc-info-text);
}

.uc-home-shoutout-lede {
	margin: 0 0 12px;
	font-size: 13px;
	font-weight: 600;
	color: var(--uc-text-secondary);
	line-height: 1.45;
}

.uc-home-shoutout-compose {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 10px;
	align-items: stretch;
}

.uc-home-shoutout-input {
	width: 100%;
	min-height: 64px;
	resize: vertical;
	border: 1px solid var(--uc-danger-border);
	border-radius: 12px;
	padding: 10px 12px;
	background: var(--uc-surface-input);
	color: var(--uc-text);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
}

.uc-home-shoutout-input::placeholder {
	color: var(--uc-text-muted);
	opacity: 1;
}

.uc-home-shoutout-input:focus {
	outline: 2px solid var(--uc-primary-wash-strong);
	border-color: #f87171;
}

.uc-home-shoutout-post {
	border: 0;
	border-radius: 12px;
	padding: 10px 14px;
	background: linear-gradient(135deg, var(--uc-primary) 0%, var(--uc-primary) 100%);
	color: var(--uc-text-on-primary);
	font-size: 11px;
	font-weight: 900;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
	white-space: nowrap;
	align-self: start;
	min-height: 44px;
}

.uc-home-shoutout-post:hover {
	filter: brightness(1.05);
}

.uc-home-shoutout-status {
	margin-top: 10px;
	padding: 8px 10px;
	border-radius: 10px;
	font-size: 12px;
	font-weight: 700;
	border: 1px solid var(--uc-gray-300);
	background: var(--uc-surface-raised);
	color: var(--uc-text-secondary);
}

.uc-home-shoutout-status.is-error {
	border-color: var(--uc-danger-border);
	background: var(--uc-danger-surface);
	color: var(--uc-danger-text);
}

.uc-home-shoutout-status.is-success {
	border-color: var(--uc-success-border);
	background: var(--uc-success-surface);
	color: var(--uc-success-text);
}

.uc-home-shoutout-status.is-hint {
	border-color: var(--uc-info-border);
	background: var(--uc-info-surface);
	color: var(--uc-info-text);
}

.uc-home-feedback-lede {
	margin: 0 0 12px;
	font-size: 13px;
	font-weight: 600;
	color: var(--uc-text-secondary);
	line-height: 1.45;
}

.uc-home-feedback-kinds {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}

.uc-home-feedback-kind {
	appearance: none;
	border: 2px solid var(--uc-border-strong);
	border-radius: 999px;
	padding: 6px 10px;
	background: var(--uc-surface-raised);
	color: var(--uc-text-secondary);
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
	box-shadow: 2px 2px 0 var(--uc-shadow-ink-strong);
}

.uc-home-feedback-kind.is-selected {
	border-color: var(--uc-gold);
	background: var(--uc-gold);
	color: var(--uc-text-on-gold);
}

.uc-home-feedback-compose {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 10px;
	align-items: stretch;
}

.uc-home-feedback-input {
	width: 100%;
	min-height: 72px;
	resize: vertical;
	border: 1px solid var(--uc-border-strong);
	border-radius: 12px;
	padding: 10px 12px;
	background: var(--uc-surface-input);
	color: var(--uc-text);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
}

.uc-home-feedback-input::placeholder {
	color: var(--uc-text-muted);
	opacity: 1;
}

.uc-home-feedback-input:focus {
	outline: 2px solid var(--uc-primary-wash-strong);
	border-color: var(--uc-gold);
}

.uc-home-feedback-send {
	border: 0;
	border-radius: 12px;
	padding: 10px 14px;
	background: linear-gradient(135deg, var(--uc-primary) 0%, var(--uc-primary) 100%);
	color: var(--uc-text-on-primary);
	font-size: 11px;
	font-weight: 900;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
	white-space: nowrap;
	align-self: start;
	min-height: 44px;
}

.uc-home-feedback-send:disabled,
.uc-home-feedback-send.is-cooldown {
	opacity: 0.55;
	cursor: not-allowed;
	filter: grayscale(0.2);
}

.uc-home-feedback-status {
	margin-top: 10px;
	padding: 8px 10px;
	border-radius: 10px;
	font-size: 12px;
	font-weight: 700;
	border: 1px solid var(--uc-gray-300);
	background: var(--uc-surface-raised);
	color: var(--uc-text-secondary);
}

.uc-home-feedback-status.is-error {
	border-color: var(--uc-danger-border);
	background: var(--uc-danger-surface);
	color: var(--uc-danger-text);
}

.uc-home-feedback-status.is-success {
	border-color: var(--uc-success-border);
	background: var(--uc-success-surface);
	color: var(--uc-success-text);
}

.uc-home-feedback-status.is-hint {
	border-color: var(--uc-info-border);
	background: var(--uc-info-surface);
	color: var(--uc-info-text);
}

.uc-home-shoutout-list {
	display: grid;
	gap: 10px;
	margin-top: 14px;
}

.uc-home-shoutout-empty {
	border: 1px dashed var(--uc-danger-border);
	border-radius: 14px;
	padding: 16px;
	background: var(--uc-danger-surface);
	text-align: center;
}

.uc-home-shoutout-empty-title {
	font-size: 13px;
	font-weight: 900;
	color: var(--uc-text);
}

.uc-home-shoutout-empty-copy {
	margin-top: 4px;
	font-size: 12px;
	font-weight: 600;
	color: var(--uc-text-secondary);
}

.uc-home-shoutout-card {
	border: 1px solid var(--uc-border);
	border-radius: 14px;
	padding: 12px 14px;
	background: linear-gradient(145deg, var(--uc-surface-raised) 0%, var(--uc-surface) 100%);
	box-shadow: var(--uc-dna-shadow-soft);
}

.uc-home-shoutout-card.is-featured {
	border-color: var(--uc-primary-wash-strong);
	background: linear-gradient(145deg, var(--uc-surface-raised) 0%, var(--uc-primary-wash) 100%);
}

.uc-home-shoutout-card-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 8px;
}

.uc-home-shoutout-pin {
	font-size: 9px;
	font-weight: 900;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--uc-danger-text);
	background: var(--uc-danger-surface);
	border: 1px solid var(--uc-danger-border);
	border-radius: 999px;
	padding: 3px 8px;
}

.uc-home-shoutout-timer {
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--uc-text-muted);
}

.uc-home-shoutout-message {
	font-size: 14px;
	font-weight: 800;
	line-height: 1.35;
	color: var(--uc-text);
}

.uc-home-shoutout-author {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 12px;
}

.uc-home-shoutout-avatar-wrap {
	position: relative;
	width: 36px;
	height: 36px;
	flex-shrink: 0;
}

.uc-home-shoutout-avatar,
.uc-home-shoutout-avatar-fallback {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: grid;
	place-items: center;
}

.uc-home-shoutout-avatar {
	position: absolute;
	inset: 0;
	object-fit: cover;
	z-index: 1;
	border: 2px solid var(--uc-surface-raised);
}

.uc-home-shoutout-avatar-fallback {
	background: var(--uc-primary-darker);
	color: var(--uc-text-on-primary);
	font-size: 11px;
	font-weight: 900;
}

.uc-home-card-avatar {
	position: relative;
	display: inline-flex;
	flex-shrink: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	overflow: hidden;
	background: #fee2e2;
	cursor: pointer;
}

.uc-home-card-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.uc-home-card-avatar--cover {
	border-radius: 8px;
	cursor: default;
}

.uc-home-trend-row {
	display: flex;
	align-items: center;
	gap: 10px;
	border: 1px solid var(--uc-border);
	border-radius: 12px;
	padding: 12px;
	background: var(--uc-surface-raised);
	color: var(--uc-text);
	box-shadow: 0 2px 8px var(--uc-wash-weak);
	transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

.uc-home-trend-row:hover {
	transform: translateY(-1px);
	border-color: var(--uc-border-strong);
	background: var(--uc-surface-muted);
}

.uc-home-trend-card {
	border: 1px solid var(--uc-border);
	border-radius: 12px;
	padding: 12px;
	background: var(--uc-surface-raised);
	color: var(--uc-text);
	box-shadow: 0 2px 8px var(--uc-wash-weak);
	cursor: pointer;
	transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

.uc-home-trend-card:hover {
	transform: scale(1.02);
	border-color: var(--uc-border-strong);
	background: var(--uc-surface-muted);
}

.uc-home-trend-card:active {
	transform: scale(0.98);
}

.uc-home-trend-card .uc-home-trend-title,
.uc-home-trend-row .uc-home-trend-title {
	color: var(--uc-text);
	font-weight: 900;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	line-height: 1.2;
}

.uc-home-trend-card .uc-home-trend-meta,
.uc-home-trend-row .uc-home-trend-meta {
	color: var(--uc-text-secondary);
	font-size: 11px;
	font-weight: 600;
}

/* Usernames / identity spans inside home meta lines */
.uc-home-trend-card .uc-home-identity,
.uc-home-trend-row .uc-home-identity,
.uc-home-identity {
	color: var(--uc-primary-ink);
	font-weight: 800;
}

.uc-home-spotlight-body {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.uc-home-spotlight-avatar-btn {
	display: block;
	flex-shrink: 0;
	width: 72px;
	height: 72px;
	padding: 0;
	border: 0;
	border-radius: 14px;
	overflow: hidden;
	background: var(--uc-surface-muted);
	cursor: pointer;
}

.uc-home-spotlight-avatar-btn .spotlight-img,
.uc-home-spotlight-avatar-btn img {
	width: 72px;
	height: 72px;
	max-width: 72px;
	object-fit: cover;
	border-radius: 14px;
	display: block;
}

.uc-home-spotlight-copy {
	flex: 1;
	min-width: 0;
}

/* Home left rail is ~1/5 of the row, so Spotlight and Shoutouts stack
   instead of running avatar-beside-copy and textarea-beside-button. */
.uc-home-rail .uc-home-spotlight-body {
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 10px;
}

.uc-home-rail .uc-home-spotlight-copy {
	width: 100%;
}

.uc-home-rail .uc-home-shoutout-lede {
	margin-bottom: 10px;
	font-size: 12px;
}

.uc-home-rail .uc-home-shoutout-compose {
	grid-template-columns: 1fr;
	gap: 8px;
}

.uc-home-rail .uc-home-shoutout-post {
	width: 100%;
}

.uc-home-rail .uc-home-shoutout-input {
	min-height: 56px;
	font-size: 12px;
}

.uc-home-hood-card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 10px;
	border: 1px solid var(--uc-border);
	background: var(--uc-surface-raised);
	transition: transform 0.15s ease, background 0.15s ease;
}

.uc-home-hood-card:hover {
	background: var(--uc-surface-muted);
	transform: translateY(-1px);
}

.uc-home-hood-card__head {
	display: flex;
	align-items: center;
	gap: 10px;
}

.uc-home-hood-card__avatars {
	display: flex;
	align-items: center;
}

.uc-home-hood-card__avatar + .uc-home-hood-card__avatar {
	margin-left: -8px;
}

.uc-home-hood-card__avatar {
	border: 2px solid var(--uc-surface-raised);
	box-sizing: content-box;
}

.uc-home-hood-card__name {
	font-size: 12px;
	font-weight: 900;
	color: var(--uc-text);
	line-height: 1.2;
}

.uc-home-hood-card__meta {
	font-size: 10px;
	color: var(--uc-text-secondary);
	margin-top: 2px;
	line-height: 1.3;
}

.uc-home-hood-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.uc-home-hood-card__tags span {
	font-size: 9px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--uc-danger-text);
	background: var(--uc-danger-surface);
	padding: 2px 6px;
}

.uc-home-shoutout-author-name {
	font-size: 12px;
	font-weight: 900;
	color: var(--uc-primary-ink);
}

.uc-home-shoutout-author-meta {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--uc-text-secondary);
}

@media (max-width: 640px) {
	.uc-home-shoutout-compose {
		grid-template-columns: 1fr;
	}

	.uc-home-shoutout-post {
		width: 100%;
	}
}

.uc-spend-modal-card {
	max-width: 28rem;
	border: 1px solid var(--uc-danger-border);
	border-radius: 16px;
	padding: 0;
	overflow: hidden;
}

.uc-spend-modal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 12px 14px;
	background: linear-gradient(120deg, var(--uc-primary-darker) 0%, var(--uc-primary) 100%);
	color: var(--uc-text-on-primary);
}

.uc-spend-modal-title {
	font-size: 12px;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.uc-spend-modal-close {
	border: 0;
	background: transparent;
	color: var(--uc-text-on-primary);
	font-size: 22px;
	line-height: 1;
	font-weight: 900;
	cursor: pointer;
}

.uc-spend-modal-body {
	padding: 14px;
	display: grid;
	gap: 10px;
}

.uc-spend-modal-copy {
	margin: 0;
	font-size: 13px;
	color: var(--uc-text-secondary);
	line-height: 1.45;
}

.uc-spend-modal-balance-row {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	font-size: 11px;
	font-weight: 700;
	color: var(--uc-text-secondary);
	padding: 8px 10px;
	border: 1px solid var(--uc-border);
	border-radius: 10px;
	background: var(--uc-surface-raised);
}

.uc-spend-modal-balance-row .is-negative {
	color: var(--uc-primary);
}

.uc-spend-modal-warning {
	padding: 8px 10px;
	border: 1px solid var(--uc-danger-border);
	border-radius: 10px;
	background: var(--uc-danger-surface);
	color: var(--uc-danger-text);
	font-size: 11px;
	font-weight: 800;
}

.uc-spend-modal-low-balance {
	padding: 8px 10px;
	border: 1px solid var(--uc-warning-border);
	border-radius: 10px;
	background: var(--uc-warning-surface);
	color: var(--uc-warning-text);
	font-size: 11px;
	font-weight: 700;
}

.uc-spend-modal-actions {
	padding: 0 14px 14px;
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	flex-wrap: wrap;
}

@media (max-width: 767px) {
	.uc-circles-hero-copy {
		font-size: 13px;
		line-height: 1.35;
	}

	.uc-circles-filterbar {
		padding: 14px;
		border-radius: 12px;
	}

	.uc-circles-primary-row .uc-circles-field-label {
		display: none;
	}

	.uc-circles-primary-row .uc-circles-input {
		min-height: 46px;
		font-size: 14px;
		border-radius: 16px;
	}

	.uc-circles-primary-actions {
		width: 100%;
	}

	.uc-circles-view-toggle {
		flex: 1 1 auto;
	}

	.uc-circles-view-btn {
		flex: 1 1 0;
		min-height: 40px;
	}

	.uc-circles-filters-toggle {
		flex: none;
		min-height: 40px;
	}
}

/* Phase 47 — Circles List | Map */
.uc-circles-view-toggle {
	display: inline-flex;
	border: 2px solid var(--uc-border-strong);
	border-radius: 12px;
	overflow: hidden;
	background: var(--uc-surface-sunken);
	box-shadow: var(--uc-dna-shadow-soft);
}

.uc-circles-view-btn {
	min-width: 72px;
	min-height: 34px;
	padding: 7px 14px;
	border: 0;
	background: transparent;
	color: var(--uc-text-secondary);
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	cursor: pointer;
}

.uc-circles-view-btn + .uc-circles-view-btn {
	border-left: 1px solid var(--uc-divider);
}

.uc-circles-view-btn.is-active {
	background: var(--uc-surface-raised);
	color: var(--uc-text);
	box-shadow: inset 0 -2px 0 var(--uc-gold);
}

/* Phase 24b: Following tab — standalone toggle (not part of map/list pair). */
.uc-circles-following-btn {
	margin-left: 6px;
	border: 2px solid var(--uc-border-strong);
	background: var(--uc-surface-raised);
	color: var(--uc-text-secondary);
	border-radius: 12px;
}

.uc-circles-following-btn.is-active {
	background: var(--uc-info-surface);
	color: var(--uc-info-text);
	box-shadow: inset 0 -2px 0 var(--uc-info);
	border-color: var(--uc-info-border);
}

.uc-circles-empty-title {
	font-size: 13px;
	font-weight: 900;
	color: var(--uc-text);
	margin-bottom: 4px;
}

.uc-circles-empty-copy {
	font-size: 11px;
	color: var(--uc-text-muted);
}

.uc-circles-map-cap-note {
	margin: 10px 0 0;
	font-size: 10px;
	font-weight: 700;
	color: var(--uc-text-muted);
}

.uc-circles-map-stage {
	margin-top: 16px;
	display: grid;
	gap: 14px;
	grid-template-columns: minmax(0, 1fr);
	min-height: 0;
}

.uc-circles-map-stage.hidden {
	display: none;
}

.uc-circles-map-canvas-wrap {
	position: relative;
	height: min(42vh, 340px);
	min-height: 260px;
	max-height: 340px;
	border: 2px solid var(--uc-dna-border-strong);
	border-radius: 14px;
	background:
		radial-gradient(circle at 16% 18%, color-mix(in srgb, var(--uc-gold) 10%, transparent), transparent 44%),
		linear-gradient(180deg, var(--uc-surface-raised) 0%, var(--uc-surface-sunken) 100%);
	overflow: hidden;
	touch-action: none;
	box-shadow: var(--uc-dna-shadow-soft);
}

.uc-circles-map-canvas {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 0;
	cursor: grab;
}

.uc-circles-map-canvas.is-panning {
	cursor: grabbing;
}

.uc-circles-map-tools {
	position: absolute;
	top: 12px;
	right: 12px;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 6px;
	z-index: 2;
}

.uc-circles-map-tool {
	min-height: 30px;
	padding: 6px 10px;
	border: 2px solid var(--uc-border-strong);
	border-radius: 10px;
	background: var(--uc-surface-raised);
	color: var(--uc-text-secondary);
	font-size: 9px;
	font-weight: 900;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	cursor: pointer;
	box-shadow: var(--uc-dna-shadow-soft);
}

.uc-circles-map-tool:hover {
	background: var(--uc-surface-input);
	border-color: var(--uc-gold-dim);
	color: var(--uc-text);
}

.uc-circles-map-tool--create {
	border-color: var(--uc-primary);
	color: var(--uc-danger-text);
	background: var(--uc-danger-surface);
}

.uc-circles-map-empty {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	text-align: center;
	font-size: 12px;
	font-weight: 700;
	color: var(--uc-text-muted);
	background: color-mix(in srgb, var(--uc-surface-sunken) 92%, transparent);
	z-index: 2;
	pointer-events: auto;
}

.uc-circles-map-empty.hidden {
	display: none;
}

.uc-circles-map-empty .uc-circles-empty-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: min(420px, 100%);
	max-height: 100%;
	overflow: auto;
}

.uc-circles-map-empty .uc-circles-empty-title {
	font-size: 13px;
	font-weight: 800;
	color: var(--uc-text-secondary);
	line-height: 1.35;
}

.uc-circles-map-hud {
	border: 2px solid var(--uc-dna-border-strong);
	border-radius: 14px;
	background: var(--uc-surface-sunken);
	padding: 16px;
	box-shadow: var(--uc-dna-shadow-soft);
}

.uc-circles-map-hud-kicker {
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--uc-gold);
}

.uc-circles-map-hud-title {
	margin-top: 4px;
	font-size: 20px;
	font-weight: 900;
	letter-spacing: -0.02em;
	color: var(--uc-text);
	line-height: 1.1;
}

.uc-circles-map-hud-copy {
	margin-top: 8px;
	font-size: 11px;
	line-height: 1.4;
	color: var(--uc-text-muted);
}

.uc-circles-map-hud-stats {
	margin-top: 12px;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

.uc-circles-map-hud-actions {
	margin-top: 14px;
	display: grid;
	gap: 8px;
}

.uc-circles-map-hud-actions .uc-surface-btn {
	width: 100%;
}

.uc-circles-map-hud-sheet-handle {
	display: none;
	width: 42px;
	height: 4px;
	margin: 0 auto 10px;
	border-radius: 999px;
	background: var(--uc-divider);
}

@media (min-width: 960px) {
	.uc-circles-map-stage {
		grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
		align-items: stretch;
	}

	.uc-circles-map-hud {
		position: sticky;
		top: 12px;
		align-self: start;
	}
}

@media (max-width: 767px) {
	.uc-circles-map-stage {
		position: relative;
		min-height: 0;
	}

	.uc-circles-map-canvas-wrap {
		height: min(48vh, 360px);
		min-height: 280px;
		max-height: 360px;
	}

	.uc-circles-map-hud {
		position: absolute;
		left: 10px;
		right: 10px;
		bottom: 10px;
		z-index: 3;
		max-height: 48%;
		overflow: auto;
		border-radius: 16px 16px 14px 14px;
		box-shadow: 0 -8px 28px var(--uc-wash-soft);
		animation: uc-circles-sheet-in 0.22s ease;
	}

	.uc-circles-map-hud-sheet-handle {
		display: block;
	}
}

@keyframes uc-circles-sheet-in {
	from {
		transform: translateY(18px);
		opacity: 0.65;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

.uc-circles-results-grid {
	display: grid;
	gap: 22px;
	grid-template-columns: repeat(1, minmax(0, 1fr));
}

.uc-circles-results-grid.is-map-hidden {
	display: none;
}

.uc-circles-results-grid:has(.uc-circles-empty) {
	display: flex;
	justify-content: center;
	align-items: stretch;
}

.uc-circles-empty {
	border: 2px dashed var(--uc-slate-300);
	background: var(--uc-surface-raised);
	border-radius: 18px;
	padding: 32px 20px;
	text-align: center;
	font-size: 12px;
	font-weight: 700;
	color: var(--uc-text-muted);
	width: min(560px, 100%);
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.uc-circles-place-suggestions {
	width: 100%;
	text-align: center;
}

.uc-circles-place-suggestions .uc-circles-chip {
	display: inline-flex;
}

.uc-circles-create-overlay {
	position: fixed;
	inset: 0;
	/* Above shell bottom bar + music player dock on all viewports */
	z-index: 5200;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: max(16px, env(safe-area-inset-top, 0px))
		max(16px, env(safe-area-inset-right, 0px))
		max(16px, env(safe-area-inset-bottom, 0px))
		max(16px, env(safe-area-inset-left, 0px));
	/* Keep overflow visible so native <select> menus aren't clipped / swallowed. */
	overflow: visible;
	overscroll-behavior: contain;
	box-sizing: border-box;
}

.uc-circles-create-overlay.hidden {
	display: none !important;
}

.uc-circles-create-backdrop {
	position: absolute;
	inset: 0;
	background: color-mix(in srgb, var(--uc-chrome, #0a0909) 72%, transparent);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	cursor: pointer;
}

.uc-circles-create-card {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: min(540px, 100%);
	max-height: min(90dvh, 720px);
	overflow: hidden;
	border: 2px solid var(--uc-dna-border-strong);
	background: var(--uc-dna-card-surface, var(--uc-surface));
	border-radius: var(--uc-dna-card-radius, 14px);
	padding: 0;
	box-shadow:
		var(--uc-dna-shadow-hard, 4px 5px 0 var(--uc-shadow-ink-strong)),
		0 0 0 1px color-mix(in srgb, var(--uc-gold) 18%, transparent),
		0 28px 64px var(--uc-shadow-ink-soft, rgba(0, 0, 0, 0.45));
	color: var(--uc-text);
}

/* Residency sheet has no inner scroll body — allow the card itself to scroll. */
.uc-residency-card.uc-circles-create-card {
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	background: var(--uc-surface-sunken);
}

.uc-residency-card > .uc-residency-config {
	margin-top: 16px;
}

.uc-circles-create-close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 3;
	width: 36px;
	height: 36px;
	border: 2px solid color-mix(in srgb, var(--uc-gold) 55%, transparent);
	border-radius: 999px;
	background: color-mix(in srgb, var(--uc-chrome, #0a0909) 45%, transparent);
	color: var(--uc-text-on-primary, #fff);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	box-shadow: var(--uc-dna-shadow-soft);
}

.uc-circles-create-close:hover {
	background: color-mix(in srgb, var(--uc-chrome, #0a0909) 70%, transparent);
	border-color: var(--uc-gold);
	color: var(--uc-gold);
}

body.uc-circles-create-open {
	overflow: hidden;
}

body.uc-circles-create-open .uc-global-footer-bar,
body.uc-circles-create-open .uc-app-bottom-bar,
body.uc-circles-create-open .uc-music-player-shell {
	visibility: hidden;
	pointer-events: none;
}

/* Standard residency / location configuration panel (reuses create-overlay chrome) */
.uc-residency-config {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0 18px 14px;
	padding: 12px;
	border-radius: 12px;
	border: 2px solid var(--uc-border-strong);
	background: var(--uc-surface-sunken);
	box-shadow: var(--uc-dna-shadow-soft);
}

.uc-residency-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}

.uc-residency-row.hidden {
	display: none !important;
}

.uc-residency-row-label {
	flex: 0 0 auto;
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--uc-gold);
}

.uc-residency-row-value {
	flex: 1 1 auto;
	text-align: right;
	font-size: 0.92rem;
	font-weight: 800;
	color: var(--uc-text);
	line-height: 1.25;
	word-break: break-word;
}

.uc-residency-row-value.is-urban {
	color: var(--uc-primary-ink, var(--uc-primary));
}

.uc-residency-row-value.is-pending {
	color: var(--uc-warning-text, var(--uc-gold));
}

.uc-residency-card .uc-circles-create-copy {
	margin: 0 18px 12px;
}

.uc-residency-card .uc-circles-inline-status {
	margin: 0 18px 12px;
}

.uc-move-status-card {
	cursor: pointer;
}

.uc-move-status-card .uc-move-status-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}

@media (max-height: 620px), (max-width: 480px) {
	.uc-circles-create-overlay {
		align-items: center;
		padding: max(12px, env(safe-area-inset-top, 0px))
			max(12px, env(safe-area-inset-right, 0px))
			max(12px, env(safe-area-inset-bottom, 0px))
			max(12px, env(safe-area-inset-left, 0px));
	}

	.uc-circles-create-card {
		width: min(540px, 100%);
		max-height: min(90dvh, 720px);
		border-radius: var(--uc-dna-card-radius, 14px);
	}
}

.uc-circles-create-head {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 0 0 auto;
	/* Clears the absolutely positioned close button. */
	padding: 16px 52px 14px 18px;
	min-height: 52px;
	border-bottom: 2px solid var(--uc-dna-border-strong);
	background:
		linear-gradient(180deg, var(--uc-primary) 0%, color-mix(in srgb, var(--uc-primary) 88%, #000) 100%);
	box-shadow:
		inset 0 2px 0 color-mix(in srgb, var(--uc-gold) 70%, transparent),
		inset 0 -2px 0 color-mix(in srgb, var(--uc-gold-dim) 55%, transparent);
}

.uc-circles-create-title {
	font-size: 13px;
	font-weight: 900;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1.25;
	color: var(--uc-text-on-primary, #fff);
}

.uc-circles-create-badge {
	flex: none;
	border: 1px solid color-mix(in srgb, var(--uc-gold) 70%, transparent);
	border-radius: 999px;
	background: color-mix(in srgb, var(--uc-chrome, #0a0909) 35%, transparent);
	color: var(--uc-gold);
	padding: 4px 10px;
	font-size: 9px;
	font-weight: 900;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	white-space: nowrap;
}

.uc-circles-create-body {
	flex: 1 1 auto;
	min-height: 0;
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: 16px 18px 8px;
	background: var(--uc-surface-sunken);
	color: var(--uc-text-secondary);
}

.uc-circles-create-copy {
	margin: 0;
	max-width: 46ch;
	font-size: 13px;
	line-height: 1.45;
	color: var(--uc-text-secondary);
}

.uc-circles-create-grid {
	margin-top: 16px;
	display: grid;
	gap: 14px;
	grid-template-columns: 1fr;
	align-items: start;
}

.uc-circles-create-field {
	min-width: 0;
}

.uc-circles-create-field .uc-circles-field-label {
	display: block;
	margin-bottom: 7px;
	font-size: 10px;
	letter-spacing: 0.09em;
	color: var(--uc-gold);
}

.uc-circles-create-optional {
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: none;
	color: var(--uc-text-muted);
}

.uc-circles-create-select-wrap {
	position: relative;
}

.uc-circles-create-select-wrap .uc-circles-select-icon {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
	color: var(--uc-text-muted);
	font-size: 12px;
	font-weight: 900;
}

/* No leading icon gutter in this modal. */
.uc-circles-create-card .uc-circles-input,
.uc-circles-create-card .uc-circles-select {
	min-height: 46px;
	border: 2px solid var(--uc-border-strong);
	border-radius: 12px;
	background: var(--uc-surface-input);
	font-size: 14px;
	font-weight: 700;
	color: var(--uc-text);
	box-shadow: none;
}

.uc-circles-create-card .uc-circles-input {
	padding-left: 12px;
}

.uc-circles-create-card .uc-circles-select {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 34px;
	cursor: pointer;
}

.uc-circles-create-card .uc-circles-input:focus,
.uc-circles-create-card .uc-circles-select:focus {
	outline: none;
	border-color: var(--uc-gold-dim);
	box-shadow: 0 0 0 1px color-mix(in srgb, var(--uc-gold) 35%, transparent);
}

.uc-circles-create-card .uc-circles-input:disabled,
.uc-circles-create-card .uc-circles-select:disabled {
	opacity: 0.55;
	cursor: not-allowed;
	color: var(--uc-text-muted);
}

.uc-circles-create-city-wrap {
	position: relative;
}

.uc-circles-create-suggestions {
	position: absolute;
	left: 0;
	right: 0;
	z-index: 8;
	max-height: min(280px, 40vh);
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	border: 2px solid var(--uc-dna-border-strong);
	border-radius: 12px;
	background: var(--uc-surface-raised);
	box-shadow: var(--uc-dna-shadow-hard), 0 0 0 1px color-mix(in srgb, var(--uc-gold) 14%, transparent);
	overscroll-behavior: contain;
}

.uc-circles-create-suggestions--fixed {
	/* Position set in JS so ancestors with overflow can't clip the menu. */
	right: auto;
}

.uc-circles-create-suggestions--up {
	top: auto;
	bottom: calc(100% + 4px);
}

.uc-circles-create-suggestions:not(.uc-circles-create-suggestions--up):not(.uc-circles-create-suggestions--fixed) {
	top: calc(100% + 4px);
}

.uc-circles-create-suggestions.hidden {
	display: none;
}

.uc-circles-create-suggestion {
	display: block;
	width: 100%;
	border: 0;
	border-bottom: 1px solid var(--uc-divider);
	background: transparent;
	padding: 12px 14px;
	text-align: left;
	font-size: 14px;
	font-weight: 700;
	color: var(--uc-text);
	cursor: pointer;
	min-height: 44px;
}

.uc-circles-create-suggestion:last-child {
	border-bottom: 0;
}

.uc-circles-create-suggestion:hover,
.uc-circles-create-suggestion:focus {
	background: color-mix(in srgb, var(--uc-gold) 14%, var(--uc-surface-raised));
	color: var(--uc-text);
	outline: none;
}

.uc-circles-create-hint {
	margin-top: 12px;
	font-size: 11px;
	line-height: 1.4;
	color: var(--uc-text-muted);
}

.uc-circles-create-card .uc-circles-inline-status {
	margin-top: 12px;
}

.uc-circles-create-actions {
	flex: 0 0 auto;
	position: relative;
	z-index: 2;
	margin: 0;
	padding: 14px 18px max(14px, env(safe-area-inset-bottom, 0px));
	border-top: 2px solid var(--uc-dna-border-strong);
	background: var(--uc-surface-sunken);
	display: flex;
	flex-direction: column;
	gap: 10px;
	box-shadow: inset 0 2px 0 color-mix(in srgb, var(--uc-gold-dim) 25%, transparent);
}

.uc-circles-create-card .uc-surface-btn {
	min-height: 44px;
	border-radius: 12px;
	font-weight: 900;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.uc-circles-create-card .uc-surface-btn--primary {
	box-shadow: 2px 2px 0 var(--uc-shadow-ink-strong);
}

.uc-circles-create-card .uc-surface-btn--secondary {
	border: 2px solid var(--uc-border-strong);
	background: var(--uc-surface-raised);
	color: var(--uc-text);
	box-shadow: 2px 2px 0 var(--uc-shadow-ink-strong);
}

@media (min-width: 640px) {
	/* Name gets its own row so long state names never truncate in the selects. */
	.uc-circles-create-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.uc-circles-create-grid > .uc-circles-create-field:first-child {
		grid-column: 1 / -1;
	}

	.uc-circles-create-actions {
		flex-direction: row-reverse;
		justify-content: flex-start;
	}

	.uc-circles-create-card .uc-circles-btn-primary,
	.uc-circles-create-card .uc-circles-btn-secondary {
		width: auto;
		min-width: 140px;
	}
}

.uc-circles-card {
	position: relative;
	border: 2px solid var(--uc-dna-border-strong);
	border-radius: var(--uc-dna-card-radius, 12px);
	background: var(--uc-surface-raised);
	padding: 16px 16px 14px;
	box-shadow: var(--uc-dna-shadow-soft), inset 3px 0 0 var(--uc-primary);
	overflow: hidden;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.uc-circles-card::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 2px;
	background: linear-gradient(90deg, var(--uc-primary), var(--uc-gold), transparent);
	pointer-events: none;
	opacity: 0.85;
}

.uc-circles-card:hover {
	transform: none;
	box-shadow: var(--uc-dna-shadow-hard), inset 3px 0 0 var(--uc-gold);
	border-color: color-mix(in srgb, var(--uc-gold) 45%, var(--uc-border-strong));
}

.uc-circles-card-topline {
	font-size: 10px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--uc-primary-ink);
}

.uc-circles-card-title {
	font-size: 20px;
	font-weight: 900;
	letter-spacing: -0.02em;
	line-height: 1.1;
	color: var(--uc-text);
}

.uc-circles-card-corner {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 6px;
	flex: none;
	max-width: 46%;
}

.uc-circles-status {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	border-radius: 999px;
	border: 1px solid transparent;
	padding: 3px 8px;
	font-size: 9px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

/* Visit toggle chip: compact red "+Visit" ↔ green "Visiting". */
.uc-circles-visit-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 3px;
	min-height: 22px;
	border-radius: 999px;
	padding: 2px 8px;
	font-size: 9px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	cursor: pointer;
	border: 1px solid var(--uc-danger-border);
	background: var(--uc-danger-surface);
	color: var(--uc-primary-ink);
	box-shadow: none;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
	white-space: nowrap;
	line-height: 1;
}

.uc-circles-visit-chip:hover {
	background: var(--uc-primary-wash);
	border-color: var(--uc-primary-wash-strong);
}

.uc-circles-visit-chip:active {
	transform: scale(0.96);
}

.uc-circles-visit-chip-glyph {
	font-size: 10px;
	line-height: 1;
	font-weight: 900;
}

.uc-circles-visit-chip.is-visiting {
	border-color: var(--uc-success-border);
	background: var(--uc-success-surface);
	color: var(--uc-success-text);
}

.uc-circles-visit-chip.is-visiting:hover {
	background: var(--uc-success-surface);
	border-color: var(--uc-success-border);
	filter: brightness(1.06);
}

/* Phase 24b: Follow/Following toggle states (Instagram-style). */
.uc-circles-visit-chip.is-following {
	border-color: #93c5fd;
	background: var(--uc-info-surface);
	color: var(--uc-info-text);
}

.uc-circles-visit-chip.is-following:hover {
	background: var(--uc-surface-sunken);
	border-color: #60a5fa;
}

.uc-circles-visit-chip.is-home {
	border-color: var(--uc-border);
	background: var(--uc-surface-raised);
	color: var(--uc-text-muted);
	cursor: default;
	opacity: 0.7;
}

/* Profile page visit button mirrors the same red/green toggle. */
.uc-surface-btn.is-visiting {
	border-color: #86efac;
	background: var(--uc-surface-soft);
	color: #15803d;
}

/* Phase 24b: Profile follow button — blue when following. */
.uc-surface-btn.is-following {
	border-color: #93c5fd;
	background: var(--uc-info-surface);
	color: var(--uc-info-text);
}

.uc-circles-status-dot {
	width: 8px;
	height: 8px;
	border-radius: 999px;
}

.uc-circles-status-on-fire {
	color: var(--uc-primary);
	background: var(--uc-surface-soft);
	border-color: #fed7aa;
}

.uc-circles-status-on-fire .uc-circles-status-dot {
	background: #ea580c;
}

.uc-circles-status-hot {
	color: var(--uc-warning-text);
	background: var(--uc-warning-surface);
	border-color: var(--uc-warning-border);
}

.uc-circles-status-hot .uc-circles-status-dot {
	background: var(--uc-warning);
}

.uc-circles-status-active {
	color: var(--uc-info-text);
	background: var(--uc-info-surface);
	border-color: var(--uc-info-border);
}

.uc-circles-status-active .uc-circles-status-dot {
	background: var(--uc-info);
}

.uc-circles-status-steady,
.uc-circles-status-quiet {
	color: #0f766e;
	background: var(--uc-surface-raised);
	border-color: #99f6e4;
}

.uc-circles-status-steady .uc-circles-status-dot,
.uc-circles-status-quiet .uc-circles-status-dot {
	background: #14b8a6;
}

.uc-circles-stats {
	margin-top: 14px;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.uc-circles-stat {
	background: var(--uc-surface-sunken);
	border: 1px solid var(--uc-border);
	border-radius: 14px;
	padding: 11px;
}

.uc-circles-stat-label {
	font-size: 9px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--uc-text-muted);
}

.uc-circles-stat-value {
	font-size: 18px;
	font-weight: 900;
	color: var(--uc-text);
	letter-spacing: -0.01em;
}

.uc-circles-meta {
	margin-top: 14px;
	display: grid;
	gap: 8px;
}

.uc-circles-lead-row {
	display: flex;
	align-items: center;
	gap: 8px;
}

.uc-circles-lead-icon {
	width: 18px;
	height: 18px;
	border-radius: 999px;
	background: var(--uc-danger-surface);
	border: 1px solid var(--uc-danger-border);
	color: var(--uc-primary-ink);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 9px;
	font-weight: 900;
}

.uc-circles-leads {
	font-size: 11px;
	font-weight: 800;
	color: var(--uc-text-secondary);
}

.uc-circles-why {
	font-size: 11px;
	line-height: 1.35;
	color: var(--uc-text-secondary);
	background: var(--uc-surface-sunken);
	border: 1px solid var(--uc-border);
	border-radius: 12px;
	padding: 10px 11px;
	font-style: italic;
}

.uc-circles-actions {
	margin-top: 14px;
	display: grid;
	gap: 8px;
}

.uc-circles-actions button {
	border-radius: 16px;
	font-size: 11px;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 12px 12px;
	width: 100%;
}

.uc-circles-btn-primary {
	width: 100%;
}

.uc-circles-btn-secondary {
	width: 100%;
}

#page-circles .uc-surface-btn {
	border-radius: 14px;
	padding: 10px 15px;
	font-size: 10px;
	letter-spacing: 0.11em;
}

#page-circles .uc-circles-search-btn {
	background: linear-gradient(135deg, var(--uc-primary), var(--uc-primary));
	box-shadow: 0 8px 16px rgba(185, 28, 28, 0.28);
}

#page-circles .uc-circles-actions .uc-surface-btn--primary {
	background: linear-gradient(135deg, var(--uc-primary), var(--uc-primary-darker));
	box-shadow: 0 6px 12px rgba(185, 28, 28, 0.24);
}

#page-circles .uc-circles-actions .uc-surface-btn--secondary {
	background: linear-gradient(180deg, var(--uc-surface-raised), var(--uc-surface-sunken));
	border: 2px solid var(--uc-border-strong);
	box-shadow: 2px 2px 0 var(--uc-shadow-ink-strong);
}

#page-circles .uc-surface-btn:hover {
	transform: translateY(-1px);
}

#page-neighborhood-profile .main-card {
	background: linear-gradient(180deg, var(--uc-surface-muted) 0%, var(--uc-surface-sunken) 100%);
	border-color: var(--uc-border);
}

#page-neighborhood-profile .uc-neighborhood-intro {
	overflow: hidden;
	border: 2px solid var(--uc-border-strong);
	border-radius: 12px;
	background: var(--uc-surface);
	box-shadow: var(--uc-dna-shadow-soft, 3px 3px 0 var(--uc-shadow-ink-soft));
}

#page-neighborhood-profile .uc-neighborhood-hero {
	position: relative;
	min-height: 148px;
	background-color: var(--uc-chrome);
	background-size: cover;
	background-position: center;
	border-bottom: 2px solid var(--uc-border-strong);
}

#page-neighborhood-profile .uc-neighborhood-hero__camera {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 2px solid var(--uc-border-strong);
	border-radius: 999px;
	background: color-mix(in srgb, var(--uc-surface) 92%, transparent);
	color: var(--uc-text);
	box-shadow: 2px 2px 0 var(--uc-shadow-ink-soft, rgba(17, 24, 39, 0.35));
	cursor: pointer;
}

#page-neighborhood-profile .uc-neighborhood-hero__camera.hidden,
#page-neighborhood-profile .uc-neighborhood-hero__camera[hidden] {
	display: none !important;
}

#page-neighborhood-profile .uc-neighborhood-hero__camera:hover,
#page-neighborhood-profile .uc-neighborhood-hero__camera:focus-visible {
	background: var(--uc-surface);
	outline: none;
}

.uc-neighborhood-album-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
	gap: 10px;
}

.uc-neighborhood-album-grid--section {
	min-height: 72px;
}

.uc-neighborhood-album-empty {
	grid-column: 1 / -1;
	margin: 0;
	padding: 8px 2px;
	font-size: 12px;
	font-weight: 700;
	color: var(--uc-muted, #6b7280);
}

.uc-neighborhood-album-card {
	position: relative;
	overflow: hidden;
	border: 2px solid var(--uc-border-strong);
	background: var(--uc-surface);
}

.uc-neighborhood-album-card__media {
	aspect-ratio: 1;
	background-size: cover;
	background-position: center;
	background-color: var(--uc-chrome);
}

.uc-neighborhood-album-card__badge {
	position: absolute;
	top: 6px;
	left: 6px;
	padding: 2px 6px;
	font-size: 9px;
	font-weight: 900;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	background: var(--uc-surface);
	border: 1px solid var(--uc-border-strong);
	color: var(--uc-text);
}

.uc-neighborhood-album-card__meta {
	display: grid;
	gap: 6px;
	padding: 8px;
	font-size: 10px;
	font-weight: 700;
}

.uc-neighborhood-album-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.uc-neighborhood-album-overlay {
	position: fixed;
	inset: 0;
	z-index: 1200;
	display: grid;
	place-items: center;
	padding: 16px;
}

.uc-neighborhood-album-overlay.hidden,
.uc-neighborhood-album-overlay[hidden] {
	display: none !important;
}

.uc-neighborhood-album-overlay__scrim {
	position: absolute;
	inset: 0;
	background: color-mix(in srgb, var(--uc-chrome) 55%, transparent);
}

.uc-neighborhood-album-overlay__panel {
	position: relative;
	z-index: 1;
	width: min(720px, 100%);
	max-height: min(86vh, 900px);
	overflow: auto;
	padding: 16px;
	border: 2px solid var(--uc-border-strong);
	background: var(--uc-surface);
	box-shadow: 4px 4px 0 var(--uc-shadow-ink-soft, rgba(17, 24, 39, 0.35));
}

.uc-neighborhood-album-overlay__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 8px;
}

.uc-neighborhood-album-overlay__header h2 {
	margin: 0;
	font-size: 16px;
	font-weight: 900;
}

.uc-neighborhood-album-overlay__hint {
	margin: 0 0 12px;
	font-size: 12px;
	font-weight: 600;
	color: var(--uc-muted, #6b7280);
}

.uc-neighborhood-album-overlay__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}

.uc-neighborhood-album-policy {
	margin-bottom: 12px;
	padding: 10px;
	border: 1px solid var(--uc-border, #d1d5db);
	background: var(--uc-surface-muted, #f9fafb);
}

.uc-neighborhood-album-policy__label {
	margin-bottom: 8px;
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--uc-muted, #6b7280);
}

.uc-neighborhood-album-policy__row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.uc-neighborhood-album-policy__row .is-active {
	border-color: var(--uc-primary);
	box-shadow: inset 0 0 0 1px var(--uc-primary);
}

@media (min-width: 768px) {
	#page-neighborhood-profile .uc-neighborhood-hero {
		min-height: 190px;
	}
}

#page-neighborhood-profile .uc-neighborhood-shell__header-tools {
	flex-wrap: wrap;
	justify-content: flex-end;
}

#page-neighborhood-profile .uc-neighborhood-header-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 28px;
	padding: 4px 10px;
	border: 1px solid color-mix(in srgb, var(--uc-text-on-primary, #fff) 55%, transparent);
	border-radius: 999px;
	background: transparent;
	color: var(--uc-text-on-primary, #fff);
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	line-height: 1.1;
	white-space: nowrap;
	cursor: pointer;
}

#page-neighborhood-profile .uc-neighborhood-header-chip:hover,
#page-neighborhood-profile .uc-neighborhood-header-chip:focus-visible {
	background: color-mix(in srgb, var(--uc-text-on-primary, #fff) 14%, transparent);
	outline: none;
}

#page-neighborhood-profile .uc-neighborhood-header-chip--primary {
	background: var(--uc-text-on-primary, #fff);
	color: var(--uc-primary-darker, #7f1d1d);
	border-color: var(--uc-text-on-primary, #fff);
}

#page-neighborhood-profile .uc-neighborhood-header-chip--primary:hover,
#page-neighborhood-profile .uc-neighborhood-header-chip--primary:focus-visible {
	background: color-mix(in srgb, var(--uc-text-on-primary, #fff) 88%, var(--uc-primary-wash));
}

#page-neighborhood-profile .uc-neighborhood-header-chip.hidden,
#page-neighborhood-profile .uc-neighborhood-header-chip[hidden],
#page-neighborhood-profile .uc-neighborhood-header-chip:disabled {
	opacity: 0.55;
}

#page-neighborhood-profile .uc-neighborhood-header-chip.hidden,
#page-neighborhood-profile .uc-neighborhood-header-chip[hidden] {
	display: none !important;
}

#page-neighborhood-profile .uc-neighborhood-about > .section-header .uc-neighborhood-header-chip {
	border-color: color-mix(in srgb, var(--uc-text-on-primary, #fff) 55%, transparent);
}

#page-neighborhood-profile .uc-neighborhood-about__body {
	padding: 14px 16px 16px;
	display: grid;
	gap: 10px;
}

#page-neighborhood-profile .uc-neighborhood-about__text {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	font-weight: 600;
	color: var(--uc-text);
	white-space: pre-wrap;
}

#page-neighborhood-profile .uc-neighborhood-about__text.hidden,
#page-neighborhood-profile .uc-neighborhood-about__text[hidden],
#page-neighborhood-profile .uc-neighborhood-about__empty.hidden,
#page-neighborhood-profile .uc-neighborhood-about__empty[hidden],
#page-neighborhood-profile .uc-neighborhood-about__edit.hidden,
#page-neighborhood-profile .uc-neighborhood-about__edit[hidden] {
	display: none !important;
}

#page-neighborhood-profile .uc-neighborhood-about__empty {
	margin: 0;
	font-size: 12px;
	line-height: 1.45;
	font-weight: 700;
	color: var(--uc-text-secondary);
}

#page-neighborhood-profile .uc-neighborhood-about__edit {
	display: grid;
	gap: 8px;
}

#page-neighborhood-profile .uc-neighborhood-about__edit textarea {
	min-height: 104px;
	resize: vertical;
}

#page-neighborhood-profile .uc-neighborhood-about__edit-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	flex-wrap: wrap;
}

#page-neighborhood-profile .uc-neighborhood-about__count {
	font-size: 10px;
	font-weight: 700;
	color: var(--uc-text-muted);
}

#page-neighborhood-profile .uc-neighborhood-about__edit-actions {
	display: flex;
	gap: 6px;
}

/* About edit chips sit on paper surface, not section-header red */
#page-neighborhood-profile .uc-neighborhood-about__edit-actions .uc-neighborhood-header-chip {
	border-color: var(--uc-border-strong);
	color: var(--uc-text);
	background: var(--uc-surface);
}

#page-neighborhood-profile .uc-neighborhood-about__edit-actions .uc-neighborhood-header-chip:hover,
#page-neighborhood-profile .uc-neighborhood-about__edit-actions .uc-neighborhood-header-chip:focus-visible {
	background: var(--uc-surface-muted);
}

#page-neighborhood-profile .uc-neighborhood-about__edit-actions .uc-neighborhood-header-chip--primary {
	background: var(--uc-primary);
	border-color: var(--uc-primary);
	color: var(--uc-text-on-primary, #fff);
}

#page-neighborhood-profile .uc-neighborhood-about__edit-actions .uc-neighborhood-header-chip--primary:hover,
#page-neighborhood-profile .uc-neighborhood-about__edit-actions .uc-neighborhood-header-chip--primary:focus-visible {
	background: var(--uc-primary-darker, #7f1d1d);
}

#page-neighborhood-profile .uc-neighborhood-intro__body {
	display: grid;
	gap: 12px;
	padding: 16px 18px 14px;
	background:
		radial-gradient(120% 80% at 0% 0%, var(--uc-primary-wash) 0%, transparent 55%),
		linear-gradient(180deg, var(--uc-surface) 0%, var(--uc-surface-muted) 100%);
}

/* Locked hero stack (image → identity → full-width CTAs → known for).
   Do not reintroduce side-by-side title/actions — that shifts when content hydrates. */
#page-neighborhood-profile .uc-neighborhood-intro__identity {
	display: grid;
	gap: 8px;
	min-width: 0;
}

#page-neighborhood-profile .uc-neighborhood-intro__badges {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

#page-neighborhood-profile .uc-neighborhood-intro__pill {
	display: inline-flex;
	align-items: center;
	background: var(--uc-primary-darker, #7f1d1d);
	color: var(--uc-text-on-primary, #fff);
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 3px 8px;
	border-radius: 4px;
}

#page-neighborhood-profile .uc-neighborhood-intro__sector {
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--uc-text-muted);
}

#page-neighborhood-profile .uc-neighborhood-intro__title {
	font-size: clamp(1.35rem, 3.5vw, 1.875rem);
	font-weight: 900;
	font-style: italic;
	letter-spacing: -0.02em;
	line-height: 1.15;
	color: var(--uc-text);
	min-width: 0;
}

#page-neighborhood-profile .uc-neighborhood-intro__actions {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 8px;
	width: 100%;
}

#page-neighborhood-profile .uc-neighborhood-intro__actions > .hidden,
#page-neighborhood-profile .uc-neighborhood-intro__actions > [hidden] {
	display: none !important;
}

#page-neighborhood-profile .uc-neighborhood-intro__actions .uc-surface-btn {
	width: 100%;
	justify-content: center;
	min-height: 2.5rem;
	box-sizing: border-box;
}

#page-neighborhood-profile .uc-neighborhood-hero-knownfor {
	margin-top: 2px;
	padding: 11px 12px 12px;
	border: 1px solid var(--uc-divider, var(--uc-border));
	border-radius: 12px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, var(--uc-surface-muted) 100%);
	display: grid;
	gap: 8px;
	width: 100%;
	max-width: none;
}

#page-neighborhood-profile .uc-neighborhood-hero-knownfor.hidden,
#page-neighborhood-profile .uc-neighborhood-hero-knownfor[hidden] {
	display: none !important;
}

#page-neighborhood-profile .uc-neighborhood-hero-knownfor__label {
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--uc-danger-text, var(--uc-primary-ink));
}

#page-neighborhood-profile .uc-neighborhood-hero-knownfor__list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 7px;
}

#page-neighborhood-profile .uc-neighborhood-hero-knownfor__list.hidden,
#page-neighborhood-profile .uc-neighborhood-hero-knownfor__list[hidden] {
	display: none !important;
}

#page-neighborhood-profile .uc-neighborhood-hero-knownfor__item {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 8px;
	align-items: start;
	font-size: 13px;
	line-height: 1.4;
	color: var(--uc-text);
	font-weight: 700;
}

#page-neighborhood-profile .uc-neighborhood-hero-knownfor__dot {
	width: 7px;
	height: 7px;
	margin-top: 0.4em;
	border-radius: 999px;
	background: var(--uc-primary);
	box-shadow: 0 0 0 2px var(--uc-primary-wash, rgba(185, 28, 28, 0.18));
}

#page-neighborhood-profile .uc-neighborhood-hero-knownfor__text {
	min-width: 0;
}

#page-neighborhood-profile .uc-neighborhood-hero-knownfor__empty {
	margin: 0;
	font-size: 12px;
	line-height: 1.4;
	font-weight: 700;
	color: var(--uc-text-secondary);
}

#page-neighborhood-profile .uc-neighborhood-hero-knownfor__empty.hidden,
#page-neighborhood-profile .uc-neighborhood-hero-knownfor__empty[hidden] {
	display: none !important;
}

#page-neighborhood-profile .uc-neighborhood-hero-knownfor__edit {
	display: grid;
	gap: 8px;
}

#page-neighborhood-profile .uc-neighborhood-hero-knownfor__edit.hidden,
#page-neighborhood-profile .uc-neighborhood-hero-knownfor__edit[hidden] {
	display: none !important;
}

#page-neighborhood-profile .uc-neighborhood-hero-knownfor__hint {
	margin: 0;
	font-size: 10px;
	line-height: 1.35;
	color: var(--uc-text-muted);
}

#page-neighborhood-profile .uc-neighborhood-steward-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1rem;
	align-items: start;
}

@media (min-width: 1024px) {
	#page-neighborhood-profile .uc-neighborhood-steward-row:has(#neighborhood-policy-panel:not(.hidden)) {
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	}
}

#page-neighborhood-profile .uc-neighborhood-lead-shell {
	min-width: 0;
}

/* DNA body under section-header — lead + policy */
#page-neighborhood-profile .uc-neighborhood-lead-body,
#page-neighborhood-profile .uc-neighborhood-policy-body {
	padding: 14px 16px 16px;
	background:
		radial-gradient(120% 90% at 0% 0%, var(--uc-primary-wash) 0%, transparent 55%),
		linear-gradient(180deg, var(--uc-surface) 0%, var(--uc-surface-muted) 100%);
	color: var(--uc-text-secondary);
	font-size: 12px;
}

#page-neighborhood-profile .uc-neighborhood-lead-shell .section-header .uc-help-chip {
	box-shadow: none;
	border-color: rgba(255, 255, 255, 0.35);
	background: rgba(0, 0, 0, 0.18);
	color: var(--uc-text-on-primary, #fff);
}

#page-neighborhood-profile .uc-neighborhood-lead-shell .section-header .uc-help-chip:hover,
#page-neighborhood-profile .uc-neighborhood-lead-shell .section-header .uc-help-chip:focus-visible {
	border-color: var(--uc-gold);
	color: var(--uc-gold);
}

/* Stats DNA grid */
#page-neighborhood-profile .uc-neighborhood-stats-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	padding: 14px 14px 16px;
	background:
		radial-gradient(120% 90% at 100% 0%, var(--uc-primary-wash) 0%, transparent 52%),
		linear-gradient(180deg, var(--uc-surface) 0%, var(--uc-surface-muted) 100%);
}

@media (min-width: 768px) {
	#page-neighborhood-profile .uc-neighborhood-stats-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 10px;
		padding: 16px;
	}
}

#page-neighborhood-profile .uc-neighborhood-stat {
	display: grid;
	gap: 6px;
	min-width: 0;
	padding: 12px 12px 11px;
	border: 2px solid var(--uc-dna-border-strong, var(--uc-border-strong));
	border-radius: 10px;
	background: linear-gradient(180deg, var(--uc-surface-raised) 0%, var(--uc-surface) 100%);
	box-shadow: var(--uc-dna-shadow-soft, 2px 2px 0 var(--uc-shadow-ink-soft));
}

#page-neighborhood-profile .uc-neighborhood-stat--moves {
	grid-column: 1 / -1;
	cursor: pointer;
	text-align: left;
	font: inherit;
	color: inherit;
	appearance: none;
	-webkit-appearance: none;
	transition:
		transform 180ms ease,
		border-color 180ms ease,
		box-shadow 180ms ease,
		background 180ms ease;
	background:
		radial-gradient(120% 90% at 0% 0%, rgba(22, 163, 74, 0.12) 0%, transparent 55%),
		radial-gradient(120% 90% at 100% 100%, rgba(185, 28, 28, 0.1) 0%, transparent 55%),
		linear-gradient(180deg, var(--uc-surface-raised) 0%, var(--uc-surface) 100%);
}

@media (min-width: 768px) {
	#page-neighborhood-profile .uc-neighborhood-stat--moves {
		grid-column: auto;
	}
}

#page-neighborhood-profile .uc-neighborhood-stat--moves:hover,
#page-neighborhood-profile .uc-neighborhood-stat--moves:focus-visible {
	transform: translateY(-1px);
	border-color: var(--uc-primary-ink, var(--uc-border-strong));
	box-shadow: 3px 3px 0 var(--uc-shadow-ink-soft, rgba(0, 0, 0, 0.12));
	outline: none;
}

#page-neighborhood-profile .uc-neighborhood-stat--moves.is-active .uc-neighborhood-moves-tile__hint {
	color: var(--uc-primary-ink, var(--uc-text-secondary));
}

#page-neighborhood-profile .uc-neighborhood-moves-tile__flow {
	display: flex;
	align-items: stretch;
	gap: 0;
	min-width: 0;
}

#page-neighborhood-profile .uc-neighborhood-moves-tile__lane {
	flex: 1 1 0;
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-rows: auto auto;
	column-gap: 8px;
	row-gap: 2px;
	align-items: center;
	min-width: 0;
	padding: 4px 2px;
}

#page-neighborhood-profile .uc-neighborhood-moves-tile__arrow {
	grid-row: 1 / span 2;
	font-size: 1.1rem;
	font-weight: 900;
	line-height: 1;
}

#page-neighborhood-profile .uc-neighborhood-moves-tile__lane.is-in .uc-neighborhood-moves-tile__arrow,
#page-neighborhood-profile .uc-neighborhood-moves-tile__lane.is-in .uc-neighborhood-moves-tile__count {
	color: #15803d;
}

#page-neighborhood-profile .uc-neighborhood-moves-tile__lane.is-out .uc-neighborhood-moves-tile__arrow,
#page-neighborhood-profile .uc-neighborhood-moves-tile__lane.is-out .uc-neighborhood-moves-tile__count {
	color: #b91c1c;
}

#page-neighborhood-profile .uc-neighborhood-moves-tile__count {
	font-size: clamp(1.35rem, 2.6vw, 1.75rem);
	font-weight: 900;
	line-height: 1.05;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
}

#page-neighborhood-profile .uc-neighborhood-moves-tile__lane-label {
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--uc-text-muted);
}

#page-neighborhood-profile .uc-neighborhood-moves-tile__divider {
	width: 2px;
	align-self: stretch;
	margin: 4px 6px;
	border-radius: 2px;
	background: linear-gradient(
		180deg,
		transparent 0%,
		var(--uc-border-strong, rgba(0, 0, 0, 0.18)) 20%,
		var(--uc-border-strong, rgba(0, 0, 0, 0.18)) 80%,
		transparent 100%
	);
}

#page-neighborhood-profile .uc-neighborhood-moves-tile__hint {
	font-size: 11px;
	font-weight: 700;
	color: var(--uc-text-muted);
}

#page-neighborhood-profile .uc-neighborhood-stat--signal {
	grid-column: 1 / -1;
}

@media (min-width: 768px) {
	#page-neighborhood-profile .uc-neighborhood-stat--signal {
		grid-column: 1 / -1;
	}
}

#page-neighborhood-profile .uc-neighborhood-stat__label {
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--uc-text-muted);
}

#page-neighborhood-profile .uc-neighborhood-stat__value {
	font-size: clamp(1.35rem, 2.6vw, 1.75rem);
	font-weight: 900;
	line-height: 1.05;
	letter-spacing: -0.02em;
	color: var(--uc-primary-ink, var(--uc-danger-text, #7f1d1d));
	font-variant-numeric: tabular-nums;
}

#page-neighborhood-profile .uc-neighborhood-stat__value--ink {
	color: var(--uc-text);
}

#page-neighborhood-profile .uc-neighborhood-stat__value--porch {
	color: var(--uc-info-text, #1d4ed8);
}

#page-neighborhood-profile .uc-neighborhood-stat__signal,
#page-neighborhood-profile #neighborhood-profile-why {
	margin: 0;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--uc-text-secondary);
	background: transparent;
	border: 0;
	border-radius: 0;
	padding: 0;
}

/* Moves overlay */
.uc-neighborhood-moves-overlay {
	position: fixed;
	inset: 0;
	z-index: 12600;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: max(12px, env(safe-area-inset-top)) 14px max(14px, env(safe-area-inset-bottom));
	box-sizing: border-box;
}

.uc-neighborhood-moves-overlay.hidden {
	display: none !important;
}

body.uc-neighborhood-moves-open {
	overflow: hidden;
}

.uc-neighborhood-moves-overlay__backdrop {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(80% 60% at 50% 0%, rgba(178, 34, 34, 0.22) 0%, transparent 55%),
		rgba(12, 10, 9, 0.58);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
	animation: uc-neighborhood-moves-fade 220ms ease both;
}

.uc-neighborhood-moves-overlay__panel {
	position: relative;
	width: min(520px, 100%);
	max-height: min(86dvh, 720px);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 2px solid var(--uc-dna-border-strong, var(--uc-border-strong, #1a1a1a));
	border-radius: 14px;
	background:
		radial-gradient(120% 80% at 0% 0%, rgba(22, 163, 74, 0.08) 0%, transparent 50%),
		radial-gradient(120% 80% at 100% 100%, rgba(185, 28, 28, 0.08) 0%, transparent 50%),
		linear-gradient(180deg, var(--uc-surface-raised, #fff) 0%, var(--uc-surface, #f7f5f2) 100%);
	box-shadow:
		0 24px 60px rgba(0, 0, 0, 0.28),
		3px 3px 0 var(--uc-shadow-ink-soft, rgba(0, 0, 0, 0.12));
	animation: uc-neighborhood-moves-rise 260ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.uc-neighborhood-moves-overlay__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 16px 12px;
	border-bottom: 2px solid var(--uc-border, rgba(0, 0, 0, 0.08));
	background: linear-gradient(180deg, var(--uc-primary, #b22222) 0%, color-mix(in srgb, var(--uc-primary, #b22222) 88%, #000) 100%);
	color: var(--uc-text-on-primary, #fff);
}

.uc-neighborhood-moves-overlay__kicker {
	display: block;
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	opacity: 0.85;
}

.uc-neighborhood-moves-overlay__title {
	margin: 4px 0 0;
	font-size: clamp(1.15rem, 3.2vw, 1.35rem);
	font-weight: 900;
	letter-spacing: -0.02em;
	line-height: 1.15;
	color: inherit;
}

.uc-neighborhood-moves-overlay__sub {
	margin: 6px 0 0;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.35;
	opacity: 0.9;
	color: inherit;
}

.uc-neighborhood-moves-overlay__close {
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	border: 2px solid rgba(255, 255, 255, 0.55);
	border-radius: 10px;
	background: rgba(0, 0, 0, 0.18);
	color: #fff;
	font-size: 22px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
}

.uc-neighborhood-moves-overlay__close:hover,
.uc-neighborhood-moves-overlay__close:focus-visible {
	border-color: var(--uc-gold, #d4af37);
	outline: none;
}

.uc-neighborhood-moves-overlay__body {
	overflow: auto;
	padding: 14px 14px 18px;
	display: grid;
	gap: 16px;
	overscroll-behavior: contain;
}

.uc-neighborhood-moves-section__head {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
}

.uc-neighborhood-moves-section__arrow {
	font-size: 14px;
	font-weight: 900;
	line-height: 1;
}

.uc-neighborhood-moves-section.is-in .uc-neighborhood-moves-section__arrow,
.uc-neighborhood-moves-section.is-in .uc-neighborhood-moves-section__count {
	color: #15803d;
}

.uc-neighborhood-moves-section.is-out .uc-neighborhood-moves-section__arrow,
.uc-neighborhood-moves-section.is-out .uc-neighborhood-moves-section__count {
	color: #b91c1c;
}

.uc-neighborhood-moves-section__title {
	margin: 0;
	flex: 1 1 auto;
	font-size: 12px;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--uc-text);
}

.uc-neighborhood-moves-section__count {
	min-width: 1.75rem;
	text-align: center;
	padding: 2px 8px;
	border-radius: 999px;
	border: 2px solid currentColor;
	font-size: 12px;
	font-weight: 900;
	font-variant-numeric: tabular-nums;
	background: var(--uc-surface-raised, #fff);
}

.uc-neighborhood-moves-grid {
	display: grid;
	gap: 8px;
}

.uc-neighborhood-moves-empty {
	margin: 0;
	padding: 12px;
	border: 1px dashed var(--uc-border-strong, rgba(0, 0, 0, 0.16));
	border-radius: 10px;
	font-size: 12px;
	font-weight: 700;
	color: var(--uc-text-muted);
	background: var(--uc-surface-muted, rgba(0, 0, 0, 0.03));
}

.uc-neighborhood-move-card {
	display: grid;
	grid-template-columns: 52px minmax(0, 1fr);
	gap: 10px;
	align-items: center;
	width: 100%;
	padding: 10px;
	border: 2px solid var(--uc-dna-border-strong, var(--uc-border-strong, #1a1a1a));
	border-radius: 12px;
	background: linear-gradient(180deg, var(--uc-surface-raised, #fff) 0%, var(--uc-surface, #faf8f5) 100%);
	box-shadow: 2px 2px 0 var(--uc-shadow-ink-soft, rgba(0, 0, 0, 0.08));
	text-align: left;
	font: inherit;
	color: inherit;
	cursor: pointer;
	animation: uc-neighborhood-move-card-in 280ms ease both;
	animation-delay: calc(var(--uc-move-stagger, 0) * 35ms);
	transition: transform 160ms ease, border-color 160ms ease;
}

.uc-neighborhood-move-card:hover,
.uc-neighborhood-move-card:focus-visible {
	transform: translateY(-1px);
	outline: none;
	border-color: var(--uc-primary-ink, #7f1d1d);
}

.uc-neighborhood-move-card.is-in {
	border-left: 4px solid #16a34a;
}

.uc-neighborhood-move-card.is-out {
	border-left: 4px solid #dc2626;
}

.uc-neighborhood-move-card__avatar {
	width: 52px;
	height: 52px;
	border-radius: 12px;
	overflow: hidden;
	border: 2px solid var(--uc-border-strong, #1a1a1a);
	background: var(--uc-surface-muted, #eee);
}

.uc-neighborhood-move-card__avatar img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.uc-neighborhood-move-card__body {
	min-width: 0;
	display: grid;
	gap: 2px;
}

.uc-neighborhood-move-card__name {
	font-size: 14px;
	font-weight: 900;
	color: var(--uc-text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.uc-neighborhood-move-card__relative {
	font-size: 12px;
	font-weight: 800;
	color: var(--uc-text-secondary);
}

.uc-neighborhood-move-card.is-in .uc-neighborhood-move-card__relative {
	color: #15803d;
}

.uc-neighborhood-move-card.is-out .uc-neighborhood-move-card__relative {
	color: #b91c1c;
}

.uc-neighborhood-move-card__date {
	font-size: 11px;
	font-weight: 700;
	color: var(--uc-text-muted);
	font-variant-numeric: tabular-nums;
}

.uc-neighborhood-move-card__place {
	font-size: 11px;
	font-weight: 700;
	color: var(--uc-text-secondary);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

@keyframes uc-neighborhood-moves-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes uc-neighborhood-moves-rise {
	from {
		opacity: 0;
		transform: translateY(12px) scale(0.98);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@keyframes uc-neighborhood-move-card-in {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.uc-neighborhood-moves-overlay__backdrop,
	.uc-neighborhood-moves-overlay__panel,
	.uc-neighborhood-move-card,
	#page-neighborhood-profile .uc-neighborhood-stat--moves {
		animation: none !important;
		transition: none !important;
	}
}

/* Lead card DNA refinements (body already DNA-tinted) */
#page-neighborhood-profile .uc-neighborhood-lead-body .uc-neighborhood-lead-card {
	gap: 14px;
}

#page-neighborhood-profile .uc-neighborhood-lead-body .uc-neighborhood-lead-card__trust {
	border-color: var(--uc-dna-border-strong, var(--uc-border));
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

#page-neighborhood-profile #neighborhood-policy-panel.main-card {
	background: var(--uc-dna-card-surface, var(--uc-surface));
}

#page-neighborhood-profile .uc-neighborhood-founder {
	font-size: 12px;
	font-weight: 700;
	color: var(--uc-primary-ink);
	letter-spacing: 0.01em;
}

#page-neighborhood-profile .uc-neighborhood-deletion-banner {
	display: block;
	padding: 10px 12px;
	border: 2px solid var(--uc-danger-border);
	background: var(--uc-danger-surface);
	color: var(--uc-danger-text);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
}

#page-neighborhood-profile .uc-neighborhood-lifecycle-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

#page-neighborhood-profile .uc-neighborhood-resident-card__badge {
	display: inline-block;
	margin-top: 4px;
	padding: 2px 6px;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--uc-primary);
	background: #ffedd5;
	border: 1px solid #fdba74;
}

#page-neighborhood-profile .uc-neighborhood-incoming {
	padding: 0 4px 8px;
}

.uc-move-status {
	margin-top: 12px;
}

.uc-move-status-card {
	padding: 12px 14px;
	border: 1px solid var(--uc-warning-border);
	background: linear-gradient(180deg, var(--uc-warning-surface) 0%, #fef3c7 100%);
	color: #78350f;
}

.uc-move-status-card strong {
	display: block;
	font-size: 13px;
	font-weight: 900;
	margin-bottom: 4px;
}

.uc-move-status-card p {
	margin: 0 0 10px;
	font-size: 12px;
	line-height: 1.4;
}

#page-neighborhood-profile .section-header {
	box-shadow: inset 0 -2px 0 rgba(250, 204, 21, 0.45);
}

#page-neighborhood-profile .border-b.bg-white,
#page-neighborhood-profile .border-y-2.bg-white,
#page-neighborhood-profile .border.border-gray-200.bg-white,
#page-neighborhood-profile .border.bg-white {
	background: linear-gradient(180deg, var(--uc-surface-raised) 0%, var(--uc-surface-muted) 100%) !important;
	border-color: var(--uc-border) !important;
	color: var(--uc-text);
}

#page-neighborhood-profile .border-b.border-gray-100,
#page-neighborhood-profile .border-t.border-gray-100 {
	border-color: var(--uc-divider, var(--uc-border)) !important;
}

#page-neighborhood-profile .p-5.md\:p-6 {
	background: linear-gradient(180deg, var(--uc-surface-sunken) 0%, var(--uc-surface-sunken) 100%);
}

#page-neighborhood-profile .border-2.border-gray-900.bg-white {
	border-color: var(--uc-border-strong) !important;
	background: linear-gradient(180deg, var(--uc-surface) 0%, var(--uc-surface-muted) 100%) !important;
	box-shadow: 0 6px 16px var(--uc-wash-soft);
}

#page-neighborhood-profile button {
	box-shadow: 0 4px 10px var(--uc-wash-soft);
}

#page-neighborhood-profile #neighborhood-visit-button {
	background: var(--uc-surface-sunken) !important;
	border: 1px solid var(--uc-border);
}

#page-neighborhood-profile .uc-neighborhood-residents-shell {
	max-height: min(52vh, 480px);
	overflow: auto;
	overscroll-behavior: contain;
}

.uc-help-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	margin: 0;
	border: 1px solid var(--uc-gray-300);
	border-radius: 999px;
	background: var(--uc-surface);
	color: var(--uc-text-muted);
	font-size: 11px;
	font-weight: 900;
	line-height: 1;
	cursor: pointer;
}

.uc-help-chip:hover,
.uc-help-chip:focus-visible {
	border-color: var(--uc-primary-darker);
	color: var(--uc-primary-ink);
	outline: none;
}

/* Neighborhood Lead card (identity + trust) */

.uc-neighborhood-lead-card {
	display: grid;
	gap: 12px;
}

.uc-neighborhood-lead-card__identity {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 12px;
	align-items: center;
}

.uc-neighborhood-lead-card__avatar {
	position: relative;
	width: 64px;
	height: 64px;
	padding: 0;
	border: 2px solid var(--uc-gold-dim, #ca8a04);
	border-radius: 14px;
	overflow: visible;
	background: var(--uc-surface-sunken);
	box-shadow: 0 4px 0 rgba(127, 29, 29, 0.28) !important;
	cursor: pointer;
}

.uc-neighborhood-lead-card__avatar img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 11px;
	background: var(--uc-surface-muted);
}

.uc-neighborhood-lead-card__crown {
	position: absolute;
	right: -6px;
	top: -8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 999px;
	border: 1px solid var(--uc-gold-dim, #a16207);
	background: linear-gradient(135deg, var(--uc-gold), var(--uc-gold-dim, #ca8a04));
	color: var(--uc-text-on-gold, #1f1400);
	font-size: 11px;
	line-height: 1;
	box-shadow: 0 2px 0 rgba(0, 0, 0, 0.18);
}

.uc-neighborhood-lead-card__meta {
	display: grid;
	gap: 3px;
	min-width: 0;
}

.uc-neighborhood-lead-card__role {
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--uc-danger-text, var(--uc-primary-ink));
}

.uc-neighborhood-lead-card__name {
	justify-self: start;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--uc-text);
	font-size: 16px;
	font-weight: 900;
	letter-spacing: 0.01em;
	line-height: 1.15;
	text-align: left;
	cursor: pointer;
	box-shadow: none !important;
}

.uc-neighborhood-lead-card__name:hover {
	color: var(--uc-primary);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.uc-neighborhood-lead-card__block {
	font-size: 11px;
	font-weight: 700;
	color: var(--uc-text-secondary);
	line-height: 1.3;
}

.uc-neighborhood-lead-card__empty {
	display: grid;
	gap: 4px;
	padding: 10px 12px;
	border: 1px dashed var(--uc-border);
	border-radius: 12px;
	background: var(--uc-surface-sunken);
}

.uc-neighborhood-lead-card__empty-kicker {
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--uc-text-muted);
}

.uc-neighborhood-lead-card__empty-title {
	font-size: 13px;
	font-weight: 900;
	color: var(--uc-text);
}

.uc-neighborhood-lead-card__empty-copy {
	margin: 0;
	font-size: 11px;
	line-height: 1.4;
	color: var(--uc-text-secondary);
}

.uc-neighborhood-lead-card__trust {
	display: grid;
	gap: 6px;
	padding: 10px 11px;
	border: 1px solid var(--uc-border);
	border-radius: 12px;
	background: linear-gradient(180deg, var(--uc-surface) 0%, var(--uc-surface-muted) 100%);
}

/* display:grid above outranks Tailwind .hidden — keep Urban starter trust plate gone. */
.uc-neighborhood-lead-card__trust.hidden {
	display: none !important;
}

.uc-neighborhood-lead-card__trust-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
}

.uc-neighborhood-lead-card__trust-label {
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--uc-text-muted);
}

.uc-neighborhood-lead-card__trust-score {
	font-size: 11px;
	font-weight: 900;
	color: var(--uc-primary-ink, var(--uc-text));
}

.uc-neighborhood-lead-card__bar {
	display: flex;
	width: 100%;
	height: 8px;
	overflow: hidden;
	border-radius: 999px;
	background: var(--uc-surface-sunken);
	border: 1px solid var(--uc-border);
}

.uc-neighborhood-lead-card__bar-keep {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, #15803d, #22c55e);
	min-width: 0;
}

.uc-neighborhood-lead-card__bar-out {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, #b91c1c, #ef4444);
	min-width: 0;
}

.uc-neighborhood-lead-card__tally {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 6px 12px;
	font-size: 11px;
	font-weight: 800;
	color: var(--uc-text-secondary);
}

.uc-neighborhood-lead-card__tally strong {
	color: var(--uc-text);
	font-weight: 900;
}

.uc-neighborhood-lead-card__actions {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 8px;
}

/* Same specificity trap as __trust: do not rely on .hidden alone for this row. */
.uc-neighborhood-lead-card__actions.hidden {
	display: none !important;
}

.uc-neighborhood-lead-card__vote {
	width: 100%;
	min-height: 2.1rem;
	padding: 0.4rem 0.5rem;
	font-size: 10px;
	letter-spacing: 0.05em;
}

.uc-neighborhood-lead-card__vote.is-active {
	border-color: var(--uc-primary-darker, var(--uc-primary));
	background: linear-gradient(135deg, var(--uc-primary), var(--uc-primary-darker, var(--uc-primary)));
	color: var(--uc-text-on-primary, #fff);
	box-shadow: 0 3px 0 rgba(127, 29, 29, 0.4);
}

.uc-neighborhood-lead-card__note {
	margin: 0;
	font-size: 10px;
	line-height: 1.4;
	color: var(--uc-text-muted);
}

/* Legacy confidence meter classes kept for any residual surfaces */
.uc-neighborhood-confidence-intro {
	margin: 0 0 10px;
	font-size: 11px;
	line-height: 1.45;
	color: var(--uc-text-secondary);
}

.uc-neighborhood-confidence-meter {
	display: grid;
	gap: 6px;
	margin-bottom: 10px;
}

.uc-neighborhood-confidence-meter__row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding-bottom: 4px;
	border-bottom: 1px dotted var(--uc-gray-300);
}

.uc-neighborhood-confidence-meter__label {
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--uc-text-muted);
}

.uc-neighborhood-confidence-meter__value {
	font-weight: 900;
	color: var(--uc-text);
}

.uc-neighborhood-confidence-note {
	font-size: 10px;
	line-height: 1.4;
	color: var(--uc-text-muted);
}

#page-neighborhood-profile #neighborhood-profile-residents-directory.uc-neighborhood-residents-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 10px;
	align-items: stretch;
	width: 100%;
}

#page-neighborhood-profile .uc-neighborhood-residents-header {
	flex-wrap: wrap;
	gap: 8px 12px;
}

#page-neighborhood-profile .uc-neighborhood-residents-header .sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

#page-neighborhood-profile .uc-neighborhood-residents-header__tools {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	justify-content: flex-end;
	min-width: 0;
	flex: 1 1 auto;
}

#page-neighborhood-profile .uc-neighborhood-residents-search-label {
	display: block;
	min-width: 0;
	flex: 1 1 160px;
	max-width: 240px;
}

#page-neighborhood-profile .uc-neighborhood-residents-search {
	width: 100%;
	min-height: 30px;
	padding: 6px 10px !important;
	border: 1px solid rgba(255, 255, 255, 0.45) !important;
	border-radius: 8px !important;
	background: var(--uc-veil-soft) !important;
	color: var(--uc-text-on-primary) !important;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.02em;
	box-shadow: none !important;
}

#page-neighborhood-profile .uc-neighborhood-residents-search::placeholder {
	color: rgba(255, 255, 255, 0.78) !important;
}

#page-neighborhood-profile .uc-neighborhood-residents-search:focus {
	outline: 2px solid rgba(250, 204, 21, 0.85);
	outline-offset: 1px;
	background: var(--uc-veil-strong) !important;
	border-color: rgba(250, 204, 21, 0.85) !important;
}

#page-neighborhood-profile .uc-neighborhood-resident-card.is-search-hidden {
	display: none !important;
}

#page-neighborhood-profile .uc-neighborhood-resident-card {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	width: 100%;
	min-width: 0;
	margin: 0;
	padding: 10px 12px;
	text-align: left;
	background: var(--uc-surface);
	border: 2px solid var(--uc-border-strong);
	border-radius: 10px;
	box-shadow: var(--uc-dna-shadow-soft, 3px 3px 0 var(--uc-shadow-ink-soft));
	cursor: pointer;
	transition: transform 120ms ease, box-shadow 120ms ease;
}

#page-neighborhood-profile .uc-neighborhood-resident-card:hover {
	transform: translateY(-1px);
	box-shadow: var(--uc-dna-shadow-hard, 5px 5px 0 var(--uc-shadow-ink-strong));
}

#page-neighborhood-profile .uc-neighborhood-resident-card:focus-visible {
	outline: 2px solid var(--uc-primary, var(--uc-primary));
	outline-offset: 2px;
}

#page-neighborhood-profile .uc-neighborhood-resident-card__avatar {
	position: relative;
	width: 44px;
	height: 44px;
	flex-shrink: 0;
	overflow: hidden;
	border: 2px solid var(--uc-border-strong);
	border-radius: 8px;
	background: var(--uc-surface-muted);
}

#page-neighborhood-profile .uc-neighborhood-resident-card__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

#page-neighborhood-profile .uc-neighborhood-resident-card__pip {
	position: absolute;
	top: -3px;
	right: -3px;
	width: 12px;
	height: 12px;
	border-radius: 999px;
	border: 2px solid var(--uc-surface-raised);
}

#page-neighborhood-profile .uc-neighborhood-resident-card__pip.is-online {
	background: var(--uc-success);
}

#page-neighborhood-profile .uc-neighborhood-resident-card__pip.is-offline {
	background: var(--uc-gray-300);
}

#page-neighborhood-profile .uc-neighborhood-resident-card__body {
	min-width: 0;
	flex: 1;
}

#page-neighborhood-profile .uc-neighborhood-resident-card__topline {
	display: flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
}

#page-neighborhood-profile .uc-neighborhood-resident-card__name {
	font-size: 11px;
	font-weight: 900;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--uc-text);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	min-width: 0;
}

#page-neighborhood-profile .uc-neighborhood-resident-card__pro {
	flex-shrink: 0;
	padding: 1px 5px;
	border: 1px solid #b45309;
	border-radius: 999px;
	background: var(--uc-surface-soft);
	color: var(--uc-primary);
	font-size: 8px;
	font-weight: 900;
	letter-spacing: 0.08em;
}

#page-neighborhood-profile .uc-neighborhood-resident-card__meta,
#page-neighborhood-profile .uc-neighborhood-resident-card__mood,
#page-neighborhood-profile .uc-neighborhood-resident-card__place,
#page-neighborhood-profile .uc-neighborhood-resident-card__since {
	margin-top: 2px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

#page-neighborhood-profile .uc-neighborhood-resident-card__meta {
	font-size: 9px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--uc-text-secondary);
}

#page-neighborhood-profile .uc-neighborhood-resident-card__mood {
	font-size: 10px;
	font-weight: 700;
	color: var(--uc-text-secondary);
}

#page-neighborhood-profile .uc-neighborhood-resident-card__place {
	font-size: 9px;
	font-weight: 700;
	color: var(--uc-text-muted);
}

#page-neighborhood-profile .uc-neighborhood-resident-card__since {
	font-size: 9px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--uc-text-muted);
}

@media (max-width: 520px) {
	#page-neighborhood-profile #neighborhood-profile-residents-directory.uc-neighborhood-residents-grid {
		grid-template-columns: 1fr;
	}

	#page-neighborhood-profile .uc-neighborhood-residents-search-label {
		flex: 1 1 100%;
		max-width: none;
	}
}

#page-neighborhood-profile .uc-porch-shell.uc-porch-demo {
	width: 100%;
	max-width: 100%;
	margin-left: auto;
	margin-right: auto;
	padding-bottom: 0;
}

/* Preview only — full feed lives on /porch/. Match Residents shell scroll budget. */
#page-neighborhood-profile .uc-porch-social-feed {
	max-height: min(52vh, 480px);
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}

#page-browse input,
#page-browse select,
#page-profile input,
#page-profile textarea,
#page-profile select,
#page-settings input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),
#page-settings textarea,
#page-settings select,
#page-porch input,
#page-porch textarea,
#page-confessions textarea,
#page-ad-portal input:not([type="file"]),
#page-ad-portal select,
#page-reset input,
#page-inbox input,
#page-inbox textarea,
#page-wire textarea,
#page-neighborhood-network textarea,
#page-neighborhood-profile input,
#page-neighborhood-profile textarea,
#page-neighborhood-profile select,
#page-avatar-maker input,
#page-avatar-maker select,
#page-experts textarea,
#page-experts select,
#page-admin input,
#page-admin select,
#page-admin textarea,
#page-admin-wire input,
#page-admin-wire select,
#page-admin-wire textarea,
#page-site-ops input,
#page-site-ops select,
#page-site-ops textarea {
	background: var(--uc-surface-input) !important;
	border: 1px solid var(--uc-border) !important;
	color: var(--uc-text) !important;
	font-weight: 700;
	border-radius: 10px;
	box-shadow: inset 0 1px 0 var(--uc-veil-weak);
}

/* Shared placeholder contrast — used by Porch, Confessions, settings, etc. */
#page-browse input::placeholder,
#page-profile input::placeholder,
#page-profile textarea::placeholder,
#page-settings input::placeholder,
#page-settings textarea::placeholder,
#page-porch input::placeholder,
#page-porch textarea::placeholder,
#page-confessions textarea::placeholder,
#page-inbox input::placeholder,
#page-inbox textarea::placeholder,
#page-wire textarea::placeholder,
#page-neighborhood-network textarea::placeholder,
#page-experts textarea::placeholder {
	color: var(--uc-text-muted) !important;
	opacity: 1;
}

#page-browse input:focus,
#page-browse select:focus,
#page-profile input:focus,
#page-profile textarea:focus,
#page-profile select:focus,
#page-settings input:focus,
#page-settings textarea:focus,
#page-settings select:focus,
#page-porch input:focus,
#page-porch textarea:focus,
#page-confessions textarea:focus,
#page-ad-portal input:focus,
#page-ad-portal select:focus,
#page-reset input:focus,
#page-inbox input:focus,
#page-inbox textarea:focus,
#page-wire textarea:focus,
#page-neighborhood-network textarea:focus,
#page-neighborhood-profile input:focus,
#page-neighborhood-profile textarea:focus,
#page-neighborhood-profile select:focus,
#page-avatar-maker input:focus,
#page-avatar-maker select:focus,
#page-experts textarea:focus,
#page-experts select:focus,
#page-admin input:focus,
#page-admin select:focus,
#page-admin textarea:focus,
#page-admin-wire input:focus,
#page-admin-wire select:focus,
#page-admin-wire textarea:focus,
#page-site-ops input:focus,
#page-site-ops select:focus,
#page-site-ops textarea:focus {
	outline: 3px solid var(--uc-primary-wash-strong);
	border-color: var(--uc-primary) !important;
	background: var(--uc-surface) !important;
}

.uc-circles-residency-panel {
	border: 1px solid var(--uc-warning-border);
	background: linear-gradient(135deg, var(--uc-surface-soft), var(--uc-warning-surface));
	border-radius: 24px;
	padding: 18px 20px;
	color: var(--uc-primary-ink);
}

.uc-circles-residency-title {
	font-size: 11px;
	font-weight: 900;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin-bottom: 5px;
	color: var(--uc-primary);
}

#page-profile .uc-profile-invite-panel {
	display: grid;
	gap: 8px;
}

/* Official platform invite overlay (#invite) */
.uc-invite-overlay {
	position: fixed;
	inset: 0;
	z-index: 10020;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 18px;
}

.uc-invite-overlay.is-open {
	display: flex;
}

.uc-invite-overlay__backdrop {
	position: absolute;
	inset: 0;
	background: var(--uc-scrim-strong);
	backdrop-filter: blur(4px);
}

.uc-invite-overlay__card {
	position: relative;
	z-index: 1;
	width: min(94vw, 420px);
	max-height: min(88vh, 640px);
	overflow: auto;
	background: var(--uc-dna-card-surface, var(--uc-surface));
	color: var(--uc-text);
	border: 2px solid var(--uc-dna-border-strong, var(--uc-border-strong));
	border-radius: var(--uc-dna-card-radius, 12px);
	box-shadow:
		var(--uc-dna-shadow-hard, 6px 6px 0 rgba(0, 0, 0, 0.45)),
		0 0 0 1px color-mix(in srgb, var(--uc-gold) 22%, transparent),
		0 28px 60px -20px var(--uc-scrim);
}

.uc-invite-overlay__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 16px 12px;
	border-bottom: 2px solid var(--uc-gold-dim, var(--uc-border));
	box-shadow: inset 0 -2px 0 var(--uc-gold);
	background: var(--uc-dna-header-red, var(--uc-primary));
	color: var(--uc-text-on-primary);
}

.uc-invite-overlay__brand {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.uc-invite-overlay__key-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 11px;
	color: var(--uc-text-on-gold);
	background: linear-gradient(145deg, var(--uc-gold) 0%, var(--uc-gold-dim) 100%);
	box-shadow: var(--uc-dna-shadow-soft, 2px 2px 0 rgba(0, 0, 0, 0.35));
	flex: 0 0 auto;
}

.uc-invite-overlay__title {
	font-size: 16px;
	font-weight: 900;
	letter-spacing: -0.02em;
	color: var(--uc-text-on-primary);
}

.uc-invite-overlay__sub {
	font-size: 11px;
	font-weight: 700;
	color: color-mix(in srgb, var(--uc-text-on-primary) 78%, transparent);
	margin-top: 2px;
}

.uc-invite-overlay__close {
	border: 2px solid color-mix(in srgb, var(--uc-text-on-primary) 55%, transparent);
	border-radius: 999px;
	background: color-mix(in srgb, #000 35%, transparent);
	color: var(--uc-text-on-primary);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
	width: 34px;
	height: 34px;
}

.uc-invite-overlay__body {
	display: grid;
	gap: 10px;
	padding: 16px;
	background: var(--uc-surface-sunken);
}

.uc-invite-overlay__label {
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--uc-gold);
}

.uc-invite-overlay__keyline {
	display: grid;
	gap: 6px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--uc-divider, var(--uc-border));
}

.uc-invite-overlay__keyrow {
	display: flex;
	align-items: center;
	gap: 8px;
}

.uc-invite-overlay__key {
	flex: 1;
	min-width: 0;
	font-size: 15px;
	font-weight: 900;
	letter-spacing: 0.06em;
	color: var(--uc-primary-ink);
}

.uc-invite-overlay__expiry {
	font-size: 11px;
	font-weight: 700;
	color: var(--uc-text-secondary);
}

.uc-invite-overlay__emailrow {
	display: flex;
	gap: 8px;
}

.uc-invite-overlay__url {
	margin: 0;
	font-size: 10px;
	font-weight: 600;
	color: var(--uc-text-secondary);
	word-break: break-all;
	line-height: 1.35;
}

body.uc-invite-overlay-open {
	overflow: hidden;
}

body.uc-come-through-overlay-open {
	overflow: hidden;
}

.uc-invite-overlay__come-attr {
	color: var(--uc-text);
}

.uc-invite-overlay__come-meta {
	color: var(--uc-text-secondary);
	font-weight: 700;
	line-height: 1.4;
}

.uc-come-through-facepile.is-empty {
	color: var(--uc-text-muted);
	font-size: 10px;
	font-weight: 700;
}

/* Phase 41 — Room share sheet (legacy; Phase 56 uses .uc-share-overlay). Heat-safe tokens only. */
.uc-room-share-overlay {
	position: fixed;
	inset: 0;
	z-index: 10030;
	display: none;
	align-items: center;
	justify-content: center;
	padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px))
		max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
	box-sizing: border-box;
}

.uc-room-share-overlay.is-open {
	display: flex;
}

.uc-room-share-overlay__backdrop {
	position: absolute;
	inset: 0;
	background: color-mix(in srgb, var(--uc-chrome, #0a0909) 72%, transparent);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

.uc-room-share-overlay__card {
	position: relative;
	z-index: 1;
	width: min(94vw, 420px);
	max-height: min(88dvh, 640px);
	overflow: auto;
	background: var(--uc-dna-card-surface, var(--uc-surface));
	border: 2px solid var(--uc-dna-border-strong, var(--uc-border-strong));
	border-radius: var(--uc-dna-card-radius, 14px);
	box-shadow:
		var(--uc-dna-shadow-hard, 4px 5px 0 var(--uc-shadow-ink-strong)),
		0 0 0 1px color-mix(in srgb, var(--uc-gold) 16%, transparent);
	padding: 0;
	color: var(--uc-text);
	animation: uc-room-share-in 0.28s cubic-bezier(0.2, 0.9, 0.25, 1.1) both;
}

@keyframes uc-room-share-in {
	from { opacity: 0; transform: translateY(14px) scale(0.98); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
	.uc-room-share-overlay__card {
		animation: none;
	}
}

.uc-room-share-overlay__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin: 0;
	padding: 16px 16px 14px;
	border-bottom: 2px solid var(--uc-dna-border-strong, var(--uc-border-strong));
	background: linear-gradient(180deg, var(--uc-primary) 0%, color-mix(in srgb, var(--uc-primary) 88%, #000) 100%);
	box-shadow:
		inset 0 2px 0 color-mix(in srgb, var(--uc-gold) 70%, transparent),
		inset 0 -2px 0 color-mix(in srgb, var(--uc-gold-dim, var(--uc-gold)) 55%, transparent);
}

.uc-room-share-overlay__kicker {
	display: inline-block;
	background: var(--uc-gold);
	border: 1px solid color-mix(in srgb, var(--uc-gold) 40%, #000);
	border-radius: 999px;
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	padding: 4px 10px;
	margin-bottom: 8px;
	color: var(--uc-text-on-gold);
}

.uc-room-share-overlay__title {
	margin: 0;
	font-size: 22px;
	font-weight: 900;
	letter-spacing: -0.02em;
	text-transform: uppercase;
	color: var(--uc-text-on-primary, #fff);
}

.uc-room-share-overlay__sub {
	margin: 6px 0 0;
	font-size: 13px;
	font-weight: 600;
	color: color-mix(in srgb, var(--uc-text-on-primary, #fff) 86%, transparent);
}

.uc-room-share-overlay__close {
	border: 2px solid color-mix(in srgb, var(--uc-gold) 55%, transparent);
	background: color-mix(in srgb, var(--uc-chrome, #0a0909) 45%, transparent);
	border-radius: 999px;
	width: 36px;
	height: 36px;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	font-weight: 700;
	color: var(--uc-text-on-primary, #fff);
}

.uc-room-share-overlay__preview {
	border: 2px solid var(--uc-dna-border-strong, var(--uc-border-strong));
	border-radius: 12px;
	background: var(--uc-surface-raised, var(--uc-surface));
	padding: 14px;
	margin: 14px 16px;
	color: var(--uc-text);
	box-shadow: var(--uc-dna-shadow-soft);
}

.uc-room-share-overlay__pill {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: var(--uc-surface-sunken);
	border: 2px solid var(--uc-border-strong);
	border-radius: 999px;
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	padding: 5px 10px;
	margin-bottom: 10px;
	color: var(--uc-text-secondary);
}

.uc-room-share-overlay__pill.is-live {
	background: var(--uc-success-surface);
	border-color: var(--uc-success-border, var(--uc-border-strong));
	color: var(--uc-success-text);
}

.uc-room-share-overlay__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--uc-primary);
}

.uc-room-share-overlay__pill.is-live .uc-room-share-overlay__dot {
	background: var(--uc-success, #1f9d55);
}

.uc-room-share-overlay__room {
	font-size: 18px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: -0.01em;
	color: var(--uc-text);
}

.uc-room-share-overlay__preview p {
	margin: 8px 0 0;
	font-size: 13px;
	font-weight: 600;
	color: var(--uc-text-secondary);
	line-height: 1.45;
}

.uc-room-share-overlay__actions {
	display: grid;
	gap: 10px;
	padding: 0 16px 4px;
}

.uc-room-share-overlay__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	min-height: 46px;
	border: 2px solid var(--uc-border-strong);
	border-radius: 12px;
	background: var(--uc-surface-raised, var(--uc-surface));
	box-shadow: var(--uc-dna-shadow-hard);
	padding: 12px 14px;
	font-size: 13px;
	font-weight: 900;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	cursor: pointer;
	color: var(--uc-text);
	transition: transform 0.08s ease;
}

.uc-room-share-overlay__btn:active {
	transform: translate(1px, 1px);
	box-shadow: 1px 1px 0 var(--uc-shadow-ink-strong, rgba(0, 0, 0, 0.5));
}

.uc-room-share-overlay__btn--primary {
	background: var(--uc-primary);
	color: var(--uc-text-on-primary);
}

.uc-room-share-overlay__btn:disabled {
	opacity: 0.55;
	cursor: default;
}

.uc-room-share-overlay__status {
	min-height: 18px;
	margin: 12px 16px max(14px, env(safe-area-inset-bottom, 0px));
	text-align: center;
	font-size: 13px;
	font-weight: 700;
	color: var(--uc-text-secondary);
}

body.uc-room-share-open {
	overflow: hidden;
}

.uc-come-through-face {
	width: 28px;
	height: 28px;
	border-radius: 999px;
	object-fit: cover;
	border: 2px solid var(--uc-surface-raised);
	box-shadow: 0 0 0 1px var(--uc-wash-soft);
	margin-left: -6px;
}

.uc-come-through-face:first-child {
	margin-left: 0;
}

#page-profile .uc-profile-invite-keyline {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
}

#page-profile .uc-profile-invite-label {
	font-size: 10px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--uc-text-secondary);
}

#page-profile .uc-profile-invite-key {
	font-size: 12px;
	font-weight: 900;
	letter-spacing: 0.08em;
	color: var(--uc-dna-header-red);
}

#page-profile .uc-profile-invite-expiry {
	font-size: 10px;
	font-weight: 700;
	color: var(--uc-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

#page-profile .uc-profile-invite-actions {
	display: flex;
	gap: 8px;
}

#page-profile #invite-send-btn,
#page-profile .uc-profile-invite-actions .uc-dna-btn {
	width: 100%;
}

#page-wire .uc-browse-shell {
	border: 1px solid var(--uc-dna-border-strong);
	border-radius: 16px;
	overflow: hidden;
	background: linear-gradient(180deg, var(--uc-surface-muted) 0%, var(--uc-surface-sunken) 100%);
	box-shadow: inset 0 1px 0 var(--uc-veil-weak);
}

#page-wire .uc-wire-content {
	color: var(--uc-text-secondary);
	padding: 18px;
	background:
		radial-gradient(920px 240px at 12% -8%, var(--uc-primary-wash), transparent 58%),
		radial-gradient(860px 220px at 88% -12%, rgba(245, 158, 11, 0.12), transparent 62%),
		linear-gradient(180deg, var(--uc-surface-raised) 0%, var(--uc-surface-muted) 100%);
}

#page-wire .uc-browse-intro-copy,
#page-wire .uc-browse-intro {
	margin: 0;
	padding: 12px 14px;
	border-radius: 14px;
	border: 1px solid var(--uc-border);
	background: linear-gradient(180deg, var(--uc-surface) 0%, var(--uc-surface-muted) 100%);
	font-size: 13px;
	line-height: 1.5;
	color: var(--uc-text-secondary);
}

#page-wire .uc-wire-channel-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

#page-wire .uc-wire-tab {
	padding: 9px 12px;
	border-radius: 11px;
	border: 1px solid var(--uc-border);
	background: var(--uc-surface-muted);
	color: var(--uc-text);
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	box-shadow: 0 3px 8px var(--uc-wash-soft);
	transition: transform 0.12s ease, filter 0.12s ease;
}

#page-wire .uc-wire-tab:hover {
	transform: translateY(-1px);
	filter: brightness(1.03);
}

#page-wire .uc-wire-tab.is-active {
	border-color: var(--uc-primary-darker);
	background: linear-gradient(135deg, var(--uc-primary), var(--uc-primary-darker));
	color: var(--uc-text-on-primary);
	box-shadow: 0 5px 0 rgba(127, 29, 29, 0.5);
}

#page-wire .uc-wire-channel-description {
	padding: 10px 12px;
	border-radius: 12px;
	border: 1px solid var(--uc-border);
	background: var(--uc-surface-raised);
	font-size: 11px;
	font-weight: 700;
	color: var(--uc-text-secondary);
}

#page-wire .uc-surface-card {
	border: 1px solid var(--uc-border);
	border-radius: 16px;
	padding: 14px;
	background: linear-gradient(180deg, var(--uc-surface) 0%, var(--uc-surface-raised) 100%);
	box-shadow: 0 8px 18px var(--uc-wash-weak);
}

#page-wire .uc-wire-section-title {
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--uc-text-muted);
	margin-bottom: 8px;
}

#page-wire .uc-wire-feed-list {
	display: grid;
	gap: 8px;
}

#page-wire .uc-wire-feed-empty,
#page-wire .uc-wire-comment-empty {
	border: 1px dashed var(--uc-slate-300);
	border-radius: 12px;
	padding: 10px;
	background: var(--uc-surface-raised);
	font-size: 11px;
	font-weight: 700;
	color: var(--uc-text-muted);
}

#page-wire .uc-wire-feed-item {
	width: 100%;
	text-align: left;
	padding: 11px;
	border-radius: 14px;
	border: 1px solid var(--uc-border);
	background: var(--uc-surface);
	transition: transform 0.14s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

#page-wire .uc-wire-feed-item:hover {
	transform: translateY(-1px);
	border-color: var(--uc-border);
	box-shadow: 0 10px 18px var(--uc-wash-soft);
}

#page-wire .uc-wire-feed-item.is-selected {
	border-color: var(--uc-primary);
	background: linear-gradient(180deg, var(--uc-danger-surface) 0%, #fee2e2 100%);
	box-shadow: inset 0 0 0 1px rgba(153, 27, 27, 0.1);
}

#page-wire .uc-wire-feed-title {
	font-size: 12px;
	font-weight: 900;
	color: var(--uc-danger-text);
	line-height: 1.3;
}

#page-wire .uc-wire-feed-teaser {
	margin-top: 4px;
	font-size: 11px;
	line-height: 1.4;
	color: var(--uc-text-secondary);
}

#page-wire .uc-wire-feed-meta {
	margin-top: 5px;
	font-size: 10px;
	font-weight: 700;
	color: var(--uc-text-muted);
}

#page-wire .uc-wire-selected-title {
	font-size: clamp(18px, 2.3vw, 24px);
	font-weight: 900;
	letter-spacing: -0.02em;
	line-height: 1.08;
	color: var(--uc-danger-text);
}

#page-wire .uc-wire-selected-meta {
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--uc-text-muted);
}

#page-wire .uc-wire-selected-body {
	border: 1px solid var(--uc-border);
	border-radius: 14px;
	background: var(--uc-surface-raised);
	padding: 12px;
	font-size: 13px;
	line-height: 1.55;
	color: var(--uc-text-secondary);
	white-space: pre-wrap;
}

#page-wire .uc-wire-comment-gate {
	padding: 10px 12px;
	border: 1px solid var(--uc-border);
	border-radius: 12px;
	background: var(--uc-surface-raised);
	font-size: 11px;
	font-weight: 700;
	color: var(--uc-text-secondary);
}

#page-wire .uc-wire-comment-label {
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0.11em;
	text-transform: uppercase;
	color: var(--uc-text-secondary);
}

#page-wire .uc-surface-input {
	border: 1px solid var(--uc-border);
	border-radius: 12px;
	padding: 12px;
	font-size: 12px;
	line-height: 1.4;
	background: var(--uc-surface-raised);
	color: var(--uc-text-secondary);
	transition: outline 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

#page-wire .uc-surface-input:focus {
	outline: 3px solid var(--uc-primary-wash-strong);
	border-color: var(--uc-primary);
	background: var(--uc-surface);
}

/* Do not force full-width buttons on Wire — compose row is input + Post side-by-side. */
#page-wire .uc-surface-btn {
	width: auto;
}

#page-wire .uc-wire-comments-list {
	display: grid;
	gap: 8px;
}

#page-wire .uc-wire-comment-item {
	border: 1px solid var(--uc-border);
	border-radius: 12px;
	padding: 10px;
	background: linear-gradient(180deg, var(--uc-surface) 0%, var(--uc-surface-raised) 100%);
}

#page-wire .uc-wire-comment-author {
	font-size: 11px;
	font-weight: 900;
	color: var(--uc-danger-text);
}

#page-wire .uc-wire-comment-text {
	margin-top: 4px;
	font-size: 11px;
	line-height: 1.4;
	color: var(--uc-text-secondary);
}

#page-wire .uc-wire-comment-time {
	margin-top: 5px;
	font-size: 10px;
	font-weight: 700;
	color: var(--uc-text-muted);
}

#page-wire .uc-wire-sponsored {
	text-align: center;
}

#page-wire .uc-wire-sponsored-slot {
	min-height: 92px;
	border: 1px dashed var(--uc-slate-300);
	border-radius: 12px;
	background: var(--uc-surface-muted);
	display: grid;
	place-items: center;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--uc-text-muted);
}

#page-profile .uc-profile-main-layout {
	flex-wrap: wrap;
}

#page-profile .uc-profile-sidebar {
	width: 100%;
}

@media (min-width: 769px) {
	#page-profile .uc-profile-sidebar {
		width: 220px;
	}
}

/* Card chrome: centered section titles + owner gear.
   Scoped to .main-card children so modal headers keep space-between + right ×. */
#page-profile .main-card > .uc-profile-section-header,
#page-profile .uc-profile-contact-panel > .uc-profile-section-header {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 2.1rem;
	padding-left: 2.5rem;
	padding-right: 2.5rem;
	font-size: 11px;
	text-align: center;
}

#page-profile .uc-profile-section-title {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.35rem 0.5rem;
	text-align: center;
	font: inherit;
	letter-spacing: inherit;
	text-transform: inherit;
	color: inherit;
	line-height: 1.2;
	max-width: 100%;
}

#page-profile .main-card > .uc-profile-section-header .uc-profile-section-gear,
#page-profile .main-card > .uc-profile-section-header .uc-album-gear-btn {
	position: absolute;
	top: 50%;
	right: 0.35rem;
	transform: translateY(-50%);
	display: none;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: none;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: inherit;
	font-size: 15px;
	line-height: 1;
	cursor: pointer;
	z-index: 1;
	opacity: 0.9;
}

#page-profile.is-own-profile .main-card > .uc-profile-section-header .uc-profile-section-gear:not([hidden]):not(.hidden),
#page-profile.is-own-profile .main-card > .uc-profile-section-header .uc-album-gear-btn:not([hidden]):not(.hidden) {
	display: inline-flex;
}

#page-profile .main-card > .uc-profile-section-header .uc-profile-section-gear:hover,
#page-profile .main-card > .uc-profile-section-header .uc-profile-section-gear:focus-visible,
#page-profile .main-card > .uc-profile-section-header .uc-album-gear-btn:hover,
#page-profile .main-card > .uc-profile-section-header .uc-album-gear-btn:focus-visible {
	border: none;
	background: transparent;
	opacity: 1;
	outline: none;
}

#page-profile .main-card > .uc-profile-section-header .uc-profile-section-gear[aria-expanded="true"] {
	background: transparent;
	opacity: 1;
}

/* Modal / overlay headers: title left (or center title) and black × always right */
#page-profile .uc-album-upload-card > .section-header,
#page-profile .uc-album-upload-card > .uc-profile-section-header,
#page-profile .uc-album-modal-card > .section-header,
#page-profile .uc-album-modal-card > .uc-profile-section-header,
#page-profile .uc-album-modal-head {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding-left: 0.85rem;
	padding-right: 0.85rem;
	text-align: left;
}

#page-profile .uc-album-upload-card > .section-header > span:first-child,
#page-profile .uc-album-modal-card > .section-header > span:first-child,
#page-profile .uc-album-modal-head > span:first-child {
	flex: 1 1 auto;
	min-width: 0;
}

#page-profile .uc-album-modal-x,
#page-profile .uc-album-lightbox-close {
	flex: 0 0 auto;
	margin-left: auto;
	order: 2;
}

#page-profile .uc-profile-section-tools {
	display: none;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.55rem 0.75rem;
	border-bottom: 1px solid var(--uc-border, rgba(0, 0, 0, 0.08));
	background: color-mix(in srgb, var(--uc-surface-raised, #f6f6f6) 88%, var(--uc-primary, #7f1d1d) 12%);
}

#page-profile.is-own-profile .main-card[data-uc-section-tools].is-section-tools-open > .uc-profile-section-tools,
#page-profile.is-own-profile .main-card[data-uc-section-tools].is-section-tools-open > .uc-profile-section-tools.uc-profile-owner-tools {
	display: flex;
}

#page-profile .main-card[data-uc-section-tools] .uc-profile-owner-tools:not(.uc-profile-section-tools) {
	display: none;
}

#page-profile.is-own-profile .main-card[data-uc-section-tools].is-section-tools-open .uc-profile-owner-tools:not(.uc-profile-section-tools) {
	display: block;
}

#page-profile.is-own-profile .main-card[data-uc-section-tools].is-section-tools-open .uc-profile-mood-input-row.uc-profile-owner-tools {
	display: flex;
}

#page-profile .uc-profile-section-caption {
	margin: 0 0 0.65rem;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--uc-text-secondary, #6b7280);
	text-align: center;
}

#page-profile .uc-profile-inline-badge {
	display: inline-flex;
	align-items: center;
	padding: 0.1rem 0.45rem;
	border: 1px solid currentColor;
	font-size: 9px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	opacity: 0.9;
}

#page-profile .uc-profile-hero-status {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
}

#page-profile .uc-profile-hero-container {
	overflow: hidden;
	border-radius: 14px;
}

#page-profile .uc-profile-hero-body {
	padding: 14px 12px 12px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	background: linear-gradient(180deg, var(--uc-surface) 0%, var(--uc-surface-raised) 100%);
}

#page-profile .uc-profile-hero-status {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
}

#page-profile .uc-profile-status-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 999px;
	border: 1px solid rgba(127, 29, 29, 0.18);
	background: rgba(127, 29, 29, 0.06);
	color: var(--uc-primary-ink);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* Tailwind .hidden loses to #page-profile display:inline-flex above (empty pill + green-dot only). */
#page-profile .uc-profile-status-chip.hidden,
#page-profile .uc-profile-status-chip[hidden] {
	display: none !important;
}

#page-profile .uc-profile-status-chip.is-offline .online-dot-sm {
	background: var(--uc-slate-400);
	box-shadow: none;
	animation: none;
}

#page-profile .uc-profile-status-chip.is-offline {
	border-color: rgba(100, 116, 139, 0.28);
	background: rgba(100, 116, 139, 0.08);
	color: var(--uc-text-secondary);
}

#page-profile .uc-profile-viewing-pulse,
#page-profile .uc-profile-presence-room {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 9px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--uc-primary-ink);
	opacity: 0.85;
}

#page-profile .uc-profile-hero-container .avatar-frame-lg {
	width: 104px;
	height: 104px;
	border-radius: 12px;
	margin: 2px auto 0;
}

#page-profile .uc-profile-hero-identity {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	width: 100%;
}

#page-profile .uc-profile-hero-name-row,
#page-profile .uc-profile-hero-badge-row {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px;
}

#page-profile .uc-profile-hero-name {
	font-size: 13px;
	font-weight: 900;
	color: var(--uc-text);
	line-height: 1.2;
	word-break: break-word;
}

#page-profile .uc-profile-mini-badge {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	padding: 2px 7px;
	border-radius: 999px;
	font-size: 9px;
	font-weight: 900;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1.3;
}

#page-profile .uc-profile-mini-badge--verified,
#page-profile .uc-profile-mini-badge--game {
	background: var(--uc-primary-darker);
	color: var(--uc-text-on-primary);
}

#page-profile .uc-profile-mini-badge--streak {
	background: var(--uc-gold);
	color: var(--uc-text-on-gold);
}

#page-profile .uc-profile-xp {
	width: 96px;
	cursor: help;
}

#page-profile .uc-profile-xp-track,
#page-profile .uc-profile-vibe-track {
	height: 6px;
	width: 100%;
	overflow: hidden;
	border-radius: 999px;
	background: var(--uc-surface-sunken);
	border: 1px solid var(--uc-gray-300);
}

#page-profile .uc-profile-xp-fill,
#page-profile .uc-profile-vibe-fill {
	height: 100%;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--uc-primary), var(--uc-primary-darker));
	transition: width 0.8s ease;
}

#page-profile .uc-profile-game-empty {
	width: 100%;
	padding: 8px;
	border: 1px dashed var(--uc-gray-300);
	border-radius: 10px;
	background: var(--uc-surface-raised);
}

#page-profile .uc-profile-game-empty-title {
	font-size: 9px;
	font-weight: 900;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--uc-primary-ink);
}

#page-profile .uc-profile-game-empty-copy {
	margin-top: 2px;
	font-size: 10px;
	color: var(--uc-text-muted);
	line-height: 1.35;
}

#page-profile .uc-profile-hero-meta {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
	width: 100%;
}

#page-profile .uc-profile-meta-chip {
	max-width: 100%;
	padding: 4px 9px;
	border-radius: 999px;
	border: 1px solid var(--uc-border);
	background: var(--uc-surface-muted);
	color: var(--uc-text-secondary);
	font-size: 9px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: help;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

#page-profile .uc-profile-meta-chip--circle {
	border-color: rgba(127, 29, 29, 0.14);
	background: rgba(127, 29, 29, 0.05);
	color: var(--uc-primary-ink);
}

#page-profile .uc-profile-vibe {
	width: 100%;
	padding: 0 2px;
}

#page-profile .uc-profile-vibe-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 5px;
	font-size: 9px;
	font-weight: 900;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

#page-profile .uc-profile-vibe-head span:first-child {
	color: var(--uc-text-muted);
}

#page-profile .uc-profile-vibe-head #profile-vibe-label {
	color: #b45309;
}

#page-profile .uc-profile-vibe-fill {
	background: linear-gradient(90deg, var(--uc-gold), var(--uc-gold-dim));
}

#page-profile .uc-profile-contact-panel {
	border-top: 1px solid var(--uc-border);
	background: var(--uc-surface);
	position: relative;
	z-index: 2;
}

#page-profile .uc-profile-contact-panel > .section-header {
	border-top: 0;
}

#page-profile .uc-profile-contact-body {
	padding: 12px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

#page-profile .uc-profile-contact-body .uc-surface-btn {
	min-height: 34px;
	padding: 8px 10px;
	font-size: 10px;
	letter-spacing: 0.08em;
	border-radius: 10px;
}

#page-profile .uc-profile-contact-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

#page-profile .uc-profile-contact-row .uc-surface-btn {
	width: 100%;
}

#page-profile .uc-profile-contact-links {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px;
	padding-top: 2px;
}

#page-profile .uc-profile-text-action {
	appearance: none;
	background: var(--uc-surface-raised);
	border: 1px solid var(--uc-surface-sunken);
	border-radius: 9px;
	padding: 7px 6px;
	font-size: 9px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--uc-text-secondary);
	cursor: pointer;
	transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

#page-profile .uc-profile-text-action:hover {
	background: var(--uc-surface);
	border-color: var(--uc-border);
	color: var(--uc-primary-ink);
}

#page-profile .uc-profile-contact-mod {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding-top: 4px;
	border-top: 1px solid var(--uc-surface-muted);
	margin-top: 2px;
}

#page-profile .uc-profile-contact-mod span {
	color: var(--uc-text-muted);
	font-size: 12px;
}

#page-profile .uc-profile-mod-action {
	appearance: none;
	background: transparent;
	border: 0;
	padding: 4px 2px;
	font-size: 10px;
	font-weight: 700;
	color: var(--uc-text-muted);
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 2px;
}

#page-profile .uc-profile-mod-action:hover {
	color: var(--uc-primary-ink);
}

#page-profile .uc-profile-mood-panel {
	background: var(--uc-surface-soft);
	border-top: 1px solid var(--uc-divider);
	color: var(--uc-text);
}

#page-profile .uc-profile-mood-emoji {
	font-size: 15px;
}

#page-profile #profile-mood-text.is-empty {
	color: var(--uc-text-muted);
	font-weight: 600;
}

#page-profile .uc-profile-mood-input-row {
	align-items: center;
}

#page-profile .uc-profile-mood-emoji-input {
	width: 44px;
}

#page-profile .uc-profile-mood-text-input {
	flex: 1;
}

#page-profile .uc-profile-right-column {
	flex: 1;
	min-width: 0;
}

#page-profile .uc-profile-duo-layout {
	flex-wrap: wrap;
}

#page-profile .uc-profile-duo-card {
	flex: 1;
	min-width: 180px;
}

#page-profile .uc-profile-ad-slot {
	background: var(--uc-surface-muted);
	border: 1px dashed var(--uc-gray-300);
	height: 60px;
	width: 100%;
	max-width: 468px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--uc-text-muted);
	font-size: 11px;
}

#page-games .uc-games-profile-meta {
	text-align: center;
}

#page-confessions .main-card {
	background: linear-gradient(180deg, var(--uc-surface-muted) 0%, var(--uc-surface-sunken) 100%);
	border-color: var(--uc-border);
}

#page-confessions .section-header {
	box-shadow: inset 0 -2px 0 rgba(250, 204, 21, 0.45);
}

.uc-porch-shell,
.uc-confessions-shell {
	color: var(--uc-text);
}

.uc-porch-shell {
	background: linear-gradient(180deg, var(--uc-surface-raised) 0%, var(--uc-surface-muted) 100%);
	border: 1px solid var(--uc-border);
	border-radius: 18px;
	box-shadow: inset 0 1px 0 var(--uc-veil-weak), 0 10px 22px var(--uc-wash-weak);
}

.uc-porch-composer,
.uc-confessions-composer {
	background: linear-gradient(180deg, var(--uc-surface-raised) 0%, var(--uc-surface-sunken) 100%);
	border: 1px solid var(--uc-border);
	border-radius: 16px;
	padding: 14px;
	box-shadow: 0 8px 18px var(--uc-wash-weak);
}

.uc-porch-composer-title,
.uc-confessions-composer-title {
	font-size: 11px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--uc-danger-text);
	margin-bottom: 8px;
}

.uc-porch-composer-row,
.uc-confessions-composer-actions {
	align-items: stretch;
}

.uc-porch-columns {
	align-items: stretch;
}

.uc-porch-panel {
	background: linear-gradient(180deg, var(--uc-surface) 0%, var(--uc-surface-muted) 100%);
	border: 1px solid var(--uc-border);
	border-radius: 16px;
	padding: 12px;
	box-shadow: inset 0 1px 0 var(--uc-veil-weak), 0 4px 10px var(--uc-wash-weak);
}

.uc-porch-panel.is-active-list {
	background: linear-gradient(180deg, var(--uc-surface) 0%, var(--uc-surface-muted) 100%);
}

.uc-porch-panel-title {
	font-size: 11px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--uc-danger-text);
	margin-bottom: 8px;
}

.uc-porch-panel-title.is-neutral {
	color: var(--uc-text);
}

.uc-porch-thread-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 10px;
	align-items: start;
	border-radius: 14px;
	padding: 10px;
	border: 1px solid var(--uc-border);
	background: linear-gradient(180deg, var(--uc-surface) 0%, var(--uc-surface-muted) 100%);
	box-shadow: 0 4px 10px var(--uc-wash-weak);
}

.uc-porch-thread-row.is-active {
	border-color: var(--uc-primary);
	box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.14);
}

.uc-porch-thread-row--pro-only {
	border-color: rgba(245, 158, 11, 0.65);
	background: linear-gradient(180deg, var(--uc-surface) 0%, var(--uc-surface-soft) 100%);
	box-shadow: 0 4px 12px rgba(146, 64, 14, 0.12);
}

.uc-porch-thread-left {
	min-width: 0;
}

.uc-porch-thread-title {
	font-size: 12px;
	font-weight: 900;
	color: var(--uc-text);
	line-height: 1.25;
}

.uc-porch-thread-meta {
	margin-top: 3px;
	font-size: 11px;
	color: var(--uc-text-secondary);
	line-height: 1.3;
}

.uc-porch-pin-chip {
	display: inline-flex;
	align-items: center;
	padding: 2px 7px;
	border-radius: 999px;
	font-size: 9px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--uc-text-on-gold);
	background: linear-gradient(135deg, #fde68a 0%, var(--uc-warning) 100%);
	border: 1px solid rgba(180, 83, 9, 0.4);
	vertical-align: middle;
}

.uc-porch-thread-type-chip {
	display: inline-flex;
	align-items: center;
	padding: 2px 7px;
	border-radius: 999px;
	font-size: 9px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--uc-text-on-gold);
	background: linear-gradient(135deg, #fde68a 0%, var(--uc-gold) 100%);
	border: 1px solid rgba(180, 83, 9, 0.42);
	vertical-align: middle;
}

.uc-pro-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 1px 7px;
	border-radius: 999px;
	font-size: 9px;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--uc-text-on-gold);
	background: linear-gradient(135deg, var(--uc-gold) 0%, var(--uc-gold-dim) 100%);
	border: 1px solid rgba(120, 73, 0, 0.35);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset;
	white-space: nowrap;
}

/* display:inline-flex fights Tailwind .hidden — empty gold pill must not stick on non-Pro. */
.uc-pro-badge.hidden,
.uc-pro-badge[hidden] {
	display: none !important;
}

.uc-pro-badge--chat {
	transform: translateY(-1px);
}

.uc-pro-badge--member {
	margin-top: 1px;
	align-self: flex-start;
}

.uc-pro-badge--profile {
	font-size: 8px;
	padding: 1px 6px;
}

.uc-pro-badge--porch {
	margin-left: 4px;
	transform: translateY(-1px);
}

.uc-porch-status-pill {
	display: inline-flex;
	align-items: center;
	border-radius: 999px;
	padding: 3px 10px;
	font-size: 10px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	border: 1px solid var(--uc-border);
	background: linear-gradient(180deg, var(--uc-surface-raised) 0%, var(--uc-surface-muted) 100%);
	color: var(--uc-text-secondary);
}

.uc-porch-thread-actions {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.uc-porch-empty,
.uc-porch-tool {
	border: 1px solid var(--uc-border);
	background: linear-gradient(180deg, var(--uc-surface) 0%, var(--uc-surface-muted) 100%);
	border-radius: 12px;
	padding: 9px 10px;
	font-size: 11px;
	color: var(--uc-text-secondary);
}

.uc-porch-visitor-note {
	border: 1px solid var(--uc-border);
	background: linear-gradient(180deg, var(--uc-surface) 0%, var(--uc-surface-muted) 100%);
	border-radius: 12px;
	padding: 10px;
	font-size: 11px;
	line-height: 1.45;
	color: var(--uc-text-secondary);
}

.uc-confession-card {
	display: grid;
	gap: 8px;
	border-radius: 14px;
	border-color: var(--uc-border);
	background: linear-gradient(180deg, var(--uc-surface) 0%, var(--uc-surface-muted) 100%);
	padding: 12px;
}

.uc-confession-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
}

.uc-confession-meta,
.uc-confession-reports {
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--uc-text-secondary);
}

.uc-confession-text {
	font-size: 12px;
	line-height: 1.4;
	color: var(--uc-text);
}

.uc-confession-replies-label {
	font-size: 10px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--uc-danger-text);
}

.uc-confession-replies {
	display: grid;
	gap: 6px;
}

.uc-confession-reply,
.uc-confession-reply-empty {
	border: 1px solid var(--uc-border);
	border-radius: 10px;
	background: linear-gradient(180deg, var(--uc-surface-raised) 0%, var(--uc-surface-muted) 100%);
	padding: 7px 8px;
}

.uc-confession-reply-top {
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--uc-text-muted);
}

.uc-confession-reply-text {
	margin-top: 3px;
	font-size: 11px;
	line-height: 1.35;
	color: var(--uc-text-secondary);
}

.uc-confession-reply-composer {
	display: grid;
	gap: 7px;
}

.uc-confession-reply-input {
	min-height: 58px;
	resize: vertical;
}

.uc-confession-actions {
	display: flex;
	justify-content: flex-end;
}

.uc-confessions-empty {
	border: 1px solid var(--uc-border);
	border-radius: 12px;
	padding: 12px;
	background: linear-gradient(180deg, var(--uc-surface-raised) 0%, var(--uc-surface-muted) 100%);
	color: var(--uc-text-muted);
}

#page-experts .main-card {
	background: linear-gradient(180deg, var(--uc-surface-muted) 0%, var(--uc-surface-sunken) 100%);
	border-color: var(--uc-border);
}

#page-experts .section-header {
	box-shadow: inset 0 -2px 0 rgba(250, 204, 21, 0.45);
}

.uc-experts-shell {
	background: linear-gradient(180deg, var(--uc-surface-raised) 0%, var(--uc-surface-muted) 100%);
	border: 1px solid var(--uc-border);
	border-radius: 18px;
	color: var(--uc-text-secondary);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 10px 22px var(--uc-wash-weak);
}

.uc-experts-intro {
	font-size: 11px;
	line-height: 1.45;
	color: var(--uc-text-secondary);
}

.uc-experts-panel {
	background: linear-gradient(180deg, var(--uc-surface) 0%, var(--uc-surface-muted) 100%);
	border: 1px solid var(--uc-border);
	border-radius: 16px;
	padding: 12px;
	box-shadow: inset 0 1px 0 var(--uc-veil-weak);
}

.uc-experts-panel-title {
	font-size: 11px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--uc-danger-text);
	margin-bottom: 8px;
}

.uc-experts-empty {
	border: 1px solid var(--uc-border);
	border-radius: 12px;
	padding: 11px;
	background: linear-gradient(180deg, var(--uc-surface-raised) 0%, var(--uc-surface-muted) 100%);
	color: var(--uc-text-muted);
	font-size: 11px;
}

.uc-experts-post-card {
	border: 1px solid var(--uc-border);
	border-radius: 12px;
	padding: 10px;
	background: linear-gradient(180deg, var(--uc-surface) 0%, var(--uc-surface-muted) 100%);
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.uc-experts-post-card:hover {
	transform: translateY(-1px);
	box-shadow: 0 7px 16px var(--uc-wash-soft);
}

.uc-experts-post-card.is-active {
	border-color: var(--uc-primary);
	background: linear-gradient(180deg, var(--uc-surface-soft) 0%, #fee2e2 100%);
	box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.14);
}

.uc-experts-post-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
}

.uc-experts-post-category {
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--uc-danger-text);
}

.uc-experts-post-type {
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--uc-text-muted);
}

.uc-experts-post-title {
	font-size: 14px;
	font-weight: 900;
	line-height: 1.25;
	color: var(--uc-text);
	margin-top: 4px;
}

.uc-experts-post-summary {
	font-size: 11px;
	line-height: 1.4;
	color: var(--uc-text-secondary);
	margin-top: 4px;
}

.uc-experts-detail-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 10px;
	flex-wrap: wrap;
}

.uc-experts-detail-kicker {
	font-size: 10px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--uc-danger-text);
}

.uc-experts-detail-title {
	margin-top: 3px;
	font-size: 19px;
	font-weight: 900;
	line-height: 1.2;
	color: var(--uc-text);
}

.uc-experts-feedback-chip {
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--uc-text-secondary);
	border: 1px solid var(--uc-border);
	background: var(--uc-surface-raised);
	padding: 4px 8px;
	border-radius: 999px;
}

.uc-experts-detail-summary {
	margin-top: 8px;
	font-size: 12px;
	line-height: 1.45;
	color: var(--uc-text-secondary);
}

.uc-experts-detail-block {
	margin-top: 12px;
	border: 1px solid var(--uc-border);
	border-radius: 12px;
	background: linear-gradient(180deg, var(--uc-surface) 0%, var(--uc-surface-muted) 100%);
	padding: 10px;
}

.uc-experts-detail-block-title {
	font-size: 10px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--uc-text-muted);
}

.uc-experts-detail-copy {
	font-size: 12px;
	line-height: 1.45;
	color: var(--uc-text-secondary);
}

.uc-experts-detail-link {
	font-size: 12px;
	font-weight: 800;
	color: var(--uc-danger-text);
	word-break: break-all;
}

.uc-experts-create-actions .uc-surface-btn.is-active {
	background: linear-gradient(180deg, var(--uc-primary), var(--uc-primary));
	border-color: var(--uc-primary-darker);
	color: var(--uc-text-on-primary);
	box-shadow: 0 5px 12px rgba(127, 29, 29, 0.25);
}

#page-games .uc-games-layout {
	gap: 18px;
}

#page-games .uc-panel-red {
	border-radius: 16px;
	border-color: var(--uc-border);
	background: linear-gradient(180deg, var(--uc-surface-muted) 0%, var(--uc-surface-sunken) 100%);
	box-shadow: 0 12px 24px var(--uc-wash-soft);
}

#page-games .uc-panel-red .section-header {
	background: linear-gradient(90deg, var(--uc-primary) 0%, var(--uc-primary) 100%);
	color: var(--uc-text-on-primary);
	border-bottom-color: var(--uc-veil-soft);
	box-shadow: inset 0 -2px 0 var(--uc-gold);
}

.uc-games-header-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
}

.uc-games-header-icon {
	font-size: 12px;
	font-weight: 900;
	color: var(--uc-gold);
	background: transparent;
	border: 0;
	cursor: pointer;
}

#page-games .uc-games-profile-body {
	background: linear-gradient(180deg, var(--uc-surface-raised) 0%, var(--uc-surface-muted) 100%);
	color: var(--uc-text-secondary);
}

#page-games .uc-games-name {
	color: var(--uc-primary);
	text-shadow: none;
}

#page-games .uc-games-role {
	color: var(--uc-text-secondary);
	opacity: 1;
}

.uc-games-quote-card {
	margin-top: 14px;
	border-radius: 14px;
	background: linear-gradient(180deg, var(--uc-surface-raised) 0%, var(--uc-surface-sunken) 100%);
	border-color: var(--uc-border);
}

.uc-games-quote-copy {
	color: var(--uc-text-secondary);
	font-size: 11px;
	font-style: italic;
}

.uc-games-quote-meta {
	margin-top: 6px;
	color: var(--uc-text-muted);
}

#page-games .uc-games-grid {
	background: linear-gradient(180deg, var(--uc-surface-raised) 0%, var(--uc-surface-muted) 100%);
	color: var(--uc-text);
	border-radius: 0 0 14px 14px;
}

#page-games .uc-games-grid h3 {
	color: var(--uc-text);
	text-shadow: none;
}

#page-games .uc-games-grid p,
#page-games .uc-games-arena-hint {
	color: var(--uc-text-secondary);
	text-shadow: none;
}

#page-games .uc-games-hero .uc-games-hero-title {
	color: #fff;
	text-shadow: none;
}

#page-games .uc-games-hero .uc-games-hero-copy {
	color: rgba(248, 250, 252, 0.92);
}

#page-games .uc-games-hero .uc-games-arrow,
#page-games .uc-games-hero .uc-games-chip {
	color: rgba(248, 250, 252, 0.9);
}

#page-games .uc-game-card {
	background: var(--uc-surface);
	border: 2px solid var(--uc-border-strong);
	border-radius: 12px;
	color: var(--uc-text);
	box-shadow: var(--uc-dna-shadow-soft, 3px 3px 0 rgba(0, 0, 0, 0.18));
	overflow: hidden;
	position: relative;
}

#page-games .uc-game-card::after {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 3px;
	background: linear-gradient(90deg, var(--uc-primary), var(--uc-gold));
	pointer-events: none;
}

#page-games .uc-game-card--guy {
	border-color: color-mix(in srgb, #2563eb 55%, var(--uc-border-strong));
	box-shadow: var(--uc-dna-shadow-soft, 3px 3px 0 rgba(0, 0, 0, 0.18));
}
#page-games .uc-game-card--guy::after {
	background: linear-gradient(90deg, #1e3a8a, var(--uc-gold));
}

#page-games .uc-game-card--girl {
	border-color: color-mix(in srgb, #db2777 55%, var(--uc-border-strong));
	box-shadow: var(--uc-dna-shadow-soft, 3px 3px 0 rgba(0, 0, 0, 0.18));
}
#page-games .uc-game-card--girl::after {
	background: linear-gradient(90deg, #9d174d, var(--uc-gold));
}

#page-games .uc-game-card--redflag {
	border-color: color-mix(in srgb, #dc2626 55%, var(--uc-border-strong));
	box-shadow: var(--uc-dna-shadow-soft, 3px 3px 0 rgba(0, 0, 0, 0.18));
}
#page-games .uc-game-card--redflag::after {
	background: linear-gradient(90deg, var(--uc-primary-darker), var(--uc-danger), var(--uc-gold));
}

#page-games .uc-game-card--culture {
	border-color: color-mix(in srgb, #059669 55%, var(--uc-border-strong));
	box-shadow: var(--uc-dna-shadow-soft, 3px 3px 0 rgba(0, 0, 0, 0.18));
}
#page-games .uc-game-card--culture::after {
	background: linear-gradient(90deg, #065f46, var(--uc-warning), var(--uc-gold));
}

#page-games .uc-game-card--grade {
	border-color: color-mix(in srgb, #b91c1c 55%, var(--uc-border-strong));
	box-shadow: var(--uc-dna-shadow-soft, 3px 3px 0 rgba(0, 0, 0, 0.18));
}

#page-games .uc-game-card--animal {
	border-color: var(--uc-accent-wash-strong);
	box-shadow: var(--uc-dna-shadow-soft, 3px 3px 0 rgba(0, 0, 0, 0.18));
}

#page-games .uc-game-card:hover {
	background: var(--uc-surface-raised);
	color: var(--uc-text);
	transform: translateY(-2px);
}

#page-games .uc-game-card .uc-game-card-title {
	color: var(--uc-text);
	text-shadow: none;
	font-style: normal;
}

#page-games .uc-game-card .uc-game-card-copy {
	color: var(--uc-text-secondary);
	opacity: 1;
}

#page-games .uc-game-card .uc-game-mode {
	background: var(--uc-danger-surface);
	border-color: var(--uc-danger-border);
	color: var(--uc-danger-text);
}

#page-games .uc-game-card .uc-invite-btn,
#page-games .uc-game-card .uc-surface-btn {
	background: var(--uc-surface-raised);
	border: 2px solid var(--uc-border-strong);
	color: var(--uc-primary-ink);
}

#page-games .uc-game-card:hover .uc-invite-btn,
#page-games .uc-game-card:hover .uc-surface-btn {
	background: var(--uc-primary);
	color: var(--uc-text-on-primary);
	border-color: var(--uc-primary);
}

#page-games .uc-game-card .uc-invite-btn {
	background: var(--uc-surface-raised);
	border-color: var(--uc-border-strong);
	color: var(--uc-primary-ink);
}

#page-games .uc-game-card:hover .uc-invite-btn {
	background: var(--uc-primary);
	color: var(--uc-text-on-primary);
	border-color: var(--uc-primary);
}

.uc-games-network-panel {
	height: 520px;
	display: flex;
	flex-direction: column;
}

.uc-games-network-online {
	font-size: 10px;
	color: var(--uc-success);
	font-weight: 800;
}

.uc-games-results-card {
	margin: 10px;
	padding: 10px;
	border-radius: 12px;
	background: linear-gradient(180deg, var(--uc-surface-raised) 0%, var(--uc-surface-muted) 100%);
	border-color: var(--uc-border);
}

.uc-games-results-header {
	margin: -10px -10px 10px;
	border-bottom: 1px solid var(--uc-veil-soft);
	background: linear-gradient(90deg, var(--uc-primary) 0%, var(--uc-primary) 100%);
	color: var(--uc-text-on-primary);
	box-shadow: inset 0 -2px 0 var(--uc-gold);
}

.uc-games-results-list {
	display: grid;
	gap: 6px;
	font-size: 11px;
	color: var(--uc-text-secondary);
}

.uc-games-results-empty {
	opacity: .7;
}

.uc-games-network-search-wrap {
	padding: 10px;
	border-top: 1px solid var(--uc-slate-300);
	background: rgba(255, 255, 255, 0.5);
}

.uc-games-network-search {
	width: 100%;
	background: var(--uc-surface-raised);
	border: 1px solid var(--uc-border);
	color: var(--uc-text-secondary);
	padding: 6px 8px;
	font-size: 11px;
	border-radius: 10px;
}

.uc-games-challenge-toast {
	position: fixed;
	bottom: 24px;
	right: 24px;
	width: 320px;
	background: var(--uc-primary);
	border: 2px solid var(--uc-gold);
	box-shadow: 8px 8px 0 rgba(0, 0, 0, .45);
	z-index: 50;
	overflow: hidden;
	border-radius: 10px;
}

.uc-games-challenge-head {
	background: var(--uc-gold);
	color: var(--uc-text-on-gold);
	padding: 6px 10px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.uc-games-challenge-body {
	padding: 14px;
	display: flex;
	gap: 12px;
	align-items: center;
}

.uc-games-challenge-avatar-wrap {
	width: 56px;
	height: 56px;
	background: var(--uc-surface);
	border-radius: 999px;
	border: 2px solid var(--uc-border-strong);
	overflow: hidden;
	flex-shrink: 0;
}

.uc-games-challenge-avatar {
	width: 56px;
	height: 56px;
}

.uc-games-challenge-copy {
	flex: 1;
}

.uc-games-challenge-actions {
	display: flex;
	border-top: 1px solid var(--uc-veil-soft);
}

.uc-games-challenge-btn {
	flex: 1;
	padding: 10px 0;
	color: var(--uc-text-on-primary);
	font-weight: bold;
	font-size: 10px;
	text-transform: uppercase;
	border: 0;
	cursor: pointer;
}

.uc-games-challenge-btn.is-decline {
	background: #2d0a05;
	border-right: 1px solid var(--uc-veil-soft);
}

.uc-games-challenge-btn.is-accept {
	background: #15803d;
}

@media (max-width: 900px) {
	#page-profile .uc-profile-duo-card {
		min-width: 100%;
	}

	#page-wire .uc-surface-card {
		padding: 14px;
	}

	#page-games .uc-games-network-panel {
		height: auto;
		min-height: 440px;
	}
}

@media (min-width: 1024px) {
	/* Wire grid handled by Tailwind classes in markup */
}

@media (max-width: 640px) {
	#page-profile .uc-profile-main-layout {
		gap: 12px;
	}

	#page-wire .uc-wire-content {
		padding: 12px;
	}

	#page-wire .uc-surface-card {
		padding: 11px;
		border-radius: 14px;
	}

	#page-wire .uc-wire-selected-title {
		font-size: 18px;
	}

	#page-wire .uc-wire-tab {
		width: 100%;
		justify-content: center;
	}

	#page-profile .uc-profile-mood-input-row {
		flex-wrap: wrap;
	}

	#page-profile .uc-profile-mood-text-input {
		flex: 1 1 100%;
	}

	#page-profile .uc-profile-ad-slot {
		font-size: 10px;
		height: 52px;
	}

	.uc-games-challenge-toast {
		right: 12px;
		bottom: 12px;
		width: calc(100vw - 24px);
		max-width: 320px;
	}
}

@media (min-width: 900px) {
	.uc-browse-filter-grid {
		grid-template-columns: repeat(12, minmax(0, 1fr));
		grid-template-areas:
			"search search search search state state city city radius radius show show"
			"agemin agemin agemax agemax sort sort sort sort online online submit submit";
	}

	/* Primary browse row: Search · City · State · Online · Search btn on one line. */
	.uc-browse-filter-grid--simple {
		grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr) minmax(0, 1fr) auto auto;
		grid-template-areas: "search city state online submit";
		align-items: end;
		column-gap: 10px;
	}

	.uc-browse-filter-grid--simple .uc-browse-online,
	.uc-browse-filter-grid--simple .uc-browse-submit {
		display: flex;
		align-items: stretch;
		min-width: 0;
	}

	.uc-browse-filter-grid--simple .uc-browse-online-label {
		height: 42px;
		margin: 0;
		white-space: nowrap;
		justify-content: center;
	}

	.uc-browse-filter-grid--simple .uc-browse-submit .uc-surface-btn {
		height: 42px;
		min-width: 108px;
		padding-left: 16px;
		padding-right: 16px;
		width: auto;
	}

	.uc-circles-primary-row {
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: end;
		gap: 14px;
	}

	.uc-circles-primary-actions {
		justify-content: flex-end;
		padding-bottom: 2px;
	}

	.uc-circles-filters-toggle {
		display: none;
	}

	.uc-circles-advanced-filters {
		display: block;
		margin-top: 16px;
	}

	.uc-circles-filter-grid {
		grid-template-columns: repeat(12, minmax(0, 1fr));
		grid-template-areas: "state state state status status status sort sort sort submit submit submit";
	}

	.uc-circles-results-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1280px) {
	.uc-circles-results-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.uc-chat-lobby-shell {
	display: grid;
	gap: 10px;
}

.uc-chat-lobby-hero {
	padding: 14px;
	background: var(--uc-dna-card-surface);
	color: var(--uc-text);
}

.uc-chat-lobby-title {
	font-size: 20px;
	font-weight: 900;
	color: var(--uc-text);
	letter-spacing: 0.01em;
}

.uc-chat-lobby-subtitle {
	margin-top: 4px;
	color: var(--uc-text-secondary);
	font-size: 13px;
}

.uc-chat-room-shell {
	border: 2px solid var(--uc-gray-900);
	background: var(--uc-surface-raised);
	box-shadow: 4px 4px 0 var(--uc-border-strong);
	overflow: hidden;
}

.uc-chat-room-shell.has-neighborhood-theme {
	background-color: var(--uc-room-theme-bg, var(--uc-text-muted));
	border-color: var(--uc-room-theme-border, var(--uc-border-strong));
}

.uc-chat-room-topbar.has-neighborhood-theme {
	border-bottom: 3px solid var(--uc-room-theme-border);
	background: linear-gradient(to bottom, var(--uc-room-theme-accent), var(--uc-room-theme-text));
	color: var(--uc-text-on-primary);
}

.uc-chat-room-topbar {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	justify-content: space-between;
	background: var(--uc-primary);
	color: var(--uc-text-on-primary);
	border-bottom: 3px solid var(--uc-gold);
	padding: 14px 16px;
}

.uc-chat-room-topbar-left {
	display: flex;
	align-items: center;
	gap: 10px;
}

.uc-chat-room-presence-dot {
	width: 10px;
	height: 10px;
	border-radius: 999px;
	background: #4ade80;
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.uc-chat-room-label {
	font-weight: 900;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	font-size: 18px;
}

.uc-chat-room-topbar-right {
	display: flex;
	align-items: center;
	gap: 10px;
}

.uc-chat-room-active-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	border: 1px solid var(--uc-veil-strong);
	background: var(--uc-scrim-soft);
	padding: 9px 12px;
	font-size: 12px;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.uc-chat-room-exit-btn {
	border-radius: 9px;
	border: 1px solid var(--uc-veil-strong);
	background: var(--uc-chrome);
	color: var(--uc-text-on-primary);
	padding: 10px 14px;
	font-size: 12px;
	font-weight: 900;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.uc-chat-room-content {
	display: grid;
	grid-template-columns: 1fr;
}

.uc-chat-feed-shell {
	border-right: 1px solid var(--uc-surface-sunken);
	background: var(--uc-surface-raised);
}

.uc-chat-feed-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px;
	border-bottom: 1px solid var(--uc-surface-sunken);
	background: var(--uc-surface);
}

.uc-chat-feed-title {
	font-size: 11px;
	font-weight: 900;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--uc-text-muted);
}

.uc-chat-feed-online {
	font-size: 11px;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--uc-text);
}

.uc-chat-feed-stream {
	padding: 16px;
	max-height: 560px;
	min-height: 300px;
	overflow: auto;
	display: grid;
	gap: 14px;
	background: var(--uc-surface-raised);
}

.uc-chat-composer {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 12px 16px;
	background: var(--uc-surface);
	border-top: 1px solid var(--uc-surface-sunken);
}

.uc-chat-composer-input {
	flex: 1 1 320px;
	border: 1px solid var(--uc-border);
	border-radius: 999px;
	padding: 11px 16px;
	font-size: 15px;
}

.uc-chat-composer-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.uc-chat-send-btn,
.uc-chat-report-btn {
	border-radius: 10px;
	padding: 11px 14px;
	font-size: 12px;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.uc-chat-send-btn {
	background: var(--uc-primary);
	color: var(--uc-text-on-primary);
	border: 1px solid var(--uc-primary-darker);
}

.uc-chat-report-btn {
	background: var(--uc-chrome);
	color: var(--uc-text-on-primary);
	border: 1px solid var(--uc-slate-800);
}

.uc-chat-composer-note {
	padding: 0 16px 12px;
	font-size: 11px;
	font-weight: 900;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--uc-text-muted);
}

.uc-chat-members-shell {
	background: var(--uc-surface-muted);
	border-left: 1px solid var(--uc-surface-sunken);
}

.uc-chat-members-header {
	padding: 16px;
	border-bottom: 1px solid var(--uc-surface-sunken);
	font-size: 12px;
	font-weight: 900;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--uc-text-secondary);
	background: var(--uc-surface);
}

.uc-chat-members-list {
	padding: 12px;
	display: grid;
	gap: 8px;
	max-height: 560px;
	overflow: auto;
}

.uc-chat-members-note {
	margin: 12px;
	padding: 14px;
	border: 1px dashed var(--uc-slate-300);
	border-radius: 12px;
	font-size: 11px;
	font-weight: 900;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--uc-text-muted);
	text-align: center;
	background: rgba(255, 255, 255, 0.8);
}

@media (min-width: 1024px) {
	.uc-chat-room-content {
		grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.7fr);
	}
}

.uc-chat-room-shell {
	border-radius: 18px;
	box-shadow: 0 18px 36px var(--uc-shadow-ink-strong);
}

.uc-chat-room-label {
	font-size: 16px;
	font-style: italic;
	letter-spacing: 0.08em;
}

.uc-chat-room-presence-dot {
	width: 14px;
	height: 14px;
	box-shadow: 0 0 0 3px rgba(134, 239, 172, 0.35);
}

.uc-chat-room-active-chip {
	border-radius: 12px;
	background: rgba(127, 29, 29, 0.95);
	font-size: 13px;
	letter-spacing: 0.04em;
	padding: 10px 16px;
}

.uc-chat-room-active-chip #chat-room-active-count,
.uc-chat-room-active-chip .uc-chat-active-count {
	color: #4ade80;
}

.uc-chat-room-exit-btn {
	border-radius: 12px;
	font-size: 13px;
	padding: 10px 20px;
	background: var(--uc-chrome);
	border: 1px solid var(--uc-slate-700);
}

.uc-chat-feed-shell,
.uc-chat-members-shell {
	background: var(--uc-surface-raised);
}

.uc-chat-feed-header {
	padding: 12px 18px;
}

.uc-chat-feed-title-wrap {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.uc-chat-feed-title-icon {
	font-size: 18px;
	line-height: 1;
	color: var(--uc-danger-text);
}

.uc-chat-feed-title {
	font-size: 13px;
	letter-spacing: 0.16em;
	color: var(--uc-text-muted);
}

.uc-chat-feed-tools {
	display: inline-flex;
	align-items: center;
	gap: 12px;
}

.uc-chat-feed-tool-btn {
	border: 0;
	background: transparent;
	color: var(--uc-text-muted);
	font-size: 18px;
	line-height: 1;
	padding: 0;
	cursor: pointer;
}

.uc-chat-feed-tool-btn:hover {
	color: var(--uc-text-muted);
}

.uc-chat-feed-online {
	display: none;
}

.uc-chat-feed-stream {
	padding: 18px 18px 6px;
	max-height: 620px;
	min-height: 420px;
	gap: 18px;
}

.uc-chat-msg {
	display: flex;
	align-items: flex-start;
	gap: 14px;
}

.uc-chat-msg-avatar {
	width: 48px;
	height: 48px;
	border-radius: 999px;
	border-width: 4px;
	display: grid;
	place-items: center;
	font-size: 15px;
	font-weight: 900;
	flex-shrink: 0;
}

.uc-chat-msg-meta {
	display: flex;
	align-items: baseline;
	gap: 10px;
}

.uc-chat-msg-author {
	font-size: 14px;
	font-weight: 900;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.uc-chat-msg-time {
	font-size: 12px;
	font-weight: 800;
	color: var(--uc-text-muted);
	text-transform: uppercase;
}

.uc-chat-msg-bubble {
	margin-top: 7px;
	display: inline-block;
	max-width: 88%;
	background: var(--uc-surface-muted);
	border-radius: 18px;
	padding: 14px 18px;
	font-size: 15px;
	line-height: 1.3;
	color: var(--uc-text-secondary);
	border-left: 3px solid var(--uc-surface-sunken);
	box-shadow: 0 1px 0 rgba(148, 163, 184, 0.22);
}

.uc-chat-bubble-accent-red-50 { border-left-color: #fca5a5; }
.uc-chat-bubble-accent-orange-50 { border-left-color: #fdba74; }
.uc-chat-bubble-accent-pink-50 { border-left-color: #f9a8d4; }
.uc-chat-bubble-accent-amber-50 { border-left-color: var(--uc-gold); }
.uc-chat-bubble-accent-purple-50 { border-left-color: #d8b4fe; }
.uc-chat-bubble-accent-emerald-50 { border-left-color: #6ee7b7; }
.uc-chat-bubble-accent-indigo-50 { border-left-color: #a5b4fc; }
.uc-chat-bubble-accent-cyan-50 { border-left-color: #67e8f9; }
.uc-chat-bubble-accent-rose-50 { border-left-color: #fda4af; }
.uc-chat-bubble-accent-blue-50 { border-left-color: #93c5fd; }

.uc-chat-history-marker {
	padding: 10px 16px 14px;
	text-align: center;
	font-size: 11px;
	font-weight: 900;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	color: var(--uc-text-muted);
	border-top: 1px solid var(--uc-border);
	background: var(--uc-surface-raised);
}

/* ── Message reactions ─────────────────────────────────────────────────── */
.uc-chat-msg-reactions {
	position: relative;
	display: flex;
	align-items: center;
	gap: 4px;
	margin-top: 6px;
	flex-wrap: wrap;
}

.uc-chat-reaction-chip {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 9px 3px 7px;
	border-radius: 999px;
	border: 1.5px solid var(--uc-surface-sunken);
	background: var(--uc-surface-raised);
	font-size: 13px;
	font-weight: 800;
	cursor: pointer;
	transition: background 0.12s, border-color 0.12s, transform 0.12s, box-shadow 0.12s;
	line-height: 1.5;
}
.uc-chat-reaction-chip:hover { background: var(--uc-surface-muted); border-color: var(--uc-border); transform: translateY(-1px); }
.uc-chat-reaction-chip.is-mine { background: #fef9c3; border-color: var(--uc-gold); box-shadow: 2px 2px 0 var(--uc-border-strong); }
.uc-chat-reaction-chip.is-hot {
	background: var(--uc-surface-soft);
	border-color: #fb923c;
	box-shadow: 2px 2px 0 #c2410c;
	animation: uc-reaction-hot 0.9s ease-in-out infinite alternate;
}
.uc-chat-reaction-emoji { font-size: 15px; line-height: 1; }
.uc-chat-reaction-count {
	min-width: 1.1em;
	font-size: 11px;
	font-weight: 900;
	letter-spacing: 0.02em;
	color: var(--uc-text);
	font-variant-numeric: tabular-nums;
}
.uc-chat-reaction-chip.is-hot .uc-chat-reaction-count { color: #c2410c; }

.uc-chat-msg-reactions.is-vibe-pulse {
	animation: uc-vibe-pulse 1.1s ease-in-out infinite;
}

@keyframes uc-reaction-hot {
	from { transform: translateY(0) scale(1); }
	to { transform: translateY(-1px) scale(1.04); }
}
@keyframes uc-vibe-pulse {
	0%, 100% { filter: drop-shadow(0 0 0 transparent); }
	50% { filter: drop-shadow(0 0 6px rgba(251, 146, 60, 0.55)); }
}

.uc-chat-msg-reply {
	display: inline-flex;
	align-items: center;
	margin-left: 2px;
	padding: 2px 8px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--uc-text-muted);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.12s, color 0.12s, background 0.12s;
}
.uc-chat-msg:hover .uc-chat-msg-reply,
.uc-chat-msg-reply:focus { opacity: 1; }
.uc-chat-msg-reply:hover { color: var(--uc-text); background: var(--uc-surface-muted); }

.uc-chat-msg-quote {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0 0 8px;
	padding: 7px 10px;
	border-left: 3px solid var(--uc-warning);
	border-radius: 0 8px 8px 0;
	background: var(--uc-wash-weak);
}
.uc-chat-msg-quote-who {
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #b45309;
}
.uc-chat-msg-quote-text {
	font-size: 11px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--uc-text-secondary);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 100%;
}

.uc-chat-reaction-add {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 12px;
	border: 1.5px dashed var(--uc-slate-300);
	background: transparent;
	font-size: 14px;
	color: var(--uc-text-muted);
	cursor: pointer;
	transition: border-color 0.12s, color 0.12s, opacity 0.12s;
	opacity: 0;
	line-height: 1;
}
.uc-chat-msg:hover .uc-chat-reaction-add,
.uc-chat-reaction-chip:focus ~ .uc-chat-reaction-add { opacity: 1; }
.uc-chat-reaction-add:focus { opacity: 1; }
.uc-chat-reaction-add:hover { border-color: var(--uc-border); color: var(--uc-text-secondary); opacity: 1; }

.uc-chat-reaction-picker {
	position: absolute;
	bottom: calc(100% + 4px);
	left: 0;
	display: flex;
	gap: 2px;
	padding: 6px 8px;
	background: var(--uc-surface);
	border: 2px solid var(--uc-border-strong);
	border-radius: 10px;
	box-shadow: 3px 3px 0 var(--uc-border-strong);
	z-index: 30;
}
.uc-chat-reaction-picker-btn {
	font-size: 20px;
	cursor: pointer;
	padding: 2px 3px;
	border-radius: 4px;
	background: transparent;
	border: none;
	transition: transform 0.1s;
	line-height: 1;
}
.uc-chat-reaction-picker-btn:hover { transform: scale(1.3); background: var(--uc-surface-muted); }

/* ── Chat lobby: history chips + resume banner ─────────────────────────── */
.uc-chat-lobby-history-wrap {
	grid-column: 1 / -1;
	margin-bottom: 4px;
	padding: 12px;
	background: var(--uc-surface-sunken);
	border: 2px solid var(--uc-dna-border-strong);
	border-radius: var(--uc-dna-card-radius);
	box-shadow: var(--uc-dna-shadow-soft);
}

.uc-chat-lobby-history-title {
	font-size: 10px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--uc-gold);
	margin-bottom: 8px;
}

.uc-chat-lobby-history-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.uc-chat-lobby-history-chip {
	padding: 4px 10px;
	background: var(--uc-surface-raised);
	border: 1px solid var(--uc-border);
	border-radius: 999px;
	font-size: 11px;
	font-weight: 800;
	color: var(--uc-text);
	transition: all 0.12s ease;
}

.uc-chat-lobby-history-chip:hover {
	border-color: var(--uc-primary);
	background: var(--uc-primary-wash);
	color: var(--uc-text);
	transform: translateY(-1px);
}

.uc-chat-lobby-resume-slot:not(.hidden) {
	display: block;
	margin-bottom: 12px;
}

/* Resume lives inside lobby intro — strip, not a third outer card */
.uc-chat-resume-banner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas:
		"label label"
		"room btn";
	align-items: center;
	column-gap: 10px;
	row-gap: 6px;
	padding: 10px 12px;
	border-radius: 10px;
	border: 1px solid var(--uc-border);
	background: var(--uc-surface-sunken);
	box-shadow: inset 3px 0 0 var(--uc-gold);
}
@media (min-width: 640px) {
	.uc-chat-resume-banner {
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-areas: "label room btn";
		column-gap: 12px;
		row-gap: 0;
	}
}
.uc-chat-resume-label {
	grid-area: label;
	font-size: 10px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--uc-gold);
	min-width: 0;
	line-height: 1.25;
}
.uc-chat-resume-room {
	grid-area: room;
	font-size: 13px;
	font-weight: 900;
	color: var(--uc-text);
	background: transparent;
	border: 0;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	line-height: 1.25;
}
.uc-chat-resume-btn {
	grid-area: btn;
	justify-self: end;
	flex-shrink: 0;
	white-space: nowrap;
}

.uc-chat-composer {
	flex-wrap: nowrap;
	align-items: center;
	gap: 14px;
	padding: 16px 18px;
}

.uc-chat-composer-input {
	flex: 1 1 auto;
	border-radius: 20px;
	padding: 16px 18px;
	font-size: 13px;
	background: var(--uc-surface);
}

.uc-chat-send-btn {
	padding: 14px 28px;
	font-size: 13px;
	border-radius: 14px;
	box-shadow: inset 0 -4px 0 rgba(127, 29, 29, 0.45);
}

.uc-chat-report-btn {
	display: none;
}

.uc-chat-composer-note {
	padding: 0 18px 16px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 11px;
	color: var(--uc-text-muted);
}

.uc-chat-composer-note-dot {
	width: 9px;
	height: 9px;
	border-radius: 999px;
	background: var(--uc-primary);
}

.uc-chat-typing-indicator {
	min-height: 20px;
	padding: 0 16px 4px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: var(--uc-text-muted);
	display: flex;
	align-items: center;
	gap: 6px;
	transition: opacity 0.2s;
}

.uc-chat-typing-indicator:empty {
	display: none;
}

.uc-chat-typing-dots {
	display: inline-flex;
	gap: 3px;
	align-items: center;
}

.uc-chat-typing-dots span {
	width: 4px;
	height: 4px;
	border-radius: 999px;
	background: var(--uc-primary);
	animation: uc-typing-bounce 1.1s infinite ease-in-out;
}

.uc-chat-typing-dots span:nth-child(2) { animation-delay: 0.18s; }
.uc-chat-typing-dots span:nth-child(3) { animation-delay: 0.36s; }

@keyframes uc-typing-bounce {
	0%, 80%, 100% { transform: translateY(0); opacity: 0.45; }
	40%           { transform: translateY(-4px); opacity: 1; }
}

.uc-chat-members-header {
	padding: 14px 16px;
	font-size: 12px;
	color: var(--uc-text-muted);
}

.uc-chat-members-header-icon {
	color: var(--uc-danger-text);
	font-size: 14px;
}

.uc-chat-members-list {
	padding: 14px;
	gap: 12px;
	max-height: 620px;
}

.uc-chat-member-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px;
	border-radius: 12px;
	border: 1px solid var(--uc-surface-sunken);
	background: rgba(255, 255, 255, 0.85);
}

.uc-chat-member-link {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	text-decoration: none;
}

.uc-chat-member-avatar {
	position: relative;
	width: 52px;
	height: 52px;
	border-radius: 999px;
	border-width: 4px;
	display: grid;
	place-items: center;
	font-size: 16px;
	font-weight: 900;
	flex-shrink: 0;
}

.uc-chat-member-dot {
	position: absolute;
	right: -2px;
	bottom: -2px;
	width: 13px;
	height: 13px;
	border-radius: 999px;
	border: 2px solid var(--uc-surface-raised);
}

.uc-chat-member-meta {
	min-width: 0;
}

.uc-chat-member-name {
	font-size: 15px;
	font-weight: 900;
	line-height: 1.05;
	text-transform: uppercase;
}

.uc-chat-member-status {
	margin-top: 2px;
	font-size: 11px;
	color: var(--uc-text-muted);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.uc-chat-member-pull {
	border-radius: 11px;
	border: 1px solid var(--uc-gray-300);
	background: var(--uc-surface-raised);
	color: var(--uc-text-muted);
	padding: 8px 14px;
	font-size: 10px;
	font-weight: 900;
	text-transform: uppercase;
}

.uc-chat-members-note {
	font-size: 11px;
	letter-spacing: 0.12em;
}

@media (max-width: 1023px) {
	.uc-chat-room-label {
		font-size: 13px;
	}

	.uc-chat-room-active-chip,
	.uc-chat-room-exit-btn {
		font-size: 14px;
	}

	.uc-chat-feed-title {
		font-size: 13px;
	}

	.uc-chat-feed-tool-btn {
		font-size: 18px;
	}

	.uc-chat-msg-author {
		font-size: 13px;
	}

	.uc-chat-msg-time {
		font-size: 12px;
	}

	.uc-chat-msg-bubble {
		font-size: 19px;
	}

	.uc-chat-history-marker {
		font-size: 11px;
	}

	.uc-chat-composer-input {
		font-size: 15px;
	}

	.uc-chat-send-btn {
		font-size: 13px;
	}

	.uc-chat-composer-note {
		font-size: 11px;
	}

	.uc-chat-members-header {
		font-size: 12px;
	}

	.uc-chat-members-header-icon {
		font-size: 14px;
	}

	.uc-chat-member-name {
		font-size: 12px;
	}

	.uc-chat-member-status {
		font-size: 11px;
	}

	.uc-chat-member-pull {
		font-size: 10px;
	}

	.uc-chat-members-note {
		font-size: 11px;
	}
}

/* Final chat-room parity pass: mockchat layout + Urban Chat DNA accents */
.uc-chat-room-shell {
	background: var(--uc-surface);
}

.uc-chat-room-topbar {
	padding: 12px 24px;
	border-bottom: 4px solid var(--uc-gold);
}

.uc-chat-room-label {
	font-size: 16px;
	letter-spacing: 0.05em;
}

.uc-chat-room-active-chip {
	padding: 6px 12px;
	border-radius: 6px;
}

.uc-chat-room-exit-btn {
	padding: 6px 12px;
	border-radius: 6px;
}

.uc-chat-feed-header {
	padding: 12px 24px;
	border-bottom: 1px solid var(--uc-surface-muted);
	background: var(--uc-surface);
}

.uc-chat-feed-title {
	font-size: 10px;
	letter-spacing: 0.2em;
}

.uc-chat-feed-stream {
	padding: 24px;
	gap: 24px;
	background: var(--uc-surface);
}

.uc-chat-msg {
	gap: 16px;
}

.uc-chat-msg-meta {
	margin-bottom: 2px;
}

.uc-chat-msg-author {
	font-size: 13px;
}

.uc-chat-msg-time {
	font-size: 9px;
	color: var(--uc-text-muted);
}

.uc-chat-msg-bubble {
	border-radius: 0 12px 12px 12px;
	padding: 12px 16px;
	border-left: 2px solid var(--uc-surface-muted);
	background: var(--uc-surface-raised);
}

.uc-chat-history-marker {
	padding: 32px 0;
	font-size: 9px;
	letter-spacing: 0.4em;
	color: var(--uc-text-muted);
	background: var(--uc-surface);
	border-top: 0;
}

.uc-chat-composer {
	margin: 0 24px;
	padding: 16px;
	border: 1px solid var(--uc-border);
	border-radius: 12px;
	background: var(--uc-surface);
	box-shadow: 0 4px 6px -1px var(--uc-shadow-ink-soft);
}

.uc-chat-self-avatar {
	width: 40px;
	height: 40px;
	border-radius: 999px;
	border: 2px solid var(--uc-info-border);
	background: var(--uc-surface-sunken);
	color: var(--uc-info-text);
	display: grid;
	place-items: center;
	font-size: 14px;
	font-weight: 900;
	flex-shrink: 0;
}

.uc-chat-composer-input {
	border: 0;
	outline: 0;
	padding: 10px 0;
	border-radius: 0;
	font-size: 14px;
}

.uc-chat-composer-emoji {
	border: 0;
	background: transparent;
	color: var(--uc-text-muted);
	font-size: 20px;
	line-height: 1;
	padding: 0 4px;
}

.uc-chat-send-btn {
	padding: 8px 24px;
	border-radius: 8px;
	font-size: 10px;
	letter-spacing: 0.1em;
}

.uc-chat-composer-note {
	padding: 12px 24px 16px;
}

.uc-chat-members-shell {
	background: var(--uc-surface-soft);
}

.uc-chat-members-header {
	padding: 20px;
	font-size: 10px;
	letter-spacing: 0.2em;
	border-bottom: 1px solid var(--uc-border);
}

.uc-chat-members-list {
	padding: 16px;
	gap: 16px;
}

.uc-chat-member-row {
	padding: 8px;
	background: transparent;
	border: 0;
}

.uc-chat-member-name {
	font-size: 11px;
}

.uc-chat-member-status {
	font-size: 8px;
	color: var(--uc-text-muted);
}

.uc-chat-member-pull {
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 8px;
}

.uc-chat-members-note {
	margin: 24px;
	padding: 12px;
	border-radius: 8px;
}

.uc-chat-room-footer {
	background: var(--uc-surface-raised);
	border-top: 1px solid var(--uc-border);
	padding: 8px;
	text-align: center;
	font-size: 10px;
	color: var(--uc-text-muted);
	font-weight: 900;
	letter-spacing: 0.4em;
	text-transform: uppercase;
}

@media (max-width: 1023px) {
	.uc-chat-composer {
		margin: 0 12px;
	}
	.uc-chat-room-topbar {
		padding: 10px 14px;
	}
}

/* Chat room visual uplift: stronger hierarchy + Urban DNA punch */
.uc-chat-room-shell {
	border: 2px solid var(--uc-slate-900);
	box-shadow: 0 22px 42px var(--uc-shadow-ink-strong);
}

.uc-chat-room-topbar {
	background: linear-gradient(90deg, var(--uc-primary-darker), var(--uc-primary) 45%, var(--uc-primary-darker));
}

.uc-chat-room-label {
	font-size: 18px;
	font-weight: 900;
}

.uc-chat-room-presence-dot {
	box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.35), 0 0 12px rgba(74, 222, 128, 0.45);
}

.uc-chat-room-active-chip {
	background: var(--uc-scrim);
	border: 1px solid var(--uc-veil-soft);
	font-size: 12px;
	padding: 8px 14px;
}

.uc-chat-room-exit-btn {
	background: var(--uc-chrome);
	border-color: var(--uc-border);
	font-size: 12px;
	padding: 9px 15px;
}

.uc-chat-feed-title {
	font-size: 11px;
	color: var(--uc-text-muted);
}

.uc-chat-msg-avatar {
	width: 44px;
	height: 44px;
	border-width: 3px;
}

.uc-chat-msg-author {
	font-size: 31px;
	letter-spacing: 0.03em;
}

.uc-chat-msg-time {
	font-size: 18px;
	font-weight: 800;
}

.uc-chat-msg-bubble {
	font-size: 32px;
	font-weight: 600;
	color: var(--uc-text-secondary);
	background: var(--uc-surface-raised);
	box-shadow: 0 1px 0 rgba(148, 163, 184, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.uc-chat-history-marker {
	font-size: 18px;
	letter-spacing: 0.26em;
}

.uc-chat-composer {
	margin: 0 24px 8px;
	border-radius: 16px;
	box-shadow: 0 8px 16px -8px var(--uc-scrim);
}

.uc-chat-composer-input {
	font-size: 30px;
	font-weight: 600;
	color: var(--uc-text-secondary);
}

.uc-chat-self-avatar {
	width: 46px;
	height: 46px;
	font-size: 25px;
}

.uc-chat-composer-emoji {
	font-size: 34px;
}

.uc-chat-send-btn {
	font-size: 23px;
	padding: 12px 26px;
	border-radius: 12px;
	background: var(--uc-primary);
	border: 1px solid var(--uc-primary-darker);
	box-shadow: inset 0 -4px 0 rgba(107, 26, 26, 0.72);
}

.uc-chat-composer-note {
	font-size: 18px;
	letter-spacing: 0.14em;
}

.uc-chat-members-shell {
	background: linear-gradient(180deg, var(--uc-surface-raised) 0%, var(--uc-surface-muted) 100%);
}

.uc-chat-members-header {
	font-size: 11px;
}

.uc-chat-member-row {
	padding: 10px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.84);
	border: 1px solid var(--uc-surface-sunken);
	box-shadow: 0 1px 0 rgba(148, 163, 184, 0.16);
}

.uc-chat-member-avatar {
	width: 46px;
	height: 46px;
	border-width: 3px;
	font-size: 17px;
}

.uc-chat-member-name {
	font-size: 13px;
}

.uc-chat-member-status {
	font-size: 9px;
}

.uc-chat-member-pull {
	font-size: 9px;
	padding: 5px 10px;
	background: var(--uc-surface);
	color: var(--uc-text-muted);
}

.uc-chat-members-note {
	background: rgba(248, 250, 252, 0.95);
	border: 1px dashed var(--uc-slate-300);
}

.uc-chat-room-footer {
	font-size: 10px;
	letter-spacing: 0.34em;
}

@media (max-width: 1023px) {
	.uc-chat-msg-author {
		font-size: 14px;
	}
	.uc-chat-msg-time {
		font-size: 10px;
	}
	.uc-chat-msg-bubble {
		font-size: 15px;
	}
	.uc-chat-composer-input {
		font-size: 14px;
	}
	.uc-chat-self-avatar {
		width: 40px;
		height: 40px;
		font-size: 14px;
	}
	.uc-chat-send-btn {
		font-size: 10px;
		padding: 8px 14px;
	}
	.uc-chat-composer-note {
		font-size: 11px;
	}
}

/* Chat-room target parity lock (mockchat.html aligned) */
#page-chat-room .uc-chat-room-shell {
	border: 1px solid var(--uc-gray-800) !important;
	border-radius: 12px !important;
	box-shadow: 0 20px 50px var(--uc-scrim-strong) !important;
	background: var(--uc-surface) !important;
}

#page-chat-room .uc-chat-room-topbar {
	background: var(--uc-primary-darker) !important;
	border-bottom: 4px solid var(--uc-gold) !important;
	padding: 12px 24px !important;
}

#page-chat-room .uc-chat-room-label {
	font-size: 16px !important;
	font-style: italic !important;
	font-weight: 900 !important;
	letter-spacing: 0.05em !important;
}

#page-chat-room .uc-chat-room-presence-dot {
	width: 12px !important;
	height: 12px !important;
	border: 2px solid var(--uc-primary-darker) !important;
	box-shadow: 0 0 10px #4ade80 !important;
}

#page-chat-room .uc-chat-room-topbar-right {
	gap: 16px !important;
}

#page-chat-room .uc-chat-room-active-chip {
	display: inline-flex !important;
	align-items: center !important;
	gap: 8px !important;
	background: var(--uc-scrim) !important;
	border: 1px solid var(--uc-veil-weak) !important;
	border-radius: 6px !important;
	padding: 6px 12px !important;
	font-size: 12px !important;
}

#page-chat-room .uc-chat-room-exit-btn {
	background: var(--uc-surface-muted) !important;
	border: 1px solid var(--uc-slate-300) !important;
	border-radius: 11px !important;
	padding: 10px 14px !important;
	font-size: 12px !important;
	color: var(--uc-text) !important;
	box-shadow: 0 3px 8px var(--uc-wash-soft) !important;
}

#page-chat-room .uc-chat-room-content {
	background: var(--uc-surface-soft) !important;
}

#page-chat-room .uc-chat-feed-shell {
	background: var(--uc-surface) !important;
}

#page-chat-room .uc-chat-feed-header {
	padding: 12px 24px !important;
	border-bottom: 1px solid var(--uc-surface-muted) !important;
	background: var(--uc-surface) !important;
}

#page-chat-room .uc-chat-feed-title {
	font-size: 10px !important;
	letter-spacing: 0.2em !important;
}

#page-chat-room .uc-chat-feed-tool-btn {
	font-size: 16px !important;
	color: var(--uc-text-muted) !important;
}

#page-chat-room .uc-chat-feed-stream {
	padding: 24px !important;
	gap: 24px !important;
	min-height: 520px !important;
	max-height: 520px !important;
	background: var(--uc-surface) !important;
}

#page-chat-room .uc-chat-msg {
	gap: 16px !important;
}

#page-chat-room .uc-chat-msg-avatar {
	width: 40px !important;
	height: 40px !important;
	border-width: 2px !important;
	font-size: 12px !important;
}

#page-chat-room .uc-chat-msg-author {
	font-size: 13px !important;
}

#page-chat-room .uc-chat-msg-time {
	font-size: 9px !important;
	color: var(--uc-text-muted) !important;
}

.uc-chat-msg-status {
	font-size: 10px;
	margin-left: 4px;
	font-weight: 900;
	line-height: 1;
}

.uc-chat-msg-status.is-pending {
	color: var(--uc-text-muted);
}

.uc-chat-msg-status.is-delivered {
	color: var(--uc-gold-dim);
	text-shadow: 0 0 4px rgba(212, 160, 23, 0.3);
}

#page-chat-room .uc-chat-msg-bubble {
	background: var(--uc-surface-raised) !important;
	padding: 12px 16px !important;
	border-radius: 0 12px 12px 12px !important;
	border-left: 2px solid var(--uc-surface-muted) !important;
	font-size: 15px !important;
	line-height: 1.5 !important;
}

#page-chat-room .uc-chat-history-marker {
	padding: 32px 0 !important;
	font-size: 9px !important;
	letter-spacing: 0.4em !important;
	color: var(--uc-text-muted) !important;
	background: var(--uc-surface) !important;
	border-top: 0 !important;
}

#page-chat-room .uc-chat-composer {
	margin: 0 24px !important;
	padding: 16px !important;
	border: 1px solid var(--uc-border) !important;
	border-radius: 12px !important;
	box-shadow: 0 4px 6px -1px var(--uc-shadow-ink-soft) !important;
	background: var(--uc-surface) !important;
}

#page-chat-room .uc-chat-self-avatar {
	width: 40px !important;
	height: 40px !important;
	font-size: 14px !important;
}

#page-chat-room .uc-chat-composer-input {
	font-size: 14px !important;
	font-weight: 500 !important;
	color: var(--uc-text-secondary) !important;
}

#page-chat-room .uc-chat-composer-emoji {
	font-size: 20px !important;
}

#page-chat-room .uc-chat-send-btn {
	background: linear-gradient(135deg, var(--uc-primary), var(--uc-primary-darker)) !important;
	border: 1px solid var(--uc-primary-darker) !important;
	border-radius: 11px !important;
	padding: 10px 16px !important;
	font-size: 10px !important;
	letter-spacing: 0.11em !important;
	box-shadow: 0 5px 0 rgba(127, 29, 29, 0.55) !important;
}

#page-chat-room .uc-chat-composer-note {
	padding: 12px 24px 16px !important;
	font-size: 11px !important;
}

#page-chat-room .uc-chat-members-shell {
	background: var(--uc-surface-soft) !important;
}

#page-chat-room .uc-chat-members-header {
	/* Padding only — red DNA header chrome is on .uc-room-card-head. */
	padding: 12px 16px !important;
	font-size: 10px !important;
	letter-spacing: 0.16em !important;
}

#page-chat-room .uc-chat-members-list {
	padding: 16px !important;
	gap: 16px !important;
	max-height: 520px !important;
}

#page-chat-room .uc-chat-member-row {
	padding: 8px !important;
	border-radius: 12px !important;
	border: 0 !important;
	background: transparent !important;
}

#page-chat-room .uc-chat-member-avatar {
	width: 40px !important;
	height: 40px !important;
	font-size: 12px !important;
}

#page-chat-room .uc-chat-member-name {
	font-size: 11px !important;
}

#page-chat-room .uc-chat-member-status {
	font-size: 8px !important;
	color: var(--uc-text-muted) !important;
}

#page-chat-room .uc-chat-member-pull {
	font-size: 8px !important;
	padding: 4px 8px !important;
	border-radius: 6px !important;
	border: 1px solid var(--uc-border) !important;
	background: var(--uc-surface) !important;
	color: var(--uc-text-muted) !important;
}

#page-chat-room .uc-chat-members-note,
#page-chat-room .uc-chat-room-footer {
	display: none !important;
}

/* Explicit tone classes (tailwind-independent) */
#page-chat-room .uc-chat-tone-red { color: var(--uc-primary) !important; border-color: var(--uc-danger-border) !important; background-color: #fee2e2 !important; }
#page-chat-room .uc-chat-tone-orange { color: #c2410c !important; border-color: #fed7aa !important; background-color: #ffedd5 !important; }
#page-chat-room .uc-chat-tone-pink { color: #be185d !important; border-color: #fbcfe8 !important; background-color: #fce7f3 !important; }
#page-chat-room .uc-chat-tone-amber { color: #b45309 !important; border-color: var(--uc-warning-border) !important; background-color: #fef3c7 !important; }
#page-chat-room .uc-chat-tone-purple { color: #7e22ce !important; border-color: #e9d5ff !important; background-color: #f3e8ff !important; }
#page-chat-room .uc-chat-tone-emerald { color: #047857 !important; border-color: #a7f3d0 !important; background-color: #d1fae5 !important; }
#page-chat-room .uc-chat-tone-indigo { color: #4338ca !important; border-color: #c7d2fe !important; background-color: var(--uc-text-muted) !important; }
#page-chat-room .uc-chat-tone-cyan { color: #0e7490 !important; border-color: #a5f3fc !important; background-color: #cffafe !important; }
#page-chat-room .uc-chat-tone-rose { color: var(--uc-primary) !important; border-color: #fecdd3 !important; background-color: #ffe4e6 !important; }
#page-chat-room .uc-chat-tone-blue { color: var(--uc-info-text) !important; border-color: var(--uc-info-border) !important; background-color: var(--uc-text-muted) !important; }

#page-chat-room .uc-chat-msg-author.uc-chat-tone-red,
#page-chat-room .uc-chat-msg-author.uc-chat-tone-orange,
#page-chat-room .uc-chat-msg-author.uc-chat-tone-pink,
#page-chat-room .uc-chat-msg-author.uc-chat-tone-amber,
#page-chat-room .uc-chat-msg-author.uc-chat-tone-purple,
#page-chat-room .uc-chat-msg-author.uc-chat-tone-emerald,
#page-chat-room .uc-chat-msg-author.uc-chat-tone-indigo,
#page-chat-room .uc-chat-msg-author.uc-chat-tone-cyan,
#page-chat-room .uc-chat-msg-author.uc-chat-tone-rose,
#page-chat-room .uc-chat-msg-author.uc-chat-tone-blue,
#page-chat-room .uc-chat-member-name.uc-chat-tone-red,
#page-chat-room .uc-chat-member-name.uc-chat-tone-orange,
#page-chat-room .uc-chat-member-name.uc-chat-tone-pink,
#page-chat-room .uc-chat-member-name.uc-chat-tone-amber,
#page-chat-room .uc-chat-member-name.uc-chat-tone-purple,
#page-chat-room .uc-chat-member-name.uc-chat-tone-emerald,
#page-chat-room .uc-chat-member-name.uc-chat-tone-indigo,
#page-chat-room .uc-chat-member-name.uc-chat-tone-cyan,
#page-chat-room .uc-chat-member-name.uc-chat-tone-rose,
#page-chat-room .uc-chat-member-name.uc-chat-tone-blue {
	background: transparent !important;
}

#page-chat-room .uc-chat-msg-bubble.uc-chat-tone-red { background: var(--uc-surface-raised) !important; border-left-color: #fca5a5 !important; color: var(--uc-text-secondary) !important; }
#page-chat-room .uc-chat-msg-bubble.uc-chat-tone-orange { background: var(--uc-surface-raised) !important; border-left-color: #fdba74 !important; color: var(--uc-text-secondary) !important; }
#page-chat-room .uc-chat-msg-bubble.uc-chat-tone-pink { background: var(--uc-surface-raised) !important; border-left-color: #f9a8d4 !important; color: var(--uc-text-secondary) !important; }
#page-chat-room .uc-chat-msg-bubble.uc-chat-tone-amber { background: var(--uc-surface-raised) !important; border-left-color: var(--uc-gold) !important; color: var(--uc-text-secondary) !important; }
#page-chat-room .uc-chat-msg-bubble.uc-chat-tone-purple { background: var(--uc-surface-raised) !important; border-left-color: #d8b4fe !important; color: var(--uc-text-secondary) !important; }
#page-chat-room .uc-chat-msg-bubble.uc-chat-tone-emerald { background: var(--uc-surface-raised) !important; border-left-color: #6ee7b7 !important; color: var(--uc-text-secondary) !important; }
#page-chat-room .uc-chat-msg-bubble.uc-chat-tone-indigo { background: var(--uc-surface-raised) !important; border-left-color: #a5b4fc !important; color: var(--uc-text-secondary) !important; }
#page-chat-room .uc-chat-msg-bubble.uc-chat-tone-cyan { background: var(--uc-surface-raised) !important; border-left-color: #67e8f9 !important; color: var(--uc-text-secondary) !important; }
#page-chat-room .uc-chat-msg-bubble.uc-chat-tone-rose { background: var(--uc-surface-raised) !important; border-left-color: #fda4af !important; color: var(--uc-text-secondary) !important; }
#page-chat-room .uc-chat-msg-bubble.uc-chat-tone-blue { background: var(--uc-surface-raised) !important; border-left-color: #93c5fd !important; color: var(--uc-text-secondary) !important; }

#page-chat-room .uc-chat-msg-avatar.uc-chat-tone-dynamic,
#page-chat-room .uc-chat-member-avatar.uc-chat-tone-dynamic {
	color: var(--uc-chat-tone-text) !important;
	background-color: var(--uc-chat-tone-bg) !important;
	border-color: var(--uc-chat-tone-border) !important;
}

#page-chat-room .uc-chat-msg-author.uc-chat-tone-dynamic,
#page-chat-room .uc-chat-member-name.uc-chat-tone-dynamic {
	color: var(--uc-chat-tone-text) !important;
	background: transparent !important;
}

#page-chat-room .uc-chat-msg-bubble.uc-chat-tone-dynamic {
	background: var(--uc-surface-raised) !important;
	border-left-color: var(--uc-chat-tone-accent) !important;
	color: var(--uc-text-secondary) !important;
}

/* ==========================================================================
   Chat lobby — Live-style destination hero + inventory sections
   ========================================================================== */
#page-chat.uc-chat-lobby,
#page-chat {
	--uc-chat-canvas-grid: var(--uc-page-canvas-grid, color-mix(in srgb, var(--uc-text) 18%, transparent));
	background-color: transparent;
	background-image: none;
}

#page-chat .uc-chat-lobby-stack {
	display: flex;
	flex-direction: column;
	gap: 1.35rem;
	width: min(100%, 72rem);
	margin-left: auto;
	margin-right: auto;
	padding: 1.25rem 1rem 2rem;
	box-sizing: border-box;
}

@media (min-width: 1024px) {
	#page-chat .uc-chat-lobby-stack {
		padding: 1.5rem 1.25rem 2.5rem;
		gap: 1.5rem;
	}
}

#page-chat .main-card.uc-card-trippy {
	border: 2px solid var(--uc-dna-border-strong);
	border-radius: var(--uc-dna-card-radius);
	overflow: hidden;
	box-shadow: var(--uc-dna-shadow-soft), 0 0 0 1px rgba(255, 223, 0, 0.14);
	transform: none;
	margin-bottom: 0;
	background: var(--uc-dna-card-surface);
}

/* —— Hero (Live pulse language) —— */
#page-chat .main-card.uc-card-trippy.uc-chat-lobby-hero-card {
	position: relative;
	background:
		radial-gradient(900px 280px at 12% 0%, var(--uc-primary-wash-strong), transparent 58%),
		linear-gradient(125deg, var(--uc-primary-darker) 0%, var(--uc-primary) 42%, var(--uc-primary-dark) 100%);
}

#page-chat .main-card.uc-card-trippy.uc-chat-lobby-hero-card::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 3px;
	z-index: 2;
	pointer-events: none;
	background: linear-gradient(90deg, transparent, var(--uc-gold) 35%, var(--uc-gold) 65%, transparent);
}

#page-chat .uc-chat-lobby-hero-shell {
	position: relative;
	z-index: 1;
}

#page-chat .uc-chat-lobby-hero-inner {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
	padding: 1.35rem 1.25rem 1.15rem;
	align-items: end;
}

@media (min-width: 768px) {
	#page-chat .uc-chat-lobby-hero-inner {
		grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.9fr);
		gap: 1.75rem;
		padding: 1.65rem 1.6rem 1.35rem;
	}
}

#page-chat .uc-chat-lobby-hero {
	padding: 0;
	background: transparent;
	color: var(--uc-text-on-primary);
}

#page-chat .uc-chat-lobby-kicker {
	margin: 0 0 0.35rem;
	font-size: 0.72rem;
	font-weight: 900;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--uc-gold);
	text-shadow: 0 1px 0 var(--uc-scrim-soft);
}

#page-chat .uc-chat-lobby-title {
	margin: 0;
	font-family: "Permanent Marker", "Anton", system-ui, sans-serif;
	font-size: clamp(1.7rem, 4.2vw, 2.55rem);
	font-weight: 400;
	letter-spacing: -0.01em;
	line-height: 1.02;
	color: var(--uc-text-on-primary);
	text-shadow: 0 4px 14px var(--uc-shadow-ink-strong);
}

#page-chat .uc-chat-lobby-subtitle {
	margin: 0.55rem 0 0;
	max-width: 34rem;
	font-size: 0.95rem;
	line-height: 1.5;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.88);
}

#page-chat .uc-chat-lobby-safety-link {
	color: var(--uc-gold);
	font-weight: 900;
	text-decoration: underline;
	text-underline-offset: 2px;
}

#page-chat .uc-chat-lobby-safety-link:hover {
	filter: brightness(1.08);
}

#page-chat .uc-chat-lobby-hero-tools {
	display: grid;
	gap: 0.65rem;
	align-content: end;
}

#page-chat .uc-chat-lobby-create-btn {
	justify-self: stretch;
	width: 100%;
	min-height: 2.75rem;
	padding: 0.7rem 1.1rem;
	font-size: 0.72rem;
	font-weight: 900;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	border-radius: 999px;
	border: 2px solid var(--uc-gold-dim);
	background: linear-gradient(180deg, var(--uc-gold) 0%, var(--uc-gold-dim) 100%);
	color: var(--uc-text-on-gold);
	box-shadow: 3px 3px 0 var(--uc-scrim-strong);
}

#page-chat .uc-chat-lobby-create-btn:hover {
	filter: brightness(1.05);
}

#page-chat .uc-chat-lobby-create-btn:active {
	transform: translateY(1px);
	box-shadow: 1px 1px 0 var(--uc-scrim-strong);
}

#page-chat .uc-chat-lobby-banner-search {
	position: relative;
	width: 100%;
	min-width: 0;
}

#page-chat .uc-chat-lobby-search-input {
	width: 100%;
	min-height: 2.75rem;
	padding: 0.65rem 1rem;
	font-size: 0.9rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	text-transform: none;
	background: color-mix(in srgb, var(--uc-chrome) 72%, transparent);
	border: 1.5px solid rgba(255, 255, 255, 0.28);
	border-radius: 999px;
	color: var(--uc-text-on-primary);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
	transition: box-shadow 120ms ease, border-color 120ms ease, background 120ms ease;
}

#page-chat .uc-chat-lobby-search-input::placeholder {
	color: rgba(255, 255, 255, 0.62);
}

#page-chat .uc-chat-lobby-search-input:focus {
	outline: none;
	border-color: var(--uc-gold);
	background: color-mix(in srgb, var(--uc-chrome) 88%, transparent);
	box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.28);
}

#page-chat .uc-chat-lobby-search-status {
	position: absolute;
	left: 1rem;
	top: -1rem;
	font-size: 0.62rem;
	font-weight: 900;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--uc-gold);
	transition: opacity 120ms ease;
	pointer-events: none;
}

#page-chat .uc-chat-lobby-search-status.opacity-0 { opacity: 0; }
#page-chat .uc-chat-lobby-search-status.opacity-100 { opacity: 1; }

#page-chat .uc-chat-lobby-resume-slot:not(.hidden) {
	display: block;
	margin: 0;
	padding: 0 1.25rem 1.1rem;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

@media (min-width: 768px) {
	#page-chat .uc-chat-lobby-resume-slot:not(.hidden) {
		padding: 0 1.6rem 1.25rem;
	}
}

#page-chat .uc-chat-resume-banner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas:
		"label label"
		"room btn";
	align-items: center;
	column-gap: 0.65rem;
	row-gap: 0.4rem;
	padding: 0.7rem 0.9rem;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	background: color-mix(in srgb, var(--uc-chrome) 55%, transparent);
	box-shadow: inset 3px 0 0 var(--uc-gold);
	backdrop-filter: blur(6px);
}

@media (min-width: 640px) {
	#page-chat .uc-chat-resume-banner {
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-areas: "label room btn";
		column-gap: 0.85rem;
		row-gap: 0;
	}
}

#page-chat .uc-chat-resume-label {
	grid-area: label;
	font-size: 0.62rem;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--uc-gold);
	min-width: 0;
	line-height: 1.25;
}

#page-chat .uc-chat-resume-room {
	grid-area: room;
	font-size: 0.92rem;
	font-weight: 900;
	color: var(--uc-text-on-primary);
	background: transparent;
	border: 0;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	line-height: 1.3;
}

#page-chat .uc-chat-resume-btn {
	grid-area: btn;
	justify-self: end;
	align-self: center;
	flex-shrink: 0;
	white-space: nowrap;
	border-radius: 999px;
	font-size: 0.65rem;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* —— Section headers —— */
#page-chat .section-header.uc-chat-section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.85rem 1rem;
	flex-wrap: wrap;
	background: linear-gradient(90deg, var(--uc-primary) 0%, var(--uc-primary-darker) 55%, var(--uc-primary) 100%);
	border-bottom: 2px solid var(--uc-gold-dim);
	box-shadow: inset 0 -2px 0 var(--uc-gold);
	color: var(--uc-text-on-primary);
	padding: 0.7rem 1rem 0.75rem;
}

#page-chat .uc-chat-section-header-copy {
	min-width: 0;
	flex: 1 1 12rem;
}

#page-chat .uc-chat-section-title {
	margin: 0;
	font-size: 0.72rem;
	font-weight: 900;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--uc-text-on-primary);
	line-height: 1.2;
}

#page-chat .uc-chat-section-header .uc-chat-section-lede {
	margin: 0.2rem 0 0;
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 1.35;
	color: color-mix(in srgb, var(--uc-text-on-primary) 78%, transparent);
	letter-spacing: 0.01em;
	max-width: 36rem;
}

#page-chat .uc-chat-section-hint {
	font-size: 0.68rem;
	font-weight: 800;
	color: var(--uc-gold);
	text-align: right;
	white-space: nowrap;
}

/* Flat sunken plate inside the section cards — the grid lives on the page
   canvas behind them, so stacking a second lattice here muddied the rooms. */
#page-chat .uc-chat-section-body {
	color: var(--uc-text);
	padding: 1rem;
	background-color: var(--uc-surface-sunken);
	background-image: none;
}

#page-chat .uc-card-bottom-banner {
	background: var(--uc-primary-darker);
}

/* Always-on horizontal poster rail */
#page-chat .uc-chat-always-on-rail {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(260px, 86vw);
	gap: 0.9rem;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	padding: 0.15rem 0.15rem 0.45rem;
	margin: 0;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}

#page-chat .uc-chat-always-on-rail > * {
	scroll-snap-align: start;
	min-width: 0;
}

/* Posters run cover-beside-copy, so two per row keeps titles off three lines
   until there is room for a third column. */
@media (min-width: 720px) {
	#page-chat .uc-chat-always-on-rail {
		grid-auto-flow: unset;
		grid-auto-columns: unset;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1rem;
		overflow: visible;
		scroll-snap-type: none;
		padding-bottom: 0.15rem;
	}
}

@media (min-width: 1240px) {
	#page-chat .uc-chat-always-on-rail {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* Member filters as chip tabs */
#page-chat .uc-chat-lobby-filters {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	align-items: center;
	justify-content: flex-end;
	flex: 0 1 auto;
}

#page-chat .uc-chat-filter-chip {
	appearance: none;
	cursor: pointer;
	min-height: 1.85rem;
	padding: 0.3rem 0.7rem;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.28);
	background: color-mix(in srgb, var(--uc-chrome) 35%, transparent);
	color: var(--uc-text-on-primary);
	font-size: 0.62rem;
	font-weight: 900;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	line-height: 1;
	transition: background 120ms ease, border-color 120ms ease, color 120ms ease, transform 100ms ease;
}

#page-chat .uc-chat-filter-chip:hover {
	border-color: var(--uc-gold);
}

#page-chat .uc-chat-filter-chip.is-active {
	background: var(--uc-gold);
	border-color: var(--uc-gold-dim);
	color: var(--uc-text-on-gold);
	box-shadow: 2px 2px 0 var(--uc-scrim-strong);
}

#page-chat .uc-chat-filter-chip:active {
	transform: translateY(1px);
}

#page-chat .uc-chat-member-rooms-grid,
#page-chat #chat-room-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.9rem !important;
	margin: 0;
}

@media (min-width: 900px) {
	#page-chat .uc-chat-member-rooms-grid,
	#page-chat #chat-room-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1rem !important;
	}
}

#page-chat .uc-chat-always-on-rail .uc-chat-system-room {
	height: 100%;
	min-height: 168px;
}

#page-chat .uc-chat-always-on-rail .uc-chat-lobby-empty {
	grid-column: 1 / -1;
	min-width: min(100%, 320px);
}

/* Member rooms: same DNA frame as Always On / main-card. */
#page-chat .uc-chat-lobby-room {
	width: 100%;
	display: flex;
	flex-direction: column;
	text-align: left;
	padding: 0;
	overflow: hidden;
	border: 2px solid var(--uc-dna-border-strong);
	border-radius: var(--uc-dna-card-radius);
	background:
		linear-gradient(135deg, var(--uc-primary-wash) 0%, transparent 48%),
		var(--uc-dna-card-surface);
	box-shadow: var(--uc-dna-shadow-soft);
	cursor: pointer;
	color: var(--uc-text);
	/* Content sets the height; grid stretch still aligns cards within a row.
	   A fixed min-height left a dead band on rooms with no topics or latest. */
	min-height: 0;
	transition: transform 0.12s ease, box-shadow 0.12s ease;
}

#page-chat .uc-chat-lobby-room.is-poster.has-cover {
	flex-direction: row;
	align-items: stretch;
	min-height: 168px;
}

#page-chat .uc-chat-lobby-room.is-poster.has-cover .uc-chat-lobby-room-cover {
	flex: 0 0 36%;
	min-width: 108px;
	max-width: 160px;
	height: auto;
	min-height: 100%;
	border-radius: 0;
	border-right: 2px solid var(--uc-dna-border-strong);
}

#page-chat .uc-chat-lobby-room-body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
	min-width: 0;
	padding: 12px 14px 12px;
}

#page-chat .uc-chat-lobby-room.is-lean .uc-chat-lobby-room-body {
	gap: 9px;
	justify-content: flex-start;
}

#page-chat .uc-chat-lobby-room.uc-room-heat-low {
	box-shadow: var(--uc-dna-shadow-soft), inset 3px 0 0 var(--uc-border);
}

#page-chat .uc-chat-lobby-room.uc-room-heat-medium {
	box-shadow: var(--uc-dna-shadow-soft), inset 3px 0 0 var(--uc-gold);
}

#page-chat .uc-chat-lobby-room.uc-room-heat-high {
	box-shadow: var(--uc-dna-shadow-soft), inset 3px 0 0 var(--uc-danger);
}

#page-chat .uc-chat-lobby-room:hover {
	transform: translateY(-2px);
	box-shadow: var(--uc-dna-shadow-hard), 0 0 0 1px rgba(255, 223, 0, 0.22);
}

#page-chat .uc-chat-lobby-room:focus-visible {
	outline: 2px solid var(--uc-focus-ring);
	outline-offset: 2px;
}

#page-chat .uc-chat-lobby-room-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
}

#page-chat .uc-chat-lobby-room-name-wrap {
	min-width: 0;
	flex: 1;
	display: grid;
	gap: 2px;
}

#page-chat .uc-chat-lobby-room-name {
	font-size: 15px;
	font-weight: 900;
	line-height: 1.2;
	letter-spacing: -0.01em;
	color: var(--uc-text);
}

#page-chat .uc-chat-lobby-room-tagline {
	font-size: 11px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--uc-text-secondary);
}

#page-chat .uc-chat-lobby-room-badge {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 3px 8px;
	border-radius: 999px;
	font-size: 9px;
	font-weight: 900;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	white-space: nowrap;
	flex-shrink: 0;
}

#page-chat .uc-chat-lobby-room-badge.is-live {
	border: 1px solid var(--uc-success-border);
	background: var(--uc-success-surface);
	color: var(--uc-success-text);
}

#page-chat .uc-chat-lobby-room-badge.is-quiet {
	border: 1px solid var(--uc-border);
	background: var(--uc-surface-sunken);
	color: var(--uc-text-muted);
}

#page-chat .uc-chat-lobby-room-badge-dot {
	width: 7px;
	height: 7px;
	border-radius: 999px;
	background: var(--uc-success);
	box-shadow: 0 0 0 2px var(--uc-success-border);
}

#page-chat .uc-chat-lobby-room-preview {
	margin-top: 2px;
	display: grid;
	gap: 2px;
	padding: 7px 9px;
	border-radius: 10px;
	background: var(--uc-surface-sunken);
	border: 1px solid var(--uc-border);
}

#page-chat .uc-chat-lobby-room-latest-label {
	font-size: 9px;
	font-weight: 900;
	letter-spacing: 0.11em;
	text-transform: uppercase;
	color: var(--uc-gold);
}

#page-chat .uc-chat-lobby-room-latest-text {
	font-size: 12px;
	line-height: 1.4;
	color: var(--uc-text-secondary);
}

#page-chat .uc-chat-lobby-room-meta {
	margin-top: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

#page-chat .uc-chat-lobby-room-meta.is-topics .uc-chat-room-chip {
	font-size: 10px;
	padding: 4px 9px;
	letter-spacing: 0.01em;
	text-transform: none;
}

#page-chat .uc-chat-lobby-room-actions {
	margin-top: auto;
	padding-top: 10px;
	border-top: 2px solid var(--uc-gold-dim);
	box-shadow: inset 0 2px 0 var(--uc-gold);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

#page-chat .uc-chat-lobby-room-btn {
	min-width: 108px;
	box-shadow: 3px 3px 0 var(--uc-scrim);
}

#page-chat .uc-chat-lobby-room-btn:hover {
	filter: brightness(1.04);
}

#page-chat .uc-chat-lobby-room-btn:active {
	transform: translateY(1px);
	box-shadow: 0 2px 0 var(--uc-scrim-strong);
}

#page-chat .uc-chat-lobby-room-cta {
	margin-top: 0;
	font-size: 9px;
	font-weight: 900;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--uc-text-muted);
}

@media (max-width: 520px) {
	#page-chat .uc-chat-lobby-room.is-poster.has-cover {
		flex-direction: column;
		min-height: 0;
	}

	#page-chat .uc-chat-lobby-room.is-poster.has-cover .uc-chat-lobby-room-cover {
		flex: none;
		width: 100%;
		max-width: none;
		min-width: 0;
		height: 88px;
		border-radius: 0;
	}
}

@media (max-width: 880px) {
	#page-chat .uc-chat-lobby-room-actions {
		flex-direction: column;
		align-items: flex-start;
	}

	#page-chat .uc-chat-lobby-room-btn {
		min-width: 132px;
	}
}

#page-chat .uc-chat-lobby-empty {
	grid-column: 1 / -1;
	border: 1px dashed var(--uc-border);
	border-radius: 12px;
	background: var(--uc-surface-raised);
	padding: 18px;
	font-size: 12px;
	font-weight: 700;
	text-align: center;
	color: var(--uc-text-muted);
}

/* ==========================================================================
   Mobile-first breakpoints — 768px (tablet) and 480px (phone)
   High-traffic pages: home, browse, chat, profile, inbox
   ========================================================================== */

@media (max-width: 768px) {
        /* Browse — filterbar and card layout */
        #page-browse .uc-browse-modern-filterbar {
                padding: 12px;
        }

        #page-browse .uc-browse-card {
                flex-direction: column;
        }

        #page-browse .uc-browse-avatar-wrap {
                width: 52px;
                height: 52px;
        }

        /* Profile — stack duo-cards on tablet */
        #page-profile .uc-profile-duo-card {
                min-width: 100%;
        }

        /* Chat — tighter lobby on tablet */
        #page-chat .uc-chat-lobby-shell {
                padding: 12px;
        }

        /* Browse — compact card on phone */
        #page-browse .uc-browse-card {
                padding: 10px;
                gap: 8px;
        }

        #page-browse .uc-browse-avatar-wrap {
                width: 48px;
                height: 48px;
        }

        /* Profile — full vertical stack on tablet */
        #page-profile .uc-profile-main-layout {
                flex-direction: column;
                gap: 8px;
        }

        /* When stacked, the right column must fill the row like the sidebar.
           `flex: 1` only affects the main axis; in column mode + align-items:flex-start
           it would otherwise shrink to content width. */
        #page-profile .uc-profile-right-column {
                width: 100%;
        }

        #page-profile .uc-profile-duo-card {
                min-width: 100%;
        }

        /* Chat — tighter topbar on tablet */
        #page-chat .uc-chat-room-topbar {
                padding: 8px 10px;
        }

        /* Chat — compact message padding */
        #page-chat .uc-chat-room-messages {
                padding: 10px;
        }

        /* Inbox — prevent iOS zoom on form inputs */
        #page-inbox input,
        #page-inbox textarea,
        #page-inbox select {
                font-size: 16px;
        }

        /* Circles — stack stats on phone */
        .uc-circles-stats {
                grid-template-columns: 1fr;
        }
}

/* Image Previews in Chat Bubbles */
.uc-chat-msg-image-preview {
  margin-top: 8px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--uc-scrim-weak);
  background: var(--uc-veil-strong);
  max-width: 280px;
  box-shadow: 0 2px 8px var(--uc-shadow-ink-weak);
}

.uc-chat-msg-image-preview img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.uc-chat-msg-image-preview img:hover {
  opacity: 0.9;
}

/* Onboarding Hints — UrbanChat DNA (matches profile/mood cards) */
.uc-chat-onboarding-hint {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--uc-dna-card-surface, var(--uc-surface));
  color: var(--uc-border-strong);
  padding: 10px 12px;
  border-radius: var(--uc-dna-card-radius, 8px);
  font-size: 11px;
  font-weight: 700;
  margin: 10px 0 12px;
  border: 2px solid var(--uc-dna-border-strong, var(--uc-border-strong));
  box-shadow: var(--uc-dna-shadow-soft, 3px 3px 0 var(--uc-shadow-ink-strong)), inset 0 -2px 0 var(--uc-gold);
  position: relative;
  animation: slideInUp 0.4s ease-out;
}

.uc-chat-onboarding-hint.is-bottom {
  margin-bottom: 12px;
  margin-top: 0;
}

.uc-chat-onboarding-hint-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 22px;
  padding: 0 7px;
  background: var(--uc-dna-header-red, var(--uc-primary));
  color: var(--uc-gold);
  border: 1px solid var(--uc-dna-border-strong, var(--uc-border-strong));
  border-radius: var(--uc-dna-chip-radius, 4px);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}

.uc-chat-onboarding-hint-text {
  flex: 1;
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: var(--uc-border-strong);
}

.uc-chat-onboarding-hint-close {
  flex-shrink: 0;
  background: var(--uc-surface-muted);
  border: 1px solid var(--uc-dna-border-strong, var(--uc-border-strong));
  border-radius: var(--uc-dna-chip-radius, 4px);
  color: var(--uc-primary-ink);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  padding: 3px 7px;
  transition: background 0.15s ease, color 0.15s ease;
}

.uc-chat-onboarding-hint-close:hover {
  background: var(--uc-dna-header-red, var(--uc-primary));
  color: var(--uc-gold);
}

@keyframes slideInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Pulse Animation for High Activity */
.uc-pulse-active {
  position: relative;
}

.uc-pulse-active::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  border: 2px solid currentColor;
  opacity: 0;
  animation: uc-pulse-ring 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes uc-pulse-ring {
  0% { transform: scale(1); opacity: 0.5; }
  70% { transform: scale(1.1); opacity: 0; }
  100% { transform: scale(1.1); opacity: 0; }
}

.uc-surface-pill.uc-pulse-active::after {
  inset: -1px;
  border-width: 1.5px;
}

/* Tap In Presence Ring */
.uc-chat-member-avatar.is-active-tap {
  border-color: var(--uc-danger) !important;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.4), 0 0 10px rgba(239, 68, 68, 0.2);
  transform: scale(1.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Profile Background Patterns */
@keyframes uc-pattern-scroll {
  from { background-position: 0 0; }
  to { background-position: 40px 40px; }
}

.uc-pattern-grid {
  background-image:
    linear-gradient(var(--uc-primary-wash) 1px, transparent 1px),
    linear-gradient(90deg, var(--uc-primary-wash) 1px, transparent 1px);
  background-size: 10px 10px;
  animation: uc-pattern-scroll 10s linear infinite;
}

.uc-pattern-dots {
  background-image: radial-gradient(var(--uc-primary-wash-strong) 1px, transparent 1px);
  background-size: 12px 12px;
  animation: uc-pattern-scroll 15s linear infinite;
}

.uc-pattern-diagonal {
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    var(--uc-primary-wash) 10px,
    var(--uc-primary-wash) 20px
  );
  animation: uc-pattern-scroll 20s linear infinite;
}

@keyframes uc-vibe-pulse {
  0% { opacity: 1; filter: brightness(1); }
  50% { opacity: 0.85; filter: brightness(1.3); }
  100% { opacity: 1; filter: brightness(1); }
}

.uc-vibe-legendary {
  position: relative;
  overflow: hidden;
}

.uc-vibe-legendary::after {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: uc-vibe-shimmer 2s infinite;
}

@keyframes uc-vibe-shimmer {
  from { left: -100%; }
  to { left: 200%; }
}
.uc-profile-hero-container {
  position: relative;
}

.uc-profile-hero-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  opacity: 0.6;
  /* Decorative theme layer only — must not steal clicks from CONTACT actions. */
  pointer-events: none;
}

.uc-profile-hero-container.uc-theme-grid::before {
  background-image: 
    linear-gradient(var(--uc-primary-wash) 1px, transparent 1px),
    linear-gradient(90deg, var(--uc-primary-wash) 1px, transparent 1px);
  background-size: 15px 15px;
}

.uc-profile-hero-container.uc-theme-dots::before {
  background-image: radial-gradient(var(--uc-primary-wash-strong) 1.5px, transparent 1.5px);
  background-size: 18px 18px;
}

.uc-profile-hero-container.uc-theme-diagonal::before {
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 15px,
    var(--uc-primary-wash) 15px,
    var(--uc-primary-wash) 30px
  );
}

/* ── Chat Mentions & Search UI ────────────────────────────────────────── */
.uc-chat-mention {
  font-weight: 900;
  color: var(--uc-primary-ink);
  background: rgba(127, 29, 29, 0.08);
  padding: 0 4px;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-style: dotted;
}

.uc-chat-mention:hover {
  background: rgba(127, 29, 29, 0.15);
  color: var(--uc-primary);
}

.uc-chat-mention.is-me {
  background: #fef3c7;
  color: var(--uc-warning-text);
  box-shadow: 0 0 0 1px var(--uc-gold);
}

.uc-chat-msg-bubble.is-mention-me {
  background: var(--uc-warning-surface);
  border-left-color: var(--uc-gold);
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.15);
}

.uc-chat-search-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--uc-surface-muted);
  border: 1px solid var(--uc-border);
  border-radius: 8px;
  padding: 2px 8px;
  animation: uc-fade-in 0.2s ease-out;
}

.uc-chat-search-input {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 4px 0 !important;
  width: 120px;
}

.uc-chat-search-input:focus {
  outline: none !important;
}

.uc-chat-search-close {
  background: transparent;
  border: 0;
  color: var(--uc-text-muted);
  font-size: 14px;
  cursor: pointer;
  padding: 0 2px;
}

.uc-chat-search-close:hover {
  color: var(--uc-text-muted);
}

@keyframes uc-fade-in {
  from { opacity: 0; transform: translateY(-2px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════
   APP-LIKE HOME CHROME (mobile-first, inspired by concept)
   ═══════════════════════════════════════════════════════════ */

/* ── App Top Bar ────────────────────────────── */
.uc-app-topbar {
  background: var(--uc-chrome);
  color: var(--uc-gold);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 8px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--uc-accent-wash);
}

/* Row: brand | LIVE ticker (flex) | Experts · Bell · Avatar */
.uc-app-topbar .uc-home-ticker-wrap {
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
}

.uc-app-topbar__actions {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
  margin-left: auto;
}

.uc-app-topbar__logo {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  line-height: 0.85;
  text-transform: uppercase;
  -webkit-tap-highlight-color: transparent;
}

.uc-app-topbar__logo-urban,
.uc-app-topbar__logo-chat {
  font-family: "Permanent Marker", "Brush Script MT", cursive, sans-serif;
  font-style: italic;
  letter-spacing: -0.02em;
  /* Match wordmark SVG + signup masthead: white sticker stroke, then letter fill. */
  -webkit-text-stroke: 3.25px #ffffff;
  paint-order: stroke fill;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.85);
}

.uc-app-topbar__logo-urban {
  color: var(--uc-gold);
  font-size: 17px;
}

.uc-app-topbar__logo-chat {
  /* SVG CHAT is black fill + white outline — fixed, not --uc-text (that flips
     to near-white on dark themes/pages and reads as a solid white blob). */
  color: #000;
  font-size: 20px;
  margin-top: 0;
  margin-left: 12px;
}

.uc-app-topbar__ticker {
  display: none;
}

.uc-app-topbar__my-neighborhood {
  background: none;
  border: none;
  color: var(--uc-gold);
  cursor: pointer;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.uc-app-topbar__my-neighborhood svg {
  display: block;
}

.uc-app-topbar__bell {
  position: relative;
  background: none;
  border: none;
  color: var(--uc-gold);
  cursor: pointer;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.uc-app-topbar__badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--uc-primary);
  color: var(--uc-text-on-primary);
  font-size: 9px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--uc-border-strong);
}

.uc-app-topbar__badge.hidden,
.uc-app-topbar__badge[hidden] {
  display: none !important;
}

.uc-app-topbar__avatar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 6px;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  border-radius: 50%;
  line-height: 0;
}

.uc-app-topbar__avatar-btn:focus-visible {
  outline: 2px solid var(--uc-gold);
  outline-offset: 2px;
}

.uc-app-topbar__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--uc-gold);
  object-fit: cover;
  cursor: pointer;
  background: var(--uc-chrome);
}

.uc-app-topbar__avatar.hidden {
  display: none;
}

.uc-app-topbar__avatar-btn:has(.uc-app-topbar__avatar.hidden) {
  display: none;
}

/* ── Hero CTA Row ──────────────────────────── */
.uc-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(180deg, var(--uc-primary-darker, var(--uc-primary-darker)), var(--uc-primary-dark, var(--uc-primary-dark)));
  border-bottom: 3px solid var(--uc-border-strong);
}

.uc-hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.12s ease;
  border: 2px solid var(--uc-border-strong);
  text-align: center;
  line-height: 1.2;
}

.uc-hero-cta:active {
  transform: scale(0.97);
}

.uc-hero-cta--gold {
  background: linear-gradient(135deg, var(--uc-gold), var(--uc-gold-dim));
  color: var(--uc-text-on-gold);
  box-shadow: 0 4px 0 var(--uc-scrim);
}

.uc-hero-cta--light {
  background: var(--uc-surface);
  color: var(--uc-border-strong);
  box-shadow: 0 4px 0 var(--uc-shadow-ink-strong);
}

/* ── Bottom Tab Bar ────────────────────────── */
:root {
	--uc-fixed-topbar-h: 40px;
	--uc-app-bottom-bar-h: 72px;
	--uc-app-bottom-bar-overhang: 20px; /* raised center + control */
	--uc-app-bottom-bar-clearance: calc(
		var(--uc-app-bottom-bar-h)
		+ var(--uc-app-bottom-bar-overhang)
		+ env(safe-area-inset-bottom, 0px)
		+ 16px
	);
}

.uc-app-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: var(--uc-chrome);
  border-top: 1px solid var(--uc-accent-wash);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  display: flex;
  justify-content: space-around;
  align-items: center;
	padding-top: 8px;
}

body[data-uc-page] {
	padding-bottom: var(--uc-app-bottom-bar-clearance) !important;
}

#uc-slide-layer {
	box-sizing: border-box;
	padding-top: var(--uc-fixed-topbar-h, 40px);
}

#page-home,
#page-live,
#page-wire,
#page-games,
#page-inbox,
#page-chat,
#page-profile {
	padding-bottom: 12px;
}

#page-home main.container {
	padding-bottom: 1.25rem;
}

#page-home [data-uc-card-id="home-currently-playing"] {
	margin-bottom: 12px;
}

/* Home What next — one clear move, no dump lists under CTAs */
#page-home .uc-home-switchboard .uc-home-switchboard__body {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	padding: 1rem 1.05rem 1.15rem;
}

#page-home .uc-home-switchboard .uc-home-switchboard__lede {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.4;
	font-weight: 600;
	color: var(--uc-text);
	letter-spacing: 0.01em;
}

#page-home .uc-home-switchboard .uc-home-switchboard__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
}

#page-home .uc-home-switchboard .uc-home-switchboard__primary,
#page-home .uc-home-switchboard .uc-home-switchboard__secondary {
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 0.55rem 1.05rem;
	border-radius: 999px;
	min-height: 2.25rem;
}

#page-home .uc-home-switchboard .uc-home-switchboard__secondary {
	background: var(--uc-surface-raised);
	border: 2px solid var(--uc-border-strong);
	color: var(--uc-text);
	box-shadow: 2px 2px 0 var(--uc-shadow-ink-strong);
}

#page-home .uc-home-switchboard .uc-home-switchboard__secondary:hover,
#page-home .uc-home-switchboard .uc-home-switchboard__secondary:focus-visible {
	background: var(--uc-state-hover);
	border-color: var(--uc-border-strong);
	color: var(--uc-text);
}

#page-home .uc-home-switchboard .uc-home-switchboard-people {
	padding-top: 0.15rem;
	border-top: 1px solid var(--uc-divider, var(--uc-border));
}

#page-home .uc-home-switchboard .uc-home-switchboard-people__label {
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--uc-text-muted);
	margin-bottom: 0.4rem;
}

#page-home .uc-home-switchboard .uc-home-switchboard-people__row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.55rem;
}

#page-home .uc-home-switchboard .uc-home-switchboard-people__chip {
	appearance: none;
	background: transparent;
	border: 0;
	padding: 0;
	margin: 0;
	font: inherit;
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--uc-primary-ink);
	cursor: pointer;
	text-decoration: none;
}

#page-home .uc-home-switchboard .uc-home-switchboard-people__chip:hover,
#page-home .uc-home-switchboard .uc-home-switchboard-people__chip:focus-visible {
	color: var(--uc-text);
	text-decoration: underline;
	outline: none;
}

.uc-schedule-popover__slot {
	color: var(--uc-chrome-text);
	opacity: 0.7;
}

.uc-schedule-popover__slot.is-active {
	background: var(--uc-gold);
	color: var(--uc-text-on-gold);
	padding: 0 0.25rem;
	font-weight: 700;
	opacity: 1;
}

#home-currently-playing-list {
	max-height: min(240px, 38vh);
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}

.uc-app-bottom-bar__tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
	gap: 3px;
	padding: 7px 4px 9px;
  background: none;
  border: none;
	color: var(--uc-chrome-text);
	font-size: 10px;
  font-weight: 900;
	letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
	transition: color 0.12s ease, transform 0.12s ease;
  position: relative;
}

.uc-app-bottom-bar__tab:not(:first-child)::before {
	content: "";
	position: absolute;
	left: 0;
	top: 14px;
	bottom: 14px;
	width: 1px;
	background: var(--uc-veil-strong);
}

.uc-app-bottom-bar__tab:hover {
	color: var(--uc-text-on-primary);
}

.uc-app-bottom-bar__tab.is-active {
	color: var(--uc-danger);
}

.uc-app-bottom-bar__tab.is-active::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 34px;
  height: 3px;
  border-radius: 2px;
  background: var(--uc-danger);
}

.uc-app-bottom-bar__tab.is-music-open {
	color: var(--uc-gold);
}

.uc-app-bottom-bar__tab.is-music-open .uc-app-bottom-bar__icon {
	color: var(--uc-gold);
}

.uc-app-bottom-bar__tab.is-music-open::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 34px;
  height: 3px;
  border-radius: 2px;
  background: var(--uc-gold);
}

.uc-app-bottom-bar__icon {
	width: 22px;
	height: 22px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	color: var(--uc-gold);
}

.uc-app-bottom-bar__icon svg {
	width: 22px;
	height: 22px;
	display: block;
	color: currentColor;
}

.uc-app-bottom-bar__tab.is-active .uc-app-bottom-bar__icon {
  color: var(--uc-danger);
}

.uc-app-bottom-bar__tab--center {
  position: relative;
  top: -14px;
  /* Keep the raised + button from stealing clicks on page content above the bar */
  overflow: visible;
  pointer-events: none;
}

.uc-app-bottom-bar__tab--center .uc-app-bottom-bar__center-btn,
.uc-app-bottom-bar__tab--center .uc-app-bottom-bar__guest-cta {
  pointer-events: auto;
}

.uc-app-bottom-bar__center-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--uc-primary), var(--uc-primary));
  color: var(--uc-text-on-primary);
  border: 3px solid var(--uc-gold);
  display: flex;
  align-items: center;
  justify-content: center;
	font-size: 30px;
	font-weight: 600;
	line-height: 1;
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.4);
  cursor: pointer;
  transition: transform 0.1s ease;
}

.uc-app-bottom-bar__center-btn:active {
  transform: scale(0.92);
}

.uc-app-bottom-bar__badge {
  position: absolute;
  top: 0;
	right: 10px;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--uc-primary);
  color: var(--uc-text-on-primary);
	font-size: 10px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--uc-border-strong);
}

/* display:flex above beats Tailwind .hidden — zero unread must not paint a red "0" */
.uc-app-bottom-bar__badge.hidden,
.uc-app-bottom-bar__badge[hidden] {
  display: none !important;
}

.uc-global-footer-bar .uc-app-bottom-bar {
	position: fixed !important;
	bottom: 0 !important;
}

/* ── Responsive Nav Switching ──────────────── */
@media (min-width: 768px) {
  .uc-app-bottom-bar {
		left: 0;
		right: 0;
		transform: none;
		width: 100%;
		bottom: 0;
		border: 0;
		border-top: 1px solid var(--uc-accent-wash);
		border-radius: 0;
		box-shadow: none;
		background: var(--uc-chrome);
		padding-top: 9px;
  }

	.uc-app-bottom-bar__tab {
		font-size: 10px;
	}

	.uc-app-bottom-bar__icon,
	.uc-app-bottom-bar__icon svg {
		width: 23px;
		height: 23px;
	}

  .uc-app-topbar {
    display: none;
  }

  /* Home desktop: keep Live Pulse as a slim strip under the login bar */
  body[data-uc-page="home"] .uc-app-topbar {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0;
    min-height: 32px;
  }

  body[data-uc-page="home"] .uc-app-topbar__logo,
  body[data-uc-page="home"] .uc-app-topbar__actions {
    display: none !important;
  }

  body[data-uc-page="home"] .uc-home-ticker-wrap {
    display: none;
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
    height: 32px;
    border-radius: 0;
    border: 0;
    border-bottom: 2px solid var(--uc-border-strong);
    background: var(--uc-chrome);
  }

  html[data-uc-live-pulse="1"] body[data-uc-page="home"] .uc-home-ticker-wrap {
    display: flex;
  }

  body[data-uc-page="home"] .uc-home-ticker-label {
    font-size: 10px;
    padding: 0 12px;
    border-right: 2px solid var(--uc-border-strong);
  }

  body[data-uc-page="home"] .uc-home-ticker-item {
    font-size: 12px;
  }

	body[data-uc-page] {
		padding-bottom: var(--uc-app-bottom-bar-clearance) !important;
	}
}

@media (max-width: 767px) {
  :root {
    --uc-fixed-topbar-h: 56px;
  }

  .login-bar {
    display: none;
  }

  .uc-app-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 11050;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 8px 10px;
  }

  /* Main logo lives in the mobile topbar; hide the tall header sticker band. */
  .uc-app-topbar__logo {
    display: inline-flex;
    flex: 0 0 auto;
    flex-shrink: 0;
  }

  .uc-app-topbar__logo-urban {
    font-size: 15px;
  }

  .uc-app-topbar__logo-chat {
    font-size: 17px;
    margin-left: 10px;
  }

  body[data-uc-page="home"] .uc-app-topbar__logo,
  body[data-uc-page="home"] .uc-app-topbar__actions {
    display: inline-flex !important;
  }

  /* Urban Chat | LIVE ticker (flex) | My Neighborhood · Bell · Avatar — Phase 28 gated */
  body[data-uc-page="home"] .uc-home-ticker-wrap {
    display: none;
    flex: 1 1 auto;
    min-width: 0;
    height: 26px;
    border-radius: 999px;
    border: 1px solid rgba(250, 204, 21, 0.28);
    background: var(--uc-scrim);
  }

  html[data-uc-live-pulse="1"] body[data-uc-page="home"] .uc-home-ticker-wrap {
    display: flex;
  }

  body[data-uc-page="home"] .uc-app-topbar__actions {
    flex: 0 0 auto;
    gap: 16px;
  }

  body[data-uc-page="home"] .uc-app-topbar__my-neighborhood,
  body[data-uc-page="home"] .uc-app-topbar__bell,
  body[data-uc-page="home"] .uc-app-topbar__avatar-btn {
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
  }

  .header-bg {
    display: none;
  }

  /* Keep the page nav tabs on mobile (horizontal scroll). */
  .uc-primary-nav.uc-primary-nav--member {
    display: block;
    padding: 8px 0;
  }

  .uc-primary-nav.uc-primary-nav--member .uc-primary-nav-row {
    gap: 8px;
    padding-bottom: 2px;
    max-width: 100%;
  }

  .uc-primary-nav.uc-primary-nav--member .nav-tab {
    padding: 8px 12px;
    font-size: 12px;
  }

  body[data-uc-page="signup"],
  body[data-uc-page="home"] {
    overflow-x: hidden;
  }

  /* Stack hero CTAs on very small screens */
  @media (max-width: 360px) {
    .uc-hero-ctas {
      flex-direction: column;
    }
  }
}

/* ── Inline Ad Slots ─────────────────────────────────────────── */
.uc-inline-ad {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border: 1px solid var(--uc-border);
	border-radius: 6px;
	background: var(--uc-surface-soft);
	cursor: pointer;
	transition: background 0.15s;
}
.uc-inline-ad:hover {
	background: var(--uc-surface-soft);
}
.uc-inline-ad-label {
	font-size: 8px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: var(--uc-text-muted);
	flex-shrink: 0;
}
.uc-inline-ad-body {
	font-size: 12px;
	font-weight: 700;
	color: var(--uc-text-secondary);
	min-width: 0;
}
.uc-inline-ad-creative {
	max-height: 72px;
	max-width: 160px;
	width: auto;
	height: auto;
	object-fit: contain;
	border: 1px solid var(--uc-border);
	background: var(--uc-surface);
	flex-shrink: 0;
}
.uc-inline-ad-meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
[data-uc-ad-placement].hidden {
	display: none;
}

.uc-login-bar__actions {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	flex: 0 0 auto;
}

.uc-topbar-my-neighborhood-btn {
	border: 1px solid var(--uc-accent-wash-strong);
	background: rgba(15, 23, 42, 0.35);
	color: var(--uc-gold);
	border-radius: 999px;
	padding: 8px 14px;
	min-height: 36px;
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.uc-topbar-my-neighborhood-btn:hover {
	background: rgba(127, 29, 29, 0.55);
	border-color: var(--uc-gold);
}

.uc-login-bar__bell {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 8px 10px;
	min-width: 40px;
	min-height: 36px;
	border: 1px solid var(--uc-accent-wash-strong);
	border-radius: 999px;
	background: rgba(15, 23, 42, 0.35);
	color: var(--uc-gold);
	cursor: pointer;
	line-height: 1;
	-webkit-tap-highlight-color: transparent;
}

.uc-login-bar__bell:hover {
	background: rgba(127, 29, 29, 0.55);
	border-color: var(--uc-gold);
}

.uc-login-bar__bell .uc-app-topbar__badge {
	top: -4px;
	right: -4px;
}

.uc-login-bar__avatar-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	border: 1px solid var(--uc-accent-wash-strong);
	border-radius: 999px;
	background: rgba(15, 23, 42, 0.35);
	cursor: pointer;
	line-height: 0;
	overflow: hidden;
	width: 36px;
	height: 36px;
	min-width: 36px;
	min-height: 36px;
	-webkit-tap-highlight-color: transparent;
}

.uc-login-bar__avatar-btn:hover {
	border-color: var(--uc-gold);
	background: rgba(127, 29, 29, 0.55);
}

.uc-login-bar__avatar {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.uc-login-bar__avatar.hidden {
	display: none;
}

.uc-login-bar__avatar-btn:has(.uc-login-bar__avatar.hidden) {
	background:
		radial-gradient(circle at 35% 30%, #fde68a 0%, var(--uc-gold) 35%, transparent 36%),
		linear-gradient(145deg, var(--uc-primary), var(--uc-primary-darker));
}

.uc-experts-apply-panel {
	display: none;
}

.uc-experts-header-apply {
	border: 1px solid rgba(250, 204, 21, 0.85);
	background: var(--uc-wash-strong);
	color: #fef08a;
	border-radius: 999px;
	padding: 5px 12px;
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	cursor: pointer;
	flex-shrink: 0;
}

.uc-experts-header-apply:hover {
	background: var(--uc-accent-wash);
	color: var(--uc-text-on-primary);
}

.uc-experts-apply-title {
	font-size: 18px;
	font-weight: 900;
	letter-spacing: 0.02em;
	color: var(--uc-primary-ink);
	margin: 2px 0 0;
}

.uc-experts-apply-status {
	font-size: 12px;
	font-weight: 600;
	color: var(--uc-primary-ink);
	margin-bottom: 10px;
	line-height: 1.45;
}

.uc-experts-apply-label {
	display: block;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--uc-primary-ink);
	margin: 8px 0 4px;
}

.uc-experts-board-overlay,
.uc-experts-apply-overlay,
.uc-expert-vote-overlay {
	position: fixed;
	inset: 0;
	z-index: 1200;
	background: rgba(15, 23, 42, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 18px;
}

.uc-experts-board-overlay.hidden,
.uc-experts-apply-overlay.hidden,
.uc-expert-vote-overlay.hidden {
	display: none;
}

.uc-experts-board-card,
.uc-experts-apply-card,
.uc-expert-vote-card {
	width: min(720px, 100%);
	max-height: min(86vh, 820px);
	overflow: hidden;
	border-radius: 22px;
	background: var(--uc-surface);
	box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
	position: relative;
}

.uc-experts-apply-card {
	width: min(480px, 100%);
}

.uc-experts-apply-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 18px 0;
}

.uc-experts-apply-kicker {
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #b45309;
}

.uc-experts-apply-close {
	border: 0;
	background: transparent;
	color: var(--uc-text-muted);
	font-size: 28px;
	line-height: 1;
	font-weight: 700;
	cursor: pointer;
	padding: 0 4px;
}

.uc-experts-apply-body {
	padding: 12px 18px 18px;
	overflow: auto;
	max-height: min(70vh, 640px);
	background: linear-gradient(180deg, var(--uc-surface) 0%, var(--uc-surface-soft) 100%);
}

.uc-experts-board-head,
.uc-experts-board-meta {
	padding: 16px 18px 0;
}

.uc-experts-board-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.uc-experts-board-kicker {
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #b45309;
}

.uc-experts-board-title {
	font-size: 20px;
	font-weight: 900;
	color: var(--uc-text);
}

.uc-experts-board-close,
.uc-expert-vote-close {
	width: 34px;
	height: 34px;
	border-radius: 12px;
	border: 1px solid var(--uc-wash-weak);
	background: var(--uc-surface-raised);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}

.uc-experts-board-meta {
	font-size: 12px;
	font-weight: 600;
	color: var(--uc-text-muted);
	padding-bottom: 10px;
}

.uc-experts-board-body {
	padding: 8px 18px 18px;
	overflow-y: auto;
	max-height: calc(86vh - 120px);
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.uc-experts-board-topic {
	border: 1px solid var(--uc-wash-weak);
	border-radius: 16px;
	padding: 12px;
	background: var(--uc-surface-raised);
}

.uc-experts-board-topic-head {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	align-items: baseline;
	margin-bottom: 8px;
	font-size: 13px;
}

.uc-experts-board-sitting {
	font-size: 11px;
	font-weight: 700;
	color: var(--uc-success-text);
}

.uc-experts-board-candidates {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.uc-experts-board-candidate {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	text-align: left;
	border: 1px solid var(--uc-wash-weak);
	border-radius: 14px;
	background: var(--uc-surface);
	padding: 8px 10px;
	cursor: pointer;
}

.uc-experts-board-avatar {
	width: 36px;
	height: 36px;
	border-radius: 12px;
	object-fit: cover;
	background: #fee2e2;
}

.uc-experts-board-candidate-copy {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.uc-experts-board-name {
	font-size: 13px;
	font-weight: 800;
	color: var(--uc-text);
}

.uc-experts-board-votes {
	font-size: 11px;
	font-weight: 700;
	color: #b45309;
}

.uc-experts-board-empty {
	font-size: 12px;
	color: var(--uc-text-muted);
	font-weight: 600;
}

.uc-expert-vote-card {
	width: min(420px, 100%);
	padding: 22px 20px 18px;
	text-align: center;
}

.uc-expert-vote-close {
	position: absolute;
	top: 12px;
	right: 12px;
}

.uc-expert-vote-avatar {
	width: 96px;
	height: 96px;
	border-radius: 28px;
	object-fit: cover;
	margin: 8px auto 12px;
	background: linear-gradient(135deg, #fee2e2, #fef3c7);
	border: 1px solid var(--uc-wash-weak);
	display: block;
}

.uc-expert-vote-avatar--link {
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.uc-expert-vote-avatar--link:hover,
.uc-expert-vote-avatar--link:focus-visible {
	transform: translateY(-1px) scale(1.02);
	box-shadow: 0 8px 18px var(--uc-wash-soft);
	outline: none;
}

.uc-expert-vote-avatar--link:focus-visible {
	box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.45), 0 8px 18px var(--uc-wash-soft);
}

.uc-expert-vote-name {
	font-size: 18px;
	font-weight: 900;
	color: var(--uc-text);
}

.uc-expert-vote-meta {
	font-size: 12px;
	font-weight: 600;
	color: var(--uc-text-muted);
	margin-top: 4px;
}

.uc-expert-vote-about {
	font-size: 13px;
	font-weight: 600;
	color: var(--uc-text-secondary);
	margin: 12px 0;
	line-height: 1.45;
}

.uc-expert-vote-why-label {
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--uc-primary-ink);
	margin-bottom: 6px;
}

.uc-expert-vote-why {
	font-size: 13px;
	font-weight: 600;
	color: var(--uc-primary-ink);
	background: var(--uc-surface-soft);
	border-radius: 14px;
	padding: 12px;
	margin-bottom: 12px;
	line-height: 1.45;
}

.uc-expert-vote-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	align-items: center;
}

.uc-expert-vote-topic {
	width: 100%;
	font-size: 11px;
	font-weight: 800;
	color: #0e7490;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.uc-expert-vote-btn {
	border-radius: 999px;
	border: 1px solid var(--uc-wash-soft);
	background: var(--uc-surface);
	padding: 10px 14px;
	font-size: 12px;
	font-weight: 800;
	cursor: pointer;
}

.uc-expert-vote-btn.is-up.is-active,
.uc-expert-vote-btn.is-up:hover {
	background: var(--uc-primary-darker);
	border-color: var(--uc-primary-darker);
	color: var(--uc-text-on-primary);
}

.uc-expert-vote-btn.is-down.is-active,
.uc-expert-vote-btn.is-down:hover {
	background: var(--uc-chrome);
	border-color: var(--uc-border-strong);
	color: var(--uc-text-on-primary);
}

.uc-expert-vote-empty {
	font-size: 12px;
	font-weight: 700;
	color: var(--uc-text-muted);
	margin-top: 8px;
}

.uc-avatar-edit-overlay.is-vote {
	background: rgba(127, 29, 29, 0.82);
}

.uc-avatar-edit-overlay.is-expert {
	background: linear-gradient(180deg, rgba(180, 130, 20, 0.92), rgba(120, 70, 10, 0.9));
	letter-spacing: 0.06em;
}

.uc-residency-gate-overlay {
	position: fixed;
	inset: 0;
	z-index: 1300;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(15, 23, 42, 0.58);
}

.uc-residency-gate-overlay.hidden {
	display: none;
}

body.uc-residency-gate-open {
	overflow: hidden;
}

.uc-residency-gate-card {
	position: relative;
	width: min(440px, 100%);
	border-radius: 22px;
	background: linear-gradient(180deg, var(--uc-surface) 0%, var(--uc-surface-raised) 100%);
	border: 1px solid var(--uc-wash-weak);
	box-shadow: 0 28px 64px rgba(15, 23, 42, 0.28);
	padding: 24px 22px 20px;
	text-align: left;
}

.uc-residency-gate-close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 34px;
	height: 34px;
	border-radius: 12px;
	border: 1px solid var(--uc-wash-weak);
	background: var(--uc-surface);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	color: var(--uc-text-secondary);
}

.uc-residency-gate-kicker {
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #b45309;
	margin-bottom: 6px;
}

.uc-residency-gate-title {
	font-size: 20px;
	font-weight: 900;
	color: var(--uc-text);
	letter-spacing: 0.01em;
	padding-right: 28px;
}

.uc-residency-gate-message {
	margin: 12px 0 18px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.45;
	color: var(--uc-text-secondary);
}

.uc-residency-gate-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-end;
}

.uc-residency-gate-btn {
	border-radius: 14px;
	padding: 11px 16px;
	font-size: 12px;
	font-weight: 800;
	cursor: pointer;
	border: 1px solid transparent;
}

.uc-residency-gate-btn.is-secondary {
	background: var(--uc-surface);
	border-color: var(--uc-wash-soft);
	color: var(--uc-text-secondary);
}

.uc-residency-gate-btn.is-primary {
	background: var(--uc-primary-darker);
	border-color: var(--uc-primary-darker);
	color: var(--uc-text-on-primary);
}

/* Home — Hot posts (Visiting-style media cards)
   Flex columns default to min-width:auto, so a wide horizontal rail
   can blow out the whole card past the app canvas. Pin width first. */
#page-home main.container.flex > aside,
#page-home main.container.flex > section {
	min-width: 0;
	max-width: 100%;
}

#page-home [data-uc-card-id="home-breaking-wire"] {
	min-width: 0;
	max-width: 100%;
	overflow: hidden;
}

.uc-home-hot-rail {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(156px, 176px);
	gap: 10px;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 2px 2px 6px;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

/* First-open empty modules — warm invitation, not a dead grey line. */
.uc-home-warm-empty {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	margin: 0 12px 12px;
	padding: 12px 14px;
	border: 2px solid var(--uc-border-strong);
	border-radius: 10px;
	background:
		linear-gradient(160deg, color-mix(in srgb, var(--uc-gold) 12%, var(--uc-surface-sunken)) 0%, var(--uc-surface-sunken) 70%);
	box-shadow: 3px 3px 0 var(--uc-scrim);
	color: var(--uc-text);
}

.uc-home-warm-empty__title {
	font-size: 13px;
	font-weight: 800;
	line-height: 1.25;
	color: var(--uc-text);
	letter-spacing: 0.01em;
}

.uc-home-warm-empty__detail {
	margin: 0;
	font-size: 11px;
	line-height: 1.4;
	color: var(--uc-text-secondary);
	max-width: 36ch;
}

.uc-home-warm-empty__cta {
	margin-top: 4px;
	font-size: 10px !important;
	padding: 6px 10px !important;
	min-height: 0;
}

.uc-home-hot-rail::-webkit-scrollbar {
	display: none;
}

.uc-home-hot-card {
	position: relative;
	isolation: isolate;
	display: block;
	min-height: 168px;
	border-radius: 10px;
	overflow: hidden;
	border: 2px solid var(--uc-border-strong);
	background: var(--uc-chrome);
	text-align: left;
	text-decoration: none;
	color: inherit;
	cursor: pointer;
	padding: 0;
	scroll-snap-align: start;
	box-shadow: 3px 3px 0 var(--uc-scrim);
	transition: transform 160ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Hot rail must stay visible. Global .uc-list-item-enter starts at opacity:0
   and replaying it on every homeCards refresh made the Hot Posts block flicker
   (or sit blank). Keep enter motion off for these cards. */
#page-home .uc-home-hot-card.uc-list-item-enter,
.uc-home-hot-card.uc-list-item-enter {
	opacity: 1 !important;
	transform: none !important;
	animation: none !important;
}

/* Home lists were rebuilt on every backendApplyPayload (invite-mode loop),
   so enter animations never finished and sections flickered/blanked. */
#page-home .uc-list-item-enter {
	opacity: 1 !important;
	transform: none !important;
	animation: none !important;
}

.uc-home-hot-card:hover {
	transform: translateY(-3px);
}

.uc-home-hot-card:active {
	transform: scale(0.97);
}

.uc-home-hot-card-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
}

.uc-home-hot-card-fallback {
	position: absolute;
	inset: 0;
	z-index: 0;
	background-color: #140606;
	background-image:
		linear-gradient(rgba(255, 223, 0, 0.09) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 223, 0, 0.09) 1px, transparent 1px),
		radial-gradient(ellipse at 50% -10%, var(--uc-accent-wash), transparent 48%),
		linear-gradient(165deg, var(--uc-primary) 0%, var(--uc-primary-darker) 34%, #1a0808 78%);
	background-size: 11px 11px, 11px 11px, auto, auto;
}

.uc-home-hot-card-fallback::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: var(--uc-gold);
	box-shadow: 0 1px 0 var(--uc-scrim);
}

.uc-home-hot-card-fallback::after {
	content: "";
	position: absolute;
	inset: 8px;
	border: 1px solid var(--uc-accent-wash);
	border-radius: 6px;
	pointer-events: none;
}

.uc-home-hot-card::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, transparent 18%, rgba(0, 0, 0, 0.88) 100%);
	pointer-events: none;
}

.uc-home-hot-card-copy {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 4px;
	min-height: 168px;
	padding: 12px 10px;
}

.uc-home-hot-card-kicker {
	font-size: 9px;
	font-weight: 900;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--uc-gold);
}

.uc-home-hot-card-title {
	font-size: 14px;
	font-weight: 900;
	line-height: 1.2;
	color: var(--uc-text-on-primary);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.uc-home-hot-card-meta {
	font-size: 10px;
	font-weight: 800;
	color: var(--uc-text-secondary);
}

/* ── Phase 37 Photo Album ─────────────────────────────────────────────── */

body.uc-album-modal-open {
	overflow: hidden;
}

/* Create Album modal container — was never written. The button, JS open/close
   logic, and field styling all existed and worked; the modal toggled its
   "hidden" class correctly, but with no position/sizing rule of its own it
   rendered at 0x0 and was invisible. Confirmed via live DOM inspection
   2026-08-08: click fired, hidden class removed, getBoundingClientRect() was
   {0,0,0,0}. Pattern copied from .uc-invite-overlay (same DNA chrome). */
.uc-album-modal {
	position: fixed;
	inset: 0;
	z-index: 10020;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 18px;
}

.uc-album-modal:not(.hidden) {
	display: flex;
}

.uc-album-modal-backdrop {
	position: absolute;
	inset: 0;
	background: var(--uc-scrim-strong);
	backdrop-filter: blur(4px);
}

.uc-album-modal-card {
	position: relative;
	z-index: 1;
	width: min(94vw, 420px);
	max-height: min(88vh, 640px);
	overflow: auto;
	background: var(--uc-dna-card-surface, var(--uc-surface));
	color: var(--uc-text);
	border: 2px solid var(--uc-dna-border-strong, var(--uc-border-strong));
	border-radius: var(--uc-dna-card-radius, 12px);
	box-shadow:
		var(--uc-dna-shadow-hard, 6px 6px 0 rgba(0, 0, 0, 0.45)),
		0 0 0 1px color-mix(in srgb, var(--uc-gold) 22%, transparent),
		0 28px 60px -20px var(--uc-scrim);
	padding: 16px;
}

.uc-album-modal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: -16px -16px 14px;
	padding: 16px 16px 12px;
	border-bottom: 2px solid var(--uc-gold-dim, var(--uc-border));
	box-shadow: inset 0 -2px 0 var(--uc-gold);
	background: var(--uc-dna-header-red, var(--uc-primary));
	color: var(--uc-text-on-primary);
	font-weight: 800;
	letter-spacing: 0.04em;
}

#page-profile .uc-album-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 12px;
}

#page-profile .uc-album-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

#page-profile .uc-album-pill {
	appearance: none;
	border: 1px solid var(--uc-surface-sunken);
	background: var(--uc-surface);
	color: var(--uc-text-secondary);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 6px 10px;
	border-radius: 8px;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

#page-profile .uc-album-pill:hover {
	background: var(--uc-surface-raised);
	border-color: var(--uc-border);
}

#page-profile .uc-album-pill.is-active,
#page-profile .uc-album-pill[aria-pressed="true"] {
	background: var(--uc-primary);
	border-color: var(--uc-primary-darker);
	color: var(--uc-text-on-primary);
}

#page-profile .uc-album-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

@media (min-width: 640px) {
	#page-profile .uc-album-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

#page-profile .uc-album-tile-wrap {
	position: relative;
}

#page-profile .uc-album-tile {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	padding: 0;
	border: 1px solid var(--uc-surface-sunken);
	border-radius: 10px;
	overflow: hidden;
	background: var(--uc-chrome);
	cursor: pointer;
	transition: transform 0.12s ease, box-shadow 0.12s ease;
}

#page-profile .uc-album-tile-delete {
	position: absolute;
	top: 6px;
	right: 6px;
	z-index: 3;
	width: 28px;
	height: 28px;
	padding: 0;
	border-radius: 999px;
	border: 1px solid var(--uc-gold-dim);
	background: var(--uc-scrim-strong);
	color: var(--uc-text-on-primary);
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

#page-profile .uc-album-tile-delete:hover,
#page-profile .uc-album-tile-delete:focus-visible {
	background: var(--uc-chrome);
	border-color: var(--uc-gold);
	color: var(--uc-gold);
	outline: none;
}

#page-profile .uc-album-tile:hover,
#page-profile .uc-album-tile:focus-visible {
	transform: translateY(-1px);
	box-shadow: 0 6px 16px var(--uc-wash-soft);
	outline: 2px solid var(--uc-primary);
	outline-offset: 1px;
}

#page-profile .uc-album-tile img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

#page-profile .uc-album-tile video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	background: var(--uc-chrome);
	pointer-events: none;
}

#page-profile .uc-album-tile-video {
	position: absolute;
	right: 6px;
	bottom: 6px;
	padding: 2px 6px;
	border-radius: 6px;
	background: rgba(15, 23, 42, 0.88);
	border: 1px solid rgba(250, 204, 21, 0.55);
	color: var(--uc-gold);
	font-size: 8px;
	font-weight: 900;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	z-index: 1;
}

#page-profile .uc-album-tile img.uc-album-img--broken {
	opacity: 0.35;
}

#page-profile .uc-album-tile-cat {
	position: absolute;
	left: 6px;
	top: 6px;
	padding: 2px 6px;
	border-radius: 6px;
	background: rgba(153, 27, 27, 0.92);
	color: var(--uc-text-on-primary);
	font-size: 8px;
	font-weight: 900;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

#page-profile .uc-album-tile-default {
	position: absolute;
	left: 6px;
	bottom: 6px;
	z-index: 2;
	padding: 2px 6px;
	border-radius: 6px;
	background: rgba(15, 23, 42, 0.88);
	border: 1px solid rgba(250, 204, 21, 0.55);
	color: var(--uc-gold);
	font-size: 8px;
	font-weight: 900;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

#page-profile .uc-album-tile-likes {
	position: absolute;
	right: 6px;
	bottom: 6px;
	padding: 2px 6px;
	border-radius: 6px;
	background: rgba(15, 23, 42, 0.78);
	color: #fef3c7;
	font-size: 9px;
	font-weight: 800;
}

#page-profile .uc-album-empty {
	padding: 28px 12px;
	text-align: center;
	border: 1px dashed var(--uc-slate-300);
	border-radius: 12px;
	background: var(--uc-surface-raised);
}

#page-profile .uc-album-empty-icon {
	font-size: 22px;
	color: var(--uc-text-muted);
	margin-bottom: 8px;
}

#page-profile .uc-album-empty-title {
	font-size: 12px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--uc-primary-ink);
	margin-bottom: 4px;
}

#page-profile .uc-album-empty-detail {
	font-size: 11px;
	font-weight: 600;
	color: var(--uc-text-muted);
	line-height: 1.4;
}

.uc-album-lightbox,
.uc-album-upload-modal {
	position: fixed;
	inset: 0;
	z-index: 10050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px;
	background: rgba(15, 23, 42, 0.78);
	backdrop-filter: blur(6px);
}

.uc-album-lightbox.hidden,
.uc-album-upload-modal.hidden {
	display: none !important;
}

.uc-album-lightbox-card {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(920px, 100%);
	max-height: calc(100dvh - 24px);
	overflow: hidden;
	border-radius: 16px;
	border: 2px solid rgba(148, 163, 184, 0.35);
	background: var(--uc-surface);
	box-shadow: 0 24px 64px var(--uc-scrim);
}

@media (min-width: 900px) {
	.uc-album-lightbox-card {
		flex-direction: row;
	}
}

.uc-album-lightbox-close,
.uc-album-modal-x {
	appearance: none;
	border: 1px solid var(--uc-veil-strong);
	background: rgba(15, 23, 42, 0.8);
	color: var(--uc-text-on-primary);
	width: 34px;
	height: 34px;
	border-radius: 999px;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}

.uc-album-lightbox-close {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 3;
}

.uc-album-lightbox-media {
	position: relative;
	flex: 1 1 auto;
	min-height: 240px;
	background: var(--uc-chrome);
	display: flex;
	align-items: center;
	justify-content: center;
}

.uc-album-lightbox-media img {
	max-width: 100%;
	max-height: min(70vh, 640px);
	object-fit: contain;
}

.uc-album-lightbox-video {
	max-width: 100%;
	max-height: min(70vh, 640px);
	width: auto;
	height: auto;
	object-fit: contain;
	background: #000;
}

.uc-album-lightbox-cat {
	position: absolute;
	left: 12px;
	top: 12px;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--uc-primary);
	color: var(--uc-text-on-primary);
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	border: 1px solid var(--uc-gold);
}

.uc-album-lightbox-side {
	width: 100%;
	max-width: 100%;
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	overflow: auto;
}

@media (min-width: 900px) {
	.uc-album-lightbox-side {
		width: 300px;
		flex: 0 0 300px;
	}
}

.uc-album-lightbox-title {
	font-size: 15px;
	font-weight: 900;
	color: var(--uc-text);
	margin: 0 0 4px;
}

.uc-album-lightbox-date,
.uc-album-lightbox-place {
	margin: 0;
	font-size: 11px;
	font-weight: 700;
	color: var(--uc-text-muted);
}

.uc-album-lightbox-place:not(.hidden)::before {
	content: "📍 ";
}

.uc-album-lightbox-like-row {
	padding: 10px 0;
	border-top: 1px solid var(--uc-surface-sunken);
	border-bottom: 1px solid var(--uc-surface-sunken);
}

.uc-album-like-btn {
	appearance: none;
	border: 0;
	background: transparent;
	color: var(--uc-danger-text);
	font-size: 13px;
	font-weight: 900;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	padding: 0;
}

.uc-album-like-btn.is-liked,
.uc-album-like-btn[aria-pressed="true"] {
	color: var(--uc-primary);
}

.uc-album-lightbox-actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.uc-album-upload-card {
	width: min(440px, 100%);
	max-height: calc(100dvh - 24px);
	overflow: auto;
	border-radius: 16px;
	border: 2px solid rgba(148, 163, 184, 0.35);
	background: var(--uc-surface);
	box-shadow: 0 24px 64px var(--uc-shadow-ink-strong);
}

.uc-album-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.uc-album-field-label {
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--uc-primary-ink);
}

.uc-album-upload-status {
	font-size: 11px;
	font-weight: 700;
	color: var(--uc-text-secondary);
}

.uc-album-upload-status.is-error {
	color: var(--uc-danger-text);
}

#page-profile .uc-album-gear-btn.hidden {
	display: none !important;
}

.uc-album-settings-lead {
	margin: 0;
	font-size: 12px;
	line-height: 1.4;
	color: var(--uc-text-secondary);
}

/* My Music upload — terms gate (matches photo album overlay styling) */
.uc-music-upload-terms {
	margin: 0;
	padding-left: 1.1rem;
	font-size: 12px;
	line-height: 1.45;
	color: var(--uc-text-secondary);
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}

.uc-music-agree-row {
	display: flex;
	align-items: flex-start;
	gap: 0.55rem;
	font-size: 12px;
	line-height: 1.4;
	font-weight: 700;
	color: var(--uc-primary-ink);
	cursor: pointer;
}

.uc-music-agree-row input[type="checkbox"] {
	margin-top: 0.15rem;
	flex-shrink: 0;
	width: 1rem;
	height: 1rem;
	accent-color: var(--uc-primary, #9b1c1c);
}

.uc-album-settings-rows {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.uc-album-settings-row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 8px;
	padding-bottom: 12px;
	border-bottom: 1px solid rgba(127, 29, 29, 0.12);
}

.uc-album-settings-row:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.uc-album-settings-row__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	grid-column: 1 / -1;
}

.uc-album-settings-row__title {
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--uc-primary-ink);
}

.uc-album-settings-remove {
	border: 1px solid var(--uc-primary-darker);
	background: var(--uc-surface);
	color: var(--uc-primary-ink);
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 4px 8px;
	border-radius: 999px;
	cursor: pointer;
}

.uc-album-settings-remove:hover {
	background: var(--uc-primary-darker);
	color: var(--uc-text-on-primary);
}

.uc-album-settings-add {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-top: 4px;
}

.uc-album-settings-add.hidden,
.uc-album-settings-add[hidden] {
	display: none;
}

.uc-album-settings-add-btn {
	width: 44px;
	height: 44px;
	border-radius: 999px;
	border: 2px solid var(--uc-border-strong);
	background: var(--uc-gold);
	color: var(--uc-text-on-gold);
	font-size: 28px;
	font-weight: 900;
	line-height: 1;
	display: grid;
	place-items: center;
	cursor: pointer;
	box-shadow: 3px 3px 0 var(--uc-border-strong);
	transition: transform 0.12s ease, filter 0.12s ease;
}

.uc-album-settings-add-btn:hover {
	filter: brightness(1.05);
}

.uc-album-settings-add-btn:active {
	transform: translate(1px, 1px);
	box-shadow: 2px 2px 0 var(--uc-border-strong);
}

.uc-album-settings-add-label {
	font-size: 12px;
	font-weight: 800;
	color: var(--uc-text-secondary);
}

@media (min-width: 640px) {
	.uc-album-settings-row {
		grid-template-columns: 1fr 1fr;
		align-items: end;
	}
}

#page-profile .sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.uc-profile-avatar-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.45rem;
  width: min(100%, 190px);
  margin: 0.65rem auto 0;
}

.uc-profile-avatar-tools.hidden {
  display: none;
}


/* ── Global Pulse overlay + Home carousel (Phase 57) ── */
.uc-pulse-overlay {
	position: fixed;
	inset: 0;
	z-index: 10030;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 18px;
}
.uc-pulse-overlay.is-open { display: flex; }
.uc-pulse-overlay__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.58);
	backdrop-filter: blur(4px);
}
.uc-pulse-overlay__card {
	position: relative;
	z-index: 1;
	width: min(94vw, 440px);
	max-height: min(88vh, 680px);
	overflow: auto;
	background: var(--uc-dna-card-surface, var(--uc-surface));
	color: var(--uc-text);
	border: 2px solid var(--uc-dna-border-strong, var(--uc-border-strong));
	border-radius: var(--uc-dna-card-radius, 12px);
	box-shadow:
		var(--uc-dna-shadow-hard, 6px 6px 0 rgba(0, 0, 0, 0.45)),
		0 0 0 1px color-mix(in srgb, var(--uc-gold) 22%, transparent),
		0 28px 60px -20px var(--uc-scrim);
}
.uc-pulse-overlay__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 16px 12px;
	border-bottom: 2px solid var(--uc-gold-dim, var(--uc-border));
	box-shadow: inset 0 -2px 0 var(--uc-gold);
	background: var(--uc-dna-header-red, var(--uc-primary));
	color: var(--uc-text-on-primary);
}
.uc-pulse-overlay__brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.uc-pulse-overlay__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 11px;
	color: var(--uc-text-on-gold);
	background: linear-gradient(145deg, var(--uc-gold) 0%, var(--uc-gold-dim) 100%);
	box-shadow: var(--uc-dna-shadow-soft, 2px 2px 0 rgba(0, 0, 0, 0.35));
	flex: 0 0 auto;
}
.uc-pulse-overlay__title { font-size: 16px; font-weight: 900; letter-spacing: -0.02em; color: var(--uc-text-on-primary); }
.uc-pulse-overlay__sub { font-size: 11px; font-weight: 700; color: var(--uc-gold); margin-top: 2px; }
.uc-pulse-overlay__close { border: 0; background: transparent; color: var(--uc-text-on-primary); font-size: 24px; line-height: 1; cursor: pointer; opacity: 0.88; }
.uc-pulse-overlay__body { display: grid; gap: 12px; padding: 16px; }
.uc-pulse-overlay__question { font-size: 17px; font-weight: 800; color: var(--uc-text); line-height: 1.35; margin: 0; }
.uc-pulse-overlay__options { display: grid; gap: 8px; }
.uc-pulse-overlay__option {
	text-align: left;
	padding: 10px 12px;
	border-radius: 12px;
	border: 1px solid var(--uc-border);
	background: var(--uc-surface-soft);
	font-weight: 700;
	cursor: pointer;
	color: var(--uc-text);
}
.uc-pulse-overlay__option.is-selected {
	border-color: var(--uc-gold);
	box-shadow: inset 0 0 0 1px var(--uc-gold);
}
.uc-pulse-overlay__label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.01em;
	color: var(--uc-text-muted);
}
.uc-pulse-overlay__textarea {
	width: 100%;
	min-height: 64px;
	border-radius: 12px;
	border: 1px solid var(--uc-border);
	padding: 10px;
	background: var(--uc-surface);
	color: var(--uc-text);
	resize: vertical;
}
.uc-pulse-overlay__textarea:focus {
	outline: none;
	border-color: var(--uc-gold);
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--uc-gold) 28%, transparent);
}
.uc-pulse-overlay__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.uc-pulse-overlay__bar-row { display: grid; gap: 4px; }
.uc-pulse-overlay__bar-label { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 700; }
.uc-pulse-overlay__bar-track,
.uc-pulse-slide-bar-track {
	height: 8px;
	border-radius: 999px;
	background: var(--uc-surface-muted);
	overflow: hidden;
}
.uc-pulse-overlay__bar-fill,
.uc-pulse-slide-bar-fill {
	height: 100%;
	background: linear-gradient(90deg, var(--uc-gold-dim), var(--uc-gold));
	border-radius: 999px;
}
body.uc-pulse-overlay-open { overflow: hidden; }

.uc-pulse-carousel-nav {
	width: 28px;
	height: 28px;
	border-radius: 999px;
	border: 1px solid var(--uc-border);
	background: var(--uc-surface-soft);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	color: var(--uc-text);
}
.uc-pulse-carousel-dots { display: flex; gap: 6px; justify-content: center; margin-top: 12px; }
.uc-pulse-dot {
	width: 8px;
	height: 8px;
	border-radius: 999px;
	border: 0;
	padding: 0;
	background: var(--uc-border);
	cursor: pointer;
}
.uc-pulse-dot.is-active { background: var(--uc-gold); width: 18px; }
.uc-pulse-slide-badge {
	display: inline-block;
	font-size: 10px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--uc-primary-ink);
	margin-bottom: 6px;
}
.uc-pulse-slide-question { font-size: 16px; font-weight: 800; margin: 0 0 12px; line-height: 1.35; }
.uc-pulse-slide-options { display: grid; gap: 8px; }
.uc-pulse-slide-option {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 10px;
	border-radius: 10px;
	border: 1px solid var(--uc-border);
	cursor: pointer;
	font-weight: 700;
}
.uc-pulse-slide-bar { display: grid; gap: 4px; }
.uc-pulse-slide-bar-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 700; }
.uc-pulse-slide-featured { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.uc-pulse-slide-quote {
	padding: 8px 10px;
	border-left: 3px solid var(--uc-gold);
	background: var(--uc-surface-soft);
	border-radius: 0 10px 10px 0;
	font-size: 12px;
}
.uc-pulse-slide-quote-user { display: block; margin-top: 4px; color: var(--uc-text-muted); font-weight: 700; }
