:root {
	--bg: #000;
	--text: #fff;
	--muted: #a1a1aa;
	--glass: rgba(28, 28, 32, 0.72);
	--line: rgba(255, 255, 255, 0.1);
	--pink: #e84cff;
	--purple: #7a3cff;
	--orange: #ff6a3d;
	--grad: linear-gradient(135deg, #7a3cff 0%, #e84cff 52%, #ff6a3d 100%);
	--font: "Inter", "Cairo", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
	background: #000;
	color: var(--text);
	font-family: var(--font);
	overflow: hidden;
	isolation: isolate;
}
body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background: url("../img/bg-blocks.jpg") center / cover no-repeat;
	opacity: 0.1;
}
body[dir="rtl"] { font-family: "Cairo", "Inter", system-ui, sans-serif; }

.app {
	width: min(430px, 100%);
	height: 100%;
	margin: 0 auto;
	position: relative;
	display: flex;
	flex-direction: column;
	background:
		radial-gradient(120% 70% at 50% 110%, rgba(232, 76, 255, 0.18), transparent 55%);
	overflow: hidden;
}
.app.voice-open .chips { opacity: 0.35; pointer-events: none; }

.nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: calc(12px + env(safe-area-inset-top)) 16px 8px;
	z-index: 4;
	direction: ltr;
}
.nav-end { display: flex; align-items: center; gap: 8px; }
.round-btn {
	width: 44px;
	height: 44px;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: var(--glass);
	color: #fff;
	display: grid;
	place-items: center;
	backdrop-filter: blur(12px);
	cursor: pointer;
}
.round-btn.lg { width: 52px; height: 52px; }
.round-btn svg { width: 20px; height: 20px; }
.round-btn[aria-pressed="true"] { border-color: #e84cff; color: #e84cff; }
.nav-avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid var(--line);
	overflow: hidden;
	display: block;
	background: #000;
	flex: 0 0 auto;
}
.nav-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.nav-avatar img.is-logo,
.person-ava.is-logo,
.profile-photo img.is-logo {
	object-fit: contain;
	padding: 6px;
	background: #000;
}

.brand-pill {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px 6px 8px;
	border-radius: 999px;
	background: var(--glass);
	border: 1px solid var(--line);
	backdrop-filter: blur(12px);
	direction: ltr;
}
.brand-pill strong { font-size: 14px; line-height: 1.1; }
.brand-logo {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: contain;
	background: #000;
	padding: 2px;
	flex: 0 0 auto;
}

