/* We play we do not work — Apple Store Flagship 3D Vibe Space */
/* Design Philosophy: Cupertino Architectural Glassmorphism & Spatial Interface */

/* 1. Global Design Tokens & Variable System */
:root {
  /* Typography System */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;

  /* Apple Master Color Spectrum */
  --color-bg-base: #F5F5F7;
  --color-bg-surface: #FFFFFF;
  --color-text-primary: #1D1D1F;
  --color-text-secondary: #86868B;
  --color-text-tertiary: #A1A1A6;
  --color-text-quaternary: #C7C7CC;

  /* Cupertino Dynamic Accent Hues */
  --color-apple-blue: #0071E3;
  --color-apple-blue-hover: #0077ED;
  --color-apple-blue-glow: rgba(0, 113, 227, 0.42);
  --color-apple-blue-surface: rgba(0, 113, 227, 0.08);

  --color-apple-green: #34C759;
  --color-apple-green-hover: #30B753;
  --color-apple-green-glow: rgba(52, 199, 89, 0.42);
  --color-apple-green-surface: rgba(52, 199, 89, 0.12);

  --color-apple-orange: #FF9500;
  --color-apple-orange-glow: rgba(255, 149, 0, 0.4);
  --color-apple-purple: #AF52DE;
  --color-apple-purple-glow: rgba(175, 82, 222, 0.4);
  --color-apple-red: #FF3B30;

  /* Architectural Material Tones */
  --mat-white-oak: #D7B48C;
  --mat-aluminum: #E5E5EA;
  --mat-space-black: #1D1D1F;

  /* Tiered Glassmorphic Surfaces (Light / Day Architecture) */
  --glass-header-bg: rgba(245, 245, 247, 0.82);
  --glass-dock-bg: rgba(255, 255, 255, 0.78);
  --glass-pill-bg: rgba(255, 255, 255, 0.85);
  --glass-border-light: rgba(255, 255, 255, 0.78);
  --glass-border-subtle: rgba(0, 0, 0, 0.06);
  --glass-border-inner: inset 0 1px 0 rgba(255, 255, 255, 0.95);

  --glass-shadow-ambient: 0 10px 30px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);
  --glass-shadow-elevated: 0 20px 48px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.04);
  --glass-shadow-float: 0 28px 64px rgba(0, 0, 0, 0.16), 0 4px 16px rgba(0, 0, 0, 0.06);

  /* Cupertino Studio Dark Glass Surfaces (Collaborative Code Environment & Radar) */
  --dark-glass-bg: rgba(18, 18, 22, 0.88);
  --dark-glass-surface: rgba(30, 30, 36, 0.72);
  --dark-glass-border: rgba(255, 255, 255, 0.11);
  --dark-glass-border-highlight: rgba(255, 255, 255, 0.2);
  --dark-glass-shadow: 0 32px 72px rgba(0, 0, 0, 0.42), 0 4px 20px rgba(0, 0, 0, 0.3);

  /* Geometry, Spacing & Transitions */
  --radius-full: 9999px;
  --radius-2xl: 24px;
  --radius-xl: 18px;
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 6px;

  --header-height: 54px;
  --dock-height: 64px;
  --panel-width: 860px;
  --easing-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --easing-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* 2. Reset & Structural Baseline */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  font-family: var(--font-sans);
  background: radial-gradient(circle at 50% 28%, #FFFFFF 0%, #F5F5F7 70%, #E8E8ED 100%);
  background-color: var(--color-bg-base);
  color: var(--color-text-primary);
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-text-size-adjust: 100%;
  touch-action: none;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
}

a, button, input, select, textarea, label, [role="button"] {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: rgba(0, 113, 227, 0.35);
  color: #FFFFFF;
}

/* Screen Reader & SEO/AEO/GEO Crawler Semantic Layer */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  pointer-events: none !important;
}

/* 3. Three.js WebGL & 3D Spatial Canvas Layer (Depth-Composite Above Stage Layer) */
.webgl-viewport {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  overflow: hidden;
  background: transparent;
  touch-action: none;
}

#three-canvas {
  width: 100%;
  height: 100%;
  display: block;
  outline: none;
  touch-action: none;
}

/* 3D Stage Screen Interactive Projection Layer (Full HD 1920x1080 with GPU Tile Optimization) */
.stage-projection-layer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  touch-action: none;
}

.stage-projection-layer.focused-layer {
  z-index: 28;
  background: rgba(10, 10, 14, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: auto;
}

.stage-projection-layer.canvas-dragging,
.stage-projection-layer.canvas-dragging * {
  pointer-events: none !important;
}

.stage-screen-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1920px;
  height: 1080px;
  margin-left: -960px;
  margin-top: -540px;
  transform-origin: 50% 50% 0px;
  background: #101015;
  border: none;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  transition: opacity 0.25s ease;
}

.stage-screen-frame.mobile-stage-mode {
  width: 1280px;
  height: 720px;
  margin-left: -640px;
  margin-top: -360px;
}

body.embedded-preview-mode *,
body.embedded-preview-mode *::before,
body.embedded-preview-mode *::after {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  will-change: auto !important;
}

.stage-screen-frame.active,
.stage-screen-frame.is-owner {
  border: none;
  pointer-events: auto;
}

.stage-screen-frame.is-owner .stage-live-iframe {
  pointer-events: auto !important;
}

.stage-screen-frame.is-owner .stage-visitor-shield {
  display: none !important;
  pointer-events: none !important;
}

.stage-screen-frame.focused-mode {
  top: 50% !important;
  left: 50% !important;
  margin-left: 0 !important;
  margin-top: 0 !important;
  transform-origin: center center !important;
  border-radius: 16px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.68), 0 0 40px rgba(0, 113, 227, 0.35);
}

.stage-hud-bar {
  height: 56px;
  padding: 0 22px;
  background: rgba(18, 18, 24, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-shrink: 0;
}

.stage-screen-frame.focused-mode .stage-hud-bar,
.stage-screen-frame.mobile-stage-mode .stage-hud-bar {
  height: 38px;
  padding: 0 12px;
  gap: 8px;
}

.stage-hud-left,
.stage-hud-right {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.stage-screen-frame.focused-mode .stage-hud-left,
.stage-screen-frame.focused-mode .stage-hud-right,
.stage-screen-frame.mobile-stage-mode .stage-hud-left,
.stage-screen-frame.mobile-stage-mode .stage-hud-right {
  gap: 6px;
}

.stage-live-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-apple-blue);
  box-shadow: 0 0 10px var(--color-apple-blue);
  flex-shrink: 0;
}

.stage-screen-frame.idle .stage-live-dot {
  display: none !important;
}

.stage-screen-frame.focused-mode .stage-live-dot {
  width: 8px;
  height: 8px;
}

.stage-screen-frame.active .stage-live-dot {
  background: var(--color-apple-red);
  box-shadow: 0 0 12px var(--color-apple-red);
  animation: pulsePing 1.5s infinite ease-out;
}

.stage-status-badge {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 6px;
  background: rgba(0, 113, 227, 0.22);
  color: #79C0FF;
  border: 1px solid rgba(0, 113, 227, 0.45);
  white-space: nowrap;
}

.stage-screen-frame.focused-mode .stage-status-badge,
.stage-screen-frame.mobile-stage-mode .stage-status-badge {
  font-size: 11px;
  padding: 2px 8px;
}

.stage-screen-frame.active .stage-status-badge {
  background: rgba(255, 59, 48, 0.22);
  color: #FF6961;
  border-color: rgba(255, 59, 48, 0.45);
}

.stage-screen-frame.is-owner .stage-status-badge {
  background: rgba(52, 199, 89, 0.22);
  color: #34C759;
  border-color: rgba(52, 199, 89, 0.45);
}

.stage-project-title {
  font-size: 15px;
  font-weight: 700;
  color: #F5F5F7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stage-screen-frame.focused-mode .stage-project-title,
.stage-screen-frame.mobile-stage-mode .stage-project-title {
  font-size: 12px;
}

.stage-queue-pill {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 149, 0, 0.18);
  color: #FFA657;
  border: 1px solid rgba(255, 149, 0, 0.38);
  white-space: nowrap;
}

.stage-screen-frame.focused-mode .stage-queue-pill,
.stage-screen-frame.mobile-stage-mode .stage-queue-pill {
  font-size: 10.5px;
  padding: 2px 7px;
}

.stage-timer-pill {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  white-space: nowrap;
}

.stage-screen-frame.focused-mode .stage-timer-pill,
.stage-screen-frame.mobile-stage-mode .stage-timer-pill {
  font-size: 10.5px;
  padding: 2px 7px;
}

.stage-hud-btn {
  height: 32px;
  padding: 0 12px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #F5F5F7;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.stage-screen-frame.focused-mode .stage-hud-btn,
.stage-screen-frame.mobile-stage-mode .stage-hud-btn {
  height: 25px;
  padding: 0 8px;
  font-size: 10.5px;
  border-radius: 6px;
}

.stage-hud-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.stage-hud-btn.primary {
  background: var(--color-apple-blue);
  border-color: var(--color-apple-blue);
  color: #FFFFFF;
}

.stage-hud-btn.primary:hover {
  background: var(--color-apple-blue-hover);
}

.stage-hud-btn.danger {
  background: linear-gradient(135deg, #FF3B30 0%, #D70015 100%);
  border-color: rgba(255, 255, 255, 0.35);
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(255, 59, 48, 0.45);
}

.stage-hud-btn.danger:hover {
  background: linear-gradient(135deg, #FF453A 0%, #E00018 100%);
  transform: scale(1.03);
}

.stage-hud-btn.hidden {
  display: none !important;
}

.stage-viewport-body {
  flex: 1;
  position: relative;
  width: 100%;
  background: #0D0D12;
  overflow: hidden;
}

.stage-idle-view {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  background: radial-gradient(circle at 50% 35%, rgba(0, 113, 227, 0.24) 0%, rgba(13, 13, 18, 0.96) 75%);
  cursor: pointer;
  gap: 18px;
}

.stage-idle-view.hidden {
  display: none !important;
}

.stage-idle-icon {
  font-size: 48px;
  line-height: 1;
  margin-bottom: 4px;
}

.stage-screen-frame.focused-mode .stage-idle-icon {
  font-size: 38px;
}

.stage-idle-title {
  font-size: 28px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.02em;
}

.stage-screen-frame.focused-mode .stage-idle-title {
  font-size: 22px;
}

.stage-idle-desc {
  font-size: 17px;
  color: rgba(245, 245, 247, 0.82);
  line-height: 1.55;
  max-width: 780px;
}

.stage-screen-frame.focused-mode .stage-idle-desc {
  font-size: 14px;
  max-width: 600px;
}

.stage-idle-desc strong {
  color: #79C0FF;
}

.stage-idle-cta {
  margin-top: 8px;
}

.stage-cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #0071E3 0%, #0077ED 100%);
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 8px 28px rgba(0, 113, 227, 0.48);
  transition: transform 0.2s ease;
}

.stage-screen-frame.focused-mode .stage-cta-pill {
  padding: 9px 20px;
  font-size: 13px;
}

.stage-idle-view:hover .stage-cta-pill {
  transform: scale(1.04);
}

.stage-live-iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #FFFFFF;
  display: block;
  pointer-events: none;
}

.stage-screen-frame.mobile-stage-mode .stage-live-iframe {
  width: 100%;
  height: 100%;
  transform: none;
}

.stage-live-iframe.hidden {
  display: none !important;
}

.stage-screen-frame.focused-mode .stage-live-iframe {
  pointer-events: auto;
}

.stage-screen-frame.focused-mode .stage-visitor-shield {
  display: none !important;
  pointer-events: none !important;
}

.stage-owner-badge {
  position: absolute;
  bottom: 14px;
  right: 16px;
  padding: 7px 10px 7px 16px;
  border-radius: var(--radius-full);
  background: rgba(18, 18, 24, 0.92);
  border: 1.5px solid rgba(52, 199, 89, 0.72);
  color: #34C759;
  font-size: 13px;
  font-weight: 600;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.52);
  z-index: 4;
}

.stage-owner-stop-btn {
  padding: 5px 13px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: linear-gradient(135deg, #FF3B30 0%, #D70015 100%);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(255, 59, 48, 0.48);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.stage-owner-stop-btn:hover {
  transform: scale(1.04);
  filter: brightness(1.08);
}

.stage-owner-stop-btn:active {
  transform: scale(0.96);
}

.stage-screen-frame.focused-mode .stage-owner-badge {
  bottom: 10px;
  right: 12px;
  padding: 5px 8px 5px 12px;
  font-size: 11px;
  gap: 8px;
}

.stage-screen-frame.focused-mode .stage-owner-stop-btn {
  padding: 4px 10px;
  font-size: 11px;
}

.stage-owner-badge.hidden {
  display: none !important;
}

.stage-visitor-shield {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.01);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: background 0.2s ease;
}

.stage-visitor-shield.hidden {
  display: none !important;
  pointer-events: none !important;
}

.stage-visitor-hover-pill {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 30px;
  border-radius: 18px;
  background: rgba(18, 18, 24, 0.94);
  border: 1.5px solid rgba(255, 149, 0, 0.6);
  color: #FFFFFF;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.stage-screen-frame.focused-mode .stage-visitor-hover-pill {
  padding: 10px 18px;
  gap: 10px;
}

.stage-visitor-shield:hover {
  background: rgba(0, 0, 0, 0.18);
}

.stage-visitor-shield:hover .stage-visitor-hover-pill {
  opacity: 1;
  transform: translateY(0);
}

.visitor-pill-icon {
  font-size: 24px;
}

.stage-screen-frame.focused-mode .visitor-pill-icon {
  font-size: 20px;
}

.visitor-pill-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
}

.visitor-pill-text strong {
  font-size: 16px;
  color: #FFA657;
}

.stage-screen-frame.focused-mode .visitor-pill-text strong {
  font-size: 13px;
}

.visitor-pill-text span {
  font-size: 13px;
  color: rgba(245, 245, 247, 0.82);
}

.stage-screen-frame.focused-mode .visitor-pill-text span {
  font-size: 11.5px;
}

.stage-footer-bar {
  height: 36px;
  padding: 0 16px;
  background: rgba(14, 14, 18, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: rgba(245, 245, 247, 0.78);
  flex-shrink: 0;
}

.stage-screen-frame.focused-mode .stage-footer-bar,
.stage-screen-frame.mobile-stage-mode .stage-footer-bar {
  height: 26px;
  padding: 0 12px;
  font-size: 10.5px;
}

.stage-footer-left,
.stage-footer-right {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
}

.stage-owner-tag {
  font-weight: 700;
  color: #FFFFFF;
  white-space: nowrap;
}

.stage-url-tag {
  font-family: var(--font-mono);
  color: #79C0FF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stage-next-label {
  font-family: var(--font-mono);
  color: #FFA657;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Spatial In-World Screen Projection Layer */
.spatial-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 8;
  overflow: hidden;
}

/* Background YouTube BGM Stream Container */
.bgm-player-hidden {
  position: fixed;
  bottom: 12px;
  left: 12px;
  width: 200px;
  height: 120px;
  opacity: 0.01;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
  border-radius: 8px;
}

/* 4. Top Glass Header Bar */
.glass-header {
  position: fixed;
  top: max(14px, env(safe-area-inset-top, 14px));
  left: 50%;
  transform: translateX(-50%) translateZ(0);
  -webkit-transform: translateX(-50%) translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
  width: fit-content;
  min-width: min(1140px, calc(100% - 32px));
  max-width: calc(100% - 32px);
  height: var(--header-height);
  background: var(--glass-header-bg);
  backdrop-filter: blur(30px) saturate(200%);
  -webkit-backdrop-filter: blur(30px) saturate(200%);
  border: 1px solid var(--glass-border-light);
  border-radius: var(--radius-full);
  box-shadow: var(--glass-shadow-ambient), var(--glass-border-inner);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 12px 0 18px;
  white-space: nowrap;
  overflow: visible;
  scrollbar-width: none;
  z-index: 35;
  transition: transform 0.3s var(--easing-spring), box-shadow 0.3s ease;
}

.glass-header::-webkit-scrollbar {
  display: none;
}

.header-left, .header-center, .header-right {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  white-space: nowrap;
}

.header-left {
  position: relative;
  overflow: visible !important;
}

.header-status-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.header-divider {
  width: 1px;
  height: 20px;
  background: rgba(0, 0, 0, 0.08);
  margin: 0 3px;
  flex-shrink: 0;
}

.mobile-header-menu-btn,
.mobile-menu-popup-header,
.mobile-menu-cat-title {
  display: none;
}

.header-menu-cat-section,
.header-menu-cat-items {
  display: contents;
}

.header-menu-group {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.035);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.header-menu-sep {
  width: 1px;
  height: 16px;
  background: rgba(0, 0, 0, 0.08);
  margin: 0 2px;
  flex-shrink: 0;
}

/* Brand Glyph & Badge */
.brand-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  outline: none;
  border-radius: var(--radius-md);
  padding: 2px 4px;
  transition: opacity 0.2s ease;
}

.brand-badge:hover {
  opacity: 0.9;
}

.brand-glyph {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, #1D1D1F 0%, #323236 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.25s var(--easing-spring);
}

.brand-badge:hover .brand-glyph {
  transform: scale(1.06) rotate(3deg);
}

.brand-text-group {
  display: flex;
  flex-direction: column;
  width: auto;
  max-width: none;
  overflow: visible;
}

.brand-title {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.018em;
  color: var(--color-text-primary);
  line-height: 1.25;
  white-space: nowrap;
  display: inline-block;
}

.brand-sub {
  display: none;
}

/* Current Table Presence Capsule */
.status-capsule {
  display: inline-flex;
  align-items: center;
  height: 32px;
  gap: 6px;
  background: var(--glass-pill-bg);
  border: 1px solid var(--glass-border-subtle);
  border-radius: var(--radius-full);
  padding: 0 11px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03), var(--glass-border-inner);
  transition: all 0.2s var(--easing-spring);
}

.status-capsule:hover {
  background: #FFFFFF;
  transform: translateY(-1px);
}

.status-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-apple-green);
  position: relative;
}

.status-pulse-dot.active::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: var(--color-apple-green-glow);
  animation: pulsePing 2.2s infinite ease-out;
}

@keyframes pulsePing {
  0% { transform: scale(0.85); opacity: 1; }
  100% { transform: scale(2.5); opacity: 0; }
}

.seat-badge {
  display: none;
}

/* Room Host & Table Master Badges & Buttons */
.btn-create-room-chip {
  padding: 3px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 113, 227, 0.45);
  background: rgba(0, 113, 227, 0.12);
  color: var(--color-apple-blue);
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  transition: all 0.2s var(--easing-spring);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-create-room-chip:hover {
  background: var(--color-apple-blue);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px var(--color-apple-blue-glow);
}

.btn-edit-room-chip {
  padding: 3px 9px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 149, 0, 0.45);
  background: rgba(255, 149, 0, 0.14);
  color: #FFA657;
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  transition: all 0.2s var(--easing-spring);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-edit-room-chip:hover {
  background: #FF9500;
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(255, 149, 0, 0.4);
}

.btn-edit-room-chip.hidden {
  display: none !important;
}

.btn-table-edit-gear {
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #F5F5F7;
  font-size: 11px;
  cursor: pointer;
  outline: none;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-table-edit-gear:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.08);
}

.btn-table-edit-gear.hidden {
  display: none !important;
}

.btn-card-edit-table {
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(52, 199, 89, 0.35);
  background: rgba(52, 199, 89, 0.1);
  color: #34C759;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.btn-card-edit-table:hover {
  background: #34C759;
  color: #FFFFFF;
}

.table-master-pill {
  font-size: 9.5px;
  font-weight: 700;
  color: #FFA657;
  background: rgba(255, 149, 0, 0.15);
  border: 1px solid rgba(255, 149, 0, 0.35);
  padding: 1.5px 6px;
  border-radius: var(--radius-full);
}

/* Room Instance & Auto-Scaling Indicator Capsule */
.room-capsule {
  display: inline-flex;
  align-items: center;
  height: 32px;
  gap: 6px;
  background: rgba(0, 113, 227, 0.08);
  border: 1px solid rgba(0, 113, 227, 0.22);
  border-radius: var(--radius-full);
  padding: 0 11px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-apple-blue);
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  outline: none;
  transition: all 0.2s var(--easing-spring);
}

