/* ==== LensGlow — app styles ==== */
/* Accent override, canvas preview, preset chips, compare button, gallery grid,
   camera modal. Light+dark via shared tokens; --accent is #db2777. */

:root {
  --accent: #db2777;
  --accent-contrast: #ffffff;
}

/* ---- Canvas preview ---- */
.preview {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  border-radius: var(--radius-m);
  border: 1px solid var(--border);
  background: var(--surface-2);
  margin: 0 auto;
}

/* ---- Preset chips ---- */
.chip-row { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-2); }
.chip {
  min-height: 44px; padding: 0 var(--space-4); border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2);
  font-weight: 600; cursor: pointer; font-size: 13px;
}
.chip[aria-pressed="true"] {
  background: var(--accent); border-color: var(--accent); color: var(--accent-contrast);
}
.chip-accent[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }

/* ---- Range row ---- */
.range-row { display: flex; align-items: center; gap: var(--space-2); margin-top: var(--space-2); }
.range { flex: 1; min-height: 24px; }

/* ---- Gallery grid ---- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: var(--space-3); margin-top: var(--space-3); }
.gallery-item { position: relative; border-radius: var(--radius-m); overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); aspect-ratio: 1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-item .gallery-delete {
  position: absolute; top: var(--space-1); right: var(--space-1);
  width: 26px; height: 26px; border-radius: 50%; background: rgba(0,0,0,.55);
  border: 0; color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; line-height: 1;
}

/* ---- Camera modal ---- */
.camera-modal {
  position: fixed; inset: 0; z-index: 60; background: #000;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.camera-modal #camera-video { width: 100%; height: 100%; object-fit: cover; }
.camera-actions {
  position: absolute; bottom: calc(var(--tabbar-h) + var(--space-6) + env(safe-area-inset-bottom, 0px));
  display: flex; gap: var(--space-3); padding: 0 var(--space-4);
}

/* ---- Hold-to-compare hint ---- */
.compare-hint { font-size: 12px; color: var(--muted); text-align: center; margin-top: var(--space-1); }

/* ---- RTL ---- */
[dir="rtl"] .gallery-item .gallery-delete { left: var(--space-1); right: auto; }
