@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/cormorant-garamond-latin.woff2) format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url(../fonts/cormorant-garamond-italic-latin.woff2) format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url(../fonts/newsreader-latin.woff2) format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 300 500;
  font-display: swap;
  src: url(../fonts/newsreader-italic-latin.woff2) format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url(../fonts/dm-sans-latin.woff2) format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: italic;
  font-weight: 300 400;
  font-display: swap;
  src: url(../fonts/dm-sans-italic-latin.woff2) format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/space-grotesk-latin.woff2) format("woff2");
}
:root {
  --paper: #0C0B10;
  --paper-bright: #1C1B22;
  --paper-dim: #141318;
  --paper-deep: #0A090E;
  --paper-high: #24222B;
  --paper-surface: #2E2C37;
  --ink: #E8DCC8;
  --ink-bright: #F5EEDF;
  --ink-soft: #B8AE9C;
  --ink-faint: #7D756A;
  --ink-ghost: #4A453E;
  --ink-whisper: #2A2722;
  --rule: rgba(160, 150, 130, 0.07);
  --rule-light: rgba(160, 150, 130, 0.04);
  --accent: #D4A254;
  --accent-bright: #E8B96A;
  --accent-dim: #B8873E;
  --accent-tint: #372f2a;
  --accent-mute: #584432;
  --accent-wash: rgba(212, 162, 84, 0.06);
  --sage: #6BAF7B;
  --sage-tint: rgba(107, 175, 123, 0.10);
  --sky: #7BA4C8;
  --sky-tint: rgba(123, 164, 200, 0.10);
  --clay: #D4726A;
  --clay-dim: #BE5E56;
  --clay-tint: rgba(212, 114, 106, 0.10);
  --color-success: #6BAF7B;
  --color-error: #D4726A;
  --color-warning: #D4A254;
  --color-info: #7BA4C8;
  --overlay-light: rgba(10, 9, 14, 0.96);
  --overlay-dark: rgba(0, 0, 0, 0.55);
  --shadow-accent: 0 0 20px rgba(212, 162, 84, 0.2), 0 0 6px rgba(212, 162, 84, 0.1);
  --shadow-accent-lg: 0 0 30px rgba(212, 162, 84, 0.3), 0 0 10px rgba(212, 162, 84, 0.15);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4), 0 2px 4px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5), 0 4px 8px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.50);
  --glow-photo: 0 0 16px rgba(212, 162, 84, 0.12), 0 2px 8px rgba(0, 0, 0, 0.4);
  --glass: rgba(20, 19, 24, 0.75);
  --glass-raised: rgba(28, 27, 34, 0.7);
  --glass-bright: rgba(36, 34, 43, 0.65);
  --frost-border: rgba(140, 130, 110, 0.07);
  --frost-border-lit: rgba(140, 130, 110, 0.12);
  --frost-sheen: none;
  --blur-glass: blur(16px);
  --blur-heavy: blur(24px);
  --font-logotype:
    "Cormorant Garamond",
    Georgia,
    serif;
  --font-display:
    "DM Sans",
    system-ui,
    sans-serif;
  --font-body:
    "Newsreader",
    Georgia,
    serif;
  --font-label:
    "Space Grotesk",
    system-ui,
    sans-serif;
  --space-2xs: 0.125rem;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-smd: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
  --z-feed: 1;
  --z-header: 10;
  --z-capture-btn: 50;
  --z-query-overlay: 80;
  --z-sensing: 90;
  --z-capture: 100;
  --z-dialog: 200;
  --z-action: 250;
  --z-toast: 300;
  --z-splash: 1000;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}
