:root {
  --bg: #f4f1ea;
  --paper: #fffdf8;
  --ink: #1d2428;
  --muted: #667176;
  --line: #ded8cc;
  --green: #14618a;
  --green-bg: #89CFF0;
  --mint: #dceef7;
  --coral: #d85f45;
  --amber: #f0b85a;
  --water: #b9d8df;
  /* 结构令牌(深色模式打底):--surface 深色下需翻转,--on-accent 恒为白字 */
  --surface: #fff;
  --on-accent: #fff;
  --shadow: 0 18px 60px rgba(41, 46, 43, 0.14);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  background:
    linear-gradient(120deg, rgba(16, 97, 138, 0.08), transparent 38%),
    var(--bg);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: block;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  padding: 18px;
  padding-top: calc(18px + var(--safe-top));
  padding-right: calc(18px + var(--safe-right));
  padding-bottom: calc(18px + var(--safe-bottom));
  padding-left: calc(18px + var(--safe-left));
  overflow: hidden;
}

.map-stage,
.detail-panel {
  min-width: 0;
  min-height: 0;
}

.map-stage {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.topbar {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 200px minmax(260px, 1fr) auto auto auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand .brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  color: var(--green-ink);
  background: var(--green-bg);
  font-family: "PingFang SC", "Microsoft YaHei", "Heiti SC", "SimHei", sans-serif;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}

.brand strong,
.brand span {
  display: block;
}

.brand span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.search-wrap {
  position: relative;
}

#searchInput {
  width: 100%;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  padding: 0 16px;
  outline: none;
  box-shadow: 0 10px 28px rgba(61, 54, 46, 0.08);
}

#searchInput:focus {
  border-color: var(--green-ink);
}

.suggestions {
  position: absolute;
  top: 52px;
  left: 0;
  right: 0;
  z-index: 10;
  overflow: auto;
  max-height: min(62vh, 520px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.search-guide {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
}

.search-guide > strong {
  font-size: 14px;
}

.search-guide-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.search-guide-hint {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.search-guide .search-guide-spot {
  width: 100%;
  justify-content: space-between;
}

.search-guide-request {
  min-height: 38px;
  border: 1px solid rgba(16, 97, 138, 0.35);
  border-radius: 8px;
  background: var(--green-bg);
  color: var(--green-ink);
  font-size: 13px;
  font-weight: 800;
  padding: 8px 12px;
}

.suggestion-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid #eee7db;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.suggestion-item:last-child {
  border-bottom: 0;
}

.suggestion-item:hover {
  background: var(--mint);
}

.suggestion-item.active,
.network-suggestion-main.active {
  background: rgba(16, 97, 138, 0.13);
  box-shadow: inset 3px 0 0 var(--green);
}

.suggestion-group-label {
  padding: 8px 14px 6px;
  border-bottom: 1px solid #eee7db;
  background: #f6f2ea;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.suggestion-item span {
  color: var(--muted);
  font-size: 12px;
}

.network-suggestion {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  border-bottom: 1px solid #eee7db;
  background: rgba(235, 244, 241, 0.58);
}

.network-suggestion-main,
.network-suggestion-add {
  border: 0;
  background: transparent;
}

.network-suggestion-main {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 11px 14px;
  text-align: left;
}

.network-suggestion-main strong,
.network-suggestion-address {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.network-suggestion-address {
  color: var(--muted);
  font-size: 11px;
}

.network-suggestion-add {
  margin: 8px;
  border-radius: 7px;
  background: var(--green-bg);
  color: var(--green-ink);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
}

.network-search-action {
  background: rgba(36, 119, 179, 0.07);
}

.layer-switch {
  display: flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.78);
}

.layer-btn {
  min-width: 58px;
  height: 36px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
}

.layer-btn.active {
  color: var(--green-ink);
  background: var(--green-bg);
}

.city-layer-wrap {
  position: relative;
}

.city-layer-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 600;
  min-width: 120px;
  display: grid;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 8px 18px rgba(40, 45, 42, 0.16);
}

.city-layer-menu[hidden] {
  display: none;
}

.city-layer-menu button {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  padding: 8px 10px;
}

.city-layer-menu button:hover {
  background: var(--mint);
}

.add-spot-btn {
  height: 46px;
  min-width: 92px;
  border: 0;
  border-radius: 8px;
  color: var(--on-accent);
  background: var(--coral);
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(216, 95, 69, 0.22);
}

.data-tools {
  display: flex;
  gap: 6px;
  align-items: center;
}

.tool-btn {
  height: 38px;
  min-width: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.88);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.tool-btn:hover {
  border-color: rgba(16, 97, 138, 0.42);
  color: var(--green-ink);
  background: var(--paper);
}

.account-button {
  min-width: 78px;
  border-color: rgba(16, 97, 138, 0.28);
  color: var(--green-ink);
}

.review-center-button {
  min-width: 78px;
  border-color: rgba(16, 97, 138, 0.32);
  background: rgba(232, 243, 236, 0.72);
  color: var(--green-ink);
}

.review-center-button:hover {
  border-color: rgba(16, 97, 138, 0.55);
  background: var(--mint);
  color: var(--green-ink);
}

.account-button.is-admin {
  border-color: rgba(216, 95, 69, 0.34);
  color: var(--coral);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.map-card {
  position: relative;
  z-index: 0;
  flex: 1;
  overflow: hidden;
  height: auto;
  min-height: min(420px, 58vh);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.4) 1px, transparent 1px),
    var(--water);
  background-size: 40px 40px;
  box-shadow: var(--shadow);
}

.map-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  cursor: grab;
}

.map-svg[hidden],
.online-map[hidden] {
  display: none;
}

.online-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #eef1f3;
  cursor: grab;
}

.online-map.is-adding,
.online-map.is-adding .leaflet-grab {
  cursor: crosshair;
}

.map-mode-switch {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(222, 216, 204, 0.92);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 8px 18px rgba(40, 45, 42, 0.12);
}

.map-mode-switch button {
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
}

.map-mode-switch button.active {
  background: var(--green-bg);
  color: var(--green-ink);
}

.map-mode-switch button:disabled {
  opacity: 0.55;
}

.base-map-style-select {
  max-width: 128px;
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  padding: 4px 6px;
}

.mobile-menu-toggle {
  display: none;
  min-width: 38px;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
}

.mobile-filter-toggle {
  display: none;
  align-self: flex-start;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 800;
}

.back-to-library {
  display: none;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
}

.map-mode-switch span {
  max-width: 180px;
  padding: 0 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.online-map .leaflet-control-attribution {
  max-width: min(72vw, 520px);
  background: rgba(255, 255, 255, 0.82);
  font-size: 10px;
  color: #8a9198;
}

.online-map .photo-map-tile {
  image-rendering: auto;
}

.online-map .leaflet-tooltip {
  border: 0;
  border-radius: 6px;
  background: rgba(255, 253, 248, 0.94);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(40, 45, 42, 0.14);
}

.map-svg.is-dragging {
  cursor: grabbing;
}

.map-svg.is-adding {
  cursor: crosshair;
}

.map-region {
  fill: #f6f7f4;
  stroke: #c3c8cd;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.map-region.guangzhou {
  fill: #eef3ec;
  stroke: #9db3a2;
}

.map-region.shenzhen,
.map-region.foshan,
.map-region.dongguan,
.map-region.hangzhou,
.map-region.chengdu,
.map-region.chongqing {
  fill: #eef3ec;
  stroke: #9db3a2;
}

.map-region:hover {
  fill: #e6efe0;
}

.region-label {
  fill: rgba(43, 51, 55, 0.8);
  font-size: 12px;
  font-weight: 800;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.78);
  stroke-width: 2.5px;
  text-anchor: middle;
  pointer-events: none;
}

.spot-pin {
  fill: var(--coral);
  stroke: #fff;
  vector-effect: non-scaling-stroke;
  cursor: pointer;
}

.mobile-add-spot {
  display: none;
}

.spot-pin.active {
  fill: var(--green-ink);
}

.spot-label {
  fill: var(--ink);
  font-size: 11px;
  font-weight: 800;
  paint-order: stroke;
  stroke: rgba(255, 253, 248, 0.9);
  stroke-width: 3px;
  pointer-events: none;
}

.map-tools {
  position: absolute;
  right: 14px;
  top: 14px;
  display: grid;
  gap: 8px;
  z-index: 500;
}

.map-tools button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-size: 11px;
  padding: 0 4px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(40, 45, 42, 0.12);
}

.map-tools button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.suggestion-empty {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 13px;
}

.amap-spot-marker {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #d85f45;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  transition: width 0.15s ease, height 0.15s ease, box-shadow 0.15s ease;
}

.amap-spot-marker.selected {
  width: 25px;
  height: 25px;
  background: #2f6b57;
  box-shadow: 0 0 0 3px rgba(47, 107, 87, 0.22), 0 2px 8px rgba(0, 0, 0, 0.35);
}

.amap-spot-marker.searched {
  background: #2477b3;
}

.amap-my-location {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.map-status {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  z-index: 500;
}

.map-status span {
  padding: 8px 10px;
  border: 1px solid rgba(222, 216, 204, 0.9);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.86);
  color: var(--muted);
  font-size: 13px;
}

.map-status > #layerLabel,
.map-status > #spotCount {
  display: none;
}

body.is-admin .map-status > #layerLabel,
body.is-admin .map-status > #spotCount {
  display: block;
}

.map-scale {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid rgba(222, 216, 204, 0.9);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.86);
  color: #333;
  white-space: nowrap;
}

.map-scale span {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 12px;
}

.map-scale span.map-scale-bar {
  display: inline-block;
  height: 0;
  border-top: 3px solid #111;
  border-left: 3px solid #111;
  border-right: 3px solid #111;
}

.spot-strip {
  position: fixed;
  top: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 24;
  display: flex;
  flex-direction: column;
  width: min(320px, calc(100vw - 56px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.97);
  box-shadow: var(--shadow);
  transform: translateX(calc(100% + 24px));
  transition: transform 220ms ease;
}

.spot-strip.is-open {
  transform: translateX(0);
}

.spot-strip-handle {
  position: fixed;
  top: 50%;
  right: 0;
  z-index: 25;
  width: 34px;
  min-height: 96px;
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: 8px 0 0 8px;
  background: var(--paper);
  color: var(--green-ink);
  box-shadow: 0 10px 24px rgba(44, 39, 33, 0.12);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
}

.spot-strip.is-open + .detail-panel,
.spot-strip.is-open ~ .detail-panel {
  right: 356px;
}

.strip-head {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 14px;
  overflow: auto;
  max-height: min(52vh, 430px);
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--line);
}

.strip-title {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.strip-title strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.strip-title span {
  color: var(--muted);
  font-size: 13px;
}

.filter-block {
  display: grid;
  gap: 10px;
}

.library-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px dashed rgba(222, 216, 204, 0.92);
}

.library-toolbar label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.library-toolbar select,
.library-toggle {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 800;
}

.library-toggle.active {
  border-color: rgba(216, 95, 69, 0.35);
  background: rgba(247, 218, 209, 0.7);
  color: var(--coral);
}

.filter-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-chip {
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 800;
}

.filter-chip.active {
  border-color: rgba(16, 97, 138, 0.4);
  background: var(--mint);
  color: var(--green-ink);
}

.compact-filter {
  gap: 5px;
}

.compact-filter .filter-chip {
  min-height: 26px;
  padding: 3px 8px;
  font-size: 12px;
}

.clear-filter {
  width: fit-content;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.8);
  color: var(--muted);
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 800;
}

.clear-filter:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.review-workbench {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(216, 95, 69, 0.18);
  border-radius: 8px;
  background: rgba(255, 251, 246, 0.82);
  padding: 11px;
}

.review-workbench[hidden] {
  display: none;
}

.review-workbench-head,
.review-workbench-title,
.review-workbench-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.review-workbench-head strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.review-workbench-head span,
.review-workbench-title span,
.review-workbench-empty {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.review-workbench-list {
  display: grid;
  gap: 8px;
}

.review-workbench-item {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(222, 216, 204, 0.78);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 9px;
}

.review-workbench-title strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-workbench-item p,
.review-workbench-empty {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.45;
}

.review-workbench-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.review-workbench-actions button {
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 800;
}

.review-workbench-actions button:nth-child(2) {
  border-color: rgba(16, 97, 138, 0.28);
  background: var(--mint);
  color: var(--green-ink);
}

.review-workbench-actions button:nth-child(3) {
  border-color: rgba(216, 95, 69, 0.24);
  color: var(--coral);
}

.review-workbench-open {
  width: 100%;
  min-height: 34px;
  border: 1px solid rgba(16, 97, 138, 0.25);
  border-radius: 8px;
  background: var(--mint);
  color: var(--green-ink);
  font-weight: 900;
}

.review-workbench-users {
  margin-top: 8px;
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.review-center-modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(32, 38, 35, 0.56);
  padding: 24px;
  backdrop-filter: blur(8px);
}

.user-management-modal {
  position: fixed;
  z-index: 1010;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(32, 38, 35, 0.58);
  backdrop-filter: blur(8px);
}

.user-management-modal[hidden] {
  display: none;
}

.user-management-dialog {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  width: min(1120px, 96vw);
  height: min(780px, 92vh);
  overflow: hidden;
  border: 1px solid rgba(222, 216, 204, 0.9);
  border-radius: 18px;
  background: #f8f5ee;
  box-shadow: 0 28px 80px rgba(24, 32, 28, 0.3);
}

.user-management-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.94);
  padding: 21px 24px 17px;
}

.user-management-header h2 {
  margin: 4px 0 6px;
  color: var(--ink);
  font-size: 24px;
}

.user-management-header p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.user-management-header-actions {
  display: flex;
  gap: 8px;
}

.user-management-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 24px 8px;
}

.user-management-summary article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  padding: 10px 14px;
}

