:root {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Arial,
    sans-serif;
  color-scheme: light dark;
  --bg: #f5f6f8;
  --surface: #fff;
  --muted: #717b88;
  --line: #dce0e5;
  --ink: #1b232d;
  --accent: #a34d18;
  --gold: #f6bf72;
  --sub: #e9eaed;
  --alert: #c92a38;
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  border: 0;
  background: transparent;
  border-radius: 14px;
  min-height: 44px;
  padding: 10px 16px;
}
button:hover {
  background: var(--sub);
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
button.primary,
.primary {
  background: var(--ink);
  color: var(--surface);
  font-weight: 600;
}
button.primary:hover {
  filter: brightness(1.15);
}
button.outline {
  border: 1px solid var(--line);
  background: var(--surface);
}
button.danger {
  color: var(--alert);
}
button.round {
  border: 1px solid var(--line);
  border-radius: 999px;
}
button.active {
  color: var(--accent);
  background: var(--sub);
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
input,
select,
textarea {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  max-width: 100%;
  width: 100%;
}
textarea {
  min-height: 110px;
  resize: vertical;
}
input[type="checkbox"],
input[type="radio"] {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
}
input[type="file"] {
  padding: 10px;
}
input[type="range"] {
  padding: 0;
}
label {
  display: grid;
  gap: 9px;
  font-size: 0.94rem;
  margin: 17px 0;
}
label.check {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}
h1 {
  font-size: clamp(1.7rem, 3.4vw, 2.8rem);
  letter-spacing: -0.035em;
  margin: 20px 0 30px;
  line-height: 1.2;
}
h2 {
  font-size: 1.25rem;
  margin: 28px 0 20px;
}
h3 {
  font-size: 1.04rem;
  margin: 14px 0;
}
p {
  line-height: 1.65;
}
small,
.muted {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.65;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}
img {
  max-width: 100%;
  object-fit: cover;
}
svg {
  width: 22px;
  height: 22px;
  vertical-align: middle;
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
  flex: none;
}
button svg {
  margin-right: 7px;
}
button.icon {
  width: 44px;
  padding: 10px;
}
button.icon svg {
  margin: 0;
}
.brand {
  width: 142px;
  height: auto;
  object-fit: contain;
}
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: 210px;
  border-right: 1px solid var(--line);
  padding: 34px 22px;
  display: flex;
  flex-direction: column;
  gap: 34px;
  background: var(--bg);
  z-index: 4;
}
.rail nav {
  display: grid;
  gap: 13px;
}
.rail nav button {
  text-align: left;
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 16px 14px;
}
.rail .foot {
  margin-top: auto;
}
.workspace {
  margin-left: 210px;
  padding: 26px 38px 60px;
  max-width: 1650px;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 54px;
}
.topbar .brand {
  display: none;
}
.actions {
  display: flex;
  gap: 5px;
  align-items: center;
  flex-wrap: wrap;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.between {
  justify-content: space-between;
}
.grow {
  flex: 1;
  min-width: 0;
}
.stack {
  display: grid;
  gap: 15px;
}
.full {
  width: 100%;
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.explore {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(310px, 1fr);
  gap: 32px;
  align-items: start;
}
.map-col {
  position: sticky;
  top: 24px;
}
.map {
  height: 440px;
  border-radius: 22px;
  overflow: hidden;
  background: var(--sub);
  position: relative;
  isolation: isolate;
}
.map .map-canvas {
  position: absolute;
  inset: 0;
}
.map .map-status {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 30px;
  pointer-events: none;
  background: var(--sub);
}
.map-status:empty {
  display: none;
}
.map-expand {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  background: var(--surface);
  border-radius: 16px;
}
.map-credit {
  position: absolute;
  bottom: 4px;
  right: 6px;
  font-size: 10px;
  background: var(--surface);
}
.search-row {
  display: flex;
  gap: 10px;
  margin: 0 0 17px;
}
.search-row input {
  padding: 11px 14px;
  min-width: 0;
}
.segments {
  display: flex;
  background: var(--sub);
  border-radius: 999px;
  padding: 4px;
  gap: 3px;
  margin: 18px 0;
}
.segments button {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  min-height: 36px;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 0.94rem;
}
.segments button.active {
  background: var(--surface);
  color: var(--ink);
}
.list {
  display: grid;
  gap: 0;
}
.spot-row,
.person-row {
  width: 100%;
  text-align: left;
  border-radius: 0;
  padding: 22px 0;
  display: flex;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.spot-row img {
  width: 96px;
  height: 112px;
  flex: none;
  border-radius: 12px;
}
.spot-row strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 3px 0 7px;
}
.spot-row .metrics {
  margin-top: 8px;
  color: var(--accent);
}
.metrics {
  display: flex;
  gap: 15px;
  align-items: center;
  font-size: 0.8rem;
  white-space: nowrap;
}
.metrics span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.metrics svg {
  width: 17px;
  height: 17px;
}
.liked {
  color: #ff334b;
}
.saved {
  fill: currentColor;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px 18px;
}
.photo-card {
  min-width: 0;
  padding: 0;
  text-align: left;
  border-radius: 0;
}
.photo-card:hover {
  background: none;
}
.photo-card .thumb {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 16px;
  background: var(--sub);
}
.thumb img {
  width: 100%;
  height: 100%;
  transition: transform 0.2s;
}
.photo-card:hover img {
  transform: scale(1.025);
}
.thumb .metrics {
  position: absolute;
  right: 9px;
  bottom: 11px;
  color: #fff;
  text-shadow: 0 1px 5px #000;
  gap: 11px;
  background: none;
}
.type {
  position: absolute;
  left: 9px;
  top: 9px;
  border-radius: 999px;
  background: #0008;
  color: #fff;
  padding: 5px 9px;
  font-size: 0.75rem;
}
.type svg {
  width: 15px;
  height: 15px;
}
.photo-card strong {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 10px 0 3px;
}
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--sub);
  object-fit: cover;
  flex-shrink: 0;
  aspect-ratio: 1;
}
.person-row .avatar {
  width: 52px;
  height: 52px;
}
.notice {
  border-left: 2px solid var(--gold);
  padding: 10px 18px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
  margin: 24px 0;
}
.error {
  color: var(--alert);
  font-size: 0.9rem;
  white-space: pre-wrap;
}
.empty {
  padding: 40px 0;
}
.empty svg {
  width: 44px;
  height: 44px;
  color: var(--accent);
}
.loading {
  padding: 30px 0;
  color: var(--muted);
}
.boot {
  height: 100svh;
  display: grid;
  align-content: center;
  justify-items: center;
}
.boot img {
  width: 200px;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #0005;
  backdrop-filter: blur(5px);
  z-index: 20;
  display: flex;
  justify-content: flex-end;
}
.sheet {
  width: min(820px, 100%);
  height: 100dvh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 50px #0002;
  animation: enter 0.2s ease-out;
}
.sheet.wide {
  width: min(1200px, 100%);
}
.sheet header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 16px 25px;
  border-bottom: 1px solid var(--line);
  flex: none;
  min-height: 74px;
}
.sheet header h2 {
  font-size: 1.05rem;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sheet header .actions {
  flex-wrap: nowrap;
}
.sheet-content {
  padding: 10px 26px 45px;
  overflow-y: auto;
  overscroll-behavior: contain;
  flex: 1;
  min-height: 0;
}
.sheet-content > section {
  margin: 25px 0;
}
.sheet header button {
  border: 1px solid var(--line);
  border-radius: 999px;
}
.gallery {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: 18px;
  background: #000;
  margin: 20px 0 10px;
}
.gallery button {
  padding: 0;
  min-width: 100%;
  scroll-snap-align: start;
  display: grid;
  place-items: center;
  max-height: 75svh;
  border-radius: 0;
}
.gallery img {
  width: 100%;
  max-height: 75svh;
  object-fit: contain;
}
.dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin: 15px 0 30px;
}
.dots button {
  width: 7px;
  height: 7px;
  min-height: 7px;
  border-radius: 50%;
  padding: 0;
  background: var(--muted);
}
.dots .active {
  background: var(--gold);
}
.detail-meta {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: space-between;
  margin: 25px 0;
}
.detail-meta .author {
  text-align: right;
  font-weight: 600;
}
.detail-meta .author small {
  font-weight: 400;
  display: block;
  margin-top: 7px;
}
.capture {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 2fr;
  gap: 22px 18px;
  padding: 20px 0;
}
.capture dt {
  color: var(--muted);
}
.capture dd {
  margin: 0;
  text-align: right;
  overflow-wrap: anywhere;
}
.ad {
  display: block;
  width: 100%;
  padding: 0;
  text-align: left;
  margin: 28px 0;
}
.ad img {
  max-height: 210px;
  object-fit: contain;
  border-radius: 12px;
  background: var(--sub);
  width: 100%;
}
.ad small {
  display: block;
}
.profile-hero {
  margin: 25px -38px 0;
  padding: 35px 38px 24px;
  background-size: cover;
  background-position: center;
  color: var(--ink);
  position: relative;
  isolation: isolate;
}
.profile-hero.has-cover {
  color: white;
}
.profile-hero.has-cover:before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / calc(1 - var(--cover-opacity, 0.35)));
  z-index: -1;
}
.profile-hero .avatar {
  width: 76px;
  height: 76px;
  border: 2px solid #fff;
}
.profile-hero h1 {
  font-size: 1.5rem;
  margin: 3px 0 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-hero p {
  white-space: pre-line;
  max-width: 850px;
  font-size: 0.9375rem;
  line-height: 1.65;
  margin: 20px 0 16px;
}
.profile-hero a,
.profile-hero small {
  color: inherit;
}
.profile-identity {
  gap: 12px;
}
.profile-name {
  min-width: 0;
}
.profile-name > small {
  font-size: 0.75rem;
}
.profile-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.profile-actions .icon {
  width: 40px;
  min-width: 40px;
  min-height: 44px;
  padding: 9px;
}
.profile-actions svg {
  width: 20px;
  height: 20px;
}
.profile-contacts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px 16px;
  font-size: 0.8125rem;
  line-height: 1.5;
}
.profile-contact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-width: 0;
  text-decoration: none;
}
.profile-contact svg,
.social-instagram {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}
.contact-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.social-instagram {
  background: currentColor;
  -webkit-mask: url("/share-assets/instagram.svg") center / contain no-repeat;
  mask: url("/share-assets/instagram.svg") center / contain no-repeat;
}
.profile-contact:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}
.badges {
  display: flex;
  gap: 8px;
  margin-top: 9px;
}
.badges button {
  font-size: 0.85rem;
  border-radius: 999px;
  background: #ffffff20;
  color: var(--gold);
  height: 35px;
  min-height: 35px;
  padding: 6px 12px;
}
.counts {
  display: flex;
  gap: 35px;
  border-top: 1px solid #ffffff40;
  padding-top: 20px;
  margin-top: 25px;
}
.counts button {
  color: inherit;
  display: grid;
  gap: 5px;
  min-width: 60px;
}
.counts strong {
  font-size: 1.6rem;
}
.counts small {
  font-size: 0.8rem;
}
.profile-sections {
  margin: 0 -10px;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 25px;
}
.profile-sections button {
  border-radius: 0;
  padding: 20px 10px;
  border-bottom: 3px solid transparent;
}
.profile-sections button.active {
  background: none;
  border-color: var(--gold);
  color: var(--ink);
}
details {
  border-top: 1px solid var(--line);
  margin: 24px 0;
  padding: 18px 0;
}
summary {
  cursor: pointer;
  font-weight: 600;
  padding: 6px 0;
  line-height: 1.5;
}
details > div {
  margin-top: 22px;
}
.topics {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.topics button {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 9px 13px;
}
.topics button.active {
  background: var(--sub);
  color: var(--accent);
}
.steps {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  margin: 4px 0 22px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}
.steps .active {
  color: var(--accent);
  font-weight: 700;
}
.draft-pics {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 10px 0;
}
.draft-pics button {
  position: relative;
  padding: 0;
  flex: none;
  width: 130px;
}
.draft-pics img {
  width: 130px;
  height: 150px;
  border-radius: 12px;
}
.draft-pics small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gallery-tools {
  display: flex;
  gap: 12px;
  margin: 17px 0;
  align-items: center;
  flex-wrap: wrap;
}
.gallery-tools button {
  border: 1px solid var(--line);
}
.login {
  min-height: 100svh;
  min-height: 100dvh;
  background:
    linear-gradient(90deg, #000a, #0006),
    url("/share-assets/home-anthony-dome.webp") center/cover;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  grid-template-rows: auto 1fr auto;
  align-items: center;
  padding: max(28px, env(safe-area-inset-top)) 6vw
    max(28px, env(safe-area-inset-bottom));
  gap: 28px 45px;
  color: white;
}
.login .brand {
  width: 225px;
}
.login h1 {
  font-size: clamp(2.1rem, 4vw, 3.5rem);
  max-width: 520px;
  margin: 0;
  line-height: 1.35;
}
.login-header {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}
.login-intro {
  min-width: 0;
}
.login-box {
  background: var(--bg);
  color: var(--ink);
  padding: 30px;
  border-radius: 24px;
  width: min(430px, 100%);
  flex: none;
}
.login-box p {
  margin-bottom: 22px;
}
.login-box .primary {
  margin: 8px 0;
}
.login-box .provider {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  margin: 6px 0;
  min-height: 48px;
}
.login-box footer {
  font-size: 0.8rem;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 20px;
}
.login select {
  width: auto;
  margin: 0;
  max-width: 180px;
}
.policy {
  max-height: 55svh;
  overflow: auto;
  border-bottom: 1px solid var(--line);
  padding: 0 4px 25px;
  white-space: pre-line;
  margin-bottom: 28px;
}
.legal-actions {
  padding-top: 24px;
}
.fixed-nav {
  display: none;
}
#toast {
  position: fixed;
  bottom: 35px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99;
  max-width: 90%;
  padding: 13px 20px;
  border-radius: 15px;
  background: var(--ink);
  color: var(--surface);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s;
}
#toast.visible {
  opacity: 1;
}
.world-canvas {
  width: 100%;
  aspect-ratio: 1.8;
  background: var(--bg);
  touch-action: none;
}
.world-labels {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
body.modal-open {
  overflow: hidden;
}
.action-panel {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}
.help-item {
  border-bottom: 1px solid var(--line);
  padding: 17px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.file-hint {
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  text-align: center;
}
.theme-choose {
  width: auto;
}
.review-thumb {
  width: 85px;
  height: 95px;
  border-radius: 10px;
}
.chip {
  color: var(--accent);
  font-size: 0.8rem;
}
.hidden {
  display: none !important;
}
@keyframes enter {
  from {
    transform: translateX(25px);
    opacity: 0.5;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1114;
    --surface: #181b21;
    --sub: #26282e;
    --line: #323741;
    --muted: #9aa3b0;
    --ink: #f1f2f4;
    --accent: #f6bf72;
  }
  .brand {
    filter: none;
  }
  .profile-sections button.active {
    color: white;
  }
}
@media (min-width: 1500px) {
  .map {
    height: 560px;
  }
}
@media (max-width: 1100px) {
  .rail {
    width: 170px;
    padding: 30px 14px;
  }
  .workspace {
    margin-left: 170px;
    padding: 25px;
  }
  .explore {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .map-col {
    position: static;
  }
  .map {
    height: 350px;
  }
  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .profile-hero {
    margin-left: -25px;
    margin-right: -25px;
    padding-left: 25px;
    padding-right: 25px;
  }
}
@media (max-width: 700px) {
  .rail {
    display: none;
  }
  .workspace {
    margin: 0;
    padding: 18px 18px 110px;
  }
  .topbar .brand {
    display: block;
    width: 133px;
  }
  .topbar {
    gap: 6px;
  }
  .topbar .actions button {
    font-size: 0.83rem;
    padding: 7px 8px;
  }
  .topbar .actions svg {
    width: 19px;
  }
  .topbar .actions button.icon {
    width: 36px;
  }
  .fixed-nav {
    display: flex;
    position: fixed;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 20px;
    right: 20px;
    height: 66px;
    border: 0;
    border-radius: 999px;
    backdrop-filter: blur(24px) saturate(1.5);
    background: color-mix(in srgb, var(--surface) 70%, transparent);
    padding: 4px;
    z-index: 5;
    box-shadow: 0 2px 20px #0001;
  }
  .fixed-nav button {
    flex: 1;
    border-radius: 999px;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 4px;
    font-size: 0.75rem;
    padding: 5px;
  }
  .fixed-nav button svg {
    margin: 0;
    width: 23px;
    height: 23px;
  }
  .map {
    height: 260px;
    margin: 0 -5px;
    border-radius: 18px;
  }
  .search-row {
    gap: 4px;
    margin-bottom: 13px;
  }
  .search-row input {
    padding: 11px 12px;
  }
  .segments {
    margin: 13px 0;
  }
  .segments button {
    min-height: 31px;
    font-size: 0.87rem;
  }
  .spot-row {
    gap: 15px;
    padding: 21px 0;
  }
  .spot-row img {
    width: 88px;
    height: 100px;
  }
  .photo-grid {
    gap: 23px 13px;
  }
  .thumb .metrics {
    font-size: 0.72rem;
    gap: 7px;
  }
  .metrics svg {
    width: 15px;
  }
  .two {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .profile-hero {
    margin: 20px -18px 0;
    padding: 25px 18px;
  }
  .profile-hero h1 {
    font-size: 1.25rem;
  }
  .profile-hero .avatar {
    width: 60px;
    height: 60px;
  }
  .profile-hero .profile-bio {
    font-size: 0.875rem;
    line-height: 1.65;
  }
  .profile-identity {
    gap: 10px;
    flex-wrap: wrap;
  }
  .profile-name {
    flex: 1;
  }
  .profile-actions {
    margin-left: auto;
  }
  .profile-hero .badges button {
    height: 30px;
    min-height: 30px;
    font-size: 0.75rem;
    padding: 4px 10px;
  }
  .counts {
    gap: 10px;
    justify-content: space-between;
  }
  .counts strong {
    font-size: 1.35rem;
  }
  .profile-sections {
    gap: 12px;
    justify-content: space-between;
  }
  .profile-sections button {
    font-size: 0.9rem;
    padding: 17px 7px;
  }
  .sheet header {
    padding: 12px 17px;
    min-height: 66px;
  }
  .sheet-content {
    padding: 8px 18px 35px;
  }
  .detail-meta {
    gap: 10px;
  }
  .detail-meta .author {
    font-size: 0.9rem;
  }
  .detail-meta .metrics {
    gap: 13px;
  }
  .gallery img {
    max-height: 68svh;
  }
  .login {
    padding: max(20px, env(safe-area-inset-top))
      max(20px, env(safe-area-inset-right))
      max(24px, env(safe-area-inset-bottom))
      max(20px, env(safe-area-inset-left));
    min-height: 100svh;
    min-height: 100dvh;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto 1fr;
    align-items: start;
    gap: 20px;
  }
  .login h1 {
    font-size: clamp(1.25rem, 5.8vw, 1.6rem);
    margin: 0;
  }
  .login .brand {
    width: 175px;
  }
  .login-box {
    padding: 22px;
    width: 100%;
  }
  .login select {
    margin: 0;
    max-width: 45%;
    font-size: 16px;
    padding: 10px 12px;
  }
  .login-box h2 {
    margin: 0 0 14px;
  }
  .login-box p {
    margin: 0 0 18px;
  }
  .capture {
    font-size: 0.92rem;
  }
  .world-canvas {
    aspect-ratio: 1.3;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  width: auto !important;
  flex: none;
}
.brand .mark {
  width: 32.5px;
  height: 40px;
  margin-right: -5px;
  object-fit: contain;
}
.brand .word {
  width: 130px;
  height: 40px;
  object-fit: contain;
  object-position: left center;
}
.brand picture {
  display: block;
}
.topbar .brand {
  display: none;
}
.login .brand .mark {
  width: 45.5px;
  height: 56px;
  margin-right: -7px;
}
.login .brand .word {
  width: 182px;
  height: 56px;
}
@media (max-width: 700px) {
  .topbar .brand {
    display: inline-flex;
  }
  .brand .mark {
    width: 29.25px;
    height: 36px;
    margin-right: -4.5px;
  }
  .brand .word {
    width: 117px;
    height: 36px;
  }
  .login .brand .mark {
    width: 39px;
    height: 48px;
    margin-right: -6px;
  }
  .login .brand .word {
    width: 156px;
    height: 48px;
  }
}

.login {
  position: relative;
}
.login-credit {
  position: static;
  grid-column: 1 / -1;
  align-self: end;
  margin: 0;
  color: #ffffffc9;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.place-results {
  max-height: 240px;
  overflow: auto;
}
.place-results strong,
.place-results small {
  display: block;
}

.row.between > small {
  white-space: nowrap;
  flex-shrink: 0;
}

.collection-controls > select {
  width: 120px;
  flex-shrink: 0;
}
.search-row > select {
  width: 160px;
  flex-shrink: 0;
}
@media (max-width: 650px) {
  .search-row > select {
    width: 105px;
  }
  .collection-controls > select {
    width: 112px;
  }
}

.login select {
  color: var(--ink);
  background: var(--surface);
}
.google-button {
  width: 100%;
  min-width: 0;
  margin: 6px 0;
  min-height: 40px;
}
.google-button iframe {
  max-width: none;
}

/* Give WebKit's native language menu the same size and tap target as other browsers. */
.login-header select,
.location-setup-header select {
  -webkit-appearance: none;
  appearance: none;
  min-height: 44px;
  padding: 10px 32px 10px 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m2 4 4 4 4-4' fill='none' stroke='%23717b88' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 12px;
}

/* Mobile web: clear, consistently spaced actions without changing map SDK controls. */
a.action-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 20px;
  min-height: 52px;
  border-radius: 14px;
  text-align: center;
  line-height: 1.4;
  text-decoration: none;
}
a.action-button:hover {
  filter: brightness(1.12);
}
a.action-button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
.map-location {
  margin-block: 24px;
}
.map-location > p {
  overflow-wrap: anywhere;
  margin-bottom: 16px;
}
.map-actions {
  display: grid;
  gap: 12px;
  margin-block: 22px;
}
.map-actions > button {
  min-height: 48px;
}
.sheet-content > a.action-button {
  margin-top: 24px;
  margin-bottom: 12px;
}
.sheet-content > :is(select, input, textarea) {
  display: block;
  margin-block: 16px;
}
.sheet-content > :is(button, a.action-button) + :is(button, a.action-button) {
  margin-top: 12px;
}
.sheet-content > label + button.full {
  margin-top: 8px;
}
.sheet-content > .row + button.full {
  margin-top: 16px;
}
.sheet-content > .spot-facts {
  margin-block: 28px;
}
.spot-facts h2 {
  margin-bottom: 12px;
}
.spot-facts p {
  margin-block: 10px;
}
button.avatar-button {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  min-height: 52px;
  padding: 0;
  border-radius: 50%;
}
.avatar-button .avatar {
  display: block;
  max-width: none;
}
.directory-row > .icon {
  flex-shrink: 0;
}
button.directory-name {
  max-width: 100%;
  padding: 0;
  min-height: 32px;
  text-align: left;
  overflow-wrap: anywhere;
}
.version-info {
  color: var(--muted);
  font-size: 0.875rem;
  padding-block: 8px;
}
.version-info h2 {
  color: var(--ink);
  font-size: 1rem;
}
.version-info p {
  margin-block: 8px;
}

.location-setup {
  max-width: 560px;
  margin: 0 auto;
  min-height: 100svh;
  padding: max(28px, env(safe-area-inset-top)) 24px
    max(32px, env(safe-area-inset-bottom));
}
.location-setup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 56px;
}
.location-setup-header .brand {
  flex: 0 1 170px;
  min-width: 100px;
}
.location-setup-header select {
  width: auto;
  max-width: 45%;
  font-size: 16px;
}
.location-setup h1 {
  font-size: 1.75rem;
}
.location-setup > p {
  margin-bottom: 28px;
}
.location-setup .stack > button {
  min-height: 52px;
}
.location-setup .error {
  margin-block: 20px;
}
@media (max-width: 360px) {
  .location-setup {
    padding-inline: 18px;
  }
  .location-setup-header {
    gap: 12px;
  }
}
