/* ── Recoil Mobile Design System ── */
/* Extends console.css — do not override root vars, add mobile-specific tokens */

:root {
  --safe-area-top: env(safe-area-inset-top);
  --safe-area-bottom: env(safe-area-inset-bottom);
  --safe-area-left: env(safe-area-inset-left);
  --safe-area-right: env(safe-area-inset-right);
  --tab-bar-height: 56px;
  --header-height: 48px;
  --swipe-approve: rgba(34, 197, 94, 0.3);
  --swipe-reject: rgba(239, 68, 68, 0.3);
}

/* ── Base Overrides ── */

html, body {
  font-size: 16px;
  overflow: hidden;
  height: 100%;
  height: 100dvh;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}

body {
  display: flex;
  flex-direction: column;
}

/* ── Header ── */

.m-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: calc(var(--header-height) + var(--safe-area-top));
  padding-top: var(--safe-area-top);
  padding-left: calc(16px + var(--safe-area-left));
  padding-right: calc(16px + var(--safe-area-right));
  display: flex;
  align-items: center;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-dim);
}

.m-header-identity {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent-cyan);
}

/* ── Tab Bar ── */

.m-tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: calc(var(--tab-bar-height) + var(--safe-area-bottom));
  padding-bottom: var(--safe-area-bottom);
  padding-left: var(--safe-area-left);
  padding-right: var(--safe-area-right);
  display: flex;
  align-items: stretch;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-dim);
}

.m-tab-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 44px;
  min-width: 44px;
  padding: 6px 0;
  border: none;
  background: none;
  color: var(--text-dim);
  cursor: pointer;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  transition: color var(--transition-fast);
}

.m-tab-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent-cyan);
  transition: width var(--transition-fast);
}

.m-tab-btn.active {
  color: var(--accent-cyan);
}

.m-tab-btn.active::before {
  width: 32px;
}

.m-tab-icon {
  width: 22px;
  height: 22px;
}

.m-tab-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.m-tab-badge {
  position: absolute;
  top: 4px;
  right: calc(50% - 20px);
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--accent-red);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
}

/* ── Main View ── */

.m-view {
  position: fixed;
  top: calc(var(--header-height) + var(--safe-area-top));
  bottom: calc(var(--tab-bar-height) + var(--safe-area-bottom));
  left: 0;
  right: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 12px;
  padding-left: calc(12px + var(--safe-area-left));
  padding-right: calc(12px + var(--safe-area-right));
}

/* ── Buttons ── */

.m-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 10px 20px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.m-btn:active {
  background: var(--bg-active);
}

.m-btn-success {
  border-color: var(--accent-green);
  color: var(--accent-green);
}

.m-btn-success:active {
  background: var(--accent-green-dim);
}

.m-btn-danger {
  border-color: var(--accent-red);
  color: var(--accent-red);
}

.m-btn-danger:active {
  background: var(--accent-red-dim);
}

/* ── Card ── */

.m-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-lg);
  padding: 14px;
  margin-bottom: 10px;
}

.m-card-header {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

/* ── Toast ── */

.m-toast {
  position: fixed;
  bottom: calc(var(--tab-bar-height) + var(--safe-area-bottom) + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  max-width: calc(100vw - 32px);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 12px;
  text-align: center;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: transform 300ms ease, opacity 300ms ease;
}

.m-toast.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ── Empty State ── */

.m-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ── Loading Spinner ── */

.m-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 0;
}

.m-loading::after {
  content: '';
  width: 28px;
  height: 28px;
  border: 2px solid var(--border-dim);
  border-top-color: var(--accent-cyan);
  border-radius: 50%;
  animation: m-spin 0.8s linear infinite;
}

@keyframes m-spin {
  to { transform: rotate(360deg); }
}

/* ── Shot Grid ── */

.m-shot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.m-shot-card {
  position: relative;
  aspect-ratio: 9 / 16;
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.m-shot-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.m-shot-card-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 6px 8px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.m-shot-card-status {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
}

.m-shot-card-status.approved { background: var(--accent-green); }
.m-shot-card-status.rejected { background: var(--accent-red); }
.m-shot-card-status.pending  { background: var(--accent-amber); }

/* ── Frame Viewer ── */

.m-frame-viewer {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
}

.m-frame-viewer-header {
  height: calc(var(--header-height) + var(--safe-area-top));
  padding-top: var(--safe-area-top);
  padding-left: calc(12px + var(--safe-area-left));
  padding-right: calc(12px + var(--safe-area-right));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-dim);
  flex-shrink: 0;
}

.m-frame-viewer-header .m-btn {
  min-height: 36px;
  padding: 6px 12px;
  font-size: 11px;
}

.m-frame-img-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 8px;
}

