* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #09090b;
  --surface: #18181b;
  --surface-hover: #27272a;
  --border: #27272a;
  --border-hover: #3f3f46;
  --text: #fafafa;
  --text-muted: #a1a1aa;
  --accent: #fff;
  --radius: 8px;
}

body {
  background: var(--bg);
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: var(--text);
}

/* ── Upload Screen ── */
#upload-screen {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 100;
  background: var(--bg);
}

#upload-screen.hidden { display: none; }

.upload-zone {
  width: 400px;
  max-width: 90vw;
  padding: 48px 32px;
  border: 1px dashed var(--border-hover);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.upload-zone:hover {
  border-color: var(--text-muted);
  background: var(--surface);
}

.upload-zone svg { opacity: 0.3; }

.upload-zone p {
  font-size: 13px;
  color: var(--text-muted);
}

.upload-zone .label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

#file-input { display: none; }

/* ── Slide Viewer ── */
#slide-viewer {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

#slide-canvas {
  max-width: 100vw;
  max-height: 100vh;
  object-fit: contain;
}

/* ── Slide Nav ── */
#slide-nav {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 30;
}

body:hover #slide-nav { opacity: 1; }

.nav-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.nav-btn svg { width: 16px; height: 16px; }

.nav-btn:hover { background: var(--surface-hover); border-color: var(--border-hover); }
.nav-btn:disabled { opacity: 0.25; cursor: default; }

#slide-counter {
  font-size: 12px;
  color: var(--text-muted);
  min-width: 48px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

#btn-upload-more {
  position: fixed;
  bottom: 20px;
  right: 108px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 44px;
  height: 44px;
  border-radius: 10px;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  transition: background 0.15s, border-color 0.15s;
}
#btn-upload-more svg { width: 18px; height: 18px; }

#btn-upload-more:hover { background: var(--surface-hover); color: var(--text); }

/* ── Camera Widget ── */
#cam-widget {
  position: fixed;
  bottom: 80px;
  left: 20px;
  width: 260px;
  height: 195px;
  border-radius: var(--radius);
  overflow: hidden;
  z-index: 50;
  border: 1px solid var(--border);
  background: #000;
  transition: width 0.3s ease, height 0.3s ease, border-radius 0.3s ease,
              bottom 0.3s ease, left 0.3s ease, top 0.3s ease, right 0.3s ease,
              opacity 0.2s ease, box-shadow 0.3s ease;
}

#cam-widget:hover { border-color: var(--border-hover); }

#cam-widget.fullscreen {
  width: 100vw;
  height: 100vh;
  bottom: 0;
  left: 0;
  top: 0;
  right: 0;
  border-radius: 0;
  border: none;
  z-index: 200;
}

#cam-widget.hidden-cam {
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
  border: 0;
}

#cam-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 28px;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
  cursor: grab;
  z-index: 5;
  touch-action: none;
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.2s;
}

#cam-widget:hover #cam-header { opacity: 1; }
#cam-header:active { cursor: grabbing; }

.cam-label {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  padding-left: 6px;
  user-select: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cam-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}

.cam-btn:hover { color: var(--text); background: rgba(255,255,255,0.1); }
.cam-btn svg { width: 14px; height: 14px; }

.cam-btns { display: flex; gap: 1px; }

#cam-widget video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
  display: block;
}

/* ── Circle Mode ── */
#cam-widget.circle {
  width: 180px;
  height: 180px;
  border-radius: 50%;
}

#cam-widget.circle #cam-header {
  justify-content: center;
}

#cam-widget.circle .cam-label { display: none; }

#cam-widget.circle.fullscreen {
  width: 100vw;
  height: 100vh;
  border-radius: 12px;
  top: 0;
  left: 0;
  transform: none;
}

#cam-widget:not(.circle).fullscreen { transform: none; }

/* ── Filter Panel ── */
#filter-panel {
  position: fixed;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  display: none;
  flex-wrap: wrap;
  gap: 4px;
  width: 164px;
  justify-content: flex-end;
  z-index: 55;
}

#filter-panel.open { display: flex; }

