:root {
  --paper: #f5efe4;
  --paper-strong: #fffaf1;
  --ink: #1f1b17;
  --muted: #6b6257;
  --line: rgba(31, 27, 23, 0.1);
  --accent: #b14e1f;
  --accent-deep: #7d3218;
  --accent-soft: #e7c28c;
  --panel: rgba(255, 250, 241, 0.84);
  --shadow: 0 22px 70px rgba(70, 37, 17, 0.16);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --body-font: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display-font: "Source Han Serif SC", "Songti SC", "STSong", serif;
  --mono-font: "JetBrains Mono", "SFMono-Regular", "Menlo", monospace;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--body-font);
  background:
    radial-gradient(circle at top left, rgba(225, 155, 84, 0.22), transparent 30%),
    radial-gradient(circle at right 10% top 15%, rgba(177, 78, 31, 0.12), transparent 22%),
    linear-gradient(180deg, #efe7d8 0%, #f5efe4 38%, #f3ede1 100%);
}

.backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.35;
}

.page-shell {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 20px 64px;
}

.page-shell-wide {
  max-width: 1540px;
}

.auth-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.page-login .auth-shell {
  min-height: calc(100vh - 120px);
  padding: 8px 0 0;
}

.auth-card {
  width: min(520px, 100%);
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  animation: rise 320ms ease-out;
}

.auth-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.auth-lead {
  max-width: none;
}

.auth-submit {
  border: 0;
  cursor: pointer;
}

.auth-feedback {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.page-nav {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.page-link,
.hero-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(177, 78, 31, 0.2);
  background: rgba(255, 250, 241, 0.7);
  color: var(--accent-deep);
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.page-link:hover,
.page-link:focus-visible,
.hero-link:hover,
.hero-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(177, 78, 31, 0.34);
  outline: none;
}

.page-link.is-active,
.hero-link.is-active,
.hero-link.is-primary {
  background: linear-gradient(135deg, rgba(177, 78, 31, 0.16), rgba(231, 194, 140, 0.24));
  border-color: rgba(177, 78, 31, 0.34);
}

.hero-link.is-danger {
  color: #8a1f16;
  border-color: rgba(138, 31, 22, 0.18);
  background: rgba(255, 236, 231, 0.78);
}

.hero-link.is-danger:hover,
.hero-link.is-danger:focus-visible {
  border-color: rgba(138, 31, 22, 0.36);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.9fr);
  gap: 22px;
  align-items: stretch;
  margin-bottom: 24px;
  animation: rise 360ms ease-out;
}

.hero-wide {
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.8fr);
}

.hero-copy,
.hero-card,
.summary-card,
.board,
.modal-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 28px 30px;
  border-radius: var(--radius-lg);
}

.eyebrow,
.section-kicker {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.hero h1,
.board h2,
.modal-header h2 {
  margin: 0;
  font-family: var(--display-font);
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
}

.lead {
  max-width: 44rem;
  margin: 18px 0 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
}

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

.operation-note {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.source-entry-grid,
.source-admin-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.source-entry-card,
.source-admin-card {
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 250, 241, 0.72);
}

.source-entry-card h3,
.source-admin-card h3 {
  margin: 0;
  font-family: var(--display-font);
  font-size: 1.4rem;
}

.source-entry-kind {
  margin: 0 0 6px;
  color: var(--accent-deep);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.source-entry-lead {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.source-entry-meta {
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  word-break: break-word;
}

.source-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.source-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(107, 98, 87, 0.12);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.source-status-pill.is-hot {
  background: rgba(177, 78, 31, 0.14);
  color: var(--accent-deep);
}

.source-entry-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.source-entry-metrics div {
  padding: 12px;
  border-radius: var(--radius-sm);
  background: rgba(177, 78, 31, 0.06);
}

.source-entry-metrics dt {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.source-entry-metrics dd {
  margin: 6px 0 0;
  font-weight: 800;
  color: var(--ink);
}

.hall-board {
  overflow: hidden;
}

.hall-list {
  display: grid;
  gap: 16px;
}

.hall-card {
  position: relative;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
  padding: 20px;
  border: 1px solid rgba(177, 78, 31, 0.14);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 12% 0%, rgba(231, 194, 140, 0.26), transparent 28%),
    linear-gradient(135deg, rgba(255, 250, 241, 0.92), rgba(231, 194, 140, 0.12)),
    rgba(255, 250, 241, 0.7);
  cursor: pointer;
  isolation: isolate;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.hall-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, rgba(177, 78, 31, 0.78), rgba(231, 194, 140, 0.35));
}

.hall-card::after {
  content: "";
  position: absolute;
  inset: 12px 16px auto auto;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(177, 78, 31, 0.12);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 250, 241, 0.2), transparent 62%);
  opacity: 0.72;
  z-index: -1;
}

.hall-card:hover,
.hall-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(177, 78, 31, 0.34);
  box-shadow: 0 24px 64px rgba(90, 45, 17, 0.16);
  outline: none;
}

.hall-card.is-gold {
  border-color: rgba(165, 111, 24, 0.34);
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 214, 112, 0.34), transparent 30%),
    linear-gradient(135deg, rgba(255, 249, 229, 0.96), rgba(232, 180, 72, 0.22));
}

.hall-card.is-silver {
  border-color: rgba(112, 120, 132, 0.28);
  background:
    radial-gradient(circle at 10% 0%, rgba(230, 235, 241, 0.5), transparent 30%),
    linear-gradient(135deg, rgba(255, 250, 241, 0.94), rgba(164, 174, 184, 0.16));
}

.hall-card.is-bronze {
  border-color: rgba(151, 86, 48, 0.28);
  background:
    radial-gradient(circle at 10% 0%, rgba(213, 142, 90, 0.32), transparent 30%),
    linear-gradient(135deg, rgba(255, 250, 241, 0.94), rgba(176, 93, 48, 0.16));
}

.hall-rank {
  display: grid;
  align-content: center;
  place-items: center;
  min-height: 92px;
  border-radius: 26px;
  border: 1px solid rgba(177, 78, 31, 0.16);
  background:
    linear-gradient(135deg, rgba(177, 78, 31, 0.16), rgba(231, 194, 140, 0.3)),
    rgba(255, 250, 241, 0.68);
  color: var(--accent-deep);
  font-family: var(--display-font);
  font-weight: 800;
}

.hall-rank span {
  font-family: var(--mono-font);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
}

.hall-rank strong {
  margin-top: 4px;
  font-size: 2.05rem;
  line-height: 1;
}

