/* public/styles/tokens.css */
:root {
  --theme-accent:
    99,
    102,
    241;
  --theme-accent-text: #a5b4fc;
  --ink-950: #0b0c10;
  --ink-900: #111318;
  --ink-800: #181b22;
  --ink-700: #20242d;
  --ink-600: #2b303b;
  --ink-500: #3a4150;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.14);
  --glass: rgba(24, 27, 34, 0.92);
  --glass-strong: rgba(24, 27, 34, 0.96);
  --glass-blur: blur(14px);
  --text: #eceef3;
  --text-2: #a4abbb;
  --text-3: #767e8f;
  --ok: #4ade80;
  --warn: #fbbf24;
  --bad: #f87171;
  --dnd: #c084fc;
  --off:
    239,
    68,
    68;
  --amber:
    245,
    158,
    11;
  --font-ui:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  --font-pixel:
    "Silkscreen",
    "Courier New",
    monospace;
  --text-xs: 11px;
  --text-sm: 12px;
  --text-md: 13px;
  --text-lg: 14px;
  --text-xl: 16px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --radius-lg: 16px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --radius-pill: 999px;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --shadow-sm: 0 6px 20px rgba(0, 0, 0, 0.4);
  --dur-fast: 0.12s;
  --dur: 0.18s;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-pop: cubic-bezier(0.2, 0.9, 0.3, 1.2);
  --header-h: 48px;
  --dock-h: 56px;
  --gutter: 16px;
  --rail-w: 260px;
  --ctl: 40px;
  --ctl-radius: 10px;
  --ctl-sm: 36px;
  --tip-h: 30px;
  --icon-size: 20px;
  --tile-w: 200px;
  --corner-h: 170px;
  --decorate-w: 300px;
  --focus-ring: 0 0 0 2px var(--ink-950), 0 0 0 4px rgb(var(--theme-accent));
  --i-mic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='2' width='6' height='12' rx='3'/%3E%3Cpath d='M5 10a7 7 0 0 0 14 0M12 17v4M8 21h8'/%3E%3C/svg%3E");
  --i-mic-off: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5a3 3 0 0 1 6 0v5M9 9v2a3 3 0 0 0 5.1 2.1M5 10a7 7 0 0 0 11 5.7M19 10a7 7 0 0 1-.6 2.8M12 17v4M8 21h8M3 3l18 18'/%3E%3C/svg%3E");
  --i-cam: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='6' width='13' height='12' rx='2'/%3E%3Cpath d='M15 10l6-3v10l-6-3'/%3E%3C/svg%3E");
  --i-cam-off: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 6h3a2 2 0 0 1 2 2v2l6-3v10l-2-1M15 15v1a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h1M3 3l18 18'/%3E%3C/svg%3E");
  --i-screen: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='13' rx='2'/%3E%3Cpath d='M8 21h8M12 17v4'/%3E%3C/svg%3E");
  --i-lock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E");
  --i-unlock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 7.7-1.5'/%3E%3C/svg%3E");
  --i-user: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E");
  --i-sliders: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h9M17 6h3M4 12h3M11 12h9M4 18h11M19 18h1'/%3E%3Ccircle cx='15' cy='6' r='2'/%3E%3Ccircle cx='9' cy='12' r='2'/%3E%3Ccircle cx='17' cy='18' r='2'/%3E%3C/svg%3E");
  --i-chat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8 8 0 0 1-11.6 7.1L4 21l1.9-5.4A8 8 0 1 1 21 12z'/%3E%3C/svg%3E");
  --i-shield: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 3v6c0 5-3.5 8-8 9-4.5-1-8-4-8-9V6z'/%3E%3C/svg%3E");
  --i-pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-6-5.5-6-11a6 6 0 0 1 12 0c0 5.5-6 11-6 11z'/%3E%3Ccircle cx='12' cy='10' r='2'/%3E%3C/svg%3E");
  --i-walk: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='13' cy='4' r='2'/%3E%3Cpath d='M7 21l3-7-2-2-3 3M10 14l3 3v4M12 10l-3 2M12 9l4 3h3'/%3E%3C/svg%3E");
  --i-follow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='7' r='3.5'/%3E%3Cpath d='M2 21a7 7 0 0 1 14 0M16 11l3 3-3 3M22 14h-5'/%3E%3C/svg%3E");
  --i-wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 11V6a1.5 1.5 0 0 1 3 0v5M10 10V4a1.5 1.5 0 0 1 3 0v6M13 10V5a1.5 1.5 0 0 1 3 0v8M16 12a1.5 1.5 0 0 1 3 1v2a7 7 0 0 1-7 7h-1a7 7 0 0 1-6-3.5L3 14a1.5 1.5 0 0 1 2.6-1.5L7 14'/%3E%3C/svg%3E");
  --i-logout: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4M16 17l5-5-5-5M21 12H9'/%3E%3C/svg%3E");
  --i-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  --i-chevron-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E");
  --i-bell: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9'/%3E%3Cpath d='M10.3 21a1.94 1.94 0 0 0 3.4 0'/%3E%3C/svg%3E");
  --i-send: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 2L11 13'/%3E%3Cpath d='M22 2l-7 20-4-9-9-4z'/%3E%3C/svg%3E");
  --i-nearby: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3Cpath d='M16.2 7.8a6 6 0 0 1 0 8.4M7.8 16.2a6 6 0 0 1 0-8.4M19.1 4.9a10 10 0 0 1 0 14.2M4.9 19.1a10 10 0 0 1 0-14.2'/%3E%3C/svg%3E");
  --i-people: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.9M16 3.1a4 4 0 0 1 0 7.8'/%3E%3C/svg%3E");
  --i-chevron-left: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 6l-6 6 6 6'/%3E%3C/svg%3E");
  --i-keyboard: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='6' width='20' height='12' rx='2'/%3E%3Cpath d='M6 10h.01M10 10h.01M14 10h.01M18 10h.01M8 14h8'/%3E%3C/svg%3E");
  --i-brush: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.06 11.9l8.07-8.06a2.85 2.85 0 1 1 4.03 4.03l-8.06 8.08'/%3E%3Cpath d='M7.07 14.94c-1.66 0-3 1.35-3 3.02 0 1.33-2.5 1.52-2 2.02 1.08 1.1 2.49 2.02 4 2.02 2.2 0 4-1.8 4-4.04a3.01 3.01 0 0 0-3-3.02z'/%3E%3C/svg%3E");
  --i-undo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 14L4 9l5-5'/%3E%3Cpath d='M4 9h10.5a5.5 5.5 0 0 1 0 11H11'/%3E%3C/svg%3E");
  --i-redo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 14l5-5-5-5'/%3E%3Cpath d='M20 9H9.5a5.5 5.5 0 0 0 0 11H13'/%3E%3C/svg%3E");
  --i-eraser: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 21l-4.3-4.3c-1-1-1-2.5 0-3.4l9.6-9.6c1-1 2.5-1 3.4 0l5.6 5.6c1 1 1 2.5 0 3.4L13 21'/%3E%3Cpath d='M22 21H7'/%3E%3Cpath d='M5 11l9 9'/%3E%3C/svg%3E");
  --i-select: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 3l7 17 2.5-7.5L21 10z'/%3E%3C/svg%3E");
  --i-grid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='3.5' width='7' height='7' rx='1.5'/%3E%3Crect x='13.5' y='3.5' width='7' height='7' rx='1.5'/%3E%3Crect x='3.5' y='13.5' width='7' height='7' rx='1.5'/%3E%3Crect x='13.5' y='13.5' width='7' height='7' rx='1.5'/%3E%3C/svg%3E");
  --i-plant: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 15h10l-1.2 6H8.2z'/%3E%3Cpath d='M12 15V9'/%3E%3Cpath d='M12 11c0-3.3-2.2-5-5.5-5 0 3.3 2.2 5 5.5 5zM12 9c0-3.3 2.2-5 5.5-5 0 3.3-2.2 5-5.5 5z'/%3E%3C/svg%3E");
  --i-flower: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 4l2 2.2L12 3.5l2 2.7L16 4v5a4 4 0 0 1-8 0z'/%3E%3Cpath d='M12 13v8'/%3E%3Cpath d='M12 18.5c-2.6 0-4.5-1.5-5-4 2.6 0 4.5 1.5 5 4z'/%3E%3C/svg%3E");
  --i-briefcase: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='7' width='18' height='13' rx='2'/%3E%3Cpath d='M8 7V5a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2M3 13h18'/%3E%3C/svg%3E");
  --i-cup: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9h12v5a5 5 0 0 1-5 5H9a5 5 0 0 1-5-5z'/%3E%3Cpath d='M16 11h1.5a2.5 2.5 0 0 1 0 5H16'/%3E%3Cpath d='M8 3.5v2M12 3.5v2'/%3E%3C/svg%3E");
  --i-sofa: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13V8a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v5'/%3E%3Cpath d='M3 11a2 2 0 0 0-2 2v5h22v-5a2 2 0 0 0-4 0v1H5v-1a2 2 0 0 0-2-2z'/%3E%3Cpath d='M4 18v2M20 18v2'/%3E%3C/svg%3E");
  --i-frame: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Ccircle cx='9' cy='9.5' r='1.5'/%3E%3Cpath d='M21 15l-5-5L5 20'/%3E%3C/svg%3E");
  --i-gamepad: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='6' width='20' height='12' rx='6'/%3E%3Cpath d='M6 12h4M8 10v4M15 11h.01M18 13h.01'/%3E%3C/svg%3E");
  --i-rug: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 6h14l-4 12H3z'/%3E%3Cpath d='M9.5 10h6.7M8.2 14h6.7'/%3E%3C/svg%3E");
  --i-box: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 8l-9-5-9 5v8l9 5 9-5z'/%3E%3Cpath d='M3 8l9 5 9-5M12 13v8'/%3E%3C/svg%3E");
  --i-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.3-4.3'/%3E%3C/svg%3E");
  --i-trash: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6'/%3E%3Cpath d='M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2'/%3E%3C/svg%3E");
  --i-rotate: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a9 9 0 1 1-2.6-6.4L21 8'/%3E%3Cpath d='M21 3v5h-5'/%3E%3C/svg%3E");
  --i-minus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E");
  --i-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M5 12h14M12 5v14'/%3E%3C/svg%3E");
  --i-close: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
  --i-fit: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9V5a1 1 0 0 1 1-1h4M15 4h4a1 1 0 0 1 1 1v4M20 15v4a1 1 0 0 1-1 1h-4M9 20H5a1 1 0 0 1-1-1v-4'/%3E%3Crect x='9' y='9' width='6' height='6' rx='1'/%3E%3C/svg%3E");
  --i-recenter: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='6'/%3E%3Cpath d='M12 2v4M12 18v4M2 12h4M18 12h4'/%3E%3Ccircle cx='12' cy='12' r='1.5' fill='black'/%3E%3C/svg%3E");
  --i-more: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Ccircle cx='5' cy='12' r='2'/%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3Ccircle cx='19' cy='12' r='2'/%3E%3C/svg%3E");
  --i-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E");
  --i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E");
  --i-info: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5M12 8h.01'/%3E%3C/svg%3E");
  --i-clock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
  --i-speaker: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 5L6 9H3v6h3l5 4z'/%3E%3Cpath d='M15.5 8.5a5 5 0 0 1 0 7M18.5 5.5a9 9 0 0 1 0 13'/%3E%3C/svg%3E");
  --i-speaker-off: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 5L6 9H3v6h3l5 4z'/%3E%3Cpath d='M22 9l-6 6M16 9l6 6'/%3E%3C/svg%3E");
  --i-smile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 14s1.5 2 4 2 4-2 4-2M9 9h.01M15 9h.01'/%3E%3C/svg%3E");
  --i-tabs: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='8' width='14' height='12' rx='2'/%3E%3Cpath d='M7 8V6a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-2'/%3E%3C/svg%3E");
}

/* public/styles/base.css */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  height: 100%;
}
body {
  background-color: var(--ink-900);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.045) 1px,
      transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.02) 1px,
      transparent 1px);
  background-position: -1px -1px;
  background-size:
    80px 80px,
    80px 80px,
    16px 16px,
    16px 16px;
  color: var(--text);
  display: flex;
  flex-direction: column;
  font-family: var(--font-ui);
  font-size: 14px;
  height: 100vh;
  height: 100dvh;
  line-height: 1.4;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
:focus-visible {
  outline: 2px solid rgb(var(--theme-accent));
  outline-offset: 2px;
}
::selection {
  background: rgba(var(--theme-accent), 0.4);
}
.icon-glyph {
  display: none;
}
.eyebrow {
  color: var(--text-3);
  font-family: var(--font-pixel);
  font-size: 9px;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}
kbd {
  background: var(--ink-700);
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 4px;
  color: var(--text-2);
  font-family: var(--font-pixel);
  font-size: 9px;
  line-height: 1;
  padding: 3px 5px 2px;
  text-transform: uppercase;
}

