:root {
  color-scheme: light;
  --bg: #f6f3ec;
  --surface: #fffdf9;
  --ink: #1f2029;
  --muted: #858696;
  --line: rgba(31, 32, 41, 0.1);
  --accent: #b98408;
  --accent-strong: #8f6507;
  --soft: #f4efe4;
  --sky: #dfeaf0;
  --food: #eadfcb;
  --danger: #8d3f31;
  --danger-bg: #f1ded6;
  --shadow: 0 20px 50px rgba(31, 32, 41, 0.08);
  --serif: Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(246, 243, 236, 0.94) 60%, rgba(255, 253, 248, 0.98)),
    var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 24%, rgba(185, 132, 8, 0.42) 0 3px, transparent 4px),
    radial-gradient(circle at 22% 13%, rgba(185, 132, 8, 0.26) 0 2px, transparent 3px),
    radial-gradient(circle at 36% 32%, rgba(185, 132, 8, 0.36) 0 3px, transparent 4px),
    radial-gradient(circle at 58% 18%, rgba(185, 132, 8, 0.28) 0 2px, transparent 3px),
    radial-gradient(circle at 82% 38%, rgba(185, 132, 8, 0.32) 0 3px, transparent 4px),
    linear-gradient(36deg, transparent 0 23%, rgba(185, 132, 8, 0.1) 23.1% 23.25%, transparent 23.35% 100%),
    linear-gradient(112deg, transparent 0 41%, rgba(185, 132, 8, 0.08) 41.1% 41.25%, transparent 41.35% 100%),
    linear-gradient(154deg, transparent 0 63%, rgba(185, 132, 8, 0.07) 63.1% 63.25%, transparent 63.35% 100%);
  opacity: 0.55;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button,
label {
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

.app-shell {
  width: min(100%, 1220px);
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 28px) 18px calc(env(safe-area-inset-bottom) + 104px);
}

.topbar,
.top-actions,
.toolbar,
.tool-actions,
.stats-row,
.memory-meta,
.card-actions,
.section-head,
.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar,
.section-head,
.memory-meta {
  justify-content: space-between;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  margin: -16px -10px 30px;
  padding: 16px 10px;
  border-bottom: 1px solid rgba(31, 32, 41, 0.06);
  background: rgba(255, 253, 249, 0.76);
  backdrop-filter: blur(16px);
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom) + 12px);
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr 62px 1fr 1fr;
  align-items: center;
  gap: 8px;
  width: min(calc(100% - 24px), 560px);
  min-height: 64px;
  padding: 8px;
  border: 1px solid rgba(34, 32, 28, 0.12);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.94);
  box-shadow: 0 18px 40px rgba(31, 32, 41, 0.14);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
}

.bottom-nav button {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-weight: 900;
}

.bottom-nav button.is-active {
  color: white;
  background: var(--accent);
}

.bottom-nav .nav-add {
  min-height: 54px;
  border-radius: 999px;
  color: white;
  background: var(--accent-strong);
  font-size: 30px;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(33, 73, 63, 0.28);
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-family: var(--serif);
  color: var(--accent-strong);
  font-size: clamp(38px, 7vw, 70px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-top: 5px;
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.15;
  letter-spacing: 0;
}

main,
#privateApp,
.memory-form,
.auth-form,
.timeline {
  display: grid;
  gap: 16px;
}

.eyebrow,
.section-label {
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
}

.auth-panel,
.spotlight,
.overview,
.footprint-panel,
.toolbar,
.memory-card,
.empty-state,
.compose-panel,
.profile-card,
.profile-hero {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.88);
  box-shadow: var(--shadow);
}

.auth-panel {
  display: grid;
  gap: 22px;
  max-width: 1060px;
  min-height: 540px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 58px);
  position: relative;
  overflow: hidden;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  align-items: end;
  background:
    radial-gradient(circle at 18% 22%, rgba(185, 132, 8, 0.16), transparent 24%),
    linear-gradient(135deg, rgba(255, 253, 249, 0.96), rgba(246, 243, 236, 0.88));
}

.auth-panel::before {
  content: "";
  position: absolute;
  inset: 28px;
  pointer-events: none;
  border: 1px solid rgba(185, 132, 8, 0.12);
}

.auth-panel::after {
  content: "PRIVATE ARCHIVE";
  position: absolute;
  right: 44px;
  top: 38px;
  color: rgba(31, 32, 41, 0.18);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.26em;
}

.auth-panel > .section-label,
.auth-panel > h2 {
  grid-column: 1;
  max-width: 8.8em;
  position: relative;
  z-index: 1;
}

.auth-panel > h2 {
  font-size: clamp(44px, 6vw, 86px);
  line-height: 0.98;
}

.auth-panel > .auth-form,
.auth-panel > .status-text {
  grid-column: 2;
  position: relative;
  z-index: 1;
}

.auth-panel > .auth-form {
  align-self: end;
  padding: 24px;
  border: 1px solid rgba(31, 32, 41, 0.08);
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.72);
  box-shadow: 0 20px 60px rgba(31, 32, 41, 0.08);
  backdrop-filter: blur(18px);
}

.auth-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.spotlight {
  display: grid;
  overflow: hidden;
  min-height: 440px;
  border-color: rgba(185, 132, 8, 0.18);
  background: #f4efe4;
}