*:focus {
  outline: none;
}
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  height: 100%;
  overflow: hidden;
}
body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  height: 100%;
  overflow: hidden;
  line-height: 1.5;
}
#app {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--paper);
}
.t-display {
  font-family: var(--font-display);
  font-weight: 400;
}
.t-display-italic {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
}
.t-label {
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
#loading-overlay {
  position: absolute;
  inset: 0;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: var(--z-splash);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
#loading-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}
.splash-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-logotype);
  font-style: normal;
  font-weight: 500;
  font-size: 2.75rem;
  color: var(--ink-bright);
  letter-spacing: -0.01em;
}
.splash-wordmark .wordmark-icon {
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
}
::-webkit-scrollbar {
  width: 3px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--ink-whisper);
  border-radius: 3px;
}
.stagger-in > * {
  opacity: 0;
  transform: translateY(12px);
  animation: stagger-fade 0.5s var(--ease-out) forwards;
}
.stagger-in > *:nth-child(1) {
  animation-delay: 0.05s;
}
.stagger-in > *:nth-child(2) {
  animation-delay: 0.1s;
}
.stagger-in > *:nth-child(3) {
  animation-delay: 0.15s;
}
.stagger-in > *:nth-child(4) {
  animation-delay: 0.2s;
}
.stagger-in > *:nth-child(5) {
  animation-delay: 0.25s;
}
.stagger-in > *:nth-child(6) {
  animation-delay: 0.3s;
}
.stagger-in > *:nth-child(7) {
  animation-delay: 0.35s;
}
.stagger-in > *:nth-child(8) {
  animation-delay: 0.4s;
}
@keyframes stagger-fade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hidden {
  display: none !important;
}
body.platform-ios {
}
body.platform-android {
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.form-group label {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.8125rem;
  color: var(--ink-faint);
}
.form-input {
  width: 100%;
  height: 2.75rem;
  padding: 0 var(--space-md);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--ink);
  background: var(--paper-dim);
  border: 1px solid var(--paper-surface);
  border-radius: var(--radius-md);
  outline: none;
  transition: box-shadow var(--duration-fast) ease;
}
.form-input::placeholder {
  color: var(--ink-ghost);
}
.form-input:focus {
  box-shadow: 0 0 0 3px var(--accent-wash);
}
.form-input:disabled,
.form-input[readonly] {
  background: var(--paper-dim);
  color: var(--ink-ghost);
  cursor: not-allowed;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1;
  padding: 0.75rem var(--space-lg);
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: transform var(--duration-fast) ease, opacity var(--duration-fast) ease;
  white-space: nowrap;
  -webkit-user-select: none;
  user-select: none;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn:active:not(:disabled) {
  transform: scale(0.97);
}
.btn-primary {
  background: var(--accent);
  color: var(--paper-deep);
  box-shadow:
    0 0 4px rgba(212, 162, 84, 0.4),
    0 0 12px rgba(212, 162, 84, 0.15),
    inset 0 1px 0 rgba(255, 220, 160, 0.15);
}
.btn-primary:active:not(:disabled) {
  background: var(--accent-dim);
  box-shadow: none;
}
.btn-secondary {
  background: var(--paper-surface);
  color: var(--ink-soft);
  box-shadow: none;
  border: none;
}
.btn-secondary:active:not(:disabled) {
  background: var(--paper-high);
  box-shadow: none;
}
.btn-danger {
  background: var(--clay-tint);
  color: var(--clay);
}
.btn-danger:active:not(:disabled) {
  background: var(--clay-tint);
  opacity: 0.8;
}
.btn-full {
  width: 100%;
}
.btn-sm {
  font-size: 0.8125rem;
  padding: 0.5rem var(--space-md);
}
.btn.loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}
.btn.loading::after {
  content: "";
  position: absolute;
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--accent);
  border-top-color: transparent;
  border-radius: 50%;
  animation: btn-spin 0.6s linear infinite;
}
.btn-secondary.loading::after {
  border-color: var(--ink-ghost);
  border-top-color: transparent;
}
.btn-danger.loading::after {
  border-color: var(--clay);
  border-top-color: transparent;
}
@keyframes btn-spin {
  to {
    transform: rotate(360deg);
  }
}
.btn.btn-loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}
.btn.btn-loading::after {
  content: "";
  position: absolute;
  width: 1rem;
  height: 1rem;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: btn-spin 0.6s linear infinite;
}
the-toast {
  position: fixed;
  bottom: calc(var(--safe-bottom) + var(--space-md));
  left: var(--space-md);
  right: var(--space-md);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  pointer-events: none;
  border: none;
  padding: 0;
  margin: 0;
  background: none;
}
the-toast:popover-open {
  inset: unset;
  position: fixed;
  bottom: calc(var(--safe-bottom) + var(--space-md));
  left: var(--space-md);
  right: var(--space-md);
  width: calc(100% - 2 * var(--space-md));
  display: flex;
  flex-direction: column;
  align-items: stretch;
  pointer-events: none;
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  overflow: visible;
}
.toast {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  background: var(--paper-bright);
  color: var(--ink);
  border: 1px solid var(--frost-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 500;
  width: 100%;
  position: relative;
  overflow: hidden;
  animation: toast-in 0.3s var(--ease-out);
}
.toast.removing {
  animation: toast-out 0.3s var(--ease-out) forwards;
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(0.75rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateY(0.75rem);
  }
}
.toast-icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
}
.toast-icon svg {
  width: 100%;
  height: 100%;
}
.toast-success .toast-icon {
  color: var(--color-success);
}
.toast-error .toast-icon {
  color: var(--color-error);
}
.toast-warning .toast-icon {
  color: var(--color-warning);
}
.toast-info .toast-icon {
  color: var(--color-info);
}
.toast-message {
  flex: 1;
  line-height: 1.4;
}
.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.15);
  animation: toast-drain linear forwards;
}
@keyframes toast-drain {
  from {
    width: 100%;
  }
  to {
    width: 0%;
  }
}
dialog {
  border: none;
  padding: 0;
  background: transparent;
  max-width: none;
  max-height: none;
  overflow: visible;
  color: inherit;
}
dialog::backdrop {
  background: transparent;
}
.auth-dialog,
.account-dialog,
.upgrade-dialog,
.plans-dialog,
.query-response-dialog,
.insight-dialog,
.photo-dialog,
.photo-preview-dialog,
.camera-dialog,
.calendar-dialog,
.help-dialog,
.lens-detail-dialog,
.browse-captures-dialog,
.browse-insights-dialog,
.browse-lenses-dialog,
.browse-queries-dialog,
.browse-events-dialog,
.photo-map-dialog,
.similar-photos-dialog,
.set-photo-location-dialog {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: var(--paper);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: dialog-fade-in 0.25s ease;
  display: flex;
  flex-direction: column;
}
.auth-dialog.dialog-closing,
.account-dialog.dialog-closing,
.upgrade-dialog.dialog-closing,
.plans-dialog.dialog-closing,
.query-response-dialog.dialog-closing,
.insight-dialog.dialog-closing,
.photo-dialog.dialog-closing,
.photo-preview-dialog.dialog-closing,
.camera-dialog.dialog-closing,
.calendar-dialog.dialog-closing,
.help-dialog.dialog-closing,
.lens-detail-dialog.dialog-closing,
.browse-captures-dialog.dialog-closing,
.browse-insights-dialog.dialog-closing,
.browse-lenses-dialog.dialog-closing,
.browse-queries-dialog.dialog-closing,
.browse-events-dialog.dialog-closing,
.photo-map-dialog.dialog-closing,
.similar-photos-dialog.dialog-closing,
.set-photo-location-dialog.dialog-closing {
  animation: dialog-fade-out 0.2s ease forwards;
}
@keyframes dialog-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes dialog-fade-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
.dialog-back-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: calc(var(--safe-top) + var(--space-md)) var(--space-md) 0;
}
.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(var(--safe-top) + var(--space-md)) var(--space-md) 0;
  background: var(--paper);
}
.dialog-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--ink);
}
.dialog-heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.75rem;
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: -0.01em;
  padding-left: var(--space-2xs);
}
.dialog-close {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid var(--paper-surface);
  background: var(--paper-bright);
  color: var(--ink-soft);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast) ease;
}
.dialog-close:hover {
  color: var(--ink);
}
.dialog-close svg {
  width: 1rem;
  height: 1rem;
}
.dialog-menu-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid var(--paper-surface);
  background: var(--paper-bright);
  color: var(--ink-soft);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  transition: all var(--duration-fast) ease;
}
.dialog-menu-btn svg {
  width: 1rem;
  height: 1rem;
}
.dialog-share {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid var(--paper-surface);
  background: var(--paper-bright);
  color: var(--ink-faint);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast) ease;
}
.dialog-share:hover {
  color: var(--ink);
}
.dialog-share svg {
  width: 1rem;
  height: 1rem;
}
.dialog-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  padding: var(--space-md) var(--space-md) calc(var(--safe-bottom) + var(--space-md));
  flex: 1;
}
.dialog-content-flush {
  padding-top: 0;
}
.dialog-query-bar {
  margin-top: auto;
}
.insight-dialog-body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.6;
}
.insight-dialog-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  vertical-align: middle;
  margin-right: 0.25rem;
  position: relative;
  top: -0.0625rem;
}
.insight-dialog-icon svg {
  width: 1.0625rem;
  height: 1.0625rem;
}
.dialog-section {
  display: none;
}
.dialog-section.active {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.dialog-error {
  display: none;
  padding: var(--space-md);
  background: var(--clay-tint);
  color: var(--clay);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  line-height: 1.5;
}
.dialog-error.visible {
  display: block;
}
.dialog-description {
  font-size: 0.875rem;
  color: var(--ink-faint);
  line-height: 1.6;
}
.dialog-links {
  text-align: center;
}
.dialog-links a {
  display: block;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  color: var(--ink-ghost);
  text-decoration: none;
  padding: var(--space-xs) 0;
  transition: color var(--duration-fast) ease;
}
.dialog-links a:hover {
  color: var(--ink-faint);
}
.dialog-links a strong {
  color: var(--accent);
  font-weight: 500;
}
.dialog-group {
  display: flex;
  flex-direction: column;
}
.dialog-group .section-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  background: var(--paper-bright);
  border: 1px solid var(--frost-border);
  border-radius: var(--radius-md);
  box-shadow: none;
  padding: var(--space-md);
  position: relative;
  overflow: hidden;
}
.dialog-group .section-items::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background:
    linear-gradient(
      90deg,
      transparent,
      var(--accent-dim),
      transparent);
  opacity: 0.5;
}
.dialog-group-description {
  font-size: 0.8125rem;
  color: var(--ink-faint);
  line-height: 1.5;
}
.dialog-modal {
  border: none;
  background: transparent;
  padding: var(--space-xl);
  max-width: 100%;
  width: 100%;
  height: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dialog-modal::backdrop {
  background: var(--overlay-dark);
}
.dialog-modal-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  background: var(--paper-bright);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  max-width: 20rem;
  width: 100%;
  box-shadow: var(--shadow-xl);
}
.dialog-modal .dialog-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.125rem;
  color: var(--ink);
}
.dialog-modal .dialog-message {
  font-family: var(--font-display);
  font-size: 0.875rem;
  color: var(--ink-faint);
  line-height: 1.6;
}
.dialog-modal .dialog-actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: space-evenly;
}
.auth-legal {
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.6875rem;
  color: var(--ink-ghost);
  margin-top: auto;
  margin-bottom: var(--space-lg);
}
.account-legal,
.upgrade-legal,
.plans-legal {
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.6875rem;
  color: var(--ink-ghost);
}
.auth-legal a,
.account-legal a,
.upgrade-legal a,
.plans-legal a {
  color: var(--ink-ghost);
  text-decoration: none;
  transition: color var(--duration-fast) ease;
}
.auth-legal a:hover,
.account-legal a:hover,
.upgrade-legal a:hover,
.plans-legal a:hover {
  color: var(--ink-faint);
}
.auth-legal span,
.account-legal span,
.upgrade-legal span,
.plans-legal span {
  margin: 0 var(--space-xs);
}
.sub-summary-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.sub-summary-tier {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.125rem;
  color: var(--ink);
}
.sub-badge-free,
.sub-badge-active {
  font-family: var(--font-label);
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.sub-badge-free {
  background: var(--paper-bright);
  color: var(--ink-faint);
}
.sub-badge-active {
  background: var(--sage-tint);
  color: var(--sage);
}
.usage-label {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  color: var(--ink-faint);
}
.usage-value {
  float: right;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.usage-bar {
  width: 100%;
  height: 0.375rem;
  background: var(--paper-dim);
  border-radius: 0.1875rem;
  margin-top: var(--space-xs);
  overflow: hidden;
}
.usage-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 0.1875rem;
  transition: width var(--duration-normal) var(--ease-out);
}
.usage-fill-warning {
  background: var(--color-warning);
}
.usage-fill-critical {
  background: var(--clay);
}
.usage-gratis-active .usage-label {
  color: var(--accent);
}
.usage-bar-gratis {
  background: var(--accent-mute);
}
.sub-summary-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}
.account-email-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  min-height: 2.75rem;
  padding: 0 var(--space-md);
  background: var(--paper-dim);
  border: 1px solid var(--paper-surface);
  border-radius: var(--radius-sm);
}
.account-email {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
.email-badge {
  font-family: var(--font-label);
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-pill);
}
.email-badge.verified {
  background: var(--sage-tint);
  color: var(--sage);
}
.email-badge.unverified {
  background: var(--clay-tint);
  color: var(--clay);
}
.units-toggle {
  display: flex;
  gap: var(--space-xs);
}
.units-option {
  flex: 1;
  padding: var(--space-sm) var(--space-md);
  border: none;
  background: var(--paper-bright);
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  box-shadow: none;
  transition: transform var(--duration-fast) ease;
}
.units-option.active {
  background: var(--accent-tint);
  color: var(--accent);
}
.permission-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}
.permission-row + .permission-row {
  margin-top: var(--space-sm);
}
.permission-tappable {
  cursor: pointer;
}
.permission-info {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 0;
}
.permission-label {
  font-family: var(--font-display);
  font-size: 0.875rem;
  color: var(--ink);
}
.permission-desc {
  font-size: 0.75rem;
  color: var(--ink-faint);
}
.permission-badge {
  font-family: var(--font-label);
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 0.1875rem 0.5rem;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}
.permission-granted {
  background: var(--sage-tint);
  color: var(--sage);
}
.permission-denied {
  background: var(--clay-tint);
  color: var(--clay);
}
.danger-zone .dialog-group-title {
  color: var(--clay);
}
.danger-zone-actions {
  display: flex;
  justify-content: stretch;
  gap: var(--space-sm);
}
.danger-zone-actions * {
  flex: 1 1 0;
}
.upgrade-message {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  line-height: 1.6;
}
.upgrade-cta {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--ink-faint);
}
.upgrade-benefits-list {
  list-style: none;
  padding: 0;
}
.upgrade-benefits-list li {
  padding: var(--space-sm) 0;
  padding-left: var(--space-lg);
  position: relative;
  font-size: 0.875rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.upgrade-benefits-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--accent);
}
.upgrade-footer {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
}
.upgrade-purchase-status {
  text-align: center;
  padding: var(--space-xl) 0;
}
.upgrade-spinner {
  width: 2rem;
  height: 2rem;
  border: 2px solid var(--frost-border);
  border-top-color: var(--accent);
  border-radius: 50%;
  margin: 0 auto var(--space-md);
  animation: btn-spin 0.8s linear infinite;
}
.upgrade-status-text {
  font-family: var(--font-display);
  font-size: 0.875rem;
  color: var(--ink-faint);
}
.plans-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
}
.plans-content.visible {
  opacity: 1;
}
.plans-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.plan-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  background: var(--paper-bright);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  border: 1px solid var(--paper-surface);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.plan-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background:
    linear-gradient(
      90deg,
      transparent,
      var(--accent-dim),
      transparent);
  opacity: 0.5;
}
.plan-card-current {
  background: var(--glass-raised);
}
.plan-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.plan-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.375rem;
  color: var(--ink);
}
.plan-badge {
  font-family: var(--font-label);
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-pill);
}
.plan-badge-current {
  background: var(--accent);
  color: var(--paper);
}
.plan-price {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--ink-soft);
}
.plan-benefits {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.plan-benefits li {
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.875rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.plan-benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25rem;
  width: 0.875rem;
  height: 0.875rem;
  background: var(--accent);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 8.5L6.5 12L13 4' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 8.5L6.5 12L13 4' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask-size: contain;
  mask-repeat: no-repeat;
}
.plan-select-btn {
  width: 100%;
}
.plan-current-label {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--ink-ghost);
  text-align: center;
}
.plans-notes {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.plans-notes p {
  font-size: 0.8125rem;
  color: var(--ink-ghost);
  line-height: 1.6;
}
.plans-error {
  text-align: center;
  padding: var(--space-xl);
  color: var(--ink-faint);
}
.plans-loading {
  text-align: center;
  padding: var(--space-xl);
  color: var(--ink-ghost);
}
.query-response-dialog-content {
  padding: var(--space-md) 0;
}
.view {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
#feed-view {
  background: var(--paper);
  z-index: var(--z-feed);
  top: var(--safe-top);
}
#feed-view.active {
  pointer-events: auto;
}
.feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-md) 0;
  position: relative;
  z-index: 1;
}
.feed-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--font-logotype);
  font-style: normal;
  font-weight: 500;
  font-size: 1.625rem;
  color: var(--ink-bright);
  letter-spacing: -0.01em;
  line-height: 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.feed-wordmark.visible {
  opacity: 1;
  visibility: visible;
}
.feed-wordmark .wordmark-icon {
  width: 1.875rem;
  height: 1.875rem;
  flex-shrink: 0;
}
.feed-header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.upload-file-input {
  display: none;
}
.upload-btn,
.settings-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid var(--paper-surface);
  background: var(--paper-bright);
  color: var(--accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    color var(--duration-fast) ease;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.upload-btn.visible,
.settings-btn.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.upload-btn svg,
.settings-btn svg {
  width: 1.125rem;
  height: 1.125rem;
}
.feed-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  padding: 0 var(--space-md) calc(var(--safe-bottom) + 6.5rem);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  position: relative;
  z-index: 1;
}
.feed-content.visible {
  opacity: 1;
  visibility: visible;
}
feed-photos,
feed-insights,
feed-lenses,
feed-upcoming,
feed-map {
  display: flex;
  flex-direction: column;
}
feed-insights.past-primer[data-empty],
feed-lenses.past-primer[data-empty],
feed-queries.past-primer[data-empty],
feed-upcoming.past-primer[data-empty] {
  display: none;
}
[data-empty] > .section-content {
  display: none;
}
[data-empty] > .section-cta {
  display: flex;
  flex-direction: column;
}
:not([data-empty]) > .section-cta {
  display: none;
}
.section-header {
  display: flex;
  align-items: center;
  gap: var(--space-smd);
  margin-bottom: var(--space-smd);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.section-header:active .section-label {
  color: var(--ink-soft);
}
.section-header:active .section-header-chevron {
  color: var(--accent);
}
.section-label {
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
  transition: color var(--duration-fast) ease;
}
.section-rule {
  flex: 1;
  min-height: 1px;
  height: 1px;
  background: var(--ink-ghost);
  opacity: 0.5;
}
.section-header-chevron {
  flex-shrink: 0;
  width: 0.75rem;
  height: 0.75rem;
  color: var(--accent-dim);
  transition: color var(--duration-fast) ease;
}
.section-header-static {
  cursor: default;
  -webkit-tap-highlight-color: initial;
}
.section-header-static:active .section-label {
  color: var(--ink-faint);
}
.section-ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  border: 1px solid var(--ink-ghost);
  background: transparent;
  cursor: pointer;
  transition: transform var(--duration-fast) ease, border-color var(--duration-fast) ease;
  -webkit-tap-highlight-color: transparent;
  padding: 0;
}
.section-ghost:active {
  transform: scale(0.95);
  border-color: var(--accent-dim);
}
.section-ghost-label {
  font-family: var(--font-label);
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-dim);
  white-space: nowrap;
}
.section-ghost svg {
  width: 0.625rem;
  height: 0.625rem;
  color: var(--accent-dim);
  flex-shrink: 0;
}
.photos-ghost {
  flex-shrink: 0;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: var(--radius-md);
  scroll-snap-align: start;
}
.insight-ghost {
  flex-shrink: 0;
  min-height: 4rem;
  border-radius: var(--radius-lg);
  scroll-snap-align: start;
  width: 6rem;
}
.lens-ghost {
  border-radius: var(--radius-pill);
  padding: 0.5rem 1rem;
}
.queries-ghost,
.events-ghost {
  border: none;
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  width: 100%;
}
.activity-rule {
  height: 1px;
  background: var(--ink-whisper);
  width: 50%;
  align-self: center;
}
.section-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-smd);
}
.section-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--accent);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  margin-top: var(--space-xs);
  transition: color var(--duration-fast) ease;
}
.section-cta-link:active {
  color: var(--accent-bright);
}
.section-cta-hint {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--ink-soft);
  margin-bottom: var(--space-sm);
}
.feed-map-content {
  display: block;
}
.feed-map-wrap {
  position: relative;
  height: 12.5rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--paper-deep);
}
.feed-map-wrap the-map {
  display: block;
  width: 100%;
  height: 100%;
}
.feed-map-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  cursor: pointer;
}
.photos-strip {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.photos-strip::-webkit-scrollbar {
  display: none;
}
.photo-thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  flex-shrink: 0;
  width: 4.5rem;
  scroll-snap-align: start;
  cursor: pointer;
  transition: transform var(--duration-fast) ease;
}
.photo-thumb:active {
  transform: scale(0.95);
}
.photo-thumb-img {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: var(--radius-md);
  object-fit: cover;
  display: block;
  position: relative;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.photo-thumb-img.loaded {
  opacity: 1;
}
.photo-thumb-pending {
  position: relative;
}
.photo-thumb-loader {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--paper-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper-bright);
}
.photo-thumb-loader img {
  width: 1.75rem;
  height: 1.75rem;
  opacity: 0.6;
}
.photo-thumb-pending .photo-thumb-img {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.photo-thumb-pending .photo-thumb-img.loaded {
  opacity: 1;
}
.photo-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  flex-shrink: 0;
  width: 4.5rem;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  transition: transform var(--duration-fast) ease;
}
.photo-cta:active {
  transform: scale(0.95);
}
.photo-cta-icon {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: var(--radius-md);
  border: 1.5px dashed var(--ink-ghost);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}
