@font-face {
  font-family: 'Anton';
  src: url('/fonts/anton-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Space Mono';
  src: url('/fonts/space-mono-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Space Mono';
  src: url('/fonts/space-mono-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0c0c0a;
  --ink-2: #11110d;
  --ink-3: #181812;
  --bone: #ede7da;
  --bone-2: #f6f1e5;
  --paper: #f3eddf;
  --acid: #d8ff3e;
  --orange: #ff4d17;
  --muted: #938d7d;
  --muted-dark: #6b6658;
  --line: rgba(237, 231, 218, 0.13);
  --line-strong: rgba(237, 231, 218, 0.24);
  --line-dark: rgba(12, 12, 10, 0.16);
  --font-display: 'Anton', 'Arial Narrow', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'Space Mono', 'Courier New', monospace;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --z-header: 1000;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

img {
  max-width: 100%;
  display: block;
}

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

button,
input,
select,
textarea {
  font: inherit;
  border-radius: 0;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4,
p,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

::selection {
  background: var(--acid);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 3px;
}

.page-paper :focus-visible {
  outline-color: var(--ink);
}

::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #3a3a30;
  border: 2px solid var(--ink);
}

.page-paper ::-webkit-scrollbar-thumb {
  background: #b6ae9b;
  border-color: var(--bone);
}

.eyebrow {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow span {
  color: var(--orange);
}

.page-paper .eyebrow {
  color: var(--muted-dark);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.section-head h2 {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.section-head h2 span {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.section-head-lg h2 {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 400;
  letter-spacing: 0.025em;
  line-height: 1;
}

.section-sub {
  margin: 8px 0 18px;
  max-width: 620px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}

.page-paper .section-sub {
  color: var(--muted-dark);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px 17px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--bone);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.btn-acid {
  background: var(--acid);
  border-color: var(--acid);
  color: var(--ink);
}

.btn-acid:hover {
  background: var(--bone);
  border-color: var(--bone);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--orange);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--bone);
}

.btn-ghost:hover {
  border-color: var(--acid);
  color: var(--acid);
}

.page-paper .btn-ghost {
  border-color: rgba(12, 12, 10, 0.28);
  color: var(--ink);
}

.page-paper .btn-ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--acid);
}

.btn-sm {
  padding: 8px 11px;
  font-size: 8px;
}

.btn-lg {
  padding: 16px 24px;
  font-size: 10px;
}

.btn-block {
  width: 100%;
}

.link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.link-btn:hover {
  color: var(--orange);
}

.site-head {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  display: flex;
  align-items: center;
  height: 72px;
  padding: 0 26px;
  border-bottom: 1px solid var(--line);
  background: rgba(12, 12, 10, 0.94);
  color: var(--bone);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-stamp {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--acid);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1;
  letter-spacing: 0.01em;
  transform: rotate(-3deg);
}

.brand-type {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-type strong {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 400;
  letter-spacing: 0.1em;
}

.brand-type small {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.13em;
  color: var(--muted);
}

.site-nav {
  display: flex;
  gap: 26px;
  margin-left: 52px;
}

.nav-link {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 7px 0;
}

.nav-cn {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.nav-en {
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--acid);
  transition: right 0.18s;
}

.nav-link:hover::after,
.nav-link.is-active::after {
  right: 0;
}

.nav-link.is-active .nav-cn {
  color: var(--acid);
}

.head-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.head-login {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.head-login span {
  color: var(--acid);
}

.head-login:hover {
  color: var(--acid);
}

.head-user {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 160px;
  font-size: 11px;
  font-weight: 800;
}

.head-user-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.head-admin {
  padding: 5px 7px;
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.head-admin:hover {
  border-color: var(--acid);
  color: var(--acid);
}

.head-cta {
  padding: 9px 12px;
  font-size: 8px;
}

.head-logout {
  margin: 0;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 38px;
  height: 38px;
  margin-left: 12px;
  padding: 8px;
  border: 1px solid var(--line-strong);
  background: none;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--bone);
  transition: transform 0.2s;
}

.menu-toggle[aria-expanded='true'] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-toggle[aria-expanded='true'] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 72px 0 0;
  z-index: 990;
  display: flex;
  flex-direction: column;
  padding: 18px 26px 40px;
  overflow-y: auto;
  background: var(--ink);
  border-top: 1px solid var(--line);
}

.mobile-menu a,
.mobile-menu button {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 16px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  color: var(--bone);
  text-align: left;
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.mobile-menu a span,
.mobile-menu button span {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.mobile-menu form {
  margin: 0;
}

.avatar {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--ink-3);
  color: var(--acid);
  font-size: 12px;
  font-weight: 900;
  overflow: hidden;
}

.avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-sm {
  width: 27px;
  height: 27px;
  font-size: 10px;
}

.avatar-xs {
  width: 21px;
  height: 21px;
  font-size: 8px;
}

.site-foot {
  position: relative;
  z-index: 2;
  padding: 48px 28px 24px;
  background: #080806;
  border-top: 1px solid var(--line);
  color: var(--bone);
}

.foot-main {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 32px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

.foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.foot-brand .brand-stamp {
  width: 40px;
  height: 40px;
  font-size: 19px;
}

.foot-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.1em;
}

.foot-brand small {
  display: block;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.11em;
  color: var(--muted);
}

.foot-line {
  max-width: 430px;
  color: #9f998a;
  font-size: 12px;
  line-height: 1.7;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  justify-content: flex-end;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.foot-links a:hover {
  color: var(--acid);
}

.foot-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  max-width: 1200px;
  margin: 36px auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.05em;
  color: #6f6b5e;
}

.flash {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 3000;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(520px, calc(100vw - 32px));
  padding: 12px 14px;
  border: 1px solid var(--acid);
  background: var(--ink);
  color: var(--bone);
  box-shadow: 6px 6px 0 rgba(255, 77, 23, 0.85);
  transform: translateX(-50%);
  animation: flash-in 0.25s ease-out;
}

.flash-error {
  border-color: var(--orange);
  box-shadow: 6px 6px 0 rgba(216, 255, 62, 0.8);
}

.flash.is-leaving {
  animation: flash-out 0.2s ease-in forwards;
}

.flash-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  background: var(--acid);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.flash-error .flash-mark {
  background: var(--orange);
}

.flash-text {
  font-size: 12px;
  line-height: 1.5;
}

.flash-close {
  flex: 0 0 auto;
  margin-left: 6px;
  padding: 0 3px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 17px;
  line-height: 1;
}

.flash-close:hover {
  color: var(--bone);
}

@keyframes flash-in {
  from {
    opacity: 0;
    transform: translate(-50%, 12px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes flash-out {
  to {
    opacity: 0;
    transform: translate(-50%, 8px);
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.field label {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #4a463b;
}

.field label b {
  color: var(--orange);
}

.field label small {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted-dark);
}

.field small {
  font-size: 10px;
  line-height: 1.55;
  color: #777162;
}

.field small a {
  border-bottom: 1px solid currentColor;
}

.field small a:hover {
  color: var(--orange);
}

.field input[type='text'],
.field input[type='tel'],
.field input[type='number'],
.field input[type='url'],
.field input[type='search'],
.field select,
.field textarea,
.auth-form input,
.profile-form input,
.profile-form select,
.profile-form textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid rgba(12, 12, 10, 0.22);
  background: #fcf8ed;
  color: var(--ink);
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.auth-form input:focus,
.profile-form input:focus,
.profile-form select:focus,
.profile-form textarea:focus {
  border-color: var(--ink);
  background: #fffdf6;
  box-shadow: 0 0 0 3px rgba(216, 255, 62, 0.65);
}

.field input::placeholder,
.field textarea::placeholder,
.auth-form input::placeholder {
  color: #a39b88;
}

.field textarea {
  resize: vertical;
  min-height: 96px;
  line-height: 1.6;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field-narrow {
  max-width: 120px;
}

.field-fine {
  display: block;
  margin-top: 9px;
  padding-left: 10px;
  border-left: 2px solid var(--orange);
  font-size: 10px;
  line-height: 1.6;
  color: #6c6657;
}

.select-wrap {
  position: relative;
  display: block;
  min-width: 0;
}

.select-wrap select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 28px;
  cursor: pointer;
}

.select-arrow {
  position: absolute;
  top: 50%;
  right: 9px;
  transform: translateY(-50%);
  pointer-events: none;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted-dark);
}

.form-alert {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0 0 18px;
  padding: 11px 13px;
  border: 1px solid var(--orange);
  border-left-width: 4px;
  background: #ffece4;
  color: #5f1c07;
  font-size: 12px;
  line-height: 1.6;
}

.form-alert span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 1px;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
}

.page-paper {
  background: var(--bone);
  color: var(--ink);
}

.page-paper::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: radial-gradient(rgba(12, 12, 10, 0.85) 0.55px, transparent 0.55px);
  background-size: 4px 4px;
}

.page-paper > * {
  position: relative;
  z-index: 1;
}

.page-paper .site-foot {
  z-index: 2;
}

.empty {
  padding: 28px 18px;
  border: 1px dashed rgba(12, 12, 10, 0.3);
  background: rgba(255, 253, 246, 0.45);
  text-align: center;
}

.page-map .empty,
.map-panel .empty {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
}

.empty-mark {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--orange);
}

.empty h3 {
  margin: 0 0 5px;
  font-size: 14px;
  font-weight: 900;
}

.empty p {
  max-width: 320px;
  margin: 0 auto 14px;
  font-size: 11px;
  line-height: 1.65;
  color: var(--muted-dark);
}

.page-map .empty p,
.map-panel .empty p {
  color: var(--muted);
}

.stamp {
  display: inline-block;
  padding: 3px 5px;
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}

.stamp-pending {
  background: var(--orange);
  color: #fff;
}

.stamp-video {
  border: 1px solid var(--line-dark);
  color: var(--muted-dark);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 7px;
  border: 1px solid rgba(12, 12, 10, 0.2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.04em;
  line-height: 1;
  color: #454133;
}

.tag-diff {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bone);
}

.tag-diff b {
  color: var(--acid);
}

.tag-risk {
  border-color: rgba(255, 77, 23, 0.55);
  background: rgba(255, 77, 23, 0.08);
  color: #a52d09;
}

.code-tag {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.status-tag {
  display: inline-block;
  padding: 3px 6px;
  font-family: var(--font-mono);
  font-size: 7px;
  line-height: 1;
  letter-spacing: 0.06em;
  border: 1px solid currentColor;
}

.status-open,
.status-guarded,
.status-construction,
.status-flooded,
.status-removed {
  color: var(--muted-dark);
}

.status-open {
  color: #3f5b00;
  border-color: #7a9a1e;
  background: rgba(216, 255, 62, 0.3);
}

.status-guarded {
  color: #9b2d0a;
  border-color: var(--orange);
  background: rgba(255, 77, 23, 0.1);
}

.status-construction {
  color: #7a5a00;
  border-color: #c79b1a;
  background: rgba(240, 197, 62, 0.15);
}

.status-flooded {
  color: #1d5a80;
  border-color: #4f9ec4;
  background: rgba(79, 158, 196, 0.12);
}

.status-removed {
  color: #625e55;
  border-color: #8f8a7b;
  background: rgba(143, 138, 123, 0.12);
}

.page-map .status-open,
.map-panel .status-open,
.page-map .status-guarded,
.map-panel .status-guarded,
.page-map .status-construction,
.map-panel .status-construction,
.page-map .status-flooded,
.map-panel .status-flooded,
.page-map .status-removed,
.map-panel .status-removed {
  border-color: currentColor;
}

.map-app {
  display: grid;
  grid-template-columns: 430px minmax(0, 1fr);
  height: 100dvh;
  overflow: hidden;
  background: var(--ink);
}

.map-panel {
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-right: 1px solid var(--line);
  background: var(--ink);
}

.panel-head {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(12, 12, 10, 0.95);
  backdrop-filter: blur(12px);
}

.brand-panel .brand-stamp {
  width: 31px;
  height: 31px;
  font-size: 14px;
}

.brand-panel .brand-type strong {
  font-size: 18px;
}

.brand-panel .brand-type small {
  font-size: 6px;
}

.panel-account {
  display: flex;
  align-items: center;
  gap: 9px;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  border: 1px solid rgba(216, 255, 62, 0.35);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.06em;
  color: var(--acid);
}

.live-pill i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--acid);
  animation: blink 1.8s infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.25;
  }
}

.panel-user {
  display: flex;
  align-items: center;
  gap: 5px;
  max-width: 110px;
  overflow: hidden;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.panel-login {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  color: var(--acid);
}

.panel-scroll {
  padding-bottom: 8px;
}

.panel-hero {
  position: relative;
  overflow: hidden;
  padding: 32px 24px 26px;
  border-bottom: 1px solid var(--line);
}

.panel-hero::after {
  content: 'SX';
  position: absolute;
  right: -14px;
  bottom: -30px;
  font-family: var(--font-display);
  font-size: 180px;
  line-height: 1;
  color: rgba(237, 231, 218, 0.035);
  pointer-events: none;
}

.panel-hero h1 {
  position: relative;
  z-index: 1;
  margin: 0 0 15px;
  font-family: var(--font-display);
  font-size: 58px;
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.01em;
}

.panel-hero h1 em {
  font-style: normal;
  color: var(--acid);
}

.panel-lede {
  position: relative;
  z-index: 1;
  max-width: 330px;
  color: #b7b1a1;
  font-size: 12px;
  line-height: 1.7;
}

.hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 19px 0 0;
}

.panel-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 22px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.panel-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 400;
  line-height: 1;
  color: var(--acid);
}

.panel-stats span {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 6px;
  letter-spacing: 0.06em;
  line-height: 1.3;
  color: var(--muted);
}

.panel-filter {
  padding: 18px 20px 20px;
  border-bottom: 1px solid var(--line);
}

.filter-form {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-top: 12px;
}

.search-box {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line-strong);
  background: var(--ink-2);
}

.search-glyph {
  display: grid;
  place-items: center;
  width: 34px;
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 15px;
}

.search-box input {
  width: 100%;
  min-width: 0;
  flex: 1;
  padding: 9px 0;
  border: 0;
  background: transparent;
  color: var(--bone);
  font-size: 11px;
  outline: none;
}

.search-box input::placeholder {
  color: #716d60;
}

.search-btn {
  flex: 0 0 auto;
  padding: 0 13px;
  border: 0;
  background: var(--acid);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.filter-label {
  flex: 0 0 28px;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  color: #7d7869;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.chip {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chip span {
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid var(--line);
  color: #aba595;
  font-size: 9px;
  line-height: 1.25;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}

.chip input:checked + span {
  border-color: var(--acid);
  background: var(--acid);
  color: var(--ink);
  font-weight: 800;
}

.filter-row .select-wrap {
  flex: 1 1 100px;
}

.filter-row .select-wide {
  flex: 1 1 110px;
}

.filter-row select {
  width: 100%;
  padding: 7px 24px 7px 8px;
  border: 1px solid var(--line);
  background: var(--ink-2);
  color: #c9c3b4;
  font-size: 9px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.filter-row select:focus {
  border-color: var(--acid);
}

.filter-row .select-arrow {
  color: #777264;
}

.check-chip {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.check-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.check-chip span {
  display: inline-block;
  padding: 4px 7px;
  border: 1px solid var(--line);
  color: #aaa494;
  font-size: 9px;
  line-height: 1.3;
}

.check-chip input:checked + span {
  border-color: var(--acid);
  background: rgba(216, 255, 62, 0.14);
  color: var(--acid);
}

.filter-submit {
  display: none;
}

.clear-link {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.04em;
  color: var(--orange);
}

.clear-link:hover {
  color: var(--acid);
}

.panel-results {
  padding: 20px 20px 10px;
}

.list-order {
  font-family: var(--font-mono);
  font-size: 7px;
  color: #716c5f;
}

.spot-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 12px;
}

.spot-card {
  display: grid;
  grid-template-columns: 106px minmax(0, 1fr);
  min-height: 106px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #12120e;
  color: var(--bone);
  transition: border-color 0.15s, transform 0.15s, background 0.15s;
}

.spot-card:hover {
  border-color: rgba(216, 255, 62, 0.55);
  background: #17170f;
  transform: translateX(2px);
}

.spot-card.is-active {
  border-color: var(--acid);
  box-shadow: inset 3px 0 0 var(--acid);
}

.spot-cover {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background: #191914;
}

.spot-cover > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: transform 0.3s;
}

.spot-card:hover .spot-cover > img {
  transform: scale(1.04);
}

.spot-status {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  padding: 2px 4px;
  border: 0;
  background: rgba(12, 12, 10, 0.82);
  font-family: var(--font-mono);
  font-size: 6px;
  line-height: 1.2;
  letter-spacing: 0.03em;
  color: var(--bone);
}

.spot-status.status-open {
  color: var(--acid);
}

.spot-status.status-guarded {
  color: #ff8b64;
}

.spot-status.status-construction {
  color: #f5c542;
}

.spot-status.status-flooded {
  color: #7fc6e8;
}

.spot-status.status-removed {
  color: #a9a394;
}

.spot-diff {
  position: absolute;
  right: 6px;
  bottom: 6px;
  z-index: 2;
  display: flex;
  gap: 2px;
  padding: 3px 4px;
  background: rgba(12, 12, 10, 0.78);
}

.spot-diff i {
  width: 3px;
  height: 8px;
  background: rgba(237, 231, 218, 0.22);
}

.spot-diff i.on {
  background: var(--acid);
}

.seed-flag,
.pending-flag {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  padding: 2px 4px;
  background: rgba(12, 12, 10, 0.82);
  font-family: var(--font-mono);
  font-size: 6px;
  line-height: 1.2;
  color: #b9b3a4;
}

.seed-flag {
  color: var(--acid);
}

.pending-flag {
  color: var(--orange);
}

.spot-card-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 10px 11px 9px;
}

.spot-card-top {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 7px;
  line-height: 1.2;
  color: var(--muted);
}

.spot-index {
  color: var(--orange);
}

.spot-place {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spot-code {
  margin-left: auto;
  flex: 0 0 auto;
  color: #6e695c;
}

.spot-name {
  display: -webkit-box;
  overflow: hidden;
  margin: 6px 0 4px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: var(--bone);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.spot-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 7px;
  line-height: 1.4;
  color: #8d8778;
}

.spot-line .dot {
  color: #4c493f;
}

.spot-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: auto;
  padding-top: 7px;
  border-top: 1px solid rgba(237, 231, 218, 0.08);
  font-family: var(--font-mono);
  font-size: 6px;
  line-height: 1.3;
  color: #777264;
}

.spot-count {
  color: #a8a292;
  white-space: nowrap;
}

.spot-count b {
  color: var(--acid);
}

.art-cover {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background-color: #171711;
  background-image:
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.06), transparent 42%),
    linear-gradient(140deg, #1d1d15 0%, #10100c 100%);
  color: var(--spot-color, var(--acid));
}

.art-grid {
  position: absolute;
  inset: 0;
  opacity: 0.38;
  background-image:
    linear-gradient(rgba(237, 231, 218, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(237, 231, 218, 0.09) 1px, transparent 1px);
  background-size: 13px 13px;
  transform: skewY(-8deg) scale(1.3);
}

.art-glyph {
  position: absolute;
  right: 4%;
  bottom: -11%;
  font-size: 64px;
  font-weight: 900;
  line-height: 1;
  color: var(--spot-color, var(--acid));
  opacity: 0.9;
  transform: rotate(-7deg);
  text-shadow: 2px 2px 0 rgba(12, 12, 10, 0.8);
}

.art-word {
  position: absolute;
  top: 8px;
  left: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.09em;
  color: var(--spot-color, var(--acid));
  opacity: 0.65;
}

.art-code {
  position: absolute;
  left: 8px;
  bottom: 7px;
  font-family: var(--font-mono);
  font-size: 6px;
  line-height: 1;
  letter-spacing: 0.05em;
  color: rgba(237, 231, 218, 0.45);
}

.art-note {
  position: absolute;
  top: 8px;
  right: 8px;
  max-width: 64px;
  font-family: var(--font-mono);
  font-size: 5px;
  line-height: 1.4;
  text-align: right;
  color: rgba(237, 231, 218, 0.36);
}

.art-stairs {
  background-image:
    repeating-linear-gradient(135deg, transparent 0 13px, rgba(237, 231, 218, 0.075) 13px 15px),
    linear-gradient(140deg, #202018 0%, #10100c 100%);
}

.art-ledge {
  background-image:
    repeating-linear-gradient(90deg, transparent 0 22px, rgba(237, 231, 218, 0.06) 22px 24px),
    linear-gradient(160deg, #1c1c15 0%, #0f0f0b 100%);
}

.art-rail {
  background-image:
    repeating-linear-gradient(74deg, transparent 0 16px, rgba(237, 231, 218, 0.08) 16px 17px),
    linear-gradient(120deg, #1c1c16 0%, #10100c 100%);
}

.art-bank {
  background-image:
    linear-gradient(155deg, transparent 42%, rgba(237, 231, 218, 0.08) 42% 44%, transparent 44%),
    linear-gradient(140deg, #202018 0%, #10100c 100%);
}

.art-bowl {
  background-image:
    radial-gradient(ellipse at 50% 115%, transparent 34%, rgba(237, 231, 218, 0.08) 35% 37%, transparent 38%),
    radial-gradient(ellipse at 50% 125%, transparent 48%, rgba(237, 231, 218, 0.06) 49% 51%, transparent 52%),
    linear-gradient(140deg, #1d1d16 0%, #0e0e0a 100%);
}

.art-flat {
  background-image:
    repeating-linear-gradient(0deg, transparent 0 18px, rgba(237, 231, 218, 0.06) 18px 19px),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(237, 231, 218, 0.06) 18px 19px),
    linear-gradient(140deg, #1b1b14 0%, #10100c 100%);
}

.art-hill {
  background-image:
    repeating-radial-gradient(circle at 110% 110%, transparent 0 18px, rgba(237, 231, 218, 0.07) 18px 20px),
    linear-gradient(140deg, #1d1d15 0%, #0f0f0b 100%);
}

.art-gap {
  background-image:
    linear-gradient(102deg, transparent 44%, rgba(12, 12, 10, 0.9) 44% 56%, transparent 56%),
    repeating-linear-gradient(90deg, rgba(237, 231, 218, 0.05) 0 1px, transparent 1px 17px),
    linear-gradient(140deg, #22221a 0%, #10100c 100%);
}

.art-large .art-glyph {
  right: 3%;
  bottom: -8%;
  font-size: 150px;
  opacity: 0.95;
}

.art-large .art-word {
  top: 14px;
  left: 14px;
  font-size: 28px;
}

.art-large .art-code {
  left: 14px;
  bottom: 12px;
  font-size: 8px;
}

.art-large .art-grid {
  background-size: 24px 24px;
}

.art-large .art-note {
  top: 14px;
  right: 14px;
  max-width: 110px;
  font-size: 7px;
}

.panel-feed {
  padding: 21px 20px 20px;
  border-top: 1px solid var(--line);
}

.feed-list {
  margin-top: 11px;
}

.feed-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(237, 231, 218, 0.08);
}

.feed-item:last-child {
  border-bottom: 0;
}

.feed-main {
  flex: 1;
  min-width: 0;
  color: #ada797;
  font-size: 9px;
  line-height: 1.5;
}

.feed-main strong {
  color: var(--bone);
}

.feed-main b {
  color: #d7d1c2;
  font-weight: 700;
}

.feed-main em {
  color: var(--acid);
  font-style: normal;
}

.feed-time {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 7px;
  color: #716c5f;
  white-space: nowrap;
}

.feed-empty {
  margin-top: 10px;
  font-size: 10px;
  color: var(--muted);
}

.panel-foot {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 20px 18px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 6px;
  line-height: 1.5;
  letter-spacing: 0.03em;
  color: #625e53;
}

.panel-foot a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.panel-foot a:hover {
  color: var(--acid);
}

.map-stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #090907;
}

.map-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #090907;
}

.map-mobile-head {
  display: none;
}

.map-tag {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 650;
  padding-left: 12px;
  border-left: 2px solid var(--acid);
  pointer-events: none;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.8);
}

.map-tag-en {
  display: block;
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 0.9;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.map-tag-cn {
  display: block;
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.15em;
  color: #c0baab;
}

.map-tag-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 11px;
  padding: 3px 6px;
  background: rgba(12, 12, 10, 0.7);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 7px;
  color: var(--acid);
}

.map-tag-live i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--acid);
}

.map-tools {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 650;
  display: flex;
  gap: 5px;
}

.map-tool {
  padding: 8px 10px;
  border: 1px solid rgba(237, 231, 218, 0.25);
  background: rgba(12, 12, 10, 0.82);
  color: var(--bone);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.05em;
  backdrop-filter: blur(8px);
}

.map-tool:hover {
  border-color: var(--acid);
  color: var(--acid);
}

.map-zoom {
  position: absolute;
  top: 64px;
  right: 22px;
  z-index: 650;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(237, 231, 218, 0.25);
  background: rgba(12, 12, 10, 0.82);
  backdrop-filter: blur(8px);
}

.map-zoom button {
  width: 33px;
  height: 31px;
  border: 0;
  border-bottom: 1px solid rgba(237, 231, 218, 0.16);
  background: none;
  color: var(--bone);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1;
}

.map-zoom button:last-child {
  border-bottom: 0;
}

.map-zoom button:hover {
  background: var(--acid);
  color: var(--ink);
}

.map-legend {
  position: absolute;
  bottom: 46px;
  left: 22px;
  z-index: 650;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 250px;
  padding: 10px 12px;
  border: 1px solid rgba(237, 231, 218, 0.2);
  background: rgba(12, 12, 10, 0.78);
  font-family: var(--font-mono);
  font-size: 7px;
  line-height: 1.4;
  color: #aaa494;
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.legend-title {
  color: var(--bone);
  font-size: 7px;
  letter-spacing: 0.08em;
}

.legend-dots {
  display: flex;
  gap: 3px;
}

.legend-dots i {
  display: block;
  width: 9px;
  height: 9px;
  border: 1px solid var(--acid);
  border-radius: 50%;
}

.legend-dots .d1 {
  background: rgba(216, 255, 62, 0.1);
}

.legend-dots .d2 {
  background: rgba(216, 255, 62, 0.25);
}

.legend-dots .d3 {
  background: rgba(216, 255, 62, 0.45);
  border-color: #b7d92f;
}

.legend-dots .d4 {
  background: rgba(216, 255, 62, 0.7);
  border-color: #ffd23e;
}

.legend-dots .d5 {
  background: var(--orange);
  border-color: var(--orange);
}

.legend-scale {
  color: #8b8678;
}

.legend-types {
  padding-top: 3px;
  border-top: 1px solid rgba(237, 231, 218, 0.11);
  color: #7d786a;
}

.map-coords {
  position: absolute;
  left: 50%;
  bottom: 11px;
  z-index: 650;
  transform: translateX(-50%);
  padding: 3px 7px;
  background: rgba(12, 12, 10, 0.72);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.05em;
  color: #b6b0a1;
  white-space: nowrap;
  pointer-events: none;
}

.map-add {
  position: absolute;
  right: 22px;
  bottom: 46px;
  z-index: 650;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: var(--acid);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.05em;
  box-shadow: 4px 4px 0 var(--orange);
}

.map-add span {
  font-size: 13px;
  line-height: 1;
}

.map-add:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--orange);
}

.map-disclaimer {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 640;
  padding: 5px 10px;
  background: rgba(12, 12, 10, 0.86);
  border-top: 1px solid rgba(237, 231, 218, 0.1);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.03em;
  color: #8e897b;
  text-align: center;
  pointer-events: none;
}

.map-toast {
  position: absolute;
  top: 110px;
  left: 50%;
  z-index: 700;
  transform: translate(-50%, -8px);
  padding: 8px 12px;
  border: 1px solid var(--acid);
  background: rgba(12, 12, 10, 0.94);
  color: var(--bone);
  font-family: var(--font-mono);
  font-size: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}

.map-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.leaflet-container {
  background: #090907;
  font-family: var(--font-mono);
}

.map-canvas .leaflet-tile-pane,
.pick-map .leaflet-tile-pane {
  filter: grayscale(1) invert(0.9) brightness(1.05);
}

.leaflet-control-attribution {
  background: rgba(12, 12, 10, 0.72) !important;
  color: #7e796b !important;
  font-size: 7px !important;
  line-height: 1.4 !important;
  padding: 2px 5px !important;
}

.leaflet-control-attribution a {
  color: #a7a191 !important;
}

.leaflet-popup-content-wrapper {
  border: 1px solid #4a4a3e;
  border-radius: 0;
  background: var(--ink-2);
  color: var(--bone);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
}

.leaflet-popup-content {
  width: 230px !important;
  margin: 12px;
  font-family: var(--font-body);
}

.leaflet-popup-tip {
  background: var(--ink-2);
  border-right: 1px solid #4a4a3e;
  border-bottom: 1px solid #4a4a3e;
  box-shadow: none;
}

.leaflet-popup-close-button {
  color: #8e897b !important;
  font-size: 17px !important;
  padding: 5px 7px 0 0 !important;
}

.leaflet-popup-close-button:hover {
  color: var(--acid) !important;
}

.map-pop-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}

.map-pop-code {
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.map-pop-status {
  padding: 2px 4px;
  border: 1px solid currentColor;
  font-family: var(--font-mono);
  font-size: 6px;
  line-height: 1.2;
}

.map-pop-status.status-open {
  color: var(--acid);
}

.map-pop-status.status-guarded {
  color: #ff8b64;
}

.map-pop-status.status-construction {
  color: #f5c542;
}

.map-pop-status.status-flooded {
  color: #7fc6e8;
}

.map-pop-name {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
  color: var(--bone);
}

.map-pop-meta {
  display: block;
  font-size: 9px;
  line-height: 1.55;
  color: #9a9485;
}

.map-pop-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(237, 231, 218, 0.12);
  font-family: var(--font-mono);
  font-size: 7px;
  color: #8b8678;
}

.map-pop-foot a {
  color: var(--acid);
  font-weight: 700;
}

.map-pop-hint {
  margin: 7px 0 0;
  color: #7e796b;
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: 0.03em;
  line-height: 1.5;
}

.spot-pin-wrap {
  background: none;
  border: 0;
}

.spot-pin {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid var(--pin-color, var(--acid));
  border-radius: 50% 50% 50% 3px;
  background: rgba(12, 12, 10, 0.94);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.7), 0 0 0 2px rgba(12, 12, 10, 0.55);
  transform: rotate(-45deg);
  transition: transform 0.15s, box-shadow 0.15s;
}