.room-capsule:hover {
  background: rgba(0, 113, 227, 0.16);
  transform: translateY(-1px);
}

.room-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-apple-blue);
  box-shadow: 0 0 6px var(--color-apple-blue-glow);
}

.room-capacity-badge {
  background: rgba(0, 0, 0, 0.06);
  color: var(--color-text-secondary);
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 2px 6px;
  border-radius: var(--radius-full);
}

#current-room-cap,
.telemetry-item[title="동시 접속자"] {
  display: none !important;
}

/* Auto-Scaled Rooms Selection Strip Inside Directory Modal */
.rooms-switch-section {
  background: rgba(0, 0, 0, 0.025);
  border: 1px solid var(--glass-border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 20px;
}

.rooms-section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--color-text-secondary);
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.auto-scale-tag {
  font-size: 10px;
  color: var(--color-apple-green);
  font-weight: 600;
}

.rooms-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.room-chip-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--glass-border-subtle);
  background: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: all 0.2s var(--easing-spring);
}

.room-chip-btn:hover {
  border-color: var(--color-apple-blue);
  transform: translateY(-1px);
}

.room-chip-btn.active {
  background: var(--color-apple-blue);
  color: #FFFFFF;
  border-color: var(--color-apple-blue);
  box-shadow: 0 2px 8px var(--color-apple-blue-glow);
}

.room-chip-btn.full {
  opacity: 0.6;
  cursor: not-allowed;
}

.room-chip-btn.create-room-chip {
  border: 1px dashed rgba(0, 113, 227, 0.55);
  background: rgba(0, 113, 227, 0.06);
  color: var(--color-apple-blue);
}

.room-chip-btn.create-room-chip:hover {
  background: var(--color-apple-blue);
  color: #FFFFFF;
  border-style: solid;
  border-color: var(--color-apple-blue);
  box-shadow: 0 2px 8px var(--color-apple-blue-glow);
}

/* Header Ambient Theme Pill */
.ambient-pill {
  display: inline-flex;
  align-items: center;
  height: 34px;
  gap: 6px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--glass-border-subtle);
  border-radius: var(--radius-full);
  padding: 0 12px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03), var(--glass-border-inner);
  cursor: pointer;
  outline: none;
  transition: all 0.24s var(--easing-spring);
  user-select: none;
  -webkit-user-select: none;
}

.ambient-pill:hover {
  background: #FFFFFF;
  color: var(--color-text-primary);
  transform: translateY(-1.5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.ambient-pill:active {
  transform: translateY(0) scale(0.96);
}

.ambient-pill .pill-icon {
  display: flex;
  align-items: center;
  color: var(--color-apple-orange);
  transition: color 0.2s ease, transform 0.25s var(--easing-spring);
}

.ambient-pill:hover .pill-icon {
  transform: rotate(20deg) scale(1.1);
}

.ambient-pill .pill-label {
  line-height: 1;
  white-space: nowrap;
}

/* Header Language Selector Capsule Button (Flag 3D Rotate Transition) */
.lang-pill {
  display: inline-flex;
  align-items: center;
  height: 34px;
  gap: 6px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--glass-border-subtle);
  border-radius: var(--radius-full);
  padding: 0 10px 0 8px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03), var(--glass-border-inner);
  cursor: pointer;
  outline: none;
  transition: all 0.24s var(--easing-spring);
  user-select: none;
  -webkit-user-select: none;
  perspective: 400px;
}

.lang-pill:hover {
  background: #FFFFFF;
  color: var(--color-text-primary);
  transform: translateY(-1.5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.lang-pill:active {
  transform: translateY(0) scale(0.96);
}

.lang-flag-rotate-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1;
  transition: transform 0.42s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-style: preserve-3d;
}

.lang-flag-rotate-box.rotating {
  transform: rotateY(360deg) scale(1.22);
}

.lang-flag {
  display: inline-block;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
}

.lang-code-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-apple-blue);
  line-height: 1;
}

body.dark-mode .lang-pill {
  background: rgba(36, 36, 48, 0.9);
  border-color: rgba(255, 255, 255, 0.15);
  color: #E5E5EA;
}

body.dark-mode .lang-pill:hover {
  background: rgba(50, 50, 64, 0.98);
  color: #FFFFFF;
}

body.dark-mode .lang-code-tag {
  color: #79C0FF;
}

/* Dark Mode Interface Architectural Theme */
body.dark-mode {
  --color-bg-base: #0B0B0E;
  --color-bg-surface: #16161C;
  --color-text-primary: #F5F5F7;
  --color-text-secondary: #A1A1A6;
  --color-text-tertiary: #6E6E73;
  --color-text-quaternary: #3A3A3C;

  --glass-header-bg: rgba(20, 20, 26, 0.88);
  --glass-dock-bg: rgba(24, 24, 32, 0.88);
  --glass-pill-bg: rgba(32, 32, 42, 0.85);
  --glass-border-light: rgba(255, 255, 255, 0.12);
  --glass-border-subtle: rgba(255, 255, 255, 0.08);
  --glass-border-inner: inset 0 1px 0 rgba(255, 255, 255, 0.16);

  background: radial-gradient(circle at 50% 28%, #181822 0%, #0B0B0E 70%, #050508 100%);
  background-color: var(--color-bg-base);
  color: var(--color-text-primary);
}

body.dark-mode .ambient-pill {
  background: rgba(36, 36, 48, 0.9);
  border-color: rgba(255, 255, 255, 0.15);
  color: #E5E5EA;
}

body.dark-mode .ambient-pill:hover {
  background: rgba(50, 50, 64, 0.98);
  color: #FFFFFF;
}

body.dark-mode .ambient-pill .pill-icon {
  color: #79C0FF;
}

body.dark-mode .brand-title {
  color: #FFFFFF;
}

body.dark-mode .status-capsule {
  background: rgba(32, 32, 42, 0.85);
  border-color: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

body.dark-mode .telemetry-capsule {
  background: rgba(32, 32, 42, 0.85);
  border-color: rgba(255, 255, 255, 0.1);
  color: #A1A1A6;
}

body.dark-mode .icon-glass-btn {
  background: rgba(32, 32, 42, 0.85);
  border-color: rgba(255, 255, 255, 0.12);
  color: #F5F5F7;
}

body.dark-mode .icon-glass-btn:hover {
  background: rgba(50, 50, 64, 0.95);
  color: #79C0FF;
}

body.dark-mode .avatar-ring {
  background: linear-gradient(135deg, #2C2C34 0%, #1A1A22 100%);
  border-color: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}

body.dark-mode .chat-history-glass {
  background: rgba(20, 20, 26, 0.92);
  border-color: rgba(255, 255, 255, 0.12);
  color: #F5F5F7;
}

body.dark-mode .chat-history-header {
  background: rgba(28, 28, 38, 0.8);
  border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .chat-filter-tab-bar {
  background: rgba(255, 255, 255, 0.08);
}

body.dark-mode .chat-filter-pill.active {
  background: rgba(255, 255, 255, 0.18);
  color: #79C0FF;
}

body.dark-mode .chat-body-text {
  background: rgba(32, 32, 42, 0.9);
  border-color: rgba(255, 255, 255, 0.08);
  color: #F5F5F7;
}

body.dark-mode .chat-history-item.is-self .chat-body-text {
  background: rgba(0, 113, 227, 0.18);
  border-color: rgba(0, 113, 227, 0.35);
}

body.dark-mode .chat-glass-pill {
  background: rgba(22, 22, 30, 0.94);
  border-color: rgba(255, 255, 255, 0.15);
}

body.dark-mode #chat-input-field {
  color: #F5F5F7;
}

body.dark-mode .shortcuts-bar-pill {
  background: rgba(22, 22, 30, 0.95);
  border-color: rgba(255, 255, 255, 0.15);
  color: #F5F5F7;
}

body.dark-mode .shortcuts-bar-item {
  color: #F5F5F7;
}

body.dark-mode .key-cap {
  background: rgba(42, 42, 54, 0.95);
  border-color: rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
}

body.dark-mode .modal-card-glass {
  background: rgba(22, 22, 30, 0.96);
  border-color: rgba(255, 255, 255, 0.15);
  color: #F5F5F7;
}

body.dark-mode .modal-close-circle {
  background: rgba(255, 255, 255, 0.1);
  color: #D1D1D6;
}

body.dark-mode .apple-text-field,
body.dark-mode .apple-textarea-field {
  background: rgba(14, 14, 20, 0.92);
  border-color: rgba(255, 255, 255, 0.14);
  color: #F5F5F7;
}

body.dark-mode .table-overview-card {
  background: rgba(28, 28, 38, 0.85);
  border-color: rgba(255, 255, 255, 0.08);
  color: #F5F5F7;
}

body.dark-mode .table-overview-card:hover {
  background: rgba(36, 36, 48, 0.98);
}

body.dark-mode .btn-card-action {
  background: rgba(42, 42, 56, 0.9);
  border-color: rgba(255, 255, 255, 0.14);
  color: #F5F5F7;
}

body.dark-mode .ultron-brand-drawer {
  background: rgba(22, 22, 30, 0.94);
  border-color: rgba(255, 255, 255, 0.15);
  color: #F5F5F7;
}

body.dark-mode .ultron-brand-link {
  color: #F5F5F7;
}

/* Header Telemetry & Icon Actions */
.telemetry-capsule {
  display: inline-flex;
  align-items: center;
  height: 32px;
  gap: 10px;
  background: var(--glass-pill-bg);
  border: 1px solid var(--glass-border-subtle);
  border-radius: var(--radius-full);
  padding: 0 11px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-text-secondary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02), var(--glass-border-inner);
  position: relative;
  overflow: visible;
  cursor: pointer;
}

/* 좌측 상단 CPU & 메모리 툴팁 (PC 전용 좌측상단 고정 부착) */
.sys-perf-hover-tooltip {
  position: fixed;
  top: max(14px, env(safe-area-inset-top, 14px));
  left: max(16px, env(safe-area-inset-left, 16px));
  transform: translateY(-4px);
  background: rgba(18, 18, 24, 0.94);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-full);
  padding: 5px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #F5F5F7;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35), 0 0 12px rgba(0, 113, 227, 0.2);
  white-space: nowrap;
  pointer-events: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s var(--easing-spring), transform 0.22s var(--easing-spring), visibility 0.22s ease;
  z-index: 100;
}

@media (hover: hover) and (pointer: fine) and (min-width: 1025px) {
  .sys-perf-hover-tooltip:hover,
  .sys-perf-hover-tooltip.force-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

@media (max-width: 1024px), (hover: none), (pointer: coarse) {
  .sys-perf-hover-tooltip {
    display: none !important;
  }
}

.perf-stat-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.perf-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}
.perf-dot.cpu {
  background: var(--color-apple-orange);
  box-shadow: 0 0 5px var(--color-apple-orange);
}
.perf-dot.mem {
  background: var(--color-apple-blue);
  box-shadow: 0 0 5px var(--color-apple-blue);
}

.perf-name {
  color: var(--color-text-tertiary);
  font-weight: 600;
  font-size: 9.5px;
  letter-spacing: 0.04em;
}

.perf-metric {
  color: #FFFFFF;
  font-weight: 700;
}
.perf-metric.green {
  color: var(--color-apple-green);
}

.perf-stat-sep {
  color: rgba(255, 255, 255, 0.16);
  font-size: 10px;
}

.telemetry-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
}

.latency-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-apple-green);
  box-shadow: 0 0 6px var(--color-apple-green);
}

.icon-glass-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--glass-border-subtle);
  background: var(--glass-pill-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-primary);
  cursor: pointer;
  outline: none;
  transition: all 0.24s var(--easing-spring);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03), var(--glass-border-inner);
  position: relative;
}

.icon-glass-btn:hover {
  background: #FFFFFF;
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.09);
  color: var(--color-apple-blue);
}

.icon-glass-btn:active {
  transform: translateY(0) scale(0.96);
}

.icon-glass-btn.active {
  background: var(--color-apple-blue);
  color: #FFFFFF;
  border-color: var(--color-apple-blue);
  box-shadow: 0 4px 14px var(--color-apple-blue-glow);
}

/* Header Stage Stop Pill & Feature Request ("해줘") & Donate Pill Buttons */
#btn-header-stage-stop {
  display: none !important;
}

.header-stage-stop-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 59, 48, 0.55);
  background: linear-gradient(135deg, #FF3B30 0%, #D70015 100%);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  outline: none;
  box-shadow: 0 4px 14px rgba(255, 59, 48, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: all 0.24s var(--easing-spring);
  white-space: nowrap;
}

.header-stage-stop-pill:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 20px rgba(255, 59, 48, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  filter: brightness(1.06);
}

.header-stage-stop-pill:active {
  transform: translateY(0) scale(0.96);
}

.header-stage-stop-pill.hidden {
  display: none !important;
}

.stage-stop-pill-glyph {
  font-size: 13px;
  line-height: 1;
}

.stage-live-floating-bar {
  position: fixed;
  bottom: max(152px, calc(env(safe-area-inset-bottom, 16px) + 136px));
  left: 50%;
  transform: translateX(-50%) translateZ(0);
  background: rgba(20, 20, 26, 0.92);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border: 1px solid rgba(52, 199, 89, 0.45);
  border-radius: var(--radius-full);
  padding: 5px 8px 5px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32), 0 0 18px rgba(52, 199, 89, 0.18);
  z-index: 31;
  transition: opacity 0.25s var(--easing-spring), transform 0.25s var(--easing-spring);
  max-width: calc(100vw - 24px);
  white-space: nowrap;
}

.stage-live-floating-bar.hidden {
  display: none !important;
}

.stage-floating-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #FFFFFF;
  font-size: 12.5px;
  font-weight: 600;
}

.stage-floating-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-apple-green);
  box-shadow: 0 0 8px var(--color-apple-green);
  animation: pulsePing 1.6s infinite ease-out;
  flex-shrink: 0;
}

.stage-floating-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.stage-floating-btn {
  height: 30px;
  padding: 0 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: #F5F5F7;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.stage-floating-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.stage-floating-btn.stop {
  background: linear-gradient(135deg, #FF3B30 0%, #D70015 100%);
  border-color: rgba(255, 255, 255, 0.35);
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(255, 59, 48, 0.45);
}

.stage-floating-btn.stop:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.header-wishtree-pill,
.header-focus-pill,
.header-request-pill,
.header-boost-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 11px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.88);
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  outline: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.22s var(--easing-spring);
  white-space: nowrap;
}

.header-wishtree-pill:hover {
  transform: translateY(-1.5px);
  background: #FFFFFF;
  border-color: rgba(255, 149, 0, 0.45);
  box-shadow: 0 4px 12px rgba(255, 149, 0, 0.18);
}

.wishtree-pill-glyph,
.focus-pill-glyph,
.request-pill-glyph,
.boost-pill-glyph {
  font-size: 13px;
  line-height: 1;
}

.wishtree-pill-count {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 1.5px 5.5px;
  border-radius: var(--radius-full);
  background: rgba(255, 149, 0, 0.16);
  color: #D97706;
  line-height: 1.1;
}

.header-focus-pill:hover {
  transform: translateY(-1.5px);
  background: #FFFFFF;
  border-color: rgba(52, 199, 89, 0.45);
  box-shadow: 0 4px 12px rgba(52, 199, 89, 0.18);
}

.header-focus-pill.running {
  background: linear-gradient(135deg, #34C759 0%, #0071E3 100%);
  border-color: rgba(255, 255, 255, 0.35);
  color: #FFFFFF;
  font-family: var(--font-mono);
  box-shadow: 0 4px 14px rgba(52, 199, 89, 0.35);
}

.header-request-pill:hover {
  transform: translateY(-1.5px);
  background: #FFFFFF;
  border-color: rgba(0, 113, 227, 0.45);
  color: var(--color-apple-blue);
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.16);
}

.header-request-pill:active {
  transform: translateY(0) scale(0.96);
}

.header-boost-pill:hover {
  transform: translateY(-1.5px);
  background: #FFFFFF;
  border-color: rgba(175, 82, 222, 0.45);
  box-shadow: 0 4px 12px rgba(175, 82, 222, 0.18);
}

.boost-ticket-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 1.5px 5.5px;
  border-radius: var(--radius-full);
  background: rgba(175, 82, 222, 0.15);
  color: #8944AB;
  line-height: 1.1;
}

body.dark-mode .header-divider,
body.dark-mode .header-menu-sep {
  background: rgba(255, 255, 255, 0.12);
}

body.dark-mode .header-menu-group {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .header-wishtree-pill,
body.dark-mode .header-focus-pill,
body.dark-mode .header-request-pill,
body.dark-mode .header-boost-pill {
  background: rgba(34, 34, 44, 0.9);
  border-color: rgba(255, 255, 255, 0.1);
  color: #F5F5F7;
}

body.dark-mode .header-wishtree-pill:hover,
body.dark-mode .header-focus-pill:hover,
body.dark-mode .header-request-pill:hover,
body.dark-mode .header-boost-pill:hover {
  background: rgba(48, 48, 62, 0.98);
  color: #FFFFFF;
}

body.dark-mode .wishtree-pill-count {
  background: rgba(255, 179, 0, 0.25);
  color: #FFD166;
}

body.dark-mode .boost-ticket-badge {
  background: rgba(175, 82, 222, 0.32);
  color: #E5C6FF;
}

.header-donate-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 149, 0, 0.45);
  background: linear-gradient(135deg, #FF9500 0%, #FF6B00 100%);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  outline: none;
  box-shadow: 0 2px 10px rgba(255, 149, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: all 0.22s var(--easing-spring);
  white-space: nowrap;
}

.header-donate-pill:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 20px rgba(255, 149, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  filter: brightness(1.05);
}

.header-donate-pill:active {
  transform: translateY(0) scale(0.96);
}

.donate-pill-glyph {
  font-size: 14px;
  line-height: 1;
}

/* Sound Toggle Button */
.sound-toggle-btn {
  gap: 4px;
}

.sound-toggle-btn:not(.active) .speaker-wave {
  display: none;
}

/* Admin Nav Link Button */
.admin-link-btn {
  text-decoration: none;
  color: var(--color-text-primary);
}

.admin-link-btn:hover {
  color: var(--color-apple-blue);
  box-shadow: 0 4px 14px var(--color-apple-blue-glow);
}

/* User Profile Mini Button */
.user-avatar-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  outline: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.avatar-ring {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F2F2F7 0%, #D1D1D6 100%);
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--color-text-primary);
  transition: transform 0.22s var(--easing-spring), box-shadow 0.22s ease;
}

.avatar-ring:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
}

/* 5. Spatial Audio Radar HUD Removed */

/* 5.1 Server Redeployment Auto-Reconnection Floating Banner */
.reconnect-glass-banner {
  position: fixed;
  top: max(76px, calc(env(safe-area-inset-top, 0px) + 76px));
  left: 50%;
  transform: translateX(-50%) translateZ(0);
  background: rgba(28, 28, 32, 0.94);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border: 1px solid rgba(255, 149, 0, 0.35);
  border-radius: var(--radius-full);
  padding: 8px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.32), 0 0 16px rgba(255, 149, 0, 0.25);
  z-index: 45;
  transition: opacity 0.3s var(--easing-spring), transform 0.3s var(--easing-spring);
}

.reconnect-glass-banner.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-12px) translateZ(0);
}

.reconnect-glass-banner.success {
  border-color: rgba(52, 199, 89, 0.45);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.32), 0 0 16px rgba(52, 199, 89, 0.25);
}

.reconnect-pulse-ring {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-apple-orange);
  box-shadow: 0 0 8px var(--color-apple-orange);
  animation: reconnectBlink 1.2s infinite ease-in-out;
}

.reconnect-glass-banner.success .reconnect-pulse-ring {
  background: var(--color-apple-green);
  box-shadow: 0 0 8px var(--color-apple-green);
  animation: none;
}