.photo-cta-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--accent);
}
.photo-cta-label {
  font-family: var(--font-label);
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
}
.photo-primer-hint {
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--ink-faint);
}
.insights-strip {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.insights-strip::-webkit-scrollbar {
  display: none;
}
.insights-strip .insight-card {
  flex-shrink: 0;
  scroll-snap-align: start;
}
.insights-strip .insight-card:only-of-type {
  width: 100%;
}
.insights-strip .insight-card:not(:only-of-type) {
  width: calc(100% - var(--space-xl));
}
.insight-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  background: var(--paper-bright);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--paper-surface);
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-out), box-shadow var(--duration-normal) ease;
  position: relative;
  overflow: hidden;
}
.insight-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background:
    linear-gradient(
      90deg,
      transparent,
      var(--accent-dim),
      transparent);
  opacity: 0.5;
}
.insight-card:active {
  transform: scale(0.99);
}
.insight-card-cta {
  cursor: default;
}
.insight-card-cta:active {
  transform: none;
}
.insight-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  vertical-align: middle;
  margin-right: 0.25rem;
  position: relative;
  top: -0.0625rem;
}
.insight-icon svg {
  width: 1rem;
  height: 1rem;
}
.insight-text {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  flex: 1;
}
.insight-card-cta .insight-text {
  color: var(--ink-soft);
}
.insight-text strong {
  font-style: normal;
  font-weight: 400;
  color: var(--ink-bright);
}
.insight-thumbs {
  display: flex;
  gap: 0.5rem;
}
.insight-thumb {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-xs);
  object-fit: cover;
  border: 1px solid var(--paper-surface);
  box-shadow: var(--glow-photo);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.insight-thumb.loaded {
  opacity: 1;
}
.insight-meta {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--ink-ghost);
}
.event-card {
  display: flex;
  flex-direction: column;
  padding: 0.875rem 1rem;
  background: var(--paper-bright);
  border-radius: var(--radius-md);
  border: 1px solid var(--frost-border);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform var(--duration-fast) ease;
}
.event-card:active {
  transform: scale(0.98);
}
.event-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}
.event-card-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
  min-width: 0;
}
.event-card-menu {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: none;
  background: none;
  color: var(--ink-soft);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.event-card-menu svg {
  width: 0.875rem;
  height: 0.875rem;
}
.event-card-label {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.4;
}
.event-card-date {
  font-family: var(--font-label);
  font-size: 0.6875rem;
  color: var(--ink-soft);
}
.event-card-cta {
  cursor: default;
}
.event-card-cta .event-card-date {
  color: var(--ink-faint);
}
.event-card-cta .event-card-label {
  color: var(--ink-soft);
}
.query-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.875rem 1rem;
  background: var(--paper-bright);
  border-radius: var(--radius-md);
  border: 1px solid var(--frost-border);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform var(--duration-fast) ease;
}
.query-card:active {
  transform: scale(0.98);
}
.query-card-title {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.query-card-title > span {
  flex: 1;
  min-width: 0;
}
.query-card-snippet {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--ink-faint);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.query-card-map-icon {
  flex-shrink: 0;
  width: 0.875rem;
  height: 0.875rem;
  margin-left: var(--space-sm);
  opacity: 0.6;
}
.query-bar {
  padding: var(--space-md);
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--paper);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-normal) ease, visibility var(--duration-normal) ease;
}
.query-bar.visible {
  opacity: 1;
  visibility: visible;
}
.capture-float {
  position: absolute;
  bottom: calc(var(--safe-bottom) + var(--space-lg));
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-capture-btn);
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  border: 1px solid var(--accent-mute);
  background: var(--accent-tint);
  color: var(--accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-accent), var(--shadow-lg);
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.capture-float.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.capture-float:active {
  transform: translateX(-50%) scale(0.95);
}
.capture-float svg {
  width: 1.375rem;
  height: 1.375rem;
}
.capture-float.hidden-for-overlay {
  transform: translateX(-50%) scale(0);
  opacity: 0;
  pointer-events: none;
}
.camera-dialog {
  background: var(--paper);
  display: flex;
  flex-direction: column;
}
.camera-viewfinder {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.camera-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.camera-dialog .dialog-close {
  position: absolute;
  top: calc(var(--safe-top) + var(--space-lg));
  right: var(--space-lg);
  background: var(--paper-bright);
  border: 1px solid var(--paper-surface);
  color: var(--ink-faint);
  z-index: 2;
}
.camera-controls {
  position: absolute;
  bottom: calc(var(--safe-bottom) + var(--space-2xl));
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.camera-toggle-btn {
  position: absolute;
  right: 25%;
  transform: translateX(50%);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: none;
  background: var(--accent-tint);
  color: var(--accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.camera-toggle-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}
.camera-shutter-btn {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  border: 3px solid var(--ink-soft);
  background: var(--paper-bright);
  cursor: pointer;
  position: relative;
  transition: all var(--duration-fast) ease;
}
.camera-shutter-btn:active {
  transform: scale(0.92);
}
.camera-shutter-btn::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--ink-soft);
  transition: all var(--duration-fast) ease;
}
.camera-flash {
  position: absolute;
  inset: 0;
  background: var(--ink-bright);
  opacity: 0;
  pointer-events: none;
  z-index: 10;
}
.camera-flash.flash {
  animation: camera-flash 0.4s ease-out;
}
@keyframes camera-flash {
  0% {
    opacity: 0.85;
  }
  100% {
    opacity: 0;
  }
}
.photo-preview-dialog {
  background: var(--paper-deep);
}
.photo-preview-header {
  background: transparent;
}
.photo-preview-dialog .dialog-close {
  background: var(--paper-bright);
  border-color: var(--paper-surface);
  color: var(--ink-faint);
}
.photo-preview-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.photo-preview-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-lg) var(--space-lg) calc(var(--safe-bottom) + var(--space-lg));
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  background:
    linear-gradient(
      to bottom,
      transparent,
      var(--paper-deep));
}
.photo-preview-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.photo-preview-retake,
.photo-preview-send {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  height: 3rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: all var(--duration-fast) ease;
}
.photo-preview-retake svg,
.photo-preview-send svg {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
}
.photo-preview-retake {
  background: var(--paper-bright);
  color: var(--ink-soft);
  border: 1px solid var(--paper-surface);
}
.photo-preview-retake:active {
  transform: scale(0.97);
}
.photo-preview-send {
  background: var(--accent);
  color: var(--paper);
}
.photo-preview-send:active {
  transform: scale(0.97);
}
voice-recorder {
  display: block;
}
.vr-shell {
  position: relative;
  height: 3.25rem;
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.vr-state {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background: var(--paper-bright);
  border: 1px solid var(--accent-mute);
  border-radius: var(--radius-pill);
  padding: 0 var(--space-sm) 0 var(--space-lg);
  box-shadow: none;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    border-color 0.4s ease,
    background 0.4s ease,
    box-shadow 0.25s ease;
}
.vr-state.active {
  opacity: 1;
  pointer-events: auto;
}
.vr-state.active > * {
  animation: vr-content-in 0.3s ease 0.1s both;
}
@keyframes vr-content-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.vr-idle {
  cursor: pointer;
  padding: 0 var(--space-lg) 0 var(--space-sm);
}
.vr-placeholder {
  flex: 1;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.9375rem;
  line-height: 1;
  color: var(--ink-soft);
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vr-mic-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: none;
  background: var(--accent-tint);
  color: var(--accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: var(--space-sm);
}
.vr-mic-btn svg {
  width: 1rem;
  height: 1rem;
}
.vr-recording {
  border-color: var(--sage);
  gap: var(--space-sm);
  padding: 0 var(--space-lg) 0 var(--space-sm);
  cursor: pointer;
  background:
    linear-gradient(
      to right,
      var(--vr-progress-tint, var(--sage-tint)) var(--vr-progress, 0%),
      var(--glass) var(--vr-progress, 0%));
}
.vr-viz {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 2.25rem;
  flex: 1;
  overflow: hidden;
}
.vr-viz-bar {
  width: 2px;
  border-radius: 1px;
  background: var(--sage);
  opacity: 0.6;
  min-height: 3px;
  transition: height 0.1s ease;
}
.vr-recording-label {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.9375rem;
  line-height: 1;
  color: var(--ink-soft);
  flex-shrink: 0;
}
.vr-stop-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: none;
  background: var(--clay-tint);
  color: var(--clay);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: var(--space-xs);
}
.vr-stop-btn svg {
  width: 0.875rem;
  height: 0.875rem;
}
.vr-staged {
  border-color: var(--accent);
  gap: var(--space-sm);
  padding: 0 var(--space-sm) 0 var(--space-sm);
}
.vr-staged > .vr-send-btn {
  margin-right: var(--space-xs);
}
.vr-staged-label {
  flex: 1;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.9375rem;
  line-height: 1;
  color: var(--ink-soft);
}
.vr-staged-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.vr-action-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid var(--ink-ghost);
  background: var(--paper-bright);
  color: var(--ink-soft);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vr-action-btn svg {
  width: 0.875rem;
  height: 0.875rem;
}
.vr-discard-btn {
  color: var(--clay);
}
.vr-play-btn.playing {
  border-color: var(--sage);
  color: var(--sage);
  background: var(--sage-tint);
}
.vr-send-btn {
  width: 2.25rem;
  height: 2.25rem;
  background: var(--accent);
  border: none;
  color: var(--paper-deep);
}
voice-recorder[mode=compact] .vr-shell {
  height: 2.75rem;
}
voice-recorder[mode=compact] .vr-state {
  padding: 0 var(--space-md) 0 0.375rem;
}
voice-recorder[mode=compact] .vr-idle {
  padding: 0 var(--space-md) 0 0.375rem;
}
voice-recorder[mode=compact] .vr-placeholder {
  font-size: 0.875rem;
}
voice-recorder[mode=compact] .vr-mic-btn {
  width: 2rem;
  height: 2rem;
}
voice-recorder[mode=compact] .vr-mic-btn svg {
  width: 0.875rem;
  height: 0.875rem;
}
voice-recorder[mode=compact] .vr-stop-btn {
  width: 2rem;
  height: 2rem;
}
voice-recorder[mode=compact] .vr-stop-btn svg {
  width: 0.75rem;
  height: 0.75rem;
}
voice-recorder[mode=compact] .vr-recording-label,
voice-recorder[mode=compact] .vr-staged-label {
  font-size: 0.8125rem;
}
voice-recorder[mode=compact] .vr-action-btn {
  width: 2rem;
  height: 2rem;
}
voice-recorder[mode=compact] .vr-action-btn svg {
  width: 0.75rem;
  height: 0.75rem;
}
voice-recorder[mode=compact] .vr-send-btn {
  width: 2rem;
  height: 2rem;
}
.query-response-dialog {
  display: flex;
  flex-direction: column;
}
.response-curating {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  flex: 1;
}
.response-curating.active {
  display: flex;
}
.curating-text {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--ink-faint);
}
.curating-dots {
  display: flex;
  gap: 0.375rem;
}
.curating-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--accent);
}
.curating-dot:nth-child(1) {
  animation: curate-pulse 1.4s ease-in-out 0s infinite;
}
.curating-dot:nth-child(2) {
  animation: curate-pulse 1.4s ease-in-out 0.2s infinite;
}
.curating-dot:nth-child(3) {
  animation: curate-pulse 1.4s ease-in-out 0.4s infinite;
}
@keyframes curate-pulse {
  0%, 80%, 100% {
    opacity: 0.2;
    transform: scale(0.8);
  }
  40% {
    opacity: 1;
    transform: scale(1.2);
  }
}
.response-content.hidden {
  display: none;
}
.response-body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  letter-spacing: -0.006em;
  color: var(--ink-soft);
  white-space: pre-line;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}