.spot-pin::after {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px solid color-mix(in srgb, var(--pin-color, var(--acid)) 35%, transparent);
  border-radius: 50% 50% 50% 3px;
}

.spot-pin b {
  position: relative;
  z-index: 1;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  color: var(--pin-color, var(--acid));
  transform: rotate(45deg);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.spot-pin-wrap:hover .spot-pin {
  transform: rotate(-45deg) scale(1.14);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.7), 0 0 0 4px rgba(216, 255, 62, 0.16);
}

.spot-pin.diff-4,
.spot-pin.diff-5 {
  border-width: 3px;
}

.spot-pin.diff-5 {
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.7), 0 0 0 3px rgba(255, 77, 23, 0.28);
}

.spot-cluster {
  background: none;
  border: 0;
}

.spot-cluster span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 2px solid var(--acid);
  border-radius: 50%;
  background: rgba(12, 12, 10, 0.92);
  color: var(--acid);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 0 0 5px rgba(216, 255, 62, 0.12);
}

.pin-tooltip {
  padding: 5px 7px !important;
  border: 1px solid #4a4a3e !important;
  border-radius: 0 !important;
  background: var(--ink) !important;
  color: var(--bone) !important;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.35) !important;
}

.pin-tooltip::before {
  border-top-color: #4a4a3e !important;
}

.pin-tooltip-name {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--bone);
}

.city-label-wrap {
  width: 0 !important;
  height: 0 !important;
  background: none;
  border: 0;
}

.city-label {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 4px;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  color: #a9a394;
  opacity: 0;
  white-space: nowrap;
  text-shadow: 0 1px 6px #000;
  transition: opacity 0.25s, color 0.25s;
  pointer-events: none;
}

.city-label i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
}

.map-canvas.is-city-zoom .city-label {
  opacity: 0.62;
}

.map-canvas.is-city-zoom .city-label.is-active {
  opacity: 1;
  color: var(--acid);
}

.pick-pin-wrap {
  background: none;
  border: 0;
}

.pick-pin-inner {
  position: relative;
  display: block;
  width: 46px;
  height: 58px;
}

.pick-pin {
  position: absolute;
  top: 16px;
  left: 4px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 2px solid var(--acid);
  border-radius: 50% 50% 50% 4px;
  background: var(--ink);
  transform: rotate(-45deg);
  box-shadow: 0 0 0 5px rgba(216, 255, 62, 0.18), 0 2px 0 #000;
}