@keyframes reconnectBlink {
  0%, 100% { opacity: 0.3; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* 6. Dynamic Island Proximity Toast (#seat-interaction-prompt) */
.dynamic-prompt-island {
  position: fixed;
  top: max(80px, calc(env(safe-area-inset-top, 0px) + 80px));
  left: 50%;
  transform: translateX(-50%) translateY(0) scale(1) translateZ(0);
  -webkit-transform: translateX(-50%) translateY(0) scale(1) translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform, opacity;
  background: rgba(22, 22, 26, 0.92);
  backdrop-filter: blur(32px) saturate(210%);
  -webkit-backdrop-filter: blur(32px) saturate(210%);
  color: #F5F5F7;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  padding: 8px 18px 8px 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.32), 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 15;
  transition: opacity 0.35s var(--easing-spring), transform 0.35s var(--easing-spring);
}

.dynamic-prompt-island.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-14px) scale(0.92) translateZ(0);
  -webkit-transform: translateX(-50%) translateY(-14px) scale(0.92) translateZ(0);
}

.prompt-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-apple-green-surface);
  border: 1px solid rgba(52, 199, 89, 0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-apple-green);
  flex-shrink: 0;
}

.prompt-content {
  display: flex;
  flex-direction: column;
}

.prompt-main {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #FFFFFF;
}

.prompt-sub {
  font-size: 11px;
  color: rgba(245, 245, 247, 0.72);
}

.prompt-keycap {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.38);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.25);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  color: #FFFFFF;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

/* 6.5. 6 Major ASMR & Avatar Reactions Floating Bar (#asmr-reaction-bar) */
.asmr-reaction-bar {
  position: fixed;
  bottom: max(96px, calc(env(safe-area-inset-bottom, 16px) + 80px));
  left: 50%;
  transform: translateX(-50%) translateZ(0);
  -webkit-transform: translateX(-50%) translateZ(0);
  max-width: calc(100vw - 20px);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border: 1px solid var(--glass-border-light);
  border-radius: var(--radius-full);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.09), var(--glass-border-inner);
  padding: 4px 8px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  z-index: 21;
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 0.25s var(--easing-spring), box-shadow 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
}

.asmr-reaction-bar.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(16px) scale(0.96) translateZ(0);
  -webkit-transform: translateX(-50%) translateY(16px) scale(0.96) translateZ(0);
}

.asmr-reaction-bar::-webkit-scrollbar {
  display: none;
}

.asmr-reaction-btn {
  position: relative;
  flex: 0 0 auto;
  flex-shrink: 0;
  touch-action: pan-x manipulation;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 11px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.72);
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  outline: none;
  white-space: nowrap;
  transition: all 0.2s var(--easing-spring);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.asmr-reaction-btn:hover {
  background: #FFFFFF;
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
}

.asmr-reaction-btn:active,
.asmr-reaction-btn.triggered {
  transform: translateY(0) scale(0.93);
}

.asmr-reaction-btn.wish:hover,
.asmr-reaction-btn.wish.triggered {
  border-color: rgba(255, 149, 0, 0.5);
  box-shadow: 0 6px 18px rgba(255, 149, 0, 0.25);
}

.asmr-reaction-btn.bow:hover,
.asmr-reaction-btn.bow.triggered {
  border-color: rgba(52, 199, 89, 0.5);
  box-shadow: 0 6px 18px rgba(52, 199, 89, 0.25);
}

.asmr-reaction-btn.keycap:hover,
.asmr-reaction-btn.keycap.triggered {
  border-color: rgba(0, 113, 227, 0.5);
  box-shadow: 0 6px 18px rgba(0, 113, 227, 0.25);
}

.asmr-reaction-btn.greet:hover,
.asmr-reaction-btn.greet.triggered {
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 6px 18px rgba(56, 189, 248, 0.25);
}

.asmr-reaction-btn.singingbowl:hover,
.asmr-reaction-btn.singingbowl.triggered {
  border-color: rgba(175, 82, 222, 0.5);
  box-shadow: 0 6px 18px rgba(175, 82, 222, 0.25);
}

.asmr-reaction-btn.dance:hover,
.asmr-reaction-btn.dance.triggered {
  border-color: rgba(255, 45, 85, 0.55);
  box-shadow: 0 6px 18px rgba(255, 45, 85, 0.25);
}

.asmr-reaction-btn.dance.active {
  background: linear-gradient(135deg, #FF2D55 0%, #AF52DE 100%);
  border-color: rgba(255, 255, 255, 0.55);
  color: #FFFFFF;
  box-shadow: 0 6px 20px rgba(255, 45, 85, 0.45);
}

.asmr-reaction-btn.clap:hover,
.asmr-reaction-btn.clap.triggered {
  border-color: rgba(255, 179, 0, 0.55);
  box-shadow: 0 6px 18px rgba(255, 179, 0, 0.25);
}

.asmr-reaction-btn.clap.active {
  background: linear-gradient(135deg, #FFB300 0%, #FF6B00 100%);
  border-color: rgba(255, 255, 255, 0.55);
  color: #FFFFFF;
  box-shadow: 0 6px 20px rgba(255, 149, 0, 0.45);
}

.asmr-emoji {
  font-size: 15px;
  line-height: 1;
  transition: transform 0.2s var(--easing-spring);
}

.asmr-reaction-btn:hover .asmr-emoji {
  transform: scale(1.18) rotate(-4deg);
}

.asmr-label {
  line-height: 1;
}

.asmr-key {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  color: var(--color-text-secondary);
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 1px 5px;
  border-radius: 4px;
  line-height: 1.1;
}

.asmr-count-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 1.5px 6px;
  border-radius: var(--radius-full);
  background: var(--color-apple-blue);
  color: #FFFFFF;
  line-height: 1.1;
  box-shadow: 0 2px 6px rgba(0, 113, 227, 0.35);
}

.asmr-reaction-btn.bow .asmr-count-badge {
  background: var(--color-apple-green);
  box-shadow: 0 2px 6px rgba(52, 199, 89, 0.35);
}

.asmr-count-badge.hidden {
  display: none !important;
}

/* Spatial 3D Floating ASMR Reaction Badge (Above Avatar Head) */
.spatial-asmr-badge {
  position: absolute;
  transform: translate(-50%, -100%);
  background: rgba(20, 20, 28, 0.9);
  backdrop-filter: blur(18px) saturate(190%);
  -webkit-backdrop-filter: blur(18px) saturate(190%);
  border: 1.5px solid var(--asmr-accent, #0071E3);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35), 0 0 16px var(--asmr-glow, rgba(0, 113, 227, 0.35));
  z-index: 9;
  animation: asmrBadgeFloat 0.32s var(--easing-spring) forwards;
}

@keyframes asmrBadgeFloat {
  0% {
    opacity: 0;
    transform: translate(-50%, -65%) scale(0.75);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -115%) scale(1);
  }
}

.spatial-asmr-badge .asmr-badge-emoji {
  font-size: 15px;
  line-height: 1;
}

.spatial-asmr-badge .asmr-badge-user {
  color: var(--asmr-accent, #79C0FF);
  font-size: 11px;
}

body.dark-mode .asmr-reaction-bar {
  background: rgba(22, 22, 30, 0.9);
  border-color: rgba(255, 255, 255, 0.14);
}

body.dark-mode .asmr-reaction-btn {
  background: rgba(36, 36, 48, 0.88);
  border-color: rgba(255, 255, 255, 0.1);
  color: #F5F5F7;
}

body.dark-mode .asmr-reaction-btn:hover {
  background: rgba(52, 52, 68, 0.98);
  color: #FFFFFF;
}

body.dark-mode .asmr-reaction-btn.dance.active {
  background: linear-gradient(135deg, #FF2D55 0%, #AF52DE 100%);
  border-color: rgba(255, 255, 255, 0.45);
  color: #FFFFFF;
}

body.dark-mode .asmr-reaction-btn.clap.active {
  background: linear-gradient(135deg, #FFB300 0%, #FF6B00 100%);
  border-color: rgba(255, 255, 255, 0.45);
  color: #FFFFFF;
}

body.dark-mode .asmr-key {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
  color: #A1A1A6;
}

/* 7. Bottom macOS Floating Dock Bar (#dock-container) */
.dock-wrapper {
  position: fixed;
  bottom: max(16px, env(safe-area-inset-bottom, 16px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 35;
}

.glass-dock {
  background: var(--glass-dock-bg);
  backdrop-filter: blur(32px) saturate(210%);
  -webkit-backdrop-filter: blur(32px) saturate(210%);
  border: 1px solid var(--glass-border-light);
  border-radius: 24px;
  box-shadow: var(--glass-shadow-float), var(--glass-border-inner);
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  position: relative;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
}

.dock-item {
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: var(--radius-lg);
  cursor: pointer;
  color: var(--color-text-primary);
  transition: all 0.24s var(--easing-spring);
  position: relative;
  outline: none;
  min-height: 48px;
  min-width: 48px;
}

.dock-item:hover {
  background: rgba(255, 255, 255, 0.88);
  transform: translateY(-6px) scale(1.12);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}

.dock-item:active {
  transform: translateY(-1px) scale(0.96);
}

/* Custom Sleek Dock Tooltips (Hover-only pointer defense) */
@media (hover: hover) and (pointer: fine) {
  .dock-item[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    background: rgba(20, 20, 24, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 500;
    padding: 5px 11px;
    border-radius: var(--radius-md);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: all 0.2s var(--easing-spring);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.12);
    z-index: 35;
  }

  .dock-item[data-tooltip]:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@media (hover: none) or (pointer: coarse) {
  .dock-item[data-tooltip]::before {
    display: none !important;
  }
}

/* 바이브 코드 에디터 버튼 상시 표시 */
#dock-btn-editor {
  display: flex;
}

.dock-item-highlight {
  background: var(--color-apple-blue-surface);
}

.dock-item-highlight:hover {
  background: rgba(0, 113, 227, 0.16);
}

.dock-item-donate {
  background: rgba(255, 149, 0, 0.12);
  border: 1px solid rgba(255, 149, 0, 0.28);
  color: #E67E00;
}

.dock-item-donate .dock-svg {
  color: #FF9500;
  fill: rgba(255, 149, 0, 0.22);
}

.dock-item-donate .dock-label {
  color: #D97706;
  font-weight: 700;
}

.dock-item-donate:hover {
  background: rgba(255, 149, 0, 0.22);
  border-color: rgba(255, 149, 0, 0.5);
  box-shadow: 0 10px 22px rgba(255, 149, 0, 0.22);
}

.dock-indicator.donate-pulse {
  background: var(--color-apple-orange);
  box-shadow: 0 0 8px var(--color-apple-orange-glow);
}

.dock-icon-box {
  position: relative;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dock-svg {
  transition: transform 0.2s ease;
}

.dock-item:hover .dock-svg {
  transform: scale(1.06);
}

.dock-label {
  font-size: 10px;
  font-weight: 500;
  margin-top: 3px;
  color: var(--color-text-secondary);
  transition: color 0.2s ease;
  white-space: nowrap;
}

.dock-item:hover .dock-label {
  color: var(--color-text-primary);
  font-weight: 600;
}

.dock-separator {
  width: 1px;
  height: 28px;
  background: var(--glass-border-subtle);
  margin: 0 4px;
}

.dock-indicator {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-apple-green);
  box-shadow: 0 0 6px var(--color-apple-green);
}

.dock-indicator.off {
  background: var(--color-text-tertiary);
  box-shadow: none;
}

.dock-indicator.coding-pulse {
  background: var(--color-apple-blue);
  box-shadow: 0 0 8px var(--color-apple-blue-glow);
  animation: codePulseAnim 1.6s infinite ease-in-out;
}

@keyframes codePulseAnim {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.35); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

.dock-indicator.voice-active {
  background: var(--color-apple-green);
  box-shadow: 0 0 10px var(--color-apple-green-glow);
  animation: voiceMicPulse 0.8s infinite ease-in-out;
}

@keyframes voiceMicPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.6); opacity: 1; box-shadow: 0 0 14px var(--color-apple-green); }
}

/* 3D Spatial Avatar Voice Ripples */
.spatial-voice-ring {
  position: absolute;
  pointer-events: none;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--color-apple-green);
  box-shadow: 0 0 12px var(--color-apple-green-glow);
  animation: voiceRingExpand 1.2s infinite cubic-bezier(0.1, 0.7, 0.1, 1);
  z-index: 4;
}

@keyframes voiceRingExpand {
  0% { transform: translate(-50%, -50%) scale(0.4); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(2.2); opacity: 0; }
}

/* 8. 6-Person Collaborative Vibe Code Editor Sliding Drawer */
.vibe-panel-container {
  position: fixed;
  top: calc(max(14px, env(safe-area-inset-top, 14px)) + var(--header-height) + 10px);
  right: max(16px, env(safe-area-inset-right, 16px));
  bottom: calc(max(16px, env(safe-area-inset-bottom, 16px)) + var(--dock-height) + 12px);
  width: var(--panel-width);
  max-width: calc(100vw - 32px);
  z-index: 25;
  opacity: 1;
  visibility: visible;
  transition: transform 0.4s var(--easing-spring), width 0.35s var(--easing-spring), opacity 0.25s ease, visibility 0.25s ease;
  transform: translateX(0);
}

.vibe-panel-container.closed {
  transform: translateX(calc(100% + 40px));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.vibe-panel-container.expanded {
  width: calc(100vw - 32px);
  max-width: 1600px;
}

.vibe-panel-inner {
  width: 100%;
  height: 100%;
  background: var(--dark-glass-bg);
  backdrop-filter: blur(36px) saturate(210%);
  -webkit-backdrop-filter: blur(36px) saturate(210%);
  border: 1px solid var(--dark-glass-border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--dark-glass-shadow), inset 0 1px 0 var(--dark-glass-border-highlight);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #F5F5F7;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
}

/* Editor Header with macOS 3 Control Circles */
.editor-header {
  height: 52px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--dark-glass-border);
  background: rgba(16, 16, 20, 0.76);
  flex-shrink: 0;
}

.editor-window-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mac-circle {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  position: relative;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.16s ease, filter 0.16s ease;
}

.mac-circle:hover {
  transform: scale(1.1);
  filter: brightness(1.15);
}

.mac-circle.close {
  background: #FF5F56;
  border: 0.5px solid rgba(224, 68, 62, 0.6);
}

.mac-circle.minimize {
  background: #FFBD2E;
  border: 0.5px solid rgba(222, 161, 35, 0.6);
}

.mac-circle.maximize {
  background: #27C93F;
  border: 0.5px solid rgba(26, 171, 41, 0.6);
}

.mac-circle::after {
  content: '';
  opacity: 0;
  transition: opacity 0.15s ease;
  color: rgba(0, 0, 0, 0.75);
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
}

.mac-circle:hover::after {
  opacity: 1;
}

.mac-circle.close::after { content: '✕'; font-size: 7px; }
.mac-circle.minimize::after { content: '−'; font-size: 9px; }
.mac-circle.maximize::after { content: '+'; font-size: 9px; }

.table-identity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.table-serial-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.table-name-tag {
  font-size: 13.5px;
  font-weight: 600;
  color: #F5F5F7;
  letter-spacing: -0.015em;
}

.table-mode-badge {
  font-size: 11px;
  color: var(--color-apple-blue);
  background: var(--color-apple-blue-surface);
  border: 1px solid rgba(0, 113, 227, 0.35);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.editor-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vibe-tempo-box {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--dark-glass-border);
  border-radius: var(--radius-full);
  padding: 4px 11px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-apple-orange);
}

.tempo-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-apple-orange);
  box-shadow: 0 0 6px var(--color-apple-orange);
  animation: tempoPulse 0.77s infinite ease-in-out;
}

@keyframes tempoPulse {
  0% { transform: scale(0.9); opacity: 0.5; }
  50% { transform: scale(1.4); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.5; }
}

.primary-glass-action {
  border: 1px solid rgba(0, 113, 227, 0.5);
  background: var(--color-apple-blue);
  color: #FFFFFF;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  outline: none;
  transition: all 0.2s var(--easing-spring);
  box-shadow: 0 4px 12px var(--color-apple-blue-glow);
}

.primary-glass-action:hover {
  background: var(--color-apple-blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px var(--color-apple-blue-glow);
}

.primary-glass-action:active {
  transform: translateY(0);
}

/* 9. 6-Seat Collaborative Ribbon Bar */
.seats-ribbon-bar {
  padding: 10px 18px;
  border-bottom: 1px solid var(--dark-glass-border);
  background: rgba(22, 22, 26, 0.58);
  backdrop-filter: blur(14px);
  flex-shrink: 0;
}

.ribbon-label {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}

.seat-ratio {
  font-family: var(--font-mono);
  color: var(--color-apple-blue);
}

.seats-grid-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.seat-capsule {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  padding: 6px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  transition: all 0.25s var(--easing-spring);
  overflow: hidden;
}

.seat-capsule.occupied {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.seat-capsule.empty {
  opacity: 0.5;
  cursor: pointer;
  border: 1px dashed rgba(255, 255, 255, 0.22);
}

.seat-capsule.empty:hover {
  opacity: 1;
  background: rgba(0, 113, 227, 0.14);
  border-color: var(--color-apple-blue);
  border-style: solid;
  transform: translateY(-1px);
}

.seat-capsule.current-user {
  border-color: var(--color-apple-blue);
  background: rgba(0, 113, 227, 0.18);
  box-shadow: 0 0 16px rgba(0, 113, 227, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.seat-badge-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-color, #8E8E93);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.seat-badge-avatar.empty-avatar {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-text-secondary);
}

.seat-meta {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.seat-user-name {
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #FFFFFF;
}

.seat-state {
  font-size: 9.5px;
  color: var(--color-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.seat-state.typing {
  color: var(--color-apple-green);
  font-weight: 500;
}

.seat-ping-ring {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-apple-green);
}

.seat-ping-ring::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid var(--color-apple-green);
  animation: pingRing 1.8s infinite cubic-bezier(0, 0.2, 0.8, 1);
}

@keyframes pingRing {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2.6); opacity: 0; }
}

/* 10. Code Editor Workspace Main Grid */
.editor-workspace-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: max-height 0.35s var(--easing-spring), opacity 0.25s ease;
  max-height: 2000px;
  opacity: 1;
}

.editor-workspace-body.minimized {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  padding: 0;
}

/* File Tab Strip */
.code-tab-strip {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px 14px 0 14px;
  border-bottom: 1px solid var(--dark-glass-border);
  background: rgba(16, 16, 20, 0.65);
  flex-shrink: 0;
}

.tab-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--color-text-secondary);
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  background: transparent;
  border: none;
  outline: none;
}

.tab-item:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.05);
}

.tab-item.active {
  color: #FFFFFF;
  background: rgba(32, 32, 38, 0.88);
  font-weight: 500;
}

.tab-item.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-apple-blue);
  box-shadow: 0 0 6px var(--color-apple-blue);
}

.file-icon {
  font-size: 11px;
}
.file-icon.wat-icon { color: var(--color-apple-orange); }
.file-icon.js-icon { color: #F7DF1E; font-weight: 700; font-size: 10px; }
.file-icon.glsl-icon { color: #5586A4; }

/* Code Core Area & Viewport */
.code-core-area {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 280px;
  overflow: hidden;
  background: rgba(18, 18, 22, 0.72);
}

.code-editor-viewport {
  position: relative;
  display: flex;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.65;
  padding: 16px 0;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* Custom Sleek Dark & Light Scrollbars */
.code-editor-viewport::-webkit-scrollbar,
.editor-sidebar::-webkit-scrollbar,
.vibe-feed-list::-webkit-scrollbar,
.modal-card-glass::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.code-editor-viewport::-webkit-scrollbar-track,
.editor-sidebar::-webkit-scrollbar-track,
.vibe-feed-list::-webkit-scrollbar-track,
.modal-card-glass::-webkit-scrollbar-track {
  background: transparent;
}

.code-editor-viewport::-webkit-scrollbar-thumb,
.editor-sidebar::-webkit-scrollbar-thumb,
.vibe-feed-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
}

.code-editor-viewport::-webkit-scrollbar-thumb:hover,
.editor-sidebar::-webkit-scrollbar-thumb:hover,
.vibe-feed-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.38);
}

.modal-card-glass::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.16);
  border-radius: var(--radius-full);
}

.modal-card-glass::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.28);
}

.line-numbers {
  display: flex;
  flex-direction: column;
  padding: 0 14px 0 18px;
  color: rgba(255, 255, 255, 0.26);
  text-align: right;
  user-select: none;
  font-size: 12px;
}

.code-content {
  flex: 1;
  padding-right: 24px;
  outline: none;
  color: #E5E5EA;
  white-space: pre;
  caret-color: var(--color-apple-blue);
}

.code-line {
  min-height: 1.65em;
  white-space: pre;
}