.response-photos {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.response-photos-label {
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.photo-ref {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--paper-bright);
  border-radius: var(--radius-md);
  border: 1px solid var(--frost-border);
}
.photo-ref-img {
  width: 4rem;
  height: 4rem;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}
.photo-ref-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  flex: 1;
  min-width: 0;
}
.photo-ref-title {
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--ink);
}
.photo-ref-meta {
  font-size: 0.75rem;
  color: var(--ink-ghost);
}
.response-viz {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  padding: var(--space-lg);
  background: var(--paper-bright);
  border-radius: var(--radius-md);
  border: 1px solid var(--frost-border);
}
.viz-title {
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.viz-timeline {
  display: flex;
  flex-direction: column;
}
.viz-timeline-label {
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
}
.viz-timeline-svg {
  width: 100%;
  height: auto;
  display: block;
}
.viz-axis {
  stroke: var(--ink-whisper);
  stroke-width: 1;
}
.viz-label {
  font-family: var(--font-label);
  font-size: 10px;
  fill: var(--ink-faint);
}
.viz-list {
  display: flex;
  flex-direction: column;
}
.viz-list-label {
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
}
.viz-list-items {
  list-style: none;
  padding: 0;
}
.viz-list-items li {
  padding: var(--space-sm) 0 var(--space-sm) 1rem;
  text-indent: -1rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.viz-list-items li::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ink-faint);
  vertical-align: middle;
  transform: translateY(-2px);
  margin-right: 0.625rem;
  margin-left: 0;
}
.viz-list-items li:first-child {
  padding-top: 0;
}
.viz-list-items li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.viz-photos {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.viz-photos-label {
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
}
.viz-photos-strip {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  padding-bottom: var(--space-xs);
  min-width: 0;
}
.viz-photos-strip::-webkit-scrollbar {
  display: none;
}
.viz-photo-thumb {
  width: 5rem;
  height: 5rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--paper-dim);
  border: none;
}
.viz-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity var(--duration-normal) ease;
}
.viz-photo-thumb.loaded img {
  opacity: 1;
}
.response-related {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--frost-border);
}
.related-label {
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.related-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  padding-left: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--duration-fast) ease;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.9375rem;
  color: var(--accent);
}
.related-item:hover {
  background: var(--accent-tint);
}
.related-item svg {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
  opacity: 0.5;
}
.photo-dialog .dialog-back-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  z-index: var(--z-header);
}
.photo-dialog-events:empty {
  display: none;
}
.photo-dialog-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2.5rem;
  height: 2.5rem;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}
