:root {
  --paper: #f2f6f7;
  --paper-deep: #e5eef1;
  --ink: #193039;
  --muted: #607780;
  --line: #d5e1e5;
  --green: #1d6170;
  --accent: #b34d3c;
  --white: #ffffff;
  --shadow: 0 22px 58px rgba(18, 54, 65, 0.11);
  --shadow-soft: 0 10px 28px rgba(18, 54, 65, 0.07);
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.upload-zone:focus-within {
  outline: 3px solid rgba(29, 97, 112, 0.29);
  outline-offset: 3px;
}
a {
  color: inherit;
  text-decoration: none;
}
.hidden {
  display: none !important;
}
.button-reset {
  border: 0;
  background: none;
}
.text-link {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink);
  padding: 9px 12px;
  border-radius: 9px;
  transition:
    color 0.25s,
    background 0.25s;
}
.text-link:hover {
  color: var(--green);
  background: #e6f0f2;
}
.quiet-label {
  font-size: 11px;
  color: var(--muted);
}
.shell {
  min-height: 100vh;
  padding: 0 34px 42px;
  max-width: 1900px;
  margin: auto;
}
.topbar {
  height: 78px;
  display: flex;
  align-items: center;
  gap: 22px;
  border-bottom: 1px solid #d8e4e8;
  position: relative;
  z-index: 8;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.16em;
  white-space: nowrap;
}
.brand-seal {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--green);
  color: #ffffff;
  border-radius: 10px;
  font-size: 17px;
  letter-spacing: 0;
  transform: rotate(-5deg);
  box-shadow: 0 5px 12px rgba(29, 97, 112, 0.2);
}
.topbar-caption {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.22em;
  border-left: 1px solid var(--line);
  padding-left: 22px;
  margin-left: 5px;
}
.topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.atlas-layout {
  display: grid;
  grid-template-columns: minmax(275px, 335px) minmax(0, 1fr);
  min-height: min(72vh, 800px);
  padding-top: 24px;
  gap: 16px;
}
.atlas-aside {
  padding: 54px 26px 34px 17px;
  display: flex;
  flex-direction: column;
  min-height: 650px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.23em;
  font-weight: 700;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow-line {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--accent);
}
.eyebrow-index {
  margin-left: auto;
  color: var(--accent);
}
.atlas-aside h1 {
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  font-size: clamp(52px, 5vw, 89px);
  line-height: 1.31;
  letter-spacing: 0.11em;
  font-weight: 500;
  margin: 42px 0 20px;
}
.atlas-aside h1 em {
  font-weight: 400;
  font-style: normal;
  color: var(--accent);
}
.aside-copy {
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  font-size: 13px;
  line-height: 2.1;
  color: #58727b;
  letter-spacing: 0.05em;
}
.filter-stack {
  margin-top: auto;
  display: grid;
  gap: 10px;
}
.filter-stack label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-top: 13px;
}
.search-wrap {
  height: 50px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 11px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-soft);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.search-wrap:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(29, 97, 112, 0.11);
}
.search-wrap span {
  font-size: 25px;
  color: var(--green);
  line-height: 1;
}
.search-wrap input {
  border: 0;
  outline: 0;
  background: none;
  width: 100%;
  height: 100%;
  color: var(--ink);
  font-size: 13px;
}
.search-wrap input::placeholder {
  color: #91a4aa;
}
.filter-stack select {
  appearance: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 11px;
  height: 50px;
  color: var(--ink);
  outline: 0;
  padding: 0 38px 0 15px;
  font-size: 13px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%231d6170' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  box-shadow: var(--shadow-soft);
}
.filter-stack select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(29, 97, 112, 0.11);
}
.aside-footer {
  font-size: 11px;
  color: var(--muted);
  margin-top: 35px;
  letter-spacing: 0.12em;
}
.dot-separator {
  padding: 0 8px;
  color: var(--accent);
}
.map-stage {
  position: relative;
  background: #dfeaec;
  min-height: 640px;
  overflow: hidden;
  border: 8px solid var(--white);
  border-radius: 19px;
  box-shadow: var(--shadow);
}
.map-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.map-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(242, 246, 247, 0.68) 0,
    transparent 16%,
    transparent 78%,
    rgba(242, 246, 247, 0.68) 100%
  );
}
.map-heading,
.map-bottom {
  position: absolute;
  z-index: 4;
  left: 29px;
  right: 29px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink);
}
.map-heading {
  top: 26px;
}
.map-coordinate {
  font-size: 9px;
  letter-spacing: 0.2em;
  color: #506c5c;
}
.map-style-switch {
  position: absolute;
  z-index: 5;
  top: 57px;
  right: 28px;
  display: flex;
  gap: 3px;
  padding: 4px;
  border: 1px solid rgba(29, 97, 112, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 9px 24px rgba(18, 54, 65, 0.14);
  backdrop-filter: blur(12px);
}
.map-style-switch button {
  min-width: 54px;
  min-height: 34px;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #516c72;
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.map-style-switch button:hover {
  color: var(--green);
  background: rgba(29, 97, 112, 0.08);
}
.map-style-switch button[aria-pressed="true"] {
  background: var(--green);
  color: #fff;
  box-shadow: 0 3px 9px rgba(18, 54, 65, 0.2);
}
.map-style-switch button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.map-style-switch button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.map-stage.is-satellite::after {
  background: linear-gradient(180deg, rgba(18, 42, 50, 0.6), transparent 17%, transparent 80%, rgba(18, 42, 50, 0.5));
}
.map-stage.is-satellite .map-heading,
.map-stage.is-satellite .map-bottom > span {
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.65);
}
.map-stage.is-satellite .map-coordinate { color: rgba(255, 255, 255, 0.85); }
.map-bottom {
  bottom: 23px;
  color: #5e6d61;
}
.map-reset {
  pointer-events: auto;
  border: 1px solid rgba(29, 97, 112, 0.16);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 7px 22px rgba(18, 54, 65, 0.12);
  padding: 10px 13px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--green);
  transition:
    transform 0.2s,
    background 0.2s;
}
.map-reset:hover {
  transform: translateY(-2px);
  background: #ffffff;
}
.map-reset span {
  margin-left: 12px;
}
.map-message {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-width: 300px;
  background: rgba(255, 255, 255, 0.96);
  padding: 22px 26px;
  box-shadow: var(--shadow);
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
}
.pin-preview {
  position: absolute;
  z-index: 6;
  right: 28px;
  bottom: 74px;
  width: 215px;
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 8px 8px 14px;
  border-radius: 14px;
  overflow: hidden;
  animation: fade-rise 0.28s ease both;
}
.pin-preview img {
  width: 100%;
  height: 115px;
  object-fit: cover;
}
.pin-preview strong {
  display: block;
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  font-size: 15px;
  font-weight: 500;
  padding: 9px 6px 2px;
}
.pin-preview small {
  color: var(--muted);
  padding: 0 6px;
  font-size: 10px;
}
.pin-preview button {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f5fafb;
  color: var(--green);
  padding: 8px 10px;
  font-size: 11px;
  margin: 9px 5px 0;
}
.pin-preview button:hover {
  background: #e6f1f3;
}
.journey-strip {
  margin-left: 352px;
  padding: 32px 0 0;
}
.strip-heading {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 13px;
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  letter-spacing: 0.1em;
}
.strip-line {
  flex: 1;
  height: 1px;
  background: var(--line);
}
#strip-count {
  font:
    700 9px "Avenir Next",
    sans-serif;
  color: var(--muted);
  letter-spacing: 0.15em;
}
.trip-list {
  display: flex;
  gap: 16px;
  overflow: auto;
  padding: 20px 2px 18px;
  scroll-snap-type: x mandatory;
}
.trip-card {
  flex: 0 0 215px;
  scroll-snap-align: start;
  text-align: left;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 8px 8px 15px;
  color: var(--ink);
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.28s,
    box-shadow 0.28s;
}
.trip-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.trip-card-image {
  height: 125px;
  width: 100%;
  object-fit: cover;
  background: #d8ddd4;
  display: block;
  border-radius: 8px;
}
.trip-card-image-empty {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #dbe9ed, #bdd5d9);
  color: var(--green);
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  font-size: 32px;
}
.trip-card-meta {
  display: block;
  color: var(--accent);
  font-size: 9px;
  letter-spacing: 0.16em;
  margin: 12px 7px 6px;
}
.trip-card strong {
  display: block;
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  font-weight: 500;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 7px;
}
.empty-list {
  font:
    13px "Songti SC",
    "STSong",
    "Noto Serif CJK SC",
    serif;
  color: var(--muted);
  padding: 35px 20px;
  border: 1px dashed #bfced3;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
}
.story-dialog {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  border: 0;
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  overflow: auto;
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.36s ease,
    transform 0.36s ease;
}
.story-dialog[open] {
  opacity: 1;
  transform: translateY(0);
}
.story-dialog::backdrop {
  background: rgba(8, 32, 41, 0.76);
  backdrop-filter: blur(9px);
}
.story-toolbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}
.story-toolbar-brand {
  font-size: 10px;
  color: var(--green);
  letter-spacing: 0.2em;
  font-weight: 700;
}
.story-toolbar button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  font-size: 27px;
  line-height: 1;
  transition:
    transform 0.25s,
    background 0.25s;
}
.story-toolbar button:hover {
  transform: rotate(90deg);
  background: #e6f0f2;
}
.story-hero {
  min-height: clamp(430px, 76vh, 820px);
  display: grid;
  grid-template-columns: 40% 60%;
  padding: 5vw;
  background: linear-gradient(115deg, #f8fbfc, #e6f0f2);
}
.story-hero-copy {
  padding: 8vh 7% 5vh 0;
  align-self: center;
}
.story-kicker {
  font-size: 10px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.23em;
}
.story-hero h1 {
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  font-weight: 500;
  font-size: clamp(45px, 5vw, 86px);
  line-height: 1.4;
  letter-spacing: 0.07em;
  margin: 26px 0;
}
.story-hero .story-intro {
  font-size: 13px;
  line-height: 2.25;
  color: #55717b;
  max-width: 390px;
  white-space: pre-line;
}
.story-hero-image {
  min-height: 480px;
  position: relative;
  overflow: hidden;
  background: #cadfe3;
  border-radius: 13px;
}
.story-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.story-hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 14px solid rgba(255, 255, 255, 0.13);
}
.story-scroll-note {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.2em;
  margin-top: 8vh;
}
.story-section {
  padding: 7vw max(6vw, calc((100vw - 1300px) / 2));
  border-top: 1px solid var(--line);
}
.story-section-number {
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.2em;
}
.story-section h2 {
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  font-size: clamp(30px, 3.5vw, 54px);
  font-weight: 500;
  margin: 17px 0;
}
.story-section p {
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  white-space: pre-line;
  max-width: 670px;
  line-height: 2.1;
  color: #526b75;
  font-size: 15px;
}
.story-location {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.story-location small {
  font-size: 11px;
  color: var(--muted);
}
.story-gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 15px;
  margin-top: 50px;
}
.story-photo {
  grid-column: span 6;
  background: transparent;
  border: 0;
  padding: 0;
  text-align: left;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.25s;
}
.story-photo:hover {
  transform: translateY(-3px);
}
.story-photo:nth-child(3n + 1) {
  grid-column: span 8;
}
.story-photo:nth-child(3n + 2) {
  grid-column: span 4;
}
.story-photo img {
  width: 100%;
  max-height: 640px;
  min-height: 220px;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}