/* Syntax Highlighting Tokens */
.token-keyword { color: #FF7B72; font-weight: 600; }
.token-comment { color: #8B949E; font-style: italic; }
.token-literal { color: #79C0FF; }
.token-variable { color: #FFA657; }
.token-type { color: #D2A8FF; font-weight: 500; }
.token-instruction { color: #7EE787; font-weight: 600; }
.token-string { color: #A5D6FF; }

/* Remote Collaborative Multi-Cursors */
.collab-cursor {
  position: absolute;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  z-index: 5;
  transition: top 0.12s var(--easing-spring), left 0.12s var(--easing-spring);
}

.cursor-caret {
  width: 2px;
  height: 20px;
  background: var(--user-color, #34C759);
  box-shadow: 0 0 6px var(--user-color, #34C759);
  animation: caretBlink 1.1s infinite ease-in-out;
}

@keyframes caretBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.cursor-nametag {
  background: var(--user-color, #34C759);
  color: #FFFFFF;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  margin-top: 2px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

/* 11. Editor Sidebar: Live Vibe Stream & WASM Telemetry */
.editor-sidebar {
  border-left: 1px solid var(--dark-glass-border);
  background: rgba(16, 16, 20, 0.88);
  display: flex;
  flex-direction: column;
  padding: 14px;
  overflow-y: auto;
  gap: 16px;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.sidebar-section-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-text-secondary);
}

.sec-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.sec-dot.green { background: var(--color-apple-green); box-shadow: 0 0 6px var(--color-apple-green); }
.sec-dot.blue { background: var(--color-apple-blue); box-shadow: 0 0 6px var(--color-apple-blue); }

.vibe-feed-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.feed-item {
  font-size: 11px;
  line-height: 1.45;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 7px 9px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: feedFadeIn 0.35s var(--easing-spring) forwards;
}

@keyframes feedFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.feed-time {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--color-text-tertiary);
}

.feed-author {
  font-weight: 700;
}

.feed-msg {
  color: rgba(255, 255, 255, 0.88);
  word-break: break-all;
}

.wasm-bench-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.bench-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--color-text-secondary);
}

.bench-val {
  font-family: var(--font-mono);
  font-weight: 600;
  color: #FFFFFF;
}

.bench-val.text-accent {
  color: var(--color-apple-blue);
  text-shadow: 0 0 8px var(--color-apple-blue-glow);
}

.bench-val.text-green {
  color: var(--color-apple-green);
  text-shadow: 0 0 8px var(--color-apple-green-glow);
}

/* 12. Editor Bottom Control Ribbon */
.editor-bottom-bar {
  height: 40px;
  padding: 0 16px;
  border-top: 1px solid var(--dark-glass-border);
  background: rgba(16, 16, 20, 0.9);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.bottom-bar-left, .bottom-bar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-indicator-pill {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--color-text-secondary);
}

.subtle-glass-btn {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  transition: all 0.2s var(--easing-spring);
}

.subtle-glass-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.subtle-glass-btn.primary {
  background: rgba(52, 199, 89, 0.18);
  border-color: rgba(52, 199, 89, 0.45);
  color: var(--color-apple-green);
}

.subtle-glass-btn.primary:hover {
  background: rgba(52, 199, 89, 0.3);
  box-shadow: 0 0 12px rgba(52, 199, 89, 0.35);
}

/* 12.5. Left Side Spatial Chat History Panel */
.chat-history-glass {
  position: fixed;
  top: max(74px, calc(env(safe-area-inset-top, 0px) + 74px));
  left: max(16px, env(safe-area-inset-left, 16px));
  width: 310px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 180px);
  background: var(--glass-header-bg);
  backdrop-filter: blur(30px) saturate(200%);
  -webkit-backdrop-filter: blur(30px) saturate(200%);
  border: 1px solid var(--glass-border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--glass-shadow-ambient), var(--glass-border-inner);
  display: flex;
  flex-direction: column;
  z-index: 24;
  transition: transform 0.32s var(--easing-spring), left 0.32s var(--easing-spring), width 0.32s var(--easing-spring), opacity 0.25s ease;
  overflow: hidden;
  user-select: text;
  -webkit-user-select: text;
}

.chat-history-glass.collapsed {
  left: 0;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  transform: translateX(calc(-100% + 44px));
  opacity: 0.95;
  cursor: pointer;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.25);
}

.chat-history-glass.collapsed:hover {
  opacity: 1;
  transform: translateX(calc(-100% + 48px));
}

.chat-history-glass.collapsed .chat-header-title,
.chat-history-glass.collapsed .chat-filter-tab-bar,
.chat-history-glass.collapsed .chat-messages-scroll {
  display: none !important;
}

.chat-history-glass.collapsed .chat-header-title-row {
  justify-content: flex-end;
  padding: 0;
}

.chat-history-glass.collapsed .chat-history-header {
  padding: 8px 6px;
  cursor: pointer;
}

.chat-history-glass.collapsed .chat-panel-toggle-btn {
  pointer-events: auto;
  margin: 0;
}

.chat-history-glass.collapsed .chat-panel-toggle-btn svg {
  transform: rotate(180deg);
}

.chat-history-header {
  padding: 12px 14px 10px 14px;
  border-bottom: 1px solid var(--glass-border-subtle);
  background: rgba(255, 255, 255, 0.45);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  user-select: none;
  -webkit-user-select: none;
}

.chat-header-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
}

.chat-title-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-apple-blue);
  box-shadow: 0 0 6px var(--color-apple-blue-glow);
}

.chat-panel-toggle-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--glass-border-subtle);
  background: rgba(0, 0, 0, 0.04);
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
}

.chat-panel-toggle-btn:hover {
  background: rgba(0, 0, 0, 0.08);
  color: var(--color-text-primary);
  transform: scale(1.08);
}

.chat-panel-toggle-btn svg {
  transition: transform 0.25s var(--easing-spring);
}

/* Chat Filter Segmented Control */
.chat-filter-tab-bar {
  display: flex;
  background: rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-full);
  padding: 2.5px;
  gap: 3px;
}

.chat-filter-pill {
  flex: 1;
  border: none;
  background: transparent;
  padding: 5px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-secondary);
  cursor: pointer;
  outline: none;
  transition: all 0.2s var(--easing-spring);
  text-align: center;
  white-space: nowrap;
}

.chat-filter-pill:hover {
  color: var(--color-text-primary);
}

.chat-filter-pill.active {
  background: #FFFFFF;
  color: var(--color-apple-blue);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Chat Messages Scroll List */
.chat-messages-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.chat-empty-notice {
  text-align: center;
  font-size: 11.5px;
  color: var(--color-text-tertiary);
  padding: 24px 8px;
  line-height: 1.5;
}

.chat-history-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 12px;
  animation: chatFadeIn 0.22s var(--easing-spring);
}

@keyframes chatFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-history-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-author-name {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--color-text-primary);
}

.chat-author-name.is-self {
  color: var(--color-apple-blue);
}

.chat-table-badge {
  font-size: 9px;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 1.5px 5px;
  border-radius: 4px;
  background: rgba(0, 113, 227, 0.08);
  color: var(--color-apple-blue);
  border: 1px solid rgba(0, 113, 227, 0.15);
}

.chat-timestamp {
  font-size: 9.5px;
  color: var(--color-text-tertiary);
  font-family: var(--font-mono);
  margin-left: auto;
}

.chat-body-text {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 10px;
  padding: 7px 10px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--color-text-primary);
  word-break: break-word;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.chat-history-item.is-self .chat-body-text {
  background: rgba(0, 113, 227, 0.06);
  border-color: rgba(0, 113, 227, 0.15);
}

/* 12.6. Right Side Focus Timer & White Noise ASMR Mixer Panel (#focus-mixer-panel) */
.focus-mixer-glass {
  position: fixed;
  top: max(74px, calc(env(safe-area-inset-top, 0px) + 74px));
  right: max(16px, env(safe-area-inset-right, 16px));
  width: 310px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 180px);
  background: var(--glass-header-bg);
  backdrop-filter: blur(30px) saturate(200%);
  -webkit-backdrop-filter: blur(30px) saturate(200%);
  border: 1px solid var(--glass-border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--glass-shadow-ambient), var(--glass-border-inner);
  display: flex;
  flex-direction: column;
  z-index: 24;
  transition: transform 0.32s var(--easing-spring), right 0.32s var(--easing-spring), opacity 0.25s ease;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

.focus-mixer-glass.collapsed {
  right: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  transform: translateX(calc(100% - 44px));
  opacity: 0.95;
  cursor: pointer;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.25);
}

.focus-mixer-glass.collapsed:hover {
  opacity: 1;
  transform: translateX(calc(100% - 48px));
}

.focus-mixer-glass.collapsed .focus-mixer-body {
  display: none !important;
}

.focus-mixer-glass.collapsed .focus-header-title {
  display: none !important;
}

.focus-mixer-glass.collapsed .focus-header-title-row {
  justify-content: flex-start;
  padding: 0;
}

.focus-mixer-glass.collapsed .focus-mixer-header {
  padding: 8px 6px;
  cursor: pointer;
}

.focus-mixer-glass.collapsed #btn-toggle-focus-panel {
  pointer-events: auto;
  margin: 0;
}

.focus-mixer-glass.collapsed #btn-toggle-focus-panel svg {
  transform: rotate(180deg);
}

.focus-mixer-header {
  padding: 11px 14px;
  border-bottom: 1px solid var(--glass-border-subtle);
  background: rgba(255, 255, 255, 0.45);
  flex-shrink: 0;
}

.focus-header-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.focus-header-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
  transition: opacity 0.2s ease;
}

.focus-title-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-text-tertiary);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.focus-title-dot.active {
  background: var(--color-apple-green);
  box-shadow: 0 0 8px var(--color-apple-green);
  animation: pulsePing 1.8s infinite ease-out;
}

.focus-live-badge {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.06);
  color: var(--color-text-secondary);
}

.focus-live-badge.running {
  background: rgba(52, 199, 89, 0.16);
  color: #248A3D;
  border: 1px solid rgba(52, 199, 89, 0.35);
}

.focus-mixer-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.focus-timer-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.focus-timer-display-box {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--glass-border-subtle);
  border-radius: var(--radius-lg);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.focus-timer-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.focus-mode-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--color-apple-blue);
  letter-spacing: 0.03em;
}

.focus-stats-pill {
  font-size: 10px;
  font-weight: 600;
  color: var(--color-text-secondary);
  background: rgba(0, 0, 0, 0.045);
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.focus-timer-digits {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-text-primary);
  text-align: center;
  line-height: 1.15;
  margin: 2px 0;
}

.focus-progress-track {
  width: 100%;
  height: 5px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.07);
  overflow: hidden;
}

.focus-progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, #0071E3 0%, #34C759 100%);
  transition: width 0.4s ease;
}

.focus-preset-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.focus-preset-chip {
  padding: 5px 4px;
  border-radius: 8px;
  border: 1px solid var(--glass-border-subtle);
  background: rgba(255, 255, 255, 0.65);
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.focus-preset-chip:hover {
  background: #FFFFFF;
  color: var(--color-text-primary);
}

.focus-preset-chip.active {
  background: var(--color-apple-blue);
  border-color: var(--color-apple-blue);
  color: #FFFFFF;
  box-shadow: 0 2px 8px var(--color-apple-blue-glow);
}

.focus-task-row {
  display: flex;
}

.focus-task-input {
  width: 100%;
  height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--glass-border-subtle);
  background: rgba(255, 255, 255, 0.8);
  font-family: var(--font-sans);
  font-size: 11.5px;
  color: var(--color-text-primary);
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
  user-select: text;
  -webkit-user-select: text;
}

.focus-task-input:focus {
  border-color: var(--color-apple-blue);
  background: #FFFFFF;
}

.focus-controls-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
}

.focus-ctrl-btn {
  height: 34px;
  padding: 0 12px;
  border-radius: 9px;
  border: 1px solid var(--glass-border-subtle);
  background: rgba(255, 255, 255, 0.8);
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s var(--easing-spring);
}

.focus-ctrl-btn:hover {
  background: #FFFFFF;
  transform: translateY(-1px);
}

.focus-ctrl-btn.primary {
  background: var(--color-apple-blue);
  border-color: var(--color-apple-blue);
  color: #FFFFFF;
  box-shadow: 0 4px 12px var(--color-apple-blue-glow);
}

.focus-ctrl-btn.primary.running {
  background: var(--color-apple-orange);
  border-color: var(--color-apple-orange);
  box-shadow: 0 4px 12px var(--color-apple-orange-glow);
}

.focus-mixer-divider {
  height: 1px;
  background: var(--glass-border-subtle);
  margin: 2px 0;
}

.white-noise-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mixer-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mixer-section-title {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--color-text-primary);
}

.mixer-active-count {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--color-apple-green);
}

.mixer-quick-presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.mixer-preset-btn {
  padding: 5px 3px;
  border-radius: 7px;
  border: 1px solid var(--glass-border-subtle);
  background: rgba(255, 255, 255, 0.65);
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.mixer-preset-btn:hover,
.mixer-preset-btn.active {
  background: rgba(52, 199, 89, 0.14);
  border-color: rgba(52, 199, 89, 0.45);
  color: #248A3D;
}

.mixer-tracks-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mixer-track-item {
  display: grid;
  grid-template-columns: 104px 1fr 34px;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.mixer-track-item.playing {
  background: rgba(0, 113, 227, 0.08);
  border-color: rgba(0, 113, 227, 0.28);
}

.mixer-track-toggle {
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-primary);
  cursor: pointer;
  text-align: left;
  padding: 0;
  white-space: nowrap;
}

.track-emoji {
  font-size: 13.5px;
  line-height: 1;
}

.mixer-volume-slider {
  width: 100%;
  height: 4px;
  accent-color: var(--color-apple-blue);
  cursor: pointer;
}

.mixer-vol-val {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-align: right;
}

body.dark-mode .header-focus-pill {
  background: rgba(32, 32, 42, 0.88);
  border-color: rgba(52, 199, 89, 0.35);
  color: #F5F5F7;
}

body.dark-mode .header-focus-pill.running {
  background: linear-gradient(135deg, #30B753 0%, #0071E3 100%);
  color: #FFFFFF;
}

body.dark-mode .focus-mixer-glass {
  background: rgba(20, 20, 26, 0.92);
  border-color: rgba(255, 255, 255, 0.12);
  color: #F5F5F7;
}

body.dark-mode .focus-mixer-header {
  background: rgba(28, 28, 38, 0.82);
  border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .focus-timer-display-box {
  background: rgba(28, 28, 38, 0.9);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

body.dark-mode .focus-stats-pill {
  background: rgba(255, 255, 255, 0.08);
  color: #A1A1A6;
}

body.dark-mode .focus-progress-track {
  background: rgba(255, 255, 255, 0.12);
}

body.dark-mode .focus-preset-chip,
body.dark-mode .mixer-preset-btn,
body.dark-mode .focus-ctrl-btn {
  background: rgba(36, 36, 48, 0.85);
  border-color: rgba(255, 255, 255, 0.1);
  color: #E5E5EA;
}

body.dark-mode .focus-preset-chip.active,
body.dark-mode .focus-ctrl-btn.primary {
  background: var(--color-apple-blue);
  border-color: var(--color-apple-blue);
  color: #FFFFFF;
}

body.dark-mode .focus-ctrl-btn.primary.running {
  background: var(--color-apple-orange);
  border-color: var(--color-apple-orange);
}

body.dark-mode .mixer-preset-btn:hover,
body.dark-mode .mixer-preset-btn.active {
  background: rgba(52, 199, 89, 0.22);
  border-color: rgba(52, 199, 89, 0.5);
  color: #34C759;
}

body.dark-mode .focus-task-input {
  background: rgba(14, 14, 20, 0.9);
  border-color: rgba(255, 255, 255, 0.12);
  color: #F5F5F7;
}

body.dark-mode .mixer-track-item {
  background: rgba(30, 30, 40, 0.82);
  border-color: rgba(255, 255, 255, 0.06);
}

body.dark-mode .mixer-track-item.playing {
  background: rgba(0, 113, 227, 0.18);
  border-color: rgba(0, 113, 227, 0.4);
}

/* 13. Spatial 3D Chat Input Bar (#spatial-chat-bar) */
#stage-live-floating-bar:not(.hidden) ~ #spatial-chat-bar {
  bottom: max(210px, calc(env(safe-area-inset-bottom, 16px) + 194px));
}

.spatial-chat-container {
  position: fixed;
  bottom: max(152px, calc(env(safe-area-inset-bottom, 16px) + 136px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 32;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.22s var(--easing-spring), transform 0.22s var(--easing-spring);
}

.spatial-chat-container.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(14px);
}

.chat-glass-pill {
  background: var(--glass-dock-bg);
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  border: 1px solid var(--glass-border-light);
  border-radius: var(--radius-full);
  box-shadow: var(--glass-shadow-float), var(--glass-border-inner);
  display: flex;
  align-items: center;
  padding: 6px 8px 6px 14px;
  gap: 10px;
  width: 520px;
  max-width: calc(100vw - 40px);
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
}

.chat-scope-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-apple-blue);
  background: var(--color-apple-blue-surface);
  border: 1px solid rgba(0, 113, 227, 0.2);
  padding: 3px 9px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

#chat-input-field {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: var(--color-text-primary);
  caret-color: var(--color-apple-blue);
  user-select: text;
  -webkit-user-select: text;
  pointer-events: auto;
}

#chat-input-field::placeholder {
  color: var(--color-text-tertiary);
}

.chat-send-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--color-apple-blue);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  transition: all 0.2s var(--easing-spring);
  box-shadow: 0 2px 8px var(--color-apple-blue-glow);
}

.chat-send-btn:hover {
  background: var(--color-apple-blue-hover);
  transform: scale(1.08);
}

.chat-send-btn:active {
  transform: scale(0.95);
}

/* 14. 3D Spatial Speech Bubbles (.spatial-bubble-pill) */
.spatial-bubble-pill {
  position: absolute;
  transform: translate(-50%, -100%);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14), 0 2px 6px rgba(0, 0, 0, 0.06);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  pointer-events: none;
  transition: opacity 0.3s var(--easing-spring);
  white-space: nowrap;
  animation: bubblePop 0.35s var(--easing-spring) forwards;
  z-index: 10;
}

/* 내 아바타 및 초기 진입 안내 말풍선 최우선 상위 노출 레이어 */
.spatial-bubble-pill.is-self {
  z-index: 50 !important;
  background: rgba(255, 255, 255, 0.98);
  border: 1.5px solid rgba(0, 113, 227, 0.55);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22), 0 0 18px rgba(0, 113, 227, 0.24);
}

.spatial-bubble-pill.is-self .bubble-author {
  color: var(--color-apple-blue);
  font-weight: 800;
}

.spatial-bubble-pill.is-self .bubble-tail {
  border-top-color: rgba(255, 255, 255, 0.98);
}

body.dark-mode .spatial-bubble-pill.is-self {
  background: rgba(22, 26, 38, 0.98);
  border-color: rgba(121, 192, 255, 0.65);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.48), 0 0 22px rgba(0, 113, 227, 0.36);
}

body.dark-mode .spatial-bubble-pill.is-self .bubble-tail {
  border-top-color: rgba(22, 26, 38, 0.98);
}

@keyframes bubblePop {
  0% { transform: translate(-50%, -85%) scale(0.85); opacity: 0; }
  100% { transform: translate(-50%, -100%) scale(1); opacity: 1; }
}

.bubble-avatar-dot {
  display: none !important;
}

.bubble-text-wrap {
  display: flex;
  flex-direction: column;
}

.bubble-author {
  font-size: 10px;
  font-weight: 700;
  color: var(--color-apple-blue);
  line-height: 1.2;
}

.bubble-message {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--color-text-primary);
  max-width: 280px;
  white-space: normal;
  line-height: 1.35;
  word-break: break-word;
}

.bubble-tail {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid rgba(255, 255, 255, 0.94);
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.08));
}

/* 15. 3D Spatial Table Seat Beacon */
.seat-spatial-beacon {
  position: absolute;
  pointer-events: auto;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  z-index: 10;
  user-select: none;
  -webkit-user-select: none;
}

/* 모바일 터치 타깃 영역 확장 (최소 54px x 54px) */
.seat-spatial-beacon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: transparent;
  z-index: -1;
}

.beacon-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2.5px solid rgba(52, 199, 89, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-apple-green-surface);
  box-shadow: 0 0 16px rgba(52, 199, 89, 0.55);
  animation: beaconPulse 2s infinite ease-in-out;
  transition: transform 0.15s ease;
}