.hall-card-main {
  min-width: 0;
}

.hall-laurel {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(177, 78, 31, 0.1);
  color: var(--accent-deep);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hall-link-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  font-family: var(--display-font);
}

.hall-link-title strong,
.hall-node-ids span,
.hall-foot span {
  overflow-wrap: anywhere;
}

.hall-link-title span {
  color: var(--accent);
  font-family: var(--mono-font);
  font-weight: 800;
}

.hall-node-ids,
.hall-foot {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
  color: var(--muted);
  font-family: var(--mono-font);
  font-size: 0.84rem;
}

.hall-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 0;
}

.hall-metrics div {
  padding: 12px;
  border-radius: var(--radius-sm);
  background: rgba(177, 78, 31, 0.06);
}

.hall-metrics dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.hall-metrics dd {
  margin: 6px 0 0;
  font-weight: 800;
}

.hall-map-cta {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-top: 14px;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(31, 27, 23, 0.08);
  color: var(--accent-deep);
  font-size: 0.86rem;
  font-weight: 800;
}

.hall-map-panel {
  width: min(1180px, calc(100% - 32px));
}

.hall-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.78fr);
  gap: 18px;
}

.hall-map-canvas {
  min-height: min(64vh, 620px);
  border: 1px solid var(--line);
  border-radius: 26px;
  overflow: hidden;
  background: rgba(255, 250, 241, 0.72);
}

.hall-map-detail {
  display: grid;
  align-content: start;
  gap: 14px;
}

.hall-map-node,
.hall-map-metrics div {
  padding: 16px;
  border: 1px solid rgba(177, 78, 31, 0.14);
  border-radius: var(--radius-md);
  background: rgba(255, 250, 241, 0.78);
}

.hall-map-node p {
  margin: 0 0 8px;
  color: var(--accent-deep);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hall-map-node strong,
.hall-map-node span,
.hall-map-node small,
.hall-map-metrics dd {
  display: block;
  overflow-wrap: anywhere;
}

.hall-map-node strong {
  font-family: var(--display-font);
  font-size: 1.18rem;
}

.hall-map-node span,
.hall-map-node small {
  margin-top: 6px;
  color: var(--muted);
  font-family: var(--mono-font);
}

.hall-map-connector {
  justify-self: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(177, 78, 31, 0.12), rgba(231, 194, 140, 0.22));
  color: var(--accent-deep);
  font-family: var(--mono-font);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.hall-map-metrics {
  display: grid;
  gap: 10px;
  margin: 0;
}

.hall-map-metrics dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.hall-map-metrics dd {
  margin: 6px 0 0;
  font-weight: 900;
}

.hall-map-popup {
  display: grid;
  gap: 4px;
}

.hall-map-popup span,
.hall-map-popup small {
  color: #6b6257;
}

.source-admin-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.source-card-tags,
.source-admin-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

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

.weekday-pill,
.mini-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(177, 78, 31, 0.14);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.88);
  color: var(--accent-deep);
  font-weight: 700;
}

.weekday-pill input,
.mini-toggle input {
  margin: 0;
}

.time-window-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.source-save-button {
  border: 0;
  cursor: pointer;
}

.hero-card {
  display: grid;
  gap: 14px;
  padding: 24px;
  border-radius: var(--radius-lg);
}

.hero-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.hero-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.hero-row span {
  color: var(--muted);
}

.hero-row strong {
  font-family: var(--mono-font);
  font-size: 0.94rem;
  text-align: right;
  word-break: break-word;
}

.dashboard {
  display: grid;
  gap: 24px;
}

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

.summary-grid-wide {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.summary-card {
  border-radius: var(--radius-md);
  padding: 20px 22px;
  animation: rise 420ms ease-out;
}

.summary-label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
}

.summary-value {
  font-family: var(--display-font);
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
}

.summary-subvalue {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.board {
  border-radius: 32px;
  padding: 24px;
  animation: rise 520ms ease-out;
}

.board-secondary {
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.88), rgba(248, 239, 226, 0.82)),
    var(--panel);
}

.board-head.compact {
  margin-bottom: 14px;
}

.board-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 18px;
}

.board-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.meta-pill,
.modal-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(177, 78, 31, 0.2);
  background: rgba(177, 78, 31, 0.08);
  color: var(--accent-deep);
  font-size: 0.92rem;
  font-weight: 700;
}

.tab-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.tab-strip::-webkit-scrollbar {
  height: 8px;
}

.tab-strip::-webkit-scrollbar-thumb {
  background: rgba(177, 78, 31, 0.22);
  border-radius: 999px;
}

.tab-button {
  min-width: 170px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.54);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.tab-button:hover,
.tab-button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(177, 78, 31, 0.32);
  outline: none;
}

.tab-button.is-active {
  background: linear-gradient(135deg, rgba(177, 78, 31, 0.16), rgba(231, 194, 140, 0.2));
  border-color: rgba(177, 78, 31, 0.34);
}

.tab-title {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}

.tab-subtitle {
  color: var(--muted);
  font-size: 0.92rem;
}

.board-body {
  margin-top: 22px;
}

.filter-board {
  overflow: hidden;
}

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

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

.filter-control {
  display: grid;
  gap: 8px;
}

.filter-label {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.filter-input,
.filter-select {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(31, 27, 23, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font: inherit;
}

.filter-input:focus,
.filter-select:focus {
  outline: none;
  border-color: rgba(177, 78, 31, 0.34);
  box-shadow: 0 0 0 4px rgba(177, 78, 31, 0.08);
}

.toggle-row {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.toggle-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(177, 78, 31, 0.14);
  background: rgba(255, 255, 255, 0.54);
  color: var(--accent-deep);
  font-weight: 700;
}

.toggle-pill input {
  accent-color: var(--accent);
}

.source-chip-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.source-chip {
  display: inline-grid;
  gap: 4px;
  min-width: 170px;
  padding: 14px 16px;
  border: 1px solid rgba(177, 78, 31, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.source-chip:hover,
.source-chip:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(177, 78, 31, 0.32);
  box-shadow: 0 14px 26px rgba(116, 57, 28, 0.08);
  outline: none;
}

.source-chip strong,
.source-chip em {
  font-style: normal;
  color: var(--muted);
}

.source-chip.is-active {
  border-color: rgba(177, 78, 31, 0.34);
  background: linear-gradient(135deg, rgba(177, 78, 31, 0.16), rgba(231, 194, 140, 0.2));
}

.filter-reset {
  border: 0;
  cursor: pointer;
}

.stats-grid-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.regions-insight-board {
  overflow: hidden;
}

.regions-insight-summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  cursor: pointer;
  list-style: none;
  padding: 0;
}

.regions-insight-summary::-webkit-details-marker {
  display: none;
}

.regions-insight-summary::marker {
  content: "";
}

.naming-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.95fr);
  gap: 18px;
}