.spotlight-frame {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  background:
    linear-gradient(135deg, #efe7d8, #d9e2dc),
    var(--accent);
}

.spotlight-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 253, 249, 0.04), rgba(31, 32, 41, 0.22));
}

.spotlight-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 700ms ease, transform 2800ms ease;
}

.spotlight-frame img.is-active {
  opacity: 1;
  transform: scale(1);
}

.spotlight-empty {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 1px;
  color: rgba(31, 32, 41, 0.48);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

.spotlight-empty span {
  display: grid;
  align-items: end;
  height: 100%;
  padding: 18px;
  background: rgba(255, 253, 249, 0.25);
}

.spotlight-copy {
  display: grid;
  align-content: end;
  gap: 14px;
  padding: 22px;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 20%, rgba(185, 132, 8, 0.16), transparent 30%),
    linear-gradient(135deg, rgba(255, 253, 249, 0.98), rgba(244, 239, 228, 0.98));
}

.spotlight-copy .section-label {
  color: var(--accent);
}

.spotlight-copy h2 {
  max-width: 12em;
  font-size: clamp(34px, 5vw, 60px);
}

.spotlight-copy p:not(.section-label) {
  max-width: 32em;
  color: var(--muted);
  line-height: 1.65;
}

.spotlight-dots {
  display: flex;
  gap: 8px;
}

.spotlight-dots button {
  width: 28px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(31, 32, 41, 0.16);
}

.spotlight-dots button.is-active {
  background: var(--accent);
}

.overview {
  display: grid;
  gap: 20px;
  padding: 30px;
  border-color: rgba(185, 132, 8, 0.12);
}

.overview h2 {
  max-width: 16em;
}

.footprint-panel {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.footprint-panel.map-page {
  min-height: calc(100vh - 190px);
  align-content: start;
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 0.96), rgba(238, 245, 241, 0.94)),
    var(--surface);
}

.footprint-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.map-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.map-back-button {
  min-height: 38px;
}

.footprint-head h2 {
  max-width: 18em;
  font-size: clamp(22px, 3.2vw, 34px);
}

.footprint-layout {
  display: grid;
  gap: 14px;
}

.china-map {
  width: 100%;
  min-height: 360px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 25% 18%, rgba(255, 255, 255, 0.96), transparent 34%),
    radial-gradient(circle at 72% 78%, rgba(215, 166, 74, 0.16), transparent 30%),
    linear-gradient(135deg, rgba(224, 238, 235, 0.94), rgba(234, 241, 232, 0.9)),
    white;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    inset 0 -24px 60px rgba(47, 102, 91, 0.08);
}

.china-map svg {
  width: 100%;
  height: auto;
  max-height: 520px;
  padding: 10px;
  filter: drop-shadow(0 18px 18px rgba(33, 73, 63, 0.12));
}

.map-shape {
  fill: rgba(255, 253, 249, 0.76);
  stroke: rgba(255, 255, 255, 0.86);
  stroke-width: 1.2;
  transition: fill 180ms ease, filter 180ms ease, stroke 180ms ease, opacity 180ms ease;
}

.map-shape.is-openable {
  cursor: pointer;
}

.province-shape {
  fill: #d9e2dc;
}

.city-shape {
  fill: #e8eee9;
  stroke: rgba(47, 102, 91, 0.28);
  stroke-width: 1.6;
}

.map-shape.is-lit {
  fill: #2f665b;
  cursor: pointer;
}

.city-shape.is-lit {
  fill: #d7a64a;
}

.map-shape.is-openable:hover,
.map-shape.is-openable:focus {
  fill: #b9cdc4;
  outline: none;
  filter: drop-shadow(0 5px 8px rgba(34, 32, 28, 0.16));
}

.map-shape.is-lit:hover,
.map-shape.is-lit:focus,
.city-shape.is-lit:hover,
.city-shape.is-lit:focus {
  fill: #d7a64a;
  outline: none;
  filter: drop-shadow(0 6px 10px rgba(34, 32, 28, 0.22));
}

.province-shape.is-selected,
.city-shape.is-lit:focus,
.city-shape.is-lit:hover {
  fill: #d7a64a;
  stroke: #1f2a25;
  stroke-width: 1.8;
}

.city-label {
  pointer-events: none;
  fill: rgba(33, 73, 63, 0.82);
  stroke: rgba(255, 253, 249, 0.92);
  stroke-width: 6px;
  paint-order: stroke fill;
  font-size: 22px;
  font-weight: 900;
  text-anchor: middle;
  dominant-baseline: central;
}

.city-label.is-lit {
  fill: #1f2a25;
  font-size: 26px;
}

.province-panel {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 160px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(228, 238, 232, 0.78)),
    white;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.profile-page {
  display: grid;
  gap: 18px;
}

.profile-hero {
  display: grid;
  gap: 14px;
  min-height: 260px;
  align-content: center;
  padding: 32px;
  background:
    radial-gradient(circle at 74% 24%, rgba(185, 132, 8, 0.14), transparent 26%),
    linear-gradient(135deg, rgba(255, 253, 249, 0.96), rgba(244, 239, 228, 0.92));
}

.profile-hero h2 {
  max-width: 12em;
}