.m-frame-img {
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

/* ── Take Strip ── */

.m-take-strip {
  flex-shrink: 0;
  display: flex;
  gap: 8px;
  padding: 8px 12px;
  padding-left: calc(12px + var(--safe-area-left));
  padding-right: calc(12px + var(--safe-area-right));
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-top: 1px solid var(--border-dim);
}

.m-take-strip-thumb {
  flex-shrink: 0;
  width: 48px;
  height: 80px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.m-take-strip-thumb.active {
  border-color: var(--accent-cyan);
}

.m-take-strip-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Action Bar ── */

.m-action-bar {
  flex-shrink: 0;
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  padding-left: calc(12px + var(--safe-area-left));
  padding-right: calc(12px + var(--safe-area-right));
  padding-bottom: calc(10px + var(--safe-area-bottom));
  background: var(--bg-primary);
  border-top: 1px solid var(--border-dim);
}

.m-action-bar .m-btn {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
}

/* ── Swipe Feedback ── */

.m-swipe-approve {
  box-shadow: inset 0 0 0 3px var(--swipe-approve);
}

.m-swipe-reject {
  box-shadow: inset 0 0 0 3px var(--swipe-reject);
}

/* ── Utility ── */

.m-mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.5px;
}

.m-text-dim { color: var(--text-dim); }
.m-text-cyan { color: var(--accent-cyan); }
.m-text-green { color: var(--accent-green); }
.m-text-amber { color: var(--accent-amber); }
.m-text-red { color: var(--accent-red); }

/* ══════════════════════════════════════════════════════════════════
   iOS Safari Hardening (from Gemini adversarial consultation)
   ══════════════════════════════════════════════════════════════════ */

/* Kill double-tap zoom + 300ms delay on all interactive elements */
.m-btn, .m-tab-btn, .m-shot-card, .take-dot, .close-btn,
.dailies-action-btn, .regen-btn, .half-sheet-handle {
  touch-action: manipulation;
}

/* Prevent long-press context menu on images and take dots */
.dailies-frame img, .take-dots-area, .m-frame-img,
.half-sheet-take-thumb img {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

/* ══════════════════════════════════════════════════════════════════
   Dailies Viewer (Full-Screen)
   ══════════════════════════════════════════════════════════════════ */

.dailies-viewer {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
}

.dailies-viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  padding-top: calc(8px + env(safe-area-inset-top));
  padding-left: calc(12px + env(safe-area-inset-left));
  padding-right: calc(12px + env(safe-area-inset-right));
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-dim);
  flex-shrink: 0;
  min-height: 44px;
}

.dailies-viewer-header .close-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  color: var(--text-primary);
  font-size: 18px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.dailies-viewer-header .progress-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 1px;
}

.dailies-viewer-header .shot-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

.dailies-frame-area {
  flex: 1;
  position: relative;
  overflow: hidden;
  touch-action: pinch-zoom;
}

.dailies-frame-area.is-zoomed {
  touch-action: pan-x pan-y pinch-zoom;
}

.dailies-frame-img {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  transition: transform 300ms ease, opacity 300ms ease;
}

.dailies-frame-img.transitioning {
  will-change: transform;
}

.dailies-frame-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius-sm);
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

/* Visual feedback flash (replaces haptics) */
.dailies-frame-img.flash-green {
  animation: flash-green 300ms ease;
}
.dailies-frame-img.flash-red {
  animation: flash-red 300ms ease;
}

@keyframes flash-green {
  0% { box-shadow: inset 0 0 0 0 rgba(34, 197, 94, 0); }
  50% { box-shadow: inset 0 0 0 4px rgba(34, 197, 94, 0.6); }
  100% { box-shadow: inset 0 0 0 0 rgba(34, 197, 94, 0); }
}

@keyframes flash-red {
  0% { box-shadow: inset 0 0 0 0 rgba(239, 68, 68, 0); }
  50% { box-shadow: inset 0 0 0 4px rgba(239, 68, 68, 0.6); }
  100% { box-shadow: inset 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Skip indicator */
.dailies-skip-indicator {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 12px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--text-dim);
  opacity: 0;
  transition: opacity 200ms ease;
  pointer-events: none;
}

.dailies-skip-indicator.visible {
  opacity: 1;
}

/* Take dots area — 48px tap target */
.take-dots-area {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 48px;
  padding: 8px 16px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.take-dots-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  margin-right: 8px;
  letter-spacing: 0.5px;
}

.take-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-dim);
  cursor: pointer;
  transition: background 200ms ease, transform 200ms ease;
}