/* public/styles/header.css */
header {
  align-items: center;
  background: var(--ink-950);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-shrink: 0;
  gap: 12px;
  height: var(--header-h);
  padding: 0 var(--gutter);
  position: relative;
  z-index: 1100;
}
.brand {
  align-items: center;
  display: flex;
  gap: 10px;
}
.brand-mark {
  --px: 2px;
  background: transparent;
  color: rgb(var(--theme-accent));
  height: var(--px);
  margin: 0 12px 10px 0;
  transition: color 0.4s ease;
  width: var(--px);
  box-shadow:
    calc(var(--px) * 3) 0 0 currentColor,
    calc(var(--px) * 2) var(--px) 0 currentColor,
    calc(var(--px) * 3) var(--px) 0 currentColor,
    calc(var(--px) * 4) var(--px) 0 currentColor,
    var(--px) calc(var(--px) * 2) 0 currentColor,
    calc(var(--px) * 2) calc(var(--px) * 2) 0 currentColor,
    calc(var(--px) * 3) calc(var(--px) * 2) 0 currentColor,
    calc(var(--px) * 4) calc(var(--px) * 2) 0 currentColor,
    calc(var(--px) * 5) calc(var(--px) * 2) 0 currentColor,
    0 calc(var(--px) * 3) 0 currentColor,
    var(--px) calc(var(--px) * 3) 0 currentColor,
    calc(var(--px) * 2) calc(var(--px) * 3) 0 currentColor,
    calc(var(--px) * 3) calc(var(--px) * 3) 0 currentColor,
    calc(var(--px) * 4) calc(var(--px) * 3) 0 currentColor,
    calc(var(--px) * 5) calc(var(--px) * 3) 0 currentColor,
    calc(var(--px) * 6) calc(var(--px) * 3) 0 currentColor,
    var(--px) calc(var(--px) * 4) 0 currentColor,
    calc(var(--px) * 2) calc(var(--px) * 4) 0 currentColor,
    calc(var(--px) * 4) calc(var(--px) * 4) 0 currentColor,
    calc(var(--px) * 5) calc(var(--px) * 4) 0 currentColor,
    var(--px) calc(var(--px) * 5) 0 currentColor,
    calc(var(--px) * 2) calc(var(--px) * 5) 0 currentColor,
    calc(var(--px) * 4) calc(var(--px) * 5) 0 currentColor,
    calc(var(--px) * 5) calc(var(--px) * 5) 0 currentColor;
}
header h1 {
  color: var(--text);
  font-family: var(--font-pixel);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.header-right {
  align-items: center;
  display: flex;
  gap: 10px;
  margin-left: auto;
}
#status {
  align-items: center;
  border-radius: 999px;
  color: var(--text-3);
  display: flex;
  font-size: 11px;
  font-weight: 500;
  gap: 7px;
  letter-spacing: 0.04em;
  padding: 4px 10px 4px 8px;
  text-transform: uppercase;
  transition: color 0.3s ease;
}
#status::before {
  background: currentColor;
  border-radius: 50%;
  content: "";
  height: 7px;
  width: 7px;
}
body:not(:has(#game-container.active)) #status {
  display: none;
}
#status.connected {
  color: var(--text-3);
}
#status.connected::before {
  background: var(--ok);
  box-shadow: 0 0 8px var(--ok);
}
#status.connecting,
#status.reconnecting {
  animation: pulse 1.4s ease-in-out infinite;
  color: var(--warn);
}
#status.disconnected {
  color: var(--bad);
}
#status.disconnected::before {
  box-shadow: 0 0 8px var(--bad);
}
#status.replaced {
  color: var(--warn);
  cursor: pointer;
  text-transform: none;
}
#status.replaced:hover {
  background: rgba(var(--amber), 0.12);
}
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}
.space-switcher {
  position: relative;
}
body:not(:has(#game-container.active)) .space-switcher {
  display: none;
}
.current-space-btn {
  align-items: center;
  background: rgba(var(--theme-accent), 0.12);
  border: 1px solid rgba(var(--theme-accent), 0.3);
  border-radius: var(--radius-sm);
  color: var(--theme-accent-text);
  display: flex;
  font-size: 13px;
  font-weight: 600;
  gap: 8px;
  height: 32px;
  padding: 0 10px 0 8px;
  transition:
    background 0.15s ease,
    border-color 0.4s ease,
    color 0.4s ease;
}
.current-space-btn:hover {
  background: rgba(var(--theme-accent), 0.2);
}
.current-space-btn .dropdown-arrow {
  color: inherit;
  font-size: 0;
  height: 14px;
  opacity: 0.7;
  transition: transform 0.2s ease;
  width: 14px;
  -webkit-mask: var(--i-chevron) center / contain no-repeat;
  mask: var(--i-chevron) center / contain no-repeat;
  background: currentColor;
}
.current-space-btn[aria-expanded=true] .dropdown-arrow {
  transform: rotate(180deg);
}
.current-space-btn:focus-visible {
  box-shadow: var(--focus-ring);
  outline: none;
}
.space-dropdown {
  left: 0;
  margin-top: 6px;
  max-height: 320px;
  overflow-y: auto;
  position: absolute;
  top: 100%;
}
.space-dropdown-item .space-icon {
  font-size: 16px;
  line-height: 1;
  width: 20px;
  text-align: center;
}

/* public/styles/layout.css */
main {
  align-items: center;
  display: flex;
  flex: 1;
  justify-content: center;
  min-height: 0;
  overflow-y: auto;
  padding: 24px var(--gutter);
  position: relative;
}
main:has(#game-container.active) {
  align-items: stretch;
  overflow: hidden;
  padding: 0;
}
#game-container {
  display: none;
  flex-direction: column;
  height: 100%;
  width: 100%;
}
#game-container.active {
  display: flex;
}
#canvas-wrapper {
  flex: 1;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  position: relative;
}
#game-canvas {
  display: block;
  height: 100%;
  touch-action: none;
  width: 100%;
}

