@media (min-width: 941px) {
  body.desktop-atlas {
    --atlas-orange: #ff801f;
    --atlas-ink: #151d22;
    --atlas-paper: #fbf6eb;
    --atlas-border: #dcd1be;
    --atlas-side: clamp(270px, 24vw, 392px);
    --green: #9b410f;
    background: #10171b;
    height: 100dvh;
  }

  body.desktop-atlas:has(#ft-desktop-rail) {
    display: flex; flex-direction: column; min-height: 0; height: 100dvh;
    background: var(--ft-cream, #faf6ed);
  }
  body.desktop-atlas .atlas-head { display: none; }
  body.desktop-atlas #workspace { min-width: 0; width: 100%; padding: 0; margin: 0; }
  body.desktop-atlas .desktop-map-toolbar {
    position: relative; z-index: 10; flex: none;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    min-height: 53px; padding: 8px 15px;
    background: #10171b; color: #faf6ee; border-bottom: 1px solid #343d42;
  }
  .desktop-map-toolbar h1, .desktop-map-toolbar #find-city > label {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap;
  }
  .desktop-map-toolbar #find-city { position: relative; width: min(330px, 52%); margin: 0; }
  .desktop-map-toolbar .city-search-row {
    display: flex; align-items: center; gap: 7px; margin: 0; padding: 2px 3px 2px 9px;
    border: 1px solid #40494e; border-radius: 6px; background: #1a2125;
  }
  .desktop-map-toolbar .atlas-city-icon { width: 17px; height: 17px; flex: none; color: #ff913f; }
  .desktop-map-toolbar .city-search-row input {
    flex: 1; min-width: 0; min-height: 28px; padding: 2px; border: 0;
    background: transparent; color: #fff8ee; font-size: .83rem;
  }
  .desktop-map-toolbar input::placeholder { color: #ced2cf; opacity: 1; }
  .desktop-map-toolbar .city-search-row button {
    padding: 4px 11px; min-height: 27px; background: #34393a; color: white;
    border: 0; border-radius: 4px; font-size: .77rem;
  }
  .desktop-map-toolbar #search-choices,
  .desktop-map-toolbar #map-search-feedback,
  .desktop-map-toolbar #map-area-preview {
    position: absolute; z-index: 1; top: calc(100% + 5px); left: 0;
    width: 100%; margin: 0; padding: 9px 10px;
    border: 1px solid var(--atlas-border); border-radius: 6px;
    box-shadow: 0 7px 18px #0710153b;
    background: #fffaf0; color: #352d25; font-size: .82rem;
  }
  .desktop-map-toolbar #search-choices { z-index: 2; }
  .desktop-map-toolbar #search-choices :is(a,button) { color: #8f3707; }
  .atlas-toolbar-controls { display: flex; align-items: center; gap: 7px; }
  .desktop-map-toolbar #toggle-panel, .atlas-layers > summary {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    min-height: 33px; padding: 4px 11px; border: 1px solid #414b50;
    background: #192125; color: #f9f5ed; border-radius: 5px;
    font: 700 .76rem/1.2 var(--body-font); cursor: pointer;
  }
  .desktop-map-toolbar #toggle-panel[aria-expanded=true], .atlas-layers[open] > summary {
    border-color: #ef8737; color: #ffa052;
  }
  .desktop-map-toolbar #toggle-panel .lines {
    width: 12px; height: 12px; font-size: 0; background: currentColor; color: inherit;
    clip-path: polygon(0 9%,100% 9%,61% 54%,61% 88%,37% 100%,37% 54%);
  }
  .atlas-layers { position: relative; }
  .atlas-layers > summary { list-style: none; }
  .atlas-layers > summary::-webkit-details-marker { display: none; }
  .atlas-layers > summary svg { width: 15px; height: 15px; }
  .atlas-layers .layer-choice {
    position: absolute; z-index: 1; right: 0; top: calc(100% + 6px);
    padding: 4px; background: #182127; border-color: #414c50;
  }
  .atlas-layers .layer-choice button { color: #f8f2ea; min-height: 32px; }
  .atlas-layers .layer-choice button[aria-pressed=true] { background: #9a420e; color: white; }

  body.desktop-atlas #workspace #stage { order: 1; background: #0b151d; }
  body.desktop-atlas #workspace #map-surface { isolation: isolate; background: #0b151d; }
  /* Leaflet's translated map pane contains both USGS tiles and the local terrain overview.
     Tint their composited output, leaving the geographic labels and orange pins on top. */
  body.desktop-atlas #workspace #map-surface::before {
    content: ''; position: absolute; inset: 0; z-index: 425; pointer-events: none;
    background: rgb(3 15 23 / 79%);
  }
  body.desktop-atlas #workspace #map-surface[data-layer=streets] .leaflet-tile-pane { opacity: .86; }
  body.desktop-atlas #workspace #map-surface[data-layer=streets] .leaflet-tile-container {
    filter: grayscale(1) invert(1) contrast(1.15) brightness(.8);
  }
  body.desktop-atlas #workspace #map-surface[data-layer=streets] .leaflet-image-layer {
    filter: grayscale(1) contrast(1.16) brightness(.73);
  }
  body.desktop-atlas #workspace #map-surface[data-layer=satellite] .leaflet-tile-pane {
    filter: saturate(.62) brightness(.8);
  }
  body.desktop-atlas #stage .map-top .top-row,
  body.desktop-atlas #stage .quick-filters { display: none; }
  body.desktop-atlas #stage .map-top { left: 12px; right: 12px; top: 11px; }
  body.desktop-atlas #stage .map-bottom { right: 12px; left: 12px; bottom: 12px; }
  body.desktop-atlas #stage .map-tools { justify-content: flex-end; }
  body.desktop-atlas #stage .map-navigation {
    grid-template-columns: repeat(3,29px); gap: 1px; padding: 3px;
    border: 1px solid #536069; border-radius: 6px;
    background: #0e171de6; box-shadow: 0 2px 10px #0006;
  }
  body.desktop-atlas #stage .map-navigation button {
    width: 29px; min-height: 28px; padding: 0; border: 0; color: #fffaf1;
    background: #172128; border-radius: 2px; font: 600 1rem/1 var(--body-font);
  }
  body.desktop-atlas #tile-status { background: #151d22e8; color: #e4d9cd; }
  body.desktop-atlas #travel-scope { background: #151d22ec; border: 1px solid #596164; color: #fff4e9; }
  body.desktop-atlas #travel-scope :is(a,button) { color: #ff9d51; }

  body.desktop-atlas #workspace #markers .dot {
    min-width: 25px; min-height: 25px; padding: 2px 4px; border: 2px solid #ffe0b8;
    color: #fffaf0; background: #ce560e; border-radius: 50%;
    box-shadow: 0 0 0 2px #ff791a, 0 0 9px 3px #ff73079e;
    font: 750 .71rem/1 var(--body-font); font-variant-numeric: tabular-nums;
  }
  body.desktop-atlas #markers .dot svg { display: block; width: 14px; height: 14px; stroke-width: 2; }
  body.desktop-atlas #markers .dot:not(.multi)::after {
    content: ''; position: absolute; top: calc(100% + 1px); left: calc(50% - 4px);
    border: solid transparent; border-width: 7px 4px 0; border-top-color: #ff941a;
  }
  body.desktop-atlas #workspace #markers .dot.multi {
    min-width: 34px; min-height: 34px; padding: 4px;
    border: 2px solid #ffad57; background: radial-gradient(ellipse at 53% 35%,#81441d,#492615);
    box-shadow: 0 0 0 2px #a95522, 0 0 0 6px #f37a1a25, 0 0 13px 3px #ff780753;
    font-size: .83rem;
  }
  body.desktop-atlas #markers .dot.multi::before {
    content: ''; position: absolute; inset: -6px; border: 1px dotted #ff933cbd; border-radius: 50%;
  }
  body.desktop-atlas #workspace #markers .dot.large {
    min-width: 43px; min-height: 43px; font-size: .92rem; border-color: #ffc37a;
  }
  body.desktop-atlas #workspace #markers .dot.watch { border-style: dashed; }
  body.desktop-atlas #workspace #markers .dot:hover,
  body.desktop-atlas #workspace #markers .dot[aria-pressed=true] {
    z-index: 2; outline: 2px solid #fff9e8; outline-offset: 3px;
  }
  body.desktop-atlas .atlas-marker-key {
    position: absolute; z-index: 2; left: 12px; bottom: 12px; display: grid; gap: 6px;
    padding: 9px 10px; color: #eeeae2; background: #10191ded;
    border: 1px solid #414e54; border-radius: 6px; pointer-events: none; font-size: .69rem;
  }
  .atlas-marker-key span { display: flex; align-items: center; gap: 8px; }
  .atlas-marker-key span::before {
    content: ''; display: inline-block; width: 9px; height: 9px; margin: 0 2px;
    border: 1px solid #ffbc78; border-radius: 100% 100% 100% 0;
    background: #e5762a; transform: rotate(-45deg);
  }
  .atlas-marker-key span:last-child::before {
    border-radius: 50%; transform: none; background: #9b4d17;
    outline: 1px dotted #ffc78a; outline-offset: 2px;
  }

  body.desktop-atlas #map-filters {
    position: absolute; z-index: 6; top: 9px; bottom: 10px; left: 10px;
    width: min(304px,calc(100% - var(--atlas-side) - 24px));
    border: 1px solid #bdb09d; border-radius: 7px; background: var(--atlas-paper);
    box-shadow: 0 10px 26px #0006;
  }
  body.desktop-atlas #map-filters .panel-head { padding-top: 12px; }
  body.desktop-atlas #map-filters .panel-head h2 { font-size: 1.65rem; }
  body.desktop-atlas #map-filters .controls { padding-block: 9px 13px; }
  body.desktop-atlas #map-filters .field + .field { margin-top: 8px; }
  body.desktop-atlas #map-filters .type-choice:has(input:checked) { background: #ffe7cf; }
  body.desktop-atlas #map-filters :is(input,select) { accent-color: #be4c0a; }
  body.desktop-atlas #map-filters .city-list button strong { color: #95400d; }

  .atlas-openings {
    order: 2; display: flex; flex-direction: column; width: var(--atlas-side); flex: none;
    min-width: 0; color: var(--atlas-ink); background: var(--atlas-paper);
    border-left: 1px solid #444b4c;
  }
  .atlas-results-heading { flex: none; padding: 15px 13px 10px; border-bottom: 1px solid var(--atlas-border); }
  .atlas-results-heading h2 { margin: 0; font: 800 clamp(1.35rem,1.65vw,1.65rem)/1 var(--display); text-transform: uppercase; }
  .atlas-results-heading p { margin: 4px 0 0; color: #80502f; font: 650 .76rem/1.25 var(--body-font); }
  .atlas-results-body { min-height: 0; flex: 1; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 9px; }
  .atlas-results-status { margin: 5px 2px 10px; color: #5c5347; font-size: .83rem; }
  .atlas-results-retry { margin-top: 7px; padding: 7px 10px; border: 1px solid var(--atlas-border); border-radius: 4px; }
  .atlas-results-list, body.desktop-atlas #city-quick-results { list-style: none; display: grid; gap: 7px; padding: 0; margin: 0; }
  body.desktop-atlas .atlas-openings .atlas-results-list > li,
  body.desktop-atlas #workspace .atlas-openings #city-quick-results > li {
    position: relative; display: grid; grid-template-columns: 57px minmax(0,1fr) 24px;
    grid-template-rows: auto auto auto; align-items: start; column-gap: 7px;
    padding: 8px; margin: 0; min-width: 0;
    background: #fffaf2; border: 1px solid #ded3c0; border-radius: 6px;
  }
  .atlas-openings .atlas-card-thumb,
  .atlas-openings #city-quick-results li:not(:has(.atlas-card-thumb))::before {
    display: block; content: ''; grid-column: 1; grid-row: 1 / 4; width: 57px; height: 58px;
    background: #d8b88b url('/card-art/waterfront-market.webp') center / cover no-repeat;
    border-radius: 4px;
  }
  .atlas-openings .atlas-card-thumb[data-scene=night] { background-image: url('/card-art/night-market.webp'); }
  .atlas-openings .atlas-card-thumb[data-scene=festival] { background-image: url('/card-art/festival.webp'); }
  .atlas-openings .atlas-card-thumb[data-scene=venue] { background-image: url('/card-art/venue.webp'); }
  body.desktop-atlas .atlas-openings .atlas-results-list h3,
  body.desktop-atlas #workspace .atlas-openings #city-quick-results h3 {
    grid-column: 2; grid-row: 1; margin: 0; min-width: 0; overflow-wrap: anywhere;
    font: 750 .925rem/1.18 var(--body-font); color: var(--atlas-ink);
  }
  body.desktop-atlas .atlas-openings #city-quick-results h3 { grid-column-end: 4; }
  .atlas-openings h3 > :is(button,a) {
    display: inline; font: inherit; color: inherit; text-align: start; padding: 0;
    min-height: auto; border: 0; background: none; overflow-wrap: inherit;
  }
  .atlas-openings h3 > :is(button,a):hover { text-decoration: underline; text-underline-offset: 2px; }
  body.desktop-atlas #workspace .atlas-openings .map-listing-place {
    grid-column: 2 / -1; grid-row: 2; min-width: 0; overflow-wrap: anywhere;
    margin: 3px 0; color: #5b554d; font: 500 .73rem/1.2 var(--body-font);
  }
  .atlas-openings .map-kind {
    grid-column: 2 / -1; grid-row: 3; justify-self: start; align-self: start;
    margin: 0; padding: 2px 5px; color: #32603a; background: #edf3e4;
    border-radius: 3px; font: 700 .66rem/1.18 var(--body-font);
  }
  .atlas-openings .atlas-booking .map-kind { color: #a1440b; background: #ffead5; }
  .atlas-openings .atlas-row-pin {
    grid-column: 3; grid-row: 1; align-self: start; display: grid; place-items: center;
    background: #d95708; color: white; border-radius: 5px; width: 24px; min-height: 24px; padding: 3px;
  }
  .atlas-row-pin svg { width: 15px; height: 15px; }
  .atlas-openings .atlas-results-list .map-card-facts,
  body.desktop-atlas #workspace .atlas-openings #city-quick-results .map-card-facts {
    display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; grid-column: 1 / -1;
    margin: 7px 0 0; padding-top: 6px; border-top: 1px solid #e9ddca;
  }
  body.desktop-atlas .atlas-openings :is(.atlas-results-list,#city-quick-results) .map-card-facts > div {
    min-width: 0; display: block; padding: 0; margin: 0; color: var(--atlas-ink);
    font: 600 .8rem/1.24 var(--body-font);
  }
  body.desktop-atlas .atlas-openings .map-card-facts :is(dt,dd) { margin: 0; overflow-wrap: anywhere; }
  body.desktop-atlas .atlas-openings .map-card-facts dt {
    color: #685e52; font-size: .71rem; font-weight: 700; letter-spacing: .025em; text-transform: uppercase;
  }
  .atlas-openings .map-card-facts .fact-clock :is(dt,dd) { color: #ab430b; }
  .atlas-openings .map-terms { grid-column: 1/3; margin-top: 5px; }
  .atlas-openings .map-terms > summary {
    color: #79553b; cursor: pointer; font: 650 .68rem/1.3 var(--body-font);
  }
  body.desktop-atlas #city-quick-results .map-terms > summary { min-height: 0; }
  .atlas-openings .atlas-results-list > li > a,
  body.desktop-atlas #workspace .atlas-openings #city-quick-results > li > a {
    grid-column: 1 / -1; display: inline-block; width: fit-content; padding: 0; min-height: auto;
    color: #99400e; margin-top: 4px; font: 700 .72rem/1.25 var(--body-font); text-underline-offset: 2px;
  }
  .atlas-openings .atlas-browse-link {
    flex: none; display: flex; justify-content: space-between; align-items: center;
    margin: 5px 9px 10px; padding: 8px 10px; border: 1px solid #9e9384;
    border-radius: 5px; color: #1b2427; text-decoration: none; font-weight: 750; font-size: .8rem;
  }
  .atlas-browse-link::after { content: '→'; color: #bd4a0a; font-size: 1rem; }
  .atlas-openings .atlas-browse-link:hover { border-color: #aa450d; color: #963b08; }
  body.desktop-atlas .atlas-openings .atlas-results-list .atlas-watch-row {
    grid-template-columns: minmax(0,1fr) auto; align-items: center; padding: 9px;
  }
  .atlas-watch-row button { width: fit-content; padding: 0; text-align: start; }
  .atlas-watch-count { color: #a4420a; font-weight: 700; }
  body.desktop-atlas #workspace .atlas-openings #selection {
    position: relative; inset: auto; border: 0; max-height: none; width: 100%; max-width: none;
    overflow: visible; background: transparent; border-radius: 0; padding: 0; box-shadow: none;
  }
  .atlas-openings #selection h2 { font-size: 1.45rem; line-height: 1.1; padding-right: 31px; }
  .atlas-openings #selection .dismiss { min-width: 30px; min-height: 30px; color: #685847; right: 0; top: 0; }
  .atlas-openings #selection #city-breakdown { margin: 5px 0 10px; color: #665747; }
  .atlas-openings #selection #city-closeup { color: #a44712; }
  .atlas-openings #near-form { gap: 6px; grid-template-columns: minmax(0,.74fr) minmax(0,1fr); }
  .atlas-openings #near-form .action { background: #c65312; color: #fffaf4; font-size: .76rem; }
  .atlas-openings #near-form select { font-size: .76rem; }
  body.desktop-atlas :is(.desktop-map-toolbar,.atlas-openings,#map-filters) :is(button,a,input,summary,select):focus-visible {
    outline: 2px solid #cf540e; outline-offset: 2px;
  }
}
