/* ============================================================
   Clara — Design Tokens
   ============================================================ */
:root {
  /* Surfaces (4-layer dark system) */
  --bg-base: #0c0c0e;
  --bg-surface: #141416;
  --bg-elevated: #1c1c20;
  --bg-overlay: #242428;

  /* Text hierarchy */
  --text-primary: #f0f0f2;
  --text-secondary: #a0a0a8;
  --text-tertiary: #606068;

  /* Borders */
  --border-subtle: #1e1e22;
  --border-default: #2a2a30;
  --border-strong: #3a3a42;

  /* Accents */
  --accent-green: #4ade80;
  --accent-green-hover: #22c55e;
  --accent-cyan: #22d3ee;
  --accent-amber: #fbbf24;
  --accent-amber-hover: #f59e0b;
  --accent-red: #ef4444;
  --accent-purple: #a78bfa;
  --accent-pink: #e1306c;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Typography */
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --text-xs: 11px;
  --text-sm: 13px;
  --text-base: 15px;
  --text-lg: 18px;
  --text-xl: 22px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.5);

  /* Layout */
  --sidebar-width: 240px;
  --nav-height: 56px;
  --bottom-bar-height: 56px;
  --content-max-width: 1400px;

  /* Effects */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --backdrop-blur: blur(12px) saturate(150%);
}

/* ============================================================
   Base — Reset & Global
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-family); background: var(--bg-base); color: var(--text-primary); }

h1 { font-size: var(--text-xl); margin-bottom: var(--space-1); }
.subtitle { color: var(--text-secondary); font-size: var(--text-sm); margin-bottom: var(--space-3); }

.btn { background: var(--bg-elevated); color: var(--text-primary); padding: 7px 14px; border-radius: var(--radius-sm); text-decoration: none; font-size: var(--text-sm); border: 1px solid var(--border-default); cursor: pointer; display: inline-flex; align-items: center; gap: 4px; transition: all var(--transition-fast); }
.btn:hover { background: var(--bg-overlay); border-color: var(--border-strong); }
.btn-green { background: var(--accent-green); color: #111; border-color: var(--accent-green); }
.btn-green:hover { background: var(--accent-green-hover); border-color: var(--accent-green-hover); }
.btn-story { background: #7c3aed; color: #fff; border-color: #7c3aed; }
.btn-story:hover { background: #6d28d9; border-color: #6d28d9; }

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

/* ============================================================
   Sidebar (Desktop)
   ============================================================ */
.sidebar {
  position: fixed; left: 0; top: 0; bottom: 0;
  width: var(--sidebar-width);
  background: var(--bg-surface);
  border-right: 1px solid var(--border-subtle);
  display: flex; flex-direction: column;
  z-index: 50;
  transition: width var(--transition-normal);
}
.sidebar.collapsed { width: 56px; }
.sidebar.collapsed .sidebar-link span,
.sidebar.collapsed .sidebar-footer select,
.sidebar.collapsed .sidebar-footer #gen-text,
.sidebar.collapsed .sidebar-footer #sync-text,
.sidebar.collapsed .sidebar-header .sidebar-logo { display: none; }
.sidebar.collapsed .sidebar-toggle svg { transform: rotate(180deg); }

.sidebar-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-4) var(--space-4) var(--space-2);
  flex-shrink: 0;
}
.sidebar-logo {
  font-size: var(--text-lg); font-weight: 700; color: var(--text-primary);
  text-decoration: none; letter-spacing: 0.5px;
}
.sidebar-toggle {
  background: none; border: none; color: var(--text-tertiary);
  cursor: pointer; padding: var(--space-1); border-radius: var(--radius-sm);
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
}
.sidebar-toggle:hover { color: var(--text-primary); background: var(--bg-elevated); }

.sidebar-nav {
  flex: 1; padding: var(--space-2); display: flex; flex-direction: column;
  gap: 2px; overflow-y: auto;
}

.sidebar-link {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-3);
  color: var(--text-secondary); text-decoration: none;
  border-radius: var(--radius-md); font-size: var(--text-sm);
  transition: all var(--transition-fast);
  white-space: nowrap; overflow: hidden;
  border-left: 2px solid transparent;
}
.sidebar-link:hover { color: var(--text-primary); background: var(--bg-elevated); }
.sidebar-link.active {
  color: var(--accent-green); background: rgba(74, 222, 128, 0.08);
  border-left-color: var(--accent-green);
}
.sidebar-link svg { flex-shrink: 0; width: 20px; height: 20px; }

.sidebar-footer {
  padding: var(--space-3) var(--space-4) var(--space-4);
  border-top: 1px solid var(--border-subtle);
  display: flex; flex-direction: column; gap: var(--space-2);
  flex-shrink: 0;
}
.sidebar-footer select {
  background: var(--bg-elevated); color: var(--text-primary);
  border: 1px solid var(--border-default); padding: var(--space-2);
  border-radius: var(--radius-sm); font-size: var(--text-xs); width: 100%;
}
.sidebar-indicators {
  display: flex; flex-direction: column; gap: var(--space-1);
  font-size: var(--text-xs); color: var(--text-secondary);
}
.sidebar-indicators > span { display: flex; align-items: center; gap: var(--space-1); cursor: pointer; }
.indicator-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--text-tertiary); flex-shrink: 0;
}
.gen-dot { background: var(--accent-amber); animation: pulse 1.5s infinite; }

/* ============================================================
   Bottom Tabs (Mobile)
   ============================================================ */
.bottom-tabs {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  height: calc(var(--bottom-bar-height) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  justify-content: space-around; align-items: center;
  z-index: 50;
}
.tab-item {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: var(--space-1) var(--space-2);
  color: var(--text-tertiary); text-decoration: none;
  font-size: 10px; border: none; background: none; cursor: pointer;
  min-width: 48px; min-height: 48px; justify-content: center;
  transition: color var(--transition-fast);
}
.tab-item:hover, .tab-item.active { color: var(--accent-green); }
.tab-item svg { width: 22px; height: 22px; }

/* ============================================================
   More Menu (Mobile bottom sheet)
   ============================================================ */
.more-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.5); z-index: 60;
}
.more-overlay.open { display: block; }
.more-menu {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--bg-surface); border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  padding: var(--space-4); padding-bottom: calc(var(--space-4) + env(safe-area-inset-bottom));
  z-index: 61;
  transform: translateY(100%); transition: transform 0.3s ease;
}
.more-menu.open { display: block; transform: translateY(0); }
.more-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: var(--space-3); font-weight: 600; color: var(--text-primary);
}
.more-header button {
  background: none; border: none; color: var(--text-secondary);
  font-size: 24px; cursor: pointer; padding: var(--space-1);
}
.more-item {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-3); color: var(--text-secondary); text-decoration: none;
  border-radius: var(--radius-md); font-size: var(--text-sm);
}
.more-item:hover, .more-item.active { color: var(--accent-green); background: var(--bg-elevated); }
.more-item svg { width: 20px; height: 20px; }
.more-indicators { flex-direction: column; align-items: flex-start; gap: var(--space-1); font-size: var(--text-xs); }

/* ============================================================
   Main Content Area
   ============================================================ */
.main-content {
  margin-left: var(--sidebar-width);
  padding: var(--space-6);
  max-width: calc(var(--content-max-width) + var(--sidebar-width));
  min-height: 100vh;
  transition: margin-left var(--transition-normal);
}
.sidebar.collapsed ~ .main-content { margin-left: 56px; }

/* ============================================================
   Responsive: Mobile
   ============================================================ */
@media (max-width: 768px) {
  .sidebar { display: none; }
  .bottom-tabs { display: flex; }
  .main-content {
    margin-left: 0;
    padding: var(--space-3);
    padding-bottom: calc(var(--bottom-bar-height) + var(--space-4) + env(safe-area-inset-bottom));
    max-width: 100%;
  }
  h1 { font-size: var(--text-lg); }
  .subtitle { font-size: var(--text-xs); margin-bottom: var(--space-3); }
}