.take-dot.active {
  background: var(--accent-cyan);
  transform: scale(1.3);
}

.take-dot.reviewed {
  background: var(--text-dim);
}

/* Peek strip (toggled via tap on dots area) */
.dailies-peek-strip {
  flex-shrink: 0;
  display: none;
  gap: 6px;
  padding: 6px 12px;
  padding-left: calc(12px + env(safe-area-inset-left));
  padding-right: calc(12px + env(safe-area-inset-right));
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-top: 1px solid var(--border-dim);
}

.dailies-peek-strip.visible {
  display: flex;
}

.dailies-peek-thumb {
  flex-shrink: 0;
  width: 40px;
  height: 71px; /* 9:16 */
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.dailies-peek-thumb.active {
  border-color: var(--accent-cyan);
}

.dailies-peek-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Action bar for dailies viewer */
.dailies-action-bar {
  flex-shrink: 0;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  padding-left: calc(12px + env(safe-area-inset-left));
  padding-right: calc(12px + env(safe-area-inset-right));
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  background: var(--bg-primary);
  border-top: 1px solid var(--border-dim);
}

.dailies-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 2px solid var(--border-default);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 150ms ease, border-color 150ms ease;
}

.dailies-action-btn:active {
  background: var(--bg-active);
}

.dailies-action-btn.keep-btn {
  border-color: var(--accent-green);
  color: var(--accent-green);
}

.dailies-action-btn.keep-btn:active {
  background: rgba(34, 197, 94, 0.15);
}

.dailies-action-btn.reject-btn {
  border-color: var(--accent-red);
  color: var(--accent-red);
}

.dailies-action-btn.reject-btn:active {
  background: rgba(239, 68, 68, 0.15);
}

.regen-btn {
  width: 44px;
  min-height: 44px;
  flex: 0 0 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-md);
  background: none;
  color: var(--text-dim);
  font-size: 18px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 200ms ease;
}

.regen-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.regen-btn.spinning::after {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid var(--border-dim);
  border-top-color: var(--accent-cyan);
  border-radius: 50%;
  animation: m-spin 0.8s linear infinite;
}

/* ══════════════════════════════════════════════════════════════════
   Toast Queue (stacking, max 3)
   ══════════════════════════════════════════════════════════════════ */

.m-toast-container {
  position: fixed;
  bottom: calc(var(--tab-bar-height) + var(--safe-area-bottom) + 16px);
  left: 16px;
  right: 16px;
  z-index: 300;
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
  pointer-events: none;
}

/* Toasts inside viewer go above action bar, no tab bar offset */
.dailies-viewer .m-toast-container {
  bottom: calc(84px + env(safe-area-inset-bottom));
}

.m-toast-item {
  padding: 10px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-default);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  pointer-events: auto;
  animation: toast-in 200ms ease;
}

.m-toast-item.removing {
  animation: toast-out 200ms ease forwards;
}

.m-toast-item .toast-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.m-toast-item .toast-action-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--accent-cyan);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  -webkit-tap-highlight-color: transparent;
}

@keyframes toast-in {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes toast-out {
  from { transform: translateY(0); opacity: 1; }
  to { transform: translateY(20px); opacity: 0; }
}

/* ══════════════════════════════════════════════════════════════════
   Half-Sheet (Previz detail)
   ══════════════════════════════════════════════════════════════════ */

.half-sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(0, 0, 0, 0.5);
  animation: fade-in 200ms ease;
}

.half-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 151;
  max-height: 65vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-default);
  border-radius: 16px 16px 0 0;
  padding-bottom: env(safe-area-inset-bottom);
  animation: slide-up 250ms ease;
}

.half-sheet-handle {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  cursor: grab;
}

.half-sheet-handle::after {
  content: '';
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: var(--border-default);
}

.half-sheet-header {
  flex-shrink: 0;
  padding: 0 16px 12px;
}

.half-sheet-header .shot-title {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.half-sheet-header .shot-subtitle {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 2px;
  letter-spacing: 0.5px;
}

.half-sheet-content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 16px;
}