.seat-spatial-beacon:active .beacon-circle {
  transform: scale(0.9);
}

@keyframes beaconPulse {
  0% { transform: scale(0.9); box-shadow: 0 0 8px rgba(52, 199, 89, 0.3); }
  50% { transform: scale(1.25); box-shadow: 0 0 20px rgba(52, 199, 89, 0.7); }
  100% { transform: scale(0.9); box-shadow: 0 0 8px rgba(52, 199, 89, 0.3); }
}

.beacon-inner-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-apple-green);
  box-shadow: 0 0 8px var(--color-apple-green);
}

.beacon-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  color: var(--color-apple-green);
  letter-spacing: 0.06em;
  background: rgba(18, 18, 22, 0.82);
  padding: 2px 7px;
  border-radius: 4px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(52, 199, 89, 0.35);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* 16. Modals & Dialog System */
.modal-backdrop {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  padding: max(16px, env(safe-area-inset-top, 16px)) 12px max(16px, env(safe-area-inset-bottom, 16px));
  z-index: 50;
  transition: opacity 0.3s var(--easing-spring);
}

@media (max-width: 768px) {
  .modal-backdrop {
    align-items: flex-start;
    justify-content: center;
    padding: max(12px, env(safe-area-inset-top, 12px)) 10px max(50px, env(safe-area-inset-bottom, 50px));
  }
}

.modal-backdrop.hidden {
  opacity: 0;
  pointer-events: none;
}

/* System Maintenance & Capacity Limit Fullscreen Notice Overlay */
.system-block-backdrop {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: radial-gradient(circle at 50% 25%, rgba(28, 28, 36, 0.94) 0%, rgba(12, 12, 16, 0.98) 100%);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
  transition: opacity 0.3s var(--easing-spring);
}

.system-block-backdrop.hidden {
  display: none !important;
  opacity: 0;
  pointer-events: none;
}

.system-block-card {
  width: 460px;
  max-width: calc(100vw - 32px);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--glass-border-light);
  border-radius: var(--radius-2xl);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55), var(--glass-border-inner);
  padding: 36px 28px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  animation: modalEnter 0.35s var(--easing-spring);
}

.system-block-icon-wrap {
  width: 68px;
  height: 68px;
  border-radius: 22px;
  background: linear-gradient(145deg, #FF9500 0%, #FF3B30 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 12px 28px rgba(255, 59, 48, 0.32);
  margin-bottom: 2px;
}

.system-block-card.capacity-mode .system-block-icon-wrap {
  background: linear-gradient(145deg, #0071E3 0%, #5E5CE6 100%);
  box-shadow: 0 12px 28px rgba(0, 113, 227, 0.32);
}

.system-block-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 59, 48, 0.12);
  color: var(--color-apple-red);
  border: 1px solid rgba(255, 59, 48, 0.28);
}

.system-block-card.capacity-mode .system-block-badge {
  background: rgba(0, 113, 227, 0.12);
  color: var(--color-apple-blue);
  border-color: rgba(0, 113, 227, 0.28);
}

.system-block-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--color-text-primary);
}

.system-block-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  word-break: keep-all;
  max-width: 380px;
}

.system-block-info-box {
  width: 100%;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--glass-border-subtle);
  border-radius: var(--radius-md);
  padding: 11px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-top: 4px;
}

.system-block-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-apple-red);
  box-shadow: 0 0 8px var(--color-apple-red);
  flex-shrink: 0;
}

.system-block-card.capacity-mode .system-block-dot {
  background: var(--color-apple-orange);
  box-shadow: 0 0 8px var(--color-apple-orange);
}

.system-block-retry-btn {
  width: 100%;
  margin-top: 8px;
}

.modal-card-glass {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(36px) saturate(200%);
  -webkit-backdrop-filter: blur(36px) saturate(200%);
  border: 1px solid var(--glass-border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--glass-shadow-float), var(--glass-border-inner);
  padding: 30px;
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  margin: auto 0;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform, opacity;
  animation: modalEnter 0.35s var(--easing-spring);
}

@keyframes modalEnter {
  from { opacity: 0; transform: scale(0.94) translateY(14px) translateZ(0); }
  to { opacity: 1; transform: scale(1) translateY(0) translateZ(0); }
}

.modal-card-glass.compact { width: 440px; }
.modal-card-glass.wide { width: 800px; }

.modal-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 22px;
}

.modal-title {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--color-text-primary);
}

.modal-title.text-center { text-align: center; }

.modal-subtitle {
  font-size: 13.5px;
  color: var(--color-text-secondary);
  line-height: 1.55;
  margin-top: 5px;
}

.modal-subtitle.text-center { text-align: center; margin-bottom: 22px; }

.modal-close-circle {
  width: 30px;
  height: 30px;
  min-width: 30px;
  min-height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.06);
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
  font-size: 13px;
}

.modal-close-circle:hover {
  background: rgba(0, 0, 0, 0.12);
  color: var(--color-text-primary);
  transform: scale(1.06);
}

.modal-badge-icon {
  width: 60px;
  height: 60px;
  border-radius: 20px;
  background: linear-gradient(145deg, #1D1D1F 0%, #35353A 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px auto;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Onboarding Forms & Swatches */
.entry-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.input-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-text-secondary);
  letter-spacing: -0.01em;
}

.apple-text-field {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(0, 0, 0, 0.16);
  background: #FFFFFF;
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
  caret-color: var(--color-apple-blue);
  user-select: text;
  -webkit-user-select: text;
}

.apple-text-field:focus {
  border-color: var(--color-apple-blue);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.24);
  background: #FFFFFF;
}

.apple-textarea-field {
  width: 100%;
  min-width: 0;
  min-height: 104px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border-subtle);
  background: rgba(255, 255, 255, 0.94);
  font-family: var(--font-sans);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--color-text-primary);
  outline: none;
  resize: vertical;
  transition: all 0.2s ease;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
  caret-color: var(--color-apple-blue);
  user-select: text;
  -webkit-user-select: text;
}

.apple-textarea-field:focus {
  border-color: var(--color-apple-blue);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.24);
  background: #FFFFFF;
}

.request-header-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0071E3, #5E5CE6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.28);
  flex-shrink: 0;
}

.request-category-chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.request-category-chip {
  padding: 8px 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border-subtle);
  background: rgba(0, 0, 0, 0.035);
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--color-text-secondary);
  cursor: pointer;
  outline: none;
  transition: all 0.2s var(--easing-spring);
  text-align: center;
  white-space: nowrap;
}

.request-category-chip:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--color-text-primary);
}

.request-category-chip.active {
  background: var(--color-apple-blue);
  color: #FFFFFF;
  border-color: var(--color-apple-blue);
  box-shadow: 0 2px 8px var(--color-apple-blue-glow);
}

.material-palette-picker {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* EVE Facial Expression Picker & Custom Face Upload UI */
.expression-picker-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.expression-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 8px;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border-subtle);
  background: rgba(0, 0, 0, 0.035);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-primary);
  cursor: pointer;
  outline: none;
  transition: all 0.2s var(--easing-spring);
  white-space: nowrap;
}

.expression-chip:hover {
  background: rgba(0, 113, 227, 0.08);
  border-color: rgba(0, 113, 227, 0.3);
  transform: translateY(-1px);
}

.expression-chip.active {
  background: var(--color-apple-blue);
  color: #FFFFFF;
  border-color: var(--color-apple-blue);
  box-shadow: 0 4px 12px var(--color-apple-blue-glow);
}

.expression-chip.upload-chip {
  border-style: dashed;
  border-color: rgba(0, 113, 227, 0.45);
  background: rgba(0, 113, 227, 0.05);
  color: var(--color-apple-blue);
}

.expression-chip.upload-chip.active {
  border-style: solid;
  background: linear-gradient(135deg, #0071E3 0%, #5E5CE6 100%);
  color: #FFFFFF;
}

.expr-icon {
  font-size: 14px;
  line-height: 1;
}

.face-custom-preview-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  background: rgba(0, 113, 227, 0.06);
  border: 1px solid rgba(0, 113, 227, 0.22);
  color: var(--color-text-primary);
}

.face-custom-preview-bar.hidden {
  display: none !important;
}

#face-custom-preview-img {
  width: 42px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  background: #05070B;
  border: 1.5px solid var(--color-apple-blue);
  box-shadow: 0 0 8px rgba(0, 113, 227, 0.35);
  flex-shrink: 0;
}

.face-custom-preview-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.face-custom-preview-info strong {
  font-size: 11.5px;
  color: var(--color-apple-blue);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.face-custom-preview-info span {
  font-size: 10px;
  color: var(--color-text-secondary);
}

.face-custom-action-btn {
  padding: 4px 9px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-text-primary);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}

.face-custom-action-btn:hover {
  background: #FFFFFF;
  border-color: var(--color-apple-blue);
  color: var(--color-apple-blue);
}

.face-custom-clear-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 59, 48, 0.14);
  color: #FF3B30;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.16s ease;
}

.face-custom-clear-btn:hover {
  background: rgba(255, 59, 48, 0.28);
  color: #FF3B30;
}

.face-custom-clear-btn.hidden {
  display: none !important;
}

.create-room-ai-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 113, 227, 0.06) 0%, rgba(175, 82, 222, 0.06) 100%);
  border: 1px solid rgba(0, 113, 227, 0.26);
}

.create-room-ai-box.hidden {
  display: none !important;
}

.create-room-ai-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

#create-room-ai-badge-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-apple-blue);
}

#create-room-ai-badge-sub {
  font-size: 10.5px;
  color: var(--color-text-secondary);
}

.create-room-file-upload-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px dashed rgba(0, 113, 227, 0.4);
  background: rgba(255, 255, 255, 0.65);
}

.create-room-file-thumb {
  width: 48px;
  height: 38px;
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.create-room-file-input {
  flex: 1;
  min-width: 0;
  font-size: 11.5px;
  color: var(--color-text-secondary);
  cursor: pointer;
}

body.dark-mode .create-room-ai-box {
  background: linear-gradient(135deg, rgba(0, 113, 227, 0.14) 0%, rgba(175, 82, 222, 0.12) 100%);
  border-color: rgba(121, 192, 255, 0.35);
}

body.dark-mode .create-room-file-upload-row {
  background: rgba(14, 14, 20, 0.75);
  border-color: rgba(121, 192, 255, 0.4);
}

/* Dock Expression Popover Menu (Apple Architectural White Glass Tone) */
.dock-expression-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.dock-expression-popover {
  position: absolute;
  bottom: calc(100% + 72px);
  left: 50%;
  transform: translateX(-50%);
  width: 268px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(32px) saturate(210%);
  -webkit-backdrop-filter: blur(32px) saturate(210%);
  border: 1px solid var(--glass-border-light);
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.12), var(--glass-border-inner);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--color-text-primary);
  animation: dockPopoverEnter 0.22s var(--easing-spring);
}

@keyframes dockPopoverEnter {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(12px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

.dock-expression-popover.hidden {
  display: none !important;
}

.dock-expr-title {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-apple-blue);
  text-align: center;
}

.dock-expr-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.dock-expr-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.72);
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s var(--easing-spring);
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.dock-expr-btn:hover {
  background: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.dock-expr-btn.active {
  background: var(--color-apple-blue);
  border-color: var(--color-apple-blue);
  color: #FFFFFF;
  box-shadow: 0 3px 10px var(--color-apple-blue-glow);
}

.dock-expr-btn.upload {
  border-style: dashed;
  border-color: rgba(0, 113, 227, 0.45);
  background: rgba(0, 113, 227, 0.05);
  color: var(--color-apple-blue);
}

.dock-expr-btn.upload:hover {
  background: rgba(0, 113, 227, 0.1);
  border-color: var(--color-apple-blue);
}

.dock-expr-btn.upload.active {
  border-style: solid;
  background: linear-gradient(135deg, #0071E3 0%, #5E5CE6 100%);
  color: #FFFFFF;
  box-shadow: 0 3px 10px var(--color-apple-blue-glow);
}

.dock-expr-emoji {
  font-size: 14px;
  line-height: 1;
}

/* Dark Mode Support for Expression Popover */
body.dark-mode .dock-expression-popover {
  background: rgba(20, 20, 26, 0.94);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45), 0 0 20px rgba(0, 113, 227, 0.2);
  color: #F5F5F7;
}

body.dark-mode .dock-expr-title {
  color: #79C0FF;
}

body.dark-mode .dock-expr-btn {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: #F5F5F7;
  box-shadow: none;
}

body.dark-mode .dock-expr-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
}

body.dark-mode .dock-expr-btn.active {
  background: var(--color-apple-blue);
  border-color: #79C0FF;
  color: #FFFFFF;
}

body.dark-mode .dock-expr-btn.upload {
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(0, 113, 227, 0.1);
  color: #38BDF8;
}

body.dark-mode .face-custom-preview-bar {
  background: rgba(18, 18, 24, 0.9);
  border-color: rgba(0, 163, 255, 0.4);
  color: #F5F5F7;
}

body.dark-mode .face-custom-preview-info strong {
  color: #79C0FF;
}

body.dark-mode .face-custom-preview-info span {
  color: rgba(245, 245, 247, 0.7);
}

body.dark-mode .face-custom-action-btn {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}

.palette-swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--swatch);
  border: 2px solid #FFFFFF;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.16);
  cursor: pointer;
  outline: none;
  transition: transform 0.2s var(--easing-spring), outline 0.2s ease;
}

.palette-swatch:hover {
  transform: scale(1.12);
}

.palette-swatch.active {
  transform: scale(1.18);
  outline: 2.5px solid var(--color-apple-blue);
  outline-offset: 3px;
}

.radio-chip-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.radio-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.035);
  border: 1px solid var(--glass-border-subtle);
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.radio-chip:hover {
  background: rgba(0, 0, 0, 0.06);
}

.btn-apple-primary {
  height: 46px;
  border-radius: var(--radius-full);
  background: var(--color-apple-blue);
  border: none;
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  outline: none;
  transition: all 0.25s var(--easing-spring);
  margin-top: 6px;
  box-shadow: 0 4px 14px var(--color-apple-blue-glow);
}

.btn-apple-primary:hover {
  background: var(--color-apple-blue-hover);
  transform: translateY(-1.5px);
  box-shadow: 0 6px 20px var(--color-apple-blue-glow);
}

.btn-apple-primary:active {
  transform: translateY(0);
}

/* 16.4 Donation Modal & Security Notice Styles */
.donation-card-popup {
  width: 440px;
  max-width: calc(100vw - 32px);
  padding: 24px;
}

.donation-header-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #FF9500, #AF52DE);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(255, 149, 0, 0.25);
  flex-shrink: 0;
}

.donation-amount-chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.amount-chip {
  padding: 7px 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border-subtle);
  background: rgba(0, 0, 0, 0.035);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--color-text-secondary);
  cursor: pointer;
  outline: none;
  transition: all 0.2s var(--easing-spring);
  text-align: center;
}

.amount-chip:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--color-text-primary);
}

.amount-chip.active {
  background: var(--color-apple-blue);
  color: #FFFFFF;
  border-color: var(--color-apple-blue);
  box-shadow: 0 2px 8px var(--color-apple-blue-glow);
}

.font-mono-field {
  font-family: var(--font-mono) !important;
  letter-spacing: 0.05em;
}

.donation-security-box {
  background: rgba(0, 113, 227, 0.05);
  border: 1px solid rgba(0, 113, 227, 0.2);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.security-badge-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.security-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-apple-green);
  box-shadow: 0 0 6px var(--color-apple-green);
}

.security-headline {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-apple-blue);
}

.security-notice-text {
  font-size: 10.5px;
  color: var(--color-text-secondary);
  line-height: 1.45;
}

.donation-error-notice {
  background: rgba(255, 59, 48, 0.1);
  border: 1px solid rgba(255, 59, 48, 0.35);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--color-apple-red);
  text-align: center;
}

.donation-error-notice.hidden {
  display: none;
}

/* 16.41 3-Tier Monetization Hub, Rewarded Ad Studio & Boost Styles */
.donation-reward-perks {
  background: linear-gradient(135deg, rgba(255, 179, 0, 0.12) 0%, rgba(175, 82, 222, 0.08) 100%);
  border: 1px solid rgba(255, 149, 0, 0.35);
  border-radius: var(--radius-md);
  padding: 11px 13px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.perk-badge-title {
  font-size: 12px;
  font-weight: 700;
  color: #D97706;
}

.perk-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 11.5px;
  color: var(--color-text-primary);
}

.donate-ad-alt-btn {
  margin-top: 4px;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px dashed rgba(0, 113, 227, 0.45);
  background: rgba(0, 113, 227, 0.06);
  color: var(--color-apple-blue);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.18s ease;
}

.donate-ad-alt-btn:hover {
  background: var(--color-apple-blue);
  color: #FFFFFF;
  border-style: solid;
}

.hall-of-fame-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 6px 8px;
  margin-bottom: 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.035);
  font-size: 11px;
  white-space: nowrap;
}

.hall-of-fame-strip.hidden {
  display: none !important;
}

.hof-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 179, 0, 0.18);
  color: #B45309;
  font-weight: 700;
  font-size: 10.5px;
}

.monetize-modal-card {
  width: 720px;
  max-width: calc(100vw - 24px);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.monetize-header-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: linear-gradient(135deg, #AF52DE 0%, #0071E3 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  color: #FFFFFF;
  box-shadow: 0 6px 16px rgba(175, 82, 222, 0.32);
  flex-shrink: 0;
}

.monetize-ticket-pill {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(175, 82, 222, 0.14);
  color: #8944AB;
  border: 1px solid rgba(175, 82, 222, 0.35);
}

.reward-ad-studio-box {
  background: linear-gradient(135deg, #141622 0%, #1E2235 100%);
  border: 1.5px solid rgba(0, 113, 227, 0.45);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  color: #F5F5F7;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.reward-ad-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.ad-badge-pill {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  background: rgba(52, 199, 89, 0.2);
  color: #34C759;
  border: 1px solid rgba(52, 199, 89, 0.45);
}

.ad-timer-text {
  font-size: 11.5px;
  font-weight: 600;
  color: #79C0FF;
}

.reward-ad-stage {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ad-sponsor-Tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #FFA657;
}

.ad-sponsor-title {
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
}

.ad-sponsor-desc {
  font-size: 12.5px;
  color: rgba(245, 245, 247, 0.8);
  line-height: 1.45;
}

.ad-progress-bar-wrap {
  width: 100%;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
  margin: 4px 0;
}

.ad-progress-bar-wrap.hidden {
  display: none !important;
}

.ad-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #34C759 0%, #0071E3 100%);
  border-radius: var(--radius-full);
  transition: width 0.25s linear;
}

.ad-action-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.ad-watch-btn {
  flex: 1;
  min-width: 220px;
  height: 40px;
  margin-top: 0;
  font-size: 13px;
}

.ad-visit-link-btn {
  height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
}

.ad-visit-link-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.monetize-tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.monetize-tier-card {
  background: rgba(0, 0, 0, 0.025);
  border: 1px solid var(--glass-border-subtle);
  border-radius: var(--radius-lg);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.monetize-tier-card.highlight {
  background: linear-gradient(135deg, rgba(255, 179, 0, 0.1) 0%, rgba(255, 107, 0, 0.06) 100%);
  border-color: rgba(255, 149, 0, 0.4);
}

.tier-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tier-icon {
  font-size: 20px;
}

.tier-cost-badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(0, 113, 227, 0.12);
  color: var(--color-apple-blue);
}

.tier-cost-badge.gold {
  background: rgba(255, 149, 0, 0.18);
  color: #D97706;
}

.tier-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--color-text-primary);
}

.tier-desc {
  font-size: 11.5px;
  color: var(--color-text-secondary);
  line-height: 1.45;
  flex: 1;
}

