:root {
  --bg: #f8f3ea;
  --paper: #fffdf7;
  --paper-warm: #fff6e8;
  --ink: #1c1a17;
  --muted: #5f615d;
  --line: rgba(28, 26, 23, 0.14);
  --green: #315f4a;
  --blue: #365a7c;
  --tomato: #c8583a;
  --gold: #d59b45;
  --shadow: 0 18px 48px rgba(44, 37, 26, 0.10);
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

[id] { scroll-margin-top: 92px; }

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(28, 26, 23, 0.025) 1px, transparent 1px),
    linear-gradient(180deg, rgba(28, 26, 23, 0.025) 1px, transparent 1px),
    var(--bg);
  background-size: 34px 34px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.72;
}

.home-page {
  background:
    radial-gradient(circle at 18% 8%, rgba(49, 95, 74, 0.08), transparent 28%),
    linear-gradient(90deg, rgba(28, 26, 23, 0.025) 1px, transparent 1px),
    linear-gradient(180deg, rgba(28, 26, 23, 0.025) 1px, transparent 1px),
    var(--bg);
  background-size: auto, 34px 34px, 34px 34px, auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
  font-weight: 760;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 24px;
  background: rgba(248, 243, 234, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(28, 26, 23, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  background: var(--ink);
  border-radius: 6px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.78);
}

.nav a {
  padding: 8px 11px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--ink);
  background: #fff;
  outline: none;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 78px 24px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.92fr);
  gap: 38px;
  align-items: center;
  min-height: calc(100vh - 72px);
}

.physics-hero {
  overflow: hidden;
}

.physics-hero .hero-copy,
.physics-hero .screen-board {
  position: relative;
  z-index: 1;
}

.physics-field {
  position: absolute;
  inset: 10px 8px 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.42;
}

.physics-field svg {
  width: 100%;
  height: 100%;
}

.physics-field path,
.physics-field circle {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.physics-field text {
  fill: rgba(54, 90, 124, 0.32);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-style: italic;
}

.field-line {
  stroke: rgba(49, 95, 74, 0.22);
  stroke-width: 1.4;
  stroke-dasharray: 7 12;
  animation: field-drift 9s ease-in-out infinite alternate;
}

.field-line-b {
  animation-duration: 12s;
  animation-delay: -3s;
}

.orbit-ring {
  stroke: rgba(200, 88, 58, 0.34);
  stroke-width: 1.2;
}

.orbit-core {
  fill: rgba(28, 26, 23, 0.55);
  stroke: none;
}

.orbit-dot {
  fill: var(--tomato);
  stroke: none;
  transform-origin: 410px 265px;
  animation: orbit-pulse 3s ease-in-out infinite;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--tomato);
  font-size: 13px;
  font-weight: 760;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 790px;
  margin-bottom: 22px;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 60px;
  line-height: 1.08;
  font-weight: 650;
}

h2 {
  margin-bottom: 16px;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 40px;
  line-height: 1.15;
  font-weight: 650;
}

h3 {
  margin-bottom: 9px;
  font-size: 20px;
  line-height: 1.28;
}

.lead {
  max-width: 640px;
  color: var(--muted);
  font-size: 19px;
}

.note-article {
  max-width: 880px;
  padding-top: 92px;
}

.note-article-head {
  margin-bottom: 34px;
}

.note-article-body {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.9);
  box-shadow: var(--shadow);
}

.note-article-body h2 {
  margin-top: 34px;
  font-size: 30px;
}

.note-article-body h2:first-child {
  margin-top: 0;
}

.note-article-body p {
  color: var(--muted);
  font-size: 17px;
}

.article-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.article-nav a {
  min-height: 108px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.86);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, border-color 180ms ease;
}

.article-nav a:hover,
.article-nav a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(200, 88, 58, 0.34);
  outline: none;
}

.article-nav span {
  display: block;
  color: var(--tomato);
  font-size: 13px;
  font-weight: 760;
}

.article-nav strong {
  display: block;
  margin-top: 8px;
  line-height: 1.35;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.button,
.product-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  font-weight: 760;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible,
.product-links a:hover,
.product-links a:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button.primary {
  color: #fff;
  background: var(--green);
}

.button.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.82);
}

.screen-board {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #201d1a;
  box-shadow: var(--shadow);
  color: #fff;
  overflow: hidden;
}

.screen-topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.screen-topline strong {
  color: #fff;
}

.poster-stack {
  display: grid;
  gap: 1px;
  background: rgba(255, 255, 255, 0.14);
}

.poster {
  display: grid;
  gap: 10px;
  min-height: 158px;
  padding: 24px;
  background: #2c2925;
}

.poster span,
.tag,
.mini-label,
.daily-strip span {
  color: var(--tomato);
  font-size: 13px;
  font-weight: 760;
}

.poster strong {
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 30px;
  line-height: 1.1;
}

.poster em {
  max-width: 330px;
  color: rgba(255, 255, 255, 0.76);
  font-style: normal;
}

.poster-ai { background: #253d35; }
.poster-daily { background: #47382f; }
.poster-products { background: #27384b; }

.section-heading {
  max-width: 760px;
  margin-bottom: 26px;
}

.section-heading p,
.feature-copy p,
.note-card p,
.daily-strip p,
.product-card p,
.about-copy p {
  color: var(--muted);
}

.inline-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--blue);
  font-weight: 760;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.note-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.product-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.note-card,
.product-card,
.feature-panel article,
.daily-strip article,
.daily-link-card,
.timeline-body,
.timeline-preview-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.86);
  box-shadow: var(--shadow);
}

.note-card,
.product-card,
.feature-panel article {
  padding: 24px;
}

.note-card {
  display: block;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.note-card:hover,
.note-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(200, 88, 58, 0.34);
  outline: none;
}

.tag {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 4px 9px;
  border: 1px solid rgba(200, 88, 58, 0.24);
  border-radius: 6px;
  background: rgba(200, 88, 58, 0.08);
}

.feature-section {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 34px;
  align-items: start;
}

.feature-copy {
  position: sticky;
  top: 96px;
}

.feature-panel {
  display: grid;
  gap: 14px;
}

.feature-panel article:nth-child(2) .mini-label { color: var(--blue); }
.feature-panel article:nth-child(3) .mini-label { color: var(--green); }

.daily-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.photo-teaser-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.photo-teaser-card {
  position: relative;
  display: block;
  min-height: 220px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-warm);
  box-shadow: var(--shadow);
}