.profile-hero p:not(.section-label) {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.profile-grid {
  display: grid;
  gap: 16px;
}

.profile-card {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.profile-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
}

.profile-copy {
  color: var(--muted);
  line-height: 1.65;
}

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

.profile-stats span {
  display: grid;
  gap: 6px;
  min-height: 92px;
  align-content: center;
  padding: 14px;
  border: 1px solid rgba(185, 132, 8, 0.14);
  border-radius: 8px;
  background: var(--soft);
}

.profile-stats strong {
  font-family: var(--serif);
  color: var(--accent-strong);
  font-size: 38px;
  line-height: 1;
}

.profile-stats small {
  color: var(--muted);
  font-weight: 850;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.city-list {
  display: grid;
  gap: 9px;
}

.city-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--accent-strong);
  background: var(--soft);
  font-weight: 850;
  text-align: left;
}

.city-chip strong {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  border-radius: 8px;
  color: white;
  background: var(--accent);
  font-size: 13px;
}

.stats-row {
  flex-wrap: wrap;
}

.stats-row span {
  display: grid;
  min-width: 86px;
  min-height: 70px;
  align-content: center;
  justify-items: start;
  padding: 12px;
  border-radius: 8px;
  color: var(--accent-strong);
  background: var(--soft);
}

.stats-row strong {
  font-size: 28px;
  line-height: 1;
}

.stats-row small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

input,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  outline: none;
}

input {
  min-height: 46px;
  padding: 0 13px;
}

textarea {
  resize: vertical;
  min-height: 118px;
  padding: 13px;
  line-height: 1.58;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(47, 102, 91, 0.13);
}

.toolbar {
  align-items: stretch;
  flex-direction: column;
  padding: 14px;
  background: rgba(255, 253, 249, 0.76);
}

.tabs,
.segmented {
  display: grid;
  gap: 8px;
}

.tabs {
  flex: 1 1 260px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.segmented button,
.tabs button,
.ghost-button,
.import-button,
.primary-button,
.text-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: white;
  font-weight: 850;
}

.segmented button.is-active,
.tabs button.is-active,
.primary-button {
  border-color: var(--accent);
  color: white;
  background: var(--accent);
}

.primary-button,
.ghost-button,
.import-button,
.text-button {
  display: inline-grid;
  place-items: center;
  padding: 0 15px;
  white-space: nowrap;
}

.primary-button {
  min-height: 48px;
}

.primary-button.compact {
  min-height: 46px;
}

.ghost-button,
.import-button,
.text-button {
  color: var(--accent-strong);
  background: var(--soft);
}

.tool-actions {
  justify-content: flex-start;
}

.search-box {
  flex: 1 1 260px;
}

.import-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.status-text {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.field-hint {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.timeline {
  align-items: start;
}

.memory-card {
  overflow: hidden;
  border-color: rgba(185, 132, 8, 0.1);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.memory-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 60px rgba(31, 32, 41, 0.12);
}

.photo-button {
  position: relative;
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
}

.memory-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--sky);
}

.memory-body {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.memory-meta {
  color: var(--muted);
  font-size: 13px;
}

.type-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--accent-strong);
  background: var(--soft);
  font-weight: 850;
}

.type-pill.is-view {
  color: #2e5769;
  background: var(--sky);
}