.user-management-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.user-management-summary strong {
  color: var(--green-ink);
  font-size: 22px;
}

.user-management-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 150px 150px;
  gap: 9px;
  padding: 8px 24px 13px;
}

.user-management-filters input,
.user-management-filters select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  padding: 7px 11px;
  font: inherit;
  font-size: 12px;
  outline: none;
}

.user-management-filters input:focus,
.user-management-filters select:focus {
  border-color: var(--green-ink);
}

.user-management-body {
  display: grid;
  grid-template-columns: minmax(270px, 0.72fr) minmax(0, 1.4fr);
  min-height: 0;
  border-top: 1px solid var(--line);
}

.user-management-list {
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.72);
  padding: 12px;
}

.managed-user-item {
  display: grid;
  width: 100%;
  gap: 5px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  padding: 11px 12px;
  color: var(--ink);
  text-align: left;
}

.managed-user-item + .managed-user-item {
  margin-top: 5px;
}

.managed-user-item:hover,
.managed-user-item.active {
  border-color: rgba(16, 97, 138, 0.25);
  background: var(--mint);
}

.managed-user-item.is-disabled {
  opacity: 0.68;
}

.managed-user-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
}

.managed-user-heading strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.managed-user-heading small,
.managed-user-meta,
.managed-user-warning {
  color: var(--muted);
  font-size: 11px;
}

.managed-user-heading small {
  flex: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  padding: 3px 7px;
  font-weight: 800;
}

.managed-user-warning {
  color: #9a7629;
  font-weight: 800;
}

.user-management-detail {
  overflow-y: auto;
  padding: 22px 24px 28px;
}

.managed-user-detail-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.managed-user-detail-heading h3 {
  margin: 8px 0 3px;
  color: var(--ink);
  font-size: 23px;
}

.managed-user-detail-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.managed-user-status {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
}

.managed-user-status.active {
  color: var(--green-ink);
  background: var(--mint);
}

.managed-user-status.disabled {
  color: #a34234;
  background: rgba(247, 218, 209, 0.72);
}

.managed-user-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.managed-user-facts div {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  padding: 10px;
}

.managed-user-facts span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.managed-user-facts strong {
  color: var(--ink);
  font-size: 12px;
}

.managed-user-remark {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.managed-user-remark > strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 13px;
}

.managed-user-remark-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.managed-user-remark-row input {
  flex: 1;
  min-width: 0;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 11px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

.managed-user-remark-label {
  overflow: hidden;
  color: var(--green-ink);
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.managed-user-actions,
.managed-user-history,
.temporary-password-box {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.managed-user-actions > strong,
.managed-user-history > strong,
.temporary-password-box > strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 13px;
}

.managed-user-actions > p,
.managed-user-history > p,
.temporary-password-box p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.managed-user-actions > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.managed-user-actions button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
}

.managed-user-actions button.danger-action {
  border-color: rgba(180, 65, 49, 0.28);
  color: #a34234;
  background: rgba(247, 218, 209, 0.56);
}

.temporary-password-box {
  border: 1px solid rgba(182, 137, 49, 0.28);
  border-radius: 10px;
  background: rgba(255, 247, 221, 0.75);
  padding: 14px;
}

.temporary-password-box code {
  display: block;
  width: fit-content;
  margin: 4px 0 9px;
  border-radius: 7px;
  background: var(--surface);
  padding: 8px 10px;
  color: #725619;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.temporary-password-box button {
  margin-top: 10px;
}

.managed-user-history article {
  display: grid;
  grid-template-columns: minmax(140px, auto) 1fr;
  gap: 4px 12px;
  border-radius: 8px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.68);
}

.managed-user-history article + article {
  margin-top: 6px;
}

.managed-user-history article strong,
.managed-user-history article span {
  font-size: 11px;
}

.managed-user-history article span {
  color: var(--muted);
  text-align: right;
}

.managed-user-history article p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.review-center-modal[hidden] {
  display: none;
}

.notification-button {
  position: relative;
}

.notification-button.has-unread {
  border-color: #dc6d4f;
  color: #b94f35;
}

.notification-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #d95035;
  color: var(--on-accent);
  font-size: 11px;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(112, 38, 23, 0.25);
}

.review-center-search-wrap {
  padding: 0 22px 12px;
  border-bottom: 1px solid rgba(68, 70, 58, 0.1);
}

.review-center-search-wrap input {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(68, 70, 58, 0.18);
  border-radius: 12px;
  padding: 0 13px;
  background: rgba(255, 255, 255, 0.82);
}

.notification-modal,
.report-modal {
  position: fixed;
  inset: 0;
  /* 举报/纠错/评论采纳三层共用此类；须压过看图器(1050/1060)，与其余弹层同带（1040-1080） */
  z-index: 1090;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(24, 25, 22, 0.48);
  backdrop-filter: blur(8px);
}

.notification-modal[hidden],
.report-modal[hidden],
.notification-badge[hidden] {
  display: none;
}

.notification-dialog,
.report-dialog {
  width: min(760px, 100%);
  max-height: min(82vh, 820px);
  max-height: min(82dvh, 820px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(68, 70, 58, 0.14);
  border-radius: 22px;
  background: #fbfaf5;
  box-shadow: 0 28px 90px rgba(18, 19, 16, 0.3);
}

/* 长表单层：头部固定、表单内部滚动，保证提交按钮永远可达（窄屏+软键盘时靠 dvh 收缩） */
.report-dialog > .report-header {
  flex: none;
}

.report-dialog > .report-form {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.notice-dialog {
  width: min(640px, 100%);
}

.notice-body {
  padding: 20px 24px 24px;
  overflow-y: auto;
  max-height: calc(82vh - 130px);
  color: #33352e;
  line-height: 1.75;
}

.notice-body h3 {
  margin: 18px 0 6px;
  font-size: 15px;
  color: #3f6b4f;
}

.notice-body ul {
  margin: 4px 0 8px;
  padding-left: 20px;
}

.notice-body ol {
  margin: 4px 0 8px;
  padding-left: 20px;
}

.notice-body li {
  margin: 4px 0;
}

.notice-body p:first-child {
  margin-top: 0;
}

.spot-list-dialog {
  width: min(680px, 100%);
  display: flex;
  flex-direction: column;
}

.spot-list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(68, 70, 58, 0.1);
}

.spot-list-count {
  color: #6b6c63;
  font-size: 13px;
}

.spot-list-groups {
  overflow-y: auto;
  max-height: calc(82vh - 150px);
  padding: 12px 18px 20px;
}

.spot-list-group {
  margin-bottom: 16px;
}

.spot-list-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0 8px;
  border-bottom: 1px solid rgba(68, 70, 58, 0.12);
}

.spot-list-group-head strong {
  color: #3f6b4f;
  font-size: 15px;
}

.spot-list-group-tools {
  display: flex;
  gap: 6px;
}

.spot-list-group-entries {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 8px;
}

.spot-list-entry {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(68, 70, 58, 0.12);
  border-radius: 12px;
  background: var(--surface);
}

.spot-list-entry-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-align: left;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 0;
}

.spot-list-entry-name {
  font-weight: 700;
  color: #26281f;
}

.spot-list-entry-main small {
  color: #8a8b82;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.spot-list-entry-note {
  margin: 0;
  color: #6b6c63;
  font-size: 13px;
  flex: 0 0 auto;
  max-width: 220px;
}

.spot-list-entry-actions {
  display: flex;
  gap: 6px;
  flex: 0 0 auto;
}

.spot-list-add-dialog {
  width: min(520px, 100%);
}

.spot-list-add-modal {
  z-index: 1080;
}

.delete-account-modal {
  z-index: 1080;
}

.spot-list-add-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 22px 22px;
}

.spot-list-add-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #33352e;
  font-size: 14px;
}

.spot-list-add-form input[type="text"],
.spot-list-add-form select,
.spot-list-add-form textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid rgba(68, 70, 58, 0.25);
  border-radius: 10px;
  background: var(--surface);
  color: #26281f;
}

.spot-list-add-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.confirm-check {
  flex-direction: row !important;
  align-items: center;
  gap: 8px !important;
}

.delete-account-pending {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f2f6ef;
  color: #3f6b4f;
}

.delete-account-pending button {
  margin-left: 8px;
}

.notification-header,
.report-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid rgba(68, 70, 58, 0.1);
}

.notification-header h2,
.report-header h2 {
  margin: 4px 0 6px;
}

.notification-header p,
.report-header p {
  margin: 0;
  color: #6b6c63;
  line-height: 1.6;
}

.notification-header-actions,
.notification-actions,
.report-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.notification-list {
  max-height: calc(82vh - 130px);
  overflow: auto;
  padding: 16px 20px 22px;
}

.notification-item {
  position: relative;
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(68, 70, 58, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.notification-item.is-unread {
  border-color: rgba(205, 91, 59, 0.38);
  background: #fff9f4;
}

.notification-item.is-unread::before {
  content: "";
  position: absolute;
  top: 18px;
  left: -5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d95d3e;
}

.notification-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.notification-main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.notification-kind {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #f7ead9;
  color: #b45238;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
}

.notification-title {
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-side {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  color: #77786f;
  font-size: 11px;
}

.notification-toggle {
  display: grid;
  width: 22px;
  height: 20px;
  place-items: center;
  border: 1px solid rgba(68, 70, 58, 0.14);
  border-radius: 6px;
  background: var(--surface);
  color: #77786f;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
}

.notification-toggle:hover {
  border-color: rgba(16, 97, 138, 0.4);
  color: var(--green-ink);
}

.notification-detail {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(68, 70, 58, 0.16);
}

.notification-item p {
  margin: 6px 0;
  line-height: 1.6;
  color: #55564f;
}

.notification-item .notification-result {
  font-weight: 700;
  color: #30332c;
}

.notification-item .notification-guidance {
  padding: 9px 11px;
  border-radius: 10px;
  background: #f0f2e9;
  color: #3e5848;
}

.notification-actions {
  margin-top: 10px;
}

.notification-actions button {
  border: 1px solid rgba(68, 70, 58, 0.16);
  border-radius: 9px;
  padding: 7px 10px;
  background: var(--surface);
  cursor: pointer;
}

.notification-empty {
  padding: 36px;
  text-align: center;
  color: #77786f;
}

.share-modal {
  position: fixed;
  inset: 0;
  z-index: 1030;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(24, 25, 22, 0.48);
  backdrop-filter: blur(8px);
}

.share-modal[hidden] {
  display: none;
}

.share-dialog {
  display: grid;
  width: min(640px, 100%);
  max-height: min(88vh, 900px);
  overflow: auto;
  border: 1px solid rgba(68, 70, 58, 0.14);
  border-radius: 22px;
  background: #fbfaf5;
  box-shadow: 0 28px 90px rgba(18, 19, 16, 0.3);
}

.share-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid rgba(68, 70, 58, 0.1);
}

.share-header h2 {
  margin: 4px 0 6px;
  font-size: 22px;
}

.share-header p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.share-card-preview {
  display: grid;
  place-items: center;
  padding: 18px 20px 6px;
}

.share-card-preview img {
  display: block;
  width: min(420px, 100%);
  height: auto;
  border-radius: 10px;
  box-shadow: 0 14px 36px rgba(24, 32, 28, 0.18);
}

.share-text-preview {
  margin: 10px 20px 4px;
  padding: 12px 14px;
  border: 1px dashed rgba(68, 70, 58, 0.25);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  color: #3d4038;
  font: 600 13px/1.7 "PingFang SC", "Microsoft YaHei", sans-serif;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px 22px;
}

.share-generating {
  padding: 48px 20px;
  color: var(--muted);
  text-align: center;
}

.notification-delete-all {
  color: #b45238;
}

.notification-delete-all:hover {
  border-color: rgba(180, 82, 56, 0.45);
  color: #a33e25;
}

.notification-manage-wrap {
  position: relative;
}

.notification-manage-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 20;
  display: grid;
  min-width: 118px;
  overflow: hidden;
  border: 1px solid rgba(68, 70, 58, 0.14);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(40, 45, 42, 0.14);
}

.notification-manage-menu[hidden],
.notification-manage-toolbar[hidden] {
  display: none;
}

.notification-manage-menu button {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(68, 70, 58, 0.08);
  background: transparent;
  color: var(--ink);
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.notification-manage-menu button:last-child {
  border-bottom: 0;
}

.notification-manage-menu button:hover {
  background: var(--mint);
  color: var(--green-ink);
}

.notification-manage-menu button[data-manage-action="all"] {
  color: #b45238;
}

.notification-manage-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 20px 4px;
  padding: 8px 10px;
  border: 1px solid rgba(180, 82, 56, 0.22);
  border-radius: 10px;
  background: #fff7f2;
  color: #8a4a34;
  font-size: 13px;
  font-weight: 700;
}

.notification-manage-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.notification-check {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  accent-color: var(--green-ink);
  cursor: pointer;
}

.notification-item.is-selected {
  border-color: rgba(16, 97, 138, 0.5);
  background: #f2f8f4;
}

.report-form {
  display: grid;
  gap: 16px;
  padding: 22px 24px 24px;
}

.report-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.report-form select,
.report-form textarea {
  width: 100%;
  border: 1px solid rgba(68, 70, 58, 0.18);
  border-radius: 12px;
  padding: 11px 12px;
  background: var(--surface);
  color: inherit;
  font: inherit;
}

.report-form textarea {
  resize: vertical;
  line-height: 1.6;
}

.report-hint {
  margin: 0;
  color: #6f7068;
  font-size: 13px;
}

.form-hint {
  margin: -4px 0 10px;
  color: #6f7068;
  font-size: 12px;
  line-height: 1.6;
}

.required-mark {
  color: #d9534f;
  font-size: 12px;
  font-weight: 600;
}

.report-actions {
  justify-content: flex-end;
}

.my-content-modal {
  position: fixed;
  inset: 0;
  z-index: 1040;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(24, 25, 22, 0.48);
  backdrop-filter: blur(8px);
}

.my-content-modal[hidden] {
  display: none;
}

.my-content-dialog {
  display: grid;
  grid-template-rows: auto auto auto auto minmax(0, 1fr);
  width: min(1120px, 96vw);
  height: min(800px, 92vh);
  overflow: hidden;
  border: 1px solid rgba(222, 216, 204, 0.9);
  border-radius: 20px;
  background: #f8f5ee;
  box-shadow: 0 28px 80px rgba(24, 32, 28, 0.28);
}

.my-content-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px 17px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.94);
}

