/* Base shared by every screen. Pages, camera and album each have their own file. */
:root {
  color-scheme: dark;
  --text: #f5f5f7;
  --muted: rgb(235 235 245 / .6);
  --accent: #ffd60a;
  --line: rgb(255 255 255 / .14);
  font: 16px/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", sans-serif;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; background: #000; color: var(--text); }
button, input, a { -webkit-tap-highlight-color: transparent; }
button { border: 0; background: none; color: inherit; font: inherit; cursor: pointer; touch-action: manipulation; user-select: none; }
button:disabled { opacity: .4; cursor: default; }
button:active { opacity: .7; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
a { color: inherit; text-underline-offset: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.icon { width: 24px; height: 24px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; }

/* Sheets opened over the camera */
dialog { width: min(100%, 560px); max-width: 100%; max-height: calc(100dvh - env(safe-area-inset-top) - 16px); margin: auto auto 0; padding: 20px 20px calc(24px + env(safe-area-inset-bottom)); border: 0; border-radius: 16px 16px 0 0; background: #1c1c1e; color: var(--text); overscroll-behavior: contain; }
dialog::backdrop { background: rgb(0 0 0 / .5); }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dialog-heading h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.close-dialog { background: rgb(255 255 255 / .1); flex-shrink: 0; }
dialog > p, .dialog-copy { color: var(--muted); font-size: 15px; line-height: 1.45; }
.toast { position: fixed; z-index: 30; top: calc(64px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 980px; background: rgb(44 44 46 / .94); color: #f5f5f7; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); font-size: 15px; line-height: 1.35; text-align: center; box-shadow: 0 8px 28px rgb(0 0 0 / .3); }
.toast:has(a) { border-radius: 18px; }
.toast a { display: block; min-height: 44px; padding-top: 10px; color: var(--accent); font-weight: 600; }
@media (orientation: landscape) and (max-height: 600px) { .toast { top: 56px; } }
@media (prefers-reduced-transparency: reduce) { .toast { background: #2c2c2e; backdrop-filter: none; -webkit-backdrop-filter: none; } }