.home {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	min-height: 0;
	padding: 8px 0 0;
}
.home { position: relative; }
.orb-wrap {
	position: relative;
	margin-top: 4px;
	flex-shrink: 0;
	overflow: visible;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
}
.orb-stage {
	position: relative;
	display: grid;
	place-items: center;
	width: 100%;
}
.voice-wave {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: min(460px, 118%);
	height: 210px;
	pointer-events: none;
	z-index: 0;
	opacity: 0;
	transition: opacity .2s ease;
	mix-blend-mode: screen;
}
.orb-wrap.is-listening .voice-wave { opacity: 1; }
.home-ai {
	--ai-size: min(240px, 68vw, 32vh);
	position: relative;
	z-index: 1;
	width: var(--ai-size);
	height: var(--ai-size);
	border: 0;
	background: none;
	padding: 0;
	cursor: pointer;
	overflow: visible;
}
.voice-live {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	margin-top: 8px;
	z-index: 2;
}
.voice-live[hidden] { display: none !important; }
.stop-talk {
	border: 1px solid var(--line);
	background: rgba(24, 24, 27, .92);
	color: #fff;
	border-radius: 999px;
	padding: 10px 20px;
	font: 600 14px var(--font);
	cursor: pointer;
}
body[dir="rtl"] .stop-talk { font-family: "Cairo", "Inter", system-ui, sans-serif; }
.timer {
	margin: 0;
	font-size: 28px;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-align: center;
	color: #fff;
}
.home-ai-stage {
	width: 100%;
	height: 100%;
	overflow: visible;
	pointer-events: none;
}
.home-ai-stage > div { overflow: visible !important; }
.home-ai svg {
	display: block;
	width: 100% !important;
	height: 100% !important;
	overflow: visible !important;
	transform: scale(1.82) !important;
	transform-origin: 50% 50% !important;
}
.status {
	margin: 8px 24px 0;
	text-align: center;
	color: #e9a6ff;
	font-size: 14px;
	font-weight: 500;
	min-height: 1.2em;
}
.interim {
	margin: 10px 24px 0;
	color: #e9a6ff;
	text-align: center;
	min-height: 1.2em;
}
.chips {
	display: flex;
	flex-wrap: wrap;
	align-content: flex-start;
	justify-content: flex-start;
	gap: 6px 8px;
	width: 100%;
	padding: 10px 16px 8px;
	flex-shrink: 0;
}
.chat-pane {
	flex: 1;
	min-height: 0;
	width: 100%;
	display: flex;
	flex-direction: column;
	position: relative;
	padding: 4px 12px 8px;
}
.chat-pane.has-msgs { border-top: 1px solid var(--line); }
.chat-expand {
	position: absolute;
	top: 6px;
	inset-inline-end: 16px;
	z-index: 2;
	width: 32px;
	height: 32px;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: var(--glass);
	color: #fff;
	display: grid;
	place-items: center;
	cursor: pointer;
	backdrop-filter: blur(12px);
}
.chat-expand svg { width: 14px; height: 14px; }
.chat-expand[hidden] { display: none !important; }
.chat-expand .icon-collapse { display: none; }
.home.chat-expanded .chat-expand .icon-expand { display: none; }
.home.chat-expanded .chat-expand .icon-collapse { display: block; }
.home.chat-expanded .chat-pane {
	position: absolute;
	inset: 0;
	z-index: 5;
	background: #000;
	padding: 8px 12px 10px;
	border-top: 0;
}
.chip-btn {
	flex: 0 0 auto;
	width: max-content;
	max-width: 100%;
	border: 1px solid var(--line);
	background: rgba(24,24,27,.85);
	color: #fff;
	border-radius: 999px;
	padding: 7px 12px;
	font: 600 12px/1.35 var(--font);
	cursor: pointer;
	text-align: center;
	white-space: nowrap;
}
body[dir="rtl"] .chip-btn { font-family: "Cairo", "Inter", system-ui, sans-serif; }

.dock {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px calc(16px + env(safe-area-inset-bottom));
	z-index: 3;
	direction: ltr;
}
.msg-field {
	flex: 1;
	display: flex;
	align-items: center;
	background: rgba(24,24,27,.9);
	border: 1px solid var(--line);
	border-radius: 999px;
	padding-block: 4px;
	padding-inline: 16px 6px;
	min-width: 0;
}
.msg-field input {
	flex: 1;
	border: 0;
	background: transparent;
	color: #fff;
	font: 16px/1.3 var(--font);
	outline: none;
	min-width: 0;
	padding: 10px 0;
	text-align: start;
}
.icon-inline {
	width: 40px;
	height: 40px;
	border: 0;
	background: transparent;
	color: #d4d4d8;
	display: grid;
	place-items: center;
	cursor: pointer;
}
.icon-inline svg { width: 20px; height: 20px; }

.mic-btn {
	width: 56px;
	height: 56px;
	border: 0;
	border-radius: 50%;
	background: var(--grad);
	color: #fff;
	box-shadow: 0 10px 28px rgba(232, 76, 255, 0.4);
	display: grid;
	place-items: center;
	cursor: pointer;
	flex: 0 0 auto;
}
.mic-btn svg { width: 22px; height: 22px; }