.photo-teaser-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  transition: transform 220ms ease;
}

.photo-teaser-card span {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  width: fit-content;
  max-width: calc(100% - 24px);
  padding: 6px 9px;
  border-radius: 6px;
  color: #fff;
  background: rgba(28, 26, 23, 0.68);
  font-size: 13px;
  line-height: 1.35;
}

.photo-teaser-card:hover img,
.photo-teaser-card:focus-visible img {
  transform: scale(1.025);
}

.photo-teaser-card:focus-visible {
  outline: 2px solid var(--tomato);
  outline-offset: 3px;
}

.daily-strip article {
  min-height: 250px;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.94), rgba(255, 246, 232, 0.86));
}

.daily-link-card {
  display: block;
  min-height: 250px;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.94), rgba(255, 246, 232, 0.86));
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.daily-link-card:hover,
.daily-link-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(200, 88, 58, 0.34);
  outline: none;
}

.daily-strip article:nth-child(2) {
  background: linear-gradient(180deg, rgba(255, 253, 247, 0.94), rgba(238, 244, 240, 0.9));
}

.daily-strip article:nth-child(3) {
  background: linear-gradient(180deg, rgba(255, 253, 247, 0.94), rgba(239, 244, 250, 0.9));
}

.daily-strip article:nth-child(4) {
  background: linear-gradient(180deg, rgba(255, 253, 247, 0.94), rgba(251, 239, 232, 0.9));
}

.daily-feature {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.9);
  box-shadow: var(--shadow);
}

.health-vlog {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 22px;
  padding: 24px;
}

.health-vlog-copy p,
.vlog-chart figcaption {
  color: var(--muted);
}

.weight-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.weight-stats div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 246, 232, 0.72);
}

.weight-stats span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.weight-stats strong {
  display: block;
  margin-top: 6px;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 650;
}

.vlog-chart {
  margin: 0;
}

.vlog-chart img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  background: #fff;
}

.vlog-chart figcaption {
  margin-top: 10px;
  font-size: 14px;
}

.featured-product {
  grid-column: span 1;
  color: #fff;
  background: #243c35;
}

.featured-product p {
  color: rgba(255, 255, 255, 0.82);
}

.featured-product .tag {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
}

.product-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.product-links a {
  min-height: 38px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
  font-size: 14px;
}

.product-card:not(.featured-product) .product-links a {
  color: var(--blue);
  border-color: rgba(54, 90, 124, 0.24);
  background: rgba(239, 244, 250, 0.72);
}

.about-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 34px;
  border-top: 1px solid var(--line);
}

.about-copy {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.86);
}

.contact-link {
  display: inline-flex;
  margin-top: 6px;
  color: var(--blue);
  font-weight: 760;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px 24px 48px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.beian-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.beian-link img {
  width: 20px;
  height: 20px;
}

.timeline-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: 34px;
  align-items: end;
  padding-top: 92px;
}

.timeline-hero h1 {
  font-size: 54px;
}

.timeline-map {
  display: flex;
  align-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #243c35;
  box-shadow: var(--shadow);
}

.route-summary-panel {
  padding: 24px;
  border: 1px solid rgba(28, 26, 23, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(36, 60, 53, 0.98), rgba(39, 56, 75, 0.96));
  box-shadow: var(--shadow);
}

.route-summary-panel h2 {
  color: #fff;
  font-size: 34px;
}

.route-summary-panel p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.78);
}

.route-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.route-summary-grid span {
  min-height: 74px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
  line-height: 1.35;
}

.route-summary-grid b {
  display: block;
  color: #fff;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 28px;
  line-height: 1;
}

.route-atlas-section {
  padding-top: 20px;
}

.route-atlas {
  overflow: hidden;
  border: 1px solid rgba(28, 26, 23, 0.12);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.92);
  box-shadow: var(--shadow);
}

.route-atlas-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.55fr);
  gap: 24px;
  align-items: end;
  padding: 26px 28px 18px;
}

.route-atlas-head h2 {
  margin-bottom: 0;
}

.route-atlas-head p:last-child {
  color: var(--muted);
  margin-bottom: 4px;
}

.atlas-filter-board {
  display: grid;
  grid-template-columns: minmax(250px, 0.85fr) minmax(320px, 1.15fr);
  align-items: start;
  gap: 12px;
  margin: 0 18px 18px;
  padding: 14px;
  border: 1px solid rgba(28, 26, 23, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 253, 247, 0.96), rgba(239, 246, 242, 0.86));
  box-shadow: inset 0 1px 0 rgba(255, 253, 247, 0.88);
}

.atlas-filter-board-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 4px 2px 2px;
}

.atlas-filter-board-head strong {
  display: block;
  margin-top: 2px;
  font-size: 17px;
}

.atlas-filter-board-head p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.atlas-time-filter,
.atlas-people-filter,
.atlas-journey-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(28, 26, 23, 0.07);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.7);
  align-self: start;
}

.atlas-time-filter {
  grid-column: 1;
}

.atlas-time-filter {
  grid-row: 2;
}

.atlas-people-filter {
  grid-column: 1 / -1;
  grid-row: 3;
}

.atlas-people-panel {
  grid-column: 1 / -1;
  grid-row: 4;
}

.atlas-journey-filter,
.atlas-journey-draft {
  grid-column: 1 / -1;
}

.atlas-journey-filter {
  grid-column: 2;
  grid-row: 2;
}

.atlas-journey-draft {
  grid-row: 5;
}

.atlas-people-filter {
  background: rgba(255, 253, 247, 0.86);
}

.atlas-journey-filter {
  background: rgba(248, 243, 234, 0.76);
}

.atlas-people-panel,
.atlas-journey-draft {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(28, 26, 23, 0.08);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.9);
  align-self: start;
}

.atlas-people-panel {
  gap: 8px;
  padding: 10px;
}

.atlas-people-panel .atlas-panel-head {
  display: none;
}

.atlas-people-panel[hidden],
.atlas-journey-draft[hidden] {
  display: none;
}

.atlas-panel-head {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(260px, 1fr);
  gap: 16px;
  align-items: end;
}

.atlas-panel-head strong {
  display: block;
  margin-top: 2px;
  font-size: 16px;
}

