:root {
	--bg: #0b0e14;
	--fg: #e6e9ef;
	--muted: #8b94a7;
	--accent: #5b8cff;
	--speaking: #4ade80;
	--working: #fbbf24;
	--error: #f87171;
	color-scheme: dark;
}
* { box-sizing: border-box; }
body {
	margin: 0;
	min-height: 100dvh;
	background: var(--bg);
	color: var(--fg);
	font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
	display: grid;
	place-items: center;
	padding: env(safe-area-inset-top) 1rem env(safe-area-inset-bottom);
	-webkit-user-select: none;
	user-select: none;
}
.shell { display: grid; justify-items: center; gap: 1.5rem; text-align: center; width: min(24rem, 100%); }
.brand { margin: 0; font-size: 1.1rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.orb {
	width: 9rem; height: 9rem; border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, #2a3550, #131826);
	box-shadow: 0 0 0 1px #222a3d, 0 0 60px -20px var(--accent);
	transition: box-shadow .3s ease, transform .3s ease;
}
.orb[data-state="listening"] { box-shadow: 0 0 0 1px var(--accent), 0 0 90px -14px var(--accent); animation: pulse 2s ease-in-out infinite; }
.orb[data-state="speaking"]  { box-shadow: 0 0 0 1px var(--speaking), 0 0 90px -14px var(--speaking); }
.orb[data-state="working"]   { box-shadow: 0 0 0 1px var(--working), 0 0 90px -14px var(--working); animation: pulse 1.2s ease-in-out infinite; }
.orb[data-state="error"]     { box-shadow: 0 0 0 1px var(--error), 0 0 90px -14px var(--error); }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.045); } }
@media (prefers-reduced-motion: reduce) { .orb { animation: none !important; } }
.status { margin: 0; font-size: 1.05rem; min-height: 1.5em; }
.hint { margin: 0; color: var(--muted); font-size: .85rem; min-height: 1.5em; }
.controls { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: center; }
button { font: inherit; border-radius: 999px; padding: .7rem 1.5rem; border: 1px solid transparent; cursor: pointer; min-height: 44px; }
.primary { background: var(--accent); color: #08101f; font-weight: 600; }
.ghost { background: transparent; color: var(--muted); border-color: #2a3550; }
button:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