.memory-note {
  font-size: 17px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.location-line {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.card-actions {
  justify-content: flex-end;
}

.delete-button {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  padding: 0 11px;
  color: var(--danger);
  background: var(--danger-bg);
  font-weight: 850;
}

.empty-state {
  padding: 40px 18px;
  text-align: center;
}

.empty-state p {
  margin: 8px auto 0;
  max-width: 26em;
  color: var(--muted);
  line-height: 1.55;
}

.compose-dialog,
.memory-dialog {
  width: min(calc(100% - 24px), 880px);
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: transparent;
}

.compose-dialog::backdrop,
.memory-dialog::backdrop {
  background: rgba(24, 29, 26, 0.5);
}

.compose-panel {
  padding: 18px;
}

.photo-picker {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 260px;
  overflow: hidden;
  border: 1px dashed rgba(33, 31, 27, 0.22);
  border-radius: 8px;
  color: var(--accent-strong);
  background:
    linear-gradient(135deg, rgba(228, 238, 226, 0.82), rgba(223, 234, 240, 0.82)),
    white;
  text-align: center;
}

.photo-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.photo-picker span {
  padding: 12px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.photo-picker img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.selected-photo-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.selected-photo-thumb {
  position: relative;
  width: 72px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(255, 226, 170, 0.22);
  border-radius: 14px;
  background: rgba(255, 241, 213, 0.08);
}

.selected-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.selected-photo-thumb small,
.photo-count-badge {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  border-radius: 999px;
  color: #1b1208;
  background: linear-gradient(135deg, #ffe1a0, #c88b16);
  font-size: 12px;
  font-weight: 900;
}

.field-grid {
  display: grid;
  gap: 12px;
}

.location-grid {
  display: grid;
  gap: 10px;
}

.form-actions {
  justify-content: flex-end;
}

.memory-dialog {
  background: var(--surface);
  box-shadow: 0 24px 80px rgba(33, 31, 27, 0.32);
}

.memory-dialog article {
  display: grid;
  overflow: hidden;
}

.memory-dialog img {
  display: block;
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  background: #1f2824;
}

.dialog-gallery {
  display: flex;
  gap: 8px;
  padding: 10px 12px 0;
  overflow-x: auto;
}

.dialog-thumb {
  width: 58px;
  aspect-ratio: 1;
  flex: 0 0 auto;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 0;
  background: rgba(255, 241, 213, 0.08);
}

.dialog-thumb.is-active {
  border-color: #d7a64a;
}

.dialog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Editorial visual pass */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(31, 32, 41, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 32, 41, 0.018) 1px, transparent 1px);
  background-size: 78px 78px;
  mask-image: radial-gradient(circle at 50% 22%, black, transparent 72%);
}

.topbar {
  min-height: 74px;
}

.topbar h1 {
  font-size: clamp(30px, 3vw, 42px);
  letter-spacing: 0;
}

.topbar .eyebrow {
  margin-bottom: 2px;
  color: rgba(31, 32, 41, 0.48);
  font-size: 12px;
}

.top-actions {
  gap: 8px;
}

.top-actions .ghost-button,
.top-actions .primary-button {
  min-height: 38px;
  padding-inline: 16px;
}

#privateApp {
  gap: 28px;
}

.spotlight {
  position: relative;
  min-height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  width: min(100%, 1040px);
  margin: 0 auto;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
  align-items: center;
  gap: clamp(32px, 7vw, 110px);
  padding: 56px 0 64px;
}

.spotlight::before {
  content: "01 · MOMENT";
  position: absolute;
  top: 8px;
  left: 0;
  z-index: 2;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.28em;
}

.spotlight-frame {
  order: 2;
  width: min(100%, 340px);
  justify-self: end;
  min-height: 0;
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(185, 132, 8, 0.14);
  border-radius: 8px;
  box-shadow:
    0 20px 48px rgba(31, 32, 41, 0.1),
    0 0 0 12px rgba(255, 253, 249, 0.68);
}

.spotlight-copy {
  order: 1;
  align-content: center;
  padding: 44px 4px 8px;
  background: transparent;
}

.spotlight-copy .section-label {
  letter-spacing: 0.28em;
}

.spotlight-copy h2 {
  max-width: 8.6em;
  font-size: clamp(46px, 6.4vw, 92px);
  line-height: 0.96;
}

.spotlight-copy p:not(.section-label) {
  max-width: 26em;
  font-size: 17px;
}

.spotlight-dots button {
  height: 2px;
}

.overview,
.toolbar {
  border-width: 0;
  border-top: 1px solid rgba(31, 32, 41, 0.08);
  border-bottom: 1px solid rgba(31, 32, 41, 0.08);
  border-radius: 0;
  background: rgba(255, 253, 249, 0.3);
  box-shadow: none;
}

.overview {
  padding-inline: 0;
}

.overview h2 {
  font-size: clamp(30px, 4vw, 56px);
}

.stats-row {
  gap: 10px;
}

.stats-row span,
.profile-stats span {
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.7);
}

.stats-row strong {
  font-family: var(--serif);
  color: var(--accent-strong);
  font-size: 36px;
}

.toolbar {
  padding: 18px 0;
}

.memory-card {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.memory-card:hover {
  transform: translateY(-4px);
  box-shadow: none;
}

.memory-card img {
  border-radius: 8px;
  box-shadow: 0 22px 44px rgba(31, 32, 41, 0.12);
}

.memory-body {
  padding: 16px 2px 0;
}

.memory-note {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.5;
}

.memory-meta {
  align-items: center;
  border-bottom: 1px solid rgba(31, 32, 41, 0.08);
  padding-bottom: 10px;
}

.type-pill {
  min-height: 28px;
  border: 1px solid rgba(185, 132, 8, 0.14);
  background: rgba(244, 239, 228, 0.78);
}

.footprint-panel.map-page,
.profile-hero,
.profile-card,
.auth-panel,
.compose-panel {
  border-color: rgba(185, 132, 8, 0.12);
  background: rgba(255, 253, 249, 0.8);
  box-shadow: 0 24px 70px rgba(31, 32, 41, 0.08);
}

.bottom-nav {
  min-height: 58px;
  border-color: rgba(185, 132, 8, 0.14);
  background: rgba(255, 253, 249, 0.78);
  box-shadow: 0 24px 70px rgba(31, 32, 41, 0.13);
}

.bottom-nav button {
  min-height: 42px;
}

.bottom-nav .nav-add {
  min-height: 48px;
  background: var(--ink);
  box-shadow: 0 14px 30px rgba(31, 32, 41, 0.22);
}

.profile-hero {
  min-height: 360px;
  border: 0;
  background:
    radial-gradient(circle at 76% 28%, rgba(185, 132, 8, 0.16), transparent 24%),
    linear-gradient(135deg, rgba(255, 253, 249, 0.84), rgba(244, 239, 228, 0.62));
}

.profile-card {
  min-height: 260px;
}

/* Film album direction */
:root {
  --bg: #171511;
  --surface: #fff1d7;
  --ink: #f5dfb5;
  --muted: #b9a891;
  --line: rgba(245, 223, 181, 0.14);
  --accent: #d7a64a;
  --accent-strong: #ffd37a;
  --soft: rgba(245, 223, 181, 0.1);
  --sky: rgba(160, 178, 176, 0.3);
  --food: rgba(215, 166, 74, 0.16);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}

html {
  background: #171511;
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 76% 18%, rgba(255, 211, 122, 0.2), transparent 28%),
    radial-gradient(circle at 20% 78%, rgba(215, 166, 74, 0.12), transparent 34%),
    linear-gradient(135deg, #151411 0%, #262018 58%, #0f0f0e 100%);
}

body::before {
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 211, 122, 0.26) 0 1px, transparent 2px),
    radial-gradient(circle at 28% 34%, rgba(255, 211, 122, 0.18) 0 1px, transparent 2px),
    radial-gradient(circle at 56% 22%, rgba(255, 211, 122, 0.24) 0 1px, transparent 2px),
    radial-gradient(circle at 82% 72%, rgba(255, 211, 122, 0.16) 0 1px, transparent 2px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 5px);
  opacity: 0.72;
}