.atlas-panel-head p,
.atlas-panel-status {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.atlas-time-filter strong,
.atlas-people-filter strong,
.atlas-journey-filter strong {
  display: block;
  margin-top: 2px;
  font-size: 16px;
}

.atlas-time-filter small,
.atlas-people-filter small,
.atlas-journey-filter small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

.atlas-time-controls,
.atlas-people-controls,
.atlas-journey-controls {
  display: grid;
  grid-template-columns: auto minmax(220px, 360px) minmax(86px, auto);
  align-items: center;
  gap: 12px;
}

.atlas-people-controls {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.atlas-journey-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  width: min(100%, 520px);
  max-width: none;
  overflow: visible;
  padding: 2px 0;
}

.atlas-time-controls[hidden] {
  display: none;
}

.atlas-time-controls button,
.atlas-people-controls button,
.atlas-journey-controls button {
  min-height: 34px;
  border: 1px solid rgba(28, 26, 23, 0.14);
  border-radius: 999px;
  background: #fffdf7;
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 780;
  padding: 7px 12px;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.atlas-time-controls button:hover,
.atlas-time-controls button:focus-visible,
.atlas-people-controls button:hover,
.atlas-people-controls button:focus-visible,
.atlas-journey-controls button:hover,
.atlas-journey-controls button:focus-visible {
  border-color: rgba(200, 88, 58, 0.42);
  box-shadow: 0 8px 20px rgba(28, 26, 23, 0.08);
  outline: none;
}

.atlas-journey-controls button {
  display: flex;
  align-items: center;
  flex: 1 1 172px;
  min-height: 48px;
  max-width: none;
  border-radius: 999px;
  gap: 10px;
  text-align: left;
}

.atlas-people-controls button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.atlas-person-avatar {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(28, 26, 23, 0.12);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 36%, rgba(255, 253, 247, 0.95) 0 21%, transparent 22%),
    radial-gradient(circle at 50% 78%, rgba(255, 253, 247, 0.95) 0 34%, transparent 35%),
    linear-gradient(135deg, #d45b3d, #d8a342);
  color: #fffdf7;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  background-position: center;
  background-size: cover;
}

.atlas-person-avatar.is-group {
  background:
    radial-gradient(circle at 38% 36%, rgba(255, 253, 247, 0.95) 0 16%, transparent 17%),
    radial-gradient(circle at 64% 42%, rgba(255, 253, 247, 0.95) 0 14%, transparent 15%),
    radial-gradient(circle at 50% 80%, rgba(255, 253, 247, 0.95) 0 34%, transparent 35%),
    linear-gradient(135deg, #3b5d69, #d8a342);
}

.atlas-person-avatar.is-empty {
  background:
    radial-gradient(circle at 50% 34%, rgba(39, 56, 75, 0.4) 0 18%, transparent 19%),
    radial-gradient(circle at 50% 76%, rgba(39, 56, 75, 0.34) 0 32%, transparent 33%),
    rgba(39, 56, 75, 0.08);
  color: rgba(39, 56, 75, 0.74);
}

.atlas-person-slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.atlas-person-slots button {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 2px 9px;
  align-items: center;
  min-height: 60px;
  padding: 8px;
  border: 1px solid rgba(28, 26, 23, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.94), rgba(248, 243, 234, 0.68));
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background 180ms ease;
}

.atlas-person-slots button:hover,
.atlas-person-slots button:focus-visible {
  border-color: rgba(200, 88, 58, 0.42);
  box-shadow: 0 10px 24px rgba(28, 26, 23, 0.08);
  outline: none;
}

.atlas-person-slots button.is-active {
  border-color: rgba(212, 91, 61, 0.52);
  background: rgba(255, 249, 236, 0.96);
}

.atlas-person-slots .atlas-person-avatar {
  grid-row: span 2;
  width: 38px;
  height: 38px;
}

.atlas-person-slots small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.atlas-people-panel .atlas-panel-status {
  font-size: 12px;
}

.atlas-journey-mark {
  position: relative;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 34% 34%, rgba(255, 253, 247, 0.94) 0 12%, transparent 13%),
    radial-gradient(circle at 68% 66%, rgba(255, 253, 247, 0.82) 0 10%, transparent 11%),
    linear-gradient(135deg, rgba(212, 91, 61, 0.92), rgba(216, 163, 66, 0.9));
  border: 1px solid rgba(212, 91, 61, 0.18);
}

.atlas-journey-mark::before,
.atlas-journey-mark::after {
  content: "";
  position: absolute;
  background: rgba(255, 253, 247, 0.92);
}

.atlas-journey-mark::before {
  width: 13px;
  height: 2px;
  left: 8px;
  top: 14px;
  border-radius: 999px;
  transform: rotate(-18deg);
}

.atlas-journey-mark::after {
  width: 5px;
  height: 5px;
  right: 8px;
  top: 10px;
  border-radius: 999px;
}

.atlas-journey-mark.is-all {
  background: rgba(39, 56, 75, 0.08);
  border-color: rgba(39, 56, 75, 0.18);
}

.atlas-journey-mark.is-all::before {
  background: rgba(39, 56, 75, 0.72);
  box-shadow: 8px 5px 0 rgba(39, 56, 75, 0.52), -4px 7px 0 rgba(39, 56, 75, 0.42);
}

.atlas-journey-mark.is-all::after {
  background: rgba(39, 56, 75, 0.72);
}

.atlas-journey-body {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.atlas-journey-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.atlas-journey-controls button small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.atlas-people-controls button.is-active,
.atlas-journey-controls button.is-active {
  background: rgba(255, 249, 236, 0.96);
  border-color: rgba(212, 91, 61, 0.52);
  box-shadow: inset 0 0 0 1px rgba(212, 91, 61, 0.18), 0 10px 24px rgba(200, 88, 58, 0.1);
  color: var(--ink);
}

.atlas-journey-controls button.is-active small {
  color: var(--muted);
}

.atlas-add-journey-button,
.atlas-journey-actions button {
  min-height: 38px;
  border: 1px solid rgba(212, 91, 61, 0.32);
  border-radius: 8px;
  background: rgba(255, 249, 236, 0.95);
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  padding: 9px 12px;
  white-space: nowrap;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.atlas-journey-actions button[data-atlas-create-manual-journey] {
  background: var(--tomato);
  border-color: var(--tomato);
  color: #fffdf7;
}

.atlas-journey-actions button[data-atlas-create-ticket-journey] {
  background: rgba(239, 246, 242, 0.95);
  border-color: rgba(58, 91, 105, 0.26);
}

.atlas-journey-actions button[data-atlas-clear-journey-draft] {
  background: transparent;
  border-color: rgba(28, 26, 23, 0.14);
  color: var(--muted);
}

.atlas-journey-actions button:disabled {
  opacity: 0.46;
  cursor: not-allowed;
  box-shadow: none;
}

.atlas-add-journey-button {
  min-width: 88px;
}

.atlas-add-journey-button:hover,
.atlas-add-journey-button:focus-visible,
.atlas-journey-actions button:not(:disabled):hover,
.atlas-journey-actions button:not(:disabled):focus-visible {
  border-color: rgba(200, 88, 58, 0.5);
  box-shadow: 0 9px 20px rgba(200, 88, 58, 0.1);
  outline: none;
}

.atlas-journey-form {
  display: grid;
  grid-template-columns: minmax(160px, 0.5fr) minmax(140px, 0.34fr) minmax(180px, 0.42fr);
  gap: 12px;
}

.atlas-journey-mode-tabs {
  display: inline-flex;
  width: fit-content;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(28, 26, 23, 0.1);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.74);
}

.atlas-journey-mode-tabs button {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
  padding: 7px 12px;
}

.atlas-journey-mode-tabs button.is-active {
  background: var(--ink);
  color: #fffdf7;
}

.atlas-journey-meta {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(150px, 0.42fr);
  gap: 12px;
}

.atlas-journey-mode-panel {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(28, 26, 23, 0.08);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.68);
}

.atlas-journey-mode-panel[hidden] {
  display: none;
}

.atlas-mode-copy {
  display: grid;
  gap: 3px;
}

.atlas-mode-copy strong {
  color: var(--ink);
  font-size: 14px;
}

.atlas-mode-copy span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.atlas-segment-editor {
  display: grid;
  gap: 8px;
}

.atlas-segment-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.42fr) minmax(140px, 1fr) minmax(140px, 1fr) minmax(160px, 1.1fr) auto;
  gap: 8px;
  align-items: end;
  padding: 10px;
  border: 1px solid rgba(39, 56, 75, 0.1);
  border-radius: 8px;
  background: rgba(239, 246, 242, 0.5);
}