.my-content-header h2 {
  margin: 4px 0 6px;
  font-size: 24px;
}

.my-content-header p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.my-content-header-actions,
.my-content-detail-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.my-content-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 9px;
  padding: 13px 24px 9px;
}

.my-content-summary article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  padding: 9px 13px;
}

.my-content-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.my-content-summary strong {
  color: var(--green-ink);
  font-size: 22px;
}

.my-content-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 7px 24px;
}

.my-content-tabs button {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  padding: 7px 12px;
  font-weight: 800;
  cursor: pointer;
}

.my-content-tabs button.active {
  border-color: var(--green-ink);
  background: var(--green-bg);
  color: var(--green-ink);
}

.my-content-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 10px;
  padding: 8px 24px 13px;
  border-bottom: 1px solid var(--line);
}

.my-content-filters input,
.my-content-filters select {
  min-height: 40px;
  border: 1px solid rgba(68, 70, 58, 0.18);
  border-radius: 11px;
  padding: 0 12px;
  background: var(--surface);
  color: var(--ink);
}

.my-content-body {
  display: grid;
  grid-template-columns: minmax(290px, 360px) minmax(0, 1fr);
  min-height: 0;
}

.my-content-list {
  display: grid;
  align-content: start;
  gap: 8px;
  overflow: auto;
  padding: 14px;
  border-right: 1px solid var(--line);
  background: rgba(240, 236, 226, 0.54);
}

.my-content-list-item {
  display: grid;
  gap: 6px;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  padding: 12px;
  text-align: left;
  cursor: pointer;
}

.my-content-list-item.active {
  border-color: rgba(16, 97, 138, 0.48);
  background: var(--surface);
  box-shadow: 0 7px 20px rgba(16, 97, 138, 0.09);
}

.my-content-list-head,
.my-content-detail-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.my-content-list-head strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.my-content-kind {
  color: var(--green-ink);
  font-size: 11px;
  font-weight: 900;
}

.my-content-list-item p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.my-content-list-item time {
  color: #8b8b82;
  font-size: 10px;
}

.my-content-status {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #e8eee9;
  color: var(--green-ink);
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 900;
}

.my-content-status.status-rejected,
.my-content-status.status-draft {
  background: #fff0eb;
  color: #b54d35;
}

.my-content-status.status-pending {
  background: #fff6db;
  color: #8a6817;
}

.my-content-detail {
  overflow: auto;
  padding: 22px 24px 26px;
}

.my-content-detail-heading {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.my-content-detail-heading h3 {
  margin: 5px 0 5px;
  font-size: 24px;
}

.my-content-detail-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.my-content-detail-section {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.78);
  padding: 13px 15px;
}

.my-content-detail-section strong {
  display: block;
  margin-bottom: 6px;
}

.my-content-detail-section p {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.65;
}

.my-content-detail-section.is-rejected {
  border-color: rgba(185, 75, 51, 0.3);
  background: #fff7f3;
}

.my-content-detail-section.is-guidance {
  border-color: rgba(16, 97, 138, 0.24);
  background: #f1f5ee;
  color: #355846;
}

.my-content-detail-actions {
  justify-content: flex-end;
  margin-top: 16px;
}

.my-content-comment-editor {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  border: 1px solid rgba(16, 97, 138, 0.25);
  border-radius: 14px;
  background: #f4f7f1;
  padding: 15px;
}

.my-content-comment-editor label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

.my-content-comment-editor textarea {
  width: 100%;
  border: 1px solid rgba(68, 70, 58, 0.18);
  border-radius: 11px;
  padding: 11px 12px;
  background: var(--surface);
  font: inherit;
  line-height: 1.6;
  resize: vertical;
}

.my-content-empty {
  margin: 0;
  padding: 32px 18px;
  color: var(--muted);
  text-align: center;
}

.review-center-dialog {
  display: grid;
  grid-template-rows: auto auto auto auto auto minmax(0, 1fr);
  width: min(1180px, 96vw);
  height: min(820px, 92vh);
  overflow: hidden;
  border: 1px solid rgba(222, 216, 204, 0.9);
  border-radius: 18px;
  background: #f8f5ee;
  box-shadow: 0 28px 80px rgba(24, 32, 28, 0.28);
}

.review-center-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.92);
  padding: 22px 24px 18px;
}

.review-center-header h2 {
  margin: 4px 0 6px;
  color: var(--ink);
  font-size: 24px;
}

.review-center-header p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.review-center-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.review-ai-status {
  display: grid;
  gap: 2px;
  min-height: 38px;
  border: 1px solid rgba(182, 137, 49, 0.28);
  border-radius: 10px;
  background: rgba(255, 247, 221, 0.82);
  padding: 6px 11px;
  color: #725619;
  line-height: 1.15;
}

.review-ai-status strong {
  font-size: 12px;
}

.review-ai-status small {
  color: #9a7629;
  font-size: 10px;
  font-weight: 800;
}

.review-ai-status.is-active {
  border-color: rgba(16, 97, 138, 0.32);
  background: rgba(225, 242, 233, 0.88);
  color: var(--green-ink);
}

.review-ai-status.is-active small {
  color: var(--green-ink);
}

.review-center-close {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  font-size: 24px;
}

.review-center-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  padding: 14px 24px 8px;
}

.review-center-summary article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  padding: 10px 14px;
}

.review-center-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.review-center-summary strong {
  color: var(--green-ink);
  font-size: 24px;
}

.review-center-tabs,
.review-center-type-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-inline: 24px;
}

.review-center-tabs {
  padding-top: 8px;
}

.review-center-tabs button,
.review-center-type-filters button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 900;
}

.review-center-tabs button.active,
.review-center-type-filters button.active {
  border-color: var(--green-ink);
  background: var(--green-bg);
  color: var(--green-ink);
}

.review-center-type-filters {
  padding-block: 10px 12px;
}

.review-center-type-filters .review-status-filter-start {
  margin-left: auto;
}

.review-center-body {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(480px, 1.52fr);
  min-height: 0;
  border-top: 1px solid var(--line);
}

.review-center-list {
  display: grid;
  align-content: start;
  gap: 8px;
  overflow: auto;
  border-right: 1px solid var(--line);
  background: rgba(240, 236, 226, 0.54);
  padding: 14px;
}

.review-center-list-item {
  display: grid;
  gap: 7px;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  padding: 12px;
  text-align: left;
}

.review-center-list-item.active {
  border-color: rgba(16, 97, 138, 0.48);
  background: var(--surface);
  box-shadow: 0 7px 20px rgba(16, 97, 138, 0.09);
}

.review-center-list-item-head,
.review-center-list-item-meta,
.review-detail-heading,
.review-detail-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.review-center-list-item-head strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-center-kind {
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--mint);
  color: var(--green-ink);
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 900;
}

.review-center-list-item p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.review-center-list-item-meta {
  color: #8b8a82;
  font-size: 11px;
}

.review-center-list.is-history .review-center-list-item {
  gap: 4px;
  border-radius: 10px;
  padding: 7px 10px;
}

.review-center-list.is-history .review-center-list-item-head strong {
  font-size: 12px;
}

.review-center-list.is-history .review-center-list-item p {
  font-size: 11px;
  line-height: 1.3;
  -webkit-line-clamp: 1;
}

.review-center-list.is-history .review-center-list-item-meta {
  font-size: 10px;
}

.review-center-detail {
  overflow: auto;
  background: var(--paper);
  padding: 22px 24px 30px;
}

.review-center-empty {
  display: grid;
  min-height: 100%;
  place-items: center;
  color: var(--muted);
  text-align: center;
}