.pick-pin b {
  color: var(--acid);
  font-size: 18px;
  line-height: 1;
  transform: rotate(45deg);
}

.pick-pin-label {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 2;
  padding: 2px 5px;
  background: var(--acid);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 7px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  white-space: nowrap;
  transform: translateX(-50%);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.32);
}

.spot-page {
  background: var(--bone);
  color: var(--ink);
}

.page-grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: radial-gradient(rgba(12, 12, 10, 0.9) 0.55px, transparent 0.55px);
  background-size: 4px 4px;
}

.spot-page > * {
  position: relative;
  z-index: 1;
}

.review-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 26px;
  background: var(--acid);
  color: var(--ink);
  font-size: 11px;
  line-height: 1.5;
}

.review-banner p {
  flex: 1;
  max-width: 900px;
}

.review-banner .btn-ghost {
  flex: 0 0 auto;
  border-color: var(--ink);
  color: var(--ink);
}

.spot-hero {
  position: relative;
  overflow: hidden;
  padding: 34px 26px 52px;
  background: var(--ink);
  color: var(--bone);
}

.spot-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(237, 231, 218, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(237, 231, 218, 0.04) 1px, transparent 1px);
  background-size: 34px 34px;
  transform: skewY(-5deg) scale(1.3);
  pointer-events: none;
}

.spot-hero::after {
  content: 'SPOT';
  position: absolute;
  right: -20px;
  bottom: -54px;
  font-family: var(--font-display);
  font-size: 220px;
  line-height: 1;
  letter-spacing: 0.02em;
  color: rgba(237, 231, 218, 0.028);
  pointer-events: none;
}

.spot-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 28px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.05em;
  color: #8c8779;
}

.crumbs a:hover {
  color: var(--acid);
}

.crumbs span {
  color: #565245;
}

.spot-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 44px;
  align-items: center;
}

.spot-flags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 17px;
}

.spot-flags .code-tag {
  color: var(--acid);
}

.spot-flags .status-tag {
  color: var(--bone);
  border-color: var(--line-strong);
}

.spot-flags .status-open {
  color: var(--acid);
  border-color: rgba(216, 255, 62, 0.55);
  background: rgba(216, 255, 62, 0.08);
}

.spot-flags .status-guarded {
  color: #ff8b64;
  border-color: rgba(255, 77, 23, 0.6);
  background: rgba(255, 77, 23, 0.08);
}

.spot-flags .status-construction {
  color: #f5c542;
  border-color: rgba(245, 197, 66, 0.6);
  background: rgba(245, 197, 66, 0.06);
}

.spot-flags .status-flooded {
  color: #7fc6e8;
  border-color: rgba(127, 198, 232, 0.55);
  background: rgba(127, 198, 232, 0.06);
}

.spot-flags .status-removed {
  color: #a9a394;
  border-color: var(--line-strong);
  background: transparent;
}

.seed-tag,
.stale-tag {
  padding: 3px 5px;
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 7px;
  line-height: 1;
  color: #b5afa0;
}

.stale-tag {
  border-color: rgba(255, 77, 23, 0.55);
  color: #ff8b64;
}

.spot-hero .eyebrow {
  color: #8e897b;
}

.spot-hero h1 {
  max-width: 700px;
  margin: 0 0 14px;
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.spot-address {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 17px;
  font-size: 12px;
  color: #b3ad9e;
}

.spot-address span {
  color: var(--acid);
  font-size: 14px;
}

.spot-intro {
  max-width: 630px;
  margin-bottom: 20px;
  font-size: 13px;
  line-height: 1.75;
  color: #c3bdad;
  white-space: pre-wrap;
}

.spot-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 24px;
}

.spot-hero .tag {
  border-color: var(--line-strong);
  color: #c6c0b1;
}

.spot-hero .tag-diff {
  border-color: var(--acid);
  background: var(--acid);
  color: var(--ink);
}

.spot-hero .tag-diff b {
  color: var(--ink);
}

.spot-hero .tag-risk {
  border-color: rgba(255, 77, 23, 0.45);
  background: rgba(255, 77, 23, 0.08);
  color: #ff9a76;
}

.spot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.spot-visual {
  min-width: 0;
}

.visual-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--ink-2);
  transform: rotate(1.2deg);
  box-shadow: 14px 14px 0 rgba(216, 255, 62, 0.08);
}

.visual-frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visual-frame::before {
  content: '';
  position: absolute;
  z-index: 3;
  top: -11px;
  left: 50%;
  width: 92px;
  height: 21px;
  background: rgba(237, 231, 218, 0.55);
  transform: translateX(-50%) rotate(-2deg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.visual-stamp {
  position: absolute;
  right: 14px;
  bottom: 13px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 74px;
  border: 2px solid var(--acid);
  border-radius: 50%;
  background: rgba(12, 12, 10, 0.88);
  color: var(--acid);
  transform: rotate(-8deg);
}

.stamp-label {
  font-family: var(--font-mono);
  font-size: 5px;
  letter-spacing: 0.12em;
}

.visual-stamp strong {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 400;
  line-height: 1;
}

.visual-stamp strong small {
  font-size: 12px;
}

.diff-bars {
  display: flex;
  gap: 2px;
  margin-top: 3px;
}

.diff-bars i {
  width: 6px;
  height: 2px;
  background: rgba(216, 255, 62, 0.25);
}

.diff-bars i.on {
  background: var(--acid);
}

.visual-code {
  position: absolute;
  top: 12px;
  left: 13px;
  z-index: 4;
  padding: 3px 5px;
  background: rgba(12, 12, 10, 0.75);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  color: var(--bone);
}

.visual-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin-top: 17px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 7px;
  line-height: 1.5;
  color: #8e897b;
}

.visual-caption b {
  color: var(--bone);
  font-weight: 400;
}

.spot-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 34px 26px 80px;
}

.spot-main {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}

.brief-card,
.ascents-section,
.status-section {
  padding: 22px;
  border: 1px solid var(--line-dark);
  background: #f8f3e7;
  box-shadow: 8px 8px 0 rgba(12, 12, 10, 0.045);
}

.brief-card .section-head {
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line-dark);
}

.brief-seal {
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.1em;
  color: var(--muted-dark);
}

.brief-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}

.brief-grid > div {
  min-width: 0;
  padding: 13px 12px;
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.brief-grid > div:nth-child(4n) {
  border-right: 0;
}

.brief-grid > div:nth-last-child(-n + 4) {
  border-bottom: 0;
}

.brief-grid dt {
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.1em;
  color: var(--muted-dark);
  text-transform: uppercase;
}

.brief-grid dd {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--ink);
}

.brief-grid dd small {
  display: block;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 400;
  color: var(--muted-dark);
}

.brief-note {
  margin-top: 13px;
  padding: 9px 11px;
  border-left: 3px solid var(--orange);
  background: #ffece4;
  font-size: 11px;
  line-height: 1.6;
  color: #5f1c07;
}

.ascents-section .section-head,
.status-section .section-head {
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line-dark);
}

.ascents-section .section-head-lg h2,
.status-section .section-head-lg h2 {
  font-size: 29px;
}

.ascent-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}

.ascent-card {
  position: relative;
  overflow: hidden;
  padding: 15px;
  border: 1px solid rgba(12, 12, 10, 0.2);
  background: #fbf7ec;
}

.ascent-card.is-pending {
  border-style: dashed;
  border-color: rgba(255, 77, 23, 0.55);
}

.ascent-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ascent-head .avatar {
  border-color: rgba(12, 12, 10, 0.22);
  background: var(--ink);
  color: var(--acid);
}

.ascent-who {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1;
}

.ascent-who strong {
  font-size: 11px;
  font-weight: 900;
  line-height: 1.3;
}

.ascent-who span {
  font-family: var(--font-mono);
  font-size: 7px;
  color: var(--muted-dark);
}

.ascent-who a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ascent-who a:hover {
  color: var(--orange);
}

.ascent-head .stamp {
  flex: 0 0 auto;
}

.ascent-body {
  margin-top: 10px;
}

.trick {
  margin: 0 0 5px;
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0.015em;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.ascent-note {
  margin: 0 0 10px;
  font-size: 11px;
  line-height: 1.65;
  color: #524e41;
  white-space: pre-wrap;
}

.clip-embed {
  position: relative;
  overflow: hidden;
  margin-top: 10px;
  border: 1px solid var(--ink);
  background: var(--ink);
  aspect-ratio: 16 / 9;
}

.clip-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.clip-link {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 11px 12px;
  border: 1px solid rgba(12, 12, 10, 0.25);
  background: var(--ink);
  color: var(--bone);
}

.clip-link:hover {
  background: #1b1b15;
}

.clip-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: 1px solid var(--acid);
  border-radius: 50%;
  color: var(--acid);
  font-size: 12px;
}

.clip-link > span:nth-child(2) {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.clip-link strong {
  font-size: 11px;
}

.clip-link small {
  font-family: var(--font-mono);
  font-size: 7px;
  color: #9a9485;
}

.clip-arrow {
  color: var(--acid);
  font-size: 13px;
}

.clip-photo {
  display: block;
  margin-top: 10px;
  border: 1px solid rgba(12, 12, 10, 0.2);
  background: var(--ink);
  overflow: hidden;
}

.clip-photo img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  transition: transform 0.3s;
}

.clip-photo:hover img {
  transform: scale(1.015);
}

.clip-none {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding: 13px;
  border: 1px dashed rgba(12, 12, 10, 0.3);
  color: var(--muted-dark);
}

.clip-none span {
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: 0.08em;
}

.clip-none small {
  font-family: var(--font-mono);
  font-size: 7px;
  text-align: right;
}

.ascent-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 11px;
  padding-top: 9px;
  border-top: 1px solid rgba(12, 12, 10, 0.13);
}

.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  border: 1px solid rgba(12, 12, 10, 0.22);
  background: transparent;
  color: #5c5749;
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1.3;
}

.like-btn:hover,
.like-btn.is-liked {
  border-color: var(--orange);
  color: var(--orange);
}

.like-heart {
  font-size: 10px;
  line-height: 1;
}

.like-btn.is-liked .like-heart {
  color: var(--orange);
}

.like-btn.like-pop {
  animation: like-pop 0.25s ease-out;
}

@keyframes like-pop {
  50% {
    transform: scale(1.16);
  }
}

.like-btn.is-error {
  border-color: #a00;
  color: #a00;
}

.like-guest {
  color: var(--muted-dark);
}

.ascent-source {
  font-family: var(--font-mono);
  font-size: 7px;
  color: var(--muted-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ascent-source:hover {
  color: var(--orange);
}

.ascent-id {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.05em;
  color: #958e7d;
}

.status-now {
  flex: 0 0 auto;
  padding: 4px 7px;
  border: 1px solid currentColor;
  font-family: var(--font-mono);
  font-size: 7px;
  line-height: 1;
}

.status-form {
  margin: 16px 0;
  padding: 13px;
  border: 1px solid rgba(12, 12, 10, 0.16);
  background: rgba(243, 237, 223, 0.55);
}

.status-options {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.status-option {
  position: relative;
  cursor: pointer;
}

.status-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.status-option span {
  display: inline-block;
  padding: 5px 9px;
  border: 1px solid rgba(12, 12, 10, 0.2);
  background: #fbf7ec;
  font-size: 9px;
  line-height: 1.3;
}

.status-option input:checked + span {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--acid);
}

.status-note-row {
  display: flex;
  gap: 7px;
  margin-top: 9px;
}

.status-note-row input {
  flex: 1;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(12, 12, 10, 0.22);
  background: #fcf8ed;
  font-size: 11px;
  outline: none;
}

.status-note-row input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px rgba(216, 255, 62, 0.65);
}

.inline-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 15px 0;
  padding: 12px;
  border: 1px dashed rgba(12, 12, 10, 0.3);
}

.inline-cta p {
  max-width: 450px;
  font-size: 10px;
  line-height: 1.6;
  color: var(--muted-dark);
}

.timeline {
  position: relative;
  margin-top: 16px;
  padding-left: 4px;
  list-style: none;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 6px;
  bottom: 10px;
  left: 8px;
  width: 1px;
  background: rgba(12, 12, 10, 0.17);
}

.timeline li {
  position: relative;
  display: flex;
  gap: 11px;
  padding: 0 0 13px;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin-top: 3px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--bone);
}

.timeline-dot.status-open {
  background: var(--acid);
}

.timeline-dot.status-guarded {
  background: var(--orange);
}

.timeline-dot.status-construction {
  background: #f5c542;
}

.timeline-dot.status-flooded {
  background: #7fc6e8;
}

.timeline-dot.status-removed {
  background: #8f8a7b;
}

.timeline-state {
  display: block;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.4;
}

.timeline p {
  margin: 2px 0;
  font-size: 10px;
  line-height: 1.55;
  color: #5b5648;
}

.timeline-meta {
  display: block;
  font-family: var(--font-mono);
  font-size: 7px;
  color: #8b8473;
}

.timeline-empty {
  color: var(--muted-dark);
}

.spot-side {
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.side-card {
  padding: 16px;
  border: 1px solid var(--line-dark);
  background: #f8f3e7;
}

.side-label {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.13em;
  color: var(--muted-dark);
}

.coord-block {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1px 7px;
  align-items: baseline;
  margin-bottom: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.coord-block strong {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

.coord-block span {
  font-family: var(--font-mono);
  font-size: 7px;
  color: var(--muted-dark);
}

.nav-links {
  display: flex;
  flex-direction: column;
}

.nav-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(12, 12, 10, 0.1);
  font-size: 10px;
  font-weight: 700;
}

.nav-links a:last-child {
  border-bottom: 0;
}

.nav-links a:hover {
  color: var(--orange);
}

.nav-links a span {
  font-family: var(--font-mono);
  font-size: 9px;
}

.side-card .btn-block {
  margin-top: 7px;
}

.side-fine {
  margin-top: 9px;
  font-size: 9px;
  line-height: 1.6;
  color: var(--muted-dark);
}

.risk-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
}

.risk-list li {
  padding: 4px 7px;
  border: 1px solid rgba(255, 77, 23, 0.5);
  background: rgba(255, 77, 23, 0.08);
  color: #9b2d0a;
  font-size: 9px;
  line-height: 1.2;
}

.risk-clear {
  font-size: 10px;
  color: var(--muted-dark);
}

.side-meta {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
}

.side-meta > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(12, 12, 10, 0.1);
  font-size: 9px;
}

.side-meta > div:last-child {
  border-bottom: 0;
}

.side-meta dt {
  color: var(--muted-dark);
}

.side-meta dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}

.side-link {
  display: inline-block;
  margin-top: 9px;
  font-family: var(--font-mono);
  font-size: 8px;
  color: #4f4a3c;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.side-link:hover {
  color: var(--orange);
}

.side-related {
  padding: 15px;
  border: 1px solid var(--line-dark);
  background: rgba(248, 243, 231, 0.65);
}

.side-related .spot-card {
  grid-template-columns: 74px minmax(0, 1fr);
  min-height: 74px;
  margin-bottom: 6px;
  background: #12120e;
}

.side-related .spot-card:last-child {
  margin-bottom: 0;
}

.side-related .spot-card-body {
  padding: 7px 8px;
}

.side-related .spot-name {
  margin: 4px 0 2px;
  font-size: 10px;
}

.side-related .spot-card-foot {
  display: none;
}

.side-related .spot-line {
  font-size: 6px;
}

.side-related .spot-cover {
  border-right-color: var(--line);
}

.page-mast {
  max-width: 1200px;
  margin: 0 auto;
  padding: 58px 26px 32px;
}

.page-mast h1 {
  font-family: var(--font-display);
  font-size: clamp(54px, 8.2vw, 104px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

.page-mast h1 em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
}

.mast-lead {
  max-width: 640px;
  margin-top: 20px;
  color: #575244;
  font-size: 14px;
  line-height: 1.75;
}

.upload-page {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 26px 76px;
}

.upload-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 30px;
  align-items: start;
}

.form-card {
  min-width: 0;
  padding: 6px 24px 24px;
  border: 1px solid var(--line-dark);
  background: #f8f3e7;
  box-shadow: 10px 10px 0 rgba(12, 12, 10, 0.055);
}

.form-section {
  min-width: 0;
  margin: 0;
  padding: 23px 0;
  border: 0;
  border-top: 1px solid var(--line-dark);
}

.form-section:first-of-type {
  border-top: 0;
}

.form-section legend {
  display: flex;
  align-items: baseline;
  gap: 8px;
  width: 100%;
  margin-bottom: 16px;
  padding: 0;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.form-section legend span {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  color: var(--orange);
}

.form-section legend small {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted-dark);
}