.atlas-segment-row button {
  min-height: 38px;
  border: 1px solid rgba(28, 26, 23, 0.12);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.86);
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 10px;
}

.atlas-ocr-review {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(212, 91, 61, 0.18);
  border-radius: 8px;
  background: rgba(255, 249, 236, 0.7);
}

.atlas-ocr-review[hidden] {
  display: none;
}

.atlas-journey-meta label,
.atlas-segment-row label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 780;
}

.atlas-journey-form label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 780;
}

.atlas-journey-form label.is-wide {
  grid-column: 1 / -1;
}

.atlas-journey-form input,
.atlas-journey-form textarea,
.atlas-journey-meta input,
.atlas-segment-row input {
  width: 100%;
  border: 1px solid rgba(28, 26, 23, 0.12);
  border-radius: 8px;
  background: #fffdf7;
  color: var(--ink);
  font: inherit;
  font-weight: 650;
  padding: 10px 11px;
}

.atlas-ticket-upload {
  align-self: end;
  min-height: 64px;
  padding: 10px 12px;
  border: 1px dashed rgba(39, 56, 75, 0.28);
  border-radius: 8px;
  background: rgba(239, 246, 242, 0.62);
  cursor: pointer;
}

.atlas-ticket-upload strong {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.atlas-journey-actions {
  display: flex;
  align-items: end;
  gap: 8px;
}

.atlas-draft-list {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.atlas-draft-item {
  padding: 10px 12px;
  border: 1px solid rgba(28, 26, 23, 0.08);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.86);
  color: var(--ink);
}

.atlas-draft-item p {
  margin: 4px 0;
  color: var(--muted);
}

.atlas-draft-item small {
  color: var(--tomato);
  font-weight: 780;
}

.atlas-time-controls span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 780;
  text-align: right;
}

.atlas-time-slider {
  position: relative;
  height: 34px;
  min-width: 0;
}

.atlas-time-slider::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 16px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(212, 91, 61, 0.72), rgba(39, 56, 75, 0.42));
}

.atlas-time-slider input {
  position: absolute;
  inset: 0;
  width: 100%;
  margin: 0;
  appearance: none;
  background: transparent;
  pointer-events: none;
}

.atlas-time-slider input::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  appearance: none;
  border: 3px solid #fffdf7;
  border-radius: 999px;
  background: var(--tomato);
  box-shadow: 0 2px 8px rgba(28, 26, 23, 0.24);
  cursor: pointer;
  pointer-events: auto;
}

.atlas-time-slider input::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 3px solid #fffdf7;
  border-radius: 999px;
  background: var(--tomato);
  box-shadow: 0 2px 8px rgba(28, 26, 23, 0.24);
  cursor: pointer;
  pointer-events: auto;
}

.photo-review-page {
  background:
    linear-gradient(90deg, rgba(28, 26, 23, 0.024) 1px, transparent 1px),
    linear-gradient(180deg, rgba(28, 26, 23, 0.024) 1px, transparent 1px),
    #f6f1e8;
  background-size: 34px 34px;
}

.review-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.58fr);
  gap: 30px;
  align-items: end;
  padding-top: 72px;
  padding-bottom: 28px;
}

.review-hero h1 {
  margin-bottom: 14px;
  font-size: 48px;
}

.review-run-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(28, 26, 23, 0.12);
  border-radius: 8px;
  background: #fffdf7;
  box-shadow: var(--shadow);
}

.review-run-panel span {
  min-height: 70px;
  padding: 12px;
  border: 1px solid rgba(28, 26, 23, 0.1);
  border-radius: 6px;
  color: var(--muted);
  background: rgba(248, 243, 234, 0.76);
  font-size: 13px;
  line-height: 1.35;
}

.review-run-panel b {
  display: block;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 30px;
  line-height: 1;
}

.review-workbench {
  padding-top: 16px;
}

.review-auth {
  max-width: 560px;
  margin: 0 auto;
  padding: 24px;
  border: 1px solid rgba(28, 26, 23, 0.12);
  border-radius: 8px;
  background: #fffdf7;
  box-shadow: var(--shadow);
}

.review-auth label,
.review-search span,
.review-note span,
.review-import label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 780;
}

.review-auth form > div {
  display: flex;
  gap: 8px;
}