.photo-dialog-loader.hidden {
  opacity: 0;
}
.photo-dialog-image-wrap {
  margin: 0 calc(-1 * var(--space-md));
  background: var(--paper-deep);
  height: 80vh;
  overflow: hidden;
  position: relative;
}
.photo-dialog-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.photo-dialog-image.loaded {
  opacity: 1;
}
.photo-dialog-image.contain {
  object-fit: contain;
}
.photo-dialog-heading {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  opacity: 0;
  transform: translateY(0.5rem);
  animation: photo-reveal-text 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}
.photo-dialog-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  border-top: 1px solid var(--frost-border);
  opacity: 0;
  transform: translateY(0.5rem);
  animation: photo-reveal-text 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}
.photo-dialog-location {
  position: relative;
  height: 10rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--paper-deep);
  opacity: 0;
  transform: translateY(0.5rem);
  animation: photo-reveal-text 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}
.photo-dialog-location the-map {
  display: block;
  width: 100%;
  height: 100%;
}
.photo-dialog-location-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  cursor: pointer;
}
@keyframes photo-reveal-text {
  from {
    opacity: 0;
    transform: translateY(0.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes photo-reveal-divider {
  from {
    opacity: 0;
    transform: scaleX(0);
  }
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}
.photo-dialog-date {
  font-family: var(--font-label);
  font-size: 0.9rem;
  color: var(--ink-ghost);
}
.photo-dialog-section-label {
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
}
.photo-dialog-text-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.photo-dialog-text-list li {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink-faint);
  padding: var(--space-sm) var(--space-md);
  background: var(--paper-bright);
  border-radius: var(--radius-sm);
  border: 1px solid var(--frost-border);
}
.photo-map-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  pointer-events: none;
}
.photo-map-header .dialog-close {
  pointer-events: auto;
}
.photo-map-search-heading {
  position: absolute;
  top: calc(var(--safe-top) + var(--space-md) + 2.25rem + var(--space-md));
  left: var(--space-md);
  right: var(--space-md);
  z-index: 10;
  pointer-events: none;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.75rem;
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: -0.01em;
  padding-left: var(--space-2xs);
  margin: 0;
  opacity: 0;
  transition: opacity var(--duration-normal) ease;
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}
.photo-map-search-heading.visible {
  opacity: 1;
}
.photo-map-search-title {
  flex: 1;
  min-width: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.photo-map-search-clear {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  margin-top: 0.1875rem;
  border-radius: 50%;
  background: var(--glass);
  backdrop-filter: var(--blur-glass);
  border: 1px solid var(--frost-border);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
}
.photo-map-search-clear svg {
  width: 1rem;
  height: 1rem;
}
.photo-map-body {
  flex: 1;
  position: relative;
  overflow: hidden;
}
the-map {
  display: block;
  width: 100%;
  height: 100%;
}
.the-map-container {
  width: 100%;
  height: 100%;
}
.the-map-container canvas {
  filter: sepia(0.3);
}
.photo-map-my-location {
  position: absolute;
  right: var(--space-lg);
  bottom: calc(var(--safe-bottom) + var(--space-lg) + 3.25rem + var(--space-md));
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--glass);
  backdrop-filter: var(--blur-glass);
  border: 1px solid var(--frost-border);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-normal) ease;
}
.photo-map-my-location.visible {
  opacity: 1;
  pointer-events: auto;
}
.photo-map-my-location svg {
  width: 1.25rem;
  height: 1.25rem;
}
.photo-map-query-bar {
  position: absolute;
  bottom: calc(var(--safe-bottom) + var(--space-lg));
  left: var(--space-lg);
  right: var(--space-lg);
  z-index: 5;
}
.photo-map-marker {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-sm);
  overflow: visible;
  position: relative;
  background: transparent;
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--duration-normal) ease;
}
.photo-map-marker.visible {
  opacity: 1;
}
.photo-map-marker.visible:active {
  transform: scale(0.92);
}
.photo-map-marker-cluster {
  width: 3.25rem;
  height: 3.25rem;
}
.photo-map-marker-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
  display: block;
}
.photo-map-marker.cluster-expand-from {
  transform: translate(var(--expand-offset-x, 0), var(--expand-offset-y, 0));
  transition: none;
}
.photo-map-marker.cluster-expand-to {
  transform: translate(0, 0);
  transition: transform 250ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.photo-map-marker-count {
  position: absolute;
  bottom: -0.375rem;
  right: -0.375rem;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.3125rem;
  border-radius: var(--radius-pill);
  background: var(--paper-surface);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.625rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.set-location-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.set-location-header .dialog-close {
  pointer-events: auto;
}
.set-location-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.125rem;
  color: var(--ink);
  margin: 0;
  padding-left: var(--space-2xs);
}
.set-location-body {
  flex: 1;
  position: relative;
  overflow: hidden;
}
.set-location-body the-map {
  display: block;
  width: 100%;
  height: 100%;
}
.set-location-crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 3rem;
  height: 3rem;
  color: rgba(255, 255, 255, 0.6);
  pointer-events: none;
  z-index: 5;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.5));
}
.set-location-crosshair svg {
  width: 100%;
  height: 100%;
}
.set-location-actions {
  position: absolute;
  bottom: calc(var(--safe-bottom) + var(--space-lg));
  left: var(--space-lg);
  right: var(--space-lg);
  z-index: 5;
  display: flex;
  justify-content: center;
}
.set-location-save {
  width: 100%;
}
.lenses-strip {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  padding: var(--space-xs) 0;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.lenses-strip::-webkit-scrollbar {
  display: none;
}
.lens-card {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  background: var(--paper-bright);
  border: 1px solid var(--paper-surface);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s,
    transform var(--duration-fast) var(--ease-out);
  white-space: nowrap;
}
.lens-card:active {
  transform: scale(0.97);
}
.lens-card-name {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-transform: capitalize;
}
.lens-detail-body {
  overflow-y: auto;
}
.lens-detail-dialog > .dialog-query-bar {
  padding: var(--space-sm) var(--space-md) calc(var(--safe-bottom) + var(--space-md));
}
.lens-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xs);
}
.lens-photo-cell {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--paper-dim);
  cursor: pointer;
  transition: transform var(--duration-fast) ease;
}
.lens-photo-cell:active {
  transform: scale(0.97);
}
.lens-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.lens-photo-img.loaded {
  opacity: 1;
}
.lens-photo-title {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  color: var(--ink-faint);
  padding: var(--space-2xs) 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lens-detail-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xl) var(--space-md);
  text-align: center;
  color: var(--ink-faint);
  font-family: var(--font-display);
  font-size: 0.875rem;
}
calendar-events {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}
.calendar-dialog {
  display: flex;
  flex-direction: column;
}
.calendar-dialog-empty {
  font-size: 0.875rem;
  color: var(--ink-ghost);
  line-height: 1.6;
}
.calendar-dialog-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}
.calendar-date-group {
  display: flex;
  flex-direction: column;
}
.calendar-date-group-items {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.calendar-date-group-items .calendar-event-item {
  border-radius: 0;
}
.calendar-date-group-items .calendar-event-item:first-child {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.calendar-date-group-items .calendar-event-item:last-child {
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}
.calendar-date-group-items .calendar-event-item:only-child {
  border-radius: var(--radius-md);
}
.calendar-event-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--paper-bright);
  border-radius: var(--radius-md);
  border: 1px solid var(--frost-border);
}
.calendar-event-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}
.calendar-event-label {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.9375rem;
  color: var(--ink);
  line-height: 1.4;
}
.calendar-event-time {
  font-family: var(--font-label);
  font-size: 0.6875rem;
  color: var(--ink-soft);
}
.calendar-event-menu {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: none;
  background: none;
  color: var(--ink-soft);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.calendar-event-menu svg {
  width: 0.875rem;
  height: 0.875rem;
}
.action-dialog {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  max-width: none;
  max-height: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.action-dialog::backdrop {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(var(--space-md));
  -webkit-backdrop-filter: blur(var(--space-md));
  opacity: 0;
  transition: opacity 0.2s ease;
}
.action-dialog.visible {
  opacity: 1;
}
.action-dialog.visible::backdrop {
  opacity: 1;
}
.action-dialog-menu {
  display: flex;
  flex-direction: column;
  min-width: 14rem;
  background: var(--paper-bright);
  border: 1px solid var(--frost-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.action-dialog-btn {
  padding: var(--space-md) var(--space-lg);
  border: none;
  background: none;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--ink-soft);
  cursor: pointer;
  text-align: left;
  transition: background var(--duration-fast) ease;
}
.action-dialog-btn + .action-dialog-btn {
  border-top: 1px solid var(--frost-border);
}
.action-dialog-btn:active {
  background: var(--paper-dim);
}
.action-dialog-btn-destructive {
  color: var(--clay);
}
.browse-dialog-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}
.browse-dialog-empty {
  font-size: 0.875rem;
  color: var(--ink-ghost);
  line-height: 1.6;
}
.browse-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xs);
}
.browse-photo-cell {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--paper-dim);
  cursor: pointer;
  transition: transform var(--duration-fast) ease;
}
.browse-photo-cell:active {
  transform: scale(0.97);
}
.browse-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.browse-photo-img.loaded {
  opacity: 1;
}
.similar-photos-source {
  position: relative;
  flex: 0 0 33vh;
  background: var(--paper-deep);
  overflow: hidden;
}
.similar-photos-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  pointer-events: none;
}
.similar-photos-header .dialog-close {
  pointer-events: auto;
}
.similar-photos-source-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2.5rem;
  height: 2.5rem;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}