body::after {
  background-image:
    linear-gradient(rgba(255, 241, 215, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 241, 215, 0.018) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(circle at 50% 22%, black, transparent 78%);
}

.topbar {
  border-bottom-color: rgba(245, 223, 181, 0.12);
  background: rgba(23, 21, 17, 0.72);
}

.topbar h1 {
  color: var(--ink);
  text-shadow: 0 18px 40px rgba(215, 166, 74, 0.18);
}

.topbar .eyebrow {
  color: rgba(245, 223, 181, 0.48);
}

.auth-panel,
.spotlight,
.overview,
.footprint-panel,
.toolbar,
.memory-card,
.empty-state,
.compose-panel,
.profile-card,
.profile-hero {
  border-color: rgba(245, 223, 181, 0.12);
  background: rgba(31, 27, 22, 0.64);
  box-shadow: var(--shadow);
}

.auth-panel {
  background:
    radial-gradient(circle at 80% 18%, rgba(255, 211, 122, 0.18), transparent 25%),
    linear-gradient(135deg, rgba(38, 32, 24, 0.94), rgba(20, 19, 17, 0.94));
}

.auth-panel::before {
  border-color: rgba(255, 211, 122, 0.16);
}

.auth-panel::after {
  color: rgba(245, 223, 181, 0.2);
}

.auth-panel > .auth-form {
  border-color: rgba(245, 223, 181, 0.12);
  background: rgba(255, 241, 215, 0.08);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

input,
textarea {
  border-color: rgba(245, 223, 181, 0.14);
  color: var(--ink);
  background: rgba(255, 241, 215, 0.08);
}

input::placeholder,
textarea::placeholder {
  color: rgba(245, 223, 181, 0.48);
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(215, 166, 74, 0.16);
}

.spotlight {
  width: min(100%, 1120px);
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 430px);
  align-items: center;
}

.spotlight::before {
  color: var(--accent);
}

.spotlight-frame {
  order: 2;
  width: min(100%, 430px);
  justify-self: end;
  aspect-ratio: 0.84;
  border: 12px solid #f4dfbd;
  border-bottom-width: 58px;
  border-radius: 6px;
  background: #f4dfbd;
  box-shadow:
    0 34px 80px rgba(0, 0, 0, 0.38),
    -18px 18px 0 rgba(255, 241, 215, 0.06);
  transform: rotate(2deg);
}

.spotlight-frame::after {
  background:
    linear-gradient(180deg, rgba(255, 228, 168, 0.08), rgba(0, 0, 0, 0.18)),
    radial-gradient(circle at 18% 18%, rgba(255, 241, 215, 0.18), transparent 24%);
}

.spotlight-copy {
  order: 1;
  color: var(--ink);
}

.spotlight-copy h2 {
  max-width: 8.8em;
  color: var(--ink);
  text-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

.spotlight-copy p:not(.section-label) {
  color: var(--muted);
}

.spotlight-dots button {
  background: rgba(245, 223, 181, 0.2);
}

.spotlight-dots button.is-active {
  background: var(--accent);
}

.overview,
.toolbar {
  border-color: rgba(245, 223, 181, 0.12);
  background: rgba(255, 241, 215, 0.035);
}

.stats-row span,
.profile-stats span {
  border: 1px solid rgba(245, 223, 181, 0.1);
  background: rgba(255, 241, 215, 0.06);
}

.stats-row strong,
.profile-stats strong {
  color: var(--accent-strong);
}

.segmented button,
.tabs button,
.ghost-button,
.import-button,
.primary-button,
.text-button {
  border-color: rgba(245, 223, 181, 0.13);
  color: var(--ink);
  background: rgba(255, 241, 215, 0.08);
}

.segmented button.is-active,
.tabs button.is-active,
.primary-button {
  border-color: var(--accent);
  color: #171511;
  background: linear-gradient(135deg, #f6d27b, #b98408);
}

.ghost-button,
.import-button,
.text-button {
  color: var(--ink);
  background: rgba(245, 223, 181, 0.1);
}

.bottom-nav {
  border-color: rgba(245, 223, 181, 0.16);
  background: rgba(29, 26, 22, 0.74);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.38);
}

.bottom-nav button {
  color: rgba(245, 223, 181, 0.64);
}

.bottom-nav button.is-active {
  color: #171511;
  background: linear-gradient(135deg, #f6d27b, #b98408);
}

.bottom-nav .nav-add {
  color: #171511;
  background: linear-gradient(135deg, #ffd37a, #b98408);
}

.memory-card img {
  border: 8px solid #f4dfbd;
  border-bottom-width: 34px;
  border-radius: 5px;
  background: #f4dfbd;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.3);
}

.memory-note {
  color: var(--ink);
}

.memory-meta,
.location-line,
.status-text,
.profile-copy,
label,
.field-hint {
  color: var(--muted);
}

.type-pill {
  border-color: rgba(215, 166, 74, 0.22);
  color: var(--accent-strong);
  background: rgba(215, 166, 74, 0.12);
}

.footprint-panel.map-page,
.profile-hero,
.profile-card,
.compose-panel {
  background:
    radial-gradient(circle at 78% 18%, rgba(215, 166, 74, 0.12), transparent 26%),
    rgba(31, 27, 22, 0.66);
}

.china-map,
.province-panel {
  border-color: rgba(245, 223, 181, 0.12);
  background:
    linear-gradient(135deg, rgba(245, 223, 181, 0.08), rgba(139, 101, 7, 0.08)),
    rgba(255, 241, 215, 0.04);
}

.profile-hero {
  background:
    radial-gradient(circle at 76% 28%, rgba(215, 166, 74, 0.18), transparent 24%),
    linear-gradient(135deg, rgba(38, 32, 24, 0.86), rgba(20, 19, 17, 0.7));
}

.profile-card h3 {
  color: var(--ink);
}

.photo-picker {
  border-color: rgba(245, 223, 181, 0.18);
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(245, 223, 181, 0.1), rgba(139, 101, 7, 0.08)),
    rgba(255, 241, 215, 0.04);
}

.photo-picker span {
  background: rgba(23, 21, 17, 0.58);
}

.memory-dialog {
  background: #171511;
}

@media (max-width: 759px) {
  .spotlight {
    grid-template-columns: 1fr;
  }

  .spotlight-frame {
    width: min(74vw, 320px);
    justify-self: center;
  }
}

@media (max-width: 759px) {
  .auth-panel {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 26px;
  }

  .auth-panel::before {
    inset: 14px;
  }

  .auth-panel::after {
    right: 26px;
    top: 24px;
  }

  .auth-panel > .section-label,
  .auth-panel > h2,
  .auth-panel > .auth-form,
  .auth-panel > .status-text {
    grid-column: 1;
  }

  .auth-panel > h2 {
    font-size: clamp(36px, 11vw, 54px);
  }

  .auth-panel > .auth-form {
    padding: 18px;
  }

  .spotlight {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-top: 44px;
  }

  .spotlight-frame {
    order: 1;
    width: min(72vw, 300px);
    justify-self: center;
    aspect-ratio: 4 / 5;
    box-shadow:
      0 18px 48px rgba(31, 32, 41, 0.12),
      0 0 0 10px rgba(255, 253, 249, 0.62);
  }

  .spotlight-copy {
    order: 2;
    padding-top: 8px;
  }

  .spotlight-copy h2 {
    max-width: 9em;
    font-size: clamp(34px, 11vw, 54px);
  }
}

.dialog-body {
  display: grid;
  gap: 14px;
  padding: 16px;
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
}

@media (min-width: 760px) {
  .app-shell {
    padding-inline: 24px;
  }

  .overview {
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .spotlight {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
  }

  .spotlight-frame {
    min-height: 0;
  }

  .toolbar {
    flex-direction: row;
    align-items: end;
  }

  .footprint-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

  .china-map {
    min-height: 460px;
  }

  .profile-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.95fr) minmax(0, 0.75fr);
  }

  .field-grid {
    grid-template-columns: 1fr 220px;
  }

  .location-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .memory-card:first-child {
    grid-column: span 2;
  }
}

/* Film cover login */
body:not(.is-authed) {
  overflow-x: hidden;
}

body:not(.is-authed) .app-shell {
  width: min(100%, 1480px);
  max-width: none;
  padding: 0;
}

body:not(.is-authed) .topbar {
  display: none;
}

body:not(.is-authed) main {
  min-height: 100vh;
}

body:not(.is-authed) .auth-panel {
  min-height: 100vh;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(22px, 4vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  align-items: center;
  gap: clamp(22px, 4vw, 54px);
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(to bottom, rgba(14, 10, 7, 0) 48%, rgba(14, 10, 7, 0.86) 76%, rgba(14, 10, 7, 1) 100%),
    linear-gradient(90deg, rgba(13, 11, 8, 0.02), rgba(13, 11, 8, 0.08) 52%, rgba(13, 11, 8, 0.22) 100%),
    url("assets/film-home-clean.png") center / contain no-repeat,
    #17120d;
  box-shadow: none;
  overflow: hidden;
}

body:not(.is-authed) .auth-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 68% 18%, rgba(255, 218, 151, 0.22), transparent 26%),
    radial-gradient(circle at 18% 78%, rgba(0, 0, 0, 0.24), transparent 34%),
    linear-gradient(to bottom, transparent 46%, rgba(0, 0, 0, 0.9) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.36));
  mix-blend-mode: multiply;
}