.review-auth input,
.review-search input,
.review-note textarea,
.review-export-panel textarea {
  width: 100%;
  border: 1px solid rgba(28, 26, 23, 0.14);
  border-radius: 6px;
  background: #fffdf7;
  color: var(--ink);
  font: inherit;
}

.review-auth input,
.review-search input {
  min-height: 40px;
  padding: 8px 10px;
}

.review-auth button,
.review-sidebar-head button,
.review-filters button,
.review-actions button,
.review-export-head button {
  min-height: 36px;
  border: 1px solid rgba(28, 26, 23, 0.14);
  border-radius: 6px;
  background: #fffdf7;
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 780;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.review-auth button:hover,
.review-auth button:focus-visible,
.review-sidebar-head button:hover,
.review-sidebar-head button:focus-visible,
.review-filters button:hover,
.review-filters button:focus-visible,
.review-actions button:hover,
.review-actions button:focus-visible,
.review-export-head button:hover,
.review-export-head button:focus-visible {
  border-color: rgba(200, 88, 58, 0.48);
  background: rgba(200, 88, 58, 0.08);
  outline: none;
}

.review-auth button:active,
.review-sidebar-head button:active,
.review-filters button:active,
.review-actions button:active,
.review-export-head button:active {
  transform: translateY(1px);
}

.review-auth button {
  min-width: 86px;
  background: var(--ink);
  color: #fffdf7;
}

.review-auth p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.review-shell {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr) minmax(240px, 300px);
  gap: 14px;
  align-items: start;
}

.review-sidebar,
.review-stage,
.review-export-panel {
  border: 1px solid rgba(28, 26, 23, 0.12);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.94);
  box-shadow: 0 12px 32px rgba(44, 37, 26, 0.08);
}

.review-sidebar,
.review-export-panel {
  position: sticky;
  top: 86px;
  max-height: calc(100vh - 106px);
  overflow: auto;
}

.review-sidebar-head,
.review-export-head,
.review-stage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid rgba(28, 26, 23, 0.09);
}

.review-sidebar-head strong,
.review-export-head strong {
  display: block;
  margin-top: 2px;
  font-size: 16px;
}

.review-search {
  display: block;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(28, 26, 23, 0.09);
}

.review-album-list {
  display: grid;
  gap: 4px;
  padding: 8px;
}

.review-album-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  width: 100%;
  min-height: 64px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: background 180ms ease, border-color 180ms ease;
}

.review-album-item:hover,
.review-album-item:focus-visible,
.review-album-item.is-active {
  border-color: rgba(49, 95, 74, 0.22);
  background: rgba(49, 95, 74, 0.08);
  outline: none;
}

.review-album-item strong,
.review-album-item small {
  display: block;
}

.review-album-item strong {
  overflow: hidden;
  font-size: 14px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-album-item small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.review-album-item b {
  align-self: center;
  min-width: 34px;
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(28, 26, 23, 0.08);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.review-stage {
  min-width: 0;
  overflow: hidden;
}

.review-stage-head {
  align-items: end;
}

.review-stage-head h2 {
  margin: 0;
  font-size: 26px;
}

.review-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.review-filters button {
  padding: 7px 10px;
}

.review-filters button.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fffdf7;
}

.review-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.42fr);
  gap: 14px;
  padding: 14px;
  border-bottom: 1px solid rgba(28, 26, 23, 0.09);
  background: rgba(248, 243, 234, 0.42);
}

.review-detail figure {
  display: grid;
  gap: 10px;
  margin: 0;
}

.review-detail img {
  display: block;
  width: 100%;
  max-height: 54vh;
  object-fit: contain;
  border-radius: 6px;
  background: #e9e0d1;
}

.review-detail figcaption {
  display: grid;
  gap: 2px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.review-detail figcaption strong {
  color: var(--ink);
}

.review-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-content: start;
}

.review-actions button {
  padding: 7px 10px;
}

.review-note {
  grid-column: 2;
  display: block;
}

.review-note textarea {
  min-height: 86px;
  padding: 9px 10px;
  resize: vertical;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 10px;
  padding: 14px;
}

.review-photo-tile {
  position: relative;
  display: grid;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 6px;
  background: #e9e0d1;
  cursor: pointer;
  padding: 0;
  transition: border-color 180ms ease, filter 180ms ease, transform 180ms ease;
}

.review-photo-tile:hover,
.review-photo-tile:focus-visible {
  border-color: rgba(200, 88, 58, 0.58);
  outline: none;
}

.review-photo-tile.is-active {
  border-color: var(--tomato);
}

.review-photo-tile.is-cover::after {
  content: "封面";
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  color: #fffdf7;
  background: var(--green);
  font-size: 12px;
  font-weight: 780;
}

.review-photo-tile.is-hidden img {
  filter: grayscale(0.75) opacity(0.42);
}

.review-photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.review-photo-index,
.review-photo-badge {
  position: absolute;
  right: 7px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(28, 26, 23, 0.72);
  color: #fffdf7;
  font-size: 12px;
  font-weight: 780;
  line-height: 1.3;
}

.review-photo-index {
  bottom: 7px;
}

.review-photo-badge {
  top: 7px;
}

.review-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 26px;
  border: 1px dashed rgba(28, 26, 23, 0.18);
  border-radius: 6px;
  color: var(--muted);
  text-align: center;
}

.review-export-panel textarea {
  display: block;
  min-height: 420px;
  padding: 12px;
  border-width: 0 0 1px;
  border-radius: 0;
  background: #1f211e;
  color: #f5f0e7;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: 1.55;
  resize: vertical;
}

.review-import {
  padding: 12px 14px 14px;
}

.review-import input {
  max-width: 100%;
  color: var(--muted);
  font-size: 13px;
}

.atlas-canvas {
  position: relative;
  padding: 0 18px 18px;
}

.atlas-toolbar {
  position: absolute;
  z-index: 3;
  top: 16px;
  right: 32px;
  display: flex;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(28, 26, 23, 0.12);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.9);
  box-shadow: 0 14px 30px rgba(28, 26, 23, 0.1);
}