.form-section .field + .field,
.form-section .field + .field-row,
.form-section .field-row + .field,
.form-section .field-row + .field-row,
.form-section .type-grid + .field,
.form-section .diff-picker + .field,
.form-section .pick-map-wrap + .field-fine {
  margin-top: 15px;
}

.type-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 18px;
}

.type-choice {
  position: relative;
  cursor: pointer;
}

.type-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.type-choice-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 79px;
  padding: 9px 5px;
  border: 1px solid rgba(12, 12, 10, 0.2);
  background: #fcf8ed;
  text-align: center;
  transition: background 0.13s, color 0.13s, border-color 0.13s;
}

.type-choice-inner b {
  font-size: 19px;
  font-weight: 900;
  line-height: 1.1;
  color: var(--spot-color, var(--ink));
}

.type-choice-inner strong {
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
}

.type-choice-inner small {
  font-family: var(--font-mono);
  font-size: 6px;
  letter-spacing: 0.05em;
  color: var(--muted-dark);
}

.type-choice input:checked + .type-choice-inner {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bone);
}

.type-choice input:checked + .type-choice-inner b {
  color: var(--acid);
}

.type-choice input:checked + .type-choice-inner small {
  color: #a9a394;
}

.diff-picker {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
}

.diff-picker label {
  position: relative;
  cursor: pointer;
}

.diff-picker input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.diff-picker span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 7px 3px;
  border: 1px solid rgba(12, 12, 10, 0.2);
  background: #fcf8ed;
  font-size: 8px;
  line-height: 1.3;
  text-align: center;
}

.diff-picker b {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 400;
  line-height: 1;
}

.diff-picker input:checked + span {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--acid);
}

.pick-map-wrap {
  margin-top: 13px;
  border: 1px solid var(--ink);
  background: var(--ink);
}

.pick-map-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(237, 231, 218, 0.15);
  background: var(--ink-2);
  font-family: var(--font-mono);
}

.pick-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #b7b1a1;
  font-size: 8px;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.pick-state i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #716c5d;
}

.pick-state.is-set {
  color: var(--acid);
}

.pick-state.is-set i {
  background: var(--acid);
  box-shadow: 0 0 9px rgba(216, 255, 62, 0.75);
}

.pick-state.is-error {
  color: #ff9a76;
}

.pick-state.is-error i {
  background: var(--orange);
}

.pick-readout {
  color: #b7b1a1;
  font-size: 8px;
  letter-spacing: 0.04em;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.pick-map {
  width: 100%;
  height: 360px;
  background: var(--ink);
}

.pick-map-hint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 7px 10px;
  padding: 8px 10px;
  border-top: 1px solid rgba(237, 231, 218, 0.15);
  background: var(--ink);
  color: #b7b1a1;
  font-family: var(--font-mono);
  font-size: 8px;
}

.pick-map-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.pick-btn {
  min-height: 30px;
  padding: 6px 9px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--bone);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.04em;
  line-height: 1;
  cursor: pointer;
}

.pick-btn:hover {
  border-color: var(--acid);
  color: var(--acid);
}

.pick-btn.is-on {
  border-color: var(--acid);
  background: var(--acid);
  color: var(--ink);
}

.pick-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.pick-btn-quiet {
  color: #8e897b;
}

.pick-nudge {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border-top: 1px solid rgba(237, 231, 218, 0.15);
  background: var(--ink);
  color: #b7b1a1;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.04em;
}

.pick-nudge-pad {
  display: grid;
  grid-template-areas:
    '. up .'
    'left down right';
  grid-template-columns: repeat(3, 32px);
  gap: 3px;
}

.pick-nudge-pad button {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--bone);
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}

.pick-nudge-pad button:hover {
  border-color: var(--acid);
  background: var(--acid);
  color: var(--ink);
}

.nudge-up { grid-area: up; }
.nudge-left { grid-area: left; }
.nudge-down { grid-area: down; }
.nudge-right { grid-area: right; }

.pick-nudge-note {
  margin-left: auto;
  color: #7f7a6c;
  text-align: right;
  line-height: 1.4;
}

.mini-btn {
  padding: 4px 7px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--bone);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.04em;
}

.mini-btn:hover {
  border-color: var(--acid);
  color: var(--acid);
}

.check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.form-card .check-chip span {
  border-color: rgba(12, 12, 10, 0.22);
  color: #5d584a;
  background: #fcf8ed;
}

.form-card .check-chip input:checked + span {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--acid);
}

.dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 150px;
  padding: 22px;
  overflow: hidden;
  border: 1px dashed rgba(12, 12, 10, 0.38);
  background: #fcf8ed;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.dropzone:hover,
.dropzone.is-dragging {
  border-color: var(--ink);
  background: #fffdf6;
}

.dropzone.is-dragging {
  box-shadow: inset 0 0 0 3px rgba(216, 255, 62, 0.7);
}

.dropzone.is-invalid {
  border-color: var(--orange);
  background: #ffece4;
}

.dropzone input[type='file'] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.dropzone-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1;
}

.dropzone-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.dropzone-text strong {
  font-size: 12px;
  font-weight: 900;
}

.dropzone-text small {
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.03em;
  color: var(--muted-dark);
}

.dropzone-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dropzone.has-file .dropzone-preview {
  position: relative;
  inset: auto;
  width: 100%;
  max-height: 260px;
  object-fit: cover;
}

.form-submit {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
}

.form-submit .btn {
  align-self: flex-start;
}

.form-submit p {
  font-size: 9px;
  line-height: 1.55;
  color: var(--muted-dark);
}

.upload-side {
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.upload-side .side-card {
  padding: 15px;
}

.side-warn {
  border-left: 4px solid var(--orange);
  background: #fbece2;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 13px;
  list-style: none;
}

.steps li {
  display: flex;
  gap: 9px;
}

.steps li > b {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
  color: var(--orange);
}

.steps li > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.steps strong {
  font-size: 10px;
  font-weight: 900;
  line-height: 1.3;
}

.steps span {
  font-size: 9px;
  line-height: 1.55;
  color: var(--muted-dark);
}

.warn-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  list-style: none;
}

.warn-list li {
  position: relative;
  padding-left: 10px;
  font-size: 9px;
  line-height: 1.6;
  color: #545043;
}

.warn-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--orange);
}

.side-note {
  background: #e8e2d2;
}

.side-card .side-link {
  margin-top: 10px;
}

.selected-spot {
  display: flex;
  gap: 11px;
  align-items: center;
  margin-top: 12px;
  padding: 9px;
  border: 1px solid rgba(12, 12, 10, 0.2);
  background: #fcf8ed;
}

.selected-cover {
  position: relative;
  flex: 0 0 auto;
  width: 74px;
  height: 64px;
  overflow: hidden;
  background: var(--ink);
}

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

.selected-cover .art-glyph {
  font-size: 36px;
}

.selected-cover .art-code {
  font-size: 5px;
}

.selected-spot > div:last-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.selected-spot strong {
  font-size: 11px;
  font-weight: 900;
  line-height: 1.3;
}

.selected-spot span {
  font-family: var(--font-mono);
  font-size: 7px;
  color: var(--muted-dark);
}

.selected-spot a {
  font-family: var(--font-mono);
  font-size: 7px;
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.media-tabs {
  display: flex;
  margin-bottom: 13px;
  border: 1px solid rgba(12, 12, 10, 0.2);
}

.media-tab {
  position: relative;
  flex: 1;
  cursor: pointer;
  text-align: center;
}

.media-tab input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.media-tab span {
  display: block;
  padding: 8px 6px;
  background: #fcf8ed;
  font-size: 9px;
  line-height: 1.3;
  border-right: 1px solid rgba(12, 12, 10, 0.14);
}

.media-tab:last-child span {
  border-right: 0;
}

.media-tab input:checked + span {
  background: var(--ink);
  color: var(--acid);
  font-weight: 800;
}

.media-url-field {
  margin-bottom: 12px;
}

.auth-page {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(430px, 0.94fr);
  min-height: 100dvh;
  background: var(--bone);
}

.auth-poster {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 28px;
  background: var(--ink);
  color: var(--bone);
}

.auth-poster::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(237, 231, 218, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(237, 231, 218, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  transform: skewY(-6deg) scale(1.25);
}

.poster-lines {
  position: absolute;
  right: -20%;
  bottom: -20%;
  width: 85%;
  aspect-ratio: 1;
  border: 1px solid rgba(216, 255, 62, 0.18);
  border-radius: 50%;
  box-shadow:
    0 0 0 40px rgba(216, 255, 62, 0.03),
    0 0 0 120px rgba(216, 255, 62, 0.025),
    0 0 0 220px rgba(216, 255, 62, 0.02);
  pointer-events: none;
}

.auth-poster-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.auth-back {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  color: #9d9788;
}

.auth-back:hover {
  color: var(--acid);
}

.auth-poster-main {
  position: relative;
  z-index: 1;
  margin: auto 0;
  padding: 48px 0;
}

.auth-poster-main h1 {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-size: clamp(92px, 12vw, 160px);
  font-weight: 400;
  line-height: 0.78;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.auth-poster-main h1 em {
  font-style: normal;
  color: var(--acid);
}

.auth-poster-main > p:last-of-type {
  max-width: 420px;
  color: #b6b0a1;
  font-size: 13px;
  line-height: 1.75;
}

.poster-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 400px;
  margin-top: 32px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.poster-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 400;
  line-height: 1;
  color: var(--acid);
}

.poster-stats span {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.06em;
  color: #8e897b;
}

.auth-poster-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  color: #7e796b;
}

.auth-form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  background: var(--bone);
  color: var(--ink);
}

.auth-form-card {
  width: min(100%, 410px);
}

.auth-head h2 {
  margin: 0 0 8px;
  font-size: 27px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.auth-head > p:last-child {
  margin-bottom: 24px;
  font-size: 11px;
  line-height: 1.65;
  color: var(--muted-dark);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-form .field label {
  color: #4a463b;
}

.code-row {
  display: flex;
  gap: 6px;
}

.code-row input {
  flex: 1;
  min-width: 0;
}

.code-btn {
  flex: 0 0 auto;
  padding: 0 11px;
  border-color: rgba(12, 12, 10, 0.3);
  color: var(--ink);
  font-size: 8px;
}

.code-btn:hover {
  border-color: var(--ink);
  background: var(--acid);
  color: var(--ink);
}

.field small[data-code-msg] {
  display: block;
}

.field small[data-code-msg].is-error {
  color: #a52d09;
}

.field small[data-code-msg].is-ok {
  color: #4c5d16;
}

.dev-code {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px dashed rgba(12, 12, 10, 0.35);
  background: #e7e1d1;
}

.dev-code > span {
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.05em;
  color: var(--muted-dark);
}

.dev-code strong {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 18px;
  letter-spacing: 0.22em;
  line-height: 1;
}

.dev-code .mini-btn {
  border-color: rgba(12, 12, 10, 0.35);
  color: var(--ink);
}

.auth-fine {
  font-size: 9px;
  line-height: 1.65;
  color: #7c7565;
}

.auth-foot {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--muted-dark);
}

.auth-foot a:hover {
  color: var(--orange);
}

.me-page {
  background: var(--bone);
}

.profile-hero {
  position: relative;
  overflow: hidden;
  padding: 46px 26px 44px;
  background: var(--ink);
  color: var(--bone);
}

.profile-grid {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(216, 255, 62, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216, 255, 62, 0.055) 1px, transparent 1px);
  background-size: 38px 38px;
  transform: skewY(-4deg) scale(1.2);
}

.profile-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 22px;
  max-width: 1200px;
  margin: 0 auto;
}

.profile-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 88px;
  height: 88px;
  border: 2px solid var(--acid);
  border-radius: 50%;
  background: rgba(216, 255, 62, 0.08);
  color: var(--acid);
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 400;
  line-height: 1;
  transform: rotate(-4deg);
}

.profile-main {
  flex: 1;
  min-width: 0;
}

.profile-main h1 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 68px);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0.015em;
}

.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 8px;
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1.5;
  color: #a19b8c;
}

.profile-meta span:nth-child(even) {
  color: #5d594d;
}

.profile-bio {
  max-width: 600px;
  margin-top: 11px;
  color: #c2bcac;
  font-size: 12px;
  line-height: 1.7;
}

.profile-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 19px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  max-width: 520px;
}

.profile-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  color: var(--acid);
}

.profile-stats span {
  display: block;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 7px;
  color: #8e897b;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  flex: 0 0 auto;
}

.me-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 26px 78px;
}

.profile-edit {
  position: relative;
  z-index: 2;
  margin-top: -22px;
  border: 1px solid var(--line-dark);
  background: #f8f3e7;
  box-shadow: 8px 8px 0 rgba(12, 12, 10, 0.055);
}

.profile-edit summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 17px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-edit summary::-webkit-details-marker {
  display: none;
}

.profile-edit summary span {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted-dark);
}

.profile-edit[open] summary {
  border-bottom: 1px solid var(--line-dark);
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 17px;
}

.profile-form .btn {
  align-self: flex-start;
}

.me-section {
  margin-top: 40px;
}

.me-section > .section-head {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-dark);
}

.me-section .empty {
  margin-top: 16px;
}

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

.spot-list-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.spot-list-grid .spot-card {
  grid-template-columns: 1fr;
  min-height: 0;
  background: #12120e;
  color: var(--bone);
}

.spot-list-grid .spot-cover {
  aspect-ratio: 16 / 10;
  min-height: 0;
  border-right: 0;
  border-bottom: 1px solid var(--line);
}

.spot-list-grid .art-glyph {
  font-size: 72px;
}

.spot-list-grid .spot-card-body {
  padding: 10px 11px 11px;
}

.spot-list-grid .spot-name {
  font-size: 14px;
}

.admin-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 46px 26px 80px;
}

.admin-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 26px;
  border-bottom: 2px solid var(--ink);
}

.admin-head h1 {
  margin: 0 0 9px;
  font-family: var(--font-display);
  font-size: clamp(44px, 6.4vw, 76px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0.015em;
}

.admin-head .mast-lead {
  margin-top: 0;
  max-width: 540px;
  font-size: 12px;
}

.admin-counts {
  display: grid;
  grid-template-columns: repeat(4, minmax(72px, 1fr));
  gap: 1px;
  flex: 0 0 auto;
  border: 1px solid var(--line-dark);
  background: var(--line-dark);
}

.admin-counts > div {
  padding: 9px 11px;
  background: var(--bone);
}

.admin-counts strong {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
}

.admin-counts span {
  display: block;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 6px;
  color: var(--muted-dark);
}

.admin-section {
  margin-top: 36px;
}

.admin-section > .section-head {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-dark);
}

.admin-hint {
  max-width: 330px;
  font-size: 9px;
  line-height: 1.5;
  color: var(--muted-dark);
  text-align: right;
}

.review-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-top: 15px;
}

.review-card {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line-dark);
  background: #f8f3e7;
}

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

.review-cover {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  background: var(--ink);
  border-right: 1px solid var(--line-dark);
}

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

.review-cover .art-glyph {
  font-size: 84px;
}

.review-cover .art-code {
  font-size: 7px;
}

.review-main {
  min-width: 0;
  padding: 14px 16px;
}

.review-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.review-top .review-meta {
  margin-left: auto;
}

.review-card h3 {
  margin: 7px 0 4px;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.3;
}

.review-card h3 a:hover {
  color: var(--orange);
}

.review-meta {
  font-family: var(--font-mono);
  font-size: 7px;
  line-height: 1.6;
  color: var(--muted-dark);
}

.review-desc {
  margin-top: 6px;
  font-size: 10px;
  line-height: 1.65;
  color: #504c3f;
  white-space: pre-wrap;
}

.review-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}

.review-tags .tag {
  font-size: 7px;
  padding: 3px 5px;
}

.review-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line-dark);
}

.review-actions form {
  margin: 0;
}

.reject-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.reject-form input[type='text'] {
  width: 210px;
  padding: 7px 8px;
  border: 1px solid rgba(12, 12, 10, 0.25);
  background: #fcf8ed;
  font-size: 9px;
  outline: none;
}

.reject-form input[type='text']:focus {
  border-color: var(--ink);
}

.review-at {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted-dark);
}

.review-at a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.invite-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
  margin-top: 14px;
  padding: 13px;
  border: 1px solid var(--line-dark);
  background: #f8f3e7;
}

.invite-form .field {
  flex: 1 1 150px;
}

.invite-form .field:last-of-type {
  flex: 0 0 auto;
}