.tier-action-btn {
  height: 34px;
  padding: 0 10px;
  border-radius: 9px;
  border: 1px solid rgba(0, 113, 227, 0.35);
  background: rgba(0, 113, 227, 0.08);
  color: var(--color-apple-blue);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.tier-action-btn:hover {
  background: var(--color-apple-blue);
  color: #FFFFFF;
}

.tier-action-btn.gold {
  background: linear-gradient(135deg, #FF9500 0%, #FF6B00 100%);
  border-color: #FF9500;
  color: #FFFFFF;
}

.stage-boost-tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.stage-boost-chip {
  padding: 8px 6px;
  border-radius: 10px;
  border: 1px solid var(--glass-border-subtle);
  background: rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.stage-boost-chip strong {
  font-size: 11.5px;
  color: var(--color-text-primary);
}

.stage-boost-chip span {
  font-size: 10px;
  color: var(--color-text-secondary);
}

.stage-boost-chip.active {
  background: var(--color-apple-blue);
  border-color: var(--color-apple-blue);
  box-shadow: 0 3px 10px var(--color-apple-blue-glow);
}

.stage-boost-chip.active strong,
.stage-boost-chip.active span {
  color: #FFFFFF;
}

.stage-boost-chip.vip.active {
  background: linear-gradient(135deg, #FF9500 0%, #FF5E3A 100%);
  border-color: #FF9500;
  box-shadow: 0 3px 12px rgba(255, 149, 0, 0.38);
}

.stage-ad-inline-btn {
  margin-top: 4px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px dashed rgba(175, 82, 222, 0.45);
  background: rgba(175, 82, 222, 0.07);
  color: #8944AB;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.stage-ad-inline-btn:hover {
  background: #AF52DE;
  color: #FFFFFF;
  border-style: solid;
}

@media (max-width: 768px) {
  .monetize-tiers-grid {
    grid-template-columns: 1fr;
  }
  .header-boost-pill {
    height: 28px;
    padding: 0 8px;
    font-size: 11px;
  }
}

/* 16.42 Wish Tree ("소원 & 대박 기원 트리") Modal & 3D Spatial Beacon */
.wish-tree-spatial-beacon {
  position: absolute;
  transform: translate(-50%, -100%);
  background: rgba(24, 20, 16, 0.88);
  backdrop-filter: blur(20px) saturate(190%);
  -webkit-backdrop-filter: blur(20px) saturate(190%);
  border: 1.5px solid rgba(255, 179, 0, 0.72);
  border-radius: var(--radius-full);
  padding: 7px 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #FFF8EB;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: auto;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 22px rgba(255, 179, 0, 0.35);
  z-index: 10;
  transition: transform 0.22s var(--easing-spring), box-shadow 0.22s ease;
  user-select: none;
  -webkit-user-select: none;
}

.wish-tree-spatial-beacon:hover {
  transform: translate(-50%, -106%) scale(1.06);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 179, 0, 0.55);
  border-color: #FFD166;
}

.wish-tree-spatial-beacon:active {
  transform: translate(-50%, -100%) scale(0.96);
}

.wish-beacon-lantern {
  font-size: 16px;
  line-height: 1;
  filter: drop-shadow(0 0 6px rgba(255, 179, 0, 0.8));
  animation: lanternFloat 2.4s infinite ease-in-out;
}

@keyframes lanternFloat {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-3px) rotate(4deg); }
}

.wish-beacon-count {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #FFB300 0%, #FF6B00 100%);
  color: #FFFFFF;
}

.wish-tree-modal-card {
  width: 880px;
  max-width: calc(100vw - 24px);
  padding: 24px;
}

.wishtree-header-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #FFB300 0%, #FF5E3A 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(255, 149, 0, 0.35);
  flex-shrink: 0;
}

.wishtree-total-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 149, 0, 0.14);
  color: #D97706;
  border: 1px solid rgba(255, 149, 0, 0.32);
}

.wishtree-modal-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 20px;
  align-items: start;
}

.wishtree-form-panel {
  background: rgba(0, 0, 0, 0.025);
  border: 1px solid var(--glass-border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wishtree-panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wishtree-panel-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--color-text-primary);
}

.wishtree-panel-sub {
  font-size: 10.5px;
  font-weight: 600;
  color: #D97706;
}

.wish-category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.wish-category-chip {
  padding: 6px 9px;
  border-radius: 9px;
  border: 1px solid var(--glass-border-subtle);
  background: rgba(255, 255, 255, 0.75);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.wish-category-chip:hover {
  background: #FFFFFF;
  color: var(--color-text-primary);
}

.wish-category-chip.active {
  background: linear-gradient(135deg, #FF9500 0%, #FF6B00 100%);
  border-color: #FF9500;
  color: #FFFFFF;
  box-shadow: 0 3px 10px rgba(255, 149, 0, 0.32);
}

.wish-color-picker {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wish-color-swatch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--lantern-color, #FFB300);
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition: transform 0.2s var(--easing-spring), box-shadow 0.2s ease;
}

.wish-color-swatch:hover {
  transform: scale(1.12);
}

.wish-color-swatch.active {
  transform: scale(1.2);
  outline: 2.5px solid var(--lantern-color, #FFB300);
  outline-offset: 2px;
  box-shadow: 0 0 14px var(--lantern-color, #FFB300);
}

.wishtree-submit-btn {
  background: linear-gradient(135deg, #FF9500 0%, #FF5E3A 100%);
  box-shadow: 0 6px 18px rgba(255, 149, 0, 0.36);
  height: 42px;
  font-size: 13.5px;
}

.wishtree-submit-btn:hover {
  background: linear-gradient(135deg, #FFA726 0%, #FF7043 100%);
  box-shadow: 0 8px 22px rgba(255, 149, 0, 0.48);
}

.wishtree-Golden-cta {
  background: linear-gradient(135deg, rgba(255, 179, 0, 0.12) 0%, rgba(255, 107, 0, 0.08) 100%);
  border: 1px solid rgba(255, 149, 0, 0.28);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.golden-cta-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.golden-cta-text strong {
  font-size: 11.5px;
  color: #D97706;
}

.golden-cta-text span {
  font-size: 10.5px;
  color: var(--color-text-secondary);
  line-height: 1.35;
}

.golden-cta-btn {
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 149, 0, 0.45);
  background: #FFFFFF;
  color: #D97706;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
}

.golden-cta-btn:hover {
  background: #FF9500;
  color: #FFFFFF;
}

.wishtree-feed-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.wishtree-feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.wishtree-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.wishtree-filter-btn {
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--glass-border-subtle);
  background: rgba(0, 0, 0, 0.04);
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all 0.18s ease;
}

.wishtree-filter-btn:hover {
  color: var(--color-text-primary);
}

.wishtree-filter-btn.active {
  background: var(--color-text-primary);
  color: #FFFFFF;
  border-color: var(--color-text-primary);
}

.wishtree-cards-scroll {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 460px;
  overflow-y: auto;
  padding-right: 4px;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.wish-golden-boost-box {
  background: linear-gradient(135deg, rgba(255, 179, 0, 0.14) 0%, rgba(255, 149, 0, 0.06) 100%);
  border: 1px solid rgba(255, 179, 0, 0.45);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wish-golden-check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  color: #B45309;
}

.wish-golden-check-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #FF9500;
  cursor: pointer;
}

.golden-check-title small {
  font-weight: 600;
  color: var(--color-text-secondary);
}

.wish-golden-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: var(--color-text-secondary);
}

.wish-ad-mini-btn {
  padding: 3px 9px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 113, 227, 0.35);
  background: rgba(0, 113, 227, 0.08);
  color: var(--color-apple-blue);
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.wish-ad-mini-btn:hover {
  background: var(--color-apple-blue);
  color: #FFFFFF;
}

.golden-cta-btn.primary {
  background: linear-gradient(135deg, #FF9500 0%, #FF6B00 100%);
  color: #FFFFFF;
  border-color: #FF9500;
}

.wish-lantern-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--glass-border-subtle);
  border-left: 4px solid var(--wish-color, #FFB300);
  border-radius: var(--radius-lg);
  padding: 13px 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s var(--easing-spring), box-shadow 0.2s ease;
}

.wish-lantern-card.golden-tier {
  background: linear-gradient(135deg, rgba(255, 248, 225, 0.96) 0%, rgba(255, 236, 179, 0.88) 100%);
  border: 1.5px solid #FFB300;
  border-left: 5px solid #FF8F00;
  box-shadow: 0 8px 24px rgba(255, 179, 0, 0.22);
}

.wish-golden-pin-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #FFB300 0%, #FF6B00 100%);
  color: #FFFFFF;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 6px rgba(255, 149, 0, 0.35);
}

body.dark-mode .wish-lantern-card.golden-tier {
  background: linear-gradient(135deg, rgba(58, 44, 16, 0.92) 0%, rgba(40, 32, 18, 0.92) 100%);
  border-color: rgba(255, 179, 0, 0.75);
}

body.dark-mode .wish-golden-check-label {
  color: #FFD166;
}

.wish-lantern-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.07);
}

.wish-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.wish-card-author-group {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.wish-lantern-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--wish-color, #FFB300);
  box-shadow: 0 0 8px var(--wish-color, #FFB300);
  flex-shrink: 0;
}

.wish-card-author {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wish-card-category {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 149, 0, 0.12);
  color: #D97706;
  white-space: nowrap;
}

.wish-card-time {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--color-text-tertiary);
  white-space: nowrap;
}

.wish-card-content {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-primary);
  word-break: break-word;
  white-space: pre-wrap;
}

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

.wish-card-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--color-apple-blue);
  background: rgba(0, 113, 227, 0.08);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  text-decoration: none;
  max-width: 240px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.18s ease;
}

.wish-card-link:hover {
  background: rgba(0, 113, 227, 0.16);
  text-decoration: underline;
}

.wish-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.btn-wish-pray {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 149, 0, 0.38);
  background: rgba(255, 149, 0, 0.1);
  color: #D97706;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s var(--easing-spring);
}

.btn-wish-pray:hover,
.btn-wish-pray.prayed {
  background: linear-gradient(135deg, #FF9500 0%, #FF6B00 100%);
  color: #FFFFFF;
  border-color: #FF9500;
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 4px 12px rgba(255, 149, 0, 0.32);
}

.btn-wish-share {
  padding: 5px 9px;
  border-radius: var(--radius-full);
  border: 1px solid var(--glass-border-subtle);
  background: rgba(0, 0, 0, 0.04);
  color: var(--color-text-secondary);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-wish-share:hover {
  background: rgba(0, 0, 0, 0.08);
  color: var(--color-text-primary);
}

body.dark-mode .wishtree-form-panel {
  background: rgba(28, 28, 38, 0.75);
  border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .wish-category-chip {
  background: rgba(40, 40, 52, 0.85);
  border-color: rgba(255, 255, 255, 0.1);
  color: #D1D1D6;
}

body.dark-mode .wish-lantern-card {
  background: rgba(30, 30, 40, 0.88);
  border-color: rgba(255, 255, 255, 0.08);
  color: #F5F5F7;
}

body.dark-mode .wishtree-filter-btn {
  background: rgba(36, 36, 48, 0.85);
  border-color: rgba(255, 255, 255, 0.1);
  color: #A1A1A6;
}

body.dark-mode .wishtree-filter-btn.active {
  background: #FF9500;
  border-color: #FF9500;
  color: #FFFFFF;
}

body.dark-mode .btn-wish-share,
body.dark-mode .golden-cta-btn {
  background: rgba(42, 42, 56, 0.9);
  border-color: rgba(255, 255, 255, 0.14);
  color: #F5F5F7;
}

@media (max-width: 820px) {
  .wishtree-modal-grid {
    grid-template-columns: 1fr;
  }
  .wishtree-cards-scroll {
    max-height: 320px;
  }
}

/* 16.45 Stage Screen Click Action Choice Modal */
.stage-action-modal-card {
  width: 460px;
  max-width: calc(100vw - 28px);
  padding: 24px;
}

.stage-modal-header-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0071E3, #5E5CE6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.28);
  flex-shrink: 0;
}

.stage-action-current-box {
  background: rgba(0, 113, 227, 0.06);
  border: 1px solid rgba(0, 113, 227, 0.18);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
}

.stage-action-current-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.stage-action-top-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.stage-card-icon-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.stage-card-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(0, 113, 227, 0.25);
  background: rgba(255, 255, 255, 0.85);
  color: var(--color-apple-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  transition: all 0.18s var(--easing-spring);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.stage-card-icon-btn:hover {
  background: var(--color-apple-blue);
  color: #FFFFFF;
  border-color: var(--color-apple-blue);
  transform: translateY(-1.5px);
  box-shadow: 0 4px 12px var(--color-apple-blue-glow);
}

.stage-card-icon-btn:active {
  transform: scale(0.94);
}

body.dark-mode .stage-card-icon-btn {
  background: rgba(36, 36, 48, 0.85);
  border-color: rgba(255, 255, 255, 0.14);
  color: #79C0FF;
}

body.dark-mode .stage-card-icon-btn:hover {
  background: var(--color-apple-blue);
  color: #FFFFFF;
}

.stage-action-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: #FF3B30;
  background: rgba(255, 59, 48, 0.12);
  border: 1px solid rgba(255, 59, 48, 0.28);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.stage-action-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FF3B30;
  box-shadow: 0 0 6px #FF3B30;
}

.stage-action-queue-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  color: #D97706;
  background: rgba(255, 149, 0, 0.14);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.stage-action-project-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.3;
  word-break: break-word;
}

.stage-action-project-desc {
  font-size: 12px;
  color: var(--color-text-secondary);
  line-height: 1.4;
  word-break: break-word;
}

.stage-action-project-desc.hidden {
  display: none !important;
}

.stage-action-project-url {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--color-apple-blue);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stage-choice-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stage-choice-btn {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border-subtle);
  background: rgba(255, 255, 255, 0.86);
  padding: 13px 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  cursor: pointer;
  outline: none;
  transition: all 0.2s var(--easing-spring);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.stage-choice-btn.hidden {
  display: none !important;
}

.stage-choice-btn:hover {
  transform: translateY(-2px);
  background: #FFFFFF;
  border-color: rgba(0, 113, 227, 0.42);
  box-shadow: 0 8px 20px rgba(0, 113, 227, 0.12);
}

.stage-choice-btn:active {
  transform: translateY(0) scale(0.99);
}

.stage-choice-btn.reserve:hover {
  border-color: rgba(255, 149, 0, 0.55);
  box-shadow: 0 8px 20px rgba(255, 149, 0, 0.15);
}

.stage-choice-btn.fullscreen:hover {
  border-color: rgba(52, 199, 89, 0.55);
  box-shadow: 0 8px 20px rgba(52, 199, 89, 0.15);
}

.stage-choice-btn.stop {
  background: rgba(255, 59, 48, 0.06);
  border-color: rgba(255, 59, 48, 0.25);
}

.stage-choice-btn.stop:hover {
  background: rgba(255, 59, 48, 0.12);
  border-color: rgba(255, 59, 48, 0.5);
  box-shadow: 0 8px 20px rgba(255, 59, 48, 0.15);
}

.stage-choice-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(0, 113, 227, 0.1);
  color: var(--color-apple-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}

.stage-choice-btn.reserve .stage-choice-icon {
  background: rgba(255, 149, 0, 0.14);
  color: #D97706;
}

.stage-choice-btn.fullscreen .stage-choice-icon {
  background: rgba(52, 199, 89, 0.14);
  color: #248A3D;
}

.stage-choice-btn.stop .stage-choice-icon {
  background: rgba(255, 59, 48, 0.14);
  color: var(--color-apple-red);
}

.stage-choice-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stage-choice-text strong {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--color-text-primary);
}

.stage-choice-text span {
  font-size: 11.5px;
  color: var(--color-text-secondary);
  line-height: 1.35;
}

.stage-choice-arrow {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-tertiary);
  transition: transform 0.2s ease, color 0.2s ease;
}

.stage-choice-btn:hover .stage-choice-arrow {
  transform: translateX(3px);
  color: var(--color-apple-blue);
}

/* 16.5 User Inspector Profile & Moderation Card */
.user-card-popup {
  width: 380px;
  max-width: calc(100vw - 32px);
  padding: 22px;
}

.inspector-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.inspector-avatar-box {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--inspector-color, #0071E3);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.inspector-identity {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow: hidden;
}

.inspector-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inspector-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inspector-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: rgba(0, 113, 227, 0.1);
  color: var(--color-apple-blue);
  white-space: nowrap;
}

.inspector-badge.self {
  background: rgba(52, 199, 89, 0.15);
  color: var(--color-apple-green);
}

.inspector-status {
  font-size: 12px;
  color: var(--color-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inspector-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 6px;
}

.inspector-action-btn {
  height: 42px;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border-subtle);
  background: rgba(0, 0, 0, 0.04);
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: all 0.2s var(--easing-spring);
}

.inspector-action-btn:hover {
  background: rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.inspector-action-btn.blocked {
  background: rgba(255, 59, 48, 0.12);
  border-color: rgba(255, 59, 48, 0.35);
  color: var(--color-apple-red);
}

.inspector-action-btn.blocked:hover {
  background: rgba(255, 59, 48, 0.2);
}

.inspector-self-notice {
  font-size: 12px;
  color: var(--color-text-secondary);
  text-align: center;
  padding: 10px 0;
  line-height: 1.45;
}

.inspector-self-notice.hidden {
  display: none;
}

.inspector-self-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}

.inspector-self-actions.hidden {
  display: none !important;
}

.inspector-action-btn.primary-accent {
  background: linear-gradient(135deg, #0071E3 0%, #AF52DE 100%);
  border-color: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(0, 113, 227, 0.3);
}

.inspector-action-btn.primary-accent:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* Profile More Menu & AI Character Creator Studio Styles */
.profile-modal-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  position: relative;
  z-index: 15;
}

.profile-more-menu-wrap {
  position: relative;
}

.profile-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 113, 227, 0.3);
  background: linear-gradient(135deg, rgba(0, 113, 227, 0.1) 0%, rgba(175, 82, 222, 0.1) 100%);
  color: var(--color-apple-blue);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  transition: all 0.2s var(--easing-spring);
}

.profile-more-btn:hover,
.profile-more-btn.active {
  background: var(--color-apple-blue);
  color: #FFFFFF;
  border-color: var(--color-apple-blue);
  box-shadow: 0 4px 12px var(--color-apple-blue-glow);
}

.profile-more-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 265px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border: 1px solid var(--glass-border-light);
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18), var(--glass-border-inner);
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 40;
  animation: modalEnter 0.2s var(--easing-spring);
}

.profile-more-dropdown.hidden {
  display: none !important;
}

.profile-more-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 11px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: rgba(0, 0, 0, 0.025);
  text-align: left;
  cursor: pointer;
  transition: all 0.18s ease;
}

.profile-more-item:hover {
  background: rgba(0, 113, 227, 0.09);
  border-color: rgba(0, 113, 227, 0.25);
  transform: translateX(2px);
}

.profile-more-item.highlight {
  background: linear-gradient(135deg, rgba(0, 113, 227, 0.1) 0%, rgba(175, 82, 222, 0.12) 100%);
  border-color: rgba(175, 82, 222, 0.28);
}

.more-item-icon {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

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

.more-item-text strong {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text-primary);
}

.more-item-text span {
  font-size: 10.5px;
  color: var(--color-text-secondary);
}

.profile-char-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.profile-inline-create-btn {
  padding: 3px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(175, 82, 222, 0.4);
  background: linear-gradient(135deg, #0071E3 0%, #AF52DE 100%);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s var(--easing-spring);
  box-shadow: 0 2px 8px rgba(175, 82, 222, 0.25);
}

.profile-inline-create-btn:hover {
  transform: translateY(-1px) scale(1.03);
  filter: brightness(1.08);
}

.profile-char-selector-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 2px;
  scrollbar-width: thin;
}

.profile-char-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px 6px 7px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--glass-border-subtle);
  background: rgba(255, 255, 255, 0.85);
  color: var(--color-text-primary);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s var(--easing-spring);
  white-space: nowrap;
}

.profile-char-chip:hover {
  border-color: var(--color-apple-blue);
  transform: translateY(-1px);
}

.profile-char-chip.active {
  background: rgba(0, 113, 227, 0.12);
  border-color: var(--color-apple-blue);
  color: var(--color-apple-blue);
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(0, 113, 227, 0.18);
}

.profile-char-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--char-color, #0071E3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #FFFFFF;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.profile-char-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.char-creator-modal-card {
  width: 920px;
  max-width: calc(100vw - 24px);
  padding: 24px;
}

.char-creator-header-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0071E3 0%, #AF52DE 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(175, 82, 222, 0.35);
  flex-shrink: 0;
}

.char-ai-model-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(175, 82, 222, 0.12);
  color: #8944AB;
  border: 1px solid rgba(175, 82, 222, 0.32);
}

.char-creator-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  background: rgba(0, 0, 0, 0.04);
  padding: 4px;
  border-radius: 12px;
}