.filter-chip {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}

.filter-chip:hover {
  color: var(--text);
  background: var(--surface-hover);
}

.filter-chip.active {
  color: var(--text);
  background: var(--surface-hover);
  border-color: var(--border-hover);
}

/* ── Restore Camera Button ── */
#cam-restore {
  position: fixed;
  bottom: 80px;
  left: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}
#cam-restore svg { width: 16px; height: 16px; }

#cam-restore:hover { background: var(--surface-hover); border-color: var(--border-hover); }

/* ── Soundboard ── */
#soundboard-panel {
  position: fixed;
  bottom: 80px;
  right: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
  display: none;
  gap: 6px;
  width: 220px;
  z-index: 55;
}

#soundboard-panel.open { display: grid; grid-template-columns: 1fr 1fr; }

.sb-btn {
  background: var(--surface-hover);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 6px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.12s, transform 0.1s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  user-select: none;
}

.sb-btn:hover { background: #333; }
.sb-btn:active { transform: scale(0.95); }

.sb-btn .sb-icon { width: 18px; height: 18px; display: inline-block; vertical-align: middle; }

#soundboard-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 55;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
#soundboard-toggle svg { width: 16px; height: 16px; }

#soundboard-toggle:hover { background: var(--surface-hover); color: var(--text); }
#soundboard-toggle.active { background: var(--surface-hover); color: var(--text); border-color: var(--border-hover); }

/* ── Recording ── */
#rec-toggle {
  position: fixed;
  bottom: 20px;
  right: 152px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 55;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
#rec-toggle svg { width: 16px; height: 16px; }

#rec-toggle:hover { background: var(--surface-hover); color: var(--text); }

#rec-delay-panel {
  position: fixed;
  bottom: 64px;
  right: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
  display: none;
  flex-direction: column;
  gap: 6px;
  z-index: 55;
  width: 200px;
}

#rec-delay-panel.open { display: flex; }

.delay-btn {
  background: var(--surface-hover);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}

.delay-btn:hover { background: #333; color: var(--text); }

.rec-section { margin-top: 2px; }

.rec-section-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.rec-opt-row { display: flex; gap: 4px; flex-wrap: wrap; }

.rec-opt-btn {
  flex: 1;
  background: var(--surface-hover);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  text-align: center;
  white-space: nowrap;
}

.rec-opt-btn:hover { background: #333; color: var(--text); }

.rec-opt-btn.sel { background: var(--text); color: var(--bg); border-color: var(--text); }

/* Recording chip (replaces rec-stop) */
#rec-chip {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 14px;
  display: none;
  align-items: center;
  gap: 10px;
  z-index: 55;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

#rec-chip.active { display: flex; }

#rec-chip .rec-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #dc2626;
  animation: rec-pulse 1.5s ease-in-out infinite;
  flex-shrink: 0;
}

#rec-chip .rec-dot.paused { animation: none; background: #f59e0b; }

#rec-chip .rec-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 100px;
}

#rec-chip .rec-timer {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

#rec-chip .rec-size {
  font-size: 10px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.rec-chip-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 28px; height: 28px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rec-chip-btn svg { width: 12px; height: 12px; }
  justify-content: center;
  font-size: 13px;
  font-family: inherit;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  flex-shrink: 0;
}

.rec-chip-btn:hover { background: var(--surface-hover); color: var(--text); }

.rec-chip-btn.stop:hover { background: #dc2626; border-color: #dc2626; color: #fff; }

@keyframes rec-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Recording indicator (top edge glow) */
#rec-indicator {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #dc2626, #ef4444, #dc2626);
  z-index: 298;
  display: none;
  pointer-events: none;
  animation: rec-ind-pulse 2s ease-in-out infinite;
}

#rec-indicator.active { display: block; }

@keyframes rec-ind-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Preview modal */
#rec-preview-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
}

#rec-preview-overlay.active { display: flex; }

#rec-preview-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 480px;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
}

#rec-preview-card h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--text);
}

#rec-preview-video {
  width: 100%;
  border-radius: 6px;
  background: #000;
  margin-bottom: 12px;
}