/* public/styles/rail.css */
#side-rail {
  bottom: calc(var(--dock-h) + var(--gutter) * 2);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  left: var(--gutter);
  pointer-events: none;
  position: fixed;
  top: calc(var(--header-h) + var(--gutter));
  transition: bottom var(--dur) var(--ease);
  width: var(--rail-w);
  z-index: 900;
}
body:not(:has(#game-container.active)) #side-rail {
  display: none;
}
.rail-panel,
.menu,
.rail-expand,
#mini-map,
#zoom-controls,
.recenter-btn,
.first-run-tip {
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.rail-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  pointer-events: auto;
}
.rail-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-shrink: 0;
  gap: var(--space-2);
  height: 36px;
  padding: 0 var(--space-2) 0 var(--space-3);
}
.rail-header .eyebrow {
  color: var(--text-2);
}
.rail-count {
  background: var(--ink-700);
  border-radius: var(--radius-pill);
  color: var(--text-2);
  font-size: var(--text-xs);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  line-height: 1;
  min-width: 20px;
  padding: 3px 6px;
  text-align: center;
}
.rail-count:empty {
  display: none;
}
.rail-btn {
  align-items: center;
  background: transparent;
  border: none;
  border-radius: var(--radius-xs);
  color: var(--text-3);
  display: flex;
  height: 26px;
  justify-content: center;
  margin-left: auto;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
  width: 26px;
}
.rail-btn::before {
  --icon: var(--i-minus);
  background: currentColor;
  content: "";
  height: 14px;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
  width: 14px;
}
.rail-btn-close::before {
  --icon: var(--i-close);
}
.rail-btn:hover {
  background: var(--ink-700);
  color: var(--text);
}
#side-rail.collapsed .rail-panel {
  display: none;
}
.rail-expand {
  align-items: center;
  align-self: flex-start;
  border-radius: var(--radius-pill);
  display: flex;
  gap: var(--space-2);
  height: 36px;
  padding: 0 10px 0 var(--space-3);
  pointer-events: auto;
  transition: background var(--dur-fast) var(--ease);
}
.rail-expand[hidden] {
  display: none;
}
.rail-expand:hover {
  background: var(--ink-700);
}
.rail-expand .eyebrow {
  color: var(--text-2);
}
#people-panel {
  flex: 0 1 auto;
  max-height: 52%;
}
#user-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--space-2);
  scrollbar-width: thin;
}
#user-list:empty::after {
  color: var(--text-3);
  content: "Nobody here yet.";
  display: block;
  font-size: var(--text-sm);
  padding: 10px var(--space-2);
  text-align: center;
}
.user-group {
  align-items: center;
  display: flex;
  gap: 6px;
  margin: var(--space-2) var(--space-1) 2px;
}
.user-group:first-child {
  margin-top: 2px;
}
.user-group .eyebrow {
  color: var(--text-3);
}
.user-group[data-group=nearby] .eyebrow {
  color: var(--ok);
}
.user-group-count {
  color: var(--text-3);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.user-entry {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text);
  display: flex;
  font: inherit;
  gap: 10px;
  min-height: 44px;
  padding: 5px 6px 5px 6px;
  position: relative;
  text-align: left;
  transition:
    background var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    opacity var(--dur-fast) var(--ease);
  width: 100%;
}
button.user-entry {
  cursor: pointer;
}
button.user-entry:hover,
button.user-entry[aria-expanded=true] {
  background: var(--ink-700);
}
button.user-entry:focus-visible {
  border-color: rgb(var(--theme-accent));
  outline: none;
}
.user-entry.me {
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  margin-bottom: 2px;
  padding-bottom: var(--space-2);
}
.user-entry.status-away,
.user-entry.status-dnd {
  opacity: 0.6;
}
.user-entry.status-away:hover,
.user-entry.status-dnd:hover,
.user-entry.status-away:focus-visible,
.user-entry.status-dnd:focus-visible {
  opacity: 1;
}
.portrait {
  background: color-mix(in srgb, var(--person-color, #888) 35%, var(--ink-950));
  border: 1px solid color-mix(in srgb, var(--person-color, #888) 55%, transparent);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  height: 34px;
  position: relative;
  width: 34px;
}
.portrait-face {
  border-radius: calc(var(--radius-sm) - 1px);
  display: block;
  height: 100%;
  image-rendering: pixelated;
  width: 100%;
}
.portrait .status-dot {
  border: 2px solid var(--ink-800);
  bottom: -4px;
  box-sizing: content-box;
  height: 8px;
  position: absolute;
  right: -4px;
  width: 8px;
}
.user-entry.talking .portrait {
  animation: talkRing 1.2s ease-in-out infinite;
  border-color: var(--ok);
  box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.35);
}
@keyframes talkRing {
  0%, 100% {
    box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.35);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.18);
  }
}
.user-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.user-name-line {
  align-items: center;
  display: flex;
  gap: 6px;
  min-width: 0;
}
.user-name {
  color: var(--text);
  font-size: var(--text-md);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-meta {
  color: var(--text-3);
  font-size: var(--text-xs);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-entry.nearby .user-meta {
  color: var(--text-2);
}
.following-badge {
  background: rgba(52, 211, 153, 0.2);
  color: #6ee7b7;
}
.hand-badge {
  background: rgba(var(--amber), 0.2);
  border-radius: var(--radius-xs);
  flex-shrink: 0;
  font-size: 12px;
  line-height: 1;
  padding: 2px 4px;
}
.user-more {
  background: currentColor;
  color: var(--text-3);
  flex-shrink: 0;
  height: 14px;
  -webkit-mask: var(--i-chevron-right) center / contain no-repeat;
  mask: var(--i-chevron-right) center / contain no-repeat;
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease);
  width: 14px;
}
button.user-entry:hover .user-more,
button.user-entry:focus-visible .user-more,
button.user-entry[aria-expanded=true] .user-more {
  opacity: 1;
}
.user-mic-off {
  background: currentColor;
  color: var(--bad);
  display: none;
  flex-shrink: 0;
  height: 15px;
  -webkit-mask: var(--i-mic-off) center / contain no-repeat;
  mask: var(--i-mic-off) center / contain no-repeat;
  width: 15px;
}
.user-entry.nearby .user-mic-off {
  display: block;
}

/* public/styles/menus.css */
.menu {
  background: var(--glass-strong);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 220px;
  padding: 6px;
  z-index: 1300;
}
.menu[hidden] {
  display: none;
}
.menu-item {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
  display: flex;
  font: inherit;
  gap: 10px;
  padding: 7px 10px 7px 8px;
  text-align: left;
  transition: background var(--dur-fast) var(--ease);
  width: 100%;
}
.menu-item:hover,
.menu-item:focus-visible {
  background: var(--ink-700);
  outline: none;
}
.menu-item:focus-visible {
  border-color: rgba(var(--theme-accent), 0.7);
}
.menu-item[aria-checked=true] {
  background: rgba(var(--theme-accent), 0.16);
}
.menu-item:disabled {
  cursor: default;
  opacity: 0.45;
}
.menu-item-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.menu-item-title {
  font-size: var(--text-md);
  font-weight: 600;
}
.menu-item-desc {
  color: var(--text-3);
  font-size: var(--text-xs);
}
.menu-item .status-dot {
  height: 10px;
  margin: 0 3px;
  width: 10px;
}
.menu-item[role=menuitemradio]::after {
  color: var(--theme-accent-text);
  content: "✓";
  font-size: var(--text-sm);
  font-weight: 700;
  opacity: 0;
  width: 12px;
}
.menu-item[role=menuitemradio][aria-checked=true]::after {
  opacity: 1;
}
.menu-item-icon {
  background: currentColor;
  color: var(--text-2);
  flex-shrink: 0;
  height: 18px;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
  width: 18px;
}
.menu-item-pin .menu-item-icon {
  --icon: var(--i-pin);
}
.menu-item-walk .menu-item-icon {
  --icon: var(--i-walk);
}
.menu-item-follow .menu-item-icon {
  --icon: var(--i-follow);
}
.menu-item-chat .menu-item-icon {
  --icon: var(--i-chat);
}
.menu-item-wave .menu-item-icon {
  --icon: var(--i-wave);
}
.menu-item-user .menu-item-icon {
  --icon: var(--i-user);
}
.menu-item-sliders .menu-item-icon {
  --icon: var(--i-sliders);
}
.menu-item-shield .menu-item-icon {
  --icon: var(--i-shield);
}
.menu-item-keyboard .menu-item-icon {
  --icon: var(--i-keyboard);
}
.menu-item-brush .menu-item-icon {
  --icon: var(--i-brush);
}
.menu-item-logout .menu-item-icon {
  --icon: var(--i-logout);
}
.menu-separator {
  border-top: 1px solid var(--line);
  margin: 4px 6px;
}
.menu-item-keys {
  margin-left: auto;
}
.person-menu {
  position: fixed;
  width: 240px;
}

/* public/styles/chat.css */
#chat-panel {
  display: none;
  flex: 1 1 auto;
  max-height: 440px;
  min-height: 240px;
}
#chat-panel.open {
  display: flex;
}
.rail-btn + .rail-btn {
  margin-left: 0;
}
.rail-btn-bell::before {
  --icon: var(--i-bell);
}
.chat-tabs {
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-shrink: 0;
  gap: 2px;
  padding: 4px 6px 0;
}
.chat-tab {
  align-items: center;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: var(--radius-xs) var(--radius-xs) 0 0;
  color: var(--text-3);
  cursor: pointer;
  display: flex;
  flex: 1;
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  gap: 5px;
  justify-content: center;
  margin-bottom: -1px;
  min-width: 0;
  padding: 7px 4px 6px;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.chat-tab:hover {
  background: var(--ink-700);
  color: var(--text);
}
.chat-tab[aria-selected=true] {
  border-bottom-color: rgb(var(--theme-accent));
  color: var(--text);
}
.chat-tab:focus-visible {
  box-shadow: var(--focus-ring);
  outline: none;
}
.chat-tab-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-count {
  background: var(--ink-600);
  border-radius: var(--radius-pill);
  color: var(--text-2);
  flex-shrink: 0;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  line-height: 1;
  min-width: 16px;
  padding: 2px 5px;
  text-align: center;
}
.chat-count:empty {
  display: none;
}
.chat-count.attention {
  background: var(--bad);
  color: #fff;
}
.chat-view {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}
.chat-audience {
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
  padding: 7px var(--space-3) 7px 10px;
}
.chat-audience-line {
  align-items: center;
  display: flex;
  gap: var(--space-2);
  min-width: 0;
}
.chat-audience-icon {
  background: currentColor;
  flex-shrink: 0;
  height: 18px;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
  width: 18px;
}
.chat-audience-nearby {
  --icon: var(--i-nearby);
  color: var(--ok);
}
.chat-audience-everyone {
  --icon: var(--i-people);
  color: var(--theme-accent-text);
}
.chat-audience-dms {
  --icon: var(--i-mail);
  color: var(--dnd);
}
.chat-audience-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.chat-audience-title {
  color: var(--text);
  font-size: var(--text-sm);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-audience-detail {
  color: var(--text-3);
  font-size: var(--text-xs);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-audience-count {
  background: var(--ink-700);
  border-radius: var(--radius-pill);
  color: var(--text-2);
  flex-shrink: 0;
  font-size: var(--text-xs);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  line-height: 1;
  min-width: 20px;
  padding: 3px 6px;
  text-align: center;
}
.chat-audience .portrait,
.mention-option .portrait,
.chat-notice .portrait {
  height: 28px;
  width: 28px;
}
.chat-back {
  align-items: center;
  background: transparent;
  border: none;
  border-radius: var(--radius-xs);
  color: var(--text-2);
  cursor: pointer;
  display: flex;
  flex-shrink: 0;
  height: 28px;
  justify-content: center;
  margin-left: -4px;
  width: 24px;
}
.chat-back::before {
  background: currentColor;
  content: "";
  height: 16px;
  -webkit-mask: var(--i-chevron-left) center / contain no-repeat;
  mask: var(--i-chevron-left) center / contain no-repeat;
  width: 16px;
}
.chat-back:hover,
.chat-back:focus-visible {
  background: var(--ink-700);
  color: var(--text);
  outline: none;
}
.portrait-away {
  opacity: 0.45;
}
.chat-log {
  display: flex;
  flex: 1;
  flex-direction: column;
  font-size: var(--text-sm);
  gap: 4px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--space-2) 6px;
  scrollbar-width: thin;
}
.chat-log[hidden] {
  display: none;
}
.chat-log:empty::after {
  color: var(--text-3);
  content: attr(data-empty);
  display: block;
  font-size: var(--text-sm);
  margin: auto;
  max-width: 190px;
  padding: var(--space-3) 0;
  text-align: center;
}
.chat-msg {
  border-radius: var(--radius-sm);
  line-height: 1.45;
  overflow-wrap: anywhere;
  padding: 4px 6px;
}
.chat-msg-mentions-me {
  background: rgba(var(--amber), 0.1);
  box-shadow: inset 2px 0 0 var(--warn);
}
.chat-msg-flash {
  animation: chatFlash 1.4s var(--ease);
}
@keyframes chatFlash {
  0%, 30% {
    background: rgba(var(--theme-accent), 0.28);
  }
}
.chat-meta {
  align-items: baseline;
  display: flex;
  gap: 6px;
  margin-bottom: 1px;
  min-width: 0;
}
.chat-sender {
  background: none;
  border: none;
  border-radius: 3px;
  color: var(--theme-accent-text);
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  overflow: hidden;
  padding: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}
button.chat-sender {
  cursor: pointer;
}
button.chat-sender:hover,
button.chat-sender:focus-visible {
  outline: none;
  text-decoration: underline;
}
.chat-sender-me {
  color: var(--ok);
}
.chat-flag {
  background: rgba(var(--amber), 0.2);
  border-radius: 3px;
  color: var(--warn);
  flex-shrink: 0;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 1px 4px;
  text-transform: uppercase;
  white-space: nowrap;
}
.chat-time {
  color: var(--text-3);
  flex-shrink: 0;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  margin-left: auto;
}
.chat-text {
  color: var(--text);
  font-size: var(--text-md);
}
.mention {
  background: rgba(var(--theme-accent), 0.2);
  border-radius: 4px;
  color: var(--theme-accent-text);
  font-weight: 600;
  padding: 0 3px;
}
.mention-me {
  background: rgba(var(--amber), 0.28);
  color: #fde68a;
}
.chat-dm-list {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px;
  scrollbar-width: thin;
}
.chat-dm-list[hidden] {
  display: none;
}
.chat-dm-row {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
  display: flex;
  font: inherit;
  gap: 10px;
  min-height: 46px;
  padding: 5px 6px;
  text-align: left;
  transition: background var(--dur-fast) var(--ease);
  width: 100%;
}
.chat-dm-row:hover {
  background: var(--ink-700);
}
.chat-dm-row:focus-visible {
  border-color: rgb(var(--theme-accent));
  outline: none;
}
.chat-dm-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.chat-dm-top {
  align-items: baseline;
  display: flex;
  gap: 6px;
  min-width: 0;
}
.chat-dm-name {
  font-size: var(--text-md);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-dm-preview {
  color: var(--text-3);
  font-size: var(--text-xs);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-dm-row.unread .chat-dm-name {
  color: #fff;
}
.chat-dm-row.unread .chat-dm-preview {
  color: var(--text-2);
}
.chat-dm-empty {
  color: var(--text-3);
  font-size: var(--text-sm);
  line-height: 1.45;
  margin: auto 0;
  padding: var(--space-4) 10px;
  text-align: center;
}
.chat-composer {
  align-items: center;
  background: var(--ink-900);
  border-top: 1px solid var(--line);
  display: flex;
  flex-shrink: 0;
  gap: 4px;
  padding: 6px;
}
.chat-composer[hidden] {
  display: none;
}
#chat-input {
  background: var(--ink-800);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  flex: 1;
  font: inherit;
  font-size: var(--text-md);
  min-width: 0;
  outline: none;
  padding: 8px 10px;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
#chat-input:focus {
  border-color: rgba(var(--theme-accent), 0.7);
  box-shadow: 0 0 0 3px rgba(var(--theme-accent), 0.15);
}
#chat-input::placeholder {
  color: var(--text-3);
}
#chat-input:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}
.chat-send {
  align-items: center;
  background: rgba(var(--theme-accent), 0.85);
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  cursor: pointer;
  display: flex;
  flex-shrink: 0;
  height: 34px;
  justify-content: center;
  transition: background var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
  width: 34px;
}
.chat-send::before {
  background: currentColor;
  content: "";
  height: 16px;
  -webkit-mask: var(--i-send) center / contain no-repeat;
  mask: var(--i-send) center / contain no-repeat;
  width: 16px;
}
.chat-send:hover {
  background: rgb(var(--theme-accent));
}
.chat-send:focus-visible {
  box-shadow: var(--focus-ring);
  outline: none;
}
.chat-send:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}
.chat-mention-list {
  background: var(--glass-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: min(300px, 45vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px;
  position: fixed;
  z-index: 1350;
}
.chat-mention-list[hidden] {
  display: none;
}
.mention-option {
  align-items: center;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
  display: flex;
  gap: 10px;
  padding: 5px 8px 5px 5px;
}
.mention-option[aria-selected=true] {
  background: rgba(var(--theme-accent), 0.22);
  border-color: rgba(var(--theme-accent), 0.45);
}
.mention-option .portrait .status-dot {
  border-color: var(--ink-800);
  bottom: -3px;
  height: 6px;
  right: -3px;
  width: 6px;
}
.mention-option-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.mention-option-name {
  font-size: var(--text-md);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mention-option-meta {
  color: var(--text-3);
  font-size: var(--text-xs);
}
.mention-note {
  color: var(--text-2);
  font-size: var(--text-sm);
  padding: var(--space-2) 10px;
}
.chat-alerts-menu {
  position: fixed;
  width: 250px;
}
.menu-item[role=menuitemcheckbox]::after {
  color: var(--theme-accent-text);
  content: "✓";
  font-size: var(--text-sm);
  font-weight: 700;
  opacity: 0;
  width: 12px;
}
.menu-item[role=menuitemcheckbox][aria-checked=true]::after {
  opacity: 1;
}
.chat-notices {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  left: 50%;
  pointer-events: none;
  position: fixed;
  top: calc(var(--header-h) + var(--gutter));
  transform: translateX(-50%);
  width: min(360px, calc(100vw - var(--gutter) * 2));
  z-index: 2400;
}
.chat-notice {
  align-items: center;
  animation: noticeIn 0.22s var(--ease-pop);
  background: var(--glass-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--warn);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--text);
  cursor: pointer;
  display: flex;
  font: inherit;
  gap: 10px;
  padding: 10px 12px;
  pointer-events: auto;
  text-align: left;
  width: 100%;
}
.chat-notice-dm {
  border-left-color: var(--dnd);
}
.chat-notice:hover {
  background: var(--ink-700);
}
.chat-notice:focus-visible {
  box-shadow: var(--focus-ring);
  outline: none;
}
.chat-notice-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.chat-notice-title {
  font-size: var(--text-md);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-notice-where {
  color: var(--text-3);
  font-size: var(--text-xs);
}
.chat-notice-body {
  -webkit-box-orient: vertical;
  color: var(--text-2);
  display: -webkit-box;
  font-size: var(--text-sm);
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
}
@keyframes noticeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* public/styles/first-run-tip.css */
.first-run-tip {
  align-items: center;
  border-radius: var(--radius-pill);
  bottom: calc(var(--dock-h) + var(--gutter) + var(--space-2));
  color: var(--text-2);
  display: flex;
  font-size: var(--text-xs);
  height: var(--tip-h);
  left: 50%;
  max-width: calc(100vw - var(--gutter) * 2);
  overflow: hidden;
  padding: 0 4px 0 12px;
  position: fixed;
  transform: translateX(-50%);
  white-space: nowrap;
  width: max-content;
  z-index: 800;
}
.first-run-tip[hidden],
body:has(#chat-input:focus) .first-run-tip,
body:has(#me-menu:not([hidden])) .first-run-tip,
body:has(#shortcuts-panel:not([hidden])) .first-run-tip {
  display: none;
}
body:has(.first-run-tip:not([hidden])) :is(#side-rail, #hud-corner) {
  bottom: calc(var(--dock-h) + var(--gutter) * 2 + var(--tip-h) + var(--space-2));
}
.tip-item {
  align-items: center;
  display: inline-flex;
  gap: 5px;
}
.tip-item + .tip-item::before {
  color: var(--text-3);
  content: "·";
  margin: 0 9px;
}
.first-run-tip kbd {
  background: transparent;
  border-bottom-width: 1px;
  color: var(--text-3);
  font-size: 8px;
  padding: 2px 4px 1px;
}
.tip-item kbd + kbd {
  margin-left: -3px;
}
.tip-dismiss {
  align-items: center;
  background: transparent;
  border: none;
  border-radius: 50%;
  color: var(--text-3);
  display: flex;
  flex-shrink: 0;
  height: 22px;
  justify-content: center;
  margin-left: 6px;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
  width: 22px;
}
.tip-dismiss::before {
  background: currentColor;
  content: "";
  height: 12px;
  -webkit-mask: var(--i-close) center / contain no-repeat;
  mask: var(--i-close) center / contain no-repeat;
  width: 12px;
}
.tip-dismiss:hover {
  background: var(--ink-700);
  color: var(--text);
}
.btn-ghost {
  background: var(--ink-700);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: var(--text-md);
  font-weight: 600;
  padding: 7px 12px;
  transition: background var(--dur-fast) var(--ease);
  white-space: nowrap;
}
.btn-ghost:hover {
  background: var(--ink-600);
}

/* public/styles/zoom-minimap.css */
#hud-corner {
  align-items: flex-end;
  bottom: calc(var(--dock-h) + var(--gutter) * 2);
  display: flex;
  gap: var(--space-2);
  pointer-events: none;
  position: fixed;
  right: var(--gutter);
  transition: bottom var(--dur) var(--ease);
  z-index: 900;
}
#hud-corner > * {
  pointer-events: auto;
}
#mini-map {
  border-color: rgba(var(--theme-accent), 0.35);
  padding: var(--space-2);
  transition: border-color 0.4s ease;
}
#mini-map canvas {
  border-radius: var(--radius-xs);
  cursor: crosshair;
  display: block;
  image-rendering: pixelated;
  touch-action: none;
}
.recenter-btn {
  align-items: center;
  border-color: rgba(var(--theme-accent), 0.45);
  border-radius: var(--radius-pill);
  color: var(--text);
  display: flex;
  font-size: var(--text-sm);
  font-weight: 600;
  gap: 6px;
  height: 36px;
  padding: 0 14px 0 10px;
  position: relative;
  transition: background var(--dur-fast) var(--ease), transform 0.1s ease;
  white-space: nowrap;
}
.recenter-btn[hidden] {
  display: none;
}
.recenter-btn::before {
  background: var(--theme-accent-text);
  content: "";
  height: 16px;
  -webkit-mask: var(--i-recenter) center / contain no-repeat;
  mask: var(--i-recenter) center / contain no-repeat;
  width: 16px;
}
.recenter-btn:hover {
  background: rgba(var(--theme-accent), 0.22);
}
.recenter-btn:active {
  transform: scale(0.97);
}
.recenter-btn:focus-visible {
  border-color: rgb(var(--theme-accent));
  outline: none;
}
#hud-corner .recenter-btn:hover::after,
#hud-corner .recenter-btn:focus-visible::after {
  bottom: calc(100% + 10px);
  left: 50%;
  right: auto;
  top: auto;
  transform: translateX(-50%);
}
#mini-map-label {
  color: var(--text-2);
  margin-bottom: 6px;
}
#zoom-controls {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-1);
}
.zoom-btn {
  align-items: center;
  background: var(--ink-700);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text);
  display: flex;
  height: var(--ctl-sm);
  justify-content: center;
  position: relative;
  transition:
    background var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease),
    transform 0.1s ease,
    opacity var(--dur-fast) var(--ease);
  width: var(--ctl-sm);
}
.zoom-btn::before {
  --icon: var(--i-plus);
  background: currentColor;
  content: "";
  height: 18px;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
  width: 18px;
}
#zoom-in::before {
  --icon: var(--i-plus);
}
#zoom-out::before {
  --icon: var(--i-minus);
}
#zoom-fit::before {
  --icon: var(--i-fit);
}
.zoom-btn:hover:not(:disabled) {
  background: var(--ink-600);
}
.zoom-btn:active:not(:disabled) {
  transform: scale(0.96);
}
.zoom-btn:disabled {
  color: var(--text-3);
  cursor: default;
  opacity: 0.55;
}
.zoom-btn:focus-visible {
  border-color: rgb(var(--theme-accent));
  outline: none;
}
#zoom-fit[aria-pressed=true] {
  background: rgba(var(--theme-accent), 0.22);
  border-color: rgba(var(--theme-accent), 0.35);
  color: var(--theme-accent-text);
}
.zoom-level {
  color: var(--text-2);
  font-family: var(--font-pixel);
  font-size: 9px;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 2px 0;
  text-align: center;
  width: var(--ctl-sm);
}
#zoom-controls [title]:hover::after,
#zoom-controls [title]:focus-visible::after,
.recenter-btn:hover::after,
.recenter-btn:focus-visible::after {
  background: var(--ink-950);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xs);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  content: attr(title);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1;
  padding: 6px 8px;
  pointer-events: none;
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  z-index: 5;
}