.half-sheet-take-strip {
  display: flex;
  gap: 8px;
  padding: 8px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.half-sheet-take-thumb {
  flex-shrink: 0;
  width: 56px;
  height: 100px; /* 9:16 */
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.half-sheet-take-thumb.active {
  border-color: var(--accent-cyan);
}

.half-sheet-take-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.half-sheet-prompt {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.6;
  padding: 8px 0;
  border-top: 1px solid var(--border-dim);
}

.half-sheet-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 1px;
  padding: 8px 0;
}

.half-sheet-actions {
  flex-shrink: 0;
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  margin-top: auto;
  border-top: 1px solid var(--border-dim);
}

.half-sheet-actions .m-btn {
  flex: 1;
  min-height: 44px;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slide-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════════════════
   Dailies Zero State
   ══════════════════════════════════════════════════════════════════ */

.dailies-zero-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
  text-align: center;
}

.dailies-zero-state .check-icon {
  font-size: 48px;
  color: var(--accent-green);
  margin-bottom: 16px;
  opacity: 0.7;
}

.dailies-zero-state .title {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.dailies-zero-state .subtitle {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 1px;
}

/* ══════════════════════════════════════════════════════════════════
   Info Overlay (on frame tap in dailies)
   ══════════════════════════════════════════════════════════════════ */

.dailies-info-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10;
  padding: 24px 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: none;
}

.dailies-info-overlay.visible {
  display: block;
}

.dailies-info-overlay .info-row {
  margin-bottom: 12px;
}

.dailies-info-overlay .info-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.dailies-info-overlay .info-value {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-primary);
}

/* ══════════════════════════════════════════════════════════════════
   v1.1 — Segmented Control (Sliding Pill)
   ══════════════════════════════════════════════════════════════════ */

.dailies-mode-bar {
  position: relative;
  display: flex;
  flex-shrink: 0;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-dim);
  padding: 4px;
  gap: 0;
}

.segment-pill {
  position: absolute;
  top: 4px;
  height: calc(100% - 8px);
  background: rgba(6, 182, 212, 0.2);
  border: 1px solid rgba(6, 182, 212, 0.4);
  border-radius: var(--radius-md);
  transition: left 400ms cubic-bezier(0.22, 1, 0.36, 1),
              width 400ms cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.segment-label {
  flex: 1;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: none;
  background: none;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--text-dim);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: color 200ms ease;
}

.segment-label.active {
  color: var(--accent-cyan);
}

/* ══════════════════════════════════════════════════════════════════
   v1.1 — Radial Pulse Rings
   ══════════════════════════════════════════════════════════════════ */

@keyframes approve-pulse {
  0%   { transform: scale(0); opacity: 0.6; }
  60%  { opacity: 0.3; }
  100% { transform: scale(3); opacity: 0; }
}

.pulse-ring {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 20;
  animation: approve-pulse 600ms ease-out forwards;
}

.pulse-ring--keep {
  background: radial-gradient(circle, rgba(234, 179, 8, 0.5), transparent 70%);
}

.pulse-ring--approve {
  background: radial-gradient(circle, rgba(34, 197, 94, 0.5), transparent 70%);
}

.pulse-ring--reject {
  background: radial-gradient(circle, rgba(239, 68, 68, 0.5), transparent 70%);
}

/* ══════════════════════════════════════════════════════════════════
   v1.1 — Button Press Scale Bounce
   ══════════════════════════════════════════════════════════════════ */

.dailies-action-btn:active {
  transform: scale(0.92);
  transition: transform 60ms ease;
}

.dailies-action-btn {
  transition: transform 150ms cubic-bezier(0.22, 1, 0.36, 1),
              background 150ms ease, border-color 150ms ease;
}

/* ══════════════════════════════════════════════════════════════════
   v1.1 — Vignette Flash
   ══════════════════════════════════════════════════════════════════ */

.dailies-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 15;
  opacity: 0;
  transition: opacity 300ms ease;
}

.dailies-vignette.active {
  opacity: 1;
}

.vignette-red {
  background: radial-gradient(ellipse at center, transparent 40%, rgba(239, 68, 68, 0.25) 100%);
}

.vignette-green {
  background: radial-gradient(ellipse at center, transparent 40%, rgba(34, 197, 94, 0.25) 100%);
}

/* ══════════════════════════════════════════════════════════════════
   v1.1 — Rising Star
   ══════════════════════════════════════════════════════════════════ */