.btn-yellow { background: var(--accent-amber); color: #111; border-color: var(--accent-amber); }
.btn-yellow:hover { background: var(--accent-amber-hover); border-color: var(--accent-amber-hover); }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-red { background: var(--accent-red); color: #fff; border-color: var(--accent-red); }
.btn-red:hover { background: #dc2626; }

/* ============================================================
   Filter chips
   ============================================================ */
.filter-chip {
  background: var(--bg-elevated); color: var(--text-secondary);
  border: 1px solid var(--border-default); padding: 5px 12px;
  border-radius: var(--radius-full); font-size: var(--text-xs);
  cursor: pointer; transition: all var(--transition-fast); white-space: nowrap;
}
.filter-chip:hover { color: var(--text-primary); border-color: var(--border-strong); }
.filter-chip.active { background: var(--accent-green); color: #111; border-color: var(--accent-green); font-weight: 600; }
.btn-green:hover { background: var(--accent-green-hover); }
.btn-yellow { background: var(--accent-amber); color: #111; }
.btn-yellow:hover { background: var(--accent-amber-hover); }
.btn-sm { padding: 4px 10px; font-size: 12px; }

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

/* ============================================================
   Collapsible sections
   ============================================================ */
.collapse-header { display: flex; justify-content: space-between; align-items: center; cursor: pointer; user-select: none; padding: var(--space-2) 0; }
.collapse-header h2 { margin: 0; }
.collapse-chevron { font-size: 10px; color: var(--text-tertiary); transition: transform 0.2s; display: inline-flex; align-items: center; }
.collapse-header.open .collapse-chevron { transform: rotate(180deg); }
.collapse-body { overflow: hidden; max-height: 0; opacity: 0; transition: max-height 0.3s ease, opacity 0.2s ease; }
.collapse-body.open { max-height: 2000px; opacity: 1; }

/* ============================================================
   Unified toolbar bar
   ============================================================ */
.toolbar-bar { display: flex; gap: var(--space-2); align-items: center; flex-wrap: wrap; margin-bottom: var(--space-3); position: sticky; top: 0; z-index: 10; background: var(--bg-base); padding: var(--space-2) 0; }
.toolbar-label { color: var(--text-tertiary); font-size: var(--text-xs); white-space: nowrap; }
.toolbar-sep { width: 1px; height: 16px; background: var(--border-default); flex-shrink: 0; }
.toolbar-group { display: flex; gap: var(--space-1); align-items: center; }

.toolbar-bar button { background: var(--bg-elevated); color: var(--text-secondary); border: 1px solid var(--border-default); padding: 5px 12px; border-radius: var(--radius-full); font-size: var(--text-xs); cursor: pointer; transition: all var(--transition-fast); white-space: nowrap; }
.toolbar-bar button:hover { color: var(--text-primary); border-color: var(--border-strong); background: var(--bg-overlay); }
.toolbar-bar button.active { background: var(--accent-green); color: #111; border-color: var(--accent-green); font-weight: 600; }

.toolbar-bar select { background: var(--bg-elevated); color: var(--text-primary); border: 1px solid var(--border-default); padding: 5px 10px; border-radius: var(--radius-sm); font-size: var(--text-xs); cursor: pointer; }

/* ============================================================
   Index — Scenes Grid
   ============================================================ */
.filters {
  display: flex; gap: var(--space-2); margin-bottom: var(--space-4);
  flex-wrap: wrap; align-items: center;
  overflow-x: auto; padding-bottom: 2px;
  position: sticky; top: 0; z-index: 10; background: var(--bg-base);
}
.filters select {
  background: var(--bg-elevated); color: var(--text-primary);
  border: 1px solid var(--border-default); padding: 5px 10px;
  border-radius: var(--radius-sm); font-size: var(--text-xs); cursor: pointer;
}
.filters button {
  background: var(--bg-elevated); color: var(--text-secondary);
  border: 1px solid var(--border-default); padding: 5px 12px;
  border-radius: var(--radius-full); font-size: var(--text-xs); cursor: pointer;
  transition: all var(--transition-fast); white-space: nowrap;
}
.filters button:hover { color: var(--text-primary); border-color: var(--border-strong); background: var(--bg-overlay); }
.filters button.active { background: var(--accent-green); color: #111; border-color: var(--accent-green); font-weight: 600; }

.scenes { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--space-4); }
.scene-card {
  background: var(--bg-surface); border-radius: var(--radius-lg); overflow: hidden;
  cursor: pointer; transition: transform var(--transition-fast), border-color var(--transition-fast);
  border: 1px solid var(--border-subtle);
  display: flex; flex-direction: column;
}
.scene-card:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.scene-card.has-tens { border-color: rgba(34, 211, 238, 0.3); }
.scene-thumb { width: 100%; object-fit: cover; object-position: center top; display: block; background: var(--bg-base); aspect-ratio: 4/3; }
.scene-info { padding: var(--space-3) var(--space-4) var(--space-4); flex: 1; display: flex; flex-direction: column; }
.scene-name { font-size: var(--text-base); font-weight: 600; margin-bottom: 3px; color: var(--text-primary); }
.scene-outfit { font-size: var(--text-xs); color: var(--text-tertiary); margin-bottom: var(--space-2); line-height: 1.4; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.scene-stats { display: flex; gap: var(--space-3); font-size: var(--text-xs); }
.stat-num { font-weight: 600; }
.badge-green { color: var(--accent-green); }
.badge-yellow { color: var(--accent-amber); }
.badge-cyan { color: var(--accent-cyan); }
.progress-bar { height: 3px; background: var(--bg-overlay); border-radius: 2px; margin-top: var(--space-2); }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent-green), var(--accent-cyan)); border-radius: 2px; }

@media (max-width: 768px) {
  .scenes { grid-template-columns: repeat(2, 1fr); gap: var(--space-2); }
  .scene-info { padding: var(--space-2) var(--space-3) var(--space-3); }
  .scene-name { font-size: var(--text-sm); }
  .scene-outfit { display: none; }
  .scene-stats { gap: var(--space-2); font-size: 10px; }
  .filters, .toolbar-bar { gap: var(--space-1); }
  .filters select, .filters button, .toolbar-bar select, .toolbar-bar button { padding: 4px 8px; font-size: 10px; }
  .filters span, .toolbar-bar span { font-size: 10px !important; }
}

/* ============================================================
   Scene — Rating Modal & Image Grid
   ============================================================ */
.header { margin-bottom: var(--space-6); }
.back { color: var(--text-secondary); text-decoration: none; font-size: var(--text-sm); }
.back:hover { color: var(--text-primary); }
.meta { font-size: var(--text-xs); color: var(--text-secondary); line-height: 1.5; }
.meta b { color: var(--text-primary); }

.toolbar { display: flex; gap: var(--space-2); margin: var(--space-4) 0; flex-wrap: wrap; position: sticky; top: 0; z-index: 10; background: var(--bg-base); }
.toolbar a, .toolbar button {
  background: var(--bg-elevated); color: var(--text-primary); padding: 6px 14px;
  border-radius: var(--radius-sm); text-decoration: none; font-size: var(--text-sm);
  border: 1px solid var(--border-default); cursor: pointer; transition: all var(--transition-fast);
}
.toolbar a:hover, .toolbar button:hover { background: var(--bg-overlay); border-color: var(--border-strong); }
.filter-active { background: var(--accent-green) !important; color: #111 !important; border-color: var(--accent-green) !important; }
.btn-delete-scene { color: var(--accent-red) !important; border-color: var(--accent-red) !important; margin-left: auto; }
.btn-delete-scene:hover { background: var(--accent-red) !important; color: #fff !important; }

.frame-group { margin-bottom: var(--space-4); }
.frame-title {
  font-size: var(--text-sm); font-weight: 600; text-transform: uppercase;
  color: var(--text-tertiary); letter-spacing: 1px; margin-bottom: var(--space-3);
  padding-bottom: var(--space-2); border-bottom: 1px solid var(--border-subtle);
}

.images { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--space-2); }

.img-card {
  position: relative; border-radius: var(--radius-md); overflow: hidden;
  border: 2px solid var(--border-default); cursor: pointer;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
  aspect-ratio: 9 / 16;
}
.img-card:hover { transform: scale(1.02); }
.img-card.score-10 { border-color: var(--accent-cyan); }
.img-card.score-9 { border-color: var(--accent-green); }
.img-card.score-8 { border-color: var(--accent-amber); }
.img-card.unrated { border-color: var(--border-default); border-style: dashed; }
.img-card.is-winner { border-color: var(--accent-amber-hover); border-width: 3px; }

.img-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.res-badge { position: absolute; top: 6px; right: 6px; background: rgba(0,0,0,0.7); color: var(--text-tertiary); font-size: 9px; padding: 2px 5px; border-radius: 3px; pointer-events: none; }

.img-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  padding: 24px 8px 8px; display: flex; justify-content: space-between; align-items: flex-end;
}
.img-seed { font-size: 11px; color: var(--text-secondary); }
.img-score { font-size: 18px; font-weight: 700; }
.img-score.s10 { color: var(--accent-cyan); }
.img-score.s9 { color: var(--accent-green); }
.img-score.s8 { color: var(--accent-amber); }
.img-score.unrated { color: var(--text-tertiary); font-size: 12px; }
.winner-badge { position: absolute; top: 6px; right: 6px; background: var(--accent-amber-hover); color: #111; font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 4px; }
.ig-badge { position: absolute; top: 6px; left: 6px; background: rgba(0,0,0,0.7); color: var(--accent-pink); font-size: 13px; padding: 2px 5px; border-radius: 4px; line-height: 1; }

/* Rating modal */
.modal-bg {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.85); z-index: 100; justify-content: center; align-items: center;
  backdrop-filter: blur(4px);
}
.modal-bg.active { display: flex; }
.modal {
  background: var(--bg-elevated); border-radius: var(--radius-lg);
  padding: var(--space-3); max-width: 95vw; width: auto;
  display: flex; gap: var(--space-4); align-items: flex-start; max-height: 95vh;
  border: 1px solid var(--border-default); box-shadow: var(--shadow-lg);
}
.modal-img-wrap {
  position: relative; flex-shrink: 0; overflow: hidden; border-radius: var(--radius-md);
  cursor: zoom-in; max-height: 90vh;
}
.modal-img-wrap img {
  max-height: 88vh; width: auto; display: block; border-radius: var(--radius-md);
  transition: transform 0.2s ease;
  transform-origin: var(--zoom-x, center) var(--zoom-y, center);
}
.modal-img-wrap:hover img { transform: scale(2); }
.modal-sidebar {
  display: flex; flex-direction: column; gap: var(--space-3); min-width: 148px;
  justify-content: center; padding: var(--space-2) 0;
}
.modal-title { font-size: var(--text-xs); color: var(--text-secondary); text-align: center; }
.rating-buttons { display: flex; flex-direction: column; gap: 4px; }
.rate-btn {
  width: 100%; height: 36px; border: 1px solid var(--border-strong);
  background: var(--bg-overlay); color: var(--text-primary);
  border-radius: var(--radius-sm); font-size: 15px; font-weight: 600;
  cursor: pointer; transition: all var(--transition-fast);
}
.rate-btn:hover { background: var(--accent-green); color: #111; border-color: var(--accent-green); }
.rate-btn.active { background: var(--accent-green); color: #111; border-color: var(--accent-green); }
.modal-actions { display: flex; flex-direction: column; gap: 6px; }
.modal-actions button {
  padding: 8px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border-default);
  background: var(--bg-overlay); color: var(--text-primary); cursor: pointer;
  font-size: var(--text-xs); width: 100%; transition: all var(--transition-fast);
}
.modal-actions button:hover { background: var(--bg-base); border-color: var(--border-strong); }
.modal-actions button.winner-btn { background: var(--accent-amber-hover); color: #111; border-color: var(--accent-amber-hover); }
.modal-actions button.winner-btn:hover { background: #d97706; }
.modal-actions button.delete-btn { background: var(--bg-overlay); color: var(--accent-red); border-color: var(--accent-red); }
.modal-actions button.delete-btn:hover { background: var(--accent-red); color: #fff; }
.modal-actions button.close-btn { background: var(--bg-surface); border-color: var(--border-strong); }
.modal-actions button.download-btn { background: var(--bg-overlay); color: var(--accent-cyan); border-color: var(--accent-cyan); display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.modal-actions button.download-btn:hover { background: var(--accent-cyan); color: #111; }
.ig-btn { background: var(--bg-overlay); color: var(--text-secondary); border-color: var(--border-default); }
.ig-btn.active { background: #1a0a10; color: var(--accent-pink); border-color: var(--accent-pink); }

.nav-arrow {
  position: fixed; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.6); border: none; color: #fff;
  font-size: 48px; width: 60px; height: 80px; cursor: pointer;
  border-radius: var(--radius-md); z-index: 101; display: flex; align-items: center; justify-content: center;
  transition: background var(--transition-fast);
}
.nav-arrow:hover { background: rgba(255,255,255,0.2); }
.nav-prev { left: 12px; }
.nav-next { right: 12px; }

@media (max-width: 768px) {
  .header { margin-bottom: var(--space-4); }
  .meta { font-size: 11px; }

  .toolbar { gap: var(--space-2); margin: var(--space-2) 0; }
  .toolbar a, .toolbar button { padding: 5px 10px; font-size: 11px; }
  .toolbar a { display: none; }

  .images { grid-template-columns: repeat(3, 1fr); gap: var(--space-1); }
  .res-badge { font-size: 8px; }
  .img-overlay { padding: 16px 4px 4px; }
  .img-seed { font-size: 9px; }
  .img-score { font-size: 14px; }

  .frame-group { margin-bottom: var(--space-4); }
  .frame-title { font-size: var(--text-xs); margin-bottom: var(--space-2); }

  /* Modal: fullscreen vertical on mobile */
  .modal {
    flex-direction: column; align-items: stretch;
    max-width: 100vw; width: 100vw; max-height: 100vh; height: 100vh;
    border-radius: 0; padding: var(--space-2); gap: var(--space-2);
    border: none;
  }
  .modal-img-wrap { max-height: 58vh; }
  .modal-img-wrap img { max-height: 56vh; width: 100%; object-fit: contain; }
  .modal-img-wrap:hover img { transform: none; }
  .modal-sidebar { min-width: auto; padding: 0; gap: var(--space-2); }
  .modal-title { font-size: 11px; }
  .rating-buttons {
    flex-direction: row; flex-wrap: wrap; gap: var(--space-1);
  }
  .rate-btn { width: auto; flex: 1; min-width: 44px; height: 44px; font-size: 14px; border-radius: var(--radius-full); }
  .modal-actions { flex-direction: row; gap: var(--space-1); flex-wrap: wrap; }
  .modal-actions button { font-size: 11px; padding: 8px 6px; flex: 1; }

  .nav-arrow { width: 40px; height: 60px; font-size: 32px; }
  .nav-prev { left: 4px; }
  .nav-next { right: 4px; }
}

/* ============================================================
   Gallery — Lightbox & Cards
   ============================================================ */
.sep { color: var(--border-strong); margin: 0 2px; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 3px; }
.g-card { position: relative; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; border: 2px solid transparent; transition: all var(--transition-fast); aspect-ratio: 9/16; }
.g-card:hover { border-color: var(--border-strong); transform: scale(1.02); }
.g-card.selected { border-color: var(--accent-green); border-width: 3px; }
.g-card.score-10 { border-color: var(--accent-cyan); }
.g-card.score-9 { border-color: var(--accent-green); }
.g-card.in-comp { box-shadow: 0 0 0 2px rgba(245,158,11,0.3); }
.g-card img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.g-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.9)); padding: 24px 6px 6px; }
.g-scene { font-size: 10px; color: var(--text-secondary); }
.g-frame { font-size: 11px; color: var(--text-primary); }
.g-date { font-size: 10px; color: var(--text-tertiary); }
.g-score { position: absolute; top: 6px; right: 6px; background: rgba(0,0,0,0.75); padding: 2px 6px; border-radius: 4px; font-size: 12px; font-weight: 700; }
.g-score.s10 { color: var(--accent-cyan); }
.g-score.s9 { color: var(--accent-green); }
.g-score.s8 { color: var(--accent-amber); }
.g-comp-badge { position: absolute; top: 6px; left: 6px; background: var(--accent-amber-hover); color: #111; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 4px; }
.g-check { position: absolute; top: 32px; left: 6px; width: 22px; height: 22px; background: rgba(0,0,0,0.5); border: 2px solid var(--border-strong); border-radius: 50%; display: none; align-items: center; justify-content: center; font-size: 12px; }
.select-mode .g-check { display: flex; }
.g-card.selected .g-check { background: var(--accent-green); border-color: var(--accent-green); color: #111; }

/* Lightbox */
.lightbox-bg {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.92); z-index: 100; justify-content: center; align-items: center;
  backdrop-filter: blur(4px);
}
.lightbox-bg.active { display: flex; }
.lightbox-wrap {
  position: relative; overflow: hidden; border-radius: var(--radius-md); max-height: 92vh; cursor: zoom-in;
}
.lightbox-wrap img {
  max-height: 90vh; width: auto; display: block; border-radius: var(--radius-md);
  transition: transform 0.2s ease;
  transform-origin: var(--zoom-x, center) var(--zoom-y, center);
}
.lightbox-wrap:hover img { transform: scale(2); }
.lightbox-info {
  position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,0.88); padding: 10px 16px; border-radius: var(--radius-md);
  font-size: var(--text-sm); color: var(--text-secondary); display: flex; flex-direction: column; gap: 8px;
  max-width: 520px; width: calc(100vw - 32px); border: 1px solid var(--border-default);
  backdrop-filter: var(--backdrop-blur);
}
.lb-info-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.lb-comp-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.lb-comp-row select { background: var(--bg-elevated); border: 1px solid var(--border-default); color: var(--text-primary); padding: 5px 8px; border-radius: var(--radius-sm); font-size: 12px; flex: 1; min-width: 0; }
.lb-comp-row button { background: var(--accent-green); color: #111; border: none; padding: 5px 12px; border-radius: var(--radius-sm); font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.lb-comp-row button:hover { opacity: 0.85; }
.lb-comp-new-btn { background: var(--bg-elevated) !important; color: var(--text-secondary) !important; border: 1px solid var(--border-default) !important; }
.lb-comp-new-btn:hover { background: var(--bg-overlay) !important; }
.lb-arrow {
  position: fixed; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.5); border: none; color: #fff;
  font-size: 48px; width: 56px; height: 76px; cursor: pointer;
  border-radius: var(--radius-md); z-index: 101;
}
.lb-arrow:hover { background: rgba(255,255,255,0.2); }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }

/* Selection bar — floats above bottom tabs on mobile */
.comp-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--bg-surface); border-top: 1px solid var(--border-default);
  padding: 12px 20px; display: none; align-items: center; gap: 12px; z-index: 55;
}
.comp-bar.active { display: flex; }
.comp-bar .count { font-weight: 700; font-size: 15px; }
.comp-bar select { background: var(--bg-elevated); color: var(--text-primary); border: 1px solid var(--border-default); padding: 6px 10px; border-radius: var(--radius-sm); font-size: var(--text-sm); }

.stats-bar { display: flex; gap: var(--space-4); margin-bottom: var(--space-4); font-size: var(--text-sm); color: var(--text-secondary); flex-wrap: wrap; }
.stats-bar span { display: flex; align-items: center; gap: 4px; }
.stats-bar .num { font-weight: 700; color: var(--text-primary); }

@media (max-width: 768px) {
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 2px; }
  .g-overlay { padding: 14px 4px 4px; }
  .g-scene { font-size: 9px; }
  .g-frame { font-size: 9px; }
  .g-date { display: none; }
  .g-score { font-size: 10px; padding: 1px 4px; top: 3px; right: 3px; }
  .g-comp-badge { font-size: 8px; padding: 1px 4px; top: 3px; left: 3px; }

  .stats-bar { gap: var(--space-2); font-size: 11px; }
  .filters .sep, .toolbar-bar .toolbar-sep { display: none; }
  .filters span, .toolbar-bar span { font-size: 10px !important; }

  .lightbox-wrap { max-height: 80vh; }
  .lightbox-wrap img { max-height: 78vh; max-width: 100vw; }
  .lightbox-wrap:hover img { transform: none; }
  .lb-arrow { width: 36px; height: 50px; font-size: 28px; }
  .lb-prev { left: 4px; }
  .lb-next { right: 4px; }
  .lightbox-info { font-size: 11px; gap: 6px; padding: 8px 10px; bottom: calc(var(--bottom-bar-height) + env(safe-area-inset-bottom) + 4px); left: 8px; right: 8px; width: auto; max-width: none; transform: none; border-radius: var(--radius-md); }
  .lb-info-row { flex-wrap: wrap; gap: 6px; }
  .lb-comp-row { gap: 6px; }
  .lb-comp-row select { font-size: 11px; }
  .lb-comp-row button { font-size: 11px; padding: 5px 8px; }
  #lb-rating button { padding: 6px 10px !important; font-size: 13px !important; }

  .comp-bar { flex-wrap: wrap; gap: 8px; padding: 10px 12px; padding-bottom: calc(10px + var(--bottom-bar-height) + env(safe-area-inset-bottom)); }
  .comp-bar select { font-size: 11px; flex: 1; min-width: 0; }
  .comp-bar .btn { font-size: 11px; padding: 6px 8px; }
}

/* ============================================================
   Compositions — Grid & Cards
   ============================================================ */
.comp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-4); margin-top: var(--space-4); }
.comp-card { background: var(--bg-surface); border-radius: var(--radius-lg); border: 1px solid var(--border-subtle); overflow: hidden; transition: border-color var(--transition-fast), transform var(--transition-fast); }
.comp-card:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.comp-thumbs { display: flex; max-height: 130px; overflow: hidden; }
.comp-thumbs img { height: 100%; max-height: 130px; object-fit: cover; flex: 1; min-width: 0; transition: opacity var(--transition-fast); }
.comp-thumbs img:hover { opacity: 0.85; }
.comp-thumbs .empty { flex: 1; background: var(--bg-elevated); display: flex; align-items: center; justify-content: center; color: var(--text-tertiary); font-size: 12px; }
.comp-info { padding: var(--space-3) var(--space-4) var(--space-4); }
.comp-name { font-size: var(--text-base); font-weight: 600; margin-bottom: var(--space-1); color: var(--text-primary); }
.comp-meta { font-size: var(--text-xs); color: var(--text-secondary); margin-bottom: var(--space-3); display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.comp-status { display: inline-block; padding: 2px 8px; border-radius: var(--radius-full); font-size: 11px; font-weight: 600; }
.comp-status.draft { background: var(--bg-elevated); color: var(--text-secondary); border: 1px solid var(--border-default); }
.comp-status.scheduled { background: rgba(251,191,36,0.15); color: var(--accent-amber); border: 1px solid rgba(251,191,36,0.3); }
.comp-status.published { background: rgba(74,222,128,0.12); color: var(--accent-green); border: 1px solid rgba(74,222,128,0.3); }
.comp-badge-auto { display: inline-block; padding: 2px 6px; border-radius: var(--radius-full); font-size: 10px; font-weight: 700; background: rgba(34,211,238,0.15); color: var(--accent-cyan); border: 1px solid rgba(34,211,238,0.3); margin-left: 4px; vertical-align: middle; letter-spacing: 0.5px; }
.comp-actions { display: flex; gap: var(--space-2); }

/* ============================================================
   Composer — Editor
   ============================================================ */
.composer { display: flex; gap: var(--space-6); align-items: flex-start; }
.images-panel { flex: 1; min-width: 0; min-height: 300px; }
/* composer-sidebar is scoped to avoid conflict with main .sidebar */
.composer-sidebar { width: 300px; flex-shrink: 0; position: sticky; top: 80px; max-height: calc(100vh - 100px); overflow-y: auto; display: flex; flex-direction: column; gap: var(--space-4); }
@media (max-width: 900px) {
  .composer { flex-direction: column; }
  .composer-sidebar { width: 100%; position: static; max-height: none; }
}

.sortable { display: flex; flex-wrap: wrap; gap: var(--space-2); min-height: 200px; padding: var(--space-3); background: var(--bg-surface); border-radius: var(--radius-lg); border: 2px dashed var(--border-default); }
.sortable.drag-over { border-color: var(--accent-green); }
.sort-item { position: relative; width: 150px; cursor: grab; border-radius: var(--radius-md); overflow: hidden; border: 2px solid var(--border-default); }
.sort-item:active { cursor: grabbing; }
.sort-item img { width: 100%; height: 210px; object-fit: cover; display: block; }
.sort-num { position: absolute; top: 6px; left: 6px; background: var(--accent-green); color: #111; font-size: 12px; font-weight: 700; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.sort-remove { position: absolute; top: 6px; right: 6px; background: rgba(0,0,0,0.7); color: var(--text-primary); border: none; width: 24px; height: 24px; border-radius: 50%; cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.sort-remove:hover { background: var(--accent-red); }
.sort-label { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,0.8); padding: 4px 6px; font-size: 10px; color: var(--text-secondary); }

.card { background: var(--bg-surface); border-radius: var(--radius-lg); padding: var(--space-4); border: 1px solid var(--border-subtle); }
.card h3 { font-size: var(--text-xs); margin-bottom: var(--space-3); color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.card input, .card textarea, .card select { width: 100%; background: var(--bg-elevated); border: 1px solid var(--border-default); color: var(--text-primary); padding: var(--space-2); border-radius: var(--radius-sm); font-size: var(--text-sm); font-family: inherit; }
.card textarea { min-height: 120px; resize: vertical; }
.card label { font-size: var(--text-xs); color: var(--text-secondary); display: block; margin-bottom: 4px; }
.card .actions { display: flex; gap: var(--space-2); margin-top: var(--space-3); flex-wrap: wrap; }

.empty-state { text-align: center; padding: 40px; color: var(--text-tertiary); }
.empty-state a { color: var(--accent-green); text-decoration: none; }
.empty-state a:hover { text-decoration: underline; }

/* Scene image pool */
.scene-pool { margin-top: var(--space-8); }
.scene-pool-header { display: flex; align-items: center; gap: var(--space-3); cursor: pointer; user-select: none; margin-bottom: var(--space-4); }
.scene-pool-header h2 { font-size: var(--text-xs); color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 1px; margin: 0; font-weight: 600; }
.scene-pool-toggle { font-size: 12px; color: var(--text-tertiary); transition: transform 0.2s; }
.scene-pool-toggle.open { transform: rotate(90deg); }
.scene-pool-body { display: none; }
.scene-pool-body.open { display: block; }
.scene-pool-section { margin-bottom: var(--space-6); }
.scene-pool-section h3 { font-size: var(--text-xs); color: var(--text-tertiary); margin: 0 0 var(--space-3); text-transform: uppercase; letter-spacing: 0.5px; }
.scene-pool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: var(--space-2); }
.pool-filter-btn { background: var(--bg-elevated); border: 1px solid var(--border-default); color: var(--text-secondary); padding: 4px 10px; border-radius: var(--radius-sm); font-size: 12px; cursor: pointer; transition: all var(--transition-fast); }
.pool-filter-btn:hover { border-color: var(--border-strong); color: var(--text-primary); }
.pool-filter-btn.pool-filter-active { background: var(--accent-green); color: #111; border-color: var(--accent-green); font-weight: 600; }
.pool-thumb { position: relative; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid var(--border-default); cursor: pointer; aspect-ratio: 9/16; background: var(--bg-surface); }
.pool-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity var(--transition-fast); }
.pool-thumb.in-comp { border-color: var(--accent-green); }
.pool-thumb.in-comp img { opacity: 0.35; }
.pool-score { position: absolute; bottom: 4px; right: 4px; background: rgba(0,0,0,0.75); color: var(--text-primary); font-size: 10px; font-weight: 600; padding: 2px 5px; border-radius: 4px; pointer-events: none; }
.pool-score.score-10 { color: var(--accent-cyan); }
.pool-score.score-9 { color: var(--accent-green); }
.pool-check { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: var(--accent-green); font-size: 22px; font-weight: bold; text-shadow: 0 0 6px rgba(0,0,0,0.8); pointer-events: none; }
.pool-add { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(34,211,238,0.9); color: #111; border: none; border-radius: 50%; width: 34px; height: 34px; font-size: 22px; font-weight: bold; cursor: pointer; display: none; line-height: 34px; text-align: center; padding: 0; }
.pool-remove { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(239,68,68,0.9); color: #fff; border: none; border-radius: 50%; width: 34px; height: 34px; font-size: 22px; font-weight: bold; cursor: pointer; display: none; line-height: 34px; text-align: center; padding: 0; }
.pool-thumb:hover .pool-add,
.pool-thumb:hover .pool-remove { display: block; }
@media (max-width: 768px) {
  .scene-pool-grid { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; }
  .pool-add, .pool-remove { width: 28px; height: 28px; font-size: 18px; line-height: 28px; }
}

/* Pool preview modal */
.pool-modal-bg {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.92); z-index: 200; justify-content: center; align-items: center;
  backdrop-filter: blur(4px);
}
.pool-modal-bg.active { display: flex; }
.pool-modal {
  background: var(--bg-elevated); border-radius: var(--radius-lg); padding: var(--space-4); max-width: 95vw;
  display: flex; gap: var(--space-4); align-items: flex-start; max-height: 95vh;
  border: 1px solid var(--border-default); box-shadow: var(--shadow-lg);
}
.pool-modal-img-wrap {
  position: relative; flex-shrink: 0; overflow: hidden; border-radius: var(--radius-md);
  cursor: zoom-in; max-height: 88vh;
}
.pool-modal-img-wrap img {
  max-height: 86vh; width: auto; display: block; border-radius: var(--radius-md);
  transition: transform 0.2s ease;
  transform-origin: var(--pm-zoom-x, center) var(--pm-zoom-y, center);
}
.pool-modal-img-wrap:hover img { transform: scale(2); }
.pool-modal-sidebar {
  display: flex; flex-direction: column; gap: var(--space-3); min-width: 160px;
  padding: var(--space-1) 0; justify-content: flex-start;
}
.pool-modal-info { font-size: var(--text-xs); color: var(--text-secondary); line-height: 1.8; }
.pool-modal-info b { color: var(--text-primary); }
.pool-modal-info .pm-score { font-size: 18px; font-weight: 700; }
.pm-score-10 { color: var(--accent-cyan); }
.pm-score-9 { color: var(--accent-green); }
.pm-score-8 { color: var(--accent-amber); }
.pm-score-none { color: var(--text-tertiary); font-size: var(--text-sm); }
.pm-nav {
  position: fixed; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.55); border: none; color: #fff;
  font-size: 48px; width: 58px; height: 78px; cursor: pointer;
  border-radius: var(--radius-md); z-index: 201; display: flex; align-items: center; justify-content: center;
  transition: background var(--transition-fast);
}
.pm-nav:hover { background: rgba(255,255,255,0.2); }
.pm-prev { left: 12px; }
.pm-next { right: 12px; }
.pm-action-btn {
  width: 100%; padding: 10px 12px; border-radius: var(--radius-md); border: none;
  font-size: var(--text-sm); font-weight: 600; cursor: pointer; transition: opacity var(--transition-fast);
}
.pm-action-btn:hover { opacity: 0.85; }
.pm-add-btn { background: var(--accent-green); color: #111; }
.pm-remove-btn { background: var(--accent-red); color: #fff; }
.pm-download-btn { background: var(--bg-overlay); color: var(--accent-cyan); border: 1px solid var(--accent-cyan); display: inline-flex; align-items: center; justify-content: center; }
.pm-download-btn:hover { background: var(--accent-cyan); color: #111; }
.pm-close-btn { background: var(--bg-overlay); color: var(--text-secondary); border: 1px solid var(--border-default); }
.pm-nav-counter { font-size: var(--text-xs); color: var(--text-tertiary); text-align: center; }
@media (max-width: 768px) {
  .pool-modal { flex-direction: column; align-items: stretch; max-width: 100vw; width: 100vw; max-height: 100vh; height: 100vh; border-radius: 0; padding: var(--space-2); gap: var(--space-2); }
  .pool-modal-img-wrap { max-height: 58vh; }
  .pool-modal-img-wrap img { max-height: 56vh; width: 100%; object-fit: contain; }
  .pool-modal-img-wrap:hover img { transform: none; }
  .pool-modal-sidebar { min-width: auto; flex-direction: row; flex-wrap: wrap; gap: var(--space-2); }
  .pm-action-btn { flex: 1; min-width: 120px; padding: 10px 8px; }
  .pm-nav { width: 40px; height: 58px; font-size: 32px; }
  .pm-prev { left: 4px; }
  .pm-next { right: 4px; }
}

/* Lightbox modal (composer) */
.lightbox-img-wrap {
  position: relative; overflow: hidden; border-radius: var(--radius-md);
  cursor: zoom-in; max-height: 92vh;
}
.lightbox-img-wrap img {
  max-height: 90vh; width: auto; display: block; border-radius: var(--radius-md);
  transition: transform 0.2s ease;
  transform-origin: var(--zoom-x, center) var(--zoom-y, center);
}
.lightbox-img-wrap:hover img { transform: scale(2); }

/* Composer — utility classes */
.composer-title { margin: 8px 0 16px; }
.composer-section-label { color: var(--text-tertiary); font-size: var(--text-sm); margin-bottom: 8px; }
.pool-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.pool-toolbar label { font-size: 12px; color: var(--text-tertiary); margin: 0; }
.pool-toolbar select { background: var(--bg-surface); border: 1px solid var(--border-strong); color: var(--text-primary); padding: 6px 10px; border-radius: var(--radius-sm); font-size: var(--text-sm); flex: 1; max-width: 300px; }
.pool-count { font-size: var(--text-xs); color: var(--text-tertiary); margin-left: 8px; }
.ig-option-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.ig-option-label { font-size: 12px; color: var(--text-tertiary); white-space: nowrap; margin: 0; }
.ig-option-select { background: var(--bg-elevated); border: 1px solid var(--border-strong); color: var(--text-primary); padding: 6px 8px; border-radius: var(--radius-sm); font-size: var(--text-sm); flex: 1; }
.ig-option-input { background: var(--bg-elevated); border: 1px solid var(--border-strong); color: var(--text-primary); padding: 4px 8px; border-radius: var(--radius-sm); font-size: 12px; width: 60px; }
.ig-publish-section { border-top: 1px solid var(--border-default); padding-top: 10px; }
.ig-publish-grid { display: grid; grid-template-columns: 1fr 90px; gap: 8px; }
.ig-publish-grid input { background: var(--bg-elevated); border: 1px solid var(--border-strong); color: var(--text-primary); padding: 6px 8px; border-radius: var(--radius-sm); font-size: 12px; min-width: 0; }
.ig-publish-grid button { grid-column: 1 / -1; justify-content: center; }
.ig-footnote { font-size: 10px; color: var(--text-tertiary); margin-top: 10px; line-height: 1.5; }
.ig-footnote .published { color: var(--accent-green); }
.ig-footnote .story { color: var(--accent-purple); }
.ig-status-inline { margin-bottom: 10px; font-size: 12px; display: none; }
.ig-status-dot-inline { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.ig-error-row { display: none; margin-bottom: 10px; font-size: 12px; color: var(--accent-red); background: #1a0a0a; border: 1px solid #3a1010; border-radius: var(--radius-sm); padding: 8px; }
.composer-hint { font-size: var(--text-xs); color: var(--text-tertiary); margin-top: 8px; }
.caption-hint-input { width: 100%; margin-top: 8px; background: var(--bg-elevated); border: 1px solid var(--border-strong); color: var(--text-primary); padding: 6px 8px; border-radius: var(--radius-sm); font-size: 12px; box-sizing: border-box; }
.video-preview-container { display: none; }
.video-preview { width: 100%; max-height: 360px; border-radius: var(--radius-md); background: #000; object-fit: contain; }
.video-preview-info { font-size: 10px; color: var(--text-tertiary); margin: 4px 0 0; text-align: center; }
.actions-column { flex-direction: column; gap: 10px; }
.btn-full { width: 100%; justify-content: center; }
.duration-label { font-size: var(--text-xs); color: var(--text-tertiary); }

/* ============================================================
   Planner — Calendar
   ============================================================ */
.calendar-nav { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-3); }
.cal-arrow { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: var(--radius-md); background: var(--bg-surface); border: 1px solid var(--border-subtle); color: var(--text-primary); text-decoration: none; font-size: var(--text-lg); transition: background var(--transition-fast), border-color var(--transition-fast); }
.cal-arrow:hover { background: var(--bg-elevated); border-color: var(--border-strong); }
.cal-label { font-size: var(--text-base); font-weight: 600; color: var(--text-primary); min-width: 200px; text-align: center; }
.cal-today-btn { font-size: var(--text-sm); color: var(--accent-green); text-decoration: none; padding: var(--space-1) var(--space-2); border: 1px solid var(--accent-green); border-radius: var(--radius-sm); transition: background var(--transition-fast); }
.cal-today-btn:hover { background: rgba(52, 211, 153, 0.1); }
.calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: var(--space-2); margin-top: var(--space-4); }
.day-header { text-align: center; font-size: var(--text-xs); color: var(--text-tertiary); font-weight: 600; padding: var(--space-2) 0; text-transform: uppercase; letter-spacing: 0.5px; }
.day { background: var(--bg-surface); border-radius: var(--radius-md); min-height: 72px; padding: var(--space-2); border: 1px solid var(--border-subtle); transition: border-color var(--transition-fast); }
.day:hover { border-color: var(--border-strong); }
.day.today { border-color: var(--accent-green); }
.day.drag-over { border-color: var(--accent-amber); border-style: dashed; }
.day-date { font-size: var(--text-xs); color: var(--text-tertiary); margin-bottom: var(--space-1); }
.day.today .day-date { color: var(--accent-green); font-weight: 600; }
.day-post { background: var(--bg-elevated); border-radius: var(--radius-sm); padding: var(--space-1) var(--space-2); margin-top: var(--space-1); cursor: pointer; display: flex; gap: var(--space-1); align-items: center; border: 1px solid var(--border-subtle); transition: background var(--transition-fast); }
.day-post:hover { background: var(--bg-overlay); }
.day-post img { width: 32px; height: 32px; object-fit: cover; border-radius: var(--radius-sm); }
.day-post .post-name { font-size: 10px; flex: 1; color: var(--text-secondary); }
.day-post .post-count { font-size: 10px; color: var(--text-tertiary); }

.unscheduled { margin-top: var(--space-6); }
.unscheduled h2 { font-size: var(--text-lg); margin-bottom: var(--space-3); }
.draft-list { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.draft-card { background: var(--bg-surface); border-radius: var(--radius-md); padding: var(--space-2) var(--space-3); border: 1px solid var(--border-subtle); cursor: grab; width: 200px; transition: border-color var(--transition-fast), transform var(--transition-fast); }
.draft-card:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.draft-card:active { cursor: grabbing; }
.draft-card .post-name { font-size: var(--text-sm); font-weight: 600; color: var(--text-primary); }
.draft-card .post-meta { font-size: var(--text-xs); color: var(--text-secondary); margin-top: 2px; }
.draft-thumbs { display: flex; gap: 2px; margin-top: var(--space-2); }
.draft-thumbs img { width: 40px; height: 40px; object-fit: cover; border-radius: var(--radius-sm); }

/* ============================================================
   Feed Preview
   ============================================================ */
.feed-info { text-align: center; margin-bottom: var(--space-4); }
.feed-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; max-width: 500px; margin: 0 auto; }
.feed-cell { aspect-ratio: 3/4; overflow: hidden; cursor: pointer; position: relative; }
.feed-cell img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: opacity var(--transition-fast); }
.feed-cell:hover img { opacity: 0.7; }
.feed-cell .feed-label { position: absolute; bottom: 4px; left: 4px; background: rgba(0,0,0,0.75); color: var(--text-primary); font-size: 10px; padding: 2px 6px; border-radius: 4px; display: none; }
.feed-cell:hover .feed-label { display: block; }
.feed-empty { aspect-ratio: 1/1; background: var(--bg-surface); border: 1px dashed var(--border-default); display: flex; align-items: center; justify-content: center; color: var(--text-tertiary); font-size: 12px; }

.phone-frame { max-width: 360px; margin: 0 auto; background: #000; border-radius: 24px; padding: 6px; border: 2px solid var(--border-strong); box-shadow: var(--shadow-lg); }
.phone-screen { border-radius: 28px; overflow: hidden; background: var(--bg-base); }
.phone-header { padding: var(--space-2) var(--space-3); display: flex; align-items: center; gap: var(--space-2); background: var(--bg-base); border-bottom: 1px solid var(--border-subtle); }
.phone-avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-amber-hover), var(--accent-red)); }
.phone-username { font-size: var(--text-sm); font-weight: 600; color: var(--text-primary); }

.feed-layout { display: flex; gap: var(--space-6); align-items: flex-start; }
.feed-sidebar-panel { flex: 1; min-width: 0; }
.feed-sidebar-panel h2 { font-size: var(--text-base); font-weight: 600; margin-bottom: var(--space-3); }
.feed-sidebar-panel .pub-list { max-height: 500px; overflow-y: auto; }
@media (max-width: 768px) { .feed-layout { flex-direction: column; } .feed-sidebar-panel { width: 100%; } }

/* ============================================================
   Instagram Page
   ============================================================ */
.ig-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); margin-top: var(--space-4); }
.ig-card { background: var(--bg-surface); border-radius: var(--radius-lg); border: 1px solid var(--border-subtle); padding: var(--space-4); transition: border-color var(--transition-fast); }
.ig-card:hover { border-color: var(--border-default); }
.ig-card:last-child { grid-column: 1 / -1; }
.ig-card h2 { font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-tertiary); margin-bottom: var(--space-4); }