.table-wrap {
  margin-top: 13px;
  overflow-x: auto;
  border: 1px solid var(--line-dark);
  background: #f8f3e7;
}

.admin-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 10px;
}

.admin-table th {
  padding: 9px 11px;
  border-bottom: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-table td {
  padding: 9px 11px;
  border-bottom: 1px solid rgba(12, 12, 10, 0.1);
  vertical-align: middle;
}

.admin-table tr:last-child td {
  border-bottom: 0;
}

.admin-table tbody tr:hover {
  background: #efe8d8;
}

.admin-table code {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.admin-table .is-used {
  color: var(--orange);
}

.table-user {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}

.table-user .avatar {
  border-color: rgba(12, 12, 10, 0.2);
  background: var(--ink);
  color: var(--acid);
}

.admin-head-side {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.admin-head-link {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
}

.admin-head-link:hover {
  color: var(--orange);
}

.admin-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px auto auto;
  align-items: end;
  gap: 10px;
  margin-top: 22px;
  padding: 14px;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.32);
}

.admin-search .field {
  margin: 0;
}

.admin-search .btn {
  height: 40px;
}

.admin-reset {
  align-self: center;
  padding-bottom: 2px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  white-space: nowrap;
}

.admin-reset:hover {
  color: var(--orange);
}

.review-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 6px;
  border: 1px solid currentColor;
  color: var(--muted-dark);
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.review-pill::before {
  content: '';
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
}

.review-pill.is-approved {
  color: #405d12;
}

.review-pill.is-pending {
  color: var(--orange);
}

.review-pill.is-rejected {
  color: var(--muted-dark);
}

.admin-spot-table {
  min-width: 980px;
}

.admin-spot-table td {
  font-size: 9px;
}

.admin-spot-name {
  display: inline-block;
  max-width: 260px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.35;
}

.admin-spot-name:hover {
  color: var(--orange);
}

.admin-spot-table td small {
  display: block;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 7px;
  color: var(--muted-dark);
}

.admin-coord {
  font-size: 8px !important;
  line-height: 1.65;
  white-space: nowrap;
}

.admin-spot-table .btn {
  white-space: nowrap;
}

.admin-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.admin-edit-meta {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 20px 0 24px;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.34);
}

.admin-edit-meta > div {
  min-width: 0;
  padding: 10px 12px;
  border-right: 1px solid var(--line-dark);
}

.admin-edit-meta > div:last-child {
  border-right: 0;
}

.admin-edit-meta span {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 6px;
  letter-spacing: 0.07em;
  color: var(--muted-dark);
  text-transform: uppercase;
}

.admin-edit-meta b {
  display: block;
  overflow: hidden;
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-edit-meta .review-pill {
  display: inline-flex;
  width: fit-content;
}

.edit-cover {
  position: relative;
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  background: var(--ink);
}

.edit-cover img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.edit-cover span {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 5px 8px;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.05em;
}

.edit-facts {
  display: flex;
  flex-direction: column;
  margin-top: 10px;
}

.edit-facts > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px dashed rgba(12, 12, 10, 0.18);
}

.edit-facts > div:last-child {
  border-bottom: 0;
}

.edit-facts dt {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 7px;
  color: var(--muted-dark);
  text-transform: uppercase;
}

.edit-facts dd {
  min-width: 0;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.4;
  text-align: right;
  overflow-wrap: anywhere;
}

.edit-review-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 9px;
}

.edit-review-form input[type='text'] {
  width: 100%;
  padding: 7px 8px;
  border: 1px solid rgba(12, 12, 10, 0.25);
  background: #fcf8ed;
  font-size: 9px;
  outline: none;
}

.edit-review-form input[type='text']:focus {
  border-color: var(--ink);
}

.rules-page {
  padding-bottom: 70px;
}

.rules-mast {
  max-width: 1120px;
  margin: 0 auto;
  padding: 60px 26px 38px;
  border-bottom: 2px solid var(--ink);
}

.rules-mast h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(58px, 9vw, 108px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

.rules-mast h1 em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1.6px var(--ink);
}

.rules-mast > p:not(.eyebrow) {
  max-width: 600px;
  margin-top: 22px;
  color: #575244;
  font-size: 14px;
  line-height: 1.8;
}

.rules-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 24px;
  margin-top: 24px;
  padding-top: 13px;
  border-top: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--muted-dark);
}

.rules-stats b {
  color: var(--ink);
  font-size: 12px;
}

.rules-version {
  margin-left: auto;
  color: var(--orange);
}

.rules-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 48px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 38px 26px 0;
  align-items: start;
}

.rules-toc {
  position: sticky;
  top: 94px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rules-toc .side-label {
  margin-bottom: 11px;
  color: var(--ink);
}

.rules-toc a {
  padding: 6px 0;
  border-bottom: 1px solid rgba(12, 12, 10, 0.1);
  font-size: 10px;
  font-weight: 700;
  color: #5c5749;
}

.rules-toc a:hover {
  color: var(--orange);
}

.rules-body {
  min-width: 0;
}

.rules-body section {
  position: relative;
  padding: 8px 0 32px 54px;
  border-bottom: 1px solid var(--line-dark);
  margin-bottom: 32px;
}

.rules-body section:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}

.rule-no {
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(12, 12, 10, 0.4);
}

.rules-body h2 {
  margin: 0 0 12px;
  font-size: 25px;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.rules-body p {
  margin: 0 0 11px;
  max-width: 720px;
  font-size: 12px;
  line-height: 1.85;
  color: #4f4b3e;
}

.rules-body ul {
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-width: 720px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.rules-body li {
  position: relative;
  padding-left: 15px;
  font-size: 12px;
  line-height: 1.8;
  color: #4f4b3e;
}

.rules-body li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--orange);
}

.rules-body li b {
  color: var(--ink);
}

.rule-callout {
  max-width: 720px;
  margin: 17px 0 4px;
  padding: 13px 15px;
  border-left: 4px solid var(--ink);
  background: #e9e3d3;
}

.rule-callout strong {
  display: block;
  margin-bottom: 3px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rule-callout p {
  margin: 0;
  font-size: 11px;
}

.rule-callout-warn {
  border-left-color: var(--orange);
  background: #fbe9df;
}

.rule-sign {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
  padding-top: 12px;
  border-top: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.06em;
  color: var(--muted-dark);
}

.error-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: 30px;
  align-items: center;
  max-width: 1100px;
  min-height: 68vh;
  margin: 0 auto;
  padding: 60px 26px;
}

.error-code {
  font-family: var(--font-display);
  font-size: clamp(130px, 25vw, 300px);
  line-height: 0.8;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 2px rgba(12, 12, 10, 0.35);
  user-select: none;
}

.error-card {
  padding: 24px;
  border: 1px solid var(--line-dark);
  background: #f8f3e7;
  box-shadow: 10px 10px 0 rgba(12, 12, 10, 0.07);
}

.error-card h1 {
  margin: 0 0 12px;
  font-size: 27px;
  font-weight: 900;
  line-height: 1.25;
}

.error-card > p:not(.eyebrow, .error-fine) {
  margin: 0 0 18px;
  font-size: 12px;
  line-height: 1.7;
  color: #575244;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.error-fine {
  margin-top: 22px;
  padding-top: 12px;
  border-top: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.05em;
  color: var(--muted-dark);
}

@media (max-width: 1180px) {
  .map-app {
    grid-template-columns: 390px minmax(0, 1fr);
  }

  .panel-hero h1 {
    font-size: 52px;
  }

  .spot-hero-grid {
    gap: 30px;
  }

  .spot-body {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 24px;
  }

  .art-large .art-glyph {
    font-size: 124px;
  }
}

@media (max-width: 1020px) {
  .site-nav {
    gap: 18px;
    margin-left: 30px;
  }

  .head-user-name {
    display: none;
  }

  .upload-grid {
    grid-template-columns: minmax(0, 1fr) 285px;
    gap: 22px;
  }

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

  .admin-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .admin-counts {
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .map-app {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }

  .map-stage {
    order: 1;
    height: 56dvh;
    min-height: 420px;
    flex: 0 0 auto;
  }

  .map-panel {
    order: 2;
    overflow: visible;
    border-top: 1px solid var(--line);
    border-right: 0;
  }

  .panel-head {
    display: none;
  }

  .map-mobile-head {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 660;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: linear-gradient(180deg, rgba(12, 12, 10, 0.9), rgba(12, 12, 10, 0));
  }

  .map-mobile-head .brand-stamp {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }

  .map-mobile-head .brand-type strong {
    font-size: 16px;
  }

  .map-mobile-head .brand-type small {
    font-size: 5px;
  }

  .map-mobile-login {
    font-family: var(--font-mono);
    font-size: 8px;
    color: var(--acid);
  }

  .map-tag {
    top: 58px;
    left: 15px;
  }

  .map-tag-en {
    font-size: 33px;
  }

  .map-tools {
    top: 58px;
    right: 15px;
  }

  .map-zoom {
    top: 98px;
    right: 15px;
  }

  .map-legend {
    display: none;
  }

  .map-add {
    right: 15px;
    bottom: 38px;
  }

  .map-coords {
    bottom: 8px;
  }

  .map-disclaimer {
    padding: 4px 8px;
    font-size: 6px;
  }

  .panel-hero {
    padding: 28px 20px 24px;
  }

  .panel-hero h1 {
    font-size: 50px;
  }

  .panel-filter,
  .panel-results,
  .panel-feed {
    padding-right: 18px;
    padding-left: 18px;
  }

  .spot-hero {
    padding: 26px 20px 38px;
  }

  .spot-hero-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .spot-visual {
    max-width: 560px;
  }

  .spot-body {
    grid-template-columns: 1fr;
    padding: 26px 20px 60px;
    gap: 18px;
  }

  .spot-side {
    position: static;
  }

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

  .brief-grid > div:nth-child(2n) {
    border-right: 0;
  }

  .brief-grid > div:nth-child(4n) {
    border-right: 0;
  }

  .brief-grid > div:nth-last-child(-n + 4) {
    border-bottom: 1px solid var(--line-dark);
  }

  .brief-grid > div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

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

  .upload-side {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .upload-side .side-note {
    grid-column: 1 / -1;
  }

  .me-body {
    padding: 0 20px 60px;
  }

  .profile-inner {
    flex-wrap: wrap;
  }

  .profile-avatar {
    width: 68px;
    height: 68px;
    font-size: 32px;
  }

  .profile-main {
    flex-basis: calc(100% - 92px);
  }

  .profile-actions {
    width: 100%;
    padding-left: 90px;
  }

  .ascent-list-grid {
    grid-template-columns: 1fr;
  }

  .rules-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .rules-toc {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 5px 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line-dark);
  }

  .rules-toc .side-label {
    width: 100%;
    margin-bottom: 2px;
  }

  .rules-toc a {
    padding: 3px 0;
    border: 0;
  }

  .auth-page {
    grid-template-columns: 1fr;
  }

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

  .auth-poster-main {
    padding: 28px 0 8px;
  }

  .auth-poster-main h1 {
    margin-bottom: 12px;
    font-size: 78px;
  }

  .auth-poster-main > p:last-of-type,
  .poster-stats,
  .auth-poster-foot,
  .poster-lines {
    display: none;
  }

  .auth-form-wrap {
    padding: 30px 20px 50px;
  }

  .review-card {
    grid-template-columns: 150px minmax(0, 1fr);
  }

  .error-page {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 30px;
  }

  .error-code {
    font-size: 130px;
  }

  .foot-main {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .foot-links {
    justify-content: flex-start;
  }
}

@media (max-width: 860px) {
  .site-head {
    height: 64px;
    padding: 0 16px;
  }

  .site-nav,
  .head-actions .head-admin,
  .head-actions .head-user,
  .head-actions .head-logout,
  .head-actions .head-cta {
    display: none;
  }

  .head-actions {
    gap: 8px;
  }

  .head-login {
    font-size: 8px;
  }

  .menu-toggle {
    display: flex;
  }

  .mobile-menu {
    inset: 64px 0 0;
    padding: 12px 20px 30px;
  }

  .brand-stamp {
    width: 32px;
    height: 32px;
    font-size: 15px;
  }

  .brand-type strong {
    font-size: 18px;
  }

  .brand-type small {
    font-size: 6px;
  }

  .map-app .brand-type small {
    display: none;
  }

  .page-mast {
    padding: 38px 18px 24px;
  }

  .upload-page {
    padding: 0 18px 54px;
  }

  .form-card {
    padding: 4px 15px 18px;
    box-shadow: 5px 5px 0 rgba(12, 12, 10, 0.06);
  }

  .spot-hero h1 {
    font-size: 34px;
  }

  .spot-body {
    padding-right: 18px;
    padding-left: 18px;
  }

  .rules-mast {
    padding: 38px 18px 28px;
  }

  .rules-layout {
    padding: 26px 18px 0;
  }

  .admin-page {
    padding: 34px 18px 60px;
  }

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

  .review-cover {
    min-height: 140px;
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
  }

  .review-cover .art-glyph {
    font-size: 62px;
  }

  .profile-hero {
    padding: 32px 18px 34px;
  }

  .profile-inner {
    gap: 15px;
  }

  .me-body {
    padding-right: 18px;
    padding-left: 18px;
  }

  .me-body > .profile-edit {
    margin-top: -18px;
  }

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

  .page-paper::before {
    background-size: 5px 5px;
  }

  .foot-meta {
    flex-direction: column;
    gap: 5px;
  }
}

@media (max-width: 640px) {
  .panel-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .panel-hero h1 {
    font-size: 46px;
  }

  .panel-lede {
    font-size: 12px;
  }

  .map-stage {
    height: 50dvh;
    min-height: 360px;
  }

  .map-tag-en {
    font-size: 27px;
  }

  .map-tag-cn {
    font-size: 7px;
  }

  .map-tools {
    top: 54px;
    gap: 3px;
  }

  .map-tool {
    padding: 7px 8px;
    font-size: 7px;
  }

  .map-zoom {
    top: 90px;
  }

  .map-add {
    padding: 8px 9px;
    font-size: 7px;
    box-shadow: 3px 3px 0 var(--orange);
  }

  .map-coords {
    display: none;
  }

  .spot-hero {
    padding: 22px 16px 30px;
  }

  .spot-hero-grid {
    gap: 20px;
  }

  .spot-hero h1 {
    font-size: 30px;
  }

  .spot-intro {
    font-size: 12px;
  }

  .spot-actions .btn {
    flex: 1;
  }

  .visual-frame {
    transform: none;
    box-shadow: 7px 7px 0 rgba(216, 255, 62, 0.08);
  }

  .art-large .art-glyph {
    font-size: 92px;
  }

  .visual-stamp {
    width: 60px;
    height: 60px;
    right: 9px;
    bottom: 9px;
  }

  .visual-stamp strong {
    font-size: 21px;
  }

  .brief-card,
  .ascents-section,
  .status-section {
    padding: 15px;
    box-shadow: 5px 5px 0 rgba(12, 12, 10, 0.045);
  }

  .ascents-section .section-head-lg h2,
  .status-section .section-head-lg h2 {
    font-size: 24px;
  }

  .section-head-lg {
    align-items: flex-start;
  }

  .section-head-lg h2 {
    font-size: 26px;
  }

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

  .brief-grid > div {
    padding: 10px 8px;
  }

  .status-note-row {
    flex-direction: column;
  }

  .inline-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .trick {
    font-size: 23px;
  }

  .clip-none {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .clip-none small {
    text-align: left;
  }

  .page-mast h1 {
    font-size: 48px;
  }

  .mast-lead {
    font-size: 12px;
  }

  .form-section legend {
    font-size: 21px;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 13px;
  }

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

  .diff-picker {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .diff-picker span {
    font-size: 7px;
  }

  .diff-picker b {
    font-size: 18px;
  }

  .pick-map {
    height: 300px;
  }

  .pick-nudge {
    gap: 12px;
  }

  .pick-nudge-pad {
    grid-template-columns: repeat(3, 40px);
  }

  .pick-nudge-pad button {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

  .pick-nudge-note {
    display: none;
  }

  .upload-side {
    display: flex;
  }

  .profile-main {
    flex-basis: 100%;
  }

  .profile-main h1 {
    font-size: 38px;
  }

  .profile-actions {
    padding-left: 0;
  }

  .profile-stats {
    gap: 17px;
  }

  .profile-edit summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .spot-list-grid {
    grid-template-columns: 1fr;
  }

  .me-section {
    margin-top: 30px;
  }

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

  .reject-form {
    align-items: stretch;
    flex-direction: column;
  }

  .reject-form input[type='text'] {
    width: 100%;
  }

  .invite-form {
    align-items: stretch;
    flex-direction: column;
  }

  .invite-form .field,
  .invite-form .field:last-of-type {
    flex: 1 1 auto;
    max-width: none;
  }

  .admin-hint {
    display: none;
  }

  .rules-mast h1 {
    font-size: 54px;
  }

  .rules-body section {
    padding-left: 0;
    padding-bottom: 25px;
    margin-bottom: 25px;
  }

  .rule-no {
    position: static;
    display: block;
    margin-bottom: 5px;
    font-size: 38px;
  }

  .rules-body h2 {
    font-size: 21px;
  }

  .rules-body p,
  .rules-body li {
    font-size: 11px;
  }

  .rule-sign {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .auth-poster {
    min-height: 190px;
    padding: 16px;
  }

  .auth-poster-main {
    padding: 20px 0 4px;
  }

  .auth-poster-main h1 {
    font-size: 62px;
  }

  .auth-poster-main .eyebrow {
    margin-bottom: 7px;
  }

  .auth-form-wrap {
    padding: 24px 16px 40px;
  }

  .auth-head h2 {
    font-size: 23px;
  }

  .error-card {
    padding: 18px;
  }

  .error-code {
    font-size: 100px;
  }

  .flash {
    right: 12px;
    bottom: 12px;
    left: 12px;
    max-width: none;
    transform: none;
  }

  .flash.is-leaving {
    animation-name: flash-out-mobile;
  }

  @keyframes flash-out-mobile {
    to {
      opacity: 0;
      transform: translateY(8px);
    }
  }

  .site-foot {
    padding: 36px 18px 20px;
  }

  .foot-brand small {
    font-size: 6px;
  }

  .foot-line {
    font-size: 11px;
  }
}

@media (max-width: 1020px) {
  .admin-head-side {
    width: 100%;
    align-items: flex-start;
  }

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

  .admin-edit-meta > div:nth-child(3) {
    border-right: 0;
  }

  .admin-edit-meta > div:nth-child(n + 4) {
    border-top: 1px solid var(--line-dark);
  }
}

@media (max-width: 760px) {
  .admin-search {
    grid-template-columns: 1fr 1fr;
  }

  .admin-search .field:first-of-type {
    grid-column: 1 / -1;
  }

  .admin-search .btn {
    width: 100%;
  }

  .admin-reset {
    justify-self: start;
  }

  .admin-edit-meta {
    grid-template-columns: 1fr 1fr;
  }

  .admin-edit-meta > div:nth-child(3) {
    border-right: 1px solid var(--line-dark);
  }

  .admin-edit-meta > div:nth-child(2n) {
    border-right: 0;
  }

  .admin-edit-meta > div:nth-child(n + 3) {
    border-top: 1px solid var(--line-dark);
  }
}

@media (max-width: 640px) {
  .admin-search {
    grid-template-columns: 1fr;
  }

  .admin-search .field:first-of-type {
    grid-column: auto;
  }

  .admin-edit-meta {
    grid-template-columns: 1fr;
  }

  .admin-edit-meta > div,
  .admin-edit-meta > div:nth-child(3) {
    border-right: 0;
    border-top: 1px solid var(--line-dark);
  }

  .admin-edit-meta > div:first-child {
    border-top: 0;
  }

  .edit-cover img {
    height: 150px;
  }
}

@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;
  }
}

/* ==========================================================================
   LIGHT EDITORIAL THEME / 2026-11
   ========================================================================== */

:root {
  --ink: #25221c;
  --ink-2: #2f2b24;
  --ink-3: #3a352c;
  --bone: #f8f4ea;
  --bone-2: #fcfaf4;
  --paper: #f0eadf;
  --acid: #66755d;
  --orange: #b16b4e;
  --muted: #7d7668;
  --muted-dark: #5d574b;
  --line: rgba(37, 34, 28, 0.13);
  --line-strong: rgba(37, 34, 28, 0.23);
  --line-dark: rgba(37, 34, 28, 0.15);
  --font-soft: 'Segoe UI Variable', 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

html {
  background: #f3efe6;
}

body {
  background: #f3efe6;
  color: var(--ink);
}

body.page-map {
  background: #f3efe6;
}

::selection {
  background: #dfe5d8;
  color: var(--ink);
}

:focus-visible {
  outline-color: var(--acid);
}

::-webkit-scrollbar-thumb {
  background: #b9b09f;
  border-color: #f3efe6;
}

.page-paper ::-webkit-scrollbar-thumb {
  background: #b9b09f;
  border-color: var(--bone);
}

/* Buttons */
.btn {
  padding: 11px 17px;
  border-radius: 999px;
  color: var(--ink);
  font-family: var(--font-soft);
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.015em;
  text-transform: none;
}

.btn-acid {
  border-color: var(--acid);
  background: var(--acid);
  color: var(--bone-2);
}

.btn-acid:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bone-2);
  transform: none;
  box-shadow: 0 7px 18px rgba(37, 34, 28, 0.16);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink);
  background: rgba(37, 34, 28, 0.04);
  color: var(--ink);
}

.page-paper .btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
}

.page-paper .btn-ghost:hover {
  border-color: var(--ink);
  background: rgba(37, 34, 28, 0.05);
}

.btn-sm {
  padding: 7px 12px;
  font-size: 9.5px;
}

.btn-lg {
  padding: 14px 21px;
  font-size: 11.5px;
}

.hero-actions .btn {
  padding: 12px 18px;
  font-size: 11.5px;
}

.link-btn {
  font-family: var(--font-soft);
  font-size: 10px;
  letter-spacing: 0;
  text-transform: none;
}

/* Header and footer */
.site-head {
  border-bottom-color: var(--line);
  background: rgba(248, 244, 234, 0.93);
  color: var(--ink);
}

.brand-stamp {
  border-radius: 9px;
  background: var(--ink);
  color: var(--bone-2);
  transform: none;
}

.brand-type small,
.nav-en {
  color: var(--muted);
}

.nav-link.is-active .nav-cn {
  color: var(--ink);
}

.nav-link::after {
  background: var(--acid);
}

.head-login,
.head-user,
.head-admin,
.head-logout {
  color: var(--ink);
}

.head-admin {
  border-color: var(--line-strong);
}

.head-cta {
  border-radius: 999px;
  background: var(--acid);
  color: var(--bone-2);
}

.head-cta:hover {
  background: var(--ink);
  color: var(--bone-2);
}

.menu-toggle span {
  background: var(--ink);
}

.mobile-menu {
  border-color: var(--line);
  background: var(--bone-2);
  color: var(--ink);
}

.site-foot {
  border-top: 1px solid var(--line);
  background: #eae2d4;
  color: var(--ink);
}

.foot-brand strong,
.foot-links a,
.foot-meta {
  color: var(--ink);
}

.foot-brand small,
.foot-meta,
.foot-line,
.foot-links a {
  color: var(--muted-dark);
}

.foot-brand .brand-stamp {
  background: var(--ink);
  color: var(--bone-2);
}

.foot-line {
  border-color: var(--line);
}

/* Map shell */
.map-app,
.map-stage,
.map-canvas,
.leaflet-container {
  background: #e9e4d8;
}

.map-panel {
  border-right: 1px solid var(--line);
  background: var(--bone-2);
  color: var(--ink);
}

.panel-head {
  border-bottom-color: var(--line);
  background: rgba(248, 244, 234, 0.96);
}

.live-pill {
  border-color: var(--line);
  background: #edf0e8;
  color: var(--acid);
}

.panel-user,
.panel-login {
  color: var(--ink);
}

.panel-scroll {
  scrollbar-color: #b9b09f transparent;
}

.panel-hero h1 {
  color: var(--ink);
}

.panel-hero h1 em {
  color: var(--acid);
}

.panel-lede {
  color: var(--muted-dark);
}

.panel-stats {
  border-color: var(--line);
}

.panel-stats strong {
  color: var(--ink);
}

.panel-stats span {
  color: var(--muted);
}

.panel-filter {
  border-bottom-color: var(--line);
  background: #f3eee3;
}

.search-box {
  border-color: var(--line-strong);
  background: #fffdf7;
  color: var(--ink);
}

.search-box input {
  color: var(--ink);
}

.search-box input::placeholder {
  color: #9a9385;
}

.search-btn {
  border-radius: 7px;
  background: var(--ink);
  color: var(--bone-2);
}

.filter-row select {
  border-color: var(--line-strong);
  background: #fffdf7;
  color: var(--ink);
}

.filter-row select:focus {
  border-color: var(--acid);
}

.filter-row .select-arrow {
  color: var(--muted);
}

.chip span,
.check-chip span {
  border-color: var(--line-strong);
  background: #fbf8f1;
  color: var(--muted-dark);
}

.chip input:checked + span,
.check-chip input:checked + span {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bone-2);
}