/* public/styles/dock.css */
#toolbar {
  align-items: center;
  background: var(--glass-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--line-strong);
  border-radius: calc(var(--ctl-radius) + 5px);
  bottom: var(--gutter);
  box-shadow: var(--shadow);
  display: flex;
  left: 50%;
  max-width: calc(100vw - var(--gutter) * 2);
  min-height: var(--dock-h);
  padding: 7px;
  position: fixed;
  transform: translateX(-50%);
  width: max-content;
  z-index: 1000;
}
.toolbar-me,
.toolbar-group {
  align-items: center;
  display: flex;
  gap: 4px;
}
.toolbar-me {
  position: relative;
}
.toolbar-group::before {
  background: var(--line-strong);
  content: "";
  flex-shrink: 0;
  height: 22px;
  margin: 0 5px;
  width: 1px;
}
.toolbar-room:not(:has(button:not([style*="display: none"]))) {
  display: none;
}
.me-chip {
  align-items: center;
  background: var(--ink-700);
  border: 1px solid transparent;
  border-radius: var(--ctl-radius);
  color: var(--text);
  display: flex;
  gap: 7px;
  height: var(--ctl);
  max-width: 220px;
  padding: 0 7px 0 3px;
  position: relative;
  transition: background var(--dur-fast) var(--ease);
}
.me-chip:hover,
.me-chip[aria-expanded=true] {
  background: var(--ink-600);
}
.me-face {
  flex-shrink: 0;
  height: 32px;
  position: relative;
  width: 32px;
}
.me-avatar {
  background: var(--ink-950);
  border-radius: calc(var(--ctl-radius) - 3px);
  display: block;
  height: 32px;
  image-rendering: pixelated;
  width: 32px;
}
.me-face .status-dot {
  border: 2px solid var(--ink-700);
  bottom: -3px;
  box-sizing: content-box;
  height: 8px;
  position: absolute;
  right: -3px;
  width: 8px;
}
.me-chip:hover .me-face .status-dot,
.me-chip[aria-expanded=true] .me-face .status-dot {
  border-color: var(--ink-600);
}
.me-name {
  font-size: var(--text-md);
  font-weight: 600;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.me-chip .dropdown-arrow {
  background: currentColor;
  color: var(--text-3);
  flex-shrink: 0;
  height: 12px;
  -webkit-mask: var(--i-chevron) center / contain no-repeat;
  mask: var(--i-chevron) center / contain no-repeat;
  transition: transform var(--dur) var(--ease);
  width: 12px;
}
.me-chip[aria-expanded=true] .dropdown-arrow {
  transform: rotate(180deg);
}
.me-menu {
  bottom: calc(100% + 10px);
  left: 0;
  position: absolute;
  width: 260px;
}
.me-menu.on-map {
  bottom: auto;
}
.status-dot {
  border-radius: 50%;
  flex-shrink: 0;
  height: 8px;
  width: 8px;
}
.status-dot.available {
  background: var(--ok);
}
.status-dot.away {
  background: var(--warn);
}
.status-dot.busy {
  background: var(--bad);
}
.status-dot.dnd {
  background: var(--dnd);
  background-image: linear-gradient(var(--ink-950), var(--ink-950));
  background-position: center;
  background-repeat: no-repeat;
  background-size: 60% 2px;
}
.media-btn {
  align-items: center;
  background: var(--ink-700);
  border: 1px solid transparent;
  border-radius: var(--ctl-radius);
  color: var(--text-2);
  display: flex;
  gap: var(--space-2);
  height: var(--ctl);
  justify-content: center;
  position: relative;
  width: var(--ctl);
}
.media-btn::before {
  --icon: var(--i-user);
  background: currentColor;
  content: "";
  flex-shrink: 0;
  height: var(--icon-size);
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
  width: var(--icon-size);
}
@starting-style {
  .media-btn {
    opacity: 0;
    transform: scale(0.7);
  }
}
.media-btn {
  transition:
    background var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    transform var(--dur) var(--ease-pop),
    opacity var(--dur) var(--ease);
}
.media-btn:hover {
  background: var(--ink-600);
  color: var(--text);
}
.media-btn:active {
  transform: scale(0.96);
}
.media-btn:focus-visible,
.me-chip:focus-visible,
.tip-dismiss:focus-visible {
  box-shadow: var(--focus-ring);
  outline: none;
}
.media-btn.has-label {
  padding: 0 12px 0 10px;
  width: auto;
}
.btn-label {
  font-size: var(--text-md);
  font-weight: 600;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#mic-button::before {
  --icon: var(--i-mic);
}
#mic-button.muted::before {
  --icon: var(--i-mic-off);
}
#camera-button::before {
  --icon: var(--i-cam);
}
#camera-button.off::before {
  --icon: var(--i-cam-off);
}
#screen-button::before {
  --icon: var(--i-screen);
}
#mic-button.live,
#camera-button.live,
#screen-button.sharing {
  background: rgba(var(--theme-accent), 0.22);
  color: var(--theme-accent-text);
}
#mic-button.live:hover,
#camera-button.live:hover,
#screen-button.sharing:hover {
  background: rgba(var(--theme-accent), 0.32);
  color: var(--theme-accent-text);
}
#mic-button.idle,
#camera-button.idle {
  background: transparent;
  border-color: rgba(var(--theme-accent), 0.6);
  color: var(--theme-accent-text);
}
#mic-button.idle:hover,
#camera-button.idle:hover {
  background: rgba(var(--theme-accent), 0.12);
  color: var(--theme-accent-text);
}
#mic-button.idle::before,
#camera-button.idle::before {
  opacity: 0.7;
}
#mic-button.muted,
#camera-button.off {
  background: rgba(var(--off), 0.1);
  color: var(--bad);
}
#mic-button.muted:hover,
#camera-button.off:hover {
  background: rgba(var(--off), 0.18);
  color: var(--bad);
}
.media-split {
  display: flex;
}
.media-split > .media-btn {
  border-bottom-right-radius: 0;
  border-top-right-radius: 0;
}
.media-more {
  align-items: center;
  background: var(--ink-700);
  border: 1px solid transparent;
  border-left: 1px solid var(--line-strong);
  border-radius: 0 var(--ctl-radius) var(--ctl-radius) 0;
  color: var(--text-3);
  display: flex;
  height: var(--ctl);
  justify-content: center;
  position: relative;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
  width: 18px;
}
.media-more::before {
  background: currentColor;
  content: "";
  height: 12px;
  -webkit-mask: var(--i-chevron) center / contain no-repeat;
  mask: var(--i-chevron) center / contain no-repeat;
  transform: rotate(180deg);
  width: 12px;
}
.media-more:hover {
  background: var(--ink-600);
  color: var(--text);
}
.media-more:focus-visible {
  box-shadow: var(--focus-ring);
  outline: none;
}
.media-split:has(> .live) > .media-more {
  background: rgba(var(--theme-accent), 0.22);
  color: var(--theme-accent-text);
}
.media-split:has(> .idle) > .media-more {
  background: transparent;
  border-color: rgba(var(--theme-accent), 0.6);
  border-left-color: rgba(var(--theme-accent), 0.3);
  color: var(--theme-accent-text);
}
.media-split:has(> .muted) > .media-more,
.media-split:has(> .off) > .media-more {
  background: rgba(var(--off), 0.1);
  color: var(--bad);
}
.media-split:has(> .idle) > .media-btn {
  border-right-color: transparent;
}
.sound-banner {
  align-items: center;
  background: var(--glass-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(var(--amber), 0.55);
  border-radius: var(--radius);
  box-shadow: var(--shadow), 0 0 0 4px rgba(var(--amber), 0.14);
  color: var(--text);
  display: flex;
  gap: 12px;
  left: 50%;
  max-width: min(460px, calc(100vw - var(--gutter) * 2));
  padding: 10px 16px 10px 12px;
  position: fixed;
  text-align: left;
  top: calc(var(--header-h) + var(--gutter));
  transform: translateX(-50%);
  width: max-content;
  z-index: 1500;
}
.sound-banner[hidden] {
  display: none;
}
.sound-banner:hover {
  border-color: rgba(var(--amber), 0.8);
}
.sound-banner:focus-visible {
  box-shadow: var(--focus-ring);
  outline: none;
}
.sound-banner-icon {
  align-items: center;
  background: rgba(var(--amber), 0.18);
  border-radius: var(--radius-sm);
  color: var(--warn);
  display: flex;
  flex-shrink: 0;
  height: 34px;
  justify-content: center;
  width: 34px;
}
.sound-banner-icon::before {
  background: currentColor;
  content: "";
  height: 20px;
  -webkit-mask: var(--i-speaker-off) center / contain no-repeat;
  mask: var(--i-speaker-off) center / contain no-repeat;
  width: 20px;
}
.sound-banner-text strong {
  display: block;
  font-size: var(--text-lg);
  font-weight: 700;
}
.sound-banner-text span {
  color: var(--text-2);
  display: block;
  font-size: var(--text-sm);
  line-height: 1.4;
  margin-top: 1px;
}
body:has(.sound-banner:not([hidden])) #conversation-cue {
  top: calc(var(--gutter) + 68px);
}
.sharing-badge {
  background: rgb(var(--theme-accent));
  border-radius: var(--radius-pill);
  color: #fff;
  font-family: var(--font-pixel);
  font-size: 8px;
  left: 50%;
  letter-spacing: 0.04em;
  padding: 2px 5px 1px;
  position: absolute;
  top: -7px;
  transform: translateX(-50%);
  white-space: nowrap;
}
#pod-lock-button::before,
#conv-lock-button::before {
  --icon: var(--i-unlock);
}
#pod-lock-button.locked::before,
#conv-lock-button.locked::before {
  --icon: var(--i-lock);
}
#pod-lock-button.locked,
#conv-lock-button.locked {
  background: rgba(var(--amber), 0.18);
  border-color: rgba(var(--amber), 0.4);
  color: var(--warn);
}
#pod-lock-button.locked:hover,
#conv-lock-button.locked:hover {
  background: rgba(var(--amber), 0.28);
}
#chat-toggle-button::before {
  --icon: var(--i-chat);
}
.toolbar-react {
  position: relative;
}
#emote-button::before {
  --icon: var(--i-smile);
}
#emote-button.hand-raised {
  background: rgba(var(--amber), 0.18);
  border-color: rgba(var(--amber), 0.4);
  color: var(--warn);
}
#emote-button.hand-raised:hover {
  background: rgba(var(--amber), 0.28);
}
.emote-hand-badge {
  font-size: 12px;
  line-height: 1;
  position: absolute;
  right: -5px;
  top: -6px;
}
.emote-hand-badge[hidden] {
  display: none;
}
.emote-menu {
  bottom: calc(100% + 10px);
  flex-direction: row;
  gap: 4px;
  left: 50%;
  min-width: 0;
  padding: 6px;
  position: absolute;
  transform: translateX(-50%);
}
.emote-item {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  font: inherit;
  gap: 3px;
  height: 56px;
  justify-content: center;
  padding: 0;
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease-pop);
  width: 44px;
}
.emote-item:hover,
.emote-item:focus-visible {
  background: var(--ink-700);
  outline: none;
  transform: translateY(-2px);
}
.emote-item:focus-visible {
  border-color: rgba(var(--theme-accent), 0.7);
}
.emote-item[aria-checked=true] {
  background: rgba(var(--amber), 0.18);
  border-color: rgba(var(--amber), 0.4);
}
.emote-glyph {
  font-size: 22px;
  line-height: 1;
}
.emote-key {
  color: var(--text-3);
}
#chat-toggle-button.open {
  background: var(--ink-500);
  color: var(--text);
}
#shortcuts-panel {
  bottom: calc(var(--dock-h) + var(--gutter) * 2);
  left: 50%;
  position: fixed;
  transform: translateX(-50%);
  width: min(380px, calc(100vw - var(--gutter) * 2));
  z-index: 1005;
}
#shortcuts-panel[hidden] {
  display: none;
}
.shortcut-grid {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: min(420px, 50vh);
  overflow-y: auto;
  padding: var(--space-2);
}
.shortcut {
  align-items: center;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  display: flex;
  font-size: var(--text-md);
  gap: var(--space-3);
  min-height: 30px;
  padding: 2px 6px;
}
.shortcut-keys {
  display: flex;
  flex-shrink: 0;
  gap: 3px;
  min-width: 84px;
}
.unread-badge {
  align-items: center;
  background: var(--bad);
  border: 2px solid var(--ink-800);
  border-radius: var(--radius-pill);
  color: #fff;
  display: flex;
  font-size: 10px;
  font-weight: 700;
  height: 18px;
  justify-content: center;
  line-height: 1;
  min-width: 18px;
  padding: 0 4px;
  position: absolute;
  right: -5px;
  top: -5px;
}
.unread-badge:empty {
  display: none;
}
.unread-badge.bump {
  animation: badgeBump 0.35s var(--ease-pop);
}
#chat-unread:not(.attention) {
  background: var(--ink-500);
}
@keyframes badgeBump {
  0% {
    transform: scale(0.6);
  }
  60% {
    transform: scale(1.25);
  }
  100% {
    transform: scale(1);
  }
}
#toolbar [title]:hover::after,
#toolbar [title]:focus-visible::after {
  background: var(--ink-950);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xs);
  bottom: calc(100% + 10px);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  content: attr(title);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  left: 50%;
  line-height: 1;
  padding: 6px 8px;
  pointer-events: none;
  position: absolute;
  transform: translateX(-50%);
  white-space: nowrap;
  z-index: 5;
}
#toolbar [aria-expanded=true]:hover::after {
  display: none;
}

