.atlas-page {
  --ground: #edf4ee;
  --ink: #173e35;
  --muted: #45645b;
  --line: #c9dbce;
  --accent: #b8ed76;
  background: var(--ground);
  color: var(--ink);
  font-family: "Public Sans", sans-serif;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  caret-color: var(--ink);
}
.atlas-page ::selection {
  background: var(--accent);
  color: var(--ink);
}
.atlas-page * {
  scrollbar-color: #8fae9e var(--ground);
  scrollbar-width: thin;
}
.atlas-page button,
.atlas-page input,
.atlas-page select {
  font: inherit;
  font-size: 13px;
}
.atlas-page button {
  min-height: 36px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f5f9f5;
  color: var(--ink);
}
.atlas-page button:hover {
  background: #deebdf;
}
.atlas-page :is(button, a, input):focus-visible {
  outline: 3px solid #34701f;
  outline-offset: 2px;
}
.atlas-header {
  max-width: none;
  width: 100%;
  min-height: 60px;
  padding: 12px 2.35%;
  gap: 32px;
  flex: none;
  border-bottom: 1px solid var(--line);
}
.atlas-header .brand {
  font-family: "Public Sans", sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.atlas-header .brand span {
  color: inherit;
}
.atlas-header nav {
  gap: 28px;
  font-size: 13px;
}
.atlas-header nav .claim {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.atlas-tagline {
  margin: 0 0 0 auto;
  font-size: 13px;
  color: var(--muted);
}
.atlas {
  max-width: none;
  width: 100%;
  padding: 0 2.35%;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.atlas-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  flex: none;
}
.atlas-search {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f5f9f6;
  padding: 0 12px;
  gap: 10px;
  width: 350px;
  flex-shrink: 1;
  min-width: 180px;
}
.atlas-search svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  flex: none;
}
.atlas-search input {
  width: 100%;
  background: none;
  border: 0;
  padding: 10px 0;
  color: var(--ink);
  outline-offset: 4px;
}
.atlas-search input::placeholder {
  color: #526c62;
}
#categories {
  display: flex;
  gap: 8px;
  overflow: auto;
  scrollbar-width: none;
}
#categories button {
  white-space: nowrap;
  border-radius: 30px;
  font-size: 12px;
  min-height: 32px;
  padding: 6px 14px;
}
#categories button[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}
#list-toggle {
  margin-left: auto;
  white-space: nowrap;
}
.atlas-frame {
  position: relative;
  flex: 1;
  min-height: 150px;
  display: flex;
  flex-direction: column;
}
#column-ruler {
  height: 25px;
  overflow: hidden;
  position: relative;
  flex: none;
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
#column-ruler span {
  position: absolute;
  top: 4px;
  text-align: center;
}
.atlas .viewport {
  height: auto;
  flex: 1;
  min-height: 0;
  border: 1px solid var(--line);
  overflow: auto;
  cursor: grab;
  overscroll-behavior: contain;
  background: var(--ground);
  touch-action: pan-x pan-y;
}
.atlas .viewport.dragging {
  cursor: grabbing;
  user-select: none;
}
.atlas #grid {
  --cell: 64px;
  width: 12800px;
  height: 3200px;
  min-height: 0;
  aspect-ratio: auto;
  background-color: var(--ground);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: var(--cell) var(--cell);
}
.atlas .tile {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #e5f0e5;
  padding: 7px 4px;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  color: #12332d;
  text-decoration: none;
  transition: background 0.15s;
}
.atlas .tile img {
  width: 60%;
  height: 60%;
  object-fit: contain;
  pointer-events: none;
  flex: 1;
  min-height: 0;
}
.atlas .tile span {
  font-size: 11px;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: none;
  font-weight: 600;
}
.atlas .tile.premium {
  background: #dcebdc;
  border-color: #7da188;
}
.atlas .tile.premium span {
  font-size: clamp(10px, 1vw, 15px);
}
.atlas .tile:hover,
.atlas .tile:focus-visible,
.atlas .tile[aria-expanded="true"] {
  transform: none;
  background: var(--accent);
  outline: 2px solid #34701f;
  outline-offset: -2px;
  z-index: 2;
}
.atlas .tile.dimmed {
  opacity: 0.18;
}
.atlas #grid.tiny .tile {
  padding: 0;
  border-width: 0;
}
.atlas #grid.tiny .tile span {
  display: none;
}
.atlas #grid.tiny .tile img {
  width: 100%;
  height: 100%;
}
.atlas-bottom {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 88px;
  flex: none;
  padding: 12px 0;
}
.wall-summary {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  color: var(--muted);
  margin-right: auto;
}
.wall-summary strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}
.legal-links {
  font-size: 11px;
}
.zoom-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.zoom-controls output {
  min-width: 42px;
  text-align: center;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
#zoom {
  background: var(--ink);
  color: white;
}
.atlas #overview {
  position: relative;
  width: 136px;
  height: 42px;
  min-height: 0;
  flex: none;
  border: 1px solid #8faa99;
  border-radius: 4px;
  padding: 0;
  background: #dce8df;
  overflow: hidden;
}
#minimap {
  display: block;
  width: 100%;
  height: 100%;
}
#map-window {
  position: absolute;
  border: 1px solid #366123;
  background: #b8ed764d;
  pointer-events: none;
  min-width: 2px;
  min-height: 2px;
}
#position {
  font-size: 11px;
  color: var(--muted);
  width: 80px;
  font-variant-numeric: tabular-nums;
  line-height: 1.6;
}
#wall-notice {
  position: absolute;
  top: 37px;
  left: 12px;
  z-index: 4;
  max-width: min(470px, calc(100% - 24px));
  background: #f8fbf7;
  border-radius: 8px;
  padding: 0 14px;
  box-shadow: 0 6px 24px #173e3514;
}
#wall-notice:has(#status:empty) {
  display: none;
}
#wall-notice p {
  font-size: 13px;
  line-height: 1.5;
  margin: 10px 0;
}
#wall-notice button {
  margin-bottom: 10px;
}
.atlas #empty {
  top: 60px;
  left: 24px;
  transform: none;
  text-align: left;
  width: min(350px, calc(100% - 48px));
  background: #f8fbf7;
  padding: 24px;
  border: 0;
  box-shadow: 0 8px 32px #173e3514;
  z-index: 3;
}
#empty h2 {
  font:
    600 22px "Public Sans",
    sans-serif;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
}
.atlas #empty p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}
.atlas #empty .primary {
  background: var(--ink);
  color: white;
}
#product-preview {
  position: absolute;
  z-index: 6;
  width: 280px;
  padding: 18px;
  background: #f7faf7;
  border-radius: 12px;
  box-shadow: 0 10px 35px #173e3533;
  max-height: calc(100% - 40px);
  overflow: auto;
  animation: preview-in 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}