.naming-section + .naming-section {
  margin-top: 24px;
}

.naming-basic-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

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

.naming-device-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.naming-tech-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.filter-control.is-disabled {
  opacity: 0.68;
}

.naming-result-board {
  display: grid;
  align-content: start;
  gap: 18px;
}

.naming-result-shell {
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid rgba(177, 78, 31, 0.14);
  border-radius: var(--radius-md);
  background: rgba(255, 250, 241, 0.72);
}

.result-label {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.naming-result-code {
  font-family: var(--mono-font);
  font-size: clamp(1.2rem, 2.8vw, 2rem);
  font-weight: 800;
  color: var(--accent-deep);
  line-height: 1.4;
  word-break: break-word;
}

.naming-result-code.is-empty {
  color: var(--muted);
  font-weight: 600;
}

.naming-result-preview {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.naming-copy-button {
  border: 0;
  cursor: pointer;
}

.naming-copy-button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.naming-copy-button.is-copied {
  background: linear-gradient(135deg, rgba(79, 160, 94, 0.18), rgba(102, 187, 106, 0.26));
  border-color: rgba(79, 160, 94, 0.36);
  color: #29522f;
}

.naming-reference-grid {
  display: grid;
  gap: 14px;
}

.naming-reference-card h3 {
  font-size: 1.15rem;
}

.regions-insight-column {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 18px;
}

.potato-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(360px, 0.95fr);
  gap: 18px;
}

.potato-map-board,
.potato-detail-board {
  min-height: 720px;
}

.potato-map {
  min-height: 620px;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.potato-detail-scroll {
  display: grid;
  align-content: start;
  gap: 18px;
  max-height: 640px;
  overflow-y: auto;
  padding-right: 4px;
}

.potato-detail-scroll::-webkit-scrollbar {
  width: 10px;
}

.potato-detail-scroll::-webkit-scrollbar-thumb {
  background: rgba(177, 78, 31, 0.2);
  border-radius: 999px;
}

.stat-panel {
  padding: 20px;
}

.stat-list {
  display: grid;
  gap: 14px;
}

.stat-item {
  display: grid;
  gap: 8px;
}

.stat-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.stat-topline span {
  color: var(--muted);
  word-break: break-word;
}

.stat-topline strong {
  font-family: var(--mono-font);
  color: var(--ink);
}

.stat-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(31, 27, 23, 0.08);
  overflow: hidden;
}

.stat-bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(177, 78, 31, 0.86), rgba(231, 194, 140, 0.94));
}

.stat-empty {
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.44);
  color: var(--muted);
  text-align: center;
}

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

.node-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

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

.checkin-card {
  min-height: 100%;
}

.node-card {
  min-height: 100%;
}

.card-button,
.node-card-button {
  display: grid;
  gap: 16px;
  width: 100%;
  min-height: 100%;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(252, 247, 238, 0.86));
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.node-card-button {
  align-content: start;
  background:
    radial-gradient(circle at top right, rgba(177, 78, 31, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(249, 241, 230, 0.92));
}

.node-card.is-selected .node-card-button {
  border-color: rgba(177, 78, 31, 0.62);
  background:
    radial-gradient(circle at top right, rgba(177, 78, 31, 0.2), transparent 34%),
    linear-gradient(180deg, rgba(255, 253, 246, 0.96), rgba(246, 232, 212, 0.96));
  box-shadow: 0 18px 36px rgba(116, 57, 28, 0.18);
}

.card-button:hover,
.card-button:focus-visible,
.node-card-button:hover,
.node-card-button:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(177, 78, 31, 0.28);
  box-shadow: 0 16px 34px rgba(116, 57, 28, 0.12);
  outline: none;
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.time-pill {
  font-family: var(--mono-font);
  font-size: 0.92rem;
  color: var(--accent-deep);
}

.repeat-pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(177, 78, 31, 0.1);
  color: var(--accent-deep);
  font-size: 0.84rem;
  font-weight: 700;
}

.card-title {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.3;
}

.node-card-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.seen-pill,
.node-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.seen-pill {
  font-family: var(--mono-font);
  color: var(--accent-deep);
  background: rgba(255, 255, 255, 0.72);
}

.node-badge {
  border: 1px solid rgba(177, 78, 31, 0.14);
  background: rgba(177, 78, 31, 0.08);
  color: var(--accent-deep);
}

.node-snippet {
  min-height: 3.6em;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.card-subtitle {
  margin: 0;
  color: var(--muted);
  word-break: break-word;
}

.card-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.metric {
  min-width: 0;
}

.metric dt {
  margin-bottom: 4px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.metric dd {
  margin: 0;
  font-size: 0.94rem;
  word-break: break-word;
}

.sign-line {
  display: grid;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(31, 27, 23, 0.08);
}

.sign-line-label {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.sign-line-text {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.65;
  white-space: pre-line;
  word-break: break-word;
}

.empty-state {
  padding: 44px 20px;
  border: 1px dashed rgba(177, 78, 31, 0.24);
  border-radius: 24px;
  text-align: center;
  background: rgba(255, 255, 255, 0.42);
}

.empty-state h3 {
  margin: 0 0 10px;
  font-family: var(--display-font);
  font-size: 1.5rem;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
}

.modal.hidden,
.hidden {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(21, 17, 13, 0.52);
  backdrop-filter: blur(6px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(1040px, calc(100% - 32px));
  max-height: calc(100vh - 44px);
  margin: 22px auto;
  padding: 26px;
  overflow: auto;
  border-radius: 30px;
  animation: rise 220ms ease-out;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(177, 78, 31, 0.1);
  color: var(--accent-deep);
  font-size: 1.4rem;
  cursor: pointer;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 18px;
}

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

.modal-section {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.55);
}

.modal-section h3 {
  margin: 0 0 14px;
  font-size: 1rem;
}

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

.detail-row {
  min-width: 0;
}

.detail-row dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.82rem;
}

.detail-row dd {
  margin: 0;
  word-break: break-word;
}

.history-list {
  display: grid;
  gap: 10px;
}

.history-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(31, 27, 23, 0.06);
}

.history-item-button {
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  appearance: none;
}

.history-item-button:hover,
.history-item-button:focus-visible {
  border-color: rgba(32, 84, 147, 0.24);
  background: rgba(255, 255, 255, 0.78);
  transform: translateY(-1px);
}

.history-item-button:disabled {
  cursor: default;
  opacity: 0.72;
}

.history-item-stacked {
  display: grid;
  gap: 8px;
}

.history-item-headline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.history-item-headline strong {
  font-family: var(--mono-font);
  color: var(--ink);
}

.history-item-headline span {
  color: var(--muted);
  font-size: 0.88rem;
  text-align: right;
}

.history-item-copy {
  white-space: pre-line;
  word-break: break-word;
  line-height: 1.6;
  color: var(--ink);
  font-weight: 700;
}

.history-item-muted {
  color: var(--muted);
}

.raw-blocks {
  display: grid;
  gap: 12px;
}

details {
  border: 1px solid rgba(31, 27, 23, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.42);
}

summary {
  cursor: pointer;
  padding: 12px 14px;
  font-weight: 700;
}

pre {
  margin: 0;
  padding: 0 14px 14px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--mono-font);
  font-size: 0.82rem;
  color: #473627;
}