.status-row { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-3); font-size: var(--text-sm); }
.status-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.dot-green { background: var(--accent-green); }
.dot-red { background: var(--accent-red); }
.dot-yellow { background: var(--accent-amber); }
.status-label { color: var(--text-secondary); }
.status-value { color: var(--text-primary); font-weight: 500; }
.status-error { color: var(--accent-red); font-size: var(--text-xs); }

.token-actions { margin-top: var(--space-4); display: flex; gap: var(--space-2); flex-wrap: wrap; }

.pub-list { display: flex; flex-direction: column; gap: var(--space-2); }
.pub-item { background: var(--bg-elevated); border-radius: var(--radius-md); padding: var(--space-3); border: 1px solid var(--border-subtle); display: flex; align-items: center; gap: var(--space-3); }
.pub-thumb { width: 44px; height: 56px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; background: var(--bg-overlay); }
.pub-info { flex: 1; min-width: 0; }
.pub-name { font-size: var(--text-sm); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-primary); }
.pub-meta { font-size: var(--text-xs); color: var(--text-secondary); margin-top: 2px; }
.pub-media-id { font-size: 10px; color: var(--text-tertiary); margin-top: 2px; font-family: monospace; }
.pub-badge { display: inline-block; padding: 2px 8px; border-radius: var(--radius-full); font-size: 10px; font-weight: 700; flex-shrink: 0; }
.pub-badge.published { background: rgba(74,222,128,0.12); color: var(--accent-green); border: 1px solid rgba(74,222,128,0.3); }
.pub-badge.scheduled { background: rgba(251,191,36,0.12); color: var(--accent-amber); border: 1px solid rgba(251,191,36,0.3); }