.atlas-toolbar button {
  min-width: 34px;
  height: 34px;
  border: 1px solid rgba(28, 26, 23, 0.14);
  border-radius: 6px;
  background: #fffdf7;
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.atlas-toolbar button:hover,
.atlas-toolbar button:focus-visible {
  border-color: rgba(200, 88, 58, 0.5);
  background: rgba(200, 88, 58, 0.08);
  outline: none;
}

.atlas-toolbar button:active {
  transform: translateY(1px);
}

.atlas-map {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1000 / 540;
  cursor: grab;
}

.atlas-map.is-panning {
  cursor: grabbing;
}

.atlas-ocean {
  fill: url(#atlas-ocean);
}

.atlas-grid path {
  fill: none;
  stroke: rgba(54, 90, 124, 0.16);
  stroke-width: 1;
}

.atlas-land-image {
  opacity: 0.96;
  filter: drop-shadow(0 16px 18px rgba(28, 26, 23, 0.12));
}

.atlas-journey-layer {
  pointer-events: none;
}

.atlas-journey-halo {
  fill: none;
  opacity: 0.74;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.atlas-journey-segment {
  fill: none;
  stroke: rgba(200, 88, 58, 0.74);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 7 8;
  vector-effect: non-scaling-stroke;
  animation: atlas-journey-show 620ms ease-out both;
}

.atlas-journey-segment.is-drive {
  stroke: rgba(58, 91, 105, 0.58);
  stroke-dasharray: 3 8;
}

.atlas-journey-stop circle {
  fill: #fffdf7;
  stroke: var(--tomato);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 2px 3px rgba(28, 26, 23, 0.16));
}

.atlas-journey-stop text {
  fill: #1c1a17;
  paint-order: stroke;
  stroke: rgba(255, 253, 247, 0.9);
  stroke-width: 3;
  stroke-linejoin: round;
  font-size: 12px;
  font-weight: 800;
}

@keyframes atlas-journey-show {
  from {
    opacity: 0;
    stroke-dashoffset: 20;
  }
  to {
    opacity: 1;
    stroke-dashoffset: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .atlas-journey-segment {
    animation: none;
  }
}

.atlas-gps-marker {
  cursor: pointer;
}

.atlas-gps-hit {
  fill: transparent;
  pointer-events: all;
}

.atlas-gps-dot {
  fill: rgba(39, 56, 75, 0.54);
  stroke: rgba(255, 253, 247, 0.9);
  stroke-width: 1.45;
  vector-effect: non-scaling-stroke;
  transition: fill 180ms ease, stroke 180ms ease, transform 180ms ease;
}

.atlas-gps-marker.is-empty {
  opacity: 0.22;
}

.atlas-gps-marker.is-featured .atlas-gps-dot {
  fill: rgba(39, 56, 75, 0.7);
  stroke-width: 1.7;
}

.atlas-gps-marker text {
  opacity: 0;
  fill: #1c1a17;
  paint-order: stroke;
  stroke: rgba(255, 253, 247, 0.9);
  stroke-width: 3;
  stroke-linejoin: round;
  font-size: 14px;
  font-weight: 800;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.atlas-gps-marker:hover .atlas-gps-dot,
.atlas-gps-marker:focus-visible .atlas-gps-dot,
.atlas-gps-marker.is-active .atlas-gps-dot {
  fill: rgba(39, 56, 75, 0.84);
  stroke: #fffdf7;
  transform: scale(1.2);
}

.atlas-gps-marker:hover text,
.atlas-gps-marker:focus-visible text,
.atlas-gps-marker.is-active text {
  opacity: 1;
}

.atlas-marker circle {
  fill: var(--gold);
  stroke: #fffdf7;
  stroke-width: 1.7;
  transform-box: fill-box;
  transform-origin: center;
  vector-effect: non-scaling-stroke;
  transition: fill 180ms ease, stroke 180ms ease, stroke-width 180ms ease;
}

.atlas-marker.is-empty {
  opacity: 0.45;
}

.atlas-marker.is-featured circle {
  stroke-width: 1.9;
}

.atlas-marker {
  cursor: pointer;
}

.atlas-hit-area {
  fill: transparent;
  pointer-events: all;
}

.atlas-marker line {
  stroke: rgba(28, 26, 23, 0.35);
  stroke-width: 1.4;
  stroke-dasharray: 4 6;
  stroke-linecap: round;
}

.atlas-marker text {
  fill: #1c1a17;
  opacity: 1;
  paint-order: stroke;
  stroke: rgba(255, 253, 247, 0.88);
  stroke-width: 3;
  stroke-linejoin: round;
  font-size: 18px;
  font-weight: 760;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.atlas-marker:hover circle,
.atlas-marker:focus-visible circle,
.atlas-marker.is-active circle {
  stroke: #1c1a17;
  stroke-width: 2.3;
}

.atlas-map.is-detail-zoom .atlas-marker text {
  opacity: 0;
}

.atlas-map.is-detail-zoom .atlas-marker:hover text,
.atlas-map.is-detail-zoom .atlas-marker:focus-visible text,
.atlas-map.is-detail-zoom .atlas-marker.is-active text {
  opacity: 1;
}

.atlas-map.is-deep-zoom .atlas-marker circle,
.atlas-map.is-deep-zoom .atlas-gps-dot {
  filter: drop-shadow(0 1px 2px rgba(28, 26, 23, 0.18));
}

.atlas-map.is-deep-zoom .atlas-gps-marker:hover text,
.atlas-map.is-deep-zoom .atlas-gps-marker:focus-visible text,
.atlas-map.is-deep-zoom .atlas-gps-marker.is-active text {
  opacity: 1;
}

.atlas-marker,
.atlas-marker *,
.atlas-gps-marker,
.atlas-gps-marker *,
.atlas-map:focus {
  outline: none;
}

.atlas-place-card {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(28, 26, 23, 0.1);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.96);
}

.atlas-place-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  object-fit: cover;
  transform-origin: center;
  transition: transform 180ms ease, opacity 180ms ease, filter 180ms ease;
}

.atlas-place-card img.is-hidden-review-photo {
  opacity: 0.36;
  filter: grayscale(1);
}

.atlas-place-card h3 {
  margin-bottom: 6px;
}

.atlas-place-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.atlas-review-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.atlas-review-controls button {
  border: 1px solid rgba(28, 26, 23, 0.14);
  border-radius: 6px;
  background: #fffdf7;
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
  line-height: 1;
  padding: 9px 10px;
  transition: background 180ms ease, border-color 180ms ease;
}

.atlas-review-controls button:disabled,
.atlas-lightbox-tools button:disabled {
  cursor: not-allowed;
  opacity: 0.44;
}

.atlas-review-controls button:hover,
.atlas-review-controls button:focus-visible {
  border-color: rgba(39, 56, 75, 0.35);
  background: rgba(39, 56, 75, 0.08);
  outline: none;
}

.atlas-review-controls button:disabled:hover,
.atlas-review-controls button:disabled:focus-visible,
.atlas-lightbox-tools button:disabled:hover,
.atlas-lightbox-tools button:disabled:focus-visible {
  border-color: rgba(28, 26, 23, 0.14);
  background: #fffdf7;
}

.atlas-review-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.atlas-auth-panel {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(28, 26, 23, 0.12);
  border-radius: 8px;
  background: rgba(248, 243, 234, 0.8);
}

.atlas-auth-panel[hidden] {
  display: none;
}

.atlas-auth-panel form {
  display: grid;
  gap: 8px;
}

.atlas-auth-panel label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 780;
}

.atlas-auth-panel form > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.atlas-auth-panel input {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(28, 26, 23, 0.14);
  border-radius: 6px;
  background: #fffdf7;
  color: var(--ink);
  font: inherit;
  padding: 8px 10px;
}

.atlas-auth-panel button {
  min-height: 38px;
  border: 1px solid rgba(28, 26, 23, 0.16);
  border-radius: 6px;
  background: var(--ink);
  color: #fffdf7;
  cursor: pointer;
  font-size: 13px;
  font-weight: 780;
  padding: 8px 12px;
}

.atlas-auth-panel p {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}

.atlas-album-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(28, 26, 23, 0.1);
}

.atlas-album-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.atlas-album-head button,
.atlas-lightbox-tools button {
  border: 1px solid rgba(28, 26, 23, 0.16);
  border-radius: 6px;
  background: #fffdf7;
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 760;
  line-height: 1;
  padding: 9px 10px;
  transition: background 180ms ease, border-color 180ms ease;
}

.atlas-album-head button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.atlas-album-head button:not(:disabled):hover,
.atlas-album-head button:not(:disabled):focus-visible,
.atlas-lightbox-tools button:hover,
.atlas-lightbox-tools button:focus-visible {
  border-color: rgba(39, 56, 75, 0.35);
  background: rgba(39, 56, 75, 0.08);
  outline: none;
}

.atlas-album-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
  max-height: 172px;
  margin-top: 10px;
  overflow: auto;
  padding-right: 2px;
}