.page-shell-wide {
  max-width: 1540px;
}

.hero-wide {
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.8fr);
}

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

.source-chip-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.source-chip {
  display: inline-grid;
  gap: 4px;
  min-width: 180px;
  padding: 14px 16px;
  border: 1px solid rgba(177, 78, 31, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.source-chip:hover,
.source-chip:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(177, 78, 31, 0.32);
  box-shadow: 0 14px 26px rgba(116, 57, 28, 0.08);
  outline: none;
}

.source-chip strong,
.source-chip em {
  font-style: normal;
  color: var(--muted);
}

.source-chip.is-active {
  border-color: rgba(177, 78, 31, 0.34);
  background: linear-gradient(135deg, rgba(177, 78, 31, 0.16), rgba(231, 194, 140, 0.2));
}

.potato-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(360px, 0.95fr);
  gap: 18px;
}

.potato-map-board,
.potato-detail-board {
  min-height: 720px;
}

.potato-map {
  min-height: 620px;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.potato-detail-scroll {
  display: grid;
  align-content: start;
  gap: 18px;
  max-height: 640px;
  overflow-y: auto;
  padding-right: 4px;
}

.potato-detail-scroll::-webkit-scrollbar {
  width: 10px;
}

.potato-detail-scroll::-webkit-scrollbar-thumb {
  background: rgba(177, 78, 31, 0.2);
  border-radius: 999px;
}

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

.region-control-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.5fr repeat(2, minmax(0, 1fr));
  gap: 14px;
}

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

.region-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(360px, 0.95fr);
  gap: 18px;
}

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

.region-card.is-selected .node-card-button {
  border-color: rgba(177, 78, 31, 0.42);
  box-shadow: 0 16px 34px rgba(116, 57, 28, 0.14);
}

.outing-workbench {
  display: grid;
  gap: 18px;
}

.outing-toolbar {
  display: grid;
  gap: 16px;
}

.outing-control-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 0.48fr)) minmax(300px, 1.35fr) minmax(220px, 0.75fr);
  gap: 14px;
  align-items: end;
}

.outing-switch {
  min-height: 52px;
  align-content: center;
}

.outing-switch.is-disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.outing-coord-toggle {
  justify-content: center;
  cursor: pointer;
}

.outing-coord-toggle.is-muted {
  color: var(--muted);
}

.outing-layer-control {
  gap: 8px;
}

.outing-layer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.outing-layer-pill {
  min-height: 40px;
  padding: 8px 10px;
}

.outing-layer-pill.is-overlay {
  border-color: rgba(15, 118, 110, 0.32);
  background: rgba(15, 118, 110, 0.08);
}

.outing-range-control {
  min-height: 52px;
  padding: 10px 12px;
  border: 1px solid rgba(177, 78, 31, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.48);
}

.outing-range {
  width: 100%;
  min-height: 24px;
  accent-color: var(--accent);
  cursor: pointer;
}

.outing-range:focus-visible {
  outline: 3px solid rgba(177, 78, 31, 0.16);
  outline-offset: 3px;
}

.outing-range-control output {
  font-family: var(--mono-font);
  font-weight: 800;
  color: var(--accent-deep);
}

.outing-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(360px, 0.74fr);
  gap: 18px;
  align-items: start;
}

.outing-map-board {
  min-height: 740px;
}

.outing-map-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  margin-bottom: 16px;
}

.outing-map-head .hero-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.outing-map-head h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.outing-target-meta {
  max-width: 860px;
  margin: 6px 0 0;
  color: var(--muted);
  font-family: var(--mono-font);
  font-size: 0.84rem;
  line-height: 1.45;
}

.outing-share-state {
  grid-column: 1 / -1;
  margin: 10px 0 0;
  color: var(--muted);
  font-family: var(--mono-font);
  font-size: 0.78rem;
  line-height: 1.4;
}

.outing-share-state.is-fresh {
  color: #2f6d3a;
}

.outing-share-state.is-dirty {
  color: var(--accent-deep);
}

.outing-share-url {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(42, 79, 70, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  font-family: var(--mono-font);
  font-size: 0.78rem;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
}

.outing-share-url:focus {
  outline: 3px solid rgba(56, 148, 124, 0.28);
  border-color: rgba(42, 111, 91, 0.44);
}

.outing-config-summary:empty {
  display: none;
}

.outing-config-summary {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.outing-config-summary span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-height: 32px;
  max-width: 100%;
  padding: 6px 10px;
  border: 1px solid rgba(42, 79, 70, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--muted);
  font-family: var(--mono-font);
  font-size: 0.76rem;
  line-height: 1.1;
}

.outing-config-summary b {
  flex: 0 0 auto;
  color: var(--ink);
  font-weight: 800;
}

.outing-map {
  position: relative;
  min-height: 650px;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #dbe6e0;
}

.outing-map.is-picking {
  cursor: crosshair;
  box-shadow: inset 0 0 0 3px rgba(15, 118, 110, 0.34);
}

.outing-map.is-picking::after {
  position: absolute;
  top: 14px;
  left: 50%;
  z-index: 700;
  min-height: 34px;
  padding: 8px 14px;
  border: 1px solid rgba(15, 118, 110, 0.28);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.92);
  color: #0f4d49;
  content: "点击地图设定目标点";
  font-weight: 800;
  pointer-events: none;
  transform: translateX(-50%);
  box-shadow: 0 12px 30px rgba(31, 27, 23, 0.14);
}