.rec-preview-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.rec-preview-actions { display: flex; gap: 8px; }

.rec-preview-actions button {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.btn-discard {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.btn-discard:hover { background: #dc2626; border-color: #dc2626; color: #fff; }

.btn-download {
  background: var(--text);
  border: 1px solid var(--text);
  color: var(--bg);
}

.btn-download:hover { opacity: 0.85; }

#rec-countdown {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 300;
  pointer-events: none;
}

#rec-countdown.show { display: flex; }

#rec-countdown span {
  font-size: 120px;
  font-weight: 600;
  color: #fff;
  opacity: 0.6;
  animation: count-pop 0.6s ease-out;
}

@keyframes count-pop {
  0% { transform: scale(1.5); opacity: 0; }
  60% { transform: scale(0.95); opacity: 0.7; }
  100% { transform: scale(1); opacity: 0.6; }
}

/* ── Status ── */
#status {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: var(--text-muted);
  pointer-events: none;
  z-index: 60;
  transition: opacity 0.4s;
}

/* ── Shortcuts Help ── */
#shortcuts-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
}

#shortcuts-overlay.show { display: flex; }

/* ── Onboarding ── */
#onboarding-overlay {
  position: fixed;
  inset: 0;
  z-index: 600;
  pointer-events: none;
  display: none;
}

#onboarding-overlay.active { display: block; }

#onboarding-spotlight {
  position: fixed;
  border-radius: 8px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.75);
  z-index: 601;
  transition: top 0.4s ease, left 0.4s ease, width 0.4s ease, height 0.4s ease;
  pointer-events: none;
}

#onboarding-spotlight.pulse {
  animation: spot-pulse 1.5s ease-in-out infinite;
}

@keyframes spot-pulse {
  0%, 100% { box-shadow: 0 0 0 9999px rgba(0,0,0,0.75); }
  50% { box-shadow: 0 0 0 9999px rgba(0,0,0,0.75), 0 0 0 4px rgba(255,255,255,0.3); }
}

#onboarding-tooltip {
  position: fixed;
  z-index: 602;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  width: 300px;
  pointer-events: auto;
  transition: top 0.4s ease, left 0.4s ease, opacity 0.3s;
}

#onboarding-tooltip h4 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

#onboarding-tooltip p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

.onb-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.onb-dots {
  display: flex;
  gap: 4px;
}

.onb-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.2s;
}

.onb-dot.active { background: var(--text); }

.onb-btns {
  display: flex;
  gap: 8px;
}

.onb-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 5px 14px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.onb-btn:hover { background: var(--surface-hover); color: var(--text); }

.onb-btn.primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.onb-btn.primary:hover { opacity: 0.85; }
.onb-btn.primary:disabled { opacity: 0.3; cursor: default; }

/* Help button */
#help-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-family: inherit;
  cursor: pointer;
  z-index: 55;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
#help-btn svg { width: 16px; height: 16px; }

#help-btn:hover { background: var(--surface-hover); color: var(--text); }

/* ── Developer Panel ── */
#dev-btn {
  position: fixed;
  bottom: 20px;
  left: 64px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  height: 36px;
  padding: 0 12px;
  border-radius: 18px;
  font-size: 11px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  z-index: 55;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background 0.15s, color 0.15s;
}
#dev-btn svg { width: 14px; height: 14px; }

#dev-btn:hover { background: var(--surface-hover); color: var(--text); }

#dev-panel {
  position: fixed;
  bottom: 64px;
  left: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  width: 320px;
  z-index: 55;
  display: none;
}

#dev-panel.open { display: block; }

#dev-panel h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

#dev-panel p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.dev-links {
  display: flex;
  gap: 8px;
}

.dev-link {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 16px;
  background: var(--surface-hover);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  transition: all 0.15s;
  line-height: 1.2;
}

.dev-link:hover {
  transform: translateY(-2px);
  background: #333;
  border-color: var(--border-hover);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.dev-link .link-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dev-link .link-icon svg {
  width: 14px;
  height: 14px;
}

.dev-link .link-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.3;
}