body:not(.is-authed) .auth-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.16;
  background:
    linear-gradient(rgba(255, 246, 220, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 246, 220, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
}

body:not(.is-authed) .auth-panel > .section-label,
body:not(.is-authed) .auth-panel > h2 {
  position: relative;
  z-index: 1;
  grid-column: 1;
  max-width: 520px;
  margin-left: clamp(0px, 2vw, 28px);
  color: transparent;
  user-select: none;
}

body:not(.is-authed) .auth-panel > .section-label {
  align-self: end;
}

body:not(.is-authed) .auth-panel > h2 {
  align-self: start;
}

body:not(.is-authed) .auth-form,
body:not(.is-authed) .auth-panel > .status-text {
  position: relative;
  z-index: 2;
  grid-column: 2;
  width: 100%;
  max-width: 318px;
  margin: 0;
  justify-self: end;
}

body:not(.is-authed) .auth-form {
  margin-top: clamp(120px, 16vw, 220px);
  padding: 18px;
  border: 1px solid rgba(255, 222, 164, 0.22);
  border-radius: 24px;
  background: rgba(23, 18, 12, 0.62);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(16px);
}

body:not(.is-authed) .auth-form::before {
  content: "进入当下记";
  display: block;
  margin: 0 0 14px;
  color: #ffe7b2;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.05;
}

body:not(.is-authed) .auth-form label {
  color: rgba(255, 232, 190, 0.78);
}

body:not(.is-authed) .auth-panel > .status-text {
  margin-top: -88px;
  margin-bottom: clamp(38px, 5vw, 72px);
  padding: 0 10px;
  color: rgba(255, 232, 190, 0.68);
  text-align: center;
}

body:not(.is-authed) .auth-actions {
  grid-template-columns: 1fr;
}

body:not(.is-authed) #signUpButton {
  display: none;
}