.outing-map.is-picking,
.outing-map.is-picking * {
  cursor: crosshair !important;
}

.outing-terrain3d-panel {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(42, 79, 70, 0.14);
  border-radius: 18px;
  background:
    radial-gradient(circle at 18% 12%, rgba(79, 160, 94, 0.16), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(245, 238, 225, 0.72));
}

.outing-terrain3d-head {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.outing-terrain3d-head h3 {
  margin: 0;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
}

.outing-terrain3d-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.outing-terrain3d-control,
.outing-terrain3d-fov {
  display: grid;
  grid-template-columns: auto minmax(120px, 180px) 42px;
  gap: 8px;
  align-items: center;
  min-height: 38px;
  padding: 6px 10px;
  border: 1px solid rgba(42, 79, 70, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
  font-family: var(--mono-font);
  font-size: 0.76rem;
  line-height: 1;
}

.outing-terrain3d-control span,
.outing-terrain3d-control output,
.outing-terrain3d-fov span,
.outing-terrain3d-fov output {
  color: var(--ink);
  font-weight: 800;
}

.outing-terrain3d-control input,
.outing-terrain3d-fov input {
  min-width: 0;
  accent-color: #0f766e;
}

.outing-terrain3d-reset {
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid rgba(42, 79, 70, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  cursor: pointer;
  font-family: var(--mono-font);
  font-size: 0.76rem;
  font-weight: 800;
}

.outing-terrain3d-reset:hover,
.outing-terrain3d-reset:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.16);
  background: rgba(255, 255, 255, 0.92);
}

#outing-terrain-3d-canvas {
  display: block;
  width: 100%;
  height: clamp(320px, 38vw, 520px);
  border: 1px solid rgba(31, 27, 23, 0.12);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 70%, rgba(15, 118, 110, 0.22), transparent 42%),
    linear-gradient(180deg, #0b1720 0%, #10231f 52%, #0a130f 100%);
  cursor: grab;
  touch-action: none;
}

#outing-terrain-3d-canvas.is-dragging {
  cursor: grabbing;
}

.outing-node-marker-shell {
  background: transparent;
  border: 0;
}

.outing-node-marker {
  position: relative;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #fff;
  background: var(--marker-color);
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 50% 50% 50% 8px;
  box-shadow: 0 10px 22px rgba(31, 27, 23, 0.28);
  transform: rotate(-45deg);
}

.outing-node-marker::after {
  position: absolute;
  inset: 6px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
}

.outing-node-marker-dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  transform: rotate(45deg);
}

.outing-node-popup {
  min-width: 210px;
  color: #211a14;
}

.outing-target-popup {
  min-width: 240px;
  color: #211a14;
}

.outing-node-popup strong,
.outing-target-popup strong {
  display: block;
  margin-bottom: 8px;
  font-size: 0.98rem;
}

.outing-node-popup dl,
.outing-target-popup dl {
  display: grid;
  gap: 5px;
  margin: 0;
}

.outing-node-popup div {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 8px;
}

.outing-target-popup div {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 8px;
}

.outing-node-popup dt,
.outing-target-popup dt {
  color: #7a6a5f;
  font-size: 0.78rem;
}

.outing-node-popup dd,
.outing-target-popup dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-family: var(--mono-font);
  font-size: 0.8rem;
}

.outing-map-pick-preview p {
  margin: -2px 0 8px;
  color: #6b6257;
  font-size: 0.82rem;
  line-height: 1.45;
}

.outing-popup-action {
  width: 100%;
  min-height: 44px;
  margin-top: 12px;
  border: 1px solid rgba(177, 78, 31, 0.3);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(177, 78, 31, 0.95), rgba(125, 50, 24, 0.94));
  color: #fffaf1;
  cursor: pointer;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.outing-popup-action:hover,
.outing-popup-action:focus-visible {
  outline: 3px solid rgba(177, 78, 31, 0.2);
  outline-offset: 2px;
  filter: brightness(1.04);
}

.outing-side-panel {
  display: grid;
  gap: 18px;
}

.outing-target-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.outing-full-button {
  min-height: 52px;
}

.outing-target-grid .filter-control:last-child {
  grid-column: 1 / -1;
}

.outing-role-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.outing-keyword-control {
  margin-top: 14px;
}

.outing-filter-hint {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.outing-xr-preflight {
  display: flex;
  gap: 10px;
  max-width: 100%;
  margin-top: 16px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.outing-xr-preflight span {
  flex: 0 0 auto;
  display: inline-flex;
  gap: 7px;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(31, 27, 23, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  color: var(--muted);
  font-family: var(--mono-font);
  font-size: 0.78rem;
  line-height: 1;
  white-space: nowrap;
}

.outing-xr-preflight b {
  color: var(--ink);
  font-weight: 800;
}

.outing-xr-preflight .is-ready {
  border-color: rgba(51, 138, 88, 0.24);
  background: rgba(79, 160, 94, 0.12);
  color: #2f6d3a;
}

.outing-xr-preflight .is-warn {
  border-color: rgba(177, 78, 31, 0.24);
  background: rgba(177, 78, 31, 0.1);
  color: var(--accent-deep);
}

.outing-xr-preflight .is-muted {
  border-color: rgba(31, 27, 23, 0.08);
  background: rgba(255, 255, 255, 0.36);
  color: rgba(113, 100, 88, 0.76);
}

.outing-node-board {
  max-height: 720px;
  overflow: hidden;
}

.outing-node-list {
  grid-template-columns: 1fr;
  max-height: 610px;
  overflow-y: auto;
  padding-right: 4px;
}

.outing-node-list::-webkit-scrollbar {
  width: 10px;
}

.outing-node-list::-webkit-scrollbar-thumb {
  background: rgba(177, 78, 31, 0.2);
  border-radius: 999px;
}

.outing-node-more {
  width: 100%;
  min-height: 46px;
  margin-top: 12px;
  border: 1px solid rgba(177, 78, 31, 0.24);
  border-radius: 14px;
  background: rgba(255, 247, 237, 0.88);
  color: var(--accent-deep);
  cursor: pointer;
  font-family: var(--mono-font);
  font-size: 0.84rem;
  font-weight: 700;
}

.outing-node-more:hover,
.outing-node-more:focus-visible {
  outline: 3px solid rgba(177, 78, 31, 0.18);
  background: rgba(255, 238, 219, 0.96);
}

.outing-xr-stage {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: #05070a;
  overflow: hidden;
}

.outing-xr-stage video,
.outing-xr-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.outing-xr-stage video {
  object-fit: cover;
  z-index: 0;
}

.outing-xr-stage canvas {
  pointer-events: none;
}

#outing-xr-terrain {
  z-index: 1;
}

#outing-xr-terrain.is-world-layer-hidden {
  opacity: 0;
}

#outing-xr-canvas {
  z-index: 2;
}