.story-photo span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  padding-top: 10px;
}
.story-route {
  font-size: 11px;
  color: var(--green);
  letter-spacing: 0.08em;
}
.story-lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(14, 22, 17, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 5vw;
}
.story-lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.story-lightbox button {
  position: absolute;
  right: 25px;
  top: 20px;
  background: none;
  border: 0;
  color: white;
  font-size: 36px;
}
.story-lightbox span {
  position: absolute;
  bottom: 20px;
  color: #eee;
  font-size: 12px;
}
.login-page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(
      circle at 86% 4%,
      rgba(101, 176, 186, 0.27),
      transparent 34%
    ),
    radial-gradient(circle at 6% 92%, rgba(19, 91, 110, 0.22), transparent 37%),
    linear-gradient(145deg, #dcebef 0%, #f0f7f8 50%, #e5f0f2 100%);
}
.login-card {
  width: min(470px, 100%);
  padding: 54px 54px 35px;
  background: var(--white);
  box-shadow: var(--shadow);
  position: relative;
  border: 1px solid #e0eaed;
  border-radius: 22px;
  overflow: hidden;
}
.login-card::before {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 16px;
  bottom: 16px;
  border: 1px solid rgba(29, 97, 112, 0.13);
  border-radius: 13px;
  pointer-events: none;
}
.login-symbol {
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  font-size: 64px;
  color: var(--white);
  background: var(--green);
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  box-shadow: 0 12px 24px rgba(29, 97, 112, 0.22);
  transform: rotate(-5deg);
  margin: 32px 0 22px;
  line-height: 1;
}
.login-card h1 {
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  font-weight: 500;
  font-size: 26px;
  letter-spacing: 0.1em;
  margin: 18px 0 10px;
}
.login-card p {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}
.login-tabs {
  display: flex;
  gap: 5px;
  padding: 5px;
  background: #edf4f6;
  border: 1px solid #dce9ed;
  border-radius: 11px;
  margin: 34px 0 25px;
}
.login-tabs button {
  flex: 1;
  border: 0;
  border-radius: 8px;
  background: transparent;
  padding: 11px 8px;
  color: var(--muted);
  font-size: 12px;
  transition:
    background 0.2s,
    color 0.2s,
    box-shadow 0.2s;
}
.login-tabs button.active {
  background: var(--white);
  color: var(--green);
  box-shadow: 0 3px 12px rgba(18, 54, 65, 0.08);
}
.login-card label,
.editor-form label,
.compact-form label {
  font-size: 12px;
  color: #4e6872;
  display: grid;
  gap: 9px;
  letter-spacing: 0.03em;
  margin-bottom: 18px;
  font-weight: 600;
}
.login-card input,
.editor-form input,
.editor-form textarea,
.compact-form input,
.compact-form select,
.inline-add select,
.photo-editor-list input,
.photo-editor-list select,
.sortable-list textarea {
  width: 100%;
  border: 1px solid #cbdbe0;
  background: #fbfdfe;
  border-radius: 10px;
  padding: 13px 14px;
  color: var(--ink);
  outline: none;
  font-size: 14px;
  letter-spacing: 0;
  min-height: 46px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background 0.2s;
}
.login-card input:hover,
.editor-form input:hover,
.editor-form textarea:hover,
.compact-form input:hover,
.compact-form select:hover,
.inline-add select:hover,
.photo-editor-list input:hover,
.photo-editor-list select:hover,
.sortable-list textarea:hover {
  border-color: #98b8c1;
}
.login-card input:focus,
.editor-form input:focus,
.editor-form textarea:focus,
.compact-form input:focus,
.compact-form select:focus,
.inline-add select:focus,
.photo-editor-list input:focus,
.photo-editor-list select:focus,
.sortable-list textarea:focus {
  border-color: var(--green);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(29, 97, 112, 0.12);
}
input::placeholder,
textarea::placeholder {
  color: #9aaeb5;
}
input[type="date"],
select {
  color-scheme: light;
}
.compact-form select,
.inline-add select,
.photo-editor-list select {
  cursor: pointer;
}
.primary-button,
.secondary-button {
  border: 1px solid var(--green);
  border-radius: 10px;
  padding: 11px 18px;
  background: var(--green);
  color: white;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.02em;
  min-height: 44px;
  box-shadow: 0 6px 14px rgba(29, 97, 112, 0.13);
  transition:
    background 0.22s,
    transform 0.22s,
    box-shadow 0.22s;
}
.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
  background: #124f5d;
  box-shadow: 0 10px 20px rgba(29, 97, 112, 0.18);
}
.primary-button:active,
.secondary-button:active {
  transform: translateY(0);
}
.secondary-button {
  background: #ffffff;
  color: var(--green);
  box-shadow: none;
}
.secondary-button:hover {
  color: white;
}
.login-card .primary-button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
}
.form-error {
  color: #a94031 !important;
  min-height: 20px;
}
.login-foot {
  font-size: 9px;
  letter-spacing: 0.2em;
  color: #91a5ac;
  text-align: center;
  margin-top: 38px;
}
.admin-topbar {
  padding: 0 34px;
  background: var(--white);
}
.admin-page {
  background: #edf3f5;
}
.admin-heading {
  font-size: 13px;
  color: var(--muted);
  padding-left: 24px;
  border-left: 1px solid var(--line);
}
.admin-topbar > .text-link {
  margin-left: auto;
}
.admin-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: calc(100vh - 78px);
}
.admin-sidebar {
  border-right: 1px solid var(--line);
  padding: 34px 22px;
  background: #f8fbfc;
}
.admin-sidebar .primary-button {
  width: 100%;
  margin: 30px 0 22px;
}
.admin-trip-list {
  display: grid;
  gap: 7px;
}
.admin-trip-list button {
  border: 1px solid transparent;
  background: transparent;
  text-align: left;
  padding: 14px;
  border-radius: 10px;
  color: var(--ink);
  transition:
    background 0.2s,
    border-color 0.2s;
}
.admin-trip-list button.active,
.admin-trip-list button:hover {
  background: #e8f2f4;
  border-color: #cde0e5;
}
.admin-trip-list small {
  display: block;
  font-size: 10px;
  color: var(--accent);
  margin-top: 5px;
}
.admin-main {
  padding: 38px min(5vw, 75px);
  max-width: 1420px;
}
.admin-empty {
  padding: 17vh 4vw;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}