#preview-close {
  position: absolute;
  right: 5px;
  top: 5px;
  border: 0;
  background: none;
  font-size: 22px;
  padding: 2px 9px;
}
#preview-content > img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  float: left;
  margin: 0 12px 10px 0;
}
#preview-content h2 {
  font:
    600 16px "Public Sans",
    sans-serif;
  letter-spacing: -0.02em;
  margin: 0 18px 6px 0;
  overflow-wrap: anywhere;
}
#preview-content p {
  clear: both;
  font-size: 13px;
  line-height: 1.65;
  margin: 12px 0;
  color: #36594d;
}
#preview-content small {
  font-size: 11px;
  display: block;
  color: #466457;
}
#preview-content .visit {
  display: block;
  background: var(--ink);
  color: white;
  border-radius: 6px;
  padding: 11px 14px;
  font-size: 13px;
  margin-top: 14px;
  text-align: center;
}
#preview-content .details-link {
  display: block;
  text-align: center;
  margin-top: 10px;
  font-size: 12px;
  text-decoration: underline;
}
#listing-panel {
  position: absolute;
  inset: 25px 0 0 auto;
  width: min(390px, 100%);
  background: #f5f9f4;
  z-index: 7;
  overflow: auto;
  padding: 18px;
  box-shadow: 0 10px 32px #173e3526;
}
.listing-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.listing-heading h2 {
  font:
    600 19px "Public Sans",
    sans-serif;
  margin: 0;
  letter-spacing: -0.02em;
}
.atlas #results {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 16px 0;
}
.atlas #results .product-card {
  padding: 15px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  display: block;
}
.atlas #results .product-card img {
  width: 36px;
  height: 36px;
  float: left;
  margin-right: 12px;
}
.atlas #results .product-card h3 {
  font-size: 14px;
  margin: 0 0 6px;
  font-weight: 600;
}
.atlas #results .product-card p {
  font-size: 12px;
  line-height: 1.5;
  margin: 5px 0;
  color: var(--muted);
}
.atlas #results small {
  font-size: 11px;
}
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.atlas-page .staging-banner {
  position: relative;
  min-height: 28px;
  padding: 3px 2.35%;
  border: 0;
  box-shadow: none;
  background: #f88d2c;
  color: #172e24;
  font:
    600 11px "Public Sans",
    sans-serif;
  gap: 12px;
  flex: none;
  z-index: 20;
}
.atlas-page .staging-banner span {
  line-height: 1.3;
}
.atlas-page .staging-banner button {
  font-size: 11px;
  padding: 2px 8px;
  min-height: 22px;
  color: #172e24;
  background: transparent;
  border: 1px solid #784512;
}
body.atlas-page {
  box-shadow: none;
}
.atlas-page dialog {
  font-family: "Public Sans", sans-serif;
  background: #f2f7ef;
}
.atlas-page dialog h2 {
  font-family: inherit;
  font-weight: 600;
  letter-spacing: -0.02em;
}
@keyframes preview-in {
  from {
    transform: translateY(5px);
    opacity: 0.7;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@media (max-width: 1000px) {
  .atlas-tagline {
    display: none;
  }
  .atlas-header {
    gap: 20px;
  }
  .atlas-toolbar {
    gap: 10px;
  }
  .atlas-search {
    width: 280px;
  }
  .atlas-bottom {
    gap: 10px;
  }
  #readable {
    font-size: 11px;
    padding: 8px;
  }
  #position {
    display: none;
  }
  .zoom-controls {
    gap: 3px;
  }
}
@media (max-width: 700px) {
  .atlas-header {
    padding: 10px 14px;
    min-height: 55px;
    gap: 12px;
  }
  .atlas-header .brand {
    font-size: 22px;
  }
  .atlas-header nav {
    margin-left: auto;
    gap: 12px;
    font-size: 11px;
  }
  .atlas-header nav > a[href="/pricing"] {
    display: none;
  }
  .atlas-header nav .claim {
    display: block;
    padding: 8px;
    font-size: 11px;
  }
  .atlas-header .brand strong {
    font-size: 12px;
  }
  .atlas {
    padding: 0 12px;
  }
  .atlas-toolbar {
    min-height: 88px;
    gap: 8px;
    flex-wrap: wrap;
    padding: 10px 0;
  }
  .atlas-search {
    width: calc(100% - 105px);
    flex: 1;
    min-width: 0;
    height: 36px;
  }
  #categories {
    order: 3;
    width: 100%;
  }
  #categories button {
    min-height: 30px;
    padding: 5px 11px;
    font-size: 11px;
  }
  #list-toggle {
    font-size: 11px;
    padding: 8px;
  }
  #column-ruler {
    height: 21px;
  }
  .atlas-frame {
    min-height: 100px;
  }
  .atlas-bottom {
    min-height: 98px;
    padding: 9px 0;
    flex-wrap: wrap;
    gap: 8px;
  }
  .wall-summary {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px 10px;
    font-size: 11px;
  }
  .wall-summary strong {
    font-size: 11px;
  }
  .legal-links {
    display: none;
  }
  .zoom-controls {
    flex: 1;
  }
  .zoom-controls button {
    padding: 7px 9px;
    min-height: 36px;
    font-size: 11px;
  }
  .zoom-controls output {
    font-size: 11px;
    min-width: 32px;
  }
  #readable {
    display: none;
  }
  .atlas #overview {
    width: 88px;
    height: 32px;
  }
  .atlas-page .staging-banner {
    font-size: 11px;
    padding: 3px 12px;
    gap: 6px;
  }
  .atlas-page .staging-banner button {
    font-size: 11px;
    white-space: nowrap;
  }
  .atlas #empty {
    left: 12px;
    width: calc(100% - 24px);
    padding: 20px;
    top: 40px;
  }
  #product-preview {
    left: 8px !important;
    right: 8px;
    bottom: 8px;
    top: auto !important;
    width: auto;
    max-height: 65%;
    padding: 15px;
  }
  #preview-content p {
    margin: 8px 0;
  }
  #preview-content .details-link {
    margin-top: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #product-preview {
    animation: none;
  }
}

@media (max-height: 600px) {
  body.atlas-page {
    height: auto;
    min-height: 100dvh;
    overflow: auto;
  }
  .atlas {
    flex: none;
  }
  .atlas-frame {
    flex: none;
    height: max(240px, calc(100dvh - 245px));
  }
  .atlas-bottom {
    min-height: 76px;
  }
}

.atlas-page .privacy {
  color: #45645b;
  font-size: 12px;
}
.atlas .sr-only {
  letter-spacing: normal;
}

.atlas-frame {
  padding-left: 24px;
}
#row-ruler {
  position: absolute;
  left: 0;
  top: 25px;
  bottom: 0;
  width: 24px;
  overflow: hidden;
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
#row-ruler span {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
}
#position {
  width: 115px;
}
.ui-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  display: block;
}
@media (max-width: 700px) {
  #row-ruler {
    top: 21px;
  }
  #position {
    display: block;
    width: auto;
    font-size: 11px;
    margin-left: auto;
  }
  .atlas-bottom {
    gap: 6px;
  }
  .atlas-frame {
    padding-left: 20px;
  }
  #row-ruler {
    width: 20px;
  }
  #row-ruler span {
    width: 18px;
  }
  .wall-summary {
    font-size: 11px;
  }
}

/* Sticker mural: the canvas is the collection, not the capacity ledger. */
#column-ruler,
#row-ruler {
  display: none;
}
.atlas .viewport {
  margin-left: 0;
  border: 0;
}
.atlas #grid {
  background-image: none;
  position: relative;
}
.atlas .tile,
.atlas .tile.premium,
.atlas #grid.tiny .tile {
  background: white;
  border: 0;
  border-radius: 22%;

  padding: calc(var(--cell) * 0.065);
  gap: 0;
  box-shadow:
    0 3px 5px #173e3526,
    0 8px 18px #173e3512;
  transform: rotate(var(--tilt));
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}
.atlas .tile:nth-child(3n) {
  border-radius: 38%;
}
.atlas .tile:nth-child(5n) {
  border-radius: 48% 32% 42% 30%;
}
.atlas .tile img,
.atlas #grid.tiny .tile img {
  width: 100%;
  height: 100%;
  flex: none;
  object-fit: contain;
}
.atlas .tile span {
  display: none;
}
.atlas .tile:has(img[hidden]) span {
  display: block;
  white-space: normal;
  text-align: center;
}
.atlas .tile:hover,
.atlas .tile:focus-visible,
.atlas .tile[aria-expanded="true"] {
  transform: rotate(0deg);
  background: white;
  outline: 2px solid var(--ink);
  outline-offset: 4px;
  box-shadow: 0 6px 12px #173e3533;
}
#sticker-sample {
  padding: 20px;
  text-align: center;
  background: #edf4ee;
}
#sticker-sample img {
  display: block;
  width: 90px;
  height: 90px;
  object-fit: contain;
  padding: 9px;
  margin: 0 auto 12px;
  background: white;
  border-radius: 22%;
  transform: rotate(-4deg);
  box-shadow: 0 3px 6px #173e3526;
}
@media (prefers-reduced-motion: reduce) {
  .atlas .tile {
    transition: none;
  }
}