.review-detail-heading {
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.review-detail-heading h3 {
  margin: 3px 0 5px;
  color: var(--ink);
  font-size: 22px;
}

.review-detail-heading p,
.review-history-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.review-post-photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.review-post-photos img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.review-detail-section {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.review-detail-section > strong {
  color: var(--ink);
  font-size: 13px;
}

.review-detail-copy {
  margin: 0;
  border-radius: 10px;
  background: #f5f2ea;
  color: var(--ink);
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.review-diff-grid {
  display: grid;
  gap: 8px;
}

.review-diff-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.review-diff-row > strong,
.review-diff-value {
  border-radius: 8px;
  padding: 9px 10px;
  font-size: 12px;
  line-height: 1.5;
}

.review-diff-row > strong {
  color: var(--muted);
}

.review-diff-value {
  background: #f4f1e9;
  color: var(--ink);
  white-space: pre-wrap;
}

.review-diff-value.changed {
  background: #fff0eb;
  color: #9d422e;
}

.review-preview-images {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.review-preview-images img {
  width: 116px;
  height: 82px;
  border-radius: 9px;
  object-fit: cover;
}

.review-note-label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.review-note-label textarea {
  width: 100%;
  min-height: 82px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 10px 12px;
  font: inherit;
  font-weight: 500;
  line-height: 1.5;
}

.review-detail-actions {
  justify-content: flex-start;
  margin-top: 14px;
}

.review-approve,
.review-reject,
.review-map-link {
  min-height: 36px;
  border-radius: 9px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 900;
}

.review-approve {
  border: 1px solid rgba(16, 97, 138, 0.25);
  background: var(--green-bg);
  color: var(--green-ink);
}

.review-reject {
  border: 1px solid rgba(216, 95, 69, 0.28);
  background: var(--surface);
  color: var(--coral);
}

.review-map-link {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
}

@media (max-width: 640px), (max-width: 900px) and (orientation: landscape) {
  .my-content-modal {
    padding: 10px;
  }

  .my-content-dialog {
    width: 100%;
    height: 96vh;
  }

  .my-content-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .my-content-filters {
    grid-template-columns: 1fr;
  }

  .my-content-body {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .my-content-list {
    max-height: 260px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .my-content-detail {
    overflow: visible;
  }

  .review-center-modal {
    padding: 10px;
  }

  .review-center-dialog {
    width: 100%;
    height: 96vh;
  }

  .review-center-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .review-center-body {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .review-center-list {
    max-height: 260px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .review-center-detail {
    overflow: visible;
  }

  .review-diff-row {
    grid-template-columns: 1fr;
  }

  .user-management-modal {
    padding: 10px;
  }

  .user-management-dialog {
    width: 100%;
    height: 96vh;
  }

  .user-management-summary,
  .managed-user-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .user-management-filters {
    grid-template-columns: 1fr 1fr;
  }

  .user-management-filters input {
    grid-column: 1 / -1;
  }

  .user-management-body {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .user-management-list {
    max-height: 240px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .user-management-detail {
    overflow: visible;
  }
}

.spot-list {
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 10px;
  overflow: auto;
  min-height: 0;
  padding: 12px;
}

.empty-list {
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  padding: 18px 12px;
  text-align: center;
  font-size: 13px;
}

.empty-list strong,
.empty-list span {
  display: block;
}

.empty-list strong {
  color: var(--ink);
  font-size: 14px;
}

.empty-list span {
  margin-top: 6px;
  line-height: 1.5;
}

.spot-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  overflow: hidden;
  min-height: 44px;
  content-visibility: auto;
  contain-intrinsic-size: auto 96px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 10px 12px;
  text-align: left;
  box-shadow: 0 8px 22px rgba(44, 39, 33, 0.08);
}

.spot-card.active {
  border-color: var(--green-ink);
  box-shadow: 0 0 0 1px rgba(16, 97, 138, 0.14);
}

.spot-card.expanded {
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 10px;
  min-height: 88px;
  box-shadow: 0 0 0 2px rgba(16, 97, 138, 0.18);
}

.spot-card-cover {
  display: none;
  position: relative;
  width: 68px;
  min-height: 68px;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(222, 216, 204, 0.82);
  border-radius: 8px;
  background: #e8f0e6;
}

.spot-card-cover-badge,
.spot-cover-badge {
  position: absolute;
  left: 4px;
  top: 4px;
  z-index: 2;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(246, 228, 197, 0.94);
  color: #8a5a14;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.4;
}

.spot-card.expanded .spot-card-cover {
  display: grid;
}

.spot-card-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spot-card-cover.is-empty {
  background:
    linear-gradient(135deg, rgba(185, 216, 223, 0.65), rgba(223, 238, 229, 0.92)),
    #edf1e9;
}

.spot-cover-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background: rgba(16, 97, 138, 0.9);
  color: var(--on-accent);
  font-size: 14px;
  font-weight: 900;
}

.spot-card-body {
  display: grid;
  align-content: center;
  gap: 4px;
  min-width: 0;
  padding: 0;
}

.spot-card-area {
  display: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.spot-card.expanded .spot-card-area {
  display: block;
}

.spot-card strong {
  display: block;
  overflow: hidden;
  max-width: 100%;
  font-size: 15px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spot-card-body > * {
  min-width: 0;
  max-width: 100%;
}

.spot-card.expanded strong {
  font-size: 16px;
}

.spot-card-area {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tag-row {
  display: none;
  flex-wrap: wrap;
  gap: 5px;
}

.completion-meter {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.completion-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.1;
}

.completion-head span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.completion-track {
  position: relative;
  overflow: hidden;
  height: 5px;
  border-radius: 999px;
  background: rgba(222, 216, 204, 0.72);
}

.completion-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--coral);
}

.completion-meter.medium .completion-track span {
  background: #d49b45;
}

.completion-meter.good .completion-track span {
  background: #2f6b57;
}

.card-completion {
  width: 100%;
  margin-top: 2px;
}

.rejection-next-step {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(101, 99, 92, 0.16);
  border-radius: 8px;
  background: rgba(238, 232, 220, 0.58);
  padding: 8px 9px;
}

.rejection-next-step strong {
  color: #5d5f5a;
  font-size: 12px;
  font-weight: 900;
}

.rejection-next-step p {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.card-rejection {
  width: 100%;
  margin-top: 2px;
}

.spot-status-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

.card-status {
  display: none;
}

.spot-card.expanded .card-status {
  display: flex;
}

.source-chip,
.review-chip,
.visibility-chip,
.suggestion-chip {
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
}

.source-chip.system {
  background: rgba(232, 244, 237, 0.82);
  color: var(--green-ink);
}

.source-chip.user {
  background: rgba(246, 228, 197, 0.82);
  color: #8a5a14;
}

.review-chip.approved {
  background: rgba(232, 244, 237, 0.82);
  color: var(--green-ink);
}

.review-chip.pending {
  background: rgba(247, 218, 209, 0.88);
  color: var(--coral);
}

.review-chip.rejected {
  background: rgba(220, 220, 216, 0.92);
  color: #5d5f5a;
}

.visibility-chip.public {
  background: rgba(232, 244, 237, 0.7);
  color: var(--green-ink);
}

.visibility-chip.private {
  background: rgba(238, 232, 220, 0.92);
  color: #6d6458;
}

.suggestion-chip.draft {
  background: rgba(246, 228, 197, 0.88);
  color: #8a5a14;
}

.suggestion-chip.submitted {
  background: rgba(247, 218, 209, 0.88);
  color: var(--coral);
}

.detail-status {
  margin-bottom: -4px;
}

.detail-status .source-chip,
.detail-status .review-chip,
.detail-status .visibility-chip,
.detail-status .suggestion-chip {
  padding: 5px 9px;
  font-size: 12px;
}

.spot-card:not(.expanded) .card-completion .completion-head {
  display: none;
}

.spot-card:not(.expanded) .card-completion {
  opacity: 0.72;
}

.spot-card:not(.expanded) {
  min-height: 42px;
}

.spot-card.expanded .tag-row,
.detail-tag-row {
  display: flex;
}

.tag {
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--green-ink);
  font-size: 12px;
}

.detail-panel {
  position: fixed;
  top: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  width: min(420px, calc(100vw - 36px));
  height: auto;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.98);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateX(calc(100% + 24px));
  transition:
    transform 220ms ease,
    opacity 180ms ease,
    box-shadow 180ms ease;
}

.detail-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.detail-panel.is-attention {
  box-shadow:
    0 0 0 2px rgba(16, 97, 138, 0.22),
    var(--shadow);
}

.panel-head {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--line);
}

.panel-head > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.eyebrow {
  color: var(--coral);
  font-size: 12px;
  font-weight: 700;
}

.panel-head .eyebrow {
  display: none;
}

.panel-head h1 {
  flex: 1;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-size: 21px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-meta {
  flex: 0 0 auto;
  max-width: 48%;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.panel-actions button {
  min-width: 0;
  height: 38px;
  padding: 0 6px;
  font-size: 13px;
}

.close-detail {
  display: grid;
  width: auto;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.primary-btn {
  height: 38px;
  min-width: 70px;
  border: 0;
  border-radius: 8px;
  color: var(--green-ink);
  background: var(--green-bg);
  font-weight: 700;
}

#submitSuggestion {
  min-width: 108px;
  background: var(--coral);
}

.ghost-btn {
  height: 38px;
  min-width: 60px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--surface);
  font-weight: 700;
}

.ghost-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.compact-btn {
  height: 34px;
  min-width: 76px;
  padding: 0 10px;
  font-size: 12px;
}

.detail-panel:not(.is-editing) #saveSpot,
.detail-panel:not(.is-editing) #deleteSpot,
.detail-panel.is-editing #editSpot,
.detail-panel.is-editing .detail-view {
  display: none;
}

.detail-panel:not(.is-editing) .spot-form {
  display: none;
}

.detail-view {
  display: grid;
  gap: 16px;
  overflow: auto;
  padding: 16px 18px 20px;
}

.detail-hero {
  display: grid;
  gap: 12px;
}

.detail-gallery {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
  scroll-snap-type: x mandatory;
}

.detail-gallery-item {
  flex: 0 0 78%;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 0;
  scroll-snap-align: start;
}

.detail-gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-preview-section,
.scene-preview {
  display: grid;
  gap: 10px;
}

.scene-preview-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
}

.scene-preview-head strong {
  font-size: 15px;
  font-weight: 900;
}

.scene-preview-head span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  text-align: right;
}

.scene-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.spot-cover-section {
  display: grid;
  gap: 10px;
}

.spot-cover-card {
  display: block;
  position: relative;
  overflow: hidden;
  width: 100%;
  border: 1px solid rgba(222, 216, 204, 0.88);
  border-radius: 8px;
  background: var(--surface);
  padding: 0;
  box-shadow: 0 10px 28px rgba(44, 39, 33, 0.08);
}

.spot-cover-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.scene-card {
  position: relative;
  display: block;
  overflow: hidden;
  min-width: 0;
  content-visibility: auto;
  contain-intrinsic-size: auto 120px;
  border: 1px solid rgba(222, 216, 204, 0.88);
  border-radius: 8px;
  background: var(--paper);
  padding: 0;
  box-shadow: 0 8px 20px rgba(44, 39, 33, 0.07);
}

.scene-card:hover {
  border-color: rgba(16, 97, 138, 0.42);
  box-shadow: 0 0 0 1px rgba(16, 97, 138, 0.14);
}

.scene-card.has-photos {
  border-color: rgba(16, 97, 138, 0.3);
}

.scene-card.is-placeholder img {
  filter: saturate(0.78);
}

.scene-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--mint);
}

.scene-card-label,
.scene-card-count {
  position: absolute;
  left: 9px;
  max-width: calc(100% - 18px);
  border-radius: 999px;
  background: rgba(29, 36, 40, 0.66);
  color: var(--on-accent);
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.scene-card-label {
  bottom: 9px;
}

.scene-card-count {
  top: 9px;
  left: auto;
  right: 9px;
  background: rgba(255, 253, 248, 0.9);
  color: var(--green-ink);
  box-shadow: 0 4px 12px rgba(44, 39, 33, 0.12);
}

.scene-card.is-placeholder .scene-card-count {
  color: var(--muted);
}

.scene-card-thumbs {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: flex;
  max-width: calc(100% - 16px);
  gap: 4px;
  border-radius: 999px;
  background: rgba(29, 36, 40, 0.52);
  padding: 4px;
}

.scene-card-thumbs img {
  width: 24px;
  height: 24px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  object-fit: cover;
}

.scene-more-btn {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(16, 97, 138, 0.26);
  border-radius: 8px;
  background: rgba(223, 238, 229, 0.68);
  color: var(--green-ink);
  font-weight: 900;
}

.detail-empty-photo {
  display: grid;
  min-height: 170px;
  align-content: center;
  justify-items: center;
  gap: 8px;
  border: 1px solid rgba(16, 97, 138, 0.16);
  border-radius: 8px;
  color: var(--green-ink);
  background:
    linear-gradient(135deg, rgba(185, 216, 223, 0.7), rgba(223, 238, 229, 0.92)),
    #edf1e9;
  text-align: center;
}

.empty-photo-title {
  font-size: 16px;
  font-weight: 900;
}

.empty-photo-subtitle {
  max-width: 220px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.detail-tag-row,
.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.completion-summary {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(16, 97, 138, 0.16);
  border-radius: 8px;
  background: rgba(232, 244, 237, 0.56);
  padding: 11px 12px;
}

.detail-completion .completion-head {
  color: var(--green-ink);
  font-size: 12px;
}

.completion-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.review-summary,
.suggestion-summary {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(216, 95, 69, 0.14);
  border-radius: 8px;
  background: rgba(255, 248, 244, 0.62);
  padding: 10px 12px;
}

.review-summary strong,
.suggestion-summary strong {
  color: var(--coral);
  font-size: 13px;
  font-weight: 900;
}

.review-summary p,
.suggestion-summary p {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.48;
  white-space: pre-wrap;
}

.review-summary .review-next-step {
  color: #5d5f5a;
  font-weight: 900;
}

.review-summary.is-rejected {
  border-color: rgba(101, 99, 92, 0.18);
  background: rgba(238, 232, 220, 0.58);
}

.review-summary.is-rejected strong {
  color: #5d5f5a;
}

.suggestion-summary.is-draft {
  border-color: rgba(212, 155, 69, 0.22);
  background: rgba(255, 250, 240, 0.76);
}

.suggestion-summary.is-draft strong {
  color: #8a5a14;
}

.suggestion-summary.is-submitted {
  border-color: rgba(216, 95, 69, 0.18);
}

.status-chip {
  padding: 6px 9px;
  border: 1px solid rgba(16, 97, 138, 0.18);
  border-radius: 999px;
  background: var(--mint);
  color: var(--green-ink);
  font-size: 12px;
  font-weight: 800;
}

.chip-reference {
  background: rgba(246, 228, 197, 0.88);
  color: #8a5a14;
  border-color: rgba(138, 90, 20, 0.28);
}

.detail-section {
  display: grid;
  gap: 7px;
  border: 1px solid rgba(222, 216, 204, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.46);
  padding: 12px;
}

.detail-section strong {
  color: var(--muted);
  font-size: 13px;
}

.detail-section p {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.detail-section a {
  color: var(--green-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.nearby-section {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(222, 216, 204, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.46);
  padding: 12px;
}

.nearby-list {
  display: grid;
  gap: 7px;
}

.nearby-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  border: 1px solid rgba(222, 216, 204, 0.88);
  border-radius: 8px;
  background: var(--paper);
  padding: 9px 11px;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(44, 39, 33, 0.05);
}

.nearby-item:hover {
  border-color: rgba(16, 97, 138, 0.42);
  box-shadow: 0 0 0 1px rgba(16, 97, 138, 0.14);
}

.nearby-item-name {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nearby-item-meta {
  flex: none;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.comment-section {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(222, 216, 204, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.46);
  padding: 12px;
}

.comment-head,
.comment-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.comment-head strong {
  font-size: 14px;
  font-weight: 900;
}

.comment-head span,
.comment-meta span,
.comment-empty {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.comment-list {
  display: grid;
  gap: 8px;
}

.comment-item {
  display: grid;
  gap: 5px;
  border-radius: 8px;
  background: rgba(247, 243, 235, 0.68);
  padding: 9px;
}

.comment-item.is-archived {
  border-style: dashed;
  opacity: 0.78;
}

.comment-item.is-pinned {
  border: 1px solid rgba(137, 207, 240, 0.85);
  background: rgba(137, 207, 240, 0.1);
}

.comment-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.comment-badge {
  display: inline-block;
  font-size: 11px;
  line-height: 1;
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 800;
}

.comment-badge.verified {
  background: #ADD8E6;
  color: #14618a;
  border: 1px solid rgba(16, 97, 138, 0.32);
}

.comment-badge.adopted {
  background: rgba(137, 207, 240, 0.3);
  color: #14618a;
  border: 1px solid rgba(16, 97, 138, 0.3);
}

.comment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}

.comment-actions button {
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 800;
}

.comment-actions .danger-action,
.danger-btn {
  border-color: rgba(180, 65, 49, 0.3);
  background: rgba(247, 218, 209, 0.58);
  color: #a34234;
}

.danger-btn {
  min-height: 34px;
  border-radius: 8px;
  padding: 6px 10px;
  font-weight: 900;
}

.comment-item p,
.comment-empty {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.comment-form {
  display: grid;
  gap: 8px;
}

.comment-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 10px 11px;
  resize: vertical;
  outline: none;
}

.navigation-entry {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(216, 95, 69, 0.18);
  border-radius: 8px;
  background: rgba(255, 252, 247, 0.78);
  padding: 12px;
}

.navigation-entry-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.navigation-entry-head strong {
  font-size: 14px;
  font-weight: 900;
}

.navigation-entry-head span,
.navigation-hint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.navigation-hint {
  margin: 0;
}

.navigation-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.navigate-btn {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(216, 95, 69, 0.28);
  border-radius: 8px;
  background: var(--surface);
  color: var(--coral);
  padding: 0 10px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(44, 39, 33, 0.07);
}

.navigate-btn.primary-map {
  border: 0;
  background: var(--coral);
  color: var(--on-accent);
  box-shadow: 0 12px 26px rgba(216, 95, 69, 0.22);
}

.navigate-btn.subtle-map {
  border-color: rgba(16, 97, 138, 0.22);
  color: var(--green-ink);
}

.spot-form {
  display: grid;
  gap: 13px;
  overflow: auto;
  padding: 16px 18px 20px;
}

.spot-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.spot-form input,
.spot-form textarea,
.spot-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 10px 11px;
  outline: none;
  font-weight: 500;
}

.spot-form textarea {
  resize: vertical;
}

.spot-form input:focus,
.spot-form textarea:focus,
.spot-form select:focus {
  border-color: var(--green-ink);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.template-guide {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(16, 97, 138, 0.16);
  border-radius: 8px;
  background: rgba(232, 244, 237, 0.5);
  padding: 12px;
}

.template-guide > div:first-child {
  display: grid;
  gap: 4px;
}

.template-guide strong {
  color: var(--green-ink);
  font-size: 13px;
}

.template-guide span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.template-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.template-actions button {
  min-height: 30px;
  border: 1px solid rgba(16, 97, 138, 0.22);
  border-radius: 999px;
  background: var(--surface);
  color: var(--green-ink);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
}

.template-actions button:hover {
  background: var(--mint);
}

.review-status-field {
  border: 1px solid rgba(216, 95, 69, 0.16);
  border-radius: 8px;
  background: rgba(255, 248, 244, 0.62);
  padding: 11px 12px;
}

.review-status-field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.review-status-field.is-readonly {
  border-color: rgba(16, 97, 138, 0.14);
  background: rgba(232, 244, 237, 0.48);
}

.review-status-field.is-readonly select {
  color: var(--green-ink);
}

.review-note-field {
  border: 1px solid rgba(222, 216, 204, 0.78);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.48);
  padding: 11px 12px;
}

.review-note-field.is-readonly {
  display: none;
}

.photo-manager {
  display: grid;
  gap: 10px;
}

.photo-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.upload-targets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.upload-targets label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.upload-targets select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 8px 9px;
  outline: none;
}

.custom-scene-wrap {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.custom-scene-wrap[hidden] {
  display: none;
}

.scene-manager {
  display: grid;
  gap: 9px;
  border-top: 1px solid rgba(222, 216, 204, 0.78);
  padding-top: 10px;
}

.scene-manager-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.scene-editor-list {
  display: grid;
  gap: 8px;
}

.scene-editor-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: start;
}

.scene-editor-fields {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.scene-editor-row input,
.scene-editor-row textarea {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 8px 9px;
  resize: vertical;
}

.scene-editor-meta {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.photo-empty {
  grid-column: 1 / -1;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  padding: 14px 10px;
  text-align: center;
  font-size: 12px;
}

.photo-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.photo-preview {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  padding: 0;
}

.photo-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-badge {
  position: absolute;
  left: 6px;
  bottom: 6px;
  max-width: calc(100% - 12px);
  overflow: hidden;
  border-radius: 999px;
  background: rgba(29, 36, 40, 0.62);
  color: var(--on-accent);
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(29, 36, 40, 0.72);
  color: var(--on-accent);
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

.photo-viewer {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(29, 36, 40, 0.78);
}

.photo-viewer[hidden] {
  display: none;
}

.photo-viewer-layout {
  display: grid;
  grid-template-columns: minmax(240px, 3fr) minmax(0, 7fr);
  width: min(1120px, calc(100vw - 72px));
  max-height: calc(100vh - 88px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.36);
}

.photo-viewer-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: auto;
  padding: 34px 30px;
  background: rgba(244, 241, 234, 0.92);
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(16, 97, 138, 0.45) transparent;
}

.photo-viewer-info::-webkit-scrollbar {
  width: 10px;
}

.photo-viewer-info::-webkit-scrollbar-track {
  background: transparent;
}

.photo-viewer-info::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  background-clip: content-box;
}

.photo-viewer-info::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.36);
  background-clip: content-box;
}

#photoViewerKicker {
  color: var(--coral);
  font-size: 12px;
  font-weight: 900;
}

#photoViewerTitle {
  margin: 0;
  color: var(--ink);
  font-size: 32px;
  line-height: 1.18;
}

.photo-viewer-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.photo-viewer-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  align-items: center;
}

.photo-viewer-actions[hidden] {
  display: none;
}

.photo-viewer-body[hidden],
.photo-viewer-editor[hidden] {
  display: none;
}

.photo-viewer-details {
  display: grid;
  gap: 10px;
}

.photo-viewer-detail-item {
  display: grid;
  gap: 5px;
  border-top: 1px solid rgba(222, 216, 204, 0.78);
  padding-top: 10px;
}

.photo-viewer-detail-item strong {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.photo-viewer-detail-item p {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.photo-viewer-editor {
  display: grid;
  gap: 13px;
}

.photo-viewer-editor label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.photo-viewer-editor input,
.photo-viewer-editor textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 10px 11px;
  font: inherit;
  resize: vertical;
}


#photoViewerText {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.photo-viewer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}

.photo-viewer-scene-sync {
  position: sticky;
  bottom: 12px;
  z-index: 2;
  display: grid;
  gap: 8px;
  border: 1px solid rgba(182, 137, 49, 0.28);
  border-radius: 8px;
  background: rgba(255, 250, 235, 0.98);
  padding: 10px 12px;
  box-shadow: 0 -10px 22px -16px rgba(0, 0, 0, 0.3);
}

.photo-viewer-scene-sync[hidden] {
  display: none;
}

.photo-viewer-scene-sync p {
  margin: 0;
  color: #725619;
  font-size: 12px;
  line-height: 1.55;
}

.photo-viewer-scene-sync button {
  justify-self: start;
  min-height: 38px;
  padding: 0 14px;
}

.photo-viewer-posts {
  display: grid;
  gap: 10px;
  border-top: 1px dashed var(--line);
  padding-top: 12px;
}

.photo-viewer-posts[hidden] {
  display: none;
}

.photo-viewer-posts-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.photo-viewer-posts-head strong {
  color: var(--ink);
  font-size: 15px;
}

.photo-viewer-posts-empty {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.photo-viewer-posts-list {
  display: grid;
  gap: 10px;
}

.scene-post-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.55);
  padding: 10px 12px;
}

.scene-post-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.scene-post-head strong {
  color: var(--ink);
  font-size: 14px;
}

.scene-post-status {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.scene-post-status.is-wait {
  color: #8a5a14;
  background: rgba(182, 137, 49, 0.14);
}

.scene-post-status.is-ok {
  color: var(--green-ink);
  background: rgba(16, 97, 138, 0.1);
}

.scene-post-status.is-no {
  color: #b03a2e;
  background: rgba(192, 57, 43, 0.1);
}

.scene-post-photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.scene-post-photos img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.scene-post-body {
  display: grid;
  gap: 4px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink);
}

.scene-post-body p {
  margin: 0;
}

.scene-post-body a {
  color: var(--green-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.scene-post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.scene-post-actions button {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

.scene-post-form-wrap {
  border: 1px solid rgba(16, 97, 138, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  padding: 12px 14px;
  max-height: 60vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(16, 97, 138, 0.5) transparent;
}

.scene-post-form-wrap::-webkit-scrollbar {
  width: 10px;
}

.scene-post-form-wrap::-webkit-scrollbar-track {
  background: transparent;
}

.scene-post-form-wrap::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(16, 97, 138, 0.5);
  background-clip: content-box;
}

.scene-post-form {
  display: grid;
  gap: 12px;
}

.scene-post-form > strong {
  color: var(--ink);
  font-size: 15px;
}

.scene-post-context {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.scene-post-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.scene-post-form input[type="text"],
.scene-post-form input[type="url"],
.scene-post-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 10px 11px;
  outline: none;
  font-weight: 500;
}

.scene-post-form textarea {
  resize: vertical;
}

.scene-post-form input:focus,
.scene-post-form textarea:focus {
  border-color: var(--green-ink);
}

.scene-post-photo-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.scene-post-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.scene-post-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scene-post-photo-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: rgba(20, 22, 18, 0.72);
  color: var(--on-accent);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

.scene-post-check {
  display: flex !important;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  font-size: 12px;
  line-height: 1.65;
}

.scene-post-check input {
  flex: none;
  width: auto;
  margin-top: 2px;
}

.photo-viewer-media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 520px;
  background: #101619;
}

.photo-viewer-media img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: calc(100vh - 88px);
  object-fit: contain;
}

#photoViewerImage {
  transition: opacity 180ms ease;
  transform-origin: center;
  will-change: opacity, transform;
}

.photo-viewer-counter {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: var(--on-accent);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  padding: 5px 10px;
  pointer-events: none;
}

.photo-viewer-counter[hidden] {
  display: none;
}

.photo-viewer-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 56px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--on-accent);
  font-size: 34px;
  line-height: 1;
  transform: translateY(-50%);
}

.photo-viewer-nav.prev {
  left: 14px;
}

.photo-viewer-nav.next {
  right: 14px;
}

.photo-viewer-nav[hidden] {
  display: none;
}

.photo-viewer-dots {
  position: absolute;
  left: 50%;
  bottom: 16px;
  z-index: 3;
  display: flex;
  gap: 7px;
  transform: translateX(-50%);
}

.photo-viewer-dot {
  width: 7px;
  height: 7px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  padding: 0;
}

.photo-viewer-dot.active {
  width: 18px;
  background: var(--surface);
}

.photo-viewer-thumbs {
  position: absolute;
  right: 22px;
  bottom: 40px;
  left: 22px;
  z-index: 4;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(16, 22, 25, 0.08), rgba(16, 22, 25, 0.62));
  padding: 10px;
  scroll-snap-type: x proximity;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}

.photo-viewer-thumbs[hidden] {
  display: none;
}

.photo-viewer-thumb {
  flex: 0 0 82px;
  overflow: hidden;
  width: 82px;
  height: 56px;
  border: 2px solid transparent;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  padding: 0;
  scroll-snap-align: center;
  opacity: 0.72;
  transition: border-color 120ms ease, opacity 120ms ease, transform 120ms ease;
  cursor: pointer;
}

.photo-viewer-thumb:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.photo-viewer-thumb.active {
  border-color: #fff;
  opacity: 1;
}

.photo-viewer-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-viewer-close {
  position: fixed;
  top: 22px;
  right: 22px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--on-accent);
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.photo-viewer-back {
  position: fixed;
  top: 22px;
  left: 22px;
  z-index: 1060;
  display: grid;
  min-height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.38);
  color: var(--on-accent);
  font-size: 14px;
  font-weight: 800;
  padding: 0 14px;
  cursor: pointer;
}