.outing-xr-topbar {
  position: absolute;
  top: max(14px, env(safe-area-inset-top));
  left: 14px;
  right: 14px;
  display: grid;
  gap: 12px;
  align-items: start;
  color: white;
  z-index: 3;
}

.outing-xr-panel {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.outing-xr-control-strip {
  display: flex;
  gap: 8px;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 3px;
  flex-wrap: nowrap;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.outing-xr-icon-control {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  width: max-content;
  min-width: max-content;
  max-width: none;
  min-height: 54px;
  padding: 7px 10px 7px 7px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.94);
  background: rgba(3, 7, 18, 0.56);
  backdrop-filter: blur(12px);
  cursor: pointer;
  font-family: var(--mono-font);
  text-align: left;
  touch-action: manipulation;
}

.outing-xr-icon-control:disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

.outing-xr-icon-control:focus-visible {
  border-color: rgba(96, 165, 250, 0.72);
  outline: 2px solid rgba(96, 165, 250, 0.34);
  outline-offset: 2px;
}

.outing-xr-icon-control.is-active {
  border-color: rgba(74, 222, 128, 0.34);
  background: rgba(20, 83, 45, 0.48);
}

.outing-xr-icon-control.is-muted {
  border-color: rgba(148, 163, 184, 0.20);
  background: rgba(15, 23, 42, 0.46);
}

.outing-xr-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #061019;
  background: linear-gradient(135deg, rgba(255, 222, 89, 0.98), rgba(74, 222, 128, 0.94));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.26), 0 8px 22px rgba(0, 0, 0, 0.28);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.outing-xr-control-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.outing-xr-control-copy strong,
.outing-xr-control-copy small {
  white-space: nowrap;
}

.outing-xr-control-copy strong {
  font-size: 0.72rem;
  line-height: 1;
}

.outing-xr-control-copy small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.64rem;
  line-height: 1.2;
}

.outing-xr-forward-focus {
  position: absolute;
  top: calc(max(14px, env(safe-area-inset-top)) + 102px);
  left: 50%;
  z-index: 3;
  display: grid;
  gap: 4px;
  max-width: min(460px, calc(100vw - 28px));
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: rgba(3, 7, 18, 0.58);
  color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  font-family: var(--mono-font);
  font-size: 0.78rem;
  line-height: 1.35;
  text-align: center;
  transform: translateX(-50%);
  pointer-events: none;
}

.outing-xr-forward-focus:empty {
  display: none;
}