.clear-link {
  color: var(--muted);
}

.clear-link:hover {
  color: var(--orange);
}

.panel-results {
  border-top-color: var(--line);
}

.list-order {
  color: var(--muted);
}

.spot-list {
  scrollbar-color: #b9b09f transparent;
}

.spot-card {
  border-color: var(--line);
  background: var(--bone-2);
  color: var(--ink);
}

.spot-card:hover {
  border-color: var(--line-strong);
  background: #fffdf8;
}

.spot-card.is-active {
  border-color: var(--ink);
  background: #fffdf8;
  box-shadow: inset 3px 0 0 var(--acid);
}

.spot-cover {
  border-right-color: var(--line);
  background: #e8e1d3;
}

.spot-name {
  color: var(--ink);
}

.spot-place,
.spot-line,
.spot-count,
.spot-card-foot {
  color: var(--muted-dark);
}

.spot-count b {
  color: var(--acid);
}

.spot-code {
  color: var(--muted);
}

.panel-feed {
  border-top-color: var(--line);
}

.feed-item {
  border-bottom-color: var(--line);
}

.feed-main strong {
  color: var(--ink);
}

.feed-main b {
  color: var(--acid);
}

.feed-main em,
.feed-time,
.feed-empty {
  color: var(--muted);
}

.panel-foot {
  border-top-color: var(--line);
  background: #f3eee3;
  color: var(--muted);
}

.panel-foot a {
  color: var(--muted-dark);
}

.panel-foot a:hover {
  color: var(--acid);
}

/* Map chrome */
.map-tag {
  text-shadow: none;
}

.map-tag-en {
  color: var(--ink);
}

.map-tag-cn {
  color: var(--muted-dark);
}

.map-tag-live {
  border-color: var(--line-strong);
  background: rgba(248, 244, 234, 0.9);
  color: var(--acid);
}

.map-tool,
.map-zoom {
  border-color: var(--line-strong);
  background: rgba(248, 244, 234, 0.92);
  color: var(--ink);
}

.map-tool:hover,
.map-zoom button:hover {
  border-color: var(--acid);
  background: var(--acid);
  color: var(--bone-2);
}

.map-zoom button {
  border-bottom-color: var(--line);
  color: var(--ink);
}

.map-legend {
  border-color: var(--line-strong);
  background: rgba(248, 244, 234, 0.92);
  color: var(--muted-dark);
}

.legend-title {
  color: var(--ink);
}

.legend-dots i {
  border-color: var(--acid);
}

.legend-dots .d1 { background: rgba(102, 117, 93, 0.12); }
.legend-dots .d2 { background: rgba(102, 117, 93, 0.26); }
.legend-dots .d3 { background: rgba(102, 117, 93, 0.44); border-color: var(--acid); }
.legend-dots .d4 { background: rgba(102, 117, 93, 0.66); border-color: var(--acid); }
.legend-dots .d5 { background: var(--orange); border-color: var(--orange); }

.legend-scale,
.legend-types {
  color: var(--muted);
}

.legend-types {
  border-top-color: var(--line);
}

.map-coords {
  background: rgba(248, 244, 234, 0.92);
  color: var(--muted-dark);
}

.map-add {
  border-radius: 999px;
  background: var(--ink);
  color: var(--bone-2);
  box-shadow: 0 7px 18px rgba(37, 34, 28, 0.18);
}

.map-add:hover {
  box-shadow: 0 9px 22px rgba(37, 34, 28, 0.22);
  transform: none;
}

.map-disclaimer {
  border-top-color: var(--line);
  background: rgba(248, 244, 234, 0.94);
  color: var(--muted);
}

.map-toast {
  border-color: var(--acid);
  background: var(--bone-2);
  color: var(--ink);
}

.map-canvas .leaflet-tile-pane,
.pick-map .leaflet-tile-pane {
  filter: saturate(0.5) contrast(0.98) brightness(1.02);
}

.leaflet-control-attribution {
  background: rgba(248, 244, 234, 0.86) !important;
  color: var(--muted) !important;
}

.leaflet-control-attribution a {
  color: var(--muted-dark) !important;
}

.leaflet-popup-content-wrapper {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--bone-2);
  color: var(--ink);
  box-shadow: 0 18px 42px rgba(37, 34, 28, 0.16);
}

.leaflet-popup-tip {
  border-color: var(--line-strong);
  background: var(--bone-2);
}

.leaflet-popup-close-button {
  color: var(--muted) !important;
}

.leaflet-popup-close-button:hover {
  color: var(--ink) !important;
}

.map-pop-name {
  color: var(--ink);
}

.map-pop-meta {
  color: var(--muted);
}

.map-pop-foot {
  border-top-color: var(--line);
  color: var(--muted);
}

.map-pop-foot a {
  color: var(--acid);
}

.map-pop-hint {
  color: var(--muted);
}

.map-pop-status.status-open {
  color: var(--acid);
}

.map-pop-status.status-guarded {
  color: #a85f43;
}

.map-pop-status.status-construction {
  color: #9b7a34;
}

.map-pop-status.status-flooded {
  color: #477a91;
}

.spot-pin {
  border-color: var(--pin-color, var(--acid));
  background: var(--bone-2);
  box-shadow: 0 2px 7px rgba(37, 34, 28, 0.22);
}

.spot-pin b {
  color: var(--pin-color, var(--acid));
  text-shadow: none;
}

.spot-pin-wrap:hover .spot-pin {
  box-shadow: 0 4px 12px rgba(37, 34, 28, 0.22), 0 0 0 4px rgba(102, 117, 93, 0.13);
}

.spot-pin.diff-5 {
  box-shadow: 0 2px 7px rgba(37, 34, 28, 0.22), 0 0 0 3px rgba(177, 107, 78, 0.2);
}

.spot-cluster span {
  border-color: var(--acid);
  background: var(--bone-2);
  color: var(--acid);
  box-shadow: 0 0 0 5px rgba(102, 117, 93, 0.12);
}

.pin-tooltip {
  border-color: var(--line-strong) !important;
  background: var(--bone-2) !important;
  color: var(--ink) !important;
  box-shadow: 0 7px 18px rgba(37, 34, 28, 0.14) !important;
}

.pin-tooltip::before {
  border-top-color: var(--line-strong) !important;
}

.pin-tooltip-name {
  color: var(--ink);
}

.city-label {
  color: var(--muted-dark);
  text-shadow: 0 1px 0 #fff, 0 0 7px rgba(255, 255, 255, 0.85);
}

.map-canvas.is-city-zoom .city-label.is-active {
  color: var(--acid);
}

/* Art covers */
.art-cover {
  background-color: #e8e1d3;
  background-image:
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.65), transparent 42%),
    linear-gradient(140deg, #f5f0e5 0%, #e2dacb 100%);
  color: var(--spot-color, var(--acid));
}

.art-grid {
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(37, 34, 28, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 34, 28, 0.1) 1px, transparent 1px);
}

.art-glyph {
  opacity: 0.74;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.7);
}

.art-word {
  opacity: 0.76;
}

.art-code,
.art-note {
  color: rgba(37, 34, 28, 0.52);
}