.char-tab-btn {
  flex: 1;
  height: 36px;
  border: none;
  border-radius: 9px;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.char-tab-btn.active {
  background: #FFFFFF;
  color: var(--color-apple-blue);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.char-studio-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 18px;
  align-items: start;
}

.char-studio-grid.hidden,
.char-gallery-panel.hidden {
  display: none !important;
}

.char-form-panel {
  background: rgba(0, 0, 0, 0.025);
  border: 1px solid var(--glass-border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.char-patron-policy-banner {
  background: linear-gradient(135deg, rgba(255, 179, 0, 0.14) 0%, rgba(175, 82, 222, 0.1) 100%);
  border: 1px solid rgba(255, 149, 0, 0.38);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.char-patron-policy-banner.patron-active {
  background: linear-gradient(135deg, rgba(52, 199, 89, 0.12) 0%, rgba(0, 113, 227, 0.1) 100%);
  border-color: rgba(52, 199, 89, 0.4);
}

.char-patron-policy-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.char-patron-policy-text strong {
  font-size: 11.5px;
  font-weight: 700;
  color: #D97706;
}

.char-patron-policy-banner.patron-active .char-patron-policy-text strong {
  color: #248A3D;
}

.char-patron-policy-text span {
  font-size: 10.5px;
  color: var(--color-text-secondary);
  line-height: 1.4;
}

.char-patron-policy-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.char-patron-action-btn {
  padding: 5px 11px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 113, 227, 0.35);
  background: rgba(0, 113, 227, 0.1);
  color: var(--color-apple-blue);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.char-patron-action-btn:hover {
  background: var(--color-apple-blue);
  color: #FFFFFF;
}

.char-patron-action-btn.donate {
  border-color: rgba(255, 149, 0, 0.5);
  background: linear-gradient(135deg, #FF9500 0%, #FF6B00 100%);
  color: #FFFFFF;
}

.char-patron-action-btn.hidden {
  display: none !important;
}

.char-edit-mode-banner {
  background: rgba(0, 113, 227, 0.1);
  border: 1.5px solid rgba(0, 113, 227, 0.4);
  border-radius: 10px;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.char-edit-mode-banner.hidden {
  display: none !important;
}

.char-edit-mode-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.char-edit-mode-info strong {
  font-size: 11.5px;
  color: var(--color-apple-blue);
}

.char-edit-mode-info span {
  font-size: 10px;
  color: var(--color-text-secondary);
  line-height: 1.35;
}

.char-edit-cancel-btn {
  padding: 4px 9px;
  border-radius: 7px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.85);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--color-text-secondary);
  cursor: pointer;
  white-space: nowrap;
}

.btn-glass-edit-char {
  padding: 7px 13px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 113, 227, 0.45);
  background: rgba(0, 113, 227, 0.12);
  color: var(--color-apple-blue);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-glass-edit-char:hover {
  background: var(--color-apple-blue);
  color: #FFFFFF;
}

.btn-glass-edit-char.hidden {
  display: none !important;
}

.char-ref-upload-box {
  border: 1.5px dashed rgba(0, 113, 227, 0.4);
  background: rgba(0, 113, 227, 0.04);
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.char-ref-upload-box:hover {
  background: rgba(0, 113, 227, 0.08);
  border-color: var(--color-apple-blue);
}

.char-ref-multi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.char-ref-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.char-ref-batch-btn {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 113, 227, 0.38);
  background: rgba(0, 113, 227, 0.1);
  color: var(--color-apple-blue);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.char-ref-batch-btn:hover {
  background: var(--color-apple-blue);
  color: #FFFFFF;
}

.char-ref-reset-all-btn {
  padding: 4px 9px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 59, 48, 0.35);
  background: rgba(255, 59, 48, 0.1);
  color: #FF3B30;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
}

.char-ref-reset-all-btn.hidden {
  display: none !important;
}

.char-ref-multi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.char-ref-slot {
  position: relative;
  height: 116px;
  border: 1.5px dashed rgba(0, 113, 227, 0.38);
  background: rgba(0, 113, 227, 0.04);
  border-radius: 12px;
  padding: 6px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all 0.18s ease;
}

.char-ref-slot:hover {
  background: rgba(0, 113, 227, 0.09);
  border-color: var(--color-apple-blue);
  transform: translateY(-1px);
}

.char-ref-slot.has-image {
  border-style: solid;
  border-color: var(--color-apple-green);
  background: rgba(52, 199, 89, 0.06);
  padding: 0;
}

.char-ref-slot-badge {
  position: absolute;
  top: 5px;
  left: 5px;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(15, 18, 28, 0.78);
  color: #FFFFFF;
  backdrop-filter: blur(4px);
}

.char-ref-slot-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
  padding-top: 12px;
}

.char-ref-slot-empty.hidden,
.char-ref-slot-preview.hidden {
  display: none !important;
}

.char-ref-slot-icon {
  font-size: 20px;
  line-height: 1.1;
}

.char-ref-slot-empty strong {
  font-size: 11px;
  color: var(--color-apple-blue);
}

.char-ref-slot-empty span {
  font-size: 9.5px;
  color: var(--color-text-secondary);
  line-height: 1.2;
}

.char-ref-slot-preview {
  width: 100%;
  height: 100%;
  position: relative;
}

.char-ref-slot-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.char-ref-slot-clear {
  position: absolute;
  top: 5px;
  right: 5px;
  z-index: 4;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 59, 48, 0.88);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.char-ref-strict-notice {
  font-size: 10.5px;
  color: var(--color-text-secondary);
  background: rgba(0, 113, 227, 0.06);
  border: 1px solid rgba(0, 113, 227, 0.18);
  border-radius: 8px;
  padding: 7px 10px;
  line-height: 1.4;
}

body.dark-mode .char-ref-slot {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(121, 192, 255, 0.35);
}

body.dark-mode .char-ref-strict-notice {
  background: rgba(0, 113, 227, 0.14);
  border-color: rgba(121, 192, 255, 0.28);
  color: #D1D1D6;
}

.char-ref-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}

.char-ref-icon {
  font-size: 24px;
}

.char-ref-empty strong {
  font-size: 12px;
  color: var(--color-apple-blue);
}

.char-ref-empty span {
  font-size: 10.5px;
  color: var(--color-text-secondary);
  line-height: 1.35;
}

.char-ref-preview {
  display: flex;
  align-items: center;
  gap: 10px;
}

.char-ref-preview.hidden {
  display: none !important;
}

#char-ref-preview-img {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  border: 1.5px solid var(--color-apple-blue);
  background: #101218;
  flex-shrink: 0;
}

.char-ref-preview-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.char-ref-preview-meta strong {
  font-size: 12px;
  color: var(--color-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.char-ref-preview-meta span {
  font-size: 10.5px;
  color: var(--color-text-secondary);
}

.char-generate-submit-btn {
  background: linear-gradient(135deg, #0071E3 0%, #AF52DE 100%);
  box-shadow: 0 6px 18px rgba(175, 82, 222, 0.35);
  height: 44px;
  font-size: 13px;
}

.char-preview-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.char-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.char-preview-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-primary);
}

.char-preview-sub {
  font-size: 11.5px;
  color: var(--color-text-secondary);
  margin-top: 2px;
}

.btn-glass-equip {
  padding: 7px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(52, 199, 89, 0.5);
  background: linear-gradient(135deg, #34C759 0%, #28A745 100%);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(52, 199, 89, 0.32);
  transition: all 0.18s ease;
}

.btn-glass-equip.hidden {
  display: none !important;
}

.char-actions-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 10px;
  max-height: 430px;
  overflow-y: auto;
  padding-right: 4px;
}

.char-action-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--glass-border-subtle);
  border-radius: 14px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.char-action-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 113, 227, 0.35);
}

.char-action-visual {
  width: 100%;
  height: 92px;
  border-radius: 10px;
  background: radial-gradient(circle at 50% 35%, #1E2436 0%, #0D1017 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.char-action-visual svg {
  width: 100%;
  height: 100%;
}

.char-action-key-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.65);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.char-action-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.char-action-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text-primary);
}

.char-action-dialogue {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-apple-blue);
  line-height: 1.3;
  word-break: keep-all;
}

.char-action-desc {
  font-size: 10.5px;
  color: var(--color-text-secondary);
  line-height: 1.35;
  flex: 1;
}

.btn-test-char-action {
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(0, 113, 227, 0.28);
  background: rgba(0, 113, 227, 0.08);
  color: var(--color-apple-blue);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
}

.btn-test-char-action:hover {
  background: var(--color-apple-blue);
  color: #FFFFFF;
}

.shared-characters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
  max-height: 460px;
  overflow-y: auto;
  padding: 4px;
}

.shared-char-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1.5px solid var(--glass-border-subtle);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.2s var(--easing-spring);
}

.shared-char-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
}

.shared-char-card.selected {
  border-color: var(--color-apple-blue);
  background: rgba(0, 113, 227, 0.06);
  box-shadow: 0 0 0 2px rgba(0, 113, 227, 0.2);
}

.shared-char-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.shared-char-avatar {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--char-bg, linear-gradient(135deg, #0071E3, #AF52DE));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #FFFFFF;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.shared-char-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shared-char-info {
  flex: 1;
  min-width: 0;
}

.shared-char-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shared-char-creator {
  font-size: 11px;
  color: var(--color-text-secondary);
  margin-top: 2px;
}

.shared-char-desc {
  font-size: 12px;
  color: var(--color-text-secondary);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.shared-char-actions-strip {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.shared-char-action-pill {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.05);
  color: var(--color-text-secondary);
}

.shared-char-btn-row {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.shared-char-btn {
  flex: 1;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--glass-border-subtle);
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-text-primary);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.shared-char-btn.primary {
  background: var(--color-apple-blue);
  border-color: var(--color-apple-blue);
  color: #FFFFFF;
}

.shared-char-btn.primary.equipped {
  background: var(--color-apple-green);
  border-color: var(--color-apple-green);
}

body.dark-mode .profile-more-dropdown {
  background: rgba(24, 24, 34, 0.98);
  border-color: rgba(255, 255, 255, 0.16);
}

body.dark-mode .profile-more-item {
  background: rgba(255, 255, 255, 0.04);
}

body.dark-mode .profile-char-chip,
body.dark-mode .char-action-card,
body.dark-mode .shared-char-card {
  background: rgba(30, 30, 42, 0.9);
  border-color: rgba(255, 255, 255, 0.1);
  color: #F5F5F7;
}

body.dark-mode .char-tab-btn.active {
  background: rgba(48, 48, 64, 0.95);
  color: #79C0FF;
}

@media (max-width: 820px) {
  .char-studio-grid {
    grid-template-columns: 1fr;
  }
}

/* Building Service/Project Card in Inspector */
.inspector-project-card {
  background: rgba(0, 113, 227, 0.06);
  border: 1px solid rgba(0, 113, 227, 0.18);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.inspector-project-header {
  display: flex;
  align-items: center;
}

.inspector-project-badge {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-apple-blue);
  background: rgba(0, 113, 227, 0.12);
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.inspector-project-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.3;
  word-break: break-word;
}

.inspector-project-desc {
  font-size: 12px;
  color: var(--color-text-secondary);
  line-height: 1.45;
  word-break: break-word;
}

.inspector-project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--color-apple-blue);
  text-decoration: none;
  word-break: break-all;
  transition: opacity 0.2s ease, transform 0.15s ease;
  width: fit-content;
}

.inspector-project-link:hover {
  text-decoration: underline;
  opacity: 0.85;
  transform: translateX(1px);
}

/* 17. Table Directory Grid Modal */
.table-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.table-overview-card {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--glass-border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.25s var(--easing-spring);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.table-overview-card:hover {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--glass-shadow-ambient);
  transform: translateY(-3px);
  border-color: rgba(0, 113, 227, 0.35);
}

.table-overview-card.active {
  border-color: var(--color-apple-blue);
  background: rgba(0, 113, 227, 0.05);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.table-number {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--color-text-secondary);
}

.capacity-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.06);
  color: var(--color-text-secondary);
}

.capacity-pill.highlight {
  background: var(--color-apple-green-surface);
  color: var(--color-apple-green);
}

.table-card-name {
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.table-card-desc {
  font-size: 12.5px;
  color: var(--color-text-secondary);
  line-height: 1.45;
}

.seat-dots-row {
  display: flex;
  gap: 6px;
  margin: 4px 0;
}

.seat-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transition: all 0.2s ease;
}
.seat-dot.filled { background: var(--color-apple-blue); box-shadow: 0 0 6px var(--color-apple-blue-glow); }
.seat-dot.user-filled {
  background: var(--color-apple-blue);
  box-shadow: 0 0 8px var(--color-apple-blue-glow);
  opacity: 1;
}
.seat-dot.bot-filled {
  background: rgba(0, 113, 227, 0.35);
  box-shadow: none;
  border: 1px dashed rgba(0, 113, 227, 0.55);
  opacity: 0.65;
}
.seat-dot.empty { background: rgba(0, 0, 0, 0.12); }

.directory-pop-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(0, 113, 227, 0.08);
  border: 1px solid rgba(0, 113, 227, 0.22);
  color: var(--color-apple-blue);
  white-space: nowrap;
}
.directory-pop-pill .pop-sep {
  color: rgba(0, 0, 0, 0.25);
}
.directory-pop-pill .real-count {
  color: var(--color-apple-green);
}
.room-user-stat-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  padding: 1.5px 6px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.05);
  color: var(--color-text-secondary);
}
.room-chip-btn.active .room-user-stat-tag {
  background: rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
}
body.dark-mode .directory-pop-pill {
  background: rgba(0, 113, 227, 0.16);
  border-color: rgba(121, 192, 255, 0.3);
  color: #79C0FF;
}
body.dark-mode .directory-pop-pill .pop-sep {
  color: rgba(255, 255, 255, 0.25);
}
body.dark-mode .directory-pop-pill .real-count {
  color: #34C759;
}
body.dark-mode .seat-dot.bot-filled {
  background: rgba(121, 192, 255, 0.28);
  border: 1px dashed rgba(121, 192, 255, 0.45);
  opacity: 0.55;
}

.btn-card-action {
  height: 36px;
  border-radius: var(--radius-full);
  border: 1px solid var(--glass-border-subtle);
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-text-primary);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: all 0.2s var(--easing-spring);
  margin-top: 4px;
}

.btn-card-action:hover {
  background: var(--color-apple-blue);
  color: #FFFFFF;
  border-color: var(--color-apple-blue);
  box-shadow: 0 4px 12px var(--color-apple-blue-glow);
}

.btn-card-action.active {
  background: var(--color-apple-blue-surface);
  color: var(--color-apple-blue);
  border-color: rgba(0, 113, 227, 0.35);
}

/* 17.5. Mobile Dual-Touch Controller */
/* Mobile Touch Controls Layer */
.mobile-touch-layer {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 6;
  pointer-events: none;
  display: none;
}

/* Enable Touch Controls on Touch Devices & Mobile Viewports */
@media (hover: none) or (pointer: coarse), (max-width: 1024px) {
  .mobile-touch-layer {
    display: flex;
  }
}

.joystick-touch-zone {
  flex: 1;
  height: 100%;
  pointer-events: auto;
  position: relative;
  touch-action: none;
}

.aim-touch-zone {
  flex: 1.2;
  height: 100%;
  pointer-events: auto;
  position: relative;
  touch-action: none;
}

/* Virtual Joystick Elements */
.joystick-base {
  position: absolute;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 2px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), inset 0 1px 2px rgba(255, 255, 255, 0.6);
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.joystick-base.hidden {
  opacity: 0;
}

.joystick-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(220, 225, 235, 0.9));
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22), 0 0 10px var(--color-apple-blue-glow);
  border: 2px solid var(--color-apple-blue);
  transform: translate(-50%, -50%);
  will-change: transform;
}

/* Mobile Quick Action Buttons */
.mobile-action-cluster {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 16px));
  bottom: max(132px, calc(env(safe-area-inset-bottom, 0px) + 116px));
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: auto;
  z-index: 35;
}

.mobile-hud-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--glass-border-light);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--glass-shadow-ambient), var(--glass-border-inner);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-text-primary);
  cursor: pointer;
  outline: none;
  touch-action: manipulation;
  transition: transform 0.15s ease, background 0.15s ease;
}

.mobile-hud-circle:active {
  transform: scale(0.92);
  background: #FFFFFF;
}

.mobile-hud-circle.active {
  background: var(--color-apple-orange);
  color: #FFFFFF;
  border-color: var(--color-apple-orange);
  box-shadow: 0 0 14px var(--color-apple-orange-glow);
}

.mobile-hud-circle.highlight {
  background: var(--color-apple-blue);
  color: #FFFFFF;
  border-color: var(--color-apple-blue);
  box-shadow: 0 4px 16px var(--color-apple-blue-glow);
}

.mobile-hud-circle.highlight.seated {
  background: var(--color-apple-red);
  border-color: var(--color-apple-red);
}

.mobile-hud-circle.code-btn {
  display: none;
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(0, 113, 227, 0.35);
  color: var(--color-apple-blue);
  box-shadow: 0 4px 14px rgba(0, 113, 227, 0.2);
}

.mobile-hud-circle.code-btn.active {
  background: var(--color-apple-blue);
  color: #FFFFFF;
  border-color: var(--color-apple-blue);
  box-shadow: 0 4px 18px var(--color-apple-blue-glow);
}

.mobile-hud-circle.donate-btn {
  background: linear-gradient(135deg, rgba(255, 149, 0, 0.95), rgba(255, 180, 50, 0.9));
  color: #FFFFFF;
  border-color: rgba(255, 149, 0, 0.45);
  box-shadow: 0 4px 16px rgba(255, 149, 0, 0.35);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.mobile-hud-circle.donate-btn:active {
  transform: scale(0.92);
  filter: brightness(1.1);
}

.mobile-hud-circle .btn-glyph {
  font-size: 16px;
  line-height: 1;
}

.mobile-hud-circle .btn-tag {
  font-size: 8.5px;
  font-weight: 700;
  margin-top: 2px;
  letter-spacing: -0.01em;
}

/* 18. Center Floating Keyboard Shortcuts Bar */
#stage-live-floating-bar:not(.hidden) ~ #shortcuts-legend,
#spatial-chat-bar:not(.hidden) ~ #shortcuts-legend {
  bottom: max(210px, calc(env(safe-area-inset-bottom, 16px) + 194px));
}

#stage-live-floating-bar:not(.hidden) ~ #spatial-chat-bar:not(.hidden) ~ #shortcuts-legend {
  bottom: max(268px, calc(env(safe-area-inset-bottom, 16px) + 252px));
}

.shortcuts-bar-pill {
  position: fixed;
  bottom: max(152px, calc(env(safe-area-inset-bottom, 16px) + 136px));
  left: 50%;
  transform: translateX(-50%) translateZ(0);
  -webkit-transform: translateX(-50%) translateZ(0);
  backface-visibility: hidden;
  will-change: transform, opacity, visibility;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border: 1px solid var(--glass-border-light);
  border-radius: var(--radius-full);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.14), var(--glass-border-inner);
  padding: 6px 14px 6px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 30;
  transition: opacity 0.28s var(--easing-spring), transform 0.28s var(--easing-spring), visibility 0.28s ease;
  pointer-events: auto;
  max-width: calc(100vw - 32px);
  white-space: nowrap;
}

.shortcuts-bar-pill.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(14px) scale(0.96) translateZ(0);
}

.shortcuts-bar-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--color-text-primary);
}

.shortcuts-bar-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.shortcuts-bar-sep {
  color: rgba(0, 0, 0, 0.18);
  font-size: 11px;
}

.shortcuts-bar-close {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.06);
  color: var(--color-text-secondary);
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.shortcuts-bar-close:hover {
  background: rgba(0, 0, 0, 0.12);
  color: var(--color-text-primary);
}

.key-cap {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  background: #FFFFFF;
  border: 1px solid var(--glass-border-subtle);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  padding: 1.5px 5px;
  border-radius: 4px;
  color: var(--color-text-primary);
}

/* 18.5. Build by UltronWASM Collapsible Floating Badge */
.ultron-brand-drawer {
  position: fixed;
  bottom: max(18px, env(safe-area-inset-bottom, 18px));
  right: max(18px, env(safe-area-inset-right, 18px));
  z-index: 28;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px 3px 4px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid var(--glass-border-light);
  border-radius: var(--radius-full);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), var(--glass-border-inner);
  transition: transform 0.34s var(--easing-spring), right 0.34s var(--easing-spring), opacity 0.25s ease, border-radius 0.25s ease;
  pointer-events: auto;
  touch-action: manipulation;
}