.outing-xr-forward-focus strong {
  overflow: hidden;
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.outing-xr-forward-focus span {
  color: rgba(255, 255, 255, 0.72);
}

.outing-xr-world-labels {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.outing-xr-world-labels:empty {
  display: none;
}

.outing-xr-world-label {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  gap: 3px;
  max-width: min(260px, 72vw);
  min-height: 44px;
  padding: 8px 11px;
  border: 1px solid color-mix(in srgb, var(--xr-label-color, #60a5fa) 46%, rgba(255, 255, 255, 0.24));
  border-radius: 15px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--xr-label-color, #60a5fa) 22%, rgba(3, 7, 18, 0.80)), rgba(3, 7, 18, 0.64));
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.26), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  color: rgba(255, 255, 255, 0.94);
  font-family: var(--mono-font);
  pointer-events: auto;
  text-align: left;
  touch-action: manipulation;
  transform: translate3d(var(--xr-label-x, 0), var(--xr-label-y, 0), 0) translate(-50%, -112%);
}

.outing-xr-world-label[hidden] {
  display: none;
}

.outing-xr-world-label::after {
  position: absolute;
  left: 50%;
  bottom: -9px;
  width: 2px;
  height: 12px;
  background: color-mix(in srgb, var(--xr-label-color, #60a5fa) 74%, rgba(255, 255, 255, 0.55));
  content: "";
  transform: translateX(-50%);
}

.outing-xr-world-label strong {
  overflow: hidden;
  font-size: 0.82rem;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.outing-xr-world-label span {
  color: rgba(255, 255, 255, 0.70);
  font-size: 0.70rem;
  line-height: 1.22;
  white-space: nowrap;
}

.outing-xr-world-label.is-target {
  --xr-label-color: #ffde59;
}

.outing-xr-world-label.is-selected {
  --xr-label-color: #60a5fa;
}

.outing-xr-focus-rail {
  position: absolute;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 3;
  width: min(760px, calc(100vw - 28px));
  transform: translateX(-50%);
  pointer-events: none;
}

.outing-xr-focus-rail:empty {
  display: none;
}

.outing-xr-compass-ruler {
  display: grid;
  gap: 7px;
  padding: 9px 12px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(3, 7, 18, 0.58), rgba(3, 7, 18, 0.34));
  color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  font-family: var(--mono-font);
  pointer-events: auto;
}

.outing-xr-compass-heading {
  display: flex;
  justify-content: center;
  gap: 8px;
  align-items: baseline;
  font-variant-numeric: tabular-nums;
}

.outing-xr-compass-heading strong {
  color: #ffde59;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
}

.outing-xr-compass-heading span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.72rem;
}

.outing-xr-compass-track {
  position: relative;
  height: 58px;
  overflow: hidden;
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 100%, rgba(96, 165, 250, 0.18), transparent 42%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.24), rgba(255, 255, 255, 0.08), rgba(15, 23, 42, 0.24));
}

.outing-xr-compass-track::before {
  position: absolute;
  left: 0;
  right: 0;
  top: 28px;
  height: 1px;
  background: rgba(255, 255, 255, 0.34);
  content: "";
}

.outing-xr-compass-tick {
  position: absolute;
  top: 15px;
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.38);
  transform: translateX(-50%);
}

.outing-xr-compass-tick.is-major {
  top: 9px;
  height: 28px;
  background: rgba(255, 255, 255, 0.58);
}

.outing-xr-compass-tick b {
  position: absolute;
  top: -9px;
  left: 50%;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.68rem;
  font-weight: 900;
  transform: translateX(-50%);
}

.outing-xr-compass-center {
  position: absolute;
  left: 50%;
  top: 4px;
  width: 0;
  height: 0;
  border-right: 8px solid transparent;
  border-left: 8px solid transparent;
  border-top: 11px solid #ffde59;
  filter: drop-shadow(0 0 8px rgba(255, 222, 89, 0.56));
  transform: translateX(-50%);
}

.outing-xr-compass-point {
  position: absolute;
  top: 29px;
  display: grid;
  justify-items: center;
  gap: 2px;
  width: 82px;
  padding: 0;
  border: 0;
  color: rgba(255, 255, 255, 0.84);
  background: transparent;
  cursor: pointer;
  font-family: var(--mono-font);
  transform: translateX(-50%);
  touch-action: manipulation;
}

.outing-xr-compass-point i {
  width: 11px;
  height: 11px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: #60a5fa;
  box-shadow: 0 0 13px rgba(96, 165, 250, 0.8);
}

.outing-xr-compass-point span {
  max-width: 82px;
  overflow: hidden;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(3, 7, 18, 0.62);
  font-size: 0.62rem;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.outing-xr-compass-point.is-target i {
  background: #ffde59;
  box-shadow: 0 0 14px rgba(255, 222, 89, 0.86);
}

.outing-xr-compass-point.is-left-edge span::before {
  content: "< ";
}

.outing-xr-compass-point.is-right-edge span::after {
  content: " >";
}

.outing-xr-compass-point.is-selected i,
.outing-xr-compass-point:focus-visible i {
  background: #4ade80;
  box-shadow: 0 0 15px rgba(74, 222, 128, 0.9);
}

.outing-xr-compass-point:focus-visible {
  outline: none;
}

.outing-xr-hud {
  position: absolute;
  right: 14px;
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 3;
  display: grid;
  gap: 4px;
  min-width: min(360px, calc(100vw - 28px));
  max-width: calc(100vw - 28px);
  padding: 12px 14px;
  color: rgba(255, 255, 255, 0.94);
  background: rgba(3, 7, 18, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  font-family: var(--mono-font);
  font-size: 0.78rem;
  line-height: 1.35;
}

.outing-xr-hud:empty {
  display: none;
}

.outing-xr-hud.is-compact {
  min-width: min(300px, calc(100vw - 28px));
  max-width: min(420px, calc(100vw - 28px));
  padding: 10px 12px;
  background: rgba(3, 7, 18, 0.48);
}

.outing-xr-hud div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.outing-xr-hud span:first-child {
  color: rgba(255, 255, 255, 0.66);
}

.outing-xr-hud strong {
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: right;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .hero,
  .summary-grid,
  .summary-grid-wide,
  .card-list,
  .node-list,
  .node-list-wide,
  .stats-grid-panels,
  .modal-grid,
  .potato-main-grid,
  .region-main-grid,
  .outing-main-grid,
  .naming-main-grid,
  .source-entry-grid,
  .source-admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-grid,
  .filter-grid-wide,
  .naming-dual-grid,
  .naming-device-grid,
  .naming-tech-grid,
  .outing-control-grid,
  .region-control-grid,
  .weight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  .page-login .auth-shell {
    min-height: auto;
    padding-top: 12px;
  }

  .page-shell {
    padding: 20px 14px 44px;
  }

  .summary-grid,
  .summary-grid-wide,
  .card-list,
  .node-list,
  .node-list-wide,
  .source-entry-grid,
  .source-admin-grid,
  .stats-grid-panels,
  .modal-grid,
  .detail-grid,
  .filter-grid,
  .filter-grid-wide,
  .potato-main-grid,
  .region-main-grid,
  .outing-main-grid,
  .naming-main-grid,
  .naming-dual-grid,
  .naming-device-grid,
  .naming-tech-grid,
  .outing-control-grid,
  .outing-target-grid,
  .region-control-grid,
  .weight-grid {
    grid-template-columns: 1fr;
  }

  .outing-map-head {
    display: grid;
    gap: 10px;
  }

  .page-outing .outing-map-head .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    align-items: stretch;
  }

  .page-outing .outing-map-head .hero-link {
    min-height: 42px;
    padding: 0 10px;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .outing-target-meta {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.76rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .outing-share-state {
    max-height: 2.9em;
    overflow: hidden;
    font-size: 0.72rem;
  }

  .outing-config-summary {
    gap: 6px;
  }

  .outing-config-summary span {
    min-height: 30px;
    padding: 5px 8px;
    font-size: 0.68rem;
  }

  .outing-xr-preflight {
    gap: 6px;
    margin-top: 8px;
  }

  .outing-xr-preflight span {
    min-height: 30px;
    padding: 5px 8px;
    font-size: 0.66rem;
  }

  .outing-layer-grid {
    max-height: 92px;
    overflow-y: auto;
    padding-right: 2px;
  }

  .outing-map-board {
    min-height: auto;
  }

  .outing-map {
    min-height: min(62dvh, 460px);
    border-radius: 14px;
  }

  .outing-node-board,
  .outing-node-list {
    max-height: none;
  }

  .outing-xr-topbar {
    top: max(10px, env(safe-area-inset-top));
    left: max(10px, env(safe-area-inset-left));
    right: max(10px, env(safe-area-inset-right));
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: stretch;
  }

  .outing-xr-panel {
    gap: 8px;
  }

  .outing-xr-control-strip {
    gap: 7px;
    padding-bottom: 4px;
  }

  .outing-xr-icon-control {
    min-width: max-content;
    max-width: none;
    min-height: 48px;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 7px;
    padding: 6px 8px 6px 6px;
  }

  .outing-xr-icon {
    width: 34px;
    height: 34px;
    font-size: 0.52rem;
  }

  .outing-xr-hud {
    left: max(10px, env(safe-area-inset-left));
    right: max(10px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    min-width: 0;
    max-width: none;
    max-height: min(28dvh, 190px);
    overflow-y: auto;
    padding: 10px;
    font-size: 0.7rem;
    scrollbar-width: thin;
  }

  .outing-xr-hud.is-compact {
    left: auto;
    right: max(10px, env(safe-area-inset-right));
    width: min(78vw, 330px);
    max-height: min(21dvh, 142px);
    padding: 8px 10px;
    font-size: 0.64rem;
  }

  .outing-xr-focus-rail {
    width: calc(100vw - 20px - env(safe-area-inset-left) - env(safe-area-inset-right));
  }

  .outing-xr-compass-ruler {
    padding: 7px 9px 10px;
  }

  .outing-xr-compass-track {
    height: 52px;
  }

  .outing-xr-compass-point span {
    max-width: 70px;
    font-size: 0.58rem;
  }

  .outing-xr-hud div {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 8px;
  }

  .board,
  .hero-copy,
  .hero-card,
  .modal-panel {
    border-radius: 22px;
  }

  .board-head,
  .modal-header,
  .card-top,
  .node-card-top,
  .hero-actions,
  .history-item,
  .history-item-headline,
  .source-card-topline,
  .source-admin-head {
    flex-direction: column;
    align-items: start;
  }

  .tab-button {
    min-width: 148px;
  }

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

@media (max-width: 760px) {
  .page-meshsign-home .hero,
  .page-meshsign-source .hero,
  .page-hall-of-fame .hero {
    gap: 16px;
  }

  .page-meshsign-home .hero-copy,
  .page-meshsign-home .hero-card,
  .page-meshsign-source .hero-copy,
  .page-meshsign-source .hero-card,
  .page-meshsign-home .board,
  .page-meshsign-source .board,
  .page-hall-of-fame .hero-copy,
  .page-hall-of-fame .hero-card,
  .page-hall-of-fame .board {
    padding: 20px 18px;
  }

  .page-meshsign-home .page-nav,
  .page-meshsign-source .page-nav,
  .page-hall-of-fame .page-nav {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: 14px;
    flex-wrap: nowrap;
    scrollbar-width: thin;
  }

  .page-meshsign-home .page-link,
  .page-meshsign-source .page-link,
  .page-hall-of-fame .page-link {
    white-space: nowrap;
  }

  .page-meshsign-source .page-link.is-active {
    max-width: min(74vw, 360px);
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .page-meshsign-home .hero-actions,
  .page-meshsign-source .hero-actions,
  .page-hall-of-fame .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .page-meshsign-home .hero-actions .hero-link,
  .page-meshsign-source .hero-actions .hero-link,
  .page-hall-of-fame .hero-actions .hero-link {
    width: 100%;
    justify-content: flex-start;
    padding: 12px 16px;
  }

  .page-meshsign-home .hero-row,
  .page-meshsign-source .hero-row,
  .page-hall-of-fame .hero-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .page-meshsign-home .hero-row strong,
  .page-meshsign-source .hero-row strong,
  .page-hall-of-fame .hero-row strong {
    text-align: left;
    width: 100%;
  }

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

  .hall-rank {
    width: 74px;
    min-height: 74px;
  }

  .hall-rank strong {
    font-size: 1.55rem;
  }

  .hall-map-panel {
    width: min(100% - 20px, 1180px);
    max-height: calc(100dvh - 20px);
    margin: 10px auto;
    padding: 18px;
  }

  .hall-map-layout {
    grid-template-columns: 1fr;
  }

  .hall-map-canvas {
    min-height: 360px;
  }

  .page-meshsign-home .source-entry-grid {
    gap: 14px;
  }

  .page-meshsign-home .source-entry-card {
    gap: 14px;
    padding: 18px;
  }

  .page-meshsign-home .source-entry-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-meshsign-home .source-entry-metrics div {
    min-width: 0;
  }

  .page-meshsign-home .source-card-tags {
    display: grid;
    grid-template-columns: 1fr;
  }

  .page-meshsign-home .source-card-tags .meta-pill,
  .page-meshsign-home .source-entry-card > .hero-link {
    width: 100%;
    justify-content: flex-start;
  }

  .page-meshsign-source .summary-grid {
    gap: 14px;
  }

  .page-meshsign-source .meshsign-archive-board {
    overflow: hidden;
  }

  .page-meshsign-source .tab-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 82vw);
    gap: 10px;
    padding-bottom: 10px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .page-meshsign-source .tab-button {
    min-width: 0;
    width: 100%;
    padding: 14px 16px;
    scroll-snap-align: start;
  }

  .page-meshsign-source .board-body {
    margin-top: 18px;
  }

  .page-meshsign-source .card-list {
    gap: 14px;
  }

  .page-meshsign-source .card-button {
    gap: 14px;
    padding: 18px;
  }

  .page-meshsign-source .card-metrics {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .page-meshsign-source .metric {
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(177, 78, 31, 0.06);
  }

  .page-meshsign-source .sign-line {
    gap: 6px;
    padding-top: 12px;
  }

  .page-meshsign-source .time-pill {
    font-size: 0.88rem;
  }

  .page-meshsign-source .card-title {
    font-size: 1.08rem;
  }

  .page-meshsign-source .modal-panel {
    width: min(100% - 20px, 760px);
    max-height: calc(100dvh - 20px);
    margin: 10px auto;
    padding: 20px 16px;
  }

  .page-meshsign-source .modal-close {
    top: 10px;
    right: 10px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .outing-xr-topbar {
    top: max(8px, env(safe-area-inset-top));
    left: max(8px, env(safe-area-inset-left));
    right: max(8px, env(safe-area-inset-right));
    align-items: start;
    gap: 8px;
  }

  .outing-xr-control-strip {
    gap: 7px;
  }

  .outing-xr-focus-rail {
    bottom: max(8px, env(safe-area-inset-bottom));
    width: min(660px, calc(100vw - 16px - env(safe-area-inset-left) - env(safe-area-inset-right)));
  }

  .outing-xr-compass-ruler {
    padding: 6px 9px 9px;
  }

  .outing-xr-compass-heading {
    display: none;
  }

  .outing-xr-compass-track {
    height: 46px;
  }

  .outing-xr-hud {
    max-height: min(42dvh, 170px);
    padding: 8px 10px;
    font-size: 0.66rem;
  }
}

@media (max-width: 480px) {
  .page-meshsign-home .source-entry-metrics {
    grid-template-columns: 1fr;
  }

  .page-meshsign-home .summary-card,
  .page-meshsign-source .summary-card,
  .page-hall-of-fame .summary-card {
    padding: 18px;
  }

  .page-meshsign-source .tab-strip {
    grid-auto-columns: minmax(200px, 88vw);
  }

  .page-meshsign-source .card-button {
    padding: 16px;
  }

  .hall-metrics {
    grid-template-columns: 1fr;
  }

  .hall-map-canvas {
    min-height: 300px;
    border-radius: 20px;
  }
}
