/* 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; } /* When the body hosts the ambient runes layer, give it a positioning context * so the absolute-positioned RecoveryRuneBackground anchors to the body. */ .peach-codex-body--runes { position: relative; isolation: isolate; } .peach-codex-body--runes > *:not(.peach-rune-background) { position: relative; z-index: 1; } .peach-codex-body--done { gap: 8px; padding-top: 8px; } /* Recovery-words confirmation — onboarding feel, but housed in an overlay. * Cormorant Garamond italic on the headlines mirrors the lock screen so the * user lands in the same mental space as "set up recovery words". */ .peach-codex-recovery-headline { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; } .peach-codex-recovery-title { font-family: "Cormorant Garamond", "Times New Roman", serif; font-style: italic; font-weight: 400; font-size: 1.25rem; letter-spacing: -0.005em; color: var(--peach-t0); margin: 0; } .peach-codex-recovery-body { margin: 0; font-size: 0.8125rem; line-height: 1.45; color: var(--peach-t1); } .peach-codex-recovery-warn { margin: 0; font-size: 0.75rem; line-height: 1.45; color: var(--peach-accent); font-style: italic; } .peach-codex-words-grid { list-style: none; margin: 4px 0 0; padding: 12px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 16px; border: 1px solid var(--peach-t3); border-radius: 8px; background: rgba(245, 240, 234, 0.04); } .peach-codex-word-row { display: flex; align-items: baseline; gap: 6px; } .peach-codex-word-numeral { font-family: "Cormorant Garamond", "Times New Roman", serif; font-style: italic; font-size: 0.75rem; color: var(--peach-accent); width: 28px; flex: 0 0 28px; letter-spacing: 0.02em; } .peach-codex-word-text { font-family: "IBM Plex Mono", monospace; font-size: 0.6875rem; letter-spacing: 0.06em; color: var(--peach-t0); text-transform: lowercase; } .peach-codex-confirm-section { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; } .peach-codex-confirm-label { font-family: "IBM Plex Mono", monospace; font-size: 0.625rem; letter-spacing: 0.04em; color: var(--peach-t2); margin: 0; } .peach-codex-confirm-row { display: flex; align-items: center; gap: 8px; } .peach-codex-confirm-pos { font-family: "IBM Plex Mono", monospace; font-size: 0.5625rem; color: var(--peach-t2); min-width: 52px; letter-spacing: 0.04em; } .peach-codex-confirm-input { flex: 1; background: transparent; border: none; border-bottom: 1px solid var(--peach-t3); color: var(--peach-t0); font-family: "IBM Plex Mono", monospace; font-size: 0.75rem; letter-spacing: 0.06em; padding: 4px 2px 3px; outline: none; text-transform: lowercase; transition: border-color 120ms ease; } .peach-codex-confirm-input:focus { border-bottom-color: var(--peach-accent); } .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-meta-hint { margin-top: 6px; line-height: 1.5; color: var(--peach-t3, var(--peach-t2)); opacity: 0.8; } .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-worst-stripe { margin-top: -2px; color: var(--peach-t3); font-size: 0.6875rem; } .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; } /* ── Done-screen storage guidance (CodexGenerateView, step=done) ────────── */ .peach-codex-done-guidance { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 2px; text-align: left; } .peach-codex-done-item { display: flex; gap: 8px; align-items: flex-start; } .peach-codex-done-item-title { font-size: 0.75rem; font-weight: 600; color: var(--peach-t0); margin: 0 0 1px; } .peach-codex-done-item-body { font-size: 0.6875rem; color: var(--peach-t2); line-height: 1.35; margin: 0; } .peach-codex-done-regenerate { font-size: 0.6875rem; color: var(--peach-t3); font-family: var(--font-mono, ui-monospace, monospace); line-height: 1.25; text-align: center; margin: 0 0 6px; } /* ── Restore choose screen (CodexRestoreView, phase=choose) ─────────────── */ .peach-codex-restore-choose { display: flex; flex-direction: column; gap: 12px; padding: 12px 0; } .peach-codex-restore-headline { margin: 0; font-size: 1rem; font-weight: 600; color: var(--peach-t0); } .peach-codex-restore-sub { margin: 0; font-size: 0.8125rem; color: var(--peach-t2); } .peach-codex-restore-option { display: flex; align-items: center; gap: 14px; padding: 14px; border: 0.5px solid var(--peach-border, rgba(255, 255, 255, 0.12)); border-radius: 10px; background: transparent; cursor: pointer; text-align: left; transition: background 150ms ease, border-color 150ms ease; width: 100%; color: inherit; font-family: inherit; } .peach-codex-restore-option:hover { background: rgba(255, 255, 255, 0.04); border-color: var(--peach-accent); } .peach-codex-restore-option-icon { flex-shrink: 0; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; color: var(--peach-accent); border-radius: 8px; background: color-mix(in srgb, var(--peach-accent) 10%, transparent); border: 1px solid color-mix(in srgb, var(--peach-accent) 22%, transparent); } .peach-codex-restore-option-icon svg { display: block; } .peach-codex-restore-option:hover .peach-codex-restore-option-icon { background: color-mix(in srgb, var(--peach-accent) 16%, transparent); border-color: color-mix(in srgb, var(--peach-accent) 36%, transparent); } .peach-codex-restore-option-content { display: flex; flex-direction: column; gap: 2px; } .peach-codex-restore-option-title { font-size: 0.875rem; font-weight: 600; color: var(--peach-t0); } .peach-codex-restore-option-sub { font-size: 0.75rem; color: var(--peach-t2); } .peach-codex-restore-guidance { font-size: 0.75rem; color: var(--peach-t2); text-align: center; margin: 8px 0 0; line-height: 1.5; } .peach-codex-pdf-import { display: flex; flex-direction: column; gap: 8px; padding: 16px 0; align-items: stretch; } .peach-codex-pdf-shortfall { display: flex; flex-direction: column; gap: 10px; padding: 14px 12px; } .peach-codex-pdf-shortfall-copy { margin: 0; font-size: 0.75rem; color: var(--peach-t2); line-height: 1.5; } .peach-codex-pdf-shortfall-actions { display: flex; gap: 8px; flex-wrap: wrap; } /* ── Live Aztec gallery (generating step) ─────────────────────────────────── */ .peach-codex-aztec-gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; padding: 12px 12px 0; } .peach-codex-aztec-tile { width: 100%; aspect-ratio: 1; display: block; border-radius: 2px; image-rendering: pixelated; animation: codex-tile-in 280ms cubic-bezier(0.16, 1, 0.3, 1) both; } @keyframes codex-tile-in { from { opacity: 0; transform: scale(0.82); } to { opacity: 1; transform: scale(1); } }