.art-stairs {
  background-image:
    repeating-linear-gradient(135deg, transparent 0 13px, rgba(37, 34, 28, 0.1) 13px 15px),
    linear-gradient(140deg, #f5f0e5 0%, #e2dacb 100%);
}

.art-ledge {
  background-image:
    repeating-linear-gradient(90deg, transparent 0 22px, rgba(37, 34, 28, 0.08) 22px 24px),
    linear-gradient(160deg, #f5f0e5 0%, #e1d8c8 100%);
}

.art-rail {
  background-image:
    repeating-linear-gradient(74deg, transparent 0 16px, rgba(37, 34, 28, 0.11) 16px 17px),
    linear-gradient(120deg, #f5f0e5 0%, #e2dacb 100%);
}

.art-bank {
  background-image:
    linear-gradient(155deg, transparent 42%, rgba(37, 34, 28, 0.1) 42% 44%, transparent 44%),
    linear-gradient(140deg, #f5f0e5 0%, #e2dacb 100%);
}

.art-bowl {
  background-image:
    radial-gradient(ellipse at 50% 115%, transparent 34%, rgba(37, 34, 28, 0.1) 35% 37%, transparent 38%),
    radial-gradient(ellipse at 50% 125%, transparent 48%, rgba(37, 34, 28, 0.08) 49% 51%, transparent 52%),
    linear-gradient(140deg, #f5f0e5 0%, #e1d8c8 100%);
}

.art-flat {
  background-image:
    repeating-linear-gradient(0deg, transparent 0 18px, rgba(37, 34, 28, 0.07) 18px 19px),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(37, 34, 28, 0.07) 18px 19px),
    linear-gradient(140deg, #f5f0e5 0%, #e2dacb 100%);
}

.art-hill {
  background-image:
    repeating-radial-gradient(circle at 110% 110%, transparent 0 18px, rgba(37, 34, 28, 0.09) 18px 20px),
    linear-gradient(140deg, #f5f0e5 0%, #e2dacb 100%);
}

.art-gap {
  background-image:
    linear-gradient(102deg, transparent 44%, rgba(37, 34, 28, 0.16) 44% 56%, transparent 56%),
    repeating-linear-gradient(90deg, rgba(37, 34, 28, 0.06) 0 1px, transparent 1px 17px),
    linear-gradient(140deg, #f5f0e5 0%, #e2dacb 100%);
}

/* Picker */
.pick-map-wrap {
  border-color: var(--line-strong);
  background: var(--bone-2);
}

.pick-map-top,
.pick-map-hint,
.pick-nudge {
  border-color: var(--line);
  background: #f3eee3;
  color: var(--muted-dark);
}

.pick-state,
.pick-readout,
.pick-nudge-note {
  color: var(--muted-dark);
}

.pick-state.is-set {
  color: var(--acid);
}

.pick-state.is-set i {
  background: var(--acid);
  box-shadow: none;
}

.pick-state.is-error {
  color: var(--orange);
}

.pick-btn {
  border-color: var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  font-family: var(--font-soft);
  font-size: 9px;
  letter-spacing: 0;
}

.pick-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.pick-btn.is-on {
  border-color: var(--acid);
  background: var(--acid);
  color: var(--bone-2);
}

.pick-btn-quiet {
  color: var(--muted);
}

.pick-nudge-pad button {
  border-color: var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
}

.pick-nudge-pad button:hover {
  border-color: var(--acid);
  background: var(--acid);
  color: var(--bone-2);
}

.pick-pin {
  border-color: var(--acid);
  background: var(--bone-2);
  box-shadow: 0 0 0 5px rgba(102, 117, 93, 0.14), 0 2px 7px rgba(37, 34, 28, 0.18);
}

.pick-pin b {
  color: var(--acid);
}

.pick-pin-label {
  border-radius: 999px;
  background: var(--ink);
  color: var(--bone-2);
  box-shadow: 0 4px 10px rgba(37, 34, 28, 0.16);
}

.mini-btn {
  border-color: var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
}

.mini-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}

/* Spot detail */
.spot-page {
  background: var(--bone);
  color: var(--ink);
}

.spot-hero {
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.7), transparent 38%),
    linear-gradient(135deg, #f6f1e6 0%, #e9e1d2 100%);
  color: var(--ink);
}

.spot-hero::before {
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(37, 34, 28, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 34, 28, 0.055) 1px, transparent 1px);
}

.spot-hero::after {
  color: rgba(37, 34, 28, 0.035);
}

.crumbs,
.crumbs span {
  color: var(--muted);
}

.crumbs a:hover {
  color: var(--acid);
}

.spot-hero .eyebrow {
  color: var(--muted);
}

.spot-address {
  color: var(--muted-dark);
}

.spot-intro {
  color: var(--muted-dark);
}

.spot-flags .code-tag {
  color: var(--acid);
}

.spot-flags .status-tag {
  border-color: var(--line-strong);
  color: var(--muted-dark);
}

.spot-flags .status-open {
  border-color: rgba(102, 117, 93, 0.35);
  background: rgba(102, 117, 93, 0.08);
  color: var(--acid);
}

.spot-flags .status-guarded {
  border-color: rgba(177, 107, 78, 0.35);
  background: rgba(177, 107, 78, 0.08);
  color: #9d5d43;
}

.spot-flags .status-construction {
  border-color: rgba(155, 122, 52, 0.35);
  background: rgba(155, 122, 52, 0.08);
  color: #8b6b2c;
}

.spot-flags .status-flooded {
  border-color: rgba(71, 122, 145, 0.32);
  background: rgba(71, 122, 145, 0.07);
  color: #477a91;
}

.spot-flags .status-removed {
  border-color: var(--line-strong);
  color: var(--muted);
}

.seed-tag,
.stale-tag {
  border-color: var(--line-strong);
  color: var(--muted);
}

.stale-tag {
  border-color: rgba(177, 107, 78, 0.42);
  color: var(--orange);
}

.spot-hero .tag {
  border-color: var(--line-strong);
  color: var(--muted-dark);
}

.spot-hero .tag-diff {
  border-color: var(--acid);
  background: var(--acid);
  color: var(--bone-2);
}

.spot-hero .tag-diff b {
  color: var(--bone-2);
}

.spot-hero .tag-risk {
  border-color: rgba(177, 107, 78, 0.38);
  background: rgba(177, 107, 78, 0.08);
  color: #9d5d43;
}

.visual-frame {
  border-color: var(--line-strong);
  background: #e8e1d3;
  box-shadow: 14px 14px 0 rgba(37, 34, 28, 0.045);
}

.visual-frame::before {
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 1px 3px rgba(37, 34, 28, 0.1);
}

.visual-stamp {
  border-color: var(--acid);
  background: rgba(248, 244, 234, 0.94);
  color: var(--acid);
  box-shadow: 0 5px 14px rgba(37, 34, 28, 0.1);
}

.visual-code {
  background: rgba(248, 244, 234, 0.92);
  color: var(--ink);
}

.visual-caption {
  border-top-color: var(--line);
  color: var(--muted);
}

.visual-caption b {
  color: var(--ink);
}

.review-banner {
  background: var(--acid);
  color: var(--bone-2);
}

.review-banner .btn-ghost {
  border-color: rgba(252, 250, 244, 0.55);
  color: var(--bone-2);
}

.diff-bars i {
  background: rgba(102, 117, 93, 0.25);
}

.diff-bars i.on {
  background: var(--acid);
}

/* Cards, clips, profile */
.ascent-head .avatar {
  border-color: var(--line-strong);
  background: var(--ink);
  color: var(--bone-2);
}

.clip-link {
  border-color: var(--line-strong);
  background: #f0eadf;
  color: var(--ink);
}

.clip-link:hover {
  background: #e9e2d4;
}

.clip-link small {
  color: var(--muted);
}

.clip-icon {
  border-color: var(--acid);
  color: var(--acid);
}

.clip-arrow {
  color: var(--acid);
}

.clip-photo {
  border-color: var(--line);
  background: #e8e1d3;
}

.clip-embed {
  border-color: var(--line-strong);
  background: #e8e1d3;
}

.status-option span {
  border-color: var(--line-strong);
  background: #fbf8f1;
  color: var(--muted-dark);
}

.status-option input:checked + span {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bone-2);
}

.status-form {
  border-color: var(--line);
  background: rgba(240, 234, 223, 0.55);
}

.status-note-row input {
  border-color: var(--line-strong);
  background: #fffdf7;
  color: var(--ink);
}

.status-note-row input:focus {
  border-color: var(--acid);
  box-shadow: 0 0 0 3px rgba(102, 117, 93, 0.15);
}

.profile-hero {
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.7), transparent 38%),
    linear-gradient(135deg, #f6f1e6 0%, #e9e1d2 100%);
  color: var(--ink);
}

.profile-grid {
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(37, 34, 28, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 34, 28, 0.045) 1px, transparent 1px);
}

.profile-avatar {
  border-color: var(--acid);
  background: rgba(102, 117, 93, 0.1);
  color: var(--acid);
}

.profile-meta {
  color: var(--muted);
}

.profile-meta span:nth-child(even) {
  color: var(--muted-dark);
}

.profile-bio {
  color: var(--muted-dark);
}

.profile-stats {
  border-top-color: var(--line);
}

.profile-stats span {
  color: var(--muted);
}

.profile-stats strong {
  color: var(--acid);
}

.spot-list-grid .spot-card {
  background: var(--bone-2);
  color: var(--ink);
}

/* Auth */
.auth-poster {
  border-right: 1px solid var(--line);
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.75), transparent 36%),
    linear-gradient(145deg, #f2ecdf 0%, #e5dccb 100%);
  color: var(--ink);
}

.auth-poster::before {
  opacity: 0.36;
  background-image:
    linear-gradient(rgba(37, 34, 28, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 34, 28, 0.05) 1px, transparent 1px);
}

.poster-lines {
  border-color: rgba(102, 117, 93, 0.2);
  box-shadow:
    0 0 0 40px rgba(102, 117, 93, 0.04),
    0 0 0 120px rgba(102, 117, 93, 0.03),
    0 0 0 220px rgba(102, 117, 93, 0.02);
}

.auth-back {
  color: var(--muted);
}

.auth-back:hover {
  color: var(--acid);
}

.auth-poster-main h1 em {
  color: var(--acid);
}

.auth-poster-main > p:last-of-type {
  color: var(--muted-dark);
}

.poster-stats {
  border-top-color: var(--line);
}

.poster-stats strong {
  color: var(--acid);
}

.poster-stats span,
.auth-poster-foot {
  color: var(--muted);
}

.auth-poster-foot {
  border-top-color: var(--line);
}

.auth-form-wrap {
  background: var(--bone);
}

/* Forms and feedback */
.field label,
.auth-form .field label {
  color: var(--muted-dark);
}

.field small,
.field-fine {
  color: var(--muted);
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.auth-form input:focus,
.profile-form input:focus,
.profile-form select:focus,
.profile-form textarea:focus {
  border-color: var(--acid);
  box-shadow: 0 0 0 3px rgba(102, 117, 93, 0.14);
}

.form-alert {
  border-color: var(--orange);
  background: #f8e9e1;
  color: #6e3524;
}

.form-alert span {
  background: var(--orange);
}

.dev-code {
  border-color: var(--line-strong);
  background: #efeadf;
}

.code-btn {
  border-color: var(--line-strong);
  color: var(--ink);
}

.code-btn:hover {
  border-color: var(--acid);
  background: var(--acid);
  color: var(--bone-2);
}

.flash {
  background: var(--ink);
  color: var(--bone-2);
}

.flash-close:hover {
  color: var(--bone-2);
}

/* Admin */
.admin-head {
  border-bottom-color: var(--ink);
}

.admin-counts {
  border-color: var(--line);
  background: var(--line);
}

.admin-counts > div {
  background: var(--bone-2);
}

.review-card {
  border-color: var(--line);
  background: var(--bone-2);
}

.review-cover {
  border-right-color: var(--line);
  background: #e8e1d3;
}

.admin-table th {
  border-color: var(--line);
  background: #f0eadf;
  color: var(--muted-dark);
}

.admin-table td {
  border-bottom-color: var(--line);
}

.admin-table tbody tr:hover {
  background: rgba(102, 117, 93, 0.045);
}

.admin-table code {
  background: #f0eadf;
  color: var(--ink);
}

.table-wrap {
  border-color: var(--line);
}

.review-pill {
  border-color: var(--line-strong);
  color: var(--muted-dark);
}

.review-pill.is-approved {
  border-color: rgba(102, 117, 93, 0.35);
  background: rgba(102, 117, 93, 0.08);
  color: var(--acid);
}

.review-pill.is-pending {
  border-color: rgba(155, 122, 52, 0.35);
  background: rgba(155, 122, 52, 0.08);
  color: #8b6b2c;
}

.review-pill.is-rejected {
  border-color: rgba(177, 107, 78, 0.35);
  background: rgba(177, 107, 78, 0.08);
  color: #9d5d43;
}

.admin-head-link {
  border-color: var(--line-strong);
  color: var(--ink);
}

.admin-head-link:hover {
  border-color: var(--ink);
  background: rgba(37, 34, 28, 0.04);
}

.admin-search .field input,
.admin-search .field select {
  background: #fffdf7;
}

.admin-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 26px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(252, 250, 244, 0.7);
  width: fit-content;
  max-width: 100%;
}

.admin-subnav a {
  padding: 7px 13px;
  border-radius: 999px;
  font-family: var(--font-soft);
  font-size: 10px;
  font-weight: 600;
  color: var(--muted-dark);
}

.admin-subnav a:hover {
  background: rgba(37, 34, 28, 0.05);
  color: var(--ink);
}

.admin-subnav a.is-active {
  background: var(--ink);
  color: var(--bone-2);
}

.admin-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.table-actions form {
  margin: 0;
}

.table-actions .btn {
  padding: 6px 10px;
  font-size: 9px;
}

.link-danger {
  color: var(--orange);
  border-color: rgba(177, 107, 78, 0.35);
}

.link-danger:hover {
  border-color: var(--orange);
  background: rgba(177, 107, 78, 0.06);
  color: #8f4f37;
}

.table-muted,
.table-note {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.check-chip-wide {
  grid-column: 1 / -1;
}

.admin-person {
  display: flex;
  align-items: center;
  gap: 9px;
}

.admin-person .avatar {
  border-color: var(--line-strong);
  background: var(--ink);
  color: var(--bone-2);
}

.side-danger {
  border-color: rgba(177, 107, 78, 0.35);
  background: #f8ece6;
}

.side-danger .side-label {
  color: #9d5d43;
}

.edit-cover img {
  border: 1px solid var(--line);
}

/* Map app layout guards */
.map-panel .site-head,
.map-panel .site-foot {
  position: static;
}

.map-mobile-head {
  border-bottom: 1px solid var(--line);
  background: rgba(248, 244, 234, 0.96);
  backdrop-filter: blur(12px);
}

.map-mobile-head .brand-type small {
  color: var(--muted);
}

.map-mobile-login {
  color: var(--ink);
}

@media (max-width: 900px) {
  .admin-subnav {
    border-radius: 14px;
  }

  .admin-head-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .btn {
    font-size: 10px;
  }

  .hero-actions .btn {
    font-size: 11px;
  }

  .admin-subnav {
    width: 100%;
  }

  .admin-subnav a {
    flex: 1 1 auto;
    text-align: center;
  }
}

/* Light theme contrast fixes */
.type-choice input:checked + .type-choice-inner b {
  color: #f1f3ea;
}

.type-choice input:checked + .type-choice-inner strong {
  color: var(--bone-2);
}

.type-choice input:checked + .type-choice-inner small {
  color: rgba(248, 244, 234, 0.64);
}

.diff-picker input:checked + span {
  color: var(--bone-2);
}

.diff-picker input:checked + span b {
  color: #e2e7d9;
}

.admin-head h1 {
  line-height: 1.04;
  margin-bottom: 16px;
}

.admin-head .mast-lead {
  margin-top: 0;
}

.admin-table {
  font-size: 10px;
}

.admin-table th {
  font-size: 8px;
}

.admin-table td {
  font-size: 10px;
}

.admin-table .btn {
  font-size: 9px;
}

.map-legend {
  font-size: 8px;
  color: var(--muted-dark);
  background: rgba(248, 244, 234, 0.94);
}

.legend-title {
  font-size: 8px;
}

.legend-scale,
.legend-types {
  color: var(--muted-dark);
}

.map-coords {
  font-size: 8px;
  color: var(--muted-dark);
}

@media (max-width: 640px) {
  .map-tag {
    display: none;
  }

  .map-legend {
    bottom: 42px;
    left: 14px;
    padding: 8px 9px;
  }

  .map-coords {
    font-size: 7px;
  }

  .admin-subnav {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 4px;
    border-radius: 14px;
    scrollbar-width: none;
  }

  .admin-subnav::-webkit-scrollbar {
    display: none;
  }

  .admin-subnav a {
    flex: 0 0 auto;
    padding: 6px 9px;
    font-size: 9px;
  }
}

/* RIDER PROFILE / 2026-11 */
.rider-page {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 38px 0 80px;
}

.rider-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 82% 12%, rgba(102, 117, 93, .16), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, .72), rgba(232, 225, 211, .76));
  box-shadow: 0 18px 50px rgba(37, 34, 28, .06);
}

.rider-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 34, 28, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 34, 28, .045) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(100deg, #000, transparent 72%);
  pointer-events: none;
}