.photo-viewer-back:hover {
  background: rgba(0, 0, 0, 0.55);
}

.photo-viewer-editor-actions {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.photo-viewer-editor-actions button {
  min-height: 40px;
  border-radius: 8px;
  font-weight: 900;
}

.quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: -5px;
}

.quick-tag,
.choice-chip {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
}

.quick-tag.active,
.choice-chip.active {
  border-color: rgba(16, 97, 138, 0.4);
  background: var(--mint);
  color: var(--green-ink);
}

.choice-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  z-index: 2000;
  max-width: min(560px, calc(100vw - 32px));
  padding: 12px 16px;
  border-radius: 8px;
  color: var(--on-accent);
  background: var(--ink);
  box-shadow: var(--shadow);
  text-align: center;
  pointer-events: none;
  animation: toast-in 180ms ease-out;
}

/* 窄屏下底部有 Tab 栏（56px + 安全区），toast 需浮于其上且避开 home indicator */
@media (max-width: 640px), (max-width: 900px) and (orientation: landscape) {
  .toast {
    bottom: calc(70px + var(--safe-bottom));
  }
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translate(-50%, 8px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* 首屏骨架屏：点位数据到达前占位，加载完成后由 renderSpotList 整体替换 */
.spot-card-skeleton {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.spot-card-skeleton .skeleton-cover,
.spot-card-skeleton .skeleton-line {
  background: linear-gradient(
    100deg,
    rgba(222, 216, 204, 0.65) 30%,
    rgba(222, 216, 204, 0.28) 48%,
    rgba(222, 216, 204, 0.65) 66%
  );
  background-size: 220% 100%;
  border-radius: 6px;
  animation: skeleton-sweep 1.3s ease-in-out infinite;
}

.spot-card-skeleton .skeleton-cover {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 8px;
}

.spot-card-skeleton .skeleton-body {
  display: grid;
  gap: 8px;
  flex: 1;
}

.spot-card-skeleton .skeleton-line {
  height: 12px;
}

.spot-card-skeleton .skeleton-line.w-40 {
  width: 40%;
}

.spot-card-skeleton .skeleton-line.w-70 {
  width: 70%;
}

.spot-card-skeleton .skeleton-line.w-55 {
  width: 55%;
}

@keyframes skeleton-sweep {
  from {
    background-position: 120% 0;
  }
  to {
    background-position: -60% 0;
  }
}

.empty-list .primary-btn {
  margin-top: 10px;
}

.me-offline-hint {
  margin: 4px 2px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

/* SW 更新横幅：常驻底部居中，浮于 toast 之上，可点击 */
.sw-update {
  position: fixed;
  left: 50%;
  bottom: 80px;
  transform: translateX(-50%);
  z-index: 2010;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 10px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--on-accent);
  box-shadow: var(--shadow);
  font-size: 14px;
}

/* 关键：类选择器优先级高于 [hidden] 的 UA display:none，必须显式声明否则横幅常驻 */
.sw-update[hidden] {
  display: none;
}

.sw-update-apply {
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  background: var(--green-bg);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.sw-update-dismiss {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
  line-height: 1;
  padding: 2px 6px;
  cursor: pointer;
}

@media (max-width: 640px), (max-width: 900px) and (orientation: landscape) {
  .sw-update {
    bottom: calc(118px + var(--safe-bottom));
    max-width: calc(100vw - 32px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .toast,
  .spot-card-skeleton .skeleton-cover,
  .spot-card-skeleton .skeleton-line {
    animation: none;
  }

  .agent-answer.agent-thinking-status {
    animation: none;
  }
}

.add-mode-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 950;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: calc(10px + var(--safe-top)) 16px 10px;
  background: var(--green-bg);
  color: var(--green-ink);
  box-shadow: 0 10px 28px rgba(16, 97, 138, 0.28);
  transform: translateY(-100%);
  transition: transform 220ms ease;
}

.add-mode-banner.is-visible {
  transform: translateY(0);
}

.add-mode-banner strong {
  font-size: 14px;
  white-space: nowrap;
}

.add-mode-banner span {
  font-size: 12px;
  opacity: 0.9;
  white-space: nowrap;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 1060;
  display: grid;
  place-items: center;
  padding: clamp(14px, 4vw, 48px);
  background: rgba(20, 29, 27, 0.58);
  backdrop-filter: blur(12px);
}

.auth-modal[hidden] {
  display: none;
}

.lifecycle-modal {
  position: fixed;
  inset: 0;
  z-index: 1070;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(35, 38, 36, 0.48);
  backdrop-filter: blur(8px);
}

.lifecycle-modal[hidden] {
  display: none;
}

.lifecycle-dialog {
  width: min(460px, 100%);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: var(--shadow);
  padding: 24px;
}

.lifecycle-dialog h2 {
  margin: 6px 0 8px;
}

.lifecycle-dialog p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.6;
}

.lifecycle-dialog label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.lifecycle-dialog textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
  line-height: 1.5;
}

.lifecycle-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 18px;
}

.lifecycle-dialog.is-danger #confirmLifecycle {
  background: #a34234;
}

.auth-dialog {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(390px, 1.1fr);
  width: min(880px, 100%);
  max-height: min(720px, calc(100vh - 28px));
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 0 32px 100px rgba(16, 26, 23, 0.36);
}

.auth-brand-panel {
  display: flex;
  min-height: 540px;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 5vw, 54px);
  color: #f8f5ec;
  background:
    radial-gradient(circle at 10% 12%, rgba(240, 184, 90, 0.28), transparent 26%),
    linear-gradient(145deg, #214b3d, #17372f 64%, #102a24);
}

.auth-brand-mark {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 28px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 16px;
  color: #17372f;
  background: #f0b85a;
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(10, 31, 25, 0.25);
}

.auth-brand-panel .eyebrow {
  color: #bcd8cc;
}

.auth-brand-panel h2 {
  max-width: 360px;
  margin: 10px 0 16px;
  font-size: clamp(27px, 3.2vw, 38px);
  line-height: 1.18;
}

.auth-brand-panel > p {
  margin: 0;
  color: rgba(248, 245, 236, 0.72);
  line-height: 1.7;
}

.auth-role-list {
  display: grid;
  gap: 9px;
  margin-top: 34px;
}

.auth-role-list span {
  padding-left: 17px;
  color: rgba(248, 245, 236, 0.82);
  font-size: 13px;
  line-height: 1.5;
}

.auth-role-list span::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 10px 2px -16px;
  border-radius: 50%;
  background: #f0b85a;
}