.atlas-album-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(28, 26, 23, 0.1);
  border-radius: 6px;
  background: rgba(28, 26, 23, 0.06);
  cursor: pointer;
  padding: 0;
}

.atlas-album-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 220ms ease, opacity 180ms ease;
}

.atlas-album-thumb span {
  position: absolute;
  right: 4px;
  bottom: 4px;
  min-width: 24px;
  border-radius: 999px;
  background: rgba(28, 26, 23, 0.72);
  color: #fffdf7;
  font-size: 10px;
  font-weight: 760;
  line-height: 1;
  padding: 4px 5px;
}

.atlas-album-thumb:hover img,
.atlas-album-thumb:focus-visible img {
  transform: scale(1.05);
}

.atlas-album-thumb:focus-visible {
  outline: 2px solid rgba(212, 91, 61, 0.7);
  outline-offset: 2px;
}

.atlas-album-thumb.is-hidden-review-photo img,
.atlas-lightbox img.is-hidden-review-photo {
  opacity: 0.36;
  filter: grayscale(1);
}

.atlas-lightbox[hidden] {
  display: none;
}

.has-atlas-lightbox {
  overflow: hidden;
}

.atlas-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(20, 22, 24, 0.76);
  backdrop-filter: blur(12px);
}

.atlas-lightbox-panel {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 56px;
  align-items: center;
  width: min(1080px, 100%);
  max-height: calc(100vh - 56px);
  border: 1px solid rgba(255, 253, 247, 0.18);
  border-radius: 8px;
  background: #141618;
  color: #fffdf7;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
}

.atlas-lightbox-panel figure {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 18px 0;
  min-width: 0;
}

.atlas-lightbox-panel figure img {
  width: 100%;
  max-height: calc(100vh - 190px);
  border-radius: 6px;
  object-fit: contain;
  transform-origin: center;
  transition: transform 180ms ease, opacity 180ms ease, filter 180ms ease;
  background: rgba(255, 255, 255, 0.04);
}

.atlas-lightbox-panel figcaption {
  display: grid;
  gap: 4px;
  color: rgba(255, 253, 247, 0.78);
  font-size: 14px;
}

.atlas-lightbox-panel figcaption strong {
  color: #fffdf7;
  font-size: 16px;
}

.atlas-lightbox-close,
.atlas-lightbox-nav {
  border: 0;
  background: transparent;
  color: #fffdf7;
  cursor: pointer;
}

.atlas-lightbox-close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  font-size: 30px;
  line-height: 1;
}

.atlas-lightbox-close:hover,
.atlas-lightbox-close:focus-visible,
.atlas-lightbox-nav:hover,
.atlas-lightbox-nav:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.atlas-lightbox-nav {
  width: 48px;
  height: 84px;
  justify-self: center;
  border-radius: 999px;
  font-size: 46px;
  line-height: 1;
}

.atlas-lightbox-tools {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 0 18px 18px;
}

.atlas-lightbox-tools span {
  margin-right: auto;
  color: rgba(255, 253, 247, 0.68);
  font-size: 13px;
  font-weight: 760;
}

.marker-quito circle { animation-delay: 0.2s; }
.marker-bogota circle { animation-delay: 0.4s; }
.marker-peru circle { animation-delay: 0.6s; }
.marker-galapagos circle { animation-delay: 0.8s; }
.marker-bali circle { animation-delay: 1s; }
.marker-roatan circle { animation-delay: 1.2s; }

.atlas-chapters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(28, 26, 23, 0.1);
  border-top: 1px solid rgba(28, 26, 23, 0.1);
}

.atlas-chapters article {
  padding: 20px;
  background: rgba(255, 253, 247, 0.94);
}

.atlas-chapters span {
  color: var(--tomato);
  font-size: 13px;
  font-weight: 760;
}

.atlas-chapters p {
  color: var(--muted);
  margin-bottom: 0;
}

.timeline-map span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.08);
  font-size: 14px;
}

.timeline-section {
  padding-top: 42px;
}