.ultron-brand-drawer.collapsed {
  right: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  padding-right: 6px;
  transform: translateX(calc(100% - 28px));
  opacity: 0.88;
}

.ultron-brand-drawer.collapsed:hover {
  opacity: 1;
}

.ultron-drawer-toggle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--glass-border-subtle);
  background: rgba(0, 0, 0, 0.04);
  color: var(--color-text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  flex-shrink: 0;
  padding: 0;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.ultron-drawer-toggle:hover {
  background: rgba(0, 0, 0, 0.09);
  color: var(--color-text-primary);
}

.ultron-drawer-toggle svg {
  transition: transform 0.28s var(--easing-spring);
}

.ultron-brand-drawer.collapsed .ultron-drawer-toggle svg {
  transform: rotate(180deg);
}

.ultron-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--color-text-primary);
  text-decoration: none;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  outline: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.ultron-brand-drawer.collapsed .ultron-brand-link {
  pointer-events: none;
  opacity: 0;
}

.ultron-brand-link:hover {
  color: var(--color-apple-blue);
}

.ultron-glyph {
  font-size: 11px;
  color: var(--color-apple-orange);
  line-height: 1;
}

.ultron-accent {
  font-weight: 700;
  color: var(--color-apple-blue);
}

.ultron-arrow {
  color: var(--color-text-secondary);
  transition: transform 0.2s ease, color 0.2s ease;
}

.ultron-brand-link:hover .ultron-arrow {
  color: var(--color-apple-blue);
  transform: translate(1px, -1px);
}

/* 19. Responsive Architecture & Precision Breakpoints */

/* Large Tablets & Compact Desktop Displays (<= 1024px) */
@media (max-width: 1024px) {
  :root {
    --panel-width: calc(100vw - 32px);
  }

  .glass-header {
    min-width: 0;
    width: calc(100% - 24px);
    gap: 8px;
  }

  .vibe-panel-container {
    width: calc(100vw - 32px);
  }

  .seats-grid-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .code-core-area {
    grid-template-columns: 1fr;
  }

  .editor-sidebar {
    display: none;
  }

  .table-card-grid {
    grid-template-columns: 1fr;
  }

  .spatial-radar-pill {
    top: 72px;
    right: 16px;
  }
}

/* Medium Tablets & Large Handhelds (<= 768px) */
@media (max-width: 768px) {
  :root {
    --header-height: 46px;
  }

  .glass-header {
    top: max(8px, env(safe-area-inset-top, 8px));
    width: calc(100% - 16px);
    padding: 0 8px;
    gap: 5px;
    justify-content: space-between;
  }

  .header-divider {
    display: none;
  }

  .header-left {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
  }

  .header-center {
    position: static;
    flex-shrink: 0;
  }

  .header-right {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
  }

  .ambient-pill {
    width: 28px;
    height: 28px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .ambient-pill .pill-label {
    display: none;
  }

  .lang-pill {
    height: 28px;
    padding: 0 7px 0 6px;
    gap: 4px;
  }

  .lang-flag-rotate-box {
    font-size: 13.5px;
  }

  .lang-code-tag {
    font-size: 10px;
  }

  .brand-badge {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 2px;
    gap: 4px;
    min-width: 0;
    flex-shrink: 1;
  }

  .brand-text-group {
    width: auto;
    max-width: 112px;
    min-width: 0;
    justify-content: center;
  }

  .brand-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* 모바일 상단 유형별 팝업 메뉴 버튼 & 드롭다운 카드 */
  .mobile-header-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 28px;
    padding: 0 10px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(0, 113, 227, 0.28);
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.12) 0%, rgba(175, 82, 222, 0.12) 100%);
    color: var(--color-apple-blue);
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    outline: none;
    white-space: nowrap;
    transition: all 0.2s var(--easing-spring);
  }

  .mobile-header-menu-btn.active {
    background: var(--color-apple-blue);
    border-color: var(--color-apple-blue);
    color: #FFFFFF;
    box-shadow: 0 4px 12px var(--color-apple-blue-glow);
  }

  .mobile-menu-chevron {
    transition: transform 0.22s var(--easing-spring);
  }

  .mobile-header-menu-btn.active .mobile-menu-chevron {
    transform: rotate(180deg);
  }

  .header-menu-group {
    position: fixed;
    top: calc(max(8px, env(safe-area-inset-top, 8px)) + var(--header-height) + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(-10px) scale(0.96);
    width: min(340px, calc(100vw - 20px));
    padding: 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(32px) saturate(200%);
    -webkit-backdrop-filter: blur(32px) saturate(200%);
    border: 1px solid var(--glass-border-light);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.22), var(--glass-border-inner);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.24s var(--easing-spring), transform 0.24s var(--easing-spring), visibility 0.24s ease;
    z-index: 60;
  }

  .header-menu-group.mobile-popup-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0) scale(1);
  }

  .header-menu-sep {
    display: none;
  }

  .mobile-menu-popup-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--glass-border-subtle);
  }

  .mobile-menu-popup-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .mobile-menu-popup-title {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--color-text-primary);
  }

  .mobile-menu-popup-close {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.06);
    color: var(--color-text-secondary);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-menu-cat-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    background: rgba(0, 0, 0, 0.045);
    padding: 3px;
    border-radius: 10px;
  }

  .mobile-menu-cat-chip {
    border: none;
    background: transparent;
    padding: 5px 4px;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 10.5px;
    font-weight: 600;
    color: var(--color-text-secondary);
    cursor: pointer;
    white-space: nowrap;
    text-align: center;
    transition: all 0.18s ease;
  }

  .mobile-menu-cat-chip.active {
    background: #FFFFFF;
    color: var(--color-apple-blue);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    font-weight: 700;
  }

  .header-menu-cat-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .header-menu-cat-section.cat-hidden {
    display: none !important;
  }

  .mobile-menu-cat-title {
    display: block;
    font-size: 10.5px;
    font-weight: 700;
    color: var(--color-text-secondary);
    letter-spacing: 0.02em;
    padding-left: 2px;
  }

  .header-menu-cat-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 7px;
  }

  .header-menu-cat-section[data-menu-cat="feedback"] .header-menu-cat-items {
    grid-template-columns: 1fr;
  }

  body.dark-mode .mobile-header-menu-btn {
    background: rgba(0, 113, 227, 0.22);
    border-color: rgba(121, 192, 255, 0.35);
    color: #79C0FF;
  }

  body.dark-mode .mobile-header-menu-btn.active {
    background: var(--color-apple-blue);
    color: #FFFFFF;
  }

  body.dark-mode .header-menu-group {
    background: rgba(22, 22, 30, 0.96);
    border-color: rgba(255, 255, 255, 0.14);
  }

  body.dark-mode .mobile-menu-popup-close {
    background: rgba(255, 255, 255, 0.1);
    color: #D1D1D6;
  }

  body.dark-mode .mobile-menu-cat-tabs {
    background: rgba(255, 255, 255, 0.08);
  }

  body.dark-mode .mobile-menu-cat-chip.active {
    background: rgba(255, 255, 255, 0.18);
    color: #79C0FF;
  }

  .brand-glyph {
    width: 28px;
    height: 28px;
    border-radius: 8px;
  }

  .brand-sub {
    display: none;
  }

  .telemetry-capsule {
    display: none;
  }

  .status-capsule {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    padding: 0 8px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    gap: 4px;
    flex-shrink: 0;
    cursor: pointer;
  }

  .status-capsule .seat-badge {
    display: none;
  }

  .status-capsule .status-pulse-dot {
    width: 6px;
    height: 6px;
    flex-shrink: 0;
  }

  .status-capsule .status-text {
    max-width: 64px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
  }

  .room-capsule {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    padding: 0 8px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    gap: 4px;
    flex-shrink: 0;
  }

  .room-capsule .room-pulse-dot {
    width: 6px;
    height: 6px;
    flex-shrink: 0;
  }

  .room-label {
    max-width: 44px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1;
  }

  .room-capacity-badge {
    display: none !important;
  }

  .header-stage-stop-pill,
  .header-wishtree-pill,
  .header-focus-pill,
  .header-request-pill,
  .header-boost-pill,
  .header-donate-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 36px;
    padding: 0 10px;
    font-size: 12px;
    line-height: 1;
    gap: 5px;
    border-radius: 12px;
    flex-shrink: 0;
  }

  .focus-mixer-glass {
    top: max(60px, calc(env(safe-area-inset-top, 0px) + 60px));
    right: 8px;
    width: 276px;
    max-height: 440px;
    border-radius: var(--radius-lg);
  }

  .focus-mixer-glass.collapsed {
    transform: translateX(calc(100% - 32px));
  }

  .stage-stop-pill-glyph,
  .request-pill-glyph,
  .donate-pill-glyph {
    font-size: 12px;
    line-height: 1;
  }

  .stage-screen-frame.focused-mode {
    border-radius: 12px;
  }

  .stage-live-floating-bar {
    bottom: max(136px, calc(env(safe-area-inset-bottom, 12px) + 124px));
    padding: 5px 6px 5px 12px;
    gap: 8px;
  }

  .stage-floating-status {
    font-size: 11px;
  }

  .stage-floating-btn {
    height: 26px;
    padding: 0 9px;
    font-size: 10.5px;
  }

  .icon-glass-btn {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
  }

  .icon-glass-btn svg {
    width: 15px;
    height: 15px;
  }

  .user-avatar-btn {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
  }

  .avatar-ring {
    width: 28px;
    height: 28px;
    font-size: 9.5px;
    letter-spacing: -0.04em;
    border-width: 1.5px;
    line-height: 1;
    flex-shrink: 0;
  }

  /* 모바일 화면에서 단축키 바 숨김 처리 */
  .shortcuts-bar-pill {
    display: none !important;
  }

  /* 좌측 채팅 히스토리 패널 모바일 최적화 (세로 길이 2배 확대) */
  .chat-history-glass {
    top: max(60px, calc(env(safe-area-inset-top, 0px) + 60px));
    left: 8px;
    width: 240px;
    max-height: 440px;
    border-radius: var(--radius-lg);
  }

  .chat-history-glass.collapsed {
    transform: translateX(calc(-100% + 32px));
  }

  /* 모바일 퀵 액션 클러스터 (하단 스크롤 리액션 바와 겹치지 않도록 상단 배치) */
  .mobile-action-cluster {
    right: max(14px, env(safe-area-inset-right, 14px));
    bottom: max(154px, calc(env(safe-area-inset-bottom, 0px) + 142px));
    gap: 9px;
    z-index: 28;
  }

  .mobile-hud-circle {
    width: 48px;
    height: 48px;
  }

  /* 착석 버튼 바로 아래 & 리액션 바 위에 위치하는 Build by UltronWASM 배지 */
  .ultron-brand-drawer {
    right: max(12px, env(safe-area-inset-right, 12px));
    bottom: max(124px, calc(env(safe-area-inset-bottom, 0px) + 112px));
    padding: 2.5px 8px 2.5px 4px;
    gap: 4px;
  }

  .ultron-brand-drawer.collapsed {
    right: 0;
    transform: translateX(calc(100% - 26px));
  }

  .ultron-brand-link {
    font-size: 10px;
  }

  .asmr-reaction-bar {
    left: 50%;
    transform: translateX(-50%) translateZ(0);
    -webkit-transform: translateX(-50%) translateZ(0);
    bottom: max(82px, calc(env(safe-area-inset-bottom, 12px) + 72px));
    padding: 4px 8px;
    gap: 5px;
    width: max-content;
    max-width: calc(100vw - 16px);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
  }

  .asmr-reaction-btn {
    height: 30px;
    padding: 0 10px;
    font-size: 11.5px;
    gap: 4px;
  }

  .asmr-key {
    display: none;
  }

  .glass-dock {
    padding: 6px 8px;
    gap: 4px;
  }

  .dock-item {
    padding: 4px 8px;
    min-height: 44px;
    min-width: 44px;
  }

  .dock-label {
    font-size: 9px;
  }

  #dock-btn-shortcuts {
    display: none !important;
  }

  .modal-card-glass.wide,
  .modal-card-glass.compact {
    width: calc(100vw - 20px);
    max-width: 440px;
    padding: 16px 14px 28px 14px;
    margin: 10px auto 50px auto;
    max-height: none;
  }
  .modal-badge-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    margin-bottom: 8px;
  }
  .modal-badge-icon svg {
    width: 20px;
    height: 20px;
  }
  .modal-title {
    font-size: 17px;
  }
  .modal-subtitle.text-center {
    font-size: 11.5px;
    margin-bottom: 12px;
    line-height: 1.4;
  }
  .entry-form {
    gap: 12px;
  }

  .dock-expression-popover {
    position: fixed;
    left: 50%;
    bottom: max(96px, calc(env(safe-area-inset-bottom, 0px) + 96px));
    transform: translateX(-50%);
    width: min(290px, calc(100vw - 28px));
  }

  .spatial-chat-container {
    bottom: max(136px, calc(env(safe-area-inset-bottom, 12px) + 124px));
  }

  .chat-glass-pill {
    width: calc(100vw - 20px);
  }

  .vibe-panel-container {
    top: calc(max(8px, env(safe-area-inset-top, 8px)) + var(--header-height) + 8px);
    right: max(6px, env(safe-area-inset-right, 6px));
    bottom: calc(max(12px, env(safe-area-inset-bottom, 12px)) + var(--dock-height) + 10px);
    width: calc(100vw - 12px);
    height: auto;
  }

  .seats-grid-strip {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
}

/* Mobile Screens & Narrow Touch Viewports (<= 480px) */
@media (max-width: 480px) {
  :root {
    --header-height: 44px;
  }

  .glass-header {
    padding: 0 7px;
    gap: 4px;
  }

  .header-left {
    gap: 4px;
  }

  .header-right {
    gap: 4px;
  }

  .brand-badge {
    height: 26px;
    padding: 0 1px;
  }

  .brand-text-group {
    width: auto;
    max-width: 88px;
  }

  .brand-title {
    font-size: 10.5px;
    letter-spacing: -0.03em;
  }

  .status-capsule,
  .room-capsule {
    height: 26px;
    padding: 0 6px;
    font-size: 10px;
    gap: 3px;
  }

  .status-capsule .status-text {
    font-size: 10px;
    max-width: 46px;
  }

  .mobile-header-menu-btn {
    height: 26px;
    padding: 0 8px;
    font-size: 10.5px;
  }

  .ambient-pill {
    width: 26px;
    height: 26px;
  }

  .lang-pill {
    height: 26px;
    padding: 0 5px;
    gap: 2px;
  }

  .lang-code-tag {
    display: none;
  }

  .lang-flag-rotate-box {
    font-size: 14px;
  }

  .header-stage-stop-pill,
  .header-wishtree-pill,
  .header-focus-pill,
  .header-request-pill,
  .header-boost-pill,
  .header-donate-pill {
    height: 34px;
    padding: 0 10px;
    font-size: 11.5px;
    gap: 5px;
  }

  .focus-mixer-glass {
    width: 260px;
    top: max(56px, calc(env(safe-area-inset-top, 0px) + 56px));
    max-height: 400px;
  }

  .stage-stop-pill-glyph,
  .request-pill-glyph,
  .donate-pill-glyph {
    font-size: 11px;
  }

  .stage-screen-frame.focused-mode {
    border-radius: 10px;
  }

  #btn-floating-stage-reload {
    display: none;
  }

  .request-category-chips {
    grid-template-columns: repeat(2, 1fr);
  }

  .icon-glass-btn,
  .user-avatar-btn {
    width: 26px;
    height: 26px;
  }

  .icon-glass-btn svg {
    width: 14px;
    height: 14px;
  }

  .avatar-ring {
    width: 26px;
    height: 26px;
    font-size: 9px;
    letter-spacing: -0.04em;
  }

  .room-label {
    max-width: 38px;
  }

  .chat-history-glass {
    width: 220px;
    top: max(56px, calc(env(safe-area-inset-top, 0px) + 56px));
    max-height: 380px;
  }

  .vibe-panel-container {
    top: calc(max(8px, env(safe-area-inset-top, 8px)) + var(--header-height) + 6px);
    right: 6px;
    bottom: calc(max(10px, env(safe-area-inset-bottom, 10px)) + 54px + 8px);
    left: 6px;
    width: calc(100vw - 12px);
    max-width: calc(100vw - 12px);
    height: auto;
    border-radius: var(--radius-xl);
  }

  .vibe-panel-inner {
    border-radius: var(--radius-xl);
    border: 1px solid var(--dark-glass-border);
    padding-top: 0;
    padding-bottom: 0;
  }

  .editor-header {
    height: auto;
    min-height: 48px;
    padding: 6px 12px;
    flex-wrap: wrap;
    gap: 6px;
  }

  .table-identity {
    gap: 5px;
    flex-wrap: wrap;
  }

  .table-name-tag {
    font-size: 11.5px;
    max-width: 110px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .table-mode-badge {
    display: none;
  }

  .editor-header-actions {
    gap: 6px;
  }

  .vibe-tempo-box {
    padding: 3px 6px;
    font-size: 9.5px;
  }

  .seats-grid-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .dock-expression-popover {
    bottom: max(78px, calc(env(safe-area-inset-bottom, 0px) + 72px));
    width: min(280px, calc(100vw - 24px));
  }

  .asmr-reaction-bar {
    bottom: max(74px, calc(env(safe-area-inset-bottom, 10px) + 64px));
    padding: 3.5px 5px;
    gap: 3.5px;
  }

  .asmr-reaction-btn {
    height: 28px;
    padding: 0 8px;
    font-size: 11px;
    gap: 3.5px;
  }

  .asmr-emoji {
    font-size: 13.5px;
  }

  .dock-wrapper {
    bottom: max(10px, env(safe-area-inset-bottom, 10px));
    width: calc(100% - 12px);
  }

  .glass-dock {
    justify-content: space-around;
    width: 100%;
    padding: 4px;
    border-radius: 18px;
  }

  .dock-item {
    padding: 3px 5px;
    min-height: 42px;
    min-width: 42px;
  }

  .dock-label {
    display: none;
  }

  .dock-separator {
    display: none;
  }

  .dynamic-prompt-island {
    width: calc(100vw - 20px);
    top: max(56px, calc(env(safe-area-inset-top, 0px) + 56px));
    justify-content: space-between;
    padding: 6px 10px;
  }

  .prompt-main {
    font-size: 11.5px;
  }

  .prompt-sub {
    font-size: 9.5px;
  }

  .prompt-keycap {
    display: none;
  }

  .mobile-action-cluster {
    bottom: max(142px, calc(env(safe-area-inset-bottom, 0px) + 130px));
    right: max(12px, env(safe-area-inset-right, 12px));
    gap: 8px;
  }

  .mobile-hud-circle {
    width: 45px;
    height: 45px;
  }

  .ultron-brand-drawer {
    right: max(10px, env(safe-area-inset-right, 10px));
    bottom: max(112px, calc(env(safe-area-inset-bottom, 0px) + 100px));
    padding: 2px 7px 2px 3.5px;
    gap: 3px;
  }

  .ultron-brand-drawer.collapsed {
    right: 0;
    transform: translateX(calc(100% - 25px));
  }

  .ultron-drawer-toggle {
    width: 18px;
    height: 18px;
  }

  .ultron-brand-link {
    font-size: 9.5px;
  }
}

/* 20. Non-Backdrop-Filter Browser Fallback Architecture */
@supports not ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
  .glass-header {
    background: rgba(245, 245, 247, 0.98);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
  }

  .glass-dock {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  }

  .chat-glass-pill {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  }

  .vibe-panel-inner {
    background: rgba(18, 18, 22, 0.98);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  }

  .spatial-radar-pill {
    background: rgba(20, 20, 24, 0.98);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  }

  .dynamic-prompt-island {
    background: rgba(22, 22, 26, 0.98);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  }

  .modal-backdrop {
    background: rgba(0, 0, 0, 0.72);
  }

  .modal-card-glass {
    background: rgba(255, 255, 255, 0.99);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  }

  .shortcuts-capsule-hud {
    background: rgba(245, 245, 247, 0.98);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  }

  .spatial-bubble-pill {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16);
  }
}
```