/* public/styles/video.css */
#video-tiles {
  --cols: 1;
  display: none;
  gap: var(--space-2);
  grid-template-columns: repeat(var(--cols), var(--tile-w));
  max-height: calc(100dvh - var(--header-h) - var(--dock-h) - var(--gutter) * 4 - var(--corner-h));
  overflow-y: auto;
  overscroll-behavior: contain;
  position: fixed;
  right: var(--gutter);
  scrollbar-width: thin;
  top: calc(var(--header-h) + var(--gutter));
  z-index: 950;
}
#video-tiles.active {
  display: grid;
}
#video-tiles[data-count="4"],
#video-tiles[data-count="5"],
#video-tiles[data-count="6"] {
  --tile-w: 150px;
}
#video-tiles:not([data-count="0"]):not([data-count="1"]):not([data-count="2"]):not([data-count="3"]):not([data-count="4"]):not([data-count="5"]):not([data-count="6"]) {
  --tile-w: 120px;
}
.video-tile {
  aspect-ratio: 16 / 9;
  background: var(--ink-950);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  position: relative;
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.video-tile video {
  background: var(--ink-950);
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}
.video-tile.local video {
  transform: scaleX(-1);
}
.video-tile-idle {
  align-items: center;
  background: var(--ink-900);
  color: var(--text-2);
  display: none;
  flex-direction: column;
  font-size: var(--text-xs);
  gap: 6px;
  inset: 0;
  justify-content: center;
  padding: 8px 10px 28px;
  position: absolute;
  text-align: center;
}
.video-tile.idle .video-tile-idle {
  display: flex;
}
.video-tile.idle video {
  visibility: hidden;
}
.video-tile-idle .portrait {
  height: 40px;
  width: 40px;
}
.video-tile-hint {
  line-height: 1.3;
}
.video-tile.speaking {
  border-color: var(--ok);
  box-shadow: var(--shadow-sm), 0 0 0 2px rgba(74, 222, 128, 0.45);
}
.video-tile-bar {
  align-items: center;
  background: linear-gradient(rgba(11, 12, 16, 0), rgba(11, 12, 16, 0.78));
  bottom: 0;
  display: flex;
  gap: 6px;
  left: 0;
  padding: 18px 8px 7px;
  position: absolute;
  right: 0;
}
.video-tile-name {
  color: var(--text);
  font-size: var(--text-xs);
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
}
.video-tile-mic {
  align-items: center;
  background: rgba(var(--off), 0.9);
  border-radius: var(--radius-pill);
  color: #fff;
  display: flex;
  flex-shrink: 0;
  height: 18px;
  justify-content: center;
  margin-left: auto;
  width: 18px;
}
.video-tile-mic::before {
  background: currentColor;
  content: "";
  height: 11px;
  -webkit-mask: var(--i-mic-off) center / contain no-repeat;
  mask: var(--i-mic-off) center / contain no-repeat;
  width: 11px;
}
.video-tile-mic[hidden] {
  display: none;
}
#screen-share-panel {
  display: none;
  flex-direction: column;
  gap: 10px;
  left: 50%;
  max-height: 70vh;
  max-width: 75vw;
  overflow-y: auto;
  position: fixed;
  top: calc(var(--header-h) + var(--gutter) + 56px);
  transform: translateX(-50%);
  z-index: 960;
}
#screen-share-panel.active {
  display: flex;
}
.screen-share-tile {
  background: var(--ink-950);
  border: 1px solid rgba(var(--theme-accent), 0.4);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 70vw;
  overflow: hidden;
  position: relative;
}
.screen-share-tile video {
  display: block;
  height: auto;
  max-height: 60vh;
  width: 100%;
}
.screen-share-header {
  align-items: center;
  background: linear-gradient(rgba(11, 12, 16, 0.85), rgba(11, 12, 16, 0));
  display: flex;
  justify-content: space-between;
  left: 0;
  padding: 8px 10px 16px;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 1;
}
.screen-share-label {
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}
.screen-share-close {
  background: rgba(239, 68, 68, 0.25);
  border: none;
  border-radius: 50%;
  color: var(--bad);
  font-size: 13px;
  height: 24px;
  line-height: 1;
  transition: background 0.15s ease;
  width: 24px;
}
.screen-share-close:hover {
  background: rgba(239, 68, 68, 0.45);
}

/* public/styles/toast.css */
.toast {
  animation: toastFade var(--toast-ms, 3000ms) ease-in-out forwards;
  background: var(--ink-800);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  box-shadow: var(--shadow);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  left: 50%;
  max-width: min(520px, calc(100vw - 32px));
  padding: 10px 18px;
  position: fixed;
  text-align: center;
  bottom: calc(var(--dock-h) + var(--gutter) * 2 + 56px);
  transform: translateX(-50%);
  z-index: 2500;
}
.toast-welcome {
  align-items: center;
  border-color: rgba(var(--theme-accent), 0.5);
  border-radius: var(--radius);
  box-shadow: var(--shadow), 0 0 0 4px rgba(var(--theme-accent), 0.12);
  display: flex;
  gap: 12px;
  padding: 12px 18px 12px 14px;
  text-align: left;
}
.toast-welcome::before {
  background: rgba(var(--theme-accent), 0.2);
  border: 1px solid rgba(var(--theme-accent), 0.4);
  border-radius: 999px;
  color: var(--theme-accent-text);
  content: "Welcome";
  flex-shrink: 0;
  font-family: var(--font-pixel);
  font-size: 9px;
  letter-spacing: 0.08em;
  padding: 5px 8px 4px;
  text-transform: uppercase;
}
@keyframes toastFade {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(8px);
  }
  10% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  90% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(8px);
  }
}