body:not(.is-authed) #signInButton {
  min-height: 52px;
  border-radius: 999px;
  font-size: 18px;
  background: linear-gradient(135deg, #ffe0a0, #bd810e);
  color: #17120b;
}

body:not(.is-authed) #signInButton::after {
  content: " ->";
}

@media (max-width: 820px) {
  body:not(.is-authed) .auth-panel {
    min-height: 100svh;
    padding: 18px;
    grid-template-columns: 1fr;
    align-content: end;
    background:
      linear-gradient(to bottom, rgba(14, 10, 7, 0) 28%, rgba(14, 10, 7, 0.94) 48%, rgba(14, 10, 7, 1) 100%),
      linear-gradient(180deg, rgba(13, 11, 8, 0.02), rgba(13, 11, 8, 0.12) 46%, rgba(13, 11, 8, 0.92) 100%),
      url("assets/film-home-clean.png") center 18px / contain no-repeat,
      #17120d;
  }

  body:not(.is-authed) .auth-panel > .section-label,
  body:not(.is-authed) .auth-panel > h2 {
    display: none;
  }

  body:not(.is-authed) .auth-form,
  body:not(.is-authed) .auth-panel > .status-text {
    grid-column: 1;
    max-width: none;
  }

  body:not(.is-authed) .auth-form {
    margin-bottom: 0;
    margin-top: min(34vh, 300px);
    padding: 18px;
    border-radius: 22px;
  }

  body:not(.is-authed) .auth-panel > .status-text {
    margin: 0;
  }
}

/* Film atlas map */
body.is-authed .footprint-panel.map-page {
  position: relative;
  min-height: calc(100vh - 150px);
  padding: clamp(18px, 4vw, 44px);
  border: 1px solid rgba(255, 226, 170, 0.12);
  border-radius: 26px;
  background:
    radial-gradient(circle at 20% 18%, rgba(214, 154, 53, 0.18), transparent 28%),
    radial-gradient(circle at 84% 72%, rgba(95, 69, 36, 0.32), transparent 34%),
    linear-gradient(135deg, rgba(30, 23, 15, 0.96), rgba(13, 10, 7, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 237, 198, 0.1),
    0 34px 100px rgba(0, 0, 0, 0.34);
  overflow: hidden;
}

body.is-authed .footprint-panel.map-page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.32;
  background:
    linear-gradient(rgba(255, 238, 202, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 238, 202, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 50% 0%, rgba(255, 224, 155, 0.18), transparent 36%);
  background-size: 30px 30px, 30px 30px, auto;
}

body.is-authed .footprint-panel.map-page::after {
  content: "";
  position: absolute;
  inset: auto 5% -18% 8%;
  height: 34%;
  pointer-events: none;
  background: radial-gradient(ellipse, rgba(215, 160, 67, 0.17), transparent 62%);
  filter: blur(8px);
}

body.is-authed .footprint-panel.map-page > * {
  position: relative;
  z-index: 1;
}

body.is-authed .footprint-head {
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 226, 170, 0.12);
}

body.is-authed .footprint-head .section-label {
  color: #d6a64d;
}

body.is-authed .footprint-head h2 {
  max-width: 15em;
  color: #ffe7b7;
  font-size: clamp(30px, 5vw, 64px);
  line-height: 1.08;
}

body.is-authed .map-actions .status-text {
  max-width: 280px;
  color: rgba(255, 233, 196, 0.64);
  text-align: right;
}

body.is-authed .map-back-button {
  border-color: rgba(255, 226, 170, 0.18);
  color: #ffe7b7;
  background: rgba(255, 241, 213, 0.08);
  backdrop-filter: blur(14px);
}

