/* Peach Codex — generation and restoration view styles. * * Class names are `peach-codex-*` to avoid colliding with the existing * settings/overlay tokens. Colours and surfaces reuse `--peach-*` variables * defined in vars.css and popup.css — do not introduce new tokens here. */ /* Shared body padding — the overlay header eats the top inset, the rest is * scrollable so a long page (toggle + warnings + footnote) still fits in * the 320×520 popup without clipping. */ .peach-codex-body { padding: 12px 16px 18px; display: flex; flex-direction: column; gap: 12px; } .peach-codex-intro { padding: 12px; } .peach-codex-blurb { margin: 0; font-size: 0.8125rem; line-height: 1.45; color: var(--peach-t1); } .peach-codex-meta { margin: 8px 0 0; font-size: 0.75rem; color: var(--peach-t2); letter-spacing: 0.01em; } .peach-codex-meta strong { color: var(--peach-t0); font-weight: 400; } .peach-codex-toggle-desc { margin: 8px 0 0; font-size: 0.75rem; color: var(--peach-t2); line-height: 1.45; } .peach-codex-error { margin: 0; } .peach-codex-generate-btn { margin-top: 4px; } .peach-codex-footnote { margin: 8px 0 0; font-size: 0.6875rem; color: var(--peach-t2); line-height: 1.5; font-style: italic; } .peach-codex-done { padding: 12px; display: flex; flex-direction: column; gap: 6px; } .peach-codex-verify { font-family: var(--font-mono, ui-monospace, monospace); letter-spacing: 0.04em; color: var(--peach-t0); } /* ── Restore view — scanner ──────────────────────────────────────────── */ .peach-codex-scanner { position: relative; width: 100%; aspect-ratio: 4 / 3; background: var(--peach-s2, rgba(0, 0, 0, 0.6)); border-radius: 8px; overflow: hidden; } .peach-codex-video { width: 100%; height: 100%; object-fit: cover; display: block; } .peach-codex-camera-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, 0.55); text-align: center; } .peach-codex-progress-group { padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; } .peach-codex-progress-track { width: 100%; height: 4px; background: var(--peach-s2, rgba(255, 255, 255, 0.08)); border-radius: 2px; overflow: hidden; } .peach-codex-progress-fill { height: 100%; background: var(--peach-accent); transition: width 240ms var(--peach-curve-settle, cubic-bezier(0.16, 1, 0.3, 1)); } .peach-codex-progress-label { display: flex; justify-content: space-between; align-items: baseline; margin: 0; font-size: 0.75rem; color: var(--peach-t1); } .peach-codex-verify-tag { font-family: var(--font-mono, ui-monospace, monospace); font-size: 0.6875rem; color: var(--peach-t2); letter-spacing: 0.04em; } .peach-codex-hint { margin: 0; font-size: 0.75rem; color: var(--peach-t2); line-height: 1.4; } .peach-codex-warning { margin: 4px 0 0; } .peach-codex-passphrase-group { padding: 12px; display: flex; flex-direction: column; gap: 8px; } .peach-codex-cancel-btn { margin-top: auto; } /* Pro badge used in Settings → DATA → Peach Codex when free user. */ .peach-pro-badge { display: inline-flex; align-items: center; padding: 1px 6px; margin-left: 8px; font-family: var(--font-mono, ui-monospace, monospace); font-size: 9px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--peach-accent); border: 0.5px solid var(--peach-accent); border-radius: 4px; vertical-align: middle; opacity: 0.8; }