body.account-page {
  background: var(--paper);
  min-height: 100dvh;
}

.ac-profile {
  padding: 1.6rem var(--space) 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--forest) 12%, var(--cream)) 0%, var(--paper) 70%);
}

.ac-profile-card {
  display: grid;
  gap: 1.1rem;
  align-items: center;
  padding: 1.25rem 1.2rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  background: color-mix(in srgb, var(--paper) 88%, white);
  box-shadow: 0 18px 40px rgba(19, 37, 30, 0.08);
}

.ac-profile-avatar,
.ac-photo-preview {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--forest);
  color: var(--cream);
  font-family: var(--serif);
  font-size: 2rem;
  overflow: hidden;
  flex-shrink: 0;
}

.ac-profile-avatar img,
.ac-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ac-profile-copy h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 4vw, 2.45rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.2rem;
}

.ac-profile-email {
  color: var(--ink-soft);
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
}

.ac-profile-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.1rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.ac-profile-stats strong {
  color: var(--forest-deep);
  font-weight: 600;
}

.ac-stat-link {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.ac-stat-link:hover,
.ac-stat-link:focus-visible {
  color: var(--forest-deep);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  outline: none;
}

.ac-people-modal {
  width: min(28rem, calc(100vw - 2rem));
  max-height: min(36rem, calc(100vh - 2rem));
}

.ac-people-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0.85rem 0 1.1rem;
  max-height: min(22rem, 50vh);
  overflow: auto;
}

.ac-people-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.45rem 0.35rem;
  border-radius: 0.65rem;
}

.ac-people-row:hover {
  background: color-mix(in srgb, var(--forest-deep) 6%, transparent);
}

.ac-people-avatar {
  flex: 0 0 auto;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--forest-deep) 14%, #f4efe6);
  color: var(--forest-deep);
  font-size: 0.78rem;
  font-weight: 650;
  overflow: hidden;
}

.ac-people-avatar.has-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ac-people-meta {
  flex: 1 1 auto;
  min-width: 0;
}

.ac-people-meta a {
  color: var(--forest-deep);
  font-weight: 600;
  text-decoration: none;
}

.ac-people-meta a:hover {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.ac-people-empty {
  margin: 0.4rem 0 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.ac-people-actions {
  flex: 0 0 auto;
}

.ac-people-actions .btn-quiet {
  font-size: 0.82rem;
  padding: 0.35rem 0.7rem;
}

.ac-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.profile-page .ac-profile {
  padding-top: 1.35rem;
}

.profile-page .ac-profile-card {
  border-radius: 1.5rem 1.5rem 1.15rem 1.15rem;
}

.ac-view-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 1rem;
  padding-bottom: 0.15rem;
  border-bottom: 1px solid var(--line);
}

.ac-view-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-weight: 500;
  padding: 0.7rem 0.85rem;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}

.ac-view-tab.is-on {
  color: var(--forest-deep);
  border-bottom-color: var(--forest);
}

.ac-atlas-section {
  padding-top: 1.4rem;
}

.atlas-shell {
  --atlas-h: min(72vh, 620px);
  display: grid;
  gap: 1.1rem;
}

.atlas-map-col {
  display: grid;
  gap: 0.7rem;
  min-width: 0;
}

.atlas-map {
  position: relative;
  height: var(--atlas-h);
  min-height: 340px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--gold) 28%, var(--line));
  background: var(--forest-deep);
  box-shadow: 0 24px 80px rgba(19, 37, 30, 0.28), 0 0 40px color-mix(in srgb, var(--gold) 12%, transparent);
}

.atlas-world {
  background-color: var(--forest-deep);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--gold-pale) 45%, transparent),
    inset 0 0 0 7px color-mix(in srgb, var(--forest-deep) 70%, black);
}

.atlas-world::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid color-mix(in srgb, var(--gold-pale) 22%, transparent);
  pointer-events: none;
}

.atlas-viewport {
  position: absolute;
  inset: 0;
  touch-action: none;
  cursor: grab;
}

.atlas-map.is-panning .atlas-viewport {
  cursor: grabbing;
}

.atlas-stage {
  position: absolute;
  inset: 0;
  container-type: size;
  transform-origin: 0 0;
  will-change: transform;
}

.atlas-plane {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(100cqw, calc(100cqh * 2));
  height: min(100cqh, calc(100cqw / 2));
  transform: translate(-50%, -50%);
}

.atlas-world,
.atlas-pins {
  position: absolute;
  inset: 0;
}

.atlas-pins {
  pointer-events: none;
}

.atlas-world svg,
.atlas-world-img {
  width: 100%;
  height: 100%;
  max-width: none;
  display: block;
  object-fit: contain;
}

.atlas-world .jm-ocean {
  fill: var(--forest-deep);
}

.atlas-world .jm-country {
  fill: color-mix(in srgb, var(--forest) 82%, var(--cream));
  stroke: color-mix(in srgb, var(--gold-pale) 42%, transparent);
  stroke-width: 0.35;
  transition: fill 0.2s ease, stroke 0.2s ease;
  cursor: pointer;
}

.atlas-world .jm-country:hover {
  fill: color-mix(in srgb, var(--forest) 55%, var(--gold-pale));
  stroke: color-mix(in srgb, var(--gold) 75%, var(--cream));
}

.atlas-world .jm-country.is-visited {
  fill: color-mix(in srgb, var(--gold) 58%, var(--forest));
}

.atlas-world .jm-country.is-visited:hover {
  fill: var(--gold);
}

.atlas-pin {
  pointer-events: auto;
  position: absolute;
  width: 28px;
  height: 44px;
  transform: translate(-50%, -100%);
  transform-origin: 50% 100%;
  border: 0;
  background: none;
  padding: 0;
  z-index: 2;
  cursor: pointer;
}

.atlas-pin-pulse {
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  border-radius: 50%;
  border: 2px solid rgba(196, 85, 48, 0.7);
  animation: atlas-pin-ping 2.2s ease-out infinite;
  pointer-events: none;
}

.atlas-pushpin {
  position: absolute;
  inset: 0;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.45));
  transition: transform 0.18s ease;
}

.atlas-pushpin-head {
  position: absolute;
  left: 50%;
  top: 1px;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, #ffb199 0%, #e25a38 38%, #b33a22 72%, #7a2416 100%);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.55),
    inset 0 -2px 4px rgba(80, 16, 8, 0.35);
}

.atlas-pushpin-eye {
  position: absolute;
  left: 50%;
  top: 5px;
  width: 6px;
  height: 5px;
  margin-left: -5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  pointer-events: none;
}

.atlas-pushpin-needle {
  position: absolute;
  left: 50%;
  top: 17px;
  width: 7px;
  height: 26px;
  margin-left: -3.5px;
  background: linear-gradient(90deg, #9a958a 0%, #e8e4d8 45%, #6f6a60 100%);
  clip-path: polygon(32% 0, 68% 0, 50% 100%);
}

.atlas-pin-label {
  position: absolute;
  left: 26px;
  top: 2px;
  white-space: nowrap;
  padding: 5px 9px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--forest-deep) 94%, black);
  border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent);
  color: var(--cream);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  box-shadow: 0 10px 24px rgba(19, 37, 30, 0.4);
}

.atlas-pin:hover,
.atlas-pin:focus-visible,
.atlas-pin.is-hover {
  z-index: 40;
}

.atlas-pin:hover .atlas-pushpin,
.atlas-pin:focus-visible .atlas-pushpin,
.atlas-pin.is-hover .atlas-pushpin {
  transform: translateY(-3px) scale(1.08);
}

.atlas-pin:hover .atlas-pin-label,
.atlas-pin:focus-visible .atlas-pin-label,
.atlas-pin.is-hover .atlas-pin-label {
  opacity: 1;
  visibility: visible;
}

.atlas-tools {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.atlas-tools button {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--gold) 32%, transparent);
  background: color-mix(in srgb, var(--forest) 88%, black);
  color: var(--cream);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.atlas-tools button:hover {
  border-color: color-mix(in srgb, var(--gold-pale) 70%, transparent);
  color: var(--gold-pale);
}

.atlas-hud {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 4;
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--gold-pale) 80%, var(--cream));
  pointer-events: none;
  text-shadow: 0 1px 8px rgba(19, 37, 30, 0.7);
}

.atlas-card {
  position: absolute;
  z-index: 6;
  left: 16px;
  right: 16px;
  bottom: 44px;
  max-width: 360px;
  padding: 18px 18px 16px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--forest-deep) 94%, black);
  border: 1px solid color-mix(in srgb, var(--gold) 28%, transparent);
  box-shadow: 0 18px 50px rgba(19, 37, 30, 0.45);
  color: var(--cream);
}

.atlas-card[hidden] {
  display: none;
}

.atlas-card-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 0;
  background: none;
  color: color-mix(in srgb, var(--cream) 70%, transparent);
  font-size: 1.2rem;
  cursor: pointer;
}

.atlas-card-kicker,
.atlas-card-date {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-pale);
  margin: 0;
}

.atlas-card h3 {
  margin: 6px 0 8px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.35rem;
  color: var(--cream);
}

.atlas-card-copy {
  color: color-mix(in srgb, var(--cream) 72%, var(--gold-pale));
  font-size: 0.92rem;
  margin: 0 0 0.85rem;
}

.atlas-card-link {
  color: var(--gold-pale);
  text-decoration: none;
  font-size: 0.9rem;
}

.atlas-card-link:hover {
  color: var(--cream);
}

.atlas-legend {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

@keyframes atlas-pin-ping {
  0% {
    transform: scale(0.7);
    opacity: 0.8;
  }
  80%,
  100% {
    transform: scale(1.7);
    opacity: 0;
  }
}

.atlas-passport {
  --pp-page: #f4ead4;
  --pp-leather: #13251e;
  min-width: 0;
  height: var(--atlas-h);
  min-height: 340px;
}

.pp-book {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0 0.7rem 0.55rem 1.15rem;
  border-radius: 5px 14px 14px 8px;
  overflow: hidden;
  color: var(--gold-pale);
  background:
    radial-gradient(ellipse at 18% 8%, color-mix(in srgb, var(--gold) 16%, transparent), transparent 42%),
    repeating-linear-gradient(
      90deg,
      transparent 0 2px,
      rgba(0, 0, 0, 0.05) 2px 3px
    ),
    linear-gradient(180deg, #1a3329 0%, var(--pp-leather) 38%, #0e1c17 100%);
  box-shadow:
    8px 14px 28px rgba(19, 37, 30, 0.28),
    inset 0 1px 0 color-mix(in srgb, var(--gold-pale) 18%, transparent),
    inset -10px 0 18px rgba(0, 0, 0, 0.18);
  border: 1px solid color-mix(in srgb, var(--gold) 22%, #0a1612);
}

.pp-spine {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0.78rem;
  background:
    repeating-linear-gradient(
      180deg,
      transparent 0 18px,
      color-mix(in srgb, var(--gold) 28%, transparent) 18px 19px,
      transparent 19px 34px
    ),
    linear-gradient(90deg, #0a1612, #1a3329 55%, #0e1c17);
  box-shadow: 4px 0 10px rgba(0, 0, 0, 0.28);
}

.pp-spine::before,
.pp-spine::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--gold) 55%, #0a1612);
  transform: translateX(-50%);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--gold-pale) 25%, transparent);
}

.pp-spine::before {
  top: 1.1rem;
}

.pp-spine::after {
  bottom: 1.1rem;
}

.pp-cover-plate {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  flex-shrink: 0;
  margin: 0.35rem 0.1rem 0.4rem;
  padding: 0.45rem 0.7rem;
  text-align: left;
  border: 1px solid color-mix(in srgb, var(--gold-pale) 42%, transparent);
  box-shadow:
    inset 0 0 0 3px var(--pp-leather),
    inset 0 0 0 4px color-mix(in srgb, var(--gold) 45%, transparent);
}

.pp-cover-copy {
  display: grid;
  gap: 0.1rem;
}

.pp-cover-nation {
  margin: 0;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-pale);
}

.pp-crest {
  width: 2.7rem;
  height: 2.7rem;
  color: var(--gold-pale);
  filter: drop-shadow(0 2px 0 color-mix(in srgb, var(--gold) 35%, transparent));
  flex-shrink: 0;
}

.pp-cover-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-pale);
}

.pp-inner {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
  overflow: hidden;
  border-radius: 2px 8px 8px 3px;
  background: color-mix(in srgb, var(--pp-page) 70%, #c4b48a);
  box-shadow:
    inset 8px 0 14px rgba(19, 37, 30, 0.08),
    inset 0 0 0 1px color-mix(in srgb, var(--gold) 18%, transparent);
  color: var(--ink);
}

.pp-leaves {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  perspective: 1600px;
  perspective-origin: 12% 50%;
  transform-style: preserve-3d;
}

.pp-leaf {
  --pp-leaf-paper:
    repeating-linear-gradient(
      transparent,
      transparent 27px,
      color-mix(in srgb, var(--ink) 5.5%, transparent) 28px
    ),
    radial-gradient(circle at 80% 120%, color-mix(in srgb, var(--gold) 10%, transparent), transparent 46%),
    repeating-radial-gradient(circle at 50% -10%, transparent 0 12px, color-mix(in srgb, var(--forest) 4%, transparent) 13px 14px),
    var(--pp-page);
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 0.75rem 0.75rem 0.55rem 0.85rem;
  background: var(--pp-leaf-paper);
  transform-origin: left center;
  transform: rotateY(0deg);
  visibility: hidden;
  pointer-events: none;
  z-index: 0;
  backface-visibility: hidden;
  box-shadow: inset 10px 0 16px rgba(19, 37, 30, 0.06);
  transition: transform 0.72s cubic-bezier(0.45, 0.05, 0.2, 1);
}

.pp-leaf::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(19, 37, 30, 0.16),
    transparent 14%,
    rgba(255, 255, 255, 0.18) 46%,
    rgba(19, 37, 30, 0.22)
  );
  opacity: 0;
  z-index: 4;
  transition: opacity 0.45s ease;
}

.pp-leaf.is-on,
.pp-leaf.is-under,
.pp-leaf.is-flip-fwd,
.pp-leaf.is-flip-back {
  visibility: visible;
}

.pp-leaf.is-on {
  z-index: 2;
  pointer-events: auto;
  transform: rotateY(0deg);
}

.pp-leaf.is-under {
  z-index: 1;
  transform: rotateY(0deg);
}

.pp-leaf.is-flip-fwd {
  z-index: 5;
  pointer-events: none;
  transform: rotateY(-180deg);
  box-shadow:
    12px 0 28px rgba(19, 37, 30, 0.28),
    inset 10px 0 16px rgba(19, 37, 30, 0.06);
}

.pp-leaf.is-flip-back {
  z-index: 5;
  pointer-events: none;
  transform: rotateY(-180deg);
  transition: none;
}

.pp-leaf.is-flip-fwd::before,
.pp-leaf.is-flip-back::before {
  opacity: 1;
}

.pp-leaves.is-turning {
  pointer-events: none;
}

.pp-leaves.is-turning .pp-leaf.is-on,
.pp-leaves.is-turning .pp-leaf.is-flip-fwd,
.pp-leaves.is-turning .pp-leaf.is-flip-back {
  will-change: transform;
}

.pp-visa-head {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  flex-shrink: 0;
  margin: 0 0 0.45rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid color-mix(in srgb, var(--forest) 18%, var(--line));
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--forest-deep);
}

.pp-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-shrink: 0;
  padding: 0.4rem 0.65rem 0.5rem;
  border-top: 1px solid color-mix(in srgb, var(--forest) 16%, var(--line));
  background: color-mix(in srgb, var(--pp-page) 88%, var(--gold-pale));
}

.pp-pager-status {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest-deep);
}

.pp-pager-btn {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--forest) 28%, var(--line));
  background: var(--cream);
  color: var(--forest-deep);
  font: inherit;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.pp-pager-btn:hover:not(:disabled) {
  border-color: var(--forest);
  background: color-mix(in srgb, var(--forest) 10%, var(--cream));
}

.pp-pager-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.pp-stamps {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.pp-stamp {
  --stamp-ink: var(--brick);
  --stamp-turn: -4deg;
  position: absolute;
  left: var(--stamp-x);
  top: var(--stamp-y);
  width: var(--stamp-w);
  height: var(--stamp-h);
  z-index: var(--stamp-z, 1);
  color: var(--stamp-ink);
  text-decoration: none;
  transform: rotate(var(--stamp-turn));
  opacity: 0.9;
  mix-blend-mode: multiply;
}

.pp-stamp:hover,
.pp-stamp:focus-visible {
  opacity: 1;
  z-index: 8;
}

.pp-stamp:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 4px;
}

.pp-stamp--round:focus-visible {
  border-radius: 50%;
}

.pp-stamp--square:focus-visible,
.pp-stamp--rect:focus-visible {
  border-radius: 0.35rem;
}

.pp-stamp-ring {
  position: absolute;
  inset: 0;
  border: 2.5px solid currentColor;
  box-shadow:
    inset 0 0 0 5px var(--pp-page),
    inset 0 0 0 7px currentColor;
  opacity: 0.92;
}

.pp-stamp--round .pp-stamp-ring,
.pp-stamp--round .pp-stamp-ring::after {
  border-radius: 50%;
}

.pp-stamp--square .pp-stamp-ring,
.pp-stamp--rect .pp-stamp-ring {
  border-radius: 0.32rem;
}

.pp-stamp-ring::after {
  content: "";
  position: absolute;
  inset: 11px;
  border: 1.5px dashed currentColor;
  opacity: 0.7;
}

.pp-stamp--square .pp-stamp-ring::after {
  inset: 7px;
  border-radius: 0.18rem;
}

.pp-stamp--rect .pp-stamp-ring::after {
  inset: 6px 8px;
  border-radius: 0.16rem;
}

.pp-stamp-face {
  position: relative;
  z-index: 1;
  height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.05rem;
  padding: 0.7rem 0.55rem 0.55rem;
  text-align: center;
}

.pp-stamp--rect .pp-stamp-face {
  padding: 0.4rem 0.7rem 0.35rem;
  gap: 0;
}

.pp-stamp-brand {
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-transform: none;
  font-weight: 600;
}

.pp-stamp--rect .pp-stamp-brand {
  font-size: 0.5rem;
  letter-spacing: 0.18em;
}

.pp-lakbi {
  width: 1.7rem;
  height: 1.7rem;
  display: block;
}

.pp-stamp--rect .pp-lakbi {
  width: 1.25rem;
  height: 1.25rem;
}

.pp-stamp-face strong {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 0.68rem;
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  max-width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pp-stamp--rect .pp-stamp-face strong {
  font-size: 0.62rem;
}

.pp-stamp-country {
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  max-width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0.9;
}

.pp-stamp-face time {
  font-size: 0.55rem;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

.pp-stamp:hover .pp-stamp-ring,
.pp-stamp:focus-visible .pp-stamp-ring {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .pp-leaf,
  .pp-leaf::before {
    transition: none;
  }
}

@media (min-width: 56rem) {
  .atlas-shell {
    grid-template-columns: minmax(0, 1.35fr) minmax(20rem, 0.88fr);
    grid-template-rows: minmax(340px, var(--atlas-h)) auto;
    column-gap: 1.1rem;
    row-gap: 0.7rem;
    align-items: stretch;
  }

  .atlas-map-col {
    display: contents;
  }

  .atlas-map {
    grid-column: 1;
    grid-row: 1;
    height: 100%;
    min-height: 0;
    min-width: 0;
  }

  .atlas-legend {
    grid-column: 1;
    grid-row: 2;
  }

  .atlas-passport {
    grid-column: 2;
    grid-row: 1;
    height: 100%;
    min-height: 0;
    position: sticky;
    top: 1rem;
  }
}

.ac-section {
  padding: 1.8rem var(--space) 2.4rem;
}

.ac-section-paper {
  background: var(--cream);
  border-block: 1px solid var(--line);
}

.ac-section-head {
  margin-bottom: 1.1rem;
}

.ac-section-head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}

.ac-section-head p {
  color: var(--ink-soft);
  margin-top: 0.25rem;
}

.ac-grid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.75rem), 1fr));
  align-items: start;
}

.ac-grid > .lb-dest-card {
  width: 100%;
  flex: none;
  height: auto;
  aspect-ratio: 3 / 4;
  min-height: 16rem;
}

.ac-grid > .lb-dest-card-rich {
  aspect-ratio: 3 / 4.35;
}

.ac-grid .lb-dest-skel {
  width: 100%;
  flex: none;
  aspect-ratio: 3 / 4;
  height: auto;
  min-height: 14rem;
}

.ac-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.05rem 1.05rem 1.1rem;
}

.ac-card-with-cover {
  display: grid;
  gap: 0.65rem;
  padding: 0.55rem;
  border-radius: 1.25rem;
  overflow: hidden;
  background: color-mix(in srgb, var(--paper) 92%, white);
  box-shadow: 0 10px 28px rgba(19, 37, 30, 0.07);
}

.ac-section-paper .ac-card {
  background: color-mix(in srgb, var(--paper) 92%, white);
}

.ac-cover.lb-dest-card {
  flex: none;
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  min-height: 14rem;
  border-radius: 1rem;
  box-shadow: none;
}

.ac-cover.lb-dest-card-rich {
  aspect-ratio: 3 / 4.35;
  height: auto;
  min-height: 16rem;
}

.ac-cover .lb-dest-meta {
  padding: 0.55rem 0.7rem 0.6rem;
}

.ac-cover .lb-dest-copy strong {
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
}

.ac-cover .lb-dest-copy strong em {
  font-style: italic;
  font-weight: 300;
  color: color-mix(in srgb, var(--cream) 78%, var(--gold-pale));
}

.ac-cover-fallback {
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 4;
  min-height: 14rem;
  padding: 1rem;
  border-radius: 1rem;
  background: var(--forest);
  color: var(--cream);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.25rem;
}

.ac-card-body {
  display: grid;
  gap: 0.55rem;
  padding: 0.15rem 0.35rem 0.4rem;
}

.ac-card-meta {
  color: var(--ink-soft);
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.35;
}

.ac-role-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.ac-role-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--forest) 28%, var(--line));
  background: color-mix(in srgb, var(--forest) 8%, var(--cream));
  color: var(--forest-deep);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.ac-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.ac-card-actions .btn-solid,
.ac-card-actions .btn-quiet {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  min-width: 5.5rem;
}

.ac-card-actions a.btn-solid,
.ac-card-actions a.btn-quiet {
  text-decoration: none;
}

.ac-empty {
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--cream) 70%, var(--paper));
  border: 1px dashed var(--line);
  padding: 1.1rem 1rem;
}

.ac-empty-hero {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.55rem;
  padding: 2.4rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: color-mix(in srgb, var(--cream) 55%, var(--paper));
}

.ac-empty-soft {
  background: color-mix(in srgb, var(--paper) 80%, white);
}

.ac-empty-icon {
  width: 3.4rem;
  height: 3.4rem;
  display: grid;
  place-items: center;
  border-radius: 1rem;
  background: color-mix(in srgb, var(--forest) 12%, var(--cream));
  font-size: 1.45rem;
  margin-bottom: 0.35rem;
}

.ac-empty-hero h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.35rem;
  margin: 0;
}

.ac-empty-hero p {
  max-width: 28rem;
  color: var(--ink-soft);
  margin: 0 0 0.55rem;
}

.ac-subsection {
  margin-top: 2.4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.ac-subsection .ac-section-head {
  margin-bottom: 1rem;
}

.ac-subsection .ac-section-head h2 {
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
}

.ac-copy-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem 1.25rem;
}

.ac-copy-head .lb-see-more {
  flex-shrink: 0;
}

.ac-copy-row {
  display: flex;
  gap: 1.1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.25rem 0.1rem 0.85rem;
  margin-inline: -0.15rem;
}

.ac-copy-row > .ac-card-with-cover {
  flex: 0 0 min(17.5rem, 78vw);
  scroll-snap-align: start;
  max-width: 17.5rem;
}

.ac-copy-row > .ac-empty {
  flex: 1 1 auto;
}

.ac-settings-stack {
  display: grid;
  gap: 0.85rem;
  max-width: 46rem;
}

.ac-panel {
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background: var(--paper);
  overflow: hidden;
}

.ac-panel > summary,
.ac-panel-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.05rem;
  cursor: pointer;
  list-style: none;
}

.ac-panel > summary::-webkit-details-marker {
  display: none;
}

.ac-panel > summary strong,
.ac-panel-heading strong {
  display: block;
  font-weight: 600;
}

.ac-panel > summary small,
.ac-panel-heading small {
  display: block;
  color: var(--ink-soft);
  margin-top: 0.15rem;
}

.ac-panel-icon {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.75rem;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--forest) 14%, var(--cream));
  flex-shrink: 0;
}

.ac-panel-body {
  display: grid;
  gap: 1rem;
  padding: 0 1.05rem 1.15rem;
  border-top: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}

.ac-panel-note {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.4;
}

.ac-panel-static .ac-panel-heading {
  cursor: default;
}

.ac-field {
  display: grid;
  gap: 0.35rem;
}

.ac-field > span,
.ac-chip-set legend {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.ac-field input,
.ac-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--cream);
  color: var(--ink);
  font: inherit;
  padding: 0.7rem 0.8rem;
}

.ac-field textarea {
  resize: vertical;
  min-height: 6.5rem;
}

.ac-photo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.ac-photo-preview {
  width: 4.5rem;
  height: 4.5rem;
  font-size: 1.5rem;
}

.ac-photo-actions {
  display: grid;
  gap: 0.35rem;
  justify-items: start;
}

.ac-hint {
  color: var(--ink-soft);
  font-size: 0.82rem;
  margin: 0;
}

.ac-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.ac-switch:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.ac-switch strong {
  display: block;
  font-weight: 550;
}

.ac-switch small {
  display: block;
  color: var(--ink-soft);
  margin-top: 0.12rem;
  font-size: 0.84rem;
}

.ac-switch input {
  width: 2.7rem;
  height: 1.55rem;
  appearance: none;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 18%, var(--cream));
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  border: 0;
}

.ac-switch input::after {
  content: "";
  position: absolute;
  top: 0.18rem;
  left: 0.18rem;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 999px;
  background: white;
  transition: transform 0.16s ease;
  box-shadow: 0 1px 4px rgba(19, 37, 30, 0.22);
}

.ac-switch input:checked {
  background: var(--forest);
}

.ac-switch input:checked::after {
  transform: translateX(1.15rem);
}

.ac-switch input:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.ac-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.ac-chip {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.42rem 0.75rem;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

.ac-chip.is-on {
  background: color-mix(in srgb, var(--forest) 14%, var(--cream));
  border-color: color-mix(in srgb, var(--forest) 40%, var(--line));
  color: var(--forest-deep);
  font-weight: 500;
}

.ac-chip-set {
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.ac-panel-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.ac-toast {
  color: var(--forest-deep);
  font-size: 0.88rem;
  font-weight: 500;
}

.ac-actions-body {
  gap: 1.15rem;
}

.ac-legal-block {
  display: grid;
  gap: 0.35rem;
}

.ac-legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
  margin: 0;
  font-size: 0.92rem;
}

.ac-legal-links a {
  color: var(--forest-deep);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--forest) 35%, transparent);
  text-underline-offset: 0.18em;
}

.ac-legal-links a:hover {
  color: var(--brick);
  text-decoration-color: color-mix(in srgb, var(--brick) 55%, transparent);
}

.ac-legal-links span {
  color: var(--ink-soft);
}

.ac-actions-divider {
  height: 1px;
  background: color-mix(in srgb, var(--line) 85%, transparent);
  margin: 0.1rem 0;
}

.ac-actions-buttons {
  display: grid;
  gap: 0.75rem;
  justify-items: stretch;
}

.ac-btn-wide {
  width: 100%;
  justify-content: center;
}

.ac-delete-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: color-mix(in srgb, var(--brick) 82%, var(--ink));
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  padding: 0.35rem;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--brick) 35%, transparent);
  text-underline-offset: 0.18em;
}

.ac-delete-link:hover {
  color: var(--brick);
  text-decoration-color: var(--brick);
}

@media (min-width: 40rem) {
  .ac-profile-card {
    grid-template-columns: auto 1fr auto;
  }

  .ac-profile-actions {
    justify-content: end;
  }
}

/* mobile layout pass */
@media (max-width: 39.99rem) {
  .ac-view-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.2rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .ac-view-tab {
    flex: 0 0 auto;
    padding: 0.65rem 0.75rem;
    font-size: 0.9rem;
    white-space: nowrap;
  }

  .ac-profile-card {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 0.85rem;
  }

  .ac-profile-actions {
    width: 100%;
  }

  .ac-profile-actions .btn-solid,
  .ac-profile-actions .btn-quiet,
  .pv-profile-actions .pv-action {
    flex: 1 1 auto;
  }

  .ac-profile-stats {
    gap: 0.45rem 0.85rem;
    font-size: 0.88rem;
  }

  .ac-copy-head {
    flex-direction: column;
    align-items: stretch;
  }

  .ac-copy-head .lb-see-more {
    align-self: flex-start;
  }

  .ac-copy-row > .ac-card-with-cover {
    flex-basis: min(16.5rem, 82vw);
    max-width: min(16.5rem, 82vw);
  }

  .ac-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
  }

  .atlas-shell {
    --atlas-h: min(52vh, 420px);
  }

  .atlas-map,
  .atlas-passport {
    min-height: 16rem;
  }

  .ac-settings-stack,
  .ac-panel-body {
    max-width: none;
  }

  .ac-chip-set .ac-chips {
    gap: 0.35rem;
  }
}