@keyframes rising-star {
  0%   { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
  100% { transform: translate(-50%, calc(-50% - 40px)) scale(1.3); opacity: 0; }
}

.rising-star {
  position: absolute;
  font-size: 24px;
  color: var(--accent-amber);
  pointer-events: none;
  z-index: 20;
  animation: rising-star 500ms ease-out forwards;
}

/* ══════════════════════════════════════════════════════════════════
   v1.1 — Button Variants
   ══════════════════════════════════════════════════════════════════ */

.dailies-action-btn.bin-btn {
  border-color: var(--accent-red);
  color: var(--accent-red);
}

.dailies-action-btn.bin-btn:active {
  background: rgba(239, 68, 68, 0.15);
}

.dailies-action-btn.approve-btn {
  border-color: var(--accent-green);
  background: var(--accent-green);
  color: var(--bg-primary);
}

.dailies-action-btn.approve-btn:active {
  background: rgba(34, 197, 94, 0.8);
}

.dailies-action-btn.remove-btn {
  border-color: var(--border-default);
  color: var(--text-dim);
}

.dailies-action-btn.restore-btn {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  flex: 1;
}

/* ══════════════════════════════════════════════════════════════════
   v1.1 — Provenance Badge
   ══════════════════════════════════════════════════════════════════ */

.dailies-provenance {
  position: absolute;
  bottom: 8px;
  left: 8px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
  z-index: 5;
  display: none;
}

/* ══════════════════════════════════════════════════════════════════
   v1.1 — Lock Ceremony
   ══════════════════════════════════════════════════════════════════ */

@keyframes lock-glow-sweep {
  0%   { border-color: transparent; box-shadow: none; }
  50%  { border-color: var(--accent-green); box-shadow: 0 0 20px rgba(34, 197, 94, 0.4); }
  100% { border-color: var(--accent-green); box-shadow: 0 0 30px rgba(34, 197, 94, 0.2); }
}

.dailies-frame-img.lock-glow {
  animation: lock-glow-sweep 200ms ease forwards;
  border: 2px solid transparent;
}

.lock-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 28px;
  z-index: 25;
  animation: lock-badge-in 300ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes lock-badge-in {
  0%   { transform: scale(0); opacity: 0; }
  60%  { transform: scale(1.3); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes lock-particle-fly {
  0%   { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(0); opacity: 0; }
}

.lock-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  z-index: 25;
  pointer-events: none;
  animation: lock-particle-fly 500ms ease-out forwards;
}

/* ══════════════════════════════════════════════════════════════════
   v1.1 — Compare Interstitial
   ══════════════════════════════════════════════════════════════════ */

.compare-interstitial {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-primary);
  letter-spacing: 1px;
  z-index: 30;
  animation: fade-in 200ms ease;
}

.compare-interstitial.fade-out {
  animation: fade-out 300ms ease forwards;
}

@keyframes fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* ══════════════════════════════════════════════════════════════════
   v1.1 — Zero State Check Animation
   ══════════════════════════════════════════════════════════════════ */

.zero-check-svg .zero-check-path {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: draw-check 600ms ease-out 200ms forwards;
}

@keyframes draw-check {
  to { stroke-dashoffset: 0; }
}

/* ══════════════════════════════════════════════════════════════════
   v1.1 — Session Stats Bar
   ══════════════════════════════════════════════════════════════════ */

.session-stats-bar {
  display: flex;
  justify-content: space-around;
  padding: 8px 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-md);
  margin-top: 12px;
}

.session-stat {
  text-align: center;
}

.session-stat-value {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-cyan);
  font-weight: 600;
}

.session-stat-label {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-dim);
  letter-spacing: 1px;
  margin-top: 2px;
}

/* ══════════════════════════════════════════════════════════════════
   v1.1 — Activity Feed
   ══════════════════════════════════════════════════════════════════ */

.activity-feed {
  margin-top: 8px;
  max-height: 100px;
  overflow: hidden;
}

.activity-item {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  opacity: 0.6;
  padding: 3px 0;
  animation: feed-slide-up 300ms ease-out;
}

@keyframes feed-slide-up {
  from { transform: translateY(10px); opacity: 0; }
  to { transform: translateY(0); opacity: 0.6; }
}

/* ══════════════════════════════════════════════════════════════════
   v1.1 — Live Indicator
   ══════════════════════════════════════════════════════════════════ */

.live-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  animation: live-pulse 2s ease-in-out infinite;
}

.live-dot.offline {
  background: var(--accent-red);
  animation: none;
}

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

/* ══════════════════════════════════════════════════════════════════
   v1.1 — Animated Number Counter
   ══════════════════════════════════════════════════════════════════ */

.animated-counter {
  display: inline-block;
}

/* ══════════════════════════════════════════════════════════════════
   v1.1 — Startup Cascade
   ══════════════════════════════════════════════════════════════════ */

.cascade-card {
  opacity: 0;
  transform: translateY(12px);
  animation: cascade-in 300ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes cascade-in {
  to { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════════════════
   v1.1 — Reduced Motion
   ══════════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  .pulse-ring,
  .rising-star,
  .lock-badge,
  .lock-particle,
  .compare-interstitial,
  .cascade-card,
  .activity-item,
  .zero-check-svg .zero-check-path {
    animation-duration: 0ms !important;
  }

  .segment-pill,
  .dailies-action-btn,
  .dailies-frame-img {
    transition-duration: 0ms !important;
  }
}