/* public/styles/auth.css */
.auth-stage {
  align-items: center;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  padding: 16px 0 56px;
  position: relative;
  width: 100%;
}
main:has(#game-container.active) .auth-stage {
  display: none;
}
.auth-backdrop {
  background: var(--ink-900) url(/assets/map/office-preview.png) center 42% / 1792px 1280px no-repeat;
  image-rendering: pixelated;
  inset: var(--header-h) 0 0;
  position: fixed;
  z-index: 0;
}
.auth-backdrop::after {
  background:
    radial-gradient(
      ellipse 70% 70% at 50% 45%,
      rgba(11, 12, 16, 0.58) 0%,
      rgba(11, 12, 16, 0.8) 55%,
      rgba(11, 12, 16, 0.93) 100%);
  content: "";
  inset: 0;
  position: absolute;
}
.auth-screen {
  animation: authCardIn var(--dur) var(--ease) both;
  background: var(--glass-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  max-width: 420px;
  padding: 28px 32px 32px;
  position: relative;
  width: 100%;
  z-index: 1;
}
.auth-screen-wide {
  max-width: 500px;
}
@keyframes authCardIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.auth-screen::before {
  background: rgb(var(--theme-accent));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  content: "";
  height: 3px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}
.auth-head {
  margin-bottom: 20px;
}
.auth-head .eyebrow {
  color: var(--theme-accent-text);
  display: block;
  margin-bottom: 10px;
}
.auth-screen h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 6px;
}
.auth-subtitle {
  color: var(--text-2);
  font-size: var(--text-lg);
  line-height: 1.5;
}
.auth-subtitle strong {
  color: var(--text);
  font-weight: 600;
}
.auth-body[hidden],
.auth-sent[hidden],
.auth-done[hidden] {
  display: none;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.field[hidden] {
  display: none;
}
.field label,
.field-label,
.invite-create > label,
.space-create > label {
  color: var(--text-2);
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
}
.label-row {
  align-items: baseline;
  display: flex;
  justify-content: space-between;
}
.field-link,
.auth-link-btn {
  color: var(--theme-accent-text);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
}
.field-link:hover,
.auth-link-btn:hover {
  text-decoration: underline;
}
.auth-screen input[type=text],
.auth-screen input[type=email],
.auth-screen input[type=password],
.modal input[type=text],
.modal input[type=email],
.modal input[type=password] {
  background: var(--ink-950);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: var(--text-lg);
  min-width: 0;
  padding: 11px 12px;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  width: 100%;
}
.modal input[type=text],
.modal input[type=email],
.modal input[type=password] {
  font-size: var(--text-md);
  padding: 9px 12px;
}
.auth-screen input:focus,
.modal input:focus {
  border-color: rgba(var(--theme-accent), 0.7);
  box-shadow: 0 0 0 3px rgba(var(--theme-accent), 0.18);
  outline: none;
}
.auth-screen input[aria-invalid=true],
.modal input[aria-invalid=true] {
  border-color: rgba(239, 68, 68, 0.6);
}
.auth-screen input[aria-invalid=true]:focus,
.modal input[aria-invalid=true]:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18);
}
.auth-screen input::placeholder,
.modal input::placeholder {
  color: var(--text-3);
}
.field-hint,
.field-error {
  font-size: var(--text-sm);
  line-height: 1.4;
}
.field-hint {
  color: var(--text-3);
}
.field-hint.met {
  color: var(--ok);
}
.field-hint.met::before {
  content: "✓ ";
}
.field-error {
  color: var(--bad);
}
.field-hint:empty,
.field-hint[hidden],
.field-error:empty {
  display: none;
}
.btn-primary {
  background: rgb(var(--theme-accent));
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: var(--text-lg);
  font-weight: 600;
  padding: 11px 16px;
  transition:
    filter var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease),
    opacity var(--dur-fast) var(--ease);
  white-space: nowrap;
}
.btn-primary:hover {
  filter: brightness(1.12);
}
.btn-primary:active {
  transform: translateY(1px);
}
.btn-primary:disabled,
.btn-ghost:disabled {
  cursor: default;
  filter: none;
  opacity: 0.55;
  transform: none;
}
.btn-primary:focus-visible,
.btn-ghost:focus-visible,
.method-btn:focus-visible,
.row-menu-btn:focus-visible,
.tab-btn:focus-visible {
  box-shadow: var(--focus-ring);
  outline: none;
}
.auth-submit {
  margin-top: 6px;
  padding: 12px 16px;
  width: 100%;
}
.auth-method {
  background: var(--ink-950);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  display: flex;
  gap: 3px;
  margin-bottom: 18px;
  padding: 3px;
}
.method-btn {
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--text-2);
  flex: 1;
  font-size: var(--text-md);
  font-weight: 600;
  padding: 7px 8px;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.method-btn:hover {
  color: var(--text);
}
.method-btn[aria-pressed=true] {
  background: var(--ink-700);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: default;
}
.auth-notice {
  background: rgba(var(--amber), 0.1);
  border: 1px solid rgba(var(--amber), 0.3);
  border-radius: var(--radius-sm);
  color: var(--text-2);
  display: flex;
  font-size: var(--text-md);
  gap: 10px;
  line-height: 1.4;
  margin-bottom: 18px;
  padding: 10px 12px;
}
.auth-notice[hidden] {
  display: none;
}
.auth-notice-icon {
  --icon: var(--i-info);
  background: var(--warn);
  flex-shrink: 0;
  height: 18px;
  margin-top: 1px;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
  width: 18px;
}
.auth-notice-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.auth-notice strong {
  color: var(--text);
}
.auth-error {
  border-radius: var(--radius-sm);
  font-size: var(--text-md);
  line-height: 1.4;
  margin-bottom: 14px;
  min-height: 0;
  overflow: hidden;
  padding: 0;
}
.auth-error:empty {
  display: none;
}
.auth-error:not(:empty) {
  border: 1px solid;
  padding: 10px 12px;
}
.auth-error:not(:empty) {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: var(--bad);
}
.auth-link {
  color: var(--text-2);
  font-size: var(--text-md);
  margin-top: 20px;
  text-align: center;
}
.auth-link a {
  color: var(--theme-accent-text);
  text-decoration: none;
}
.auth-link a:hover {
  text-decoration: underline;
}
.auth-sent,
.auth-done {
  align-items: center;
  display: flex;
  flex-direction: column;
  padding: 6px 0 0;
  text-align: center;
}
.auth-sent h3:focus {
  outline: none;
}
.auth-sent h3,
.auth-done h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.auth-sent p,
.auth-done p {
  color: var(--text-2);
  font-size: var(--text-lg);
  line-height: 1.5;
}
.auth-sent strong {
  color: var(--text);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.auth-sent-icon,
.auth-done-icon,
.auth-state-icon {
  align-items: center;
  background: rgba(var(--theme-accent), 0.14);
  border: 1px solid rgba(var(--theme-accent), 0.35);
  border-radius: var(--radius);
  display: flex;
  height: 48px;
  justify-content: center;
  margin-bottom: 16px;
  width: 48px;
}
.auth-sent-icon::before,
.auth-done-icon::before,
.auth-state-icon::before {
  --icon: var(--i-mail);
  background: var(--theme-accent-text);
  content: "";
  height: 22px;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
  width: 22px;
}
.auth-done-icon {
  background: rgba(74, 222, 128, 0.12);
  border-color: rgba(74, 222, 128, 0.35);
}
.auth-done-icon::before {
  --icon: var(--i-check);
  background: var(--ok);
}
.auth-devnote {
  color: var(--text-3) !important;
  font-size: var(--text-sm) !important;
  margin-top: 10px;
}
.auth-stage:not(.is-local) .auth-devnote {
  display: none;
}
.auth-sent-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 20px;
}
.auth-done .auth-submit {
  margin-top: 20px;
}
.auth-state {
  align-items: flex-start;
}
.auth-state .eyebrow {
  color: var(--theme-accent-text);
  margin-bottom: 10px;
}
.auth-state h2 {
  margin-bottom: 8px;
}
.auth-state p {
  color: var(--text-2);
  font-size: var(--text-lg);
  line-height: 1.5;
}
.auth-state-icon.expired {
  background: rgba(var(--amber), 0.12);
  border-color: rgba(var(--amber), 0.35);
}
.auth-state-icon.expired::before {
  --icon: var(--i-clock);
  background: var(--warn);
}
.auth-state-icon.tabs::before {
  --icon: var(--i-tabs);
}
.auth-state-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.auth-state-actions .btn-primary,
.auth-state-actions .btn-ghost {
  font-size: var(--text-md);
  padding: 9px 16px;
}
.state-overlay {
  align-items: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  background: rgba(11, 12, 16, 0.72);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: var(--gutter);
  position: fixed;
  z-index: 2600;
}
.state-overlay[hidden] {
  display: none;
}
.invite-picker .avatar-picker-grid {
  grid-template-columns: repeat(5, 1fr);
  max-height: 236px;
  overflow-y: auto;
  padding: 2px;
}
.invite-picker .avatar-pick-option {
  padding: 6px 2px 4px;
}
.invite-picker .avatar-pick-canvas {
  height: 64px;
  width: 32px;
}
.invite-picker .avatar-pick-label {
  display: none;
}
.avatar-picker {
  margin-bottom: 6px;
}
.space-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
  max-height: 400px;
  overflow-y: auto;
}
.space-card {
  align-items: center;
  background: var(--ink-950);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  gap: 14px;
  padding: 12px 14px;
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.space-card:hover {
  background: var(--ink-700);
  border-color: var(--line-strong);
}
.space-card .space-icon {
  align-items: center;
  border-radius: 10px;
  display: flex;
  font-size: 22px;
  height: 44px;
  justify-content: center;
  width: 44px;
}
.space-card .space-info {
  flex: 1;
}
.space-card .space-name {
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}
.space-card .space-meta {
  color: var(--text-3);
  font-size: var(--text-sm);
}
.space-card .space-arrow {
  color: var(--text-3);
  font-size: 18px;
  transition: transform var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.space-card:hover .space-arrow {
  color: var(--text);
  transform: translateX(3px);
}
.auth-loading {
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
}
.auth-loading p {
  color: var(--text-2);
  font-size: var(--text-md);
  margin-top: 14px;
}
.auth-spinner {
  animation: spin 1s linear infinite;
  border: 3px solid rgba(var(--theme-accent), 0.2);
  border-radius: 50%;
  border-top-color: rgb(var(--theme-accent));
  height: 36px;
  width: 36px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

/* public/styles/dialogs.css */
.modal {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: var(--gutter);
  position: fixed;
  z-index: 2000;
}
.modal-backdrop {
  background: rgba(11, 12, 16, 0.7);
  inset: 0;
  position: absolute;
}
.modal-content {
  background: var(--ink-800);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  max-height: 86vh;
  max-width: 520px;
  overflow: hidden;
  position: relative;
  width: 100%;
}
.admin-modal-content {
  max-width: 760px;
}
.modal-header {
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-shrink: 0;
  gap: var(--space-3);
  justify-content: space-between;
  padding: 18px 20px 16px 24px;
}
.modal-header h2 {
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.modal-heading {
  min-width: 0;
}
.modal-heading .eyebrow {
  color: var(--theme-accent-text);
  display: block;
  margin-bottom: 6px;
}
.modal-subtitle {
  color: var(--text-3);
  font-size: var(--text-sm);
  margin-top: 2px;
  overflow-wrap: anywhere;
}
.modal-subtitle:empty {
  display: none;
}
.modal-close {
  align-items: center;
  background: transparent;
  border: none;
  border-radius: var(--radius-xs);
  color: var(--text-3);
  display: flex;
  flex-shrink: 0;
  font-size: 22px;
  height: 30px;
  justify-content: center;
  line-height: 1;
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
  width: 30px;
}
.modal-close:focus-visible {
  box-shadow: var(--focus-ring);
  outline: none;
}
.modal-close:hover {
  background: var(--ink-700);
  color: var(--text);
}
.modal-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: var(--space-2);
  justify-content: flex-end;
  padding: var(--space-3) var(--space-5);
}
.modal-footer .btn-primary {
  font-size: var(--text-md);
  margin-top: 0;
  padding: 9px 18px;
  width: auto;
}
.modal-tabs {
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-shrink: 0;
  padding: 0 12px;
}
.tab-btn {
  align-items: center;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: var(--radius-xs) var(--radius-xs) 0 0;
  color: var(--text-2);
  display: flex;
  font-size: var(--text-md);
  font-weight: 600;
  gap: 6px;
  margin-bottom: -1px;
  padding: 12px;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.tab-btn:hover {
  color: var(--text);
}
.tab-btn[aria-selected=true] {
  border-bottom-color: rgb(var(--theme-accent));
  color: var(--text);
}
.tab-count {
  background: var(--ink-700);
  border-radius: var(--radius-pill);
  color: var(--text-2);
  font-size: var(--text-xs);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  min-width: 18px;
  padding: 3px 6px;
  text-align: center;
}
.tab-count:empty {
  display: none;
}
.tab-content {
  display: none;
  min-height: 0;
  overflow-y: auto;
  padding: 20px 24px 24px;
}
.tab-content.active {
  display: block;
}
.tab-content:focus-visible {
  box-shadow: inset var(--focus-ring);
  outline: none;
}
.section-head {
  align-items: flex-start;
  display: flex;
  gap: var(--space-3);
  justify-content: space-between;
  margin-bottom: 14px;
}
.section-head .help-text {
  margin: 0;
}
.section-title {
  color: var(--text);
  font-size: var(--text-md);
  font-weight: 700;
  margin-bottom: 10px;
}
.list-section {
  margin-top: 24px;
}
.help-text {
  color: var(--text-2);
  font-size: var(--text-md);
  line-height: 1.5;
  margin-bottom: 14px;
}
.help-text:empty {
  display: none;
}
.input-row {
  align-items: center;
  display: flex;
  gap: var(--space-2);
}
.input-row input[type=text],
.input-row input[type=email],
.input-row input[type=password] {
  flex: 1;
}
.input-row .btn-primary {
  flex-shrink: 0;
  font-size: var(--text-md);
  margin: 0;
  padding: 9px 14px;
  width: auto;
}
.invite-create > label,
.space-create > label {
  margin-bottom: 6px;
}
.invite-create .field-hint,
.invite-create .field-error,
.space-create .field-hint {
  margin-top: 6px;
}
.invite-create .auth-error,
.space-create .auth-error {
  margin: 10px 0 0;
}
.space-icon-input {
  flex: 0 0 56px;
  text-align: center;
}
#space-color {
  background: var(--ink-950);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-shrink: 0;
  height: 38px;
  padding: 3px;
  width: 44px;
}
.btn-ghost.copied {
  border-color: rgba(74, 222, 128, 0.4);
  color: var(--ok);
}
.empty-state {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--text-3);
  font-size: var(--text-md);
  line-height: 1.5;
  padding: 18px 16px;
  text-align: center;
}

/* public/styles/admin.css */
.people-table {
  border-collapse: separate;
  border-spacing: 0 6px;
  margin-top: -6px;
  width: 100%;
}
.people-table th {
  color: var(--text-3);
  font-family: var(--font-pixel);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.08em;
  padding: 0 10px 2px;
  text-align: left;
  text-transform: uppercase;
}
.people-table td {
  background: var(--ink-950);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  padding: 10px;
  vertical-align: middle;
}
.people-table td:first-child {
  border-left: 1px solid var(--line);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}
.people-table td:last-child {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  border-right: 1px solid var(--line);
}
.cell-person .portrait {
  display: inline-block;
  vertical-align: middle;
}
.cell-person .user-text {
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
  margin-left: 10px;
  min-width: 0;
  vertical-align: middle;
}
.user-name-line {
  align-items: center;
  display: flex;
  gap: 6px;
}
.user-display-name,
.admin-space-name {
  color: var(--text);
  font-size: var(--text-md);
  font-weight: 600;
}
.user-email,
.admin-space-meta {
  color: var(--text-3);
  font-size: var(--text-sm);
  overflow: hidden;
  overflow-wrap: anywhere;
  text-overflow: ellipsis;
}
.you-badge,
.role-badge {
  border-radius: 4px;
  font-family: var(--font-pixel);
  font-size: 8px;
  letter-spacing: 0.06em;
  padding: 3px 5px 2px;
  text-transform: uppercase;
  white-space: nowrap;
}
.you-badge {
  background: rgba(var(--theme-accent), 0.2);
  color: var(--theme-accent-text);
}
.role-badge.admin {
  background: rgba(192, 132, 252, 0.2);
  color: var(--dnd);
}
.role-badge.member {
  background: var(--ink-700);
  color: var(--text-2);
}
.status-pill {
  align-items: center;
  color: var(--text-2);
  display: inline-flex;
  font-size: var(--text-sm);
  gap: 6px;
  white-space: nowrap;
}
.status-pill.active .status-dot {
  background: var(--ok);
}
.status-pill.disabled {
  color: var(--text-3);
}
.status-pill.disabled .status-dot {
  background: var(--text-3);
}
.cell-joined {
  color: var(--text-3);
  font-size: var(--text-sm);
  white-space: nowrap;
}
.cell-label {
  display: none;
}
.cell-actions {
  text-align: right;
  width: 44px;
}
.user-item.disabled .portrait,
.user-item.disabled .user-display-name,
.user-item.disabled .user-email {
  opacity: 0.55;
}
.row-menu-btn {
  align-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  color: var(--text-2);
  display: inline-flex;
  height: 30px;
  justify-content: center;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
  width: 30px;
}
.row-menu-btn::before {
  --icon: var(--i-more);
  background: currentColor;
  content: "";
  height: 18px;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
  width: 18px;
}
.row-menu-btn:hover,
.row-menu-btn[aria-expanded=true] {
  background: var(--ink-700);
  color: var(--text);
}
.admin-user-menu {
  position: fixed;
  width: 260px;
}
.menu-item-danger .menu-item-title {
  color: var(--bad);
}
.confirm-row td {
  background: rgba(var(--theme-accent), 0.07);
  border: 1px solid rgba(var(--theme-accent), 0.3) !important;
  border-radius: var(--radius-sm) !important;
  padding: 10px 12px;
}
.confirm-inline {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.confirm-question {
  color: var(--text);
  flex: 1 1 240px;
  font-size: var(--text-md);
  line-height: 1.4;
}
.confirm-yes {
  background: rgba(var(--theme-accent), 0.25);
  border: 1px solid rgba(var(--theme-accent), 0.5);
  border-radius: var(--radius-sm);
  color: var(--theme-accent-text);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-left: auto;
  padding: 7px 12px;
  white-space: nowrap;
}
.confirm-yes.danger {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
  color: var(--bad);
}
.confirm-no {
  font-size: var(--text-sm);
  padding: 7px 12px;
}
.confirm-yes:disabled,
.confirm-no:disabled {
  cursor: default;
  opacity: 0.5;
}
.confirm-yes:focus-visible {
  box-shadow: var(--focus-ring);
  outline: none;
}
.user-action-error {
  color: var(--bad);
  flex: 1 1 100%;
  font-size: var(--text-sm);
}
.user-action-error:empty {
  display: none;
}
.invite-result {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--radius);
  margin-top: 16px;
  padding: 14px 16px;
}
.invite-result[hidden] {
  display: none;
}
.invite-result h3 {
  color: var(--ok);
  font-size: var(--text-md);
  font-weight: 700;
  margin-bottom: 4px;
  overflow-wrap: anywhere;
}
.invite-result p {
  color: var(--text-2);
  font-size: var(--text-sm);
  margin-bottom: 10px;
}
.invite-result.failed {
  background: rgba(251, 191, 36, 0.08);
  border-color: rgba(251, 191, 36, 0.35);
}
.invite-result.failed h3 {
  color: var(--warn);
}
.invite-result.local {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-strong);
}
.invite-result.local h3 {
  color: var(--text);
}
.invite-actions {
  display: flex;
  flex-shrink: 0;
  gap: var(--space-2);
}
.invite-delivery.sent {
  color: var(--ok);
}
.invite-delivery.failed {
  color: var(--warn);
}
.email-test-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.email-test-row .settings-feedback {
  flex: 1 1 240px;
  margin: 0;
}
.invite-link-box {
  display: flex;
  gap: var(--space-2);
}
.invite-link-box input {
  flex: 1;
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  font-size: var(--text-sm);
}
.invite-item,
.admin-space-item {
  align-items: center;
  background: var(--ink-950);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: 6px;
  padding: 10px 12px;
}
.invite-text,
.admin-space-info {
  flex: 1;
  min-width: 0;
}
.invite-email {
  color: var(--text);
  font-size: var(--text-md);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.invite-status {
  color: var(--text-3);
  font-size: var(--text-sm);
}
.admin-space-icon {
  align-items: center;
  border-radius: var(--radius-sm);
  display: flex;
  font-size: 18px;
  height: 36px;
  justify-content: center;
  width: 36px;
}
.admin-space-actions {
  display: flex;
  gap: 6px;
  margin-left: auto;
}
.admin-space-item .confirm-inline {
  flex-basis: 100%;
}
.delete-space-btn {
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-sm);
  color: var(--bad);
  font-size: var(--text-md);
  font-weight: 600;
  padding: 7px 12px;
  transition: background var(--dur-fast) var(--ease);
}
.delete-space-btn:hover {
  background: rgba(239, 68, 68, 0.15);
}
.delete-space-btn:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}
.back-btn {
  align-items: center;
  background: transparent;
  border: none;
  color: var(--theme-accent-text);
  display: inline-flex;
  font-size: var(--text-md);
  font-weight: 500;
  margin-bottom: 14px;
  padding: 0;
}
.back-btn:hover {
  text-decoration: underline;
}
#layout-editor-view[hidden],
#spaces-list-view[hidden] {
  display: none;
}
.layout-editor-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}
.layout-editor-form .field {
  margin-bottom: 0;
}
.pod-names-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pod-name-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.pod-name-row input {
  flex: 1 1 160px;
}
.pod-name-label {
  color: var(--text-3);
  font-family: var(--font-pixel);
  font-size: 9px;
  min-width: 64px;
  text-transform: uppercase;
}
.pod-name-save.saved {
  border-color: rgba(34, 197, 94, 0.4);
  color: var(--ok);
}