.atlas-frame {
  padding-left: 0;
}
/* The invitation recedes as real listings grow; silhouettes are decorative. */
.growth-invitation {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 22px 0 12px;
  flex: none;
}
.growth-invitation[hidden] {
  display: none;
}
.growth-copy h2 {
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 8px;
  font-weight: 600;
}
.growth-copy p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}
.growth-invitation .primary {
  margin-left: auto;
  white-space: nowrap;
  background: var(--ink);
  color: white;
}
.growth-silhouettes {
  display: flex;
  align-items: center;
  width: 160px;
  flex: none;
  pointer-events: none;
}
.growth-silhouettes i {
  width: 62px;
  height: 60px;
  border: 1px dashed #799887;
  border-radius: 18px;
  transform: rotate(-12deg);
}
.growth-silhouettes i:nth-child(2) {
  margin-left: -8px;
  opacity: 0.45;
  border-radius: 50%;
  transform: translateY(-5px);
}
.growth-silhouettes i:nth-child(3) {
  margin-left: -8px;
  opacity: 0.18;
  transform: rotate(14deg);
}
.growth-invitation.compact {
  padding: 8px 0;
}
.growth-invitation.compact h2 {
  font-size: 16px;
  margin: 0;
}
.growth-invitation.compact p,
.growth-invitation.compact .growth-silhouettes {
  display: none;
}
@media (max-width: 700px) {
  .growth-invitation {
    gap: 12px;
    padding: 16px 0 8px;
    flex-wrap: wrap;
  }
  .growth-copy {
    flex: 1;
  }
  .growth-copy p {
    font-size: 12px;
    line-height: 1.5;
  }
  .growth-silhouettes {
    width: 76px;
  }
  .growth-silhouettes i {
    width: 30px;
    height: 35px;
    border-radius: 10px;
  }
  .growth-invitation .primary {
    margin-left: 0;
  }
  .growth-invitation.compact {
    flex-wrap: nowrap;
  }
  .growth-invitation.compact h2 {
    font-size: 13px;
  }
  .growth-invitation.compact .primary {
    white-space: normal;
  }
}
.growth-silhouettes i {
  background: transparent;
}
@media (max-width: 700px) {
  .growth-invitation:not(.compact) .growth-copy {
    flex: 1 0 calc(100% - 90px);
  }
  .growth-invitation:not(.compact) .primary {
    flex: 0 0 auto;
  }
}