.auth-panel {
  position: relative;
  display: flex;
  min-height: 540px;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 5vw, 54px);
}

.auth-panel h2 {
  margin: 7px 38px 8px 0;
  font-size: 28px;
  line-height: 1.2;
}

.auth-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f2eee5;
  color: var(--muted);
  font-size: 22px;
}

.auth-intro {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.55;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 16px;
  padding: 4px;
  border-radius: 9px;
  background: var(--bg);
}

.auth-tabs button {
  height: 36px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.auth-tabs button.active {
  background: var(--paper);
  color: var(--green-ink);
  box-shadow: 0 4px 12px rgba(41, 46, 43, 0.08);
}

.auth-form {
  display: grid;
  gap: 13px;
}

.auth-form[hidden] {
  display: none;
}

.auth-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.auth-form input {
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 12px;
  outline: none;
}

.auth-form input:focus {
  border-color: var(--green-ink);
}

.password-input-wrap {
  position: relative;
  display: block;
}

.password-input-wrap input {
  width: 100%;
  padding-right: 82px;
}

.sms-input-row {
  display: flex;
  gap: 8px;
}

.sms-input-row input {
  flex: 1;
  min-width: 0;
}

.sms-input-row .ghost-btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.password-peek {
  position: absolute;
  top: 50%;
  right: 6px;
  height: 32px;
  border: 0;
  border-radius: 7px;
  padding: 0 9px;
  color: var(--green-ink);
  background: var(--mint);
  font-size: 11px;
  font-weight: 900;
  transform: translateY(-50%);
  touch-action: none;
  user-select: none;
}

.password-peek[aria-pressed="true"] {
  color: var(--green-ink);
  background: var(--green-bg);
}

.auth-remember-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  user-select: none;
}

.auth-remember-row input[type="checkbox"] {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  margin-top: 1px;
  padding: 0;
  accent-color: var(--green-ink);
}

.auth-remember-text {
  display: block;
  line-height: 1.45;
}

.auth-remember-text strong {
  font-size: 13px;
}

