:root {
  color-scheme: dark;
  --white: #f5f4ed;
  --ink: #29332e;
  --muted: #859087;
  --hero-filter: sepia(.42) saturate(.7) contrast(.98);
  font-family: Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #333a31;
  color: var(--white);
  -webkit-font-smoothing: antialiased;
}
body { overscroll-behavior: none; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}
button:disabled { opacity: .38; cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid #ffffffe0;
  outline-offset: 5px;
}
svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
[hidden] { display: none !important; }
body[data-access="locked"] > :not(.access-screen):not(noscript) { display: none !important; }
.access-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
  background: linear-gradient(155deg, #29332ee8, #202720f5), url('/window-scene.png') center / cover;
}
.access-card { width: min(100%, 380px); }
.access-card h1 { margin: 16px 0; font-size: clamp(30px, 7vw, 42px); font-weight: 400; line-height: 1.1; letter-spacing: -.05em; }
.access-card > p:not(.eyebrow) { color: #c3c8bf; font-size: 14px; line-height: 1.6; }
.access-card label { display: block; margin: 32px 0 10px; font-size: 13px; }
.access-card input { width: 100%; min-height: 50px; border: 1px solid #ffffff42; border-radius: 10px; padding: 12px 14px; color: var(--white); background: #ffffff0a; }
.access-card .generate-button { width: 100%; margin-top: 14px; justify-content: center; }
.access-card .access-status { min-height: 44px; margin: 14px 0 0; }
.access-card .subtle-button { margin-top: 12px; }
.icon-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.window {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  isolation: isolate;
}
.screen, .preview-window, .pano-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.capture-screen, .preview-window, .pano-viewport {
  touch-action: none;
  cursor: grab;
  outline-offset: -6px !important;
}
.dragging { cursor: grabbing; }
.hero-image, #preview-image {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  user-select: none;
  pointer-events: none;
  will-change: transform;
}
.hero-image { width: 100%; height: 100%; object-fit: cover; }
.hero-past {
  position: absolute;
  inset: 0;
  pointer-events: none;
  backdrop-filter: var(--hero-filter);
  -webkit-backdrop-filter: var(--hero-filter);
  transition: opacity .5s ease, backdrop-filter .6s ease;
}
.pano-layer {
  position: absolute;
  inset: 0 auto 0 0;
  height: 100%;
  will-change: transform;
  pointer-events: none;
}
.pano-layer canvas { display: block; max-width: none; height: 100%; }
.past-clip {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 100%);
  pointer-events: none;
}
.hotspot-layer {
  position: absolute;
  inset: 0 auto 0 0;
  height: 100%;
  pointer-events: none;
}
.hotspot {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 7px #ffffff66, 0 2px 14px #000d;
  opacity: 1;
  transform: translate(-50%, -50%);
  transition: box-shadow .2s ease, opacity .2s ease, transform .2s ease;
  animation: hotspot-pulse 1.6s ease-in-out infinite;
  pointer-events: none;
}
.hotspot.active {
  box-shadow: 0 0 0 12px #ffffff77, 0 2px 16px #000d;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.25);
  animation: none;
}
@keyframes hotspot-pulse {
  0%, 100% { box-shadow: 0 0 0 7px #ffffff44, 0 2px 14px #000d; }
  50% { box-shadow: 0 0 0 12px #ffffff77, 0 2px 14px #000d; }
}
.hotspot-label {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  max-width: 140px;
  padding: 3px 7px;
  border-radius: 2px;
  background: #1a241ce8;
  color: #f3ecda;
  font-size: 10px;
  letter-spacing: .4px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  opacity: .92;
  transform: translate(-50%, 0);
  transition: opacity .2s ease, transform .2s ease;
}
.hotspot.active .hotspot-label,
.hotspots-ready .hotspot:hover .hotspot-label { opacity: 1; transform: translate(-50%, 0); }
.hotspot-card {
  position: absolute;
  z-index: 6;
  left: 50%;
  right: auto;
  bottom: calc(22px + env(safe-area-inset-bottom));
  width: min(420px, calc(100% - 36px));
  max-width: 420px;
  margin: 0;
  padding: 18px 20px 16px;
  border: 1px solid #f0e6c828;
  border-radius: 4px;
  background: linear-gradient(165deg, #1c261fe8, #121914f0);
  color: #e8e2d2;
  box-shadow: 0 18px 48px #00000055;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translateX(-50%);
}
.hotspot-card-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 28px;
  height: 28px;
  font-size: 20px;
  line-height: 1;
  color: #c9c2b0;
}
.hotspot-card-kicker {
  margin: 0 0 4px;
  font-size: 10px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #a79f8a;
}
.hotspot-card h3 {
  margin: 0 28px 8px 0;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: .2px;
  color: #f4efe1;
}
.hotspot-card p { margin: 0; font-size: 12px; line-height: 1.75; color: #c7c0ae; }
.hotspot-card-section { display: block; margin-top: 8px; }
.hotspot-card-section:first-child { margin-top: 0; }
.hotspot-card-section > span {
  display: block;
  margin-bottom: 1px;
  color: #938b78;
  font-size: 9px;
  line-height: 1.4;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}
.hotspot-card-note {
  margin-top: 10px !important;
  padding-top: 10px;
  border-top: 1px solid #f0e6c818;
  font-size: 11px !important;
  color: #9a9382 !important;
}
body.clean .hotspot-card { opacity: 0; pointer-events: none; }
.window-shade {
  position: absolute;
  z-index: 2;
  inset: 0;
  background: linear-gradient(180deg, #0e171940 0%, transparent 19%, transparent 51%, #0d171c15 62%, #08141f80 88%, #07121d96 100%);
  pointer-events: none;
  transition: opacity .4s ease;
}
.chrome { transition: opacity .35s ease, transform .35s ease; }

/* Only the view, a place, and a few quiet controls. */
.site-header {
  position: absolute;
  z-index: 5;
  top: calc(20px + env(safe-area-inset-top));
  left: max(24px, env(safe-area-inset-left));
  right: max(24px, env(safe-area-inset-right));
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-shadow: 0 1px 18px #0003;
}
.brand {
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: 11px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.65px;
  white-space: nowrap;
}
.brand svg { width: 23px; height: 23px; stroke-width: 1.2; }
.brand-light { font-weight: 400; opacity: .7; }
.window-place {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 40%;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .3px;
}
.window-place svg { width: 14px; height: 14px; opacity: .85; }
.window-place span { overflow: hidden; text-overflow: ellipsis; }
.round-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: #1730341c;
  border: 1px solid #ffffff30;
  border-radius: 50%;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background .2s ease;
}
.round-button:hover { background: #ffffff24; }
.menu-button svg { stroke-width: 2; }
.gesture-hint {
  position: absolute;
  z-index: 3;
  top: 43%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 36px);
  padding: 10px 16px;
  border: 1px solid #ffffff18;
  border-radius: 24px;
  background: #18333324;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: .4px;
  white-space: nowrap;
  text-shadow: 0 1px 6px #0004;
  pointer-events: none;
  opacity: .9;
}
.gesture-hint > span { font-size: 17px; }
.gesture-hint.dismissed { opacity: 0; }
.motion-button { pointer-events: auto; min-height: 44px; border-color: #ffffff55; background: #18333399; cursor: pointer; }
.motion-button > span { font-size: inherit; }
.motion-button svg { width: 19px; height: 19px; }
.journey-controls {
  position: absolute;
  z-index: 5;
  bottom: calc(15px + env(safe-area-inset-bottom));
  left: 50%;
  width: min(398px, calc(100% - 44px));
  transform: translateX(-50%);
  pointer-events: none;
}
.journey-controls button,
.journey-controls label,
.journey-controls input { pointer-events: auto; }
.time-caption {
  margin-bottom: 22px;
  text-align: center;
  pointer-events: none;
  text-shadow: 0 2px 22px #10191925;
}
.time-caption p {
  margin: 0 0 11px;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 1.7px;
  opacity: .78;
}
.time-caption h1 {
  margin: 0;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 65px;
  font-weight: 200;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -2px;
}
.year-suffix { margin-left: 3px; font-size: 24px; font-weight: 300; letter-spacing: 0; opacity: .7; }
#year-picker-button { font: inherit; letter-spacing: inherit; text-shadow: inherit; border-radius: 8px; }
#year-picker-button:hover { opacity: .85; }
.year-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ffffff26;
  padding-bottom: 14px;
}
.year-options button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 44px;
  padding: 0 10px 8px;
  color: #f4f3eca6;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .4px;
  text-shadow: 0 1px 12px #0003;
  transition: color .2s ease;
}
.year-options button:hover { color: var(--white); }
.year-options button.active, .year-options button[aria-pressed='true'] { color: #fff; }
.year-options button.active::before, .year-options button[aria-pressed='true']::before {
  content: '';
  position: absolute;
  inset: 5px 0 7px;
  background: #ffffff0a;
  border-radius: 18px;
}
.weather-switch {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 8px 0 2px;
}
.weather-switch[hidden] { display: none !important; }
.weather-switch button {
  appearance: none;
  border: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff10;
  color: #f5f4ed99;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, transform .15s ease;
}
.weather-switch button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.weather-switch button:hover {
  color: #fff;
  background: #ffffff1c;
}
.weather-switch button.active,
.weather-switch button[aria-pressed='true'] {
  color: #fff;
  background: #ffffff28;
  transform: translateY(-1px);
}
.weather-opt-in {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 8px 0 0;
  min-height: 36px;
  color: #f5f4edb8;
  font-size: 11px;
  letter-spacing: .02em;
  text-shadow: 0 1px 10px #0005;
  cursor: pointer;
  user-select: none;
}
.weather-opt-in[hidden] { display: none !important; }
.weather-opt-in input {
  width: 15px;
  height: 15px;
  margin: 0;
  flex-shrink: 0;
  accent-color: #c9d2c0;
}
.weather-opt-in-icons {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  opacity: .85;
}
.weather-opt-in-icons svg {
  width: 14px;
  height: 14px;
}
.weather-opt-in:has(input:checked) {
  color: #fff;
}
.weather-opt-in:has(input:checked) .weather-opt-in-icons {
  opacity: 1;
}
.era-dot {
  position: absolute;
  bottom: 3px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: transparent;
  transition: background .2s ease;
}
.active .era-dot, [aria-pressed='true'] .era-dot { background: var(--white); }
.generate-button {
  width: 100%;
  min-height: 46px;
  margin-top: 13px;
  padding: 10px 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid #ffffff65;
  border-radius: 25px;
  background: #f5f4edeb;
  color: #29352f;
  font-size: 12px;
  letter-spacing: .5px;
  box-shadow: 0 4px 30px #10211c0d;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background .2s ease;
}
.generate-button svg { width: 19px; height: 19px; }
.generate-button:hover { background: #fff; }
.action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 46px;
  margin-top: 8px;
  gap: 20px;
}
.subtle-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  gap: 8px;
  color: #f5f4edcf;
  font-size: 11px;
  letter-spacing: .3px;
  transition: color .2s ease;
}
.subtle-button:hover, .subtle-button[aria-pressed='true'] { color: #fff; }
.subtle-button svg { width: 18px; height: 18px; opacity: .85; }
.subtle-button[aria-pressed='true'] svg { stroke-width: 2; }
.quiet-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  opacity: .6;
  transition: opacity .2s ease;
}
.quiet-button:hover { opacity: 1; }
.quiet-button svg { width: 18px; height: 18px; stroke-width: 1.2; }
.provider-note {
  margin: 9px 0 0;
  color: #f0f4efa1;
  font-size: 9px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: .7px;
  text-align: center;
}

/* The same full-screen viewport carries preview, generation, and comparison. */
.viewport-label {
  position: absolute;
  z-index: 3;
  top: calc(92px + env(safe-area-inset-top));
  left: max(25px, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  color: #fff;
  font-size: 10px;
  text-shadow: 0 1px 10px #0008;
}
.viewport-label span { font-size: 7px; letter-spacing: 1.2px; opacity: .7; }
.past-label { left: auto; right: max(25px, env(safe-area-inset-right)); }
.slider-handle {
  position: absolute;
  z-index: 4;
  top: 0;
  bottom: 0;
  left: 100%;
  width: 36px;
  transform: translateX(-50%);
  cursor: ew-resize;
  touch-action: none;
  outline-offset: -4px !important;
}
.slider-handle::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: #f3f3e8a3;
  box-shadow: 0 0 12px #0002;
}
.slider-grip {
  position: absolute;
  top: 43%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid #fffffff0;
  border-radius: 50%;
  background: #172c3338;
  color: #fff;
  font-size: 21px;
  font-weight: 300;
  box-shadow: 0 2px 20px #0001;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.slider-grip i { height: 11px; width: 1px; background: #ffffff8a; }
.generation-overlay {
  position: absolute;
  z-index: 3;
  top: 43%;
  left: 24px;
  right: 24px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  color: #fff;
  pointer-events: none;
  text-align: center;
  text-shadow: 0 1px 18px #13231f99;
}
.generation-overlay strong { margin-top: 5px; font-size: 16px; font-weight: 400; letter-spacing: 1px; }
.generation-overlay > span:last-child { max-width: 290px; font-size: 11px; line-height: 1.8; opacity: .8; }
.processing-orbit {
  width: 31px;
  height: 31px;
  border: 1px solid #ffffff40;
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 1.4s linear infinite;
}
.progress-strip {
  position: absolute;
  z-index: 3;
  top: calc(88px + env(safe-area-inset-top));
  left: 50%;
  width: min(350px, calc(100% - 52px));
  transform: translateX(-50%);
  pointer-events: none;
}
.progress-track { height: 1px; background: #ffffff2b; overflow: hidden; }
.progress-track span { display: block; height: 100%; width: 0; background: #f5f4edd9; transition: width .4s ease; }
.progress-strip p { display: flex; justify-content: space-between; gap: 14px; margin: 9px 0 0; font-size: 9px; line-height: 1.6; color: #f5f4edb8; text-shadow: 0 1px 10px #0005; }
#progress-count { flex-shrink: 0; font-variant-numeric: tabular-nums; }
.reveal-title {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  text-shadow: 0 3px 35px #0005;
  transition: opacity .4s ease;
}
.reveal-title > span { font-size: 9px; letter-spacing: 5px; }
.reveal-title strong { font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 100px; font-weight: 200; letter-spacing: -4px; }
.revealing .chrome { opacity: 0; pointer-events: none; }
.revealing .reveal-title { opacity: 1; }
.revealing .slider-handle { opacity: 0; }
.restore-button { position: absolute; z-index: 8; right: 24px; top: calc(20px + env(safe-area-inset-top)); opacity: .65; }
.restore-button:hover { opacity: 1; }
body.clean .chrome { opacity: 0; pointer-events: none; visibility: hidden; }
body.clean .journey-controls { transform: translate(-50%, 12px); }
body.clean .window-shade { opacity: 0; }
body.clean .slider-handle { visibility: hidden; }

/* Secondary details live in a light, dismissible sheet. */
.options-sheet {
  position: fixed;
  inset: auto 0 0;
  width: min(460px, 100%);
  max-width: 100%;
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px - env(safe-area-inset-top));
  margin: 0 auto;
  padding: 10px 25px calc(22px + env(safe-area-inset-bottom));
  border: 1px solid #ffffff40;
  border-bottom: 0;
  border-radius: 28px 28px 0 0;
  background: #f6f6f1f5;
  color: var(--ink);
  color-scheme: light;
  box-shadow: 0 -8px 80px #0002;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #29332e30 transparent;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
}
.options-sheet::backdrop { background: #14252336; backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); }
.options-sheet[open] { animation: sheet-in .25s ease-out; }
.options-sheet button:focus-visible, .options-sheet a:focus-visible, .options-sheet input:focus-visible { outline-color: #657c69; }
.sheet-handle { width: 30px; height: 3px; border-radius: 4px; background: #263b3422; margin: 0 auto 21px; }
.sheet-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 21px; }
.eyebrow { margin: 0 0 9px; font-size: 8px; font-weight: 400; letter-spacing: 2.3px; color: #7d897f; }
.sheet-heading h2 { margin: 0; font-size: 20px; font-weight: 500; letter-spacing: -.5px; }
.icon-button { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #69796d; }
.sheet-close { flex-shrink: 0; background: #213b3108; }
.sheet-close svg { width: 17px; height: 17px; }
.sheet-close:hover { background: #213b3110; }
.sheet-actions { border-top: 1px solid #24403412; }
.sheet-actions button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 19px 0;
  text-align: left;
  border-bottom: 1px solid #24403412;
}
.sheet-actions button > svg { width: 19px; height: 19px; color: #69796d; }
.sheet-actions button > span { flex: 1; min-width: 0; font-size: 12px; }
.sheet-actions small { display: block; margin-top: 6px; color: #818d82; font-size: 10px; line-height: 1.6; }
.sheet-actions .sheet-arrow { width: 16px; color: #95a096; transition: transform .2s ease; }
.sheet-actions button:hover .sheet-arrow { transform: translateX(3px); }
.sheet-section { border-bottom: 1px solid #24403412; padding: 23px 0; }
.sheet-section h3 { margin: 0 0 19px; font-size: 13px; font-weight: 500; }
.field-label { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; font-size: 11px; }
.field-label > span { font-size: 10px; color: var(--muted); }
.location-field-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.location-field-heading .field-label { margin-bottom: 0; }
.location-field-heading .locate-button { justify-content: flex-end; gap: 4px; color: #748174; font-size: 10px; }
.locate-button svg { width: 13px; height: 13px; }
.place-input-wrap { position: relative; }
.place-input-wrap > svg { position: absolute; top: 14px; left: 13px; width: 17px; height: 17px; color: #8a988b; }
.place-input-wrap input {
  width: 100%;
  min-height: 45px;
  padding: 12px 13px 12px 39px;
  border: 1px solid #24403420;
  border-radius: 11px;
  background: #ffffff80;
  color: var(--ink);
  font-size: 13px;
}
.place-input-wrap input::placeholder { color: #97a096; }
.field-note { margin: 10px 0 0; color: #7a877e; font-size: 10px; line-height: 1.8; }
.year-settings { margin-top: 0; padding-top: 0; border-top: 0; padding-bottom: 20px; }
.year-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #526b58; font-size: 12px; }
.year-entry { display: flex; align-items: baseline; gap: 7px; color: #7a877e; }
.year-entry input { width: 100px; padding: 8px 9px; border: 1px solid #24403420; border-radius: 9px; background: #ffffff80; color: var(--ink); font-size: 22px; font-variant-numeric: tabular-nums; }
.year-range { display: block; width: 100%; height: 32px; margin: 13px 0 0; accent-color: #657d68; cursor: pointer; }
.year-scale { display: flex; justify-content: space-between; font-size: 10px; color: #7a877e; }
.historical-context { margin-top: 16px; padding-top: 16px; border-top: 1px solid #24403416; color: #647568; overflow-wrap: anywhere; }
.history-heading { display: flex; flex-direction: column; gap: 5px; }
.history-heading h3, .historical-context > h3 { margin: 0; color: #526b58; font-size: 13px; font-weight: 500; }
.history-heading > span, .history-status { font-size: 10px; color: #8a795b; }
.historical-context p, .history-section { margin: 11px 0; font-size: 11px; line-height: 1.9; }
.history-literary { color: #4f5f54; font-size: 12px; line-height: 2; letter-spacing: 0.02em; }
.history-raw { margin: 14px 0 0; border-top: 1px solid #24403412; padding-top: 10px; }
.history-raw > summary {
  cursor: pointer; list-style: none; color: #7a6a4e; font-size: 11px; font-weight: 500;
  user-select: none;
}
.history-raw > summary::-webkit-details-marker { display: none; }
.history-raw > summary::after { content: ' ›'; }
.history-raw[open] > summary::after { content: ' ˄'; }
.history-raw-lead { margin-top: 12px; }
.history-section h4 { margin: 0 0 5px; font-size: 11px; font-weight: 500; }
.history-section ul { padding-left: 17px; margin: 0; }
.historical-context .history-footnote { padding-top: 11px; border-top: 1px solid #24403412; color: #859082; font-size: 10px; }
.check-label { display: flex; align-items: center; min-height: 44px; gap: 9px; margin-top: 10px; color: #647568; font-size: 11px; line-height: 1.7; cursor: pointer; }
.check-label input { width: 16px; height: 16px; margin: 0; flex-shrink: 0; accent-color: #657d68; }
.warning-note { margin: 7px 0 4px; padding: 10px 12px; border-radius: 8px; background: #9a743d0c; color: #92733e; font-size: 10px; line-height: 1.8; }
.text-button { display: flex; align-items: center; justify-content: space-between; min-height: 44px; gap: 10px; font-size: 11px; }
.return-button { width: 100%; margin-top: 8px; color: #748174; }
.return-button > span { font-size: 17px; }
.journey-info-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; }
.journey-info-heading h3 { margin: 0; font-size: 17px; font-weight: 400; }
.badge { padding: 4px 6px; border: 1px solid #506c4d20; border-radius: 5px; color: #7a8b79; font-size: 9px; }
.result-place { display: flex; align-items: center; gap: 5px; color: #647568; font-size: 11px; }
.result-place svg { width: 13px; height: 13px; }
.result-mode { margin: 11px 0 0; color: #7b897b; font-size: 10px; line-height: 1.8; }
.result-mode:empty { display: none; }
.result-note { margin: 10px 0 0; color: #8a9489; font-size: 10px; line-height: 1.8; }
.metrics-toggle { width: 100%; color: #647568; margin-top: 10px; }
.metrics-toggle > span { font-size: 18px; font-weight: 300; }
.metrics-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 9px; padding: 20px 15px; border-radius: 11px; background: #536e4907; border: 1px solid #50694a12; }
.metric > span { display: block; color: #7d8a7f; font-size: 10px; line-height: 1.6; }
.metric strong { display: block; margin: 8px 0; color: #526d55; font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 27px; font-weight: 300; }
.metric small { color: #879282; font-size: 9px; line-height: 1.8; }
.metrics-note { grid-column: 1 / -1; margin: 0; padding-top: 14px; border-top: 1px solid #52694c12; color: #879282; font-size: 9px; line-height: 1.9; }
.result-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 11px 15px; border: 1px solid #24403420; border-radius: 22px; background: #ffffff80; font-size: 11px; color: #556b58; }
.button:hover { background: #fff; }
.button svg { width: 17px; height: 17px; }
.gyro-hint { margin: 12px 0 0; font-size: 10px; line-height: 1.8; color: #887b5e; }
.recenter-button { color: #748174; }
.download-button { width: 100%; margin-top: 14px; }
.sheet-footnote { margin-top: 21px; }
.sheet-footnote p { margin: 0 0 15px; color: #859082; font-size: 10px; line-height: 1.9; }
.connection { display: inline-flex; align-items: center; gap: 7px; color: #879384; font-size: 10px; }
.connection i { width: 4px; height: 4px; background: #91a588; border-radius: 50%; }
.connection.offline i { background: #be9d68; }
.dialog-intro { margin: 0 0 22px; color: #7a887b; font-size: 11px; line-height: 1.9; }
.replay-list { display: flex; flex-direction: column; gap: 12px; min-height: 80px; }
.archive-map { margin: 0 0 18px; }
.archive-map-stage {
  position: relative; overflow: hidden; border-radius: 16px;
  border: 1px solid #24403414; background: #d8e2d6;
  aspect-ratio: 2 / 1;
}
.archive-leaflet { width: 100%; height: 100%; min-height: 180px; }
.archive-leaflet .leaflet-control-attribution { font-size: 9px; background: #f7f4eccc; }
.archive-pin-icon {
  width: 28px; height: 28px; margin-left: -14px; margin-top: -28px;
  border: 0; border-radius: 50% 50% 50% 0; background: #3f5f4c; color: #f4f1e8;
  box-shadow: 0 6px 14px #1c2f241f; font: 600 10px/28px 'Helvetica Neue', Arial, sans-serif;
  text-align: center; letter-spacing: 0.02em; rotate: -45deg; cursor: pointer;
}
.archive-pin-icon > span { display: inline-block; rotate: 45deg; }
.archive-pin-icon.is-active { background: #1f3a2c; outline: 2px solid #f4f1e8; outline-offset: 2px; }
.archive-map-empty { margin: 10px 2px 0; color: #82907f; font-size: 11px; line-height: 1.6; }
.archive-place-panel {
  margin-top: 12px; padding: 12px 14px 14px; border-radius: 14px;
  border: 1px solid #24403412; background: #536e4908;
}
.archive-place-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.archive-place-heading h3 { margin: 2px 0 0; color: #495f4f; font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 20px; font-weight: 300; }
.archive-place-trips { display: flex; flex-direction: column; gap: 8px; }
.archive-place-trip {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 0;
  border: 1px solid #24403412; border-radius: 12px; background: #fffdf8; text-align: left; overflow: hidden;
}
.archive-place-trip:hover { background: #536e490a; }
.archive-place-trip img { width: 72px; height: 56px; object-fit: cover; flex-shrink: 0; }
.archive-place-trip strong { display: block; color: #495f4f; font-size: 18px; font-weight: 300; }
.archive-place-trip small { display: block; margin-top: 3px; color: #82907f; font-size: 10px; }
.replay-card { width: 100%; display: flex; align-items: center; gap: 15px; padding: 0; border: 1px solid #24403412; border-radius: 13px; background: #536e4906; overflow: hidden; text-align: left; }
.replay-card:hover { background: #536e4910; }
.replay-card img { width: 104px; height: 109px; object-fit: cover; flex-shrink: 0; }
.replay-card-content { flex: 1; min-width: 0; padding: 12px 0; }
.replay-card-content strong { color: #495f4f; font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 26px; font-weight: 300; }
.replay-card-content small { display: block; margin-top: 6px; color: #82907f; font-size: 9px; line-height: 1.7; }
.replay-card-content > span { display: block; margin-top: 5px; overflow: hidden; text-overflow: ellipsis; font-size: 11px; white-space: nowrap; }
.replay-card > span:last-child { margin-right: 16px; font-size: 20px; color: #8b9988; }
.dialog-footnote { margin: 22px 0 0; padding-top: 17px; border-top: 1px solid #24403412; color: #8b9687; font-size: 10px; line-height: 1.8; }
.empty-state { padding: 20px 0; color: #84917e; font-size: 12px; line-height: 1.9; }
.toast {
  position: fixed;
  z-index: 200;
  top: calc(87px + env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 40px);
  padding: 12px 17px;
  border: 1px solid #ffffff25;
  border-radius: 15px;
  background: #203732ed;
  color: #fff;
  font-size: 11px;
  line-height: 1.8;
  box-shadow: 0 5px 35px #0002;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.noscript { position: fixed; z-index: 200; top: 30%; left: 20px; right: 20px; padding: 20px; background: #24382ddd; color: #fff; font-size: 13px; line-height: 1.8; text-align: center; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes sheet-in { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

@media (min-width: 900px) {
  .site-header { left: max(40px, env(safe-area-inset-left)); right: max(40px, env(safe-area-inset-right)); top: calc(30px + env(safe-area-inset-top)); }
  .journey-controls { bottom: calc(24px + env(safe-area-inset-bottom)); width: 390px; }
  .time-caption { margin-bottom: 24px; }
  .time-caption h1 { font-size: 76px; }
  .viewport-label { top: 108px; left: 43px; }
  .past-label { left: auto; right: 43px; }
  .progress-strip { top: 101px; }
  .restore-button { right: 40px; top: calc(30px + env(safe-area-inset-top)); }
}
@media (max-width: 600px) {
  .brand > span { display: none; }
  .brand { width: 44px; }
  .brand svg { width: 22px; height: 22px; }
  .site-header { left: max(22px, env(safe-area-inset-left)); right: max(22px, env(safe-area-inset-right)); top: calc(18px + env(safe-area-inset-top)); }
  .window-place { max-width: 60%; letter-spacing: .2px; }
  .journey-controls { max-width: 365px; bottom: calc(13px + env(safe-area-inset-bottom)); }
  .time-caption { margin-bottom: 17px; }
  .time-caption h1 { font-size: 61px; }
  .time-caption p { font-size: 10px; letter-spacing: 1.5px; }
  .year-options { padding-bottom: 10px; }
  .year-options button { min-width: 44px; padding-inline: 8px; font-size: 12px; }
  .action-row { margin-top: 6px; }
  .provider-note { margin-top: 8px; }
  .gesture-hint { font-size: 10px; padding: 10px 15px; letter-spacing: .3px; }
  .viewport-label { top: calc(87px + env(safe-area-inset-top)); left: 24px; }
  .past-label { left: auto; right: 24px; }
  .viewport-label span { font-size: 6px; letter-spacing: .8px; }
  .restore-button { right: 22px; top: calc(18px + env(safe-area-inset-top)); }
  .place-input-wrap input { font-size: 16px; }
}
@media (max-height: 590px) {
  .time-caption { margin-bottom: 6px; }
  .time-caption h1 { font-size: 42px; }
  .time-caption p { margin-bottom: 7px; font-size: 9px; }
  .journey-controls { bottom: calc(9px + env(safe-area-inset-bottom)); }
  .provider-note { margin-top: 3px; }
  .year-options { padding-bottom: 2px; }
  .site-header, .restore-button { top: calc(12px + env(safe-area-inset-top)); }
  .gesture-hint, .generation-overlay, .slider-grip { top: 35%; }
  .viewport-label, .progress-strip { top: calc(72px + env(safe-area-inset-top)); }
  .generate-button { min-height: 42px; margin-top: 9px; }
}
@media (max-height: 430px) {
  .time-caption { display: none; }
  .journey-controls { width: min(440px, calc(100% - 60px)); max-width: 440px; }
  .year-options button { min-height: 40px; }
  .action-row { height: 44px; margin-top: 0; }
  .provider-note { display: none; }
  .gesture-hint, .slider-grip { top: 42%; }
  .generation-overlay { top: 41%; gap: 7px; }
  .generation-overlay strong { font-size: 14px; }
  .generation-overlay > span:last-child { font-size: 10px; }
  .processing-orbit { width: 24px; height: 24px; }
  .window-shade { background: linear-gradient(#1729204d, transparent 27%, transparent 46%, #14252599); }
  .options-sheet { max-height: calc(100dvh - 12px); }
}
@media (max-width: 350px) {
  .journey-controls { width: calc(100% - 32px); }
  .action-row { gap: 8px; }
  .subtle-button { font-size: 10px; gap: 6px; }
  .options-sheet { padding-inline: 19px; }
  .replay-card { gap: 11px; }
  .replay-card img { width: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.scene-hint{opacity:.85}

/* In-app panorama capture: a full-screen viewfinder with a sweep readout. */
.capture-overlay {
  position: fixed; inset: 0; z-index: 60; background: #0b0f0d;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.capture-overlay[hidden] { display: none; }
.capture-overlay video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; background: #0b0f0d;
}
.capture-guide, .capture-actions { position: relative; padding: 0 20px; color: #f4f1ea; }
.capture-guide {
  margin-top: auto; padding-top: 24px;
  background: linear-gradient(to top, #0b0f0dcc, #0b0f0d00);
}
.capture-guide h2 { margin: 2px 0 6px; font-size: 1.25rem; }
.capture-guide .eyebrow { color: #f4f1ea99; }
.capture-hint { margin: 0 0 14px; font-size: .85rem; color: #f4f1eacc; }
.capture-progress {
  height: 6px; border-radius: 999px; background: #f4f1ea2e; overflow: hidden;
}
.capture-readout {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  margin: 8px 0 0; font-size: .8rem; color: #f4f1eacc;
}
.capture-readout strong { font-size: 1.1rem; color: #f4f1ea; font-variant-numeric: tabular-nums; }
.capture-actions {
  display: flex; flex-direction: column; align-items: stretch; gap: 6px;
  padding-top: 14px; padding-bottom: max(20px, env(safe-area-inset-bottom));
  background: #0b0f0dcc;
}
.capture-actions .text-button { color: #f4f1eacc; justify-content: center; }
.capture-actions .button[disabled] { opacity: .45; }

/* The landing screen's primary action is the camera, not a menu item. */
.shoot-button svg:first-child { width: 20px; height: 20px; }

/* Two spans on one fixed track, the starting heading at its middle. The dim
   span is the ground captured so far and only ever grows outward; the bright
   span is where the lens points now, and it never leaves the dim one. */
.capture-progress { position: relative; }
.capture-progress i, .capture-progress b {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 0; border-radius: 999px;
  transition: left .12s linear, width .12s linear;
}
.capture-progress i { background: #f4f1ea66; }
.capture-progress b { background: #f4f1ea; }
.capture-cursor-live b { box-shadow: 0 0 6px #f4f1eacc; }
.capture-readout { flex-wrap: wrap; }
.capture-readout #capture-facing { color: #f4f1ea99; }

/* The scene reaches every edge; the mode selector floats in its light. */
:root { --mode-tabs-top: max(12px, env(safe-area-inset-top)); --mode-tabs-height: 56px; }
.mode-tabs { position: fixed; z-index: 30; top: var(--mode-tabs-top); left: 50%; width: min(620px, calc(100% - 32px - env(safe-area-inset-left) - env(safe-area-inset-right))); min-height: var(--mode-tabs-height); transform: translateX(-50%); padding: 5px; display: flex; align-items: center; gap: 4px; border: 1px solid #ffffff35; border-radius: 32px; background: #20342d38; box-shadow: 0 6px 28px #0b181c20, inset 0 1px 0 #ffffff12; backdrop-filter: blur(24px) saturate(135%); -webkit-backdrop-filter: blur(24px) saturate(135%); }
.mode-tabs [role='tab'] { flex: 1; min-height: 44px; min-width: 0; padding: 10px 16px; border-radius: 26px; color: #ffffffcf; font-size: 12px; font-weight: 450; letter-spacing: .15px; white-space: nowrap; text-shadow: 0 1px 12px #08171266; transition: color .2s ease, background .2s ease, box-shadow .2s ease; }
.mode-tabs [aria-selected='true'] { color: #fff; background: #ffffff29; box-shadow: inset 0 0 0 1px #ffffff38, 0 2px 10px #08171212; }
.mode-tabs [role='tab']:hover { color: white; background: #ffffff1a; }
.mode-tabs [aria-selected='true']:hover { background: #ffffff32; }
.mode-tabs [role='tab']:focus-visible { outline-offset: -3px; }
.mode-panel { position: absolute; inset: 0; width: 100%; height: 100vh; height: 100dvh; }
.mode-panel .site-header, .mode-panel .restore-button { top: calc(var(--mode-tabs-top) + var(--mode-tabs-height) + 12px); }
.mode-panel .viewport-label { top: calc(var(--mode-tabs-top) + var(--mode-tabs-height) + 84px); }
.mode-panel .progress-strip { top: calc(var(--mode-tabs-top) + var(--mode-tabs-height) + 80px); }
.world-mode-panel { background: #32372f; }
.world-mode-panel iframe { display: block; width: 100%; height: 100%; border: 0; }
.world-loading { position: absolute; top: 45%; left: 0; width: 100%; text-align: center; color: #ffffffb3; font-size: 14px; }
.camera-viewport { cursor: grab; touch-action: none; }
.camera-viewport img { width: 100%; height: 100%; object-fit: cover; object-position: 50% center; user-select: none; pointer-events: none; }
.camera-era-filter { position: absolute; inset: 0; backdrop-filter: var(--camera-era, sepia(.4)); -webkit-backdrop-filter: var(--camera-era, sepia(.4)); pointer-events: none; }
.camera-journey-controls .time-caption { margin-bottom: 7px; }
.camera-journey-controls .time-caption p { font-size: 12px; color: #ffffffbd; }
.camera-journey-controls .generate-button { margin-top: 10px; }
.photo-empty { position: absolute; z-index: 2; left: 50%; top: 46%; width: min(390px, calc(100% - 44px)); transform: translate(-50%, -50%); text-align: center; }
.photo-empty h1 { margin: 18px 0; font-weight: 250; font-size: clamp(36px, 7vw, 56px); line-height: 1.05; letter-spacing: -1.8px; }
.photo-empty p:not(.eyebrow) { margin: 18px auto 28px; max-width: 295px; font-size: 13px; line-height: 1.7; color: #ffffffbf; }
.photo-empty .eyebrow { color: #ffffffaf; }
.photo-empty-actions { display: flex; justify-content: center; gap: 25px; margin-top: 22px; }
.photo-empty-actions button { font-size: 11px; }
body[data-mode='photo'][data-screen='capture'] #main .journey-controls,
body[data-mode='photo'][data-screen='capture'] #main .gesture-hint { display: none; }
#main .time-caption h1 { margin: 0; font-size: 15px; }
#main .time-caption { margin-bottom: 0; }
#main .time-caption h1 button { font-size: 13px; letter-spacing: .1px; opacity: .7; }
#main .year-options { margin-top: -4px; padding-bottom: 5px; border: 0; }
#main .year-options button { font-size: 11px; min-height: 32px; }
.year-wheel-entry { display: flex; justify-content: center; }
.journey-controls .year-wheel { pointer-events: auto; }
.year-wheel { --year-row-height: 36px; width: 155px; height: calc(3 * var(--year-row-height)); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scroll-snap-type: y mandatory; scroll-padding-block: var(--year-row-height); scrollbar-width: none; touch-action: pan-y; -webkit-overflow-scrolling: touch; user-select: none; -webkit-user-select: none; cursor: ns-resize; border-radius: 9px; mask-image: linear-gradient(transparent, #000 25%, #000 75%, transparent); -webkit-mask-image: linear-gradient(transparent, #000 25%, #000 75%, transparent); }
.year-wheel::-webkit-scrollbar { display: none; }
.year-wheel:focus-visible { outline-offset: -3px; }
.year-wheel[aria-disabled='true'] { overflow-y: hidden; cursor: default; opacity: .5; }
.year-wheel-track { padding-block: var(--year-row-height); }
.year-wheel-item { display: flex; align-items: center; justify-content: center; height: var(--year-row-height); scroll-snap-align: center; color: var(--white); font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 36px; font-weight: 200; font-variant-numeric: tabular-nums; line-height: 1; letter-spacing: -.8px; opacity: .32; transform: scale(.72); transition: opacity .12s ease, transform .12s ease; }
.year-wheel-item.is-selected { opacity: 1; transform: scale(1); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
body.clean .mode-tabs { opacity: 0; pointer-events: none; }
@media (max-width: 600px) {
  :root { --mode-tabs-height: 54px; }
  .mode-tabs { width: calc(100% - 20px - env(safe-area-inset-left) - env(safe-area-inset-right)); padding: 4px; gap: 2px; }
  .mode-tabs [role='tab'] { padding: 10px 5px; font-size: 11px; letter-spacing: 0; }
  .year-wheel { --year-row-height: 32px; width: 145px; }
  .year-wheel-item { font-size: 33px; }
}
@media (max-height: 660px) {
  .year-wheel { --year-row-height: 28px; }
  .year-wheel-item { font-size: 29px; }
  .photo-empty h1 { font-size: 34px; }
  .photo-empty p:not(.eyebrow) { margin: 12px auto 18px; }
  .camera-journey-controls .time-caption { margin-bottom: 0; }
  .camera-journey-controls .provider-note { margin-top: 6px; }
}
.mobile-tab-label { display: none; }
.wheel-label { margin: 8px 0 -6px; font-size: 9px; text-transform: uppercase; letter-spacing: 1.7px; color: #ffffff9c; }
#camera-motion { top: 49%; font-size: 11px; min-height: 40px; }
@media (max-width: 600px) {
  .mode-tabs [role='tab'] { font-size: 11px; }
  .desktop-tab-label { display: none; }
  .mobile-tab-label { display: inline; }
}
@media (max-height: 640px) and (orientation: landscape) {
  .camera-journey-controls { left: auto; right: max(24px, env(safe-area-inset-right)); bottom: max(10px, env(safe-area-inset-bottom)); width: min(320px, calc(50% - 28px)); transform: none; }
  .camera-journey-controls .action-row { gap: 10px; }
  #camera-gesture-hint, #camera-motion { left: max(24px, env(safe-area-inset-left)); max-width: calc(50% - 48px); transform: none; white-space: normal; }
  #camera-gesture-hint { top: calc(var(--mode-tabs-top) + var(--mode-tabs-height) + 66px); }
  #camera-motion { top: calc(var(--mode-tabs-top) + var(--mode-tabs-height) + 124px); text-align: left; }
}