.similar-photos-source-loader.hidden {
  opacity: 0;
}
.similar-photos-source-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.similar-photos-source-img.loaded {
  opacity: 1;
}
.similar-photos-source-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--space-md);
  padding-top: var(--space-2xl);
  background:
    linear-gradient(
      to top,
      var(--overlay-dark) 0%,
      transparent 100%);
  pointer-events: none;
}
.similar-photos-source-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--ink-bright);
  letter-spacing: -0.01em;
  text-shadow: var(--shadow-sm);
}
.similar-photos-body {
  flex: 1;
  padding: var(--space-md) var(--space-md) calc(var(--safe-bottom) + var(--space-md));
}
.browse-insights-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.browse-queries-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.browse-lenses-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.browse-lens-item {
  display: flex;
  align-items: center;
  padding: var(--space-md);
  background: var(--paper-bright);
  border: 1px solid var(--frost-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform var(--duration-fast) ease;
}
.browse-lens-item:active {
  transform: scale(0.98);
}
.browse-lens-name {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-soft);
  flex: 1;
}
.browse-lens-chevron {
  width: 0.75rem;
  height: 0.75rem;
  color: var(--ink-ghost);
  flex-shrink: 0;
}
.browse-scroll-top {
  position: fixed;
  bottom: calc(var(--safe-bottom) + var(--space-lg));
  left: 50%;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid var(--paper-surface);
  background: var(--paper-bright);
  color: var(--ink-soft);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateX(-50%) translateY(0.5rem);
  pointer-events: none;
  transition: all var(--duration-normal) var(--ease-out);
  z-index: 10;
  -webkit-tap-highlight-color: transparent;
}
.browse-scroll-top.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.browse-scroll-top:active {
  color: var(--ink);
  transform: translateX(-50%) scale(0.92);
}
.browse-scroll-top svg {
  width: 1rem;
  height: 1rem;
}
.browse-dialog-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  color: var(--ink-faint);
  font-family: var(--font-display);
  font-size: 0.8125rem;
}
.help-dialog-content {
  gap: var(--space-md);
}
.help-dialog-heading {
  display: flex;
  align-items: center;
  gap: var(--space-smd);
}
.help-dialog-icon {
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
  color: var(--accent);
  opacity: 0.8;
}
.help-dialog-icon svg {
  width: 100%;
  height: 100%;
}
.help-dialog-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.375rem;
  color: var(--ink);
  margin: 0;
  padding-left: var(--space-2xs);
}
.help-dialog-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.help-dialog-text {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--ink-soft);
  line-height: 1.65;
  margin: 0;
}
.onboarding {
  position: absolute;
  inset: 0;
  z-index: var(--z-dialog);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 1;
}
.onboarding.exiting {
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
}
.onboarding-step {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  padding: var(--space-2xl) var(--space-xl);
  opacity: 0;
  transform: translateX(2rem);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
  pointer-events: none;
}
.onboarding-step.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.onboarding-step[data-step="0"].active {
  transition: none;
}
.onboarding-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-logotype);
  font-style: normal;
  font-weight: 500;
  font-size: 2.75rem;
  color: var(--ink-bright);
  letter-spacing: -0.01em;
}
.onboarding-brand .wordmark-icon {
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
}
.onboarding-tagline {
  position: absolute;
  top: calc(50% + 2.5rem);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.125rem;
  color: var(--ink-ghost);
}
.onboarding-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  max-width: 18rem;
}
.onboarding-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  text-align: center;
}
.onboarding-feature-icon {
  width: 2rem;
  height: 2rem;
  color: var(--accent);
}
.onboarding-feature-text {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.125rem;
  color: var(--ink);
}
.onboarding-feature-sub {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  color: var(--ink-faint);
  line-height: 1.5;
}
.onboarding-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  text-align: center;
  width: 100%;
  max-width: 18rem;
}
.onboarding-cta-heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--ink);
  line-height: 1.35;
}
.onboarding-cta-signin {
  font-family: var(--font-display);
  font-size: 0.8125rem;
}
.onboarding-cta-signin a {
  color: var(--ink-ghost);
  text-decoration: none;
  transition: color var(--duration-fast) ease;
}
.onboarding-cta-signin a:hover {
  color: var(--ink-faint);
}
.onboarding-cta-signin a strong {
  color: var(--accent);
  font-weight: 500;
}
.onboarding-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid var(--paper-surface);
  background: var(--paper-bright);
  color: var(--ink-faint);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: color var(--duration-fast) ease;
}
.onboarding-arrow svg {
  width: 1rem;
  height: 1rem;
}
.onboarding-arrow-left {
  left: var(--space-lg);
}
.onboarding-arrow-right {
  right: var(--space-lg);
}
.onboarding-footer {
  position: absolute;
  bottom: calc(var(--safe-bottom) + var(--space-lg));
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  z-index: 2;
}
.onboarding-nav {
  display: flex;
  gap: var(--space-sm);
}
.onboarding-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  border: none;
  background: var(--ink-whisper);
  cursor: pointer;
  padding: 0;
  transition: all var(--duration-normal) ease;
}
.onboarding-dot.active {
  background: var(--accent);
}
.onboarding-signin {
  font-family: var(--font-display);
  font-size: 0.8125rem;
}
.onboarding-signin a {
  color: var(--accent);
  text-decoration: none;
}
.onboarding-legal {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  color: var(--ink-ghost);
}
.onboarding-legal a {
  color: var(--ink-ghost);
  text-decoration: none;
  transition: color var(--duration-fast) ease;
}
.onboarding-legal a:hover {
  color: var(--ink-ghost);
}
.onboarding-legal span {
  margin: 0 var(--space-xs);
}
/*# sourceMappingURL=app.bundle.css.map */