.dev-link .link-sub {
  font-size: 10px;
  font-weight: 400;
  color: var(--text-muted);
}

.shortcuts-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 32px;
  width: 380px;
  max-height: 80vh;
  overflow-y: auto;
}

.shortcuts-card h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text);
}

.shortcut-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
}

.shortcut-row span {
  font-size: 12px;
  color: var(--text-muted);
}

kbd {
  background: var(--surface-hover);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 11px;
  font-family: inherit;
  color: var(--text);
}

.shortcut-section {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-top: 14px;
  margin-bottom: 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  #cam-widget { width: 220px; height: 165px; bottom: 80px; left: 10px; }
  #cam-widget.circle { width: 150px; height: 150px; }
  #cam-restore { left: 10px; bottom: 80px; width: 44px; height: 44px; }
  #dev-panel { width: calc(100vw - 40px); max-width: 360px; left: 10px; bottom: 64px; }
  #soundboard-panel { width: 200px; right: 10px; bottom: 80px; }
  #soundboard-toggle { right: 10px; bottom: 12px; width: 44px; height: 44px; }
  #btn-upload-more { right: 62px; bottom: 12px; width: 44px; height: 44px; }
  #rec-toggle { right: 114px; bottom: 12px; width: 44px; height: 44px; }
  #rec-chip { top: 8px; padding: 6px 12px; gap: 8px; border-radius: 10px; }
  #rec-chip .rec-info { min-width: 90px; }
  #rec-chip .rec-timer { font-size: 13px; }
  #rec-chip .rec-size { font-size: 10px; }
  .rec-chip-btn { width: 32px; height: 32px; }
  #rec-delay-panel { right: 30px; bottom: 62px; }
  #rec-preview-card { width: calc(100vw - 40px); padding: 20px; }
  #help-btn { left: 10px; bottom: 12px; width: 44px; height: 44px; }
  #dev-btn { left: 62px; bottom: 12px; padding: 0 12px; height: 44px; border-radius: 22px; }
  #slide-nav { bottom: 64px; gap: 6px; }
  .nav-btn { width: 40px; height: 40px; }
  .upload-zone { padding: 32px 20px; }
  #filter-panel { width: 160px; }
  .shortcuts-card { width: calc(100vw - 40px); max-width: 380px; padding: 20px; }
  #onboarding-tooltip { width: calc(100vw - 40px) !important; max-width: 300px; }
}

@media (max-width: 480px) {
  #cam-widget { width: 180px; height: 135px; bottom: 74px; left: 8px; }
  #cam-widget.circle { width: 130px; height: 130px; }
  #cam-restore { left: 8px; bottom: 74px; width: 42px; height: 42px; }
  #dev-panel { width: calc(100vw - 20px); max-width: 320px; left: 6px; bottom: 58px; padding: 14px; }
  .dev-links { flex-direction: column; gap: 6px; }
  #soundboard-panel { width: 180px; right: 6px; bottom: 74px; }
  #soundboard-toggle { right: 8px; bottom: 10px; width: 42px; height: 42px; }
  #btn-upload-more { right: 58px; bottom: 10px; width: 42px; height: 42px; }
  #rec-toggle { right: 108px; bottom: 10px; width: 42px; height: 42px; }
  #rec-chip { top: 6px; padding: 5px 10px; gap: 6px; border-radius: 8px; }
  #rec-chip .rec-info { min-width: 80px; }
  #rec-chip .rec-timer { font-size: 12px; }
  #rec-chip .rec-size { font-size: 9px; }
  .rec-chip-btn { width: 30px; height: 30px; }
  #rec-delay-panel { right: 6px; bottom: 58px; width: calc(100vw - 12px); max-width: 230px; }
  #help-btn { left: 8px; bottom: 10px; width: 42px; height: 42px; }
  #dev-btn { left: 58px; bottom: 10px; padding: 0 10px; height: 42px; border-radius: 21px; }
  #slide-nav { bottom: 58px; }
  .nav-btn { width: 38px; height: 38px; }
}