/* public/styles/settings.css */
.account-settings-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 0;
  overflow-y: auto;
  padding: 20px 24px 24px;
}
.settings-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.settings-section + .settings-section {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.settings-section .section-title {
  margin-bottom: 0;
}
.settings-section .help-text {
  margin-bottom: 4px;
}
.settings-section > .btn-primary {
  align-self: flex-start;
  font-size: var(--text-md);
  margin-top: 4px;
  padding: 9px 16px;
  width: auto;
}
.settings-feedback {
  font-size: var(--text-md);
  line-height: 1.4;
}
.settings-feedback:empty {
  display: none;
}
.settings-feedback.success {
  color: var(--ok);
}
.settings-feedback.error {
  color: var(--bad);
}
.settings-modal-content {
  max-width: 640px;
}
.account-settings-body.tab-content {
  display: none;
}
.account-settings-body.tab-content.active {
  display: flex;
}
.av-settings.active {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.av-layout {
  align-items: start;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) 236px;
}
.av-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}
.av-column .settings-section + .settings-section {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.av-select {
  appearance: none;
  background-color: var(--ink-950);
  background-image:
    linear-gradient(
      45deg,
      transparent 50%,
      var(--text-3) 50%),
    linear-gradient(
      135deg,
      var(--text-3) 50%,
      transparent 50%);
  background-position: calc(100% - 16px) 52%, calc(100% - 11px) 52%;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: var(--text-md);
  min-width: 0;
  overflow: hidden;
  padding: 9px 30px 9px 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}
.av-select:focus {
  border-color: rgba(var(--theme-accent), 0.7);
  box-shadow: 0 0 0 3px rgba(var(--theme-accent), 0.18);
  outline: none;
}
.av-select[hidden] {
  display: none;
}
.av-select option {
  background: var(--ink-900);
  color: var(--text);
}
.input-row .av-select {
  flex: 1;
}
#av-test-sound {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  gap: 6px;
}
#av-test-sound::before {
  background: currentColor;
  content: "";
  height: 15px;
  -webkit-mask: var(--i-speaker) center / contain no-repeat;
  mask: var(--i-speaker) center / contain no-repeat;
  width: 15px;
}
.av-meter {
  background: var(--ink-950);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  height: 8px;
  overflow: hidden;
}
.av-meter-fill {
  background:
    linear-gradient(
      90deg,
      var(--ok) 0%,
      var(--ok) 70%,
      var(--warn) 100%);
  border-radius: inherit;
  display: block;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  width: 100%;
}
.av-toggles {
  border: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 4px 0 0;
  padding: 0;
}
.av-legend {
  color: var(--text-2);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: 4px;
  padding: 0;
}
.av-toggle {
  align-items: center;
  border-radius: var(--radius-xs);
  color: var(--text);
  cursor: pointer;
  display: flex;
  font-size: var(--text-md);
  gap: 10px;
  min-height: 30px;
}
.av-toggle input {
  appearance: none;
  background: var(--ink-600);
  border-radius: var(--radius-pill);
  cursor: pointer;
  flex-shrink: 0;
  height: 18px;
  margin: 0;
  position: relative;
  transition: background var(--dur-fast) var(--ease);
  width: 30px;
}
.av-toggle input::after {
  background: var(--text);
  border-radius: 50%;
  content: "";
  height: 14px;
  left: 2px;
  position: absolute;
  top: 2px;
  transition: transform var(--dur-fast) var(--ease);
  width: 14px;
}
.av-toggle input:checked {
  background: rgb(var(--theme-accent));
}
.av-toggle input:checked::after {
  transform: translateX(12px);
}
.av-toggle input:focus-visible {
  box-shadow: var(--focus-ring);
  outline: none;
}
.av-camera {
  gap: 10px;
}
.av-preview {
  aspect-ratio: 16 / 9;
  background: var(--ink-950);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.av-preview video {
  display: block;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
  visibility: hidden;
  width: 100%;
}
.av-preview.live video {
  visibility: visible;
}
.av-preview-note {
  align-items: center;
  color: var(--text-3);
  display: flex;
  font-size: var(--text-sm);
  inset: 0;
  justify-content: center;
  padding: 8px;
  position: absolute;
  text-align: center;
}
.av-preview.live .av-preview-note {
  display: none;
}
.av-permission {
  align-items: center;
  background: rgba(var(--theme-accent), 0.1);
  border: 1px solid rgba(var(--theme-accent), 0.3);
  border-radius: var(--radius);
  display: flex;
  gap: var(--space-3);
  justify-content: space-between;
  padding: 12px 14px;
}
.av-permission[hidden] {
  display: none;
}
.av-permission .help-text {
  margin: 0;
}
.av-permission .btn-primary {
  flex-shrink: 0;
  font-size: var(--text-md);
  padding: 8px 14px;
}
.av-permission .btn-primary[hidden] {
  display: none;
}
.av-footnote {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

/* public/styles/avatar.css */
.avatar-picker-grid {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(4, 1fr);
  justify-items: stretch;
}
.avatar-pick-option {
  background: var(--ink-950);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: inherit;
  cursor: pointer;
  display: block;
  padding: 6px 4px 4px;
  text-align: center;
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
  width: 100%;
}
.avatar-pick-option:hover {
  background: var(--ink-700);
}
.avatar-pick-option.selected {
  background: rgba(var(--theme-accent), 0.14);
  border-color: rgb(var(--theme-accent));
}
.avatar-pick-option:focus-visible {
  box-shadow: var(--focus-ring);
  outline: none;
}
.avatar-pick-option.selected .avatar-pick-label {
  color: var(--theme-accent-text);
}
.avatar-pick-canvas {
  display: block;
  height: 96px;
  image-rendering: pixelated;
  margin: 0 auto;
  width: 48px;
}
.avatar-pick-label {
  color: var(--text-3);
  font-size: 10px;
  margin-top: 3px;
  text-transform: capitalize;
}
.avatar-editor-modal-content {
  max-width: 460px;
}
.art-credit {
  color: var(--text-3);
  font-size: var(--text-xs);
  margin: 12px 0 0;
  text-align: center;
}
.art-credit a {
  color: var(--text-2);
  text-decoration: underline;
}
.auth-credit {
  bottom: 12px;
  left: 0;
  padding: 0 var(--gutter);
  position: fixed;
  right: 0;
  z-index: 1;
}
body:has(#game-container.active) .auth-credit {
  display: none;
}
.avatar-editor-body {
  max-height: calc(84vh - 140px);
  overflow-y: auto;
  padding: 16px 20px 20px;
}

/* public/styles/responsive.css */
@media (max-width: 1100px) {
  :root {
    --rail-w: 232px;
  }
}
@media (max-width: 900px) {
  :root {
    --rail-w: 208px;
    --tile-w: 160px;
  }
}
@media (max-width: 640px) {
  :root {
    --dock-h: 56px;
    --gutter: 10px;
    --ctl: 40px;
    --ctl-sm: 32px;
    --tile-w: 120px;
    --corner-h: 150px;
  }
  header h1 {
    display: none;
  }
  #status {
    font-size: 0;
    gap: 0;
    padding: 4px;
  }
  #status.replaced {
    font-size: var(--text-xs);
    gap: 7px;
  }
  #toolbar {
    flex-wrap: wrap;
    justify-content: center;
    left: var(--gutter);
    max-width: none;
    padding: 6px;
    right: var(--gutter);
    transform: none;
    width: auto;
  }
  .toolbar-group::before {
    margin: 0 3px;
  }
  .first-run-tip,
  .me-menu .menu-item-keyboard {
    display: none !important;
  }
  body:has(.first-run-tip:not([hidden])) :is(#side-rail, #hud-corner) {
    bottom: calc(var(--dock-h) + var(--gutter) * 2);
  }
  .me-name,
  .me-chip .dropdown-arrow {
    display: none;
  }
  .me-chip {
    padding: 0 3px;
  }
  .me-menu {
    width: 240px;
  }
  .media-btn.has-label {
    padding: 0;
    width: var(--ctl);
  }
  .btn-label {
    display: none;
  }
  #side-rail {
    top: calc(var(--header-h) + 52px);
    width: min(240px, calc(100vw - var(--gutter) * 2 - 56px));
  }
  #people-panel {
    max-height: 44%;
  }
  #side-rail:not(.collapsed):has(#chat-panel.open) {
    right: var(--gutter);
    width: auto;
  }
  #side-rail:has(#chat-panel.open) #people-panel {
    display: none;
  }
  body:has(#side-rail:not(.collapsed) #chat-panel.open) #hud-corner {
    display: none;
  }
  #chat-panel {
    max-height: none;
    min-height: 0;
  }
  #chat-input {
    font-size: 16px;
  }
  .chat-notices {
    top: calc(var(--header-h) + 6px);
  }
  .person-menu {
    width: 220px;
  }
  #mini-map {
    display: none !important;
  }
  .zoom-level {
    width: var(--ctl-sm);
  }
  #video-tiles {
    --cols: 1 !important;
    max-height: calc(100dvh - var(--header-h) - var(--dock-h) - var(--gutter) * 4 - 120px);
  }
  .auth-stage {
    padding: 8px 0 60px;
  }
  .auth-screen {
    border-radius: var(--radius);
    padding: 22px 18px 24px;
  }
  .auth-screen h2 {
    font-size: 22px;
  }
  .auth-sent-actions {
    flex-direction: column;
    gap: 10px;
  }
  .invite-picker .avatar-picker-grid {
    grid-template-columns: repeat(5, 1fr);
    max-height: 180px;
  }
  .modal {
    padding: var(--gutter);
  }
  .modal-content,
  .admin-modal-content {
    max-height: calc(100dvh - var(--gutter) * 2);
    width: 100%;
  }
  .modal-header {
    padding: 14px 14px 12px 16px;
  }
  .modal-tabs {
    padding: 0 6px;
  }
  .tab-btn {
    flex: 1;
    justify-content: center;
    padding: 11px 6px;
  }
  .tab-content,
  .account-settings-body {
    padding: 16px;
  }
  .av-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .av-camera {
    order: -1;
  }
  .av-permission {
    align-items: stretch;
    flex-direction: column;
  }
  .sound-banner {
    top: calc(var(--header-h) + 8px);
  }
  .section-head {
    flex-direction: column;
  }
  .input-row {
    flex-wrap: wrap;
  }
  .input-row input[type=text],
  .input-row input[type=email],
  .input-row input[type=password] {
    flex: 1 1 160px;
  }
  .people-table,
  .people-table tbody,
  .people-table tr,
  .people-table td {
    display: block;
  }
  .people-table thead {
    display: none;
  }
  .people-table {
    border-spacing: 0;
    margin-top: 0;
  }
  .people-table tr.user-item {
    background: var(--ink-950);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    margin-bottom: 6px;
    padding: 10px 12px;
    position: relative;
  }
  .people-table td {
    background: transparent;
    border: none !important;
    border-radius: 0 !important;
    padding: 0;
  }
  .cell-person {
    padding-right: 40px !important;
  }
  .cell-role,
  .cell-status,
  .cell-joined {
    display: inline-block !important;
    margin: 8px 10px 0 0;
    vertical-align: middle;
  }
  .cell-label {
    display: inline;
  }
  .cell-actions {
    position: absolute;
    right: 10px;
    top: 10px;
    width: auto;
  }
  .people-table tr.confirm-row {
    margin: -2px 0 8px;
  }
  .confirm-row td {
    border: 1px solid rgba(var(--theme-accent), 0.3) !important;
    border-radius: var(--radius-sm) !important;
    padding: 10px 12px;
  }
  .admin-user-menu {
    width: min(260px, calc(100vw - var(--gutter) * 2));
  }
  .avatar-picker-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .user-entry.talking .portrait,
  #status.connecting,
  #status.reconnecting {
    animation: none !important;
  }
}