.rider-hero-inner {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 26px;
  padding: 38px 40px 34px;
}

.rider-avatar {
  flex: 0 0 auto;
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-display);
  font-size: 42px;
  line-height: 1;
  box-shadow: inset 0 0 0 6px rgba(248, 244, 234, .12);
}

.rider-main {
  min-width: 0;
  flex: 1;
}

.rider-main h1 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 4px 0 6px;
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: .01em;
  color: var(--ink);
}

.rider-deleted {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--muted-dark);
  background: rgba(248, 244, 234, .7);
}

.rider-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 12px;
  font-family: var(--font-soft);
  font-size: 11px;
  color: var(--muted);
}

.rider-bio {
  max-width: 620px;
  margin: 0;
  font-family: var(--font-soft);
  font-size: 12px;
  line-height: 1.75;
  color: var(--muted-dark);
}

.rider-stats {
  display: flex;
  gap: 0;
  margin-top: 22px;
}

.rider-stats div {
  padding: 0 24px;
  border-left: 1px solid var(--line);
}

.rider-stats div:first-child {
  padding-left: 0;
  border-left: 0;
}

.rider-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 400;
  line-height: 1;
  color: var(--ink);
}

.rider-stats span {
  display: block;
  margin-top: 5px;
  font-family: var(--font-soft);
  font-size: 9px;
  letter-spacing: .08em;
  color: var(--muted);
}

.rider-actions {
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 0 0 auto;
}

.rider-tombstone {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 18px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(232, 225, 211, .62);
}

.rider-tombstone-mark {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
  color: var(--muted);
}

.rider-tombstone strong {
  font-family: var(--font-soft);
  font-size: 12px;
  color: var(--ink);
}

.rider-tombstone p {
  margin: 4px 0 0;
  font-family: var(--font-soft);
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted-dark);
}

.rider-section {
  margin-top: 50px;
}

.rider-section > .section-head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

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

.rider-ascent-grid .ascent-card {
  margin: 0;
  background: rgba(255, 255, 255, .48);
}

.rider-spot-grid {
  margin-top: 20px;
}

.ascent-author,
.creator-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(37, 34, 28, .22);
  text-underline-offset: 3px;
}

.ascent-author:hover,
.creator-link:hover {
  text-decoration-color: var(--ink);
}

.is-deleted {
  display: inline-flex;
  align-items: center;
  margin-left: 5px;
  padding: 1px 5px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--muted-dark);
  vertical-align: 1px;
}

/* ADMIN BATCH + DELETE */
.batch-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .46);
}

.section-more {
  font-family: var(--font-soft);
  font-size: 10px;
  color: var(--muted);
  text-decoration: none;
}

.batch-count {
  font-family: var(--font-soft);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--muted-dark);
}

.batch-count.is-error {
  color: var(--orange);
}

.batch-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.batch-actions .btn {
  padding: 7px 12px;
  font-size: 9.5px;
}

.batch-danger {
  color: var(--orange) !important;
  border-color: rgba(177, 107, 78, .35) !important;
}

.batch-check {
  width: 34px;
  text-align: center;
}

.batch-check input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--acid);
  cursor: pointer;
}

.admin-table .is-deleted-row {
  background: rgba(232, 225, 211, .28);
}

.btn-danger {
  background: var(--orange);
  color: #fffaf2;
  border-color: var(--orange);
}

.btn-danger:hover {
  background: #8f513b;
  border-color: #8f513b;
  color: #fffaf2;
}

.delete-rider-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 26px 0 22px;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, .5);
}

.delete-rider-person {
  display: flex;
  align-items: center;
  gap: 16px;
}

.delete-rider-person .avatar {
  width: 52px;
  height: 52px;
  font-size: 20px;
}

.delete-rider-person h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 3px 0 2px;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
}

.delete-rider-person p {
  margin: 0;
  font-family: var(--font-soft);
  font-size: 10px;
  color: var(--muted);
}

.delete-rider-stats {
  display: flex;
  gap: 24px;
}

.delete-rider-stats div {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.delete-rider-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
}

.delete-rider-stats span {
  display: block;
  margin-top: 4px;
  font-family: var(--font-soft);
  font-size: 9px;
  color: var(--muted);
}

.delete-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.delete-choice {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, .5);
}

.delete-choice.is-danger {
  border-color: rgba(177, 107, 78, .32);
  background: rgba(177, 107, 78, .055);
}

.delete-choice-kicker {
  font-family: var(--font-soft);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--muted);
}

.delete-choice h2 {
  margin: 8px 0 10px;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
}

.delete-choice p {
  flex: 1;
  margin: 0 0 22px;
  font-family: var(--font-soft);
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted-dark);
}

@media (max-width: 760px) {
  .rider-page {
    width: min(100% - 28px, 620px);
    padding-top: 22px;
  }

  .rider-hero-inner {
    flex-wrap: wrap;
    gap: 16px;
    padding: 24px 20px;
  }

  .rider-avatar {
    width: 68px;
    height: 68px;
    font-size: 28px;
  }

  .rider-main h1 {
    font-size: 40px;
  }

  .rider-actions {
    width: 100%;
    flex-direction: row;
  }

  .rider-actions .btn {
    flex: 1;
    text-align: center;
  }

  .rider-stats {
    margin-top: 16px;
  }

  .rider-stats div {
    padding: 0 16px;
  }

  .rider-ascent-grid {
    grid-template-columns: 1fr;
  }

  .batch-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .batch-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .batch-actions .btn {
    min-width: 0;
    padding: 7px 4px;
    font-size: 8.5px;
    letter-spacing: 0;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
  }

  .delete-rider-card {
    align-items: flex-start;
    flex-direction: column;
    padding: 20px;
  }

  .delete-rider-stats {
    width: 100%;
    gap: 0;
  }

  .delete-rider-stats div {
    flex: 1;
    padding-left: 0;
    border-left: 0;
  }

  .delete-choice-grid {
    grid-template-columns: 1fr;
  }
}
.ascent-author-id,
.creator-id {
  margin-left: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
}

.ascent-author-id:hover,
.creator-id:hover {
  color: var(--acid);
}

/* Homepage spot card: first click previews, second click opens the archive */
.spot-card.is-selectable {
  cursor: pointer;
}

.spot-card.is-selectable:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 2px;
}

.spot-card.is-selectable .spot-cover,
.spot-card.is-selectable .spot-card-body {
  grid-row: 1;
}

.spot-peek {
  display: none;
  grid-column: 1 / -1;
  padding: 12px 13px 13px;
  border-top: 1px solid var(--line);
  background: #fffdf8;
  color: var(--ink);
}

.spot-card.is-active .spot-peek {
  display: block;
}

.spot-peek[hidden] {
  display: none;
}

.spot-peek-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
}

.spot-peek-label,
.spot-peek-hint,
.spot-peek-note {
  font-family: var(--font-mono);
  font-size: 7px;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

.spot-peek-label {
  color: var(--muted);
}

.spot-peek-hint {
  color: var(--acid);
  white-space: nowrap;
}

.spot-peek-desc {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 9px;
  font-size: 11px;
  line-height: 1.55;
  color: var(--muted-dark);
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.spot-peek-meta {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin: 0 0 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}

.spot-peek-meta dt {
  margin-bottom: 2px;
  font-family: var(--font-mono);
  font-size: 6px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.spot-peek-meta dd {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9px;
  line-height: 1.4;
  color: var(--ink);
}

.spot-peek-note {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 640px) {
  .spot-peek {
    padding: 11px 12px 12px;
  }

  .spot-peek-meta {
    grid-template-columns: 1fr 1fr;
  }

  .spot-peek-meta div:last-child {
    grid-column: 1 / -1;
  }
}

/* PHOTO GALLERIES / STATUS PHOTO */
.visual-frame .photo-gallery {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  gap: 4px;
  background: var(--paper);
}

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

.photo-gallery.count-2 {
  grid-template-columns: 1fr 1fr;
}

.photo-gallery.count-3 {
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.photo-gallery.count-3 .item-1 {
  grid-row: 1 / 3;
}

.photo-item {
  display: block;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #ddd6c8;
}

.photo-item img {
  width: 100%;
  height: 100%;
  max-height: 620px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.photo-item:hover img {
  transform: scale(1.025);
}

.clip-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3px;
  margin-top: 10px;
  border: 1px solid var(--line);
  background: var(--paper);
  overflow: hidden;
}

.clip-gallery.count-2 {
  grid-template-columns: 1fr 1fr;
  height: 300px;
}

.clip-gallery.count-3 {
  grid-template-columns: 1.3fr 1fr;
  grid-template-rows: 1fr 1fr;
  height: 360px;
}

.clip-gallery.count-3 .item-1 {
  grid-row: 1 / 3;
}

.clip-photo-item {
  display: block;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #ddd6c8;
}

.clip-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.clip-photo-item:hover img {
  transform: scale(1.025);
}

.clip-gallery.count-1 .clip-photo-item img {
  max-height: 420px;
}

.dropzone-previews {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  margin-top: 10px;
}

.dropzone-previews img {
  width: 100%;
  height: 86px;
  object-fit: cover;
  display: block;
  border: 1px solid var(--line);
  background: var(--paper);
}

.dropzone-previews[hidden] {
  display: none;
}

.status-photo {
  display: block;
  width: min(220px, 100%);
  margin-top: 9px;
  border: 1px solid var(--line);
  background: var(--paper);
  overflow: hidden;
}

.status-photo img {
  width: 100%;
  height: auto;
  max-height: 240px;
  object-fit: cover;
  display: block;
}

.status-photo-pick {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.status-photo-pick input[type="file"] {
  max-width: 210px;
  font-family: var(--font-soft);
  font-size: 10px;
  color: var(--muted);
}

.status-photo-pick input[type="file"]::file-selector-button {
  margin-right: 7px;
  padding: 5px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-soft);
  font-size: 9.5px;
  cursor: pointer;
}

@media (max-width: 640px) {
  .photo-gallery {
    gap: 3px;
  }

  .photo-gallery.count-3 {
    grid-template-columns: 1.25fr 1fr;
  }

  .clip-gallery.count-2 {
    height: 230px;
  }

  .clip-gallery.count-3 {
    height: 280px;
  }

  .dropzone-previews img {
    height: 68px;
  }

  .status-note-row {
    flex-wrap: wrap;
  }

  .status-note-row input[type="text"] {
    flex-basis: 100%;
  }
}

/* ==== REVIEW SETTINGS / EXEMPTION / PROFILE / DIFFICULTY · 2026-11 ==== */
.review-exempt-cell .inline-form { display: inline; margin: 0; }
.mini-btn.is-on { background: var(--acid); border-color: var(--acid); color: var(--bone-2); }
.settings-card { background: var(--bone-2); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; max-width: 900px; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 17px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.setting-row:last-of-type { border-bottom: 0; }
.setting-copy { display: flex; flex-direction: column; gap: 5px; max-width: 640px; }
.setting-copy strong { font-size: 14px; letter-spacing: .02em; }
.setting-copy span { color: var(--muted); font-size: 11.5px; line-height: 1.7; }
.switch { position: relative; display: inline-flex; flex: 0 0 auto; width: 46px; height: 26px; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: var(--line-strong); transition: background .18s ease; }
.switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--bone-2); box-shadow: 0 1px 3px rgba(37,34,28,.25); transition: transform .18s ease; }
.switch input:checked + i { background: var(--acid); }
.switch input:checked + i::after { transform: translateX(20px); }
.switch input:focus-visible + i { outline: 2px solid var(--ink); outline-offset: 3px; }
.setting-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.setting-foot p { margin: 0; color: var(--muted); font-size: 11px; }
.setting-foot b { color: var(--ink); }
.admin-note { color: var(--muted); font-size: 11px; line-height: 1.75; max-width: 760px; margin: 0; }

/* Auth tabs and rights */
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 0 0 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.auth-tab { border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-family: var(--font-soft); font-size: 12px; font-weight: 650; padding: 9px 12px; cursor: pointer; }
.auth-tab.is-active { background: var(--ink); color: var(--bone-2); }
.auth-agree { display: flex; gap: 9px; align-items: flex-start; margin: 4px 0 14px; font-size: 10.5px; color: var(--muted); line-height: 1.65; }
.auth-agree input { margin-top: 3px; accent-color: var(--acid); }
.auth-rights { margin: 20px 0 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.auth-rights .eyebrow { margin-bottom: 10px; }
.auth-rights ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.auth-rights li { display: grid; grid-template-columns: 94px 1fr; gap: 10px; font-size: 10.5px; line-height: 1.6; color: var(--muted); }
.auth-rights li b { color: var(--ink); font-size: 10.5px; }
.auth-rights li span { min-width: 0; }

/* Profile avatar and social */
.profile-avatar img, .rider-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.profile-socials, .rider-socials { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.profile-socials a { color: var(--ink); border-bottom: 1px solid var(--line-strong); font-size: 10.5px; padding-bottom: 1px; }
.avatar-edit-row { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.avatar-edit-preview { width: 66px; height: 66px; flex: 0 0 auto; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--acid); color: var(--bone-2); font-family: var(--font-display); font-size: 28px; }
.avatar-edit-row .field { margin: 0; flex: 1; }
.field-fine { color: var(--muted); font-size: 10px; margin: -2px 0 12px; }

/* Difficulty: pale green to deep red */
.spot-pin { background: var(--pin-bg, var(--bone-2)); border-color: var(--pin-color, var(--acid)); }
.spot-pin b { color: var(--pin-text, var(--ink)); }
.spot-pin::after { border-color: color-mix(in srgb, var(--pin-color, var(--acid)) 45%, transparent); }
.spot-pin-wrap:hover .spot-pin { box-shadow: 0 4px 12px rgba(37,34,28,.28), 0 0 0 4px color-mix(in srgb, var(--pin-color, var(--acid)) 24%, transparent); }
.spot-diff i.on { background: var(--diff-color, var(--acid)); }
.tag-diff { background: var(--diff-color, var(--acid)); color: var(--diff-text, #182016); border-color: transparent; }
.tag-diff b { color: inherit; }
.visual-stamp { --stamp-color: var(--diff-color, var(--acid)); }
.visual-stamp .diff-bars i.on { background: var(--stamp-color, var(--acid)); }
.visual-stamp strong { color: var(--stamp-color, var(--ink)); }
.legend-dots i { background: var(--diff-color, var(--acid)); opacity: .38; }
.legend-dots i.d5 { opacity: 1; }

/* Status photo gallery (up to 3) */
.status-gallery { display: grid; gap: 6px; margin-top: 9px; max-width: 560px; }
.status-gallery.count-1 { grid-template-columns: minmax(0, 280px); }
.status-gallery.count-2 { grid-template-columns: 1fr 1fr; }
.status-gallery.count-3 { grid-template-columns: repeat(3, 1fr); }
.status-gallery .status-photo { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.status-gallery .status-photo img { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .2s ease; }
.status-gallery .status-photo:hover img { transform: scale(1.025); }

@media (max-width: 760px) {
  .setting-row { align-items: flex-start; gap: 14px; }
  .auth-rights li { grid-template-columns: 1fr; gap: 2px; }
  .avatar-edit-row { align-items: flex-start; }
}
@media (max-width: 640px) {
  .setting-copy span { font-size: 10.5px; }
  .status-gallery.count-1 { grid-template-columns: minmax(0, 1fr); }
  .status-gallery.count-3 { grid-template-columns: 1fr 1fr; }
  .status-gallery.count-3 .status-photo:first-child { grid-column: 1 / -1; }
  .status-gallery .status-photo img { aspect-ratio: 4 / 3; }
  .auth-rights { padding: 13px 14px; }
  .auth-rights li { grid-template-columns: 84px 1fr; }
}
.spot-hero .tag-diff { background: var(--diff-color, var(--acid)); color: var(--diff-text, #182016); border-color: transparent; }
.spot-hero .tag-diff b { color: inherit; }
.legend-dots i.d1, .legend-dots i.d2, .legend-dots i.d3, .legend-dots i.d4, .legend-dots i.d5 { background: var(--diff-color, var(--acid)); }
.legend-dots i.d1, .legend-dots i.d2, .legend-dots i.d3, .legend-dots i.d4 { opacity: .55; }
.diff-picker input:checked + span { background: var(--diff-color, var(--acid)); color: var(--diff-text, #182016); border-color: transparent; }
.diff-picker input:checked + span b { color: inherit; }
.auth-agree input[type="checkbox"] { width: 15px; height: 15px; flex: 0 0 15px; margin: 2px 0 0; padding: 0; }