.auth-remember-text small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.account-rules {
  margin: -5px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.display-name-hint {
  margin: -5px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.display-name-form {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.account-ai-review-note {
  margin: -3px 0 0;
  border: 1px solid rgba(182, 137, 49, 0.24);
  border-radius: 8px;
  background: rgba(255, 247, 221, 0.72);
  padding: 8px 10px;
  color: #725619;
  font-size: 11px;
  line-height: 1.55;
}

.auth-form .primary-btn,
.account-actions button {
  min-height: 44px;
}

.auth-error {
  margin: 0 0 12px;
  border-radius: 8px;
  background: rgba(216, 95, 69, 0.1);
  color: #a33f2d;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 800;
}

.recent-accounts {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.recent-accounts[hidden] {
  display: none;
}

.recent-accounts-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.recent-accounts-head strong {
  font-size: 13px;
}

.recent-accounts-head span {
  color: var(--muted);
  font-size: 11px;
}

.recent-account-select {
  width: 100%;
  height: 44px;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 10px;
  font-size: 13px;
  font-weight: 700;
  outline: none;
}

.recent-account-select:focus {
  border-color: var(--green-ink);
}

.recent-account-select optgroup {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.recent-account-select option {
  color: var(--ink);
  font-weight: 600;
}

.auth-back-button {
  width: 100%;
  margin-top: 14px;
  border: 0;
  color: var(--green-ink);
  background: transparent;
  font-size: 13px;
  font-weight: 800;
}

.auth-back-button[hidden] {
  display: none;
}

.account-summary {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 20px 0 24px;
}

.account-summary h2,
.account-summary .auth-intro {
  margin: 0;
}

.account-summary .auth-intro {
  margin-top: 5px;
  font-size: 13px;
}

.account-avatar {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  place-items: center;
  border-radius: 18px;
  color: var(--green-ink);
  background: var(--green-bg);
  font-size: 23px;
  font-weight: 900;
}

.account-avatar.is-admin {
  color: #4c3212;
  background: var(--amber);
}

.account-permission-note {
  border: 1px solid #cbded5;
  border-radius: 12px;
  padding: 14px 16px;
  background: var(--mint);
}

.account-permission-note strong {
  font-size: 13px;
}

.account-permission-note p {
  margin: 5px 0 0;
  color: #446257;
  font-size: 13px;
  line-height: 1.55;
}

.account-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.password-change-notice {
  margin-top: 16px;
  border: 1px solid rgba(182, 137, 49, 0.3);
  border-radius: 10px;
  background: rgba(255, 247, 221, 0.78);
  padding: 12px 14px;
  color: #725619;
}

.password-change-notice strong {
  font-size: 13px;
}

.password-change-notice p {
  margin: 5px 0 0;
  font-size: 12px;
  line-height: 1.55;
}

.change-password-form {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

@media (max-width: 720px) {
  .auth-dialog {
    grid-template-columns: 1fr;
  }

  .auth-brand-panel {
    display: none;
  }

  .auth-panel {
    min-height: 0;
    padding: 30px 24px;
  }

  .account-actions {
    grid-template-columns: 1fr;
  }

  .user-management-header {
    padding: 16px;
  }

  .user-management-header-actions {
    flex-direction: column-reverse;
  }

  .user-management-summary,
  .user-management-filters {
    padding-inline: 16px;
  }
}

@media (max-width: 1120px) {
  .app-shell {
    padding: 10px;
  }

  .spot-strip.is-open + .detail-panel,
  .spot-strip.is-open ~ .detail-panel {
    right: 18px;
  }
}

@media (max-width: 760px) and (min-width: 641px) {
  .topbar {
    grid-template-columns: 1fr;
  }

  .layer-switch {
    width: 100%;
  }

  .layer-btn {
    flex: 1;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px), (max-width: 900px) and (orientation: landscape) {
  body {
    overflow: auto;
  }

  .app-shell {
    display: flex;
    flex-direction: column;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: visible;
    padding: 10px;
    padding-top: calc(10px + var(--safe-top));
    padding-right: calc(10px + var(--safe-right));
    padding-bottom: calc(66px + var(--safe-bottom));
    padding-left: calc(10px + var(--safe-left));
  }

  .topbar {
    grid-template-columns: 1fr;
    gap: 6px;
    margin-bottom: 6px;
  }

  .brand .brand-mark {
    width: 34px;
    height: 34px;
    font-size: 24px;
  }

  .brand strong {
    font-size: 14px;
  }

  .brand span {
    display: none;
  }

  .map-stage {
    flex: 1;
    min-height: 0;
  }

  .layer-switch {
    width: 100%;
  }

  .layer-btn {
    flex: 1;
  }

  .map-card {
    flex: 1;
    height: auto;
    min-height: 320px;
  }

  .spot-strip {
    top: auto;
    right: 10px;
    bottom: calc(66px + var(--safe-bottom));
    left: 10px;
    width: auto;
    max-height: min(70vh, 620px);
    transform: translateY(calc(100% - 76px));
  }

  .spot-strip.is-open {
    transform: translateY(0);
  }

  .spot-strip-handle {
    top: auto;
    right: 16px;
    bottom: 0;
    width: 96px;
    min-height: 34px;
    border: 1px solid var(--line);
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
    transform: none;
    writing-mode: horizontal-tb;
  }

  .detail-panel {
    top: auto;
    right: 10px;
    bottom: calc(66px + var(--safe-bottom));
    left: 10px;
    width: auto;
    max-height: calc(100vh - 20px);
    transform: translateY(calc(100% + 16px));
  }

  .scene-grid {
    grid-template-columns: 1fr;
  }

  .scene-preview-head {
    align-items: start;
    flex-direction: column;
  }

  .scene-preview-head span {
    text-align: left;
  }

  .upload-targets {
    grid-template-columns: 1fr;
  }

  .photo-viewer {
    padding: 12px;
  }

  .photo-viewer-layout {
    grid-template-columns: 1fr;
    width: 100%;
    max-height: calc(100vh - 24px);
  }

  .photo-viewer-info {
    max-height: 34vh;
    padding: 22px;
  }

  #photoViewerTitle {
    font-size: 24px;
  }

  .photo-viewer-media {
    min-height: 46vh;
  }

  .detail-panel.is-open {
    transform: translateY(0);
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

.site-legal-footer {
  position: fixed;
  z-index: 30;
  right: 18px;
  bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(68, 70, 58, 0.12);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.88);
  padding: 5px 10px;
  box-shadow: 0 5px 18px rgba(24, 32, 28, 0.08);
  font-size: 10px;
}

.site-legal-footer a,
.site-legal-footer span {
  color: var(--muted);
  text-decoration: none;
}

.site-legal-footer a:hover {
  color: var(--green-ink);
  text-decoration: underline;
}

.legal-page {
  min-height: 100vh;
  background: #f4f0e7;
  color: var(--ink);
  padding: 36px 18px 70px;
}

.legal-document {
  width: min(860px, 100%);
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  padding: clamp(24px, 5vw, 54px);
  box-shadow: 0 22px 60px rgba(24, 32, 28, 0.1);
}

.legal-document h1 {
  margin: 8px 0 10px;
  font-size: clamp(28px, 5vw, 42px);
}

.legal-document h2 {
  margin: 30px 0 10px;
  font-size: 20px;
}

.legal-document p,
.legal-document li {
  color: #53564d;
  line-height: 1.8;
}

.legal-document .draft-warning {
  border: 1px solid rgba(185, 75, 51, 0.28);
  border-radius: 12px;
  background: #fff7f3;
  color: #8a3c2a;
  padding: 12px 14px;
}

.legal-document .legal-back {
  display: inline-flex;
  margin-top: 30px;
  color: var(--green-ink);
  font-weight: 800;
}

@media (max-width: 640px), (max-width: 900px) and (orientation: landscape) {
  .site-legal-footer {
    position: static;
    justify-content: center;
    flex-wrap: wrap;
    margin: 10px;
    border-radius: 12px;
  }
}

/* 移动端地图工具栏与面板微调 */
@media (max-width: 640px), (max-width: 900px) and (orientation: landscape) {
  .map-mode-switch {
    top: 8px;
    left: 8px;
    max-width: calc(100% - 52px);
    flex-wrap: wrap;
  }

  .map-mode-switch button {
    padding: 4px 7px;
    font-size: 11px;
  }

  .map-mode-switch span {
    max-width: 132px;
    padding: 0 4px;
    font-size: 11px;
  }

  .base-map-style-select {
    max-width: 104px;
    font-size: 11px;
  }

  .spot-strip {
    max-height: 45vh;
  }

  .detail-panel {
    max-height: 45vh;
  }
}

/* 移动端可上下拖拽的面板：推荐栏常驻露出标题条，详情面板默认只盖一半以下的地图 */
@media (max-width: 640px), (max-width: 900px) and (orientation: landscape) {
  .spot-strip {
    border-radius: 14px 14px 0 0;
  }

  .spot-strip-handle {
    display: none;
  }

  .strip-head {
    cursor: grab;
    touch-action: none;
    user-select: none;
    padding-bottom: 10px;
  }

  .spot-strip.is-dragging,
  .detail-panel.is-dragging {
    transition: none;
  }

  .panel-grip {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 22px;
    cursor: grab;
    touch-action: none;
    flex: none;
  }

  .panel-grip::after {
    content: "";
    width: 44px;
    height: 4px;
    border-radius: 999px;
    background: rgba(38, 46, 50, 0.18);
  }

  .mobile-filter-toggle {
    display: inline-flex;
    align-items: center;
  }

  .back-to-library {
    display: inline-flex;
    align-items: center;
  }

  .strip-head {
    gap: 8px;
    padding: 12px 14px 8px;
  }

  .strip-head .strip-title span {
    display: none;
  }

  .strip-head .filter-block {
    display: none;
  }

  .spot-strip.filters-open .strip-head .filter-block {
    display: grid;
  }
}

/* 移动端点位详情：标题横排一行、操作按钮田字格、图片墙 2×2、场景两列 */
@media (max-width: 640px), (max-width: 900px) and (orientation: landscape) {
  .detail-panel .panel-head {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 10px 12px 8px;
  }

  .detail-panel .panel-head > div:first-child {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
  }

  .detail-panel .panel-head .eyebrow {
    display: none;
  }

  .detail-panel .panel-head h1 {
    flex: 1;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    font-size: 16px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .detail-panel .detail-meta {
    flex: 0 0 auto;
    max-width: 46%;
    margin: 0;
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .detail-panel .panel-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
  }

  .detail-panel .panel-actions button {
    min-width: 0;
    height: 34px;
    padding: 0 4px;
    font-size: 12px;
  }

  .detail-panel .panel-actions .close-detail {
    width: auto;
    height: 34px;
    font-size: 18px;
  }

  .detail-hero {
    gap: 8px;
  }

  .mobile-photo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .mobile-photo-cell {
    position: relative;
    display: block;
    overflow: hidden;
    min-width: 0;
    border: 1px solid rgba(222, 216, 204, 0.88);
    border-radius: 8px;
    background: var(--mint);
    padding: 0;
  }

  .mobile-photo-cell img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }

  .mobile-photo-cell-tag {
    position: absolute;
    left: 6px;
    bottom: 6px;
    max-width: calc(100% - 12px);
    overflow: hidden;
    border-radius: 999px;
    background: rgba(29, 36, 40, 0.66);
    color: var(--on-accent);
    padding: 3px 7px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .detail-view {
    padding: 10px 12px 18px;
  }

  .detail-section {
    padding: 9px 10px;
  }

  .scene-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-panel.is-dragging {
    will-change: transform;
  }
}

/* 移动端图片查看器：圆角方形、图片可上下滑动、底部留黑边空隙、标识与图片分开 */
@media (max-width: 640px), (max-width: 900px) and (orientation: landscape) {
  .detail-section {
    border-radius: 12px;
    padding: 10px 12px;
  }

  .detail-section p {
    font-size: 14px;
    line-height: 1.62;
  }

  .photo-viewer {
    padding: 8px;
    bottom: calc(66px + var(--safe-bottom));
  }

  .photo-viewer-layout {
    grid-template-columns: 1fr;
    width: 100%;
    max-height: 100%;
    border-radius: 14px;
  }

  .photo-viewer-info {
    max-height: 30vh;
    gap: 8px;
    padding: 14px 14px 12px;
  }

  #photoViewerTitle {
    font-size: 20px;
  }

  .photo-viewer-meta {
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px solid rgba(222, 216, 204, 0.7);
  }

  .photo-viewer-media {
    min-height: 0;
    overflow-y: auto;
    place-items: start center;
    background: #101619;
    padding: 10px;
    padding-bottom: calc(22px + var(--safe-bottom));
  }

  .photo-viewer-media img {
    width: 100%;
    height: auto;
    max-height: none;
    border-radius: 12px;
  }

  .photo-viewer.is-composing .photo-viewer-layout {
    overflow-y: auto;
  }

  .photo-viewer.is-composing .photo-viewer-info {
    max-height: none;
  }

  .photo-viewer-nav {
    width: 34px;
    height: 44px;
    font-size: 26px;
  }

  .photo-viewer-dots {
    bottom: 14px;
  }

  .photo-viewer-thumbs {
    right: 12px;
    bottom: 38px;
    left: 12px;
    gap: 8px;
    padding: 8px;
  }

  .photo-viewer-thumb {
    flex-basis: 58px;
    width: 58px;
    height: 42px;
    border-radius: 6px;
  }

  .photo-viewer-back {
    top: 12px;
    left: 12px;
    min-height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }
}

/* 移动端：顶部菜单打开时盖过点位资料库/详情面板；详情面板头部为更大拖拽区 */
@media (max-width: 640px), (max-width: 900px) and (orientation: landscape) {
  .topbar.is-open {
    z-index: 50;
  }

  .map-status {
    top: 58px;
    left: 8px;
    bottom: auto;
    z-index: 20;
    gap: 6px;
  }

  .map-status > span {
    padding: 6px 9px;
    font-size: 12px;
  }

  .map-status .map-scale {
    padding: 5px 8px;
  }

  .detail-panel .panel-grip,
  .detail-panel .panel-head {
    touch-action: none;
    cursor: grab;
  }

  .comment-actions {
    flex-wrap: wrap;
  }

  .comment-actions button {
    min-height: 34px;
  }

  .photo-actions {
    flex-wrap: wrap;
    gap: 8px;
  }

  .photo-actions button {
    min-height: 36px;
  }
}

/* 平板竖屏（641-900px 宽、竖屏）窄桌面适配：顶栏自动换行，避免账号/审核等按钮被挤出屏幕 */
@media (min-width: 641px) and (max-width: 900px) {
  .topbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
  }

  .topbar > .brand {
    flex: 0 0 auto;
  }

  .topbar > .search-wrap {
    flex: 1 1 240px;
    min-width: 180px;
  }

  .topbar > .layer-switch {
    order: 10;
  }

  .topbar > .add-spot-btn,
  .topbar > .data-tools {
    order: 11;
  }

  .brand span {
    display: none;
  }
}

/* 移动端顶部栏抽拉式：默认只留搜索 + 菜单按钮，展开后显示品牌/层级/操作 */
@media (max-width: 640px), (max-width: 900px) and (orientation: landscape) {
  .topbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
  }

  .search-wrap {
    order: 1;
    flex: 1 1 auto;
    min-width: 0;
  }

  .mobile-menu-toggle {
    order: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-add-spot {
    order: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 10px;
    background: var(--green-bg);
    color: var(--green-ink);
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(16, 97, 138, 0.22);
  }

  .topbar > .brand,
  .topbar > .layer-switch,
  .topbar > .add-spot-btn,
  .topbar > .data-tools {
    display: none;
    width: 100%;
    order: 3;
  }

  .topbar.is-open > .brand,
  .topbar.is-open > .layer-switch,
  .topbar.is-open > .add-spot-btn,
  .topbar.is-open > .data-tools {
    display: flex;
  }

  .topbar.is-open > .data-tools {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

.archive-center-body {
  min-height: 0;
  border-top: 1px solid var(--line);
}

.archive-center-list {
  overflow-y: auto;
  padding: 14px 18px;
  display: grid;
  gap: 10px;
  background: rgba(255, 253, 248, 0.72);
}

.archive-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  padding: 12px 14px;
}

.archive-item-info {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.archive-item-meta,
.archive-item-reason {
  color: var(--muted);
  font-size: 13px;
}

.archive-item-reason {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 560px;
}

.archive-item-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.stats-center-content {
  overflow-y: auto;
  padding: 16px 18px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 18px;
}

.stats-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.stats-tabs {
  display: flex;
  gap: 8px;
  padding: 10px 18px 0;
}

.stats-tab {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  padding: 6px 14px;
  cursor: pointer;
}

.stats-tab.active {
  background: var(--green-bg);
  border-color: transparent;
  color: var(--green-ink);
}

.stats-expand-btn {
  border: 1px dashed rgba(16, 97, 138, 0.4);
  border-radius: 999px;
  background: rgba(220, 238, 247, 0.45);
  color: var(--green-ink);
  font-size: 12px;
  font-weight: 800;
  padding: 6px 12px;
  margin-top: 10px;
  cursor: pointer;
}

.stats-expand-btn:hover {
  background: var(--mint);
  border-color: rgba(16, 97, 138, 0.7);
}

.stats-card {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  padding: 12px 14px;
}

.stats-card span {
  color: var(--muted);
  font-size: 13px;
}

.stats-card strong {
  font-size: 22px;
}

.stats-block {
  display: grid;
  gap: 8px;
}

.stats-block h3 {
  font-size: 15px;
}

.stats-list {
  display: grid;
  gap: 4px;
}

.stats-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 8px 12px;
  font-size: 14px;
}

.stats-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-usage-table {
  display: grid;
  gap: 4px;
}

.agent-usage-row {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 1fr 1fr 0.9fr;
  gap: 6px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 7px 10px;
  font-size: 13px;
}

.agent-usage-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
}

.agent-usage-row span:first-child {
  text-align: left;
}

.agent-usage-head {
  background: rgba(137, 207, 240, 0.18);
  font-weight: 600;
  color: var(--green-ink);
}

.agent-usage-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.stats-updated {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  margin: 12px 2px 0;
}

.kb-audit-table {
  display: grid;
  gap: 4px;
}

.kb-audit-row {
  display: grid;
  grid-template-columns: 130px 70px 1fr;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 7px 10px;
  font-size: 13px;
}

.kb-audit-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kb-audit-head {
  background: rgba(137, 207, 240, 0.18);
  font-weight: 600;
  color: var(--green-ink);
}

/* 移动端底部导航：首页 / 我的 */
.mobile-tabbar {
  display: none;
}

.me-view {
  display: none;
}

@media (max-width: 640px), (max-width: 900px) and (orientation: landscape) {
  .mobile-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    display: flex;
    height: calc(56px + var(--safe-bottom));
    padding-bottom: var(--safe-bottom);
    align-items: stretch;
    background: var(--paper);
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 18px rgba(41, 46, 43, 0.08);
  }

  .mobile-tabbar[hidden] {
    display: none;
  }

  .mobile-tab-btn {
    flex: 1;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
    min-height: 44px;
  }

  .mobile-tab-btn[aria-pressed="true"] {
    color: var(--green-ink);
  }

  .me-view {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: calc(56px + var(--safe-bottom));
    z-index: 800;
    display: block;
    overflow-y: auto;
    background: var(--bg);
    padding: calc(12px + var(--safe-top)) 14px 20px;
  }

  .me-view[hidden] {
    display: none;
  }

  body.me-tab-active .map-stage,
  body.me-tab-active .spot-strip,
  body.me-tab-active .detail-panel {
    display: none;
  }

  /* 顶部搜索区让出状态栏（刘海/状态栏覆盖时） */
  .topbar {
    padding-top: calc(6px + var(--safe-top));
  }

  /* 顶部抽屉只保留品牌与地图层级，账号相关移入“我的” */
  .topbar > .data-tools,
  .topbar > .add-spot-btn {
    display: none !important;
  }

  /* 筛选展开时允许上下滚动，不再被抽屉拖拽逻辑拦截 */
  .spot-strip.filters-open .strip-head {
    touch-action: pan-y;
    cursor: default;
  }

  .spot-strip.filters-open .filter-block {
    overflow-y: auto;
    max-height: 42vh;
    padding-right: 4px;
  }

  /* “我的”页面卡片与按钮 */
  .me-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 12px;
    display: grid;
    gap: 10px;
  }

  .me-account-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .me-account-line span {
    font-weight: 800;
    color: var(--ink);
  }

  .me-account-line button,
  .me-card > button,
  .me-grid button {
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    color: var(--ink);
    font-size: 15px;
    font-weight: 800;
  }

  .me-account-line button {
    padding: 0 14px;
  }

  .me-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .me-grid button[hidden] {
    display: none;
  }
}

/* 移动端审核中心适配：全屏、头部按钮网格、标签单行横滑、列表与详情上下分栏 */
@media (max-width: 640px), (max-width: 900px) and (orientation: landscape) {
  .review-center-modal {
    padding: 0;
    place-items: start center;
  }

  .review-center-dialog {
    position: relative;
    display: block;
    width: 100vw;
    height: 100dvh;
    max-height: 100vh;
    overflow-y: auto;
    border-radius: 0;
    -webkit-overflow-scrolling: touch;
  }

  .review-center-header {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: calc(10px + var(--safe-top)) 14px 10px;
  }

  .review-center-header > div:first-child {
    padding-right: 44px;
  }

  .review-center-header h2 {
    margin: 2px 0 4px;
    font-size: 18px;
  }

  .review-center-header p {
    font-size: 12px;
  }

  .review-center-header-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
  }

  .review-center-header-actions .review-ai-status {
    grid-column: 1 / -1;
    min-height: 32px;
  }

  .review-center-header-actions button {
    min-width: 0;
    height: 36px;
    padding: 0 6px;
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .review-center-header-actions .review-center-close {
    position: absolute;
    top: calc(8px + var(--safe-top));
    right: 10px;
    width: 38px;
    height: 38px;
    font-size: 20px;
  }

  .review-center-summary {
    gap: 8px;
    padding: 10px 12px 6px;
  }

  .review-center-summary article {
    min-height: 46px;
    padding: 8px 10px;
  }

  .review-center-summary strong {
    font-size: 20px;
  }

  .review-center-tabs,
  .review-center-type-filters {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    padding-inline: 14px;
    -webkit-overflow-scrolling: touch;
  }

  .review-center-tabs button,
  .review-center-type-filters button {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .review-center-type-filters {
    padding-block: 8px 10px;
  }

  .review-center-type-filters .review-status-filter-start {
    margin-left: 0;
  }

  .review-center-search-wrap {
    padding: 0 14px 10px;
  }

  .review-center-body {
    display: flex;
    flex-direction: column;
  }

  .review-center-list {
    order: 2;
    position: sticky;
    top: 50vh;
    max-height: 50vh;
    overflow-y: auto;
    border-right: 0;
  }

  .review-center-detail {
    order: 1;
    overflow: visible;
  }
}

/* 移动端我的内容中心适配：全屏、单栏、列表区约 1/3、按钮与栏位缩小 */
@media (max-width: 640px), (max-width: 900px) and (orientation: landscape) {
  .my-content-modal {
    padding: 0;
    place-items: start center;
  }

  .my-content-dialog {
    width: 100vw;
    height: 100dvh;
    max-height: 100vh;
    border-radius: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .my-content-header {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: calc(10px + var(--safe-top)) 14px 10px;
  }

  .my-content-header h2 {
    margin: 2px 0 4px;
    font-size: 18px;
  }

  .my-content-header p {
    font-size: 12px;
  }

  .my-content-header-actions button {
    min-width: 0;
    height: 34px;
    padding: 0 8px;
    font-size: 12px;
  }

  .my-content-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    padding: 10px 12px 6px;
  }

  .my-content-summary article {
    min-height: 42px;
    padding: 7px 10px;
  }

  .my-content-summary strong {
    font-size: 18px;
  }

  .my-content-tabs {
    gap: 6px;
    padding: 6px 12px;
  }

  .my-content-tabs button {
    padding: 6px 10px;
    font-size: 12px;
  }

  .my-content-filters {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 8px 12px 10px;
  }

  .my-content-filters input,
  .my-content-filters select {
    min-height: 36px;
    font-size: 13px;
  }

  .my-content-body {
    display: block;
  }

  .my-content-list {
    max-height: 34vh;
    overflow-y: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .my-content-list-item {
    gap: 4px;
    padding: 9px 11px;
  }
}

/* 移动端用户管理中心适配：全屏、单栏、列表约 1/3、备注可编辑 */
@media (max-width: 640px), (max-width: 900px) and (orientation: landscape) {
  .user-management-modal {
    padding: 0;
    place-items: start center;
  }

  .user-management-dialog {
    display: block;
    width: 100vw;
    height: 100dvh;
    max-height: 100vh;
    border-radius: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .user-management-header {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: calc(10px + var(--safe-top)) 14px 10px;
  }

  .user-management-header h2 {
    margin: 2px 0 4px;
    font-size: 18px;
  }

  .user-management-header-actions button {
    min-width: 0;
    height: 34px;
    padding: 0 8px;
    font-size: 12px;
  }

  .user-management-summary {
    gap: 7px;
    padding: 10px 12px 6px;
  }

  .user-management-summary article {
    min-height: 42px;
    padding: 7px 10px;
  }

  .user-management-summary strong {
    font-size: 18px;
  }

  .user-management-filters {
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    padding: 8px 12px 10px;
  }

  .user-management-filters input,
  .user-management-filters select {
    min-height: 36px;
    font-size: 13px;
  }

  .user-management-body {
    display: block;
  }

  .user-management-list {
    max-height: 34vh;
    overflow-y: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .managed-user-remark-row {
    flex-wrap: wrap;
  }

  .managed-user-remark-row input {
    flex: 1 1 100%;
  }

  .managed-user-remark-row button {
    flex: 1;
  }
}

/* 移动端顶部抽屉：新增点位、广东省、广州市、天河区 四个按钮一行 */
@media (max-width: 640px), (max-width: 900px) and (orientation: landscape) {
  .topbar.is-open > .brand {
    display: none !important;
  }

  .topbar.is-open > .add-spot-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 1 1 24%;
    min-height: 40px;
    margin: 0;
    padding: 8px 4px;
    font-size: 12px;
    order: 3;
  }

  .topbar.is-open > .layer-switch {
    display: flex !important;
    flex: 3 1 74%;
    gap: 4px;
    margin: 0;
    order: 3;
  }

  .topbar.is-open .layer-btn {
    flex: 1;
    min-width: 0;
    padding: 8px 4px;
    font-size: 12px;
  }

  .topbar.is-open .city-layer-wrap,
  .topbar.is-open .district-layer-wrap {
    flex: 1;
    min-width: 0;
  }

  .topbar.is-open .city-layer-wrap .layer-btn,
  .topbar.is-open .district-layer-wrap .layer-btn {
    width: 100%;
  }

  .topbar.is-open .city-layer-menu {
    top: calc(100% + 4px);
    right: 0;
    left: auto;
    z-index: 60;
  }

  /* 点位资料库里的区域筛选已移入顶部抽屉 */
  .filter-block .filter-group-district {
    display: none;
  }

  /* 首页审核工作台移入“我的→审核中心” */
  .review-workbench {
    display: none;
  }
}

/* ============ 七境智能体悬浮气泡 ============ */
.agent-bubble {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1100;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #ADD8E6, #9fd4ef);
  color: var(--green-ink);
  font-size: 19px;
  font-weight: 700;
  cursor: grab;
  user-select: none;
  touch-action: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.agent-bubble.dragging {
  cursor: grabbing;
}

.agent-panel {
  position: fixed;
  right: 18px;
  bottom: 84px;
  z-index: 1200;
  width: 360px;
  max-width: calc(100vw - 24px);
  height: min(520px, calc(100vh - 120px));
  background: #ADD8E6;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.agent-panel[hidden] {
  display: none;
}

.agent-panel.dragging {
  cursor: grabbing;
}

.agent-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: #ADD8E6;
  color: var(--green-ink);
  border-bottom: 1px solid rgba(16, 97, 138, 0.18);
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.agent-panel-head strong {
  font-size: 16px;
  color: var(--green-ink);
}

.agent-panel-head span {
  display: block;
  font-size: 12px;
  opacity: 0.85;
  margin-top: 2px;
  color: var(--green-ink);
}

.agent-panel-head button {
  background: none;
  border: none;
  color: var(--green-ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.agent-panel-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.agent-quota {
  font-size: 12px !important;
  opacity: 0.9;
  margin-top: 0 !important;
  white-space: nowrap;
}

.agent-new-chat {
  font-size: 13px !important;
  border: 1px solid rgba(16, 97, 138, 0.35) !important;
  border-radius: 8px;
  padding: 4px 10px;
  line-height: 1.4 !important;
  opacity: 0.9;
}

.agent-new-chat:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.35);
}

.agent-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #eef6fc;
}

.agent-msg {
  max-width: 85%;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.agent-msg.user {
  align-self: flex-end;
  background: var(--green-bg);
  color: var(--green-ink);
  border-bottom-right-radius: 4px;
}

.agent-msg.bot {
  align-self: flex-start;
  background: #ADD8E6;
  border: 1px solid rgba(16, 97, 138, 0.22);
  border-bottom-left-radius: 4px;
}

.agent-msg.bot.error {
  color: #b02a2a;
}

.agent-answer {
  white-space: pre-wrap;
  word-break: break-word;
}

.agent-answer.agent-thinking-status {
  color: var(--muted);
  font-size: 13px;
  animation: agent-pulse 1.2s ease-in-out infinite;
}

@keyframes agent-pulse {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

.agent-thinking {
  margin-top: 8px;
  border-top: 1px dashed rgba(16, 97, 138, 0.28);
  padding-top: 6px;
}

.agent-reply-scroll {
  max-height: 280px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.agent-thinking summary {
  cursor: pointer;
  font-size: 12px;
  color: var(--green-ink);
  opacity: 0.85;
  user-select: none;
}

.agent-thinking-body {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.6;
  color: #5c6b74;
  white-space: pre-wrap;
  word-break: break-word;
}

.agent-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.agent-chip {
  border: 1px solid var(--green-ink);
  color: var(--green-ink);
  background: var(--surface);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
}

.agent-chip:hover {
  background: #dff1fb;
}

.agent-spot-cards {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.agent-spot-card {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 1px solid rgba(16, 97, 138, 0.25);
  border-radius: 10px;
  background: var(--surface);
  padding: 6px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.agent-spot-card:hover {
  border-color: rgba(16, 97, 138, 0.65);
}

.agent-spot-card:active {
  transform: scale(0.98);
}

.agent-spot-card-img,
.agent-spot-card-thumb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.agent-spot-card-thumb {
  display: grid;
  place-items: center;
  background: #ADD8E6;
  color: #14618a;
  font-size: 20px;
  font-weight: 800;
}

.agent-spot-request {
  margin-top: 8px;
}

.agent-request-btn {
  width: 100%;
  border: 1px dashed rgba(16, 97, 138, 0.45);
  border-radius: 10px;
  background: rgba(220, 238, 247, 0.55);
  color: var(--green-ink);
  font-size: 12px;
  font-weight: 800;
  padding: 8px 10px;
  cursor: pointer;
  text-align: left;
}

.agent-request-btn:hover {
  border-color: rgba(16, 97, 138, 0.8);
  background: var(--mint);
}

.agent-request-form {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(16, 97, 138, 0.25);
  border-radius: 10px;
  background: var(--surface);
  padding: 8px;
}

.agent-request-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  padding: 7px 9px;
  color: var(--ink);
  background: var(--surface);
}

.agent-request-input:focus {
  outline: none;
  border-color: rgba(16, 97, 138, 0.55);
}

.agent-request-actions {
  display: flex;
  gap: 8px;
}

.agent-request-actions button {
  flex: 1;
  border: none;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  padding: 7px 10px;
  cursor: pointer;
}

.agent-request-submit {
  background: var(--green-bg);
  color: var(--green-ink);
}

.agent-request-cancel {
  background: rgba(220, 220, 216, 0.6);
  color: var(--muted);
}

.spot-request-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.spot-request-item {
  border: 1px solid rgba(222, 216, 204, 0.8);
  border-radius: 10px;
  background: rgba(255, 253, 248, 0.7);
  padding: 9px 11px;
  display: grid;
  gap: 4px;
}

.spot-request-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.spot-request-item-head strong {
  font-size: 13px;
  color: var(--green-ink);
}

.spot-request-item-head time {
  font-size: 11px;
  color: var(--muted);
}

.spot-request-item p {
  margin: 0;
  font-size: 13px;
  color: var(--ink);
}

.spot-request-item small {
  font-size: 11px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.agent-spot-card-info {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.agent-spot-card-info strong {
  font-size: 14px;
  color: var(--green-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-spot-card-info small {
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-composer {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid #e3e6e8;
  background: var(--surface);
  align-items: flex-end;
}

.agent-composer input {
  flex: 1;
  min-width: 0;
  height: 36px;
  border: 1px solid #d8dcdf;
  border-radius: 10px;
  padding: 0 10px;
  font-size: 13px;
  font-family: inherit;
}

.agent-composer button {
  background: var(--green-bg);
  color: var(--green-ink);
  border: none;
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
}

.agent-composer button:disabled {
  opacity: 0.6;
  cursor: default;
}

@media (max-width: 640px) {
  .agent-bubble {
    right: 10px;
    bottom: calc(68px + var(--safe-bottom));
    width: 40px;
    height: 40px;
    font-size: 17px;
  }

  .agent-panel {
    left: 6px;
    right: 6px;
    bottom: calc(116px + var(--safe-bottom));
    width: auto;
    height: 56vh;
  }

  .agent-panel-head {
    padding: 9px 12px;
  }

  .agent-panel-head strong {
    font-size: 14px;
  }

  .agent-panel-head span {
    font-size: 11px;
  }

  .agent-quota {
    font-size: 11px !important;
  }

  .agent-new-chat {
    font-size: 12px !important;
    padding: 3px 8px;
  }

  .agent-msg {
    font-size: 13px;
    padding: 8px 10px;
  }

  .agent-reply-scroll {
    max-height: 210px;
  }

  .agent-spot-card-img,
  .agent-spot-card-thumb {
    width: 44px;
    height: 44px;
  }

  .agent-composer {
    padding: 8px;
  }

  .agent-composer input {
    font-size: 13px;
  }

  .agent-composer button {
    padding: 7px 12px;
    font-size: 13px;
  }
}

/* 手机端详情 / 首页差异化（2026-08-13） */
@media (max-width: 640px), (max-width: 900px) and (orientation: landscape) {
  .detail-panel .panel-head h1 {
    font-size: 18px;
    font-weight: 800;
  }

  .detail-panel .panel-actions button {
    height: 40px;
    font-size: 13px;
  }

  #searchInput {
    height: 44px;
    border-radius: 12px;
    font-size: 15px;
  }

  .spot-card {
    padding: 12px 14px;
  }

  .navigation-entry {
    padding: 12px 14px;
    border-radius: 12px;
  }
}

/* 2026-08-31 手机端去挤：点位资料库头部压缩、卡片触控区加高、地图控件收敛 */
@media (max-width: 640px), (max-width: 900px) and (orientation: landscape) {
  .strip-head {
    gap: 6px;
    padding: 10px 12px 6px;
  }

  .strip-title strong {
    font-size: 15px;
  }

  .library-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding-top: 7px;
  }

  .library-toolbar label {
    grid-auto-flow: column;
    align-items: center;
    gap: 6px;
    font-size: 11px;
  }

  .library-toolbar select,
  .library-toggle {
    min-height: 30px;
    font-size: 12px;
  }

  .spot-list {
    gap: 8px;
    padding: 10px;
  }

  .spot-card,
  .spot-card:not(.expanded) {
    min-height: 54px;
    border-radius: 10px;
  }

  .map-mode-switch {
    top: 8px;
    left: 8px;
    padding: 3px 6px;
  }

  .map-mode-switch button {
    min-height: 28px;
    padding: 4px 8px;
    font-size: 12px;
  }

.base-map-style-select {
  min-height: 28px;
  }
}

/* 2026-08-31 收藏列表 + 审核中心疑似重复 */
.favorite-entry {
  align-items: flex-start;
}

.favorite-entry-info {
  display: grid;
  gap: 3px;
  min-width: 0;
  flex: 1 1 auto;
}

.favorite-entry-info strong {
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.favorite-entry-info span {
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.favorite-entry > button {
  min-height: 34px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--green-ink);
  font-size: 13px;
  font-weight: 800;
  padding: 4px 12px;
}

.duplicate-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(216, 95, 69, 0.28);
  border-radius: 10px;
  background: rgba(255, 253, 248, 0.9);
  margin-bottom: 8px;
}

.duplicate-item .review-item-info {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.duplicate-item .review-item-info strong {
  font-size: 14px;
}

.duplicate-item .review-item-meta {
  color: var(--muted);
  font-size: 12px;
}

.duplicate-item .review-item-actions {
  display: flex;
  gap: 6px;
  flex: 0 0 auto;
}

.duplicate-item .review-item-actions button {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--green-ink);
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
}