/* public/styles/decorate.css */
.decorate-panel {
  bottom: calc(var(--dock-h) + var(--gutter) * 2 + var(--corner-h) + var(--space-2));
  max-height: none;
  position: fixed;
  right: var(--gutter);
  top: calc(var(--header-h) + var(--gutter));
  width: var(--decorate-w);
  z-index: 960;
}
.decorate-panel[hidden] {
  display: none;
}
body.decorating #video-tiles {
  right: calc(var(--gutter) * 2 + var(--decorate-w));
}
.decorate-header .eyebrow {
  color: var(--theme-accent-text);
}
.decorate-done {
  background: rgb(var(--theme-accent));
  border: none;
  border-radius: var(--radius-xs);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-left: auto;
  padding: 5px 12px;
}
.decorate-done:hover {
  filter: brightness(1.12);
}
.decorate-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: var(--space-2);
  min-height: 0;
  padding: var(--space-2) var(--space-3) var(--space-3);
}
.decorate-compact-note {
  display: none;
}
.decorate-tools {
  align-items: center;
  display: flex;
  gap: var(--space-1);
}
.decorate-segment {
  background: var(--ink-900);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  display: flex;
  flex: 1;
  padding: 2px;
}
.decorate-tool {
  align-items: center;
  background: transparent;
  border: none;
  border-radius: var(--radius-xs);
  color: var(--text-2);
  display: flex;
  flex: 1;
  font-size: var(--text-sm);
  font-weight: 600;
  gap: 6px;
  justify-content: center;
  padding: 6px 8px;
}
.decorate-tool::before,
.decorate-icon-btn::before,
.decorate-bar-btn::before,
.decorate-search::before,
.decorate-tab::before,
.decorate-no-match::before {
  background: currentColor;
  content: "";
  flex-shrink: 0;
  height: 14px;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
  width: 14px;
}
.decorate-tool-select {
  --icon: var(--i-select);
}
.decorate-tool-erase {
  --icon: var(--i-eraser);
}
.decorate-undo {
  --icon: var(--i-undo);
}
.decorate-redo {
  --icon: var(--i-redo);
}
.decorate-bar-turn {
  --icon: var(--i-rotate);
}
.decorate-bar-delete {
  --icon: var(--i-trash);
}
.decorate-tool:hover {
  color: var(--text);
}
.decorate-tool[aria-checked=true] {
  background: var(--ink-600);
  color: var(--text);
}
.decorate-tool-erase[aria-checked=true] {
  background: rgba(var(--off), 0.22);
  color: #fecaca;
}
.decorate-icon-btn {
  align-items: center;
  background: var(--ink-900);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text-2);
  display: flex;
  height: 32px;
  justify-content: center;
  width: 32px;
}
.decorate-icon-btn:hover:not(:disabled) {
  background: var(--ink-700);
  color: var(--text);
}
.decorate-icon-btn:disabled {
  opacity: 0.4;
}
.decorate-search {
  --icon: var(--i-search);
  align-items: center;
  background: var(--ink-900);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text-3);
  display: flex;
  gap: var(--space-2);
  padding: 0 var(--space-2);
}
.decorate-search:focus-within {
  border-color: rgba(var(--theme-accent), 0.6);
}
.decorate-search input {
  background: transparent;
  border: none;
  color: var(--text);
  flex: 1;
  font-size: var(--text-md);
  min-width: 0;
  outline: none;
  padding: 7px 0;
}
.decorate-tabs {
  background: var(--ink-900);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  display: flex;
  flex-shrink: 0;
  gap: 2px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 2px;
  scrollbar-width: none;
}
.decorate-tabs::-webkit-scrollbar {
  display: none;
}
.decorate-tabs[data-fade=start] {
  -webkit-mask-image:
    linear-gradient(
      to right,
      transparent,
      #000 20px);
  mask-image:
    linear-gradient(
      to right,
      transparent,
      #000 20px);
}
.decorate-tabs[data-fade=end] {
  -webkit-mask-image:
    linear-gradient(
      to left,
      transparent,
      #000 20px);
  mask-image:
    linear-gradient(
      to left,
      transparent,
      #000 20px);
}
.decorate-tabs[data-fade="start end"] {
  -webkit-mask-image:
    linear-gradient(
      to right,
      transparent,
      #000 20px,
      #000 calc(100% - 20px),
      transparent);
  mask-image:
    linear-gradient(
      to right,
      transparent,
      #000 20px,
      #000 calc(100% - 20px),
      transparent);
}
.decorate-tab {
  --icon: var(--i-box);
  align-items: center;
  background: transparent;
  border: none;
  border-radius: var(--radius-xs);
  color: var(--text-2);
  display: flex;
  flex: 1 0 26px;
  height: 30px;
  justify-content: center;
  padding: 0;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.decorate-tab::before {
  height: 16px;
  width: 16px;
}
.decorate-tab:hover {
  background: var(--ink-700);
  color: var(--text);
}
.decorate-tab[aria-selected=true] {
  background: rgba(var(--theme-accent), 0.24);
  box-shadow: inset 0 0 0 1px rgba(var(--theme-accent), 0.5);
  color: var(--theme-accent-text);
}
.decorate-tab:focus-visible {
  outline: 2px solid rgb(var(--theme-accent));
  outline-offset: -2px;
}
.decorate-tab[data-category=all] {
  --icon: var(--i-grid);
}
.decorate-tab[data-category=plants] {
  --icon: var(--i-plant);
}
.decorate-tab[data-category=garden] {
  --icon: var(--i-flower);
}
.decorate-tab[data-category=office] {
  --icon: var(--i-briefcase);
}
.decorate-tab[data-category=kitchen] {
  --icon: var(--i-cup);
}
.decorate-tab[data-category=lounge] {
  --icon: var(--i-sofa);
}
.decorate-tab[data-category=decor] {
  --icon: var(--i-frame);
}
.decorate-tab[data-category=games] {
  --icon: var(--i-gamepad);
}
.decorate-tab[data-category=rugs] {
  --icon: var(--i-rug);
}
.decorate-scroll {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  margin: 0 calc(var(--space-3) * -1);
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 var(--space-3) var(--space-2);
  scrollbar-width: thin;
}
.decorate-sections {
  display: flex;
  flex-direction: column;
}
.decorate-section {
  display: flex;
  flex-direction: column;
}
.decorate-section[hidden] {
  display: none;
}
.decorate-section-head {
  color: var(--text);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 calc(var(--space-3) * -1);
  padding: var(--space-2) var(--space-3) 6px;
  position: sticky;
  top: 0;
  z-index: 1;
}
.decorate-section-head.pinned {
  background: var(--ink-700);
  box-shadow: 0 1px 0 var(--line);
}
.decorate-section-count {
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}
.decorate-recent-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding-bottom: var(--space-1);
}
.decorate-grid {
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-bottom: var(--space-1);
}
.decorate-item {
  align-items: center;
  background: var(--ink-900);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text-2);
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 6px 4px 5px;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.decorate-item:hover {
  background: var(--ink-700);
  color: var(--text);
}
.decorate-item[aria-selected=true] {
  background: rgba(var(--theme-accent), 0.2);
  border-color: rgba(var(--theme-accent), 0.75);
  color: var(--text);
}
.decorate-recent-item {
  padding: 3px;
}
.decorate-thumb {
  display: block;
  flex-shrink: 0;
}
.decorate-item-name {
  font-size: var(--text-xs);
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.decorate-item-size {
  color: var(--text-3);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}
.decorate-empty {
  color: var(--text-3);
  font-size: var(--text-sm);
  margin: 0;
  padding: var(--space-3) 0;
  text-align: center;
}
.decorate-no-match {
  --icon: var(--i-search);
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--space-6) var(--space-2);
}
.decorate-no-match::before {
  height: 22px;
  margin-bottom: var(--space-1);
  opacity: 0.7;
  width: 22px;
}
.decorate-no-match strong {
  color: var(--text);
  font-size: var(--text-md);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.decorate-empty-reset {
  background: var(--ink-900);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xs);
  color: var(--text);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-top: var(--space-2);
  padding: 5px 12px;
}
.decorate-empty-reset:hover {
  background: var(--ink-700);
}
.decorate-hint {
  border-top: 1px solid var(--line);
  color: var(--text-3);
  flex-shrink: 0;
  font-size: var(--text-xs);
  line-height: 1.4;
  margin: 0 calc(var(--space-3) * -1) calc(var(--space-3) * -1);
  padding: var(--space-2) var(--space-3);
}
.decorate-inspector {
  background: var(--ink-900);
  border: 1px solid rgba(var(--theme-accent), 0.45);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-2);
}
.decorate-inspector[hidden] {
  display: none;
}
.decorate-inspector-head {
  align-items: center;
  display: flex;
  gap: var(--space-2);
}
.decorate-inspector-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.decorate-inspector-text strong {
  color: var(--text);
  font-size: var(--text-md);
}
.decorate-inspector-text span {
  color: var(--text-3);
  font-size: var(--text-xs);
}
.decorate-option-row {
  align-items: center;
  display: flex;
  gap: var(--space-2);
}
.decorate-option-row .eyebrow {
  min-width: 52px;
}
.decorate-options {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.decorate-option {
  align-items: center;
  background: var(--ink-800);
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  color: var(--text-2);
  display: flex;
  justify-content: center;
  min-height: 30px;
  min-width: 30px;
  padding: 2px;
}
.decorate-option[aria-pressed=true] {
  border-color: rgba(var(--theme-accent), 0.85);
  color: var(--text);
}
.decorate-facing {
  font-size: var(--text-lg);
}
.decorate-inspector-actions {
  display: flex;
  gap: var(--space-2);
}
.decorate-danger {
  background: rgba(var(--off), 0.16);
  border: 1px solid rgba(var(--off), 0.45);
  border-radius: var(--radius-xs);
  color: #fecaca;
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 5px 12px;
}
.decorate-danger:hover {
  background: rgba(var(--off), 0.28);
}
.decorate-inspector-hint {
  color: var(--text-3);
  font-size: var(--text-xs);
  margin: 0;
}
.decorate-object-bar {
  background: var(--glass-strong);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 2px;
  padding: 3px;
  position: fixed;
  z-index: 970;
}
.decorate-object-bar[hidden] {
  display: none;
}
.decorate-bar-btn {
  align-items: center;
  background: transparent;
  border: none;
  border-radius: var(--radius-pill);
  color: var(--text-2);
  display: flex;
  font-size: var(--text-xs);
  font-weight: 600;
  gap: 5px;
  padding: 4px 10px;
}
.decorate-bar-btn[hidden] {
  display: none;
}
.decorate-bar-btn:hover {
  background: var(--ink-600);
  color: var(--text);
}
.decorate-bar-delete:hover {
  background: rgba(var(--off), 0.25);
  color: #fecaca;
}
.decorate-tip {
  background: var(--ink-800);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xs);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  font-size: var(--text-sm);
  max-width: 260px;
  padding: 5px 9px;
  pointer-events: none;
  position: fixed;
  z-index: 2400;
}
.decorate-tip.bad {
  border-color: rgba(var(--off), 0.6);
}
.decorate-tip.bad::before {
  color: var(--bad);
  content: "✕ ";
  font-weight: 700;
}
.decorate-tip[hidden] {
  display: none;
}
.decorate-panel.compact {
  bottom: auto;
}
.decorate-panel.compact .decorate-body {
  display: none;
}
.decorate-panel.compact .decorate-compact-note {
  color: var(--text-2);
  display: flex;
  flex-direction: column;
  font-size: var(--text-sm);
  gap: var(--space-1);
  line-height: 1.45;
  padding: var(--space-3);
}
.decorate-compact-note strong {
  color: var(--text);
  font-size: var(--text-md);
}
@media (max-width: 640px) {
  .decorate-panel {
    left: var(--gutter);
    right: var(--gutter);
    width: auto;
  }
}

/* public/styles/conversation-cue.css */
#conversation-cue {
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  left: 50%;
  max-width: min(520px, calc(100% - var(--gutter) * 2));
  padding: var(--space-2) var(--space-4) var(--space-2) 30px;
  pointer-events: none;
  position: absolute;
  top: var(--gutter);
  transform: translateX(-50%);
  width: max-content;
  z-index: 20;
}
#conversation-cue::before {
  background: var(--text-3);
  border-radius: 50%;
  content: "";
  height: 7px;
  left: 14px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
}
#conversation-cue[data-mode=open]::before {
  background: var(--theme-accent-text);
}
#conversation-cue[data-mode=live]::before {
  background: var(--ok);
  box-shadow: 0 0 10px var(--ok);
}
#conversation-cue[data-mode=muted]::before {
  background: var(--warn);
}
#conversation-cue strong {
  color: var(--text);
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
}
#conversation-cue span {
  color: var(--text-2);
  display: block;
  font-size: var(--text-xs);
  line-height: 1.4;
  margin-top: 1px;
  overflow-wrap: anywhere;
}
@media (max-width: 640px) {
  #conversation-cue {
    padding: 7px 14px 7px 26px;
  }
  #conversation-cue span {
    display: none;
  }
}

/* public/styles/stage.css */
#stage-hud {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-width: min(340px, calc(100% - var(--gutter) * 2));
  pointer-events: none;
  position: absolute;
  right: var(--gutter);
  top: var(--gutter);
  z-index: 20;
}
#stage-hud[hidden] {
  display: none;
}
.stage-hud-card {
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  font-size: var(--text-sm);
  padding: var(--space-2) var(--space-3);
  pointer-events: auto;
}
.stage-hud-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.stage-hud-room {
  color: var(--text-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.stage-hud-badge {
  background: var(--ink-800);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  font-weight: 600;
  padding: 2px 10px;
  white-space: nowrap;
}
.stage-hud-badge[data-mode=presentation] {
  background: rgba(var(--theme-accent), 0.16);
  border-color: rgba(var(--theme-accent), 0.6);
  color: var(--theme-accent-text);
}
.stage-hud-btn {
  background: var(--ink-800);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 4px 10px;
  white-space: nowrap;
}
.stage-hud-btn:hover {
  border-color: rgba(var(--theme-accent), 0.6);
}
.stage-hud-btn:focus-visible {
  outline: 2px solid var(--theme-accent-text);
  outline-offset: 2px;
}
.stage-hud-accept {
  background: rgba(var(--theme-accent), 0.2);
  border-color: rgba(var(--theme-accent), 0.6);
  color: var(--theme-accent-text);
}
.stage-hud-queue .eyebrow {
  display: block;
  margin-bottom: var(--space-1);
}
.stage-hud-empty {
  color: var(--text-2);
  font-size: var(--text-xs);
  margin: 0;
}
.stage-queue {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  list-style: none;
  margin: 0;
  max-height: 200px;
  overflow-y: auto;
  padding: 0;
}
.stage-queue-entry {
  align-items: center;
  display: flex;
  gap: var(--space-2);
  justify-content: space-between;
}
.stage-queue-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stage-queue-note {
  color: var(--text-2);
  font-size: var(--text-xs);
}
.stage-hud-invite strong {
  display: block;
  margin-bottom: var(--space-2);
}
.stage-hud-actions {
  display: flex;
  gap: var(--space-2);
}
@media (max-width: 640px) {
  #stage-hud {
    top: calc(var(--gutter) + 48px);
  }
}

/* public/styles/index.css */