.empty-note { color: var(--text-tertiary); font-size: var(--text-sm); text-align: center; padding: 24px 0; }

.toggle-row { display: flex; align-items: center; justify-content: space-between; padding: var(--space-3) 0; border-bottom: 1px solid var(--border-subtle); }
.toggle-row:last-child { border-bottom: none; }
.toggle-label { font-size: var(--text-sm); color: var(--text-primary); }
.toggle-note { font-size: var(--text-xs); color: var(--text-tertiary); margin-top: 2px; }
.toggle-switch { position: relative; width: 40px; height: 22px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-track { position: absolute; inset: 0; background: var(--bg-overlay); border-radius: 22px; cursor: pointer; transition: background 0.2s; border: 1px solid var(--border-default); }
.toggle-track::after { content: ''; position: absolute; width: 16px; height: 16px; background: var(--text-tertiary); border-radius: 50%; top: 2px; left: 2px; transition: left 0.2s, background 0.2s; }
.toggle-switch input:checked + .toggle-track { background: rgba(74,222,128,0.15); border-color: var(--accent-green); }
.toggle-switch input:checked + .toggle-track::after { left: 20px; background: var(--accent-green); }

.ig-note { font-size: var(--text-xs); color: var(--text-tertiary); margin-top: var(--space-4); line-height: 1.5; }
.ig-note a { color: var(--accent-cyan); text-decoration: none; }
.ig-note a:hover { text-decoration: underline; }

/* Status bar */
.ig-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  margin-top: var(--space-3);
  flex-wrap: wrap;
}
.ig-status-indicators { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.ig-status-item { display: flex; align-items: center; gap: 6px; font-size: var(--text-sm); }
.ig-status-label { color: var(--text-secondary); }
.ig-status-val { color: var(--text-primary); font-weight: 500; }
.ig-status-sep { width: 1px; height: 16px; background: var(--border-default); flex-shrink: 0; }
.ig-status-actions { display: flex; align-items: center; gap: var(--space-3); flex-shrink: 0; }

/* See-all link below scheduled list */
.ig-see-all {
  display: block;
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  color: var(--accent-cyan);
  text-decoration: none;
  text-align: right;
}
.ig-see-all:hover { text-decoration: underline; }

/* Separator inside merged card */
.ig-card-sep {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: 0;
}

/* Collapsible log */
.ig-collapsible-body {
  overflow: hidden;
  transition: max-height 0.25s ease, opacity 0.2s ease;
  max-height: 1200px;
  opacity: 1;
}
.ig-collapsible-body.ig-collapsed {
  max-height: 0;
  opacity: 0;
}
.ig-chevron { font-size: 10px; color: var(--text-tertiary); line-height: 1; }

/* Reply log entries */
.log-entry { background: var(--bg-elevated); border-radius: var(--radius-md); padding: 10px; margin-bottom: 6px; font-size: 12px; border: 1px solid transparent; }
.log-entry-unanswered { border-color: rgba(251,191,36,0.25); }
.log-entry-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; gap: 8px; }
.log-entry-time { color: var(--text-tertiary); }
.log-entry-header-right { display: inline-flex; align-items: center; gap: 8px; }
.log-status { font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 9999px; border: 1px solid transparent; letter-spacing: 0.3px; white-space: nowrap; }
.log-status-pending { color: #fbbf24; border-color: rgba(251,191,36,0.35); background: rgba(251,191,36,0.08); }
.log-status-sent { color: #4ade80; border-color: rgba(74,222,128,0.35); background: rgba(74,222,128,0.08); }
.log-status-skip { color: #a78bfa; border-color: rgba(167,139,250,0.35); background: rgba(167,139,250,0.08); }
.log-status-error { color: #ef4444; border-color: rgba(239,68,68,0.35); background: rgba(239,68,68,0.08); }
.log-entry-msg { color: #aaa; }
.log-entry-reply-row { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; gap: 8px; }
.log-reply-actions { flex-shrink: 0; }
.log-reply-btn { font-size: 11px; padding: 2px 10px; border-radius: var(--radius-sm); border: 1px solid var(--accent-amber); background: rgba(251,191,36,0.1); color: var(--accent-amber); cursor: pointer; transition: background 0.15s; }
.log-reply-btn:hover { background: rgba(251,191,36,0.2); }
.log-reply-btn-subtle { border-color: var(--border-default); background: transparent; color: var(--text-tertiary); font-size: 13px; padding: 0 7px; line-height: 20px; }
.log-reply-btn-subtle:hover { border-color: var(--text-secondary); color: var(--text-secondary); }
.log-reply-form { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border-subtle); }
.log-reply-input-row { display: flex; gap: 6px; align-items: center; }
.log-reply-input { flex: 1; background: var(--bg-overlay); border: 1px solid var(--border-default); color: var(--text-primary); padding: 6px 10px; border-radius: var(--radius-sm); font-size: 12px; }
.log-reply-input:focus { outline: none; border-color: var(--accent-cyan); }
.log-reply-send { font-size: 11px; padding: 5px 10px; border-radius: var(--radius-sm); border: none; background: var(--accent-cyan); color: #111; cursor: pointer; font-weight: 600; white-space: nowrap; }
.log-reply-send:hover { opacity: 0.85; }
.log-reply-auto { font-size: 11px; padding: 5px 10px; border-radius: var(--radius-sm); border: 1px solid var(--accent-green); background: rgba(74,222,128,0.1); color: var(--accent-green); cursor: pointer; font-weight: 600; white-space: nowrap; }
.log-reply-auto:hover { background: rgba(74,222,128,0.2); }
.log-reply-result { margin-top: 6px; font-size: 12px; }

@media (max-width: 768px) {
  .ig-grid { grid-template-columns: 1fr; gap: var(--space-3); }
  .ig-card { padding: var(--space-3); }
  .ig-status-bar { flex-direction: column; align-items: flex-start; gap: var(--space-2); }
  .ig-status-sep { display: none; }
  .ig-status-actions { width: 100%; }
}

/* Instagram page — utility classes */
.pub-item-actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.btn-cancel { font-size: 10px; padding: 2px 8px; background: #3a1a1a; color: var(--accent-red); border: 1px solid #3a1a1a; border-radius: var(--radius-sm); cursor: pointer; }
.btn-cancel:hover { background: #4a1a1a; }
.ig-test-section { margin-top: var(--space-4); }
.ig-test-row { margin-bottom: 10px; }
.ig-test-label { font-size: 12px; color: var(--text-secondary); margin-bottom: 4px; display: block; }
.ig-test-input-row { display: flex; gap: 8px; }
.ig-test-input { flex: 1; background: var(--bg-surface); border: 1px solid var(--border-strong); color: var(--text-primary); padding: 7px 10px; border-radius: var(--radius-sm); font-size: var(--text-sm); }
.ig-test-input:focus { outline: none; border-color: var(--accent-cyan); }
.ig-test-btn-comment { background: var(--accent-cyan); color: #111; white-space: nowrap; }
.ig-test-btn-dm { background: var(--accent-purple); color: #111; white-space: nowrap; }
.ig-test-result { font-size: var(--text-sm); color: var(--text-primary); background: var(--bg-surface); border-radius: var(--radius-md); padding: 12px; display: none; }
.ig-test-result-label { color: var(--text-tertiary); font-size: var(--text-xs); margin-bottom: 4px; }

/* ============================================================
   Engagement Bot
   ============================================================ */
.cards .status-dot { width: 14px; height: 14px; background: var(--accent-red); }
.cards .status-dot.running { background: var(--accent-green); animation: pulse 1.5s infinite; }
.cards .status-row { gap: var(--space-3); margin-bottom: var(--space-3); font-size: inherit; }
.cards .status-label { font-size: var(--text-base); font-weight: 600; color: var(--text-primary); }

.warn-banner {
  background: rgba(245,158,11,0.06);
  border-left: 3px solid var(--accent-amber);
  color: var(--accent-amber);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
  line-height: 1.5;
}
.warn-banner strong { color: var(--accent-amber-hover); }

.cards { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); align-items: start; }
.card h2 { font-size: var(--text-base); font-weight: 600; margin-bottom: var(--space-4); color: var(--text-primary); }

.status-meta { font-size: var(--text-xs); color: var(--text-secondary); margin-bottom: var(--space-2); }
.progress-bar-wrap { background: var(--bg-overlay); border-radius: 4px; height: 6px; margin: var(--space-3) 0; }
.progress-bar-eng { background: linear-gradient(90deg, var(--accent-green), var(--accent-cyan)); height: 6px; border-radius: 4px; transition: width 0.4s; }

.bot-actions { display: flex; gap: var(--space-3); margin-top: var(--space-4); flex-wrap: wrap; }

label { display: block; font-size: var(--text-xs); color: var(--text-secondary); margin-bottom: 4px; margin-top: var(--space-3); }
label:first-of-type { margin-top: 0; }
input[type=number], textarea {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-family: inherit;
}
input[type=number]:focus, textarea:focus { outline: none; border-color: var(--accent-cyan); }
textarea { resize: vertical; min-height: 90px; line-height: 1.5; }

.slider-row { display: flex; align-items: center; gap: var(--space-3); }
.slider-row input[type=range] { flex: 1; accent-color: var(--accent-cyan); }
.slider-val { font-size: 14px; font-weight: 600; color: var(--accent-cyan); min-width: 28px; text-align: right; }

.delay-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }

.save-btn-row { margin-top: var(--space-4); }

.card-wide { grid-column: 1 / -1; }
.log-table { width: 100%; border-collapse: collapse; font-size: var(--text-xs); }
.log-table th {
  text-align: left; color: var(--text-tertiary); font-weight: 500; padding: 6px 8px;
  border-bottom: 1px solid var(--border-default);
}
.log-table td { padding: 5px 8px; border-bottom: 1px solid var(--border-subtle); vertical-align: middle; }
.log-table tr:last-child td { border-bottom: none; }
.log-table tr:hover td { background: var(--bg-elevated); }
.log-time { color: var(--text-tertiary); white-space: nowrap; }
.log-action { font-weight: 500; color: var(--text-primary); }
.log-target { color: var(--accent-cyan); }
.log-ok { color: var(--accent-green); }
.log-fail { color: var(--accent-red); }

.empty-log { text-align: center; color: var(--text-tertiary); padding: 32px; font-size: var(--text-sm); }
.today-section-title { font-size: var(--text-sm); color: var(--text-secondary); font-weight: 600; margin: 0 0 8px 0; }

/* Utility classes */
.hidden { display: none; }
.float-right { float: right; }
.text-muted { color: var(--text-tertiary); }
.hint-text { font-size: var(--text-xs); color: var(--text-tertiary); margin-top: var(--space-1); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mt-4 { margin-top: var(--space-4); }
.w-full { width: 100%; }

/* Engagement page */
.config-active { color: var(--accent-green); }
.config-inactive { color: var(--accent-red); }
.status-italic { font-style: italic; }
.btn-red { background: var(--accent-red); color: #fff; border-color: var(--accent-red); }
.btn-cyan { background: var(--accent-cyan); color: #111; border-color: var(--accent-cyan); }
.progress-bar-follows { background: var(--accent-purple); }
.checkbox-inline { width: auto; margin-right: 6px; }
.textarea-sm { min-height: 60px; }
.save-feedback { font-size: var(--text-sm); color: var(--accent-green); margin-left: 10px; display: none; }
.log-count { font-size: var(--text-sm); color: var(--text-tertiary); font-weight: 400; }

/* Scene page */
#comp-toast { display: none; position: fixed; bottom: calc(var(--bottom-bar-height) + env(safe-area-inset-bottom) + 24px); left: 50%; transform: translateX(-50%); background: var(--bg-surface); border: 1px solid var(--border-default); color: var(--text-primary); padding: var(--space-3) 20px; border-radius: var(--radius-md); font-size: var(--text-sm); z-index: 9999; text-align: center; max-width: 320px; }
.empty-filter-box { display: none; text-align: center; padding: 60px 20px; color: var(--text-tertiary); }
.empty-filter-icon { font-size: 40px; margin-bottom: var(--space-3); }
.empty-filter-msg { font-size: var(--text-base); }

@media (max-width: 768px) {
  .cards { grid-template-columns: 1fr; gap: var(--space-3); }
  .card-wide { grid-column: auto; }
  .delay-row { grid-template-columns: 1fr; }
  .bot-actions { flex-wrap: wrap; }
}

/* ============================================================
   Mobile polish — unified overrides (2026-04-17)
   Centraliza fixes transversales: sin scroll horizontal, grids a 1fr,
   tablas con scroll interno, nav del calendario sin desborde.
   ============================================================ */
@media (max-width: 768px) {
  /* Composiciones: forzar 1 columna, el auto-fill con minmax(280px) puede intentar 2 */
  .comp-grid { grid-template-columns: 1fr; gap: var(--space-3); }

  /* Planner: label del mes no debe imponer 200px en mobile */
  .calendar-nav { gap: var(--space-2); flex-wrap: wrap; }
  .cal-label { min-width: 0; flex: 1; font-size: var(--text-sm); }
  .calendar { gap: 4px; margin-top: var(--space-3); }
  .day { min-height: 56px; padding: 6px 4px; }
  .day-header { font-size: 10px; padding: var(--space-1) 0; }

  /* Engagement: la tabla ancha debe scrollear dentro del card, no romper la página */
  .card-wide { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .log-table { min-width: 480px; }

  /* Feed preview: sidebar a ancho completo ya está; limitar phone-frame */
  .phone-frame { max-width: 320px; }
}

/* Mobile pequeño (<400px) — red de seguridad para iPhone SE / Android compactos */
@media (max-width: 400px) {
  .main-content {
    padding: var(--space-2);
    padding-bottom: calc(var(--bottom-bar-height) + var(--space-4) + env(safe-area-inset-bottom));
  }
  .scenes, .ig-grid, .cards { grid-template-columns: 1fr; gap: var(--space-3); }
  .comp-grid { gap: var(--space-2); }
  .draft-card { width: 100%; }
  .stats-bar { font-size: 10px; gap: 6px; }
  .ig-card { padding: var(--space-3); }
  .calendar { gap: 2px; }
  .day { min-height: 48px; padding: 4px 2px; }
  .day-date { font-size: 10px; }
  .day-post { padding: 2px 4px; }
  .day-post img { width: 24px; height: 24px; }
  .day-post .post-name { font-size: 9px; }
  /* Lightbox: dar aún más margen a los lados */
  .lb-arrow { width: 32px; height: 44px; font-size: 24px; }
  .lightbox-info { left: 4px; right: 4px; }
}
