/* ── MobileSetStatusSheet ────────────────────────────────────────────
   Bottom sheet opened by tapping the avatar on the MobileYouPage.
   Lets the user flip between Online / Idle / DND / Invisible with
   the same rounded-card styling we use for the other mobile
   settings sheets. */

.root {
	display: flex;
	flex-direction: column;
	padding: 4px 16px 32px;
	gap: 12px;
}

.topBar {
	display: grid;
	grid-template-columns: 48px 1fr 48px;
	align-items: center;
	padding: 0 0 12px;
	border-bottom: 1px solid var(--background-header-secondary);
	margin-bottom: 4px;
}

.topBarTitle {
	font-size: 17px;
	font-weight: 700;
	color: var(--text-primary);
	text-align: center;
	margin: 0;
}

.topBarButton {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: none;
	background: transparent;
	color: var(--text-primary);
	cursor: pointer;
	transition: background-color 0.15s;
	-webkit-tap-highlight-color: transparent;
	margin: 0 auto;
}

.topBarButton:active {
	background-color: var(--background-modifier-hover);
}

.sectionLabel {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--text-primary-muted);
	padding: 0 4px;
}

/* Rounded card holding the list of status options — same pattern
   as MobileMessageActionsSheet and the other mobile settings cards.
   Uses `--background-secondary-alt` (not `--background-secondary`)
   so the card visually lifts off the BottomSheet surface, which is
   itself `--background-secondary`. */

.statusList {
	background-color: var(--background-secondary-alt);
	border-radius: 0.75rem;
	overflow: hidden;
}

.statusItem {
	position: relative;
	display: grid;
	grid-template-columns: 20px 1fr 24px;
	align-items: center;
	gap: 14px;
	width: 100%;
	padding: 16px;
	background: transparent;
	border: none;
	color: var(--text-primary);
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition: background-color 0.1s;
	-webkit-tap-highlight-color: transparent;
}

.statusItem:active {
	background-color: var(--background-modifier-hover);
}

.statusItem:not(:last-child)::after {
	content: '';
	position: absolute;
	left: calc(16px + 20px + 14px);
	right: 16px;
	bottom: 0;
	height: 1px;
	background-color: var(--background-header-secondary);
	pointer-events: none;
}

.statusDot {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	flex-shrink: 0;
}

.statusDotOnline {
	background-color: var(--status-online);
}

.statusDotIdle {
	background-color: var(--status-idle);
}

.statusDotDnd {
	background-color: var(--status-dnd);
}

.statusDotOffline {
	border: 2px solid var(--status-offline);
	box-sizing: border-box;
}

.statusText {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.statusName {
	font-size: 15px;
	font-weight: 700;
	color: var(--text-primary);
}

.statusSubtitle {
	font-size: 12px;
	color: var(--text-primary-muted);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Right-side indicator: a brand-primary checkmark circle on the
   currently-selected status row, nothing on the others. */

.statusCheck {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background-color: var(--brand-primary);
	color: #fff;
}

.statusCheckHidden {
	visibility: hidden;
}