body.is-authed .footprint-layout {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: clamp(16px, 2.4vw, 28px);
  align-items: stretch;
}

body.is-authed .china-map {
  position: relative;
  min-height: min(58vw, 620px);
  border: 1px solid rgba(255, 226, 170, 0.16);
  border-radius: 24px;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 248, 225, 0.2), transparent 28%),
    radial-gradient(circle at 70% 80%, rgba(206, 145, 47, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(255, 242, 205, 0.94), rgba(197, 174, 128, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -42px 90px rgba(85, 52, 24, 0.16),
    0 24px 70px rgba(0, 0, 0, 0.34);
  overflow: hidden;
}

body.is-authed .china-map::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(88, 56, 25, 0.16);
  border-radius: 18px;
  pointer-events: none;
}

body.is-authed .china-map::after {
  content: "MEMORY ATLAS";
  position: absolute;
  right: 26px;
  bottom: 18px;
  color: rgba(82, 53, 25, 0.38);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 900;
}

body.is-authed .china-map svg {
  max-height: 610px;
  padding: clamp(16px, 3vw, 34px);
  filter:
    drop-shadow(0 18px 24px rgba(63, 42, 18, 0.2))
    drop-shadow(0 2px 0 rgba(255, 255, 255, 0.38));
}

body.is-authed .province-shape {
  fill: rgba(236, 226, 199, 0.84);
  stroke: rgba(94, 69, 36, 0.36);
  stroke-width: 1.15;
}

body.is-authed .city-shape {
  fill: rgba(232, 222, 196, 0.78);
  stroke: rgba(83, 57, 27, 0.32);
  stroke-width: 1.25;
}

body.is-authed .map-shape.is-lit {
  fill: #cf941f;
  stroke: rgba(47, 28, 12, 0.72);
  filter:
    drop-shadow(0 0 12px rgba(211, 147, 32, 0.5))
    drop-shadow(0 10px 12px rgba(64, 37, 16, 0.18));
}

body.is-authed .city-shape.is-lit {
  fill: #f0bd49;
}

body.is-authed .map-shape.is-openable:hover,
body.is-authed .map-shape.is-openable:focus {
  fill: #f2c65d;
  stroke: rgba(37, 24, 12, 0.78);
  filter:
    drop-shadow(0 0 16px rgba(245, 190, 75, 0.58))
    drop-shadow(0 12px 18px rgba(49, 31, 16, 0.22));
}

body.is-authed .province-shape.is-selected,
body.is-authed .city-shape.is-lit:focus,
body.is-authed .city-shape.is-lit:hover {
  fill: #f4c454;
  stroke: #28190d;
  stroke-width: 1.8;
}

body.is-authed .city-label {
  fill: rgba(50, 34, 17, 0.78);
  stroke: rgba(255, 241, 205, 0.92);
  stroke-width: 5px;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 19px;
  font-weight: 900;
}

body.is-authed .city-label.is-lit {
  fill: #211306;
  stroke: rgba(255, 230, 164, 0.95);
  font-size: 23px;
}

body.is-authed .province-panel {
  min-height: 100%;
  padding: 22px;
  border: 1px solid rgba(255, 226, 170, 0.14);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 239, 200, 0.1), rgba(255, 239, 200, 0.04)),
    rgba(19, 14, 9, 0.7);
  box-shadow:
    inset 0 1px 0 rgba(255, 238, 200, 0.1),
    0 22px 60px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
}

body.is-authed #provinceTitle {
  color: #f0c36a;
}

body.is-authed .province-panel .status-text {
  color: rgba(255, 232, 190, 0.62);
  line-height: 1.8;
}

body.is-authed .city-list {
  gap: 12px;
}

body.is-authed .city-chip {
  min-height: 58px;
  border: 1px solid rgba(255, 226, 170, 0.16);
  border-radius: 18px;
  padding: 0 14px 0 16px;
  color: #ffe6ad;
  background:
    linear-gradient(135deg, rgba(255, 239, 200, 0.14), rgba(255, 239, 200, 0.05)),
    rgba(255, 246, 220, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.is-authed .city-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(240, 190, 90, 0.42);
  background: rgba(203, 142, 31, 0.16);
}

body.is-authed .city-chip strong {
  min-width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #201407;
  background: linear-gradient(135deg, #ffe1a0, #c88b16);
  box-shadow: 0 8px 20px rgba(189, 129, 14, 0.28);
}

@media (max-width: 820px) {
  body.is-authed .footprint-panel.map-page {
    padding: 18px;
    border-radius: 22px;
  }

  body.is-authed .footprint-head {
    display: grid;
    align-items: start;
  }

  body.is-authed .footprint-head h2 {
    font-size: clamp(28px, 10vw, 44px);
  }

  body.is-authed .map-actions {
    justify-items: start;
  }

  body.is-authed .map-actions .status-text {
    text-align: left;
  }

  body.is-authed .footprint-layout {
    grid-template-columns: 1fr;
  }

  body.is-authed .china-map {
    min-height: 360px;
    border-radius: 20px;
  }

  body.is-authed .china-map svg {
    padding: 16px;
  }

  body.is-authed .province-panel {
    min-height: auto;
    border-radius: 20px;
  }
}