.create-sheet {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	z-index: 7;
	display: flex;
	flex-direction: column;
	background: rgba(12,12,14,.94);
	border-top-left-radius: 28px;
	border-top-right-radius: 28px;
	padding: 10px 18px calc(20px + env(safe-area-inset-bottom));
	backdrop-filter: blur(18px);
	border-top: 1px solid var(--line);
}
.create-sheet[hidden] { display: none !important; }
.sheet-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 6px 0 14px;
}
.sheet-head strong { font-size: 16px; font-weight: 700; }
.sheet-x {
	width: 36px;
	height: 36px;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: #18181b;
	color: #fff;
	display: grid;
	place-items: center;
	cursor: pointer;
	flex-shrink: 0;
	padding: 0;
}
.sheet-x svg { width: 16px; height: 16px; }
.ref-box {
	display: grid; place-items: center;
	height: 132px; border: 1.5px dashed #3f3f46; border-radius: 18px;
	color: var(--muted); cursor: pointer; margin-bottom: 12px;
	background-size: cover; background-position: center;
	gap: 6px;
	text-align: center;
	padding: 12px;
}
.ref-box svg { width: 28px; height: 28px; }
.ref-box.has-image svg, .ref-box.has-image span { display: none; }
.primary {
	width: 100%; border: 0; border-radius: 999px; padding: 14px;
	background: linear-gradient(90deg, #7a3cff, #c43bff);
	color: #fff; font: 700 16px var(--font); cursor: pointer;
}

.drawer[hidden] { display: none !important; }
.drawer { position: absolute; inset: 0; z-index: 8; }
.drawer-bg { position: absolute; inset: 0; border: 0; background: rgba(0,0,0,.55); }
.drawer-panel {
	position: absolute; inset: 0 auto 0 0; width: min(86%, 340px);
	background: #0b0b0d; border-inline-end: 1px solid var(--line);
	padding: calc(16px + env(safe-area-inset-top)) 16px 16px;
	display: flex; flex-direction: column; min-height: 0;
	overflow: hidden;
}
body[dir="rtl"] .drawer-panel { inset: 0 0 0 auto; }
.drawer-head {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 12px;
	margin-bottom: 14px;
}
.drawer-profile {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px;
	border-radius: 18px;
	border: 1px solid var(--line);
	background: var(--glass);
	text-decoration: none;
	color: #fff;
	min-height: 80px;
}
.drawer-profile img {
	width: 58px;
	height: 58px;
	border-radius: 50%;
	object-fit: cover;
	background: #000;
	flex: 0 0 auto;
	border: 1px solid var(--line);
}
.drawer-profile img.is-logo { object-fit: contain; padding: 8px; }
.drawer-user-meta {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}
.drawer-user-meta strong {
	font-size: 16px;
	line-height: 1.2;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.drawer-user-meta span {
	font-size: 12px;
	color: var(--muted);
	text-transform: capitalize;
}
.drawer-head .lang-switch { align-self: flex-end; }
.drawer-foot {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	padding: 12px 0 4px;
	flex: 0 0 auto;
}
.drawer-foot .menu-card.danger {
	width: 100%;
	min-height: 64px;
	flex-direction: row;
}
.drawer-foot .lang-switch { align-self: center; }
.drawer-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	align-content: start;
	overflow: auto;
	padding-bottom: 8px;
	flex: 1;
	min-height: 0;
}
.menu-card {
	appearance: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 96px;
	padding: 14px 10px;
	border-radius: 18px;
	border: 1px solid var(--line);
	background: var(--glass);
	color: #fff;
	text-decoration: none;
	font: 600 12px/1.2 var(--font);
	text-align: center;
	cursor: pointer;
	backdrop-filter: blur(12px);
}
.menu-card .menu-ico {
	width: 40px;
	height: 40px;
	border-radius: 14px;
	display: grid;
	place-items: center;
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
}
.menu-card svg { width: 22px; height: 22px; }
.menu-card .menu-label { color: #fff; }
.menu-card[aria-pressed="true"] {
	border-color: transparent;
	background: var(--grad);
}
.menu-card[aria-pressed="true"] .menu-ico { background: rgba(0, 0, 0, 0.18); }
.menu-card .menu-ico-on { display: none; }
.menu-card[aria-pressed="true"] .menu-ico-off { display: none; }
.menu-card[aria-pressed="true"] .menu-ico-on { display: grid; }
.menu-card.danger {
	grid-column: 1 / -1;
	flex-direction: row;
	min-height: 56px;
	color: #fecdd3;
	border-color: rgba(254, 205, 211, 0.22);
}
.menu-card.danger .menu-ico { color: #fecdd3; background: rgba(254, 205, 211, 0.08); }
.drawer-panel h2 { margin: 8px 0; font-size: 13px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.messages {
	flex: 1;
	min-height: 0;
	overflow: auto;
	display: flex;
	flex-direction: column;
	gap: 10px;
	direction: ltr;
	padding-inline-end: 36px;
}
.msg {
	max-width: 92%; padding: 10px 12px; border-radius: 16px; font-size: 14px;
	line-height: 1.5; white-space: pre-wrap; word-break: break-word;
	unicode-bidi: plaintext; text-align: start;
}
.msg.user { align-self: flex-end; background: var(--grad); }
.msg.ai { align-self: flex-start; background: #18181b; border: 1px solid var(--line); }
.msg.error { color: #fecdd3; }
.msg table { width: 100%; border-collapse: collapse; font-size: 12px; white-space: normal; }
.msg th, .msg td { border: 1px solid var(--line); padding: 5px 6px; }

.chip {
	appearance: none; border: 1px solid var(--line); background: #18181b; color: #fff;
	border-radius: 999px; padding: 8px 12px; font: 600 12px var(--font); cursor: pointer;
	text-decoration: none; display: inline-flex; align-items: center;
}
.chip.ghost { background: transparent; color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--grad); border-color: transparent; }
.user-chip { font-size: 13px; font-weight: 600; align-self: center; }

.toast {
	position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
	background: #18181b; color: #fff; border: 1px solid var(--line);
	padding: 10px 16px; border-radius: 999px; z-index: 30; font-size: 13px;
}
.toast-popup {
	top: 20px;
	bottom: auto;
	z-index: 80;
	padding: 12px 22px;
	font-weight: 600;
	opacity: 1;
	box-shadow: 0 12px 40px rgba(0,0,0,.45);
	animation: toast-in .22s ease forwards;
}
.toast-popup.is-ok {
	border-color: #34d399;
	background: #052e1f;
}
.toast-popup.is-err {
	border-color: #f87171;
	background: #3f1212;
}
@keyframes toast-in {
	from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
	to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.sr-only {
	position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0);
}

.login-page {
	overflow: hidden;
	scrollbar-width: none;
}
.login-page::-webkit-scrollbar { display: none; width: 0; height: 0; }
html:has(.login-page) { overflow: hidden; scrollbar-width: none; }
html:has(.login-page)::-webkit-scrollbar { display: none; width: 0; height: 0; }
.login-wrap {
	position: relative;
	height: 100%;
	min-height: 0;
	overflow: hidden;
	display: grid;
	place-items: center;
	padding: 48px 18px 16px;
	background:
		radial-gradient(80% 50% at 50% 110%, rgba(232,76,255,.25), transparent 60%);
}
.login-brand {
	position: absolute;
	top: calc(14px + env(safe-area-inset-top));
	inset-inline-end: 16px;
	left: auto;
	right: auto;
	height: 44px;
	width: auto;
	max-width: min(200px, 48vw);
	object-fit: contain;
	mix-blend-mode: screen;
	z-index: 2;
	pointer-events: none;
}
.login-card {
	width: min(400px, 100%); display: flex; flex-direction: column; gap: 8px;
}
.login-logo { width: 72px; height: 72px; object-fit: contain; align-self: center; margin-bottom: 6px; }
.login-ai {
	--ai-size: min(200px, 52vw, 22vh);
	position: relative;
	width: var(--ai-size);
	height: var(--ai-size);
	align-self: center;
	margin: 0 auto 0;
	overflow: visible;
	pointer-events: none;
}
.login-ai-stage {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: var(--ai-size);
	overflow: visible;
}
.login-ai-stage > div {
	overflow: visible !important;
}
.login-ai svg {
	display: block;
	width: 100% !important;
	height: 100% !important;
	overflow: visible !important;
	transform: scale(1.82) !important;
	transform-origin: 50% 50% !important;
}
.login-card h1 { margin: 0; text-align: center; font-size: clamp(22px, 3.6vh, 28px); letter-spacing: -.03em; }
.login-sub { margin: 0 0 8px; text-align: center; color: var(--muted); }
.login-label { font-size: 12px; color: var(--muted); margin-top: 4px; text-align: start; }
.login-input {
	border: 1px solid var(--line); background: #18181b; color: #fff;
	border-radius: 999px; padding: 12px 16px; font: 16px var(--font); outline: none;
	text-align: start;
}
.login-error { color: #fecdd3; font-size: 13px; }
.login-btn {
	margin-top: 8px; border: 0; border-radius: 999px; padding: 12px;
	background: var(--grad); color: #fff; font: 700 16px var(--font); cursor: pointer;
}
.login-btn:disabled { opacity: .55; }
.lang-switch {
	--glow: #8ecbff;
	appearance: none;
	border: 0;
	padding: 0;
	width: 88px;
	height: 44px;
	background: transparent;
	cursor: pointer;
	position: relative;
	direction: ltr;
	flex: 0 0 auto;
	border-radius: 999px;
}
.lang-switch.is-ar { --glow: #9ef5a4; }
.lang-switch:focus-visible {
	outline: 2px solid var(--glow);
	outline-offset: 4px;
}
.lang-switch-track {
	position: absolute;
	inset: 0;
	border-radius: 999px;
	background: #081018;
	border: 2px solid var(--glow);
	box-shadow:
		0 0 8px var(--glow),
		0 0 20px var(--glow),
		inset 0 4px 8px rgba(0, 0, 0, 0.7),
		inset 0 -1px 2px rgba(255, 255, 255, 0.08);
	transition: border-color .25s ease, box-shadow .25s ease;
}
.lang-switch-knob {
	position: absolute;
	top: 4px;
	left: 4px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background:
		radial-gradient(circle at 32% 28%, #4a5d7a, #1a283c 58%, #0c1624);
	box-shadow:
		0 3px 8px rgba(0, 0, 0, 0.55),
		inset 0 1px 1px rgba(255, 255, 255, 0.28),
		inset 0 -3px 5px rgba(0, 0, 0, 0.45);
	display: grid;
	place-items: center;
	overflow: hidden;
	transition: left .28s cubic-bezier(.2, .8, .2, 1);
	z-index: 1;
}
.lang-switch.is-ar .lang-switch-knob { left: 48px; }
.lang-switch-flag {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	overflow: hidden;
	display: none;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
}
.lang-switch-flag svg {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
}
.lang-switch:not(.is-ar) .lang-switch-flag.is-en,
.lang-switch.is-ar .lang-switch-flag.is-ar { display: block; }
.login-flags { align-self: center; margin-top: 10px; }

.install-sheet { position: fixed; inset: 0; z-index: 40; display: flex; align-items: flex-end; justify-content: center; pointer-events: none; }
.install-sheet[hidden] { display: none !important; }
.install-sheet.open { pointer-events: auto; }
.install-backdrop { position: absolute; inset: 0; border: 0; background: rgba(0,0,0,.5); }
.install-card {
	position: relative; width: min(430px, 100%);
	background: #121214; border: 1px solid var(--line);
	border-radius: 24px 24px 0 0; padding: 22px 20px calc(18px + env(safe-area-inset-bottom));
	text-align: center;
}
.install-card img { width: 56px; height: 56px; border-radius: 14px; }
.install-card h2 { margin: 8px 0 6px; font-size: 18px; }
.install-card p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.install-ios { color: #e9a6ff !important; }
.install-actions { display: flex; flex-direction: column; gap: 10px; }
.install-actions .chip { align-self: center; }

body.voices-page {
	overflow: auto;
	background: #000;
	font-family: "Cairo", "Inter", system-ui, sans-serif;
}
.voices-wrap { width: min(920px, 100%); margin: 0 auto; padding: 24px 16px 80px; }
.voices-head h1 { margin: 16px 0 8px; font-size: 28px; }
.voices-head p, .voices-status, .voice-online, .voice-msg { color: var(--muted); font-size: 14px; }
.voices-label { display: block; margin: 16px 0 8px; font-size: 13px; color: var(--muted); }
.voices-page textarea {
	width: 100%; border: 1px solid var(--line); background: #121214; color: #fff;
	border-radius: 16px; padding: 14px; font: 16px "Cairo", sans-serif; resize: vertical;
}
.voices-grid { display: grid; gap: 14px; margin-top: 18px; }
@media (min-width: 720px) { .voices-grid { grid-template-columns: 1fr 1fr; } }
.voices-group {
	grid-column: 1 / -1; margin: 18px 0 0; font-size: 16px; color: var(--muted); font-weight: 700;
}
.voice-card {
	border: 1px solid var(--line); background: var(--glass); border-radius: 18px; padding: 16px;
}
.voice-card.selected { border-color: #e84cff; }
.voice-card h2, .voice-card h3 { margin: 0 0 8px; font-size: 18px; }
.voice-ar { font-size: 18px; line-height: 1.7; margin: 8px 0; color: #fff; }
.voice-tr { font-size: 13px; color: var(--muted); direction: ltr; text-align: left; margin: 0 0 10px; }
.voice-official { width: 100%; height: 36px; margin: 8px 0 4px; }
.voice-custom { margin-top: 18px; }
.voice-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.voice-actions .primary { padding: 10px 16px; border: 0; border-radius: 999px; cursor: pointer; font: 700 14px "Cairo", sans-serif; }
.voices-head a { color: #e84cff; }

@keyframes pulseGlow {
	0%, 100% { transform: scale(1); opacity: .9; }
	50% { transform: scale(1.08); opacity: 1; }
}

body.account-page {
	overflow: auto;
	background: #000;
}
.account-wrap { width: min(860px, 100%); margin: 0 auto; padding: 24px 16px 80px; }
.account-card {
	border: 1px solid var(--line);
	background: var(--glass);
	border-radius: 18px;
	padding: 18px;
	margin: 16px 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.account-card h3 { margin: 0 0 8px; }
.account-tabs { margin: 16px 0; }
.account-page .seg { display: flex; gap: 8px; flex-wrap: wrap; }
.account-page .seg button {
	border: 1px solid var(--line);
	background: #18181b;
	color: #fff;
	border-radius: 999px;
	padding: 8px 14px;
	font: 600 13px var(--font);
	cursor: pointer;
}
.account-page .seg button.on { background: var(--grad); border-color: transparent; }
.people-grid { display: grid; gap: 12px; }
@media (min-width: 720px) { .people-grid { grid-template-columns: 1fr 1fr; } }
.person-card {
	display: flex;
	align-items: center;
	gap: 12px;
	border: 1px solid var(--line);
	background: var(--glass);
	border-radius: 16px;
	padding: 12px 14px;
	margin-top: 10px;
}
.person-card.is-online { border-color: #34d399; }
.person-ava {
	width: 42px; height: 42px; border-radius: 50%;
	object-fit: cover; background: #111; flex: 0 0 auto;
	display: block;
}
.profile-photo {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
}
.profile-photo img {
	width: 96px;
	height: 96px;
	border-radius: 50%;
	object-fit: cover;
	border: 1px solid var(--line);
	background: #000;
}
.profile-photo img.is-logo { padding: 14px; }
.profile-photo .chip { cursor: pointer; }
.person-card p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.person-card strong { font-size: 15px; }
.person-card .chip { margin-inline-start: auto; }
.person-card .card-actions {
	margin-inline-start: auto;
	display: flex;
	gap: 6px;
	flex-shrink: 0;
}
.person-card .card-actions .chip { margin-inline-start: 0; }
.perm-block { margin: 8px 0 4px; }
.perm-block h4 { margin: 4px 0 8px; font-size: 14px; }
.perm-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}
.perm-table th,
.perm-table td {
	padding: 8px 6px;
	border-bottom: 1px solid var(--line);
	text-align: center;
}
.perm-table th:first-child,
.perm-table td:first-child {
	text-align: start;
	font-weight: 600;
}
.perm-table input[type="checkbox"] {
	width: 18px;
	height: 18px;
	cursor: pointer;
}
.perm-table input[type="checkbox"]:disabled { cursor: not-allowed; opacity: .7; }
.about-logo { width: 72px; height: 72px; object-fit: contain; display: block; margin: 12px 0; }
.about-copy p { color: #ddd; line-height: 1.7; font-size: 15px; }
.account-page .login-input { width: 100%; }
.account-page select.login-input { appearance: auto; }
#profileNav[hidden],
#peopleNav[hidden],
#usersNav[hidden],
#rolesNav[hidden],
#aboutNav[hidden],
#voicesNav[hidden] { display: none !important; }