/* The mural is the page; secondary tools live in one explicit drawer. */
.atlas-page .atlas {
  position: relative;
  padding: 0;
  min-height: 0;
}
.atlas-page .atlas-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 25;
  min-height: 0;
  padding: 20px 24px;
  border: 0;
  background: transparent;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}
.atlas-page .atlas-header .brand {
  font-size: 20px;
  pointer-events: auto;
}
.atlas-page .atlas-header nav {
  display: flex;
  gap: 8px;
  pointer-events: auto;
}
.atlas-page .atlas-header button {
  min-height: 42px;
  border-radius: 24px;
  padding: 10px 17px;
  box-shadow: 0 2px 10px #173e350a;
}
.atlas-page .atlas-frame {
  flex: 1;
  width: 100%;
  min-height: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
}
.atlas-page #growth-invitation {
  display: none;
}
.atlas-page #wall-menu {
  position: absolute;
  top: 76px;
  right: 24px;
  z-index: 30;
  width: min(360px, calc(100% - 32px));
  max-height: calc(100% - 96px);
  overflow: auto;
  padding: 20px;
  background: #f8fbf8;
  border: 1px solid #d8e4da;
  border-radius: 18px;
  box-shadow: 0 12px 38px #173e3517;
}
.atlas-page #wall-menu[hidden] {
  display: none;
}
.wall-menu-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.wall-menu-heading h2 {
  font-size: 18px;
  margin: 0;
}
.wall-menu-links {
  display: flex;
  gap: 24px;
  font-size: 14px;
  margin-bottom: 20px;
}
.atlas-page #wall-menu .atlas-toolbar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  min-height: 0;
  padding: 0;
}
.atlas-page #wall-menu .atlas-search {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.atlas-page #wall-menu #categories {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.atlas-page #wall-menu .atlas-bottom {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  padding: 20px 0 0;
  min-height: 0;
  border: 0;
}
.atlas-page #wall-menu .wall-summary {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.atlas-page #wall-menu #wall-help {
  display: none;
}
.atlas-page #overview,
.atlas-page #position {
  display: none;
}
.atlas-page #listing-panel {
  top: 76px;
}
@media (max-width: 700px) {
  .atlas-page .atlas-header {
    padding: 16px;
    gap: 12px;
  }
  .atlas-page .atlas-header .brand {
    font-size: 17px;
  }
  .atlas-page .atlas-header nav {
    gap: 6px;
  }
  .atlas-page .atlas-header button {
    font-size: 12px;
    padding: 9px 12px;
  }
  .atlas-page #wall-menu {
    top: 70px;
    right: 16px;
  }
}