.admin-empty-symbol {
  font-size: 54px;
  color: var(--accent);
}
.admin-empty h1,
.editor-titlebar h1 {
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  font-weight: 500;
  font-size: 35px;
}
.admin-empty p {
  font-size: 13px;
  color: var(--muted);
}
.admin-notice {
  position: sticky;
  top: 12px;
  z-index: 30;
  background: #e5f2f4;
  border-left: 3px solid var(--green);
  padding: 12px 15px;
  font-size: 12px;
  margin-bottom: 15px;
  box-shadow: var(--shadow);
  border-radius: 9px;
}
.admin-notice.error {
  background: #f6e8e3;
  border-color: var(--accent);
}
.editor-titlebar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.editor-titlebar h1 {
  margin: 16px 0 0;
}
.editor-actions {
  display: flex;
  gap: 8px;
}
.editor-section {
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  padding: 29px 32px 32px;
  margin-bottom: 18px;
}
.section-heading {
  display: flex;
  align-items: center;
  gap: 13px;
}
.section-heading span {
  font-size: 11px;
  color: var(--accent);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #fcf0ed;
  font-weight: 700;
}
.section-heading h2 {
  font:
    500 23px "Songti SC",
    "STSong",
    "Noto Serif CJK SC",
    serif;
  margin: 0 0 20px;
}
.section-help {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  margin: -10px 0 21px;
}
.editor-form {
  max-width: 860px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.field-row-three {
  grid-template-columns: repeat(3, 1fr);
}
.editor-form textarea,
.sortable-list textarea {
  resize: vertical;
  line-height: 1.8;
}
.location-grid {
  display: grid;
  grid-template-columns: minmax(230px, 330px) minmax(0, 1fr);
  gap: 24px;
}
.location-forms {
  display: grid;
  gap: 20px;
}
.compact-form {
  background: #f7fbfc;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 22px;
}
.compact-form h3 {
  font:
    500 16px "Songti SC",
    "STSong",
    "Noto Serif CJK SC",
    serif;
  margin: 0 0 17px;
}
.picker-wrap {
  background: #e4eff1;
  min-height: 525px;
  position: relative;
  border-radius: 13px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.admin-map {
  position: absolute;
  inset: 0 0 28px;
}
.picker-wrap p {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  margin: 0;
  background: var(--white);
  height: 28px;
  padding: 7px;
}
.sortable-list {
  display: grid;
  gap: 10px;
}
.sortable-item {
  display: grid;
  grid-template-columns: 38px minmax(120px, 190px) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 13px;
  box-shadow: 0 3px 12px rgba(18, 54, 65, 0.04);
}
.sortable-item .number {
  font-size: 12px;
  color: var(--accent);
}
.sortable-item strong {
  font-size: 13px;
}
.sortable-item small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.sort-actions {
  display: flex;
  gap: 4px;
}
.sort-actions button,
.photo-actions button {
  border: 1px solid var(--line);
  background: #f7fbfc;
  color: var(--ink);
  border-radius: 8px;
  min-width: 33px;
  min-height: 33px;
  padding: 5px 8px;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.sort-actions button:hover,
.photo-actions button:hover {
  background: #e8f2f4;
  border-color: #a8c8d0;
}
.inline-add {
  display: flex;
  gap: 10px;
  margin: 18px 0;
}
.inline-add select {
  max-width: 330px;
}
.upload-zone {
  display: inline-flex;
  align-items: center;
  padding: 25px 35px;
  border: 1.5px dashed #84b0bb;
  border-radius: 13px;
  background: #f2f9fa;
  font-size: 13px;
  color: var(--green);
  cursor: pointer;
  margin: 0 0 22px;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.upload-zone:hover,
.upload-zone:focus-within {
  background: #e6f3f5;
  border-color: var(--green);
}
.upload-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.photo-editor-list {
  display: grid;
  gap: 10px;
}
.photo-editor-item {
  display: grid;
  grid-template-columns: 95px 1fr 180px auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 11px;
}
.photo-editor-item img {
  width: 95px;
  height: 70px;
  object-fit: cover;
}
.photo-actions {
  display: flex;
  gap: 4px;
}
.photo-editor-item .cover-label {
  font-size: 11px;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 6px;
}
.photo-editor-item input[type="radio"] {
  width: auto;
}
@keyframes fade-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 1000px) {
  .shell {
    padding: 0 18px 22px;
  }
  .atlas-layout {
    grid-template-columns: 250px minmax(0, 1fr);
  }
  .atlas-aside {
    padding-left: 4px;
  }
  .journey-strip {
    margin-left: 266px;
  }
  .location-grid {
    grid-template-columns: 1fr;
  }
  .picker-wrap {
    min-height: 350px;
  }
  .admin-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }
}
@media (max-width: 700px) {
  .topbar {
    height: 66px;
  }
  .topbar-caption,
  .quiet-label {
    display: none;
  }
  .topbar-actions {
    gap: 12px;
  }
  .atlas-layout {
    display: flex;
    flex-direction: column;
    padding-top: 0;
    gap: 0;
  }
  .atlas-aside {
    min-height: 0;
    padding: 29px 0 25px;
  }
  .atlas-aside h1 {
    font-size: 43px;
    margin: 19px 0 8px;
    line-height: 1.2;
  }
  .atlas-aside h1 br {
    display: none;
  }
  .aside-copy {
    display: none;
  }
  .filter-stack {
    margin-top: 14px;
    grid-template-columns: 1fr 1fr;
    gap: 4px 12px;
  }
  .filter-stack label {
    margin: 0;
  }
  .search-wrap,
  .filter-stack select {
    height: 42px;
  }
  .aside-footer {
    margin-top: 16px;
  }
  .map-stage {
    min-height: 490px;
    height: 58vh;
  }
  .map-heading,
  .map-bottom {
    left: 14px;
    right: 14px;
  }
  .map-coordinate,
  .map-bottom > span {
    display: none;
  }
  .map-style-switch {
    top: 52px;
    right: 12px;
  }
  .pin-preview {
    right: 12px;
    bottom: 65px;
    width: 180px;
  }
  .journey-strip {
    margin-left: 0;
    padding-top: 23px;
  }
  .trip-card {
    flex-basis: 165px;
  }
  .trip-card-image {
    height: 108px;
  }
  .story-hero {
    grid-template-columns: 1fr;
    padding: 25px 18px;
  }
  .story-hero-copy {
    padding: 30px 0 25px;
  }
  .story-hero h1 {
    font-size: 38px;
    margin: 15px 0;
  }
  .story-hero-image {
    min-height: 42vh;
  }
  .story-scroll-note {
    display: none;
  }
  .story-section {
    padding: 55px 18px;
  }
  .story-gallery {
    gap: 8px;
    margin-top: 28px;
  }
  .story-photo,
  .story-photo:nth-child(3n + 1),
  .story-photo:nth-child(3n + 2) {
    grid-column: span 12;
  }
  .story-photo img {
    min-height: 0;
  }
  .login-card {
    padding: 43px 30px 22px;
  }
  .admin-topbar {
    padding: 0 16px;
  }
  .admin-shell {
    display: block;
  }
  .admin-sidebar {
    padding: 20px 16px;
    border: 0;
    border-bottom: 1px solid var(--line);
  }
  .admin-sidebar .primary-button {
    margin: 16px 0;
  }
  .admin-trip-list {
    display: flex;
    overflow: auto;
  }
  .admin-trip-list button {
    flex: 0 0 150px;
  }
  .admin-main {
    padding: 22px 16px;
  }
  .editor-section {
    padding: 22px 17px 24px;
    border-radius: 14px;
  }
  .compact-form {
    padding: 18px;
  }
  .login-card {
    border-radius: 18px;
  }
  .editor-titlebar {
    align-items: start;
  }
  .editor-titlebar h1 {
    font-size: 26px;
  }
  .editor-actions {
    flex-direction: column;
  }
  .field-row,
  .field-row-three {
    grid-template-columns: 1fr;
  }
  .sortable-item {
    grid-template-columns: 25px 1fr auto;
  }
  .sortable-item textarea {
    grid-column: 1/-1;
  }
  .photo-editor-item {
    grid-template-columns: 70px 1fr;
  }
  .photo-editor-item img {
    width: 70px;
    height: 60px;
  }
  .photo-actions {
    grid-column: 1/-1;
  }
  .photo-editor-item select {
    grid-column: 1/-1;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