.timeline-list {
  display: grid;
  gap: 18px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.timeline-year {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding-top: 20px;
  color: var(--tomato);
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 28px;
  line-height: 1;
  font-weight: 650;
}

.timeline-body {
  padding: 24px;
}

.timeline-item.featured .timeline-body {
  color: #fff;
  background: #27384b;
}

.timeline-item.featured .timeline-body p {
  color: rgba(255, 255, 255, 0.78);
}

.timeline-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.timeline-preview-grid article {
  padding: 24px;
}

.life-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.life-photo-card {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 260px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.9);
  box-shadow: var(--shadow);
}

.life-photo-card.featured {
  grid-column: span 2;
  grid-row: span 2;
}

.life-photo-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  background: var(--paper-warm);
}

.life-photo-card.featured img {
  min-height: 540px;
}

.life-photo-card figcaption {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

@keyframes route-flow {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -54; }
}

@keyframes map-point-pulse {
  0%, 100% { transform: scale(1); opacity: 0.82; }
  50% { transform: scale(1.35); opacity: 1; }
}

@keyframes field-drift {
  from { stroke-dashoffset: 0; transform: translateY(0); }
  to { stroke-dashoffset: -42; transform: translateY(-8px); }
}

@keyframes orbit-pulse {
  0%, 100% { opacity: 0.65; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.45); }
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
  }

  .hero,
  .feature-section,
  .about-section,
  .timeline-hero,
  .review-hero,
  .health-vlog {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 52px;
  }

  .feature-copy {
    position: static;
  }

  .note-grid,
  .product-layout {
    grid-template-columns: 1fr 1fr;
  }

  .daily-strip {
    grid-template-columns: 1fr 1fr;
  }

  .photo-teaser-grid {
    grid-template-columns: 1fr;
  }

  .life-photo-grid {
    grid-template-columns: 1fr 1fr;
  }

  .route-atlas-head,
  .atlas-chapters,
  .atlas-filter-board {
    grid-template-columns: 1fr;
  }

  .atlas-filter-board-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .atlas-time-filter,
  .atlas-people-filter,
  .atlas-people-panel,
  .atlas-journey-filter,
  .atlas-journey-draft {
    grid-column: 1;
    grid-row: auto;
  }

  .review-shell {
    grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  }

  .review-export-panel {
    grid-column: 1 / -1;
    position: static;
    max-height: none;
  }

  .review-export-panel textarea {
    min-height: 220px;
  }

  .review-detail {
    grid-template-columns: 1fr;
  }

  .review-note {
    grid-column: auto;
  }

  .atlas-time-filter,
  .atlas-people-filter,
  .atlas-journey-filter {
    align-items: flex-start;
    flex-direction: column;
  }

  .atlas-time-controls {
    width: 100%;
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .atlas-people-controls {
    width: 100%;
    justify-content: flex-start;
  }

  .atlas-journey-controls {
    width: 100%;
    justify-content: flex-start;
  }

  .atlas-journey-controls button {
    flex-basis: 178px;
  }

  .atlas-panel-head,
  .atlas-person-slots,
  .atlas-journey-form {
    grid-template-columns: 1fr;
  }

  .atlas-journey-form label.is-wide {
    grid-column: auto;
  }

  .atlas-journey-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .atlas-place-card {
    grid-template-columns: 132px minmax(0, 1fr);
  }

  .atlas-album-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .route-summary-grid {
    grid-template-columns: 1fr;
  }

  .life-photo-card.featured {
    grid-row: span 1;
  }

  .life-photo-card.featured img {
    min-height: 360px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .timeline-year {
    justify-content: flex-start;
    padding-top: 0;
  }

}

@media (max-width: 640px) {
  .section {
    padding: 56px 18px;
  }

  .site-header {
    padding: 14px 18px;
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 31px;
  }

  .lead {
    font-size: 17px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .note-grid,
  .product-layout,
  .daily-strip,
  .photo-teaser-grid,
  .timeline-preview-grid,
  .life-photo-grid,
  .weight-stats,
  .article-nav {
    grid-template-columns: 1fr;
  }

  .atlas-canvas {
    padding: 0 10px 12px;
  }

  .atlas-filter-board {
    margin: 0 10px 12px;
    padding: 10px;
  }

  .atlas-toolbar {
    position: static;
    justify-content: flex-end;
    margin-bottom: 10px;
    box-shadow: none;
  }

  .atlas-time-controls {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .atlas-journey-controls button {
    min-height: 54px;
  }

  .atlas-time-controls button {
    justify-self: start;
  }

  .atlas-time-controls span {
    text-align: left;
  }

  .atlas-place-card {
    grid-template-columns: 1fr;
  }

  .atlas-place-card img {
    aspect-ratio: 16 / 9;
  }

  .atlas-album-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .atlas-album-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-height: 228px;
  }

  .review-shell {
    grid-template-columns: 1fr;
  }

  .review-sidebar,
  .review-export-panel {
    position: static;
    max-height: none;
  }

  .review-stage-head,
  .review-sidebar-head,
  .review-export-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .review-filters {
    justify-content: flex-start;
  }

  .review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .review-actions {
    grid-template-columns: 1fr;
  }

  .atlas-lightbox {
    padding: 12px;
  }

  .atlas-lightbox-panel {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    max-height: calc(100vh - 24px);
  }

  .atlas-lightbox-panel figure {
    padding: 56px 0 10px;
  }

  .atlas-lightbox-panel figure img {
    max-height: calc(100vh - 230px);
  }

  .atlas-lightbox-nav {
    width: 38px;
    height: 64px;
    font-size: 36px;
  }

  .atlas-lightbox-tools span {
    flex-basis: 100%;
  }

  .life-photo-card,
  .life-photo-card.featured {
    grid-column: span 1;
  }

  .life-photo-card,
  .life-photo-card img,
  .life-photo-card.featured img {
    min-height: auto;
  }

  .life-photo-card img {
    aspect-ratio: 4 / 3;
  }

  .timeline-hero h1 {
    font-size: 36px;
  }

  .review-hero h1 {
    font-size: 36px;
  }

  .review-run-panel {
    grid-template-columns: 1fr 1fr;
  }

  .atlas-journey-mode-tabs,
  .atlas-journey-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .atlas-journey-meta,
  .atlas-segment-row {
    grid-template-columns: 1fr;
  }

  .poster {
    min-height: 132px;
    padding: 20px;
  }

  .poster strong {
    font-size: 25px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
