/* 世界地图使用 VI 手册的固定浅色、地图四态与字号体系。 */
.world-atlas {
  --atlas-paper: #fffcf4;
  --atlas-surface: #fffdf7;
  --atlas-tint: #f4efe3;
  --atlas-ink: #302e28;
  --atlas-muted: #625f52;
  --atlas-rule: #d9d2c3;
  --atlas-action: #a64031;
  --atlas-sea: #e7f1f3;
  --atlas-sea-line: #c5d6d9;
  --atlas-general: #a2c6ac;
  --atlas-special: #e6c17d;
  --atlas-none: #d0d7d9;
  --atlas-uncovered: #f5f6f2;
  --atlas-serif: "Songti SC", "Noto Serif SC", "STSong", serif;
  color: var(--atlas-ink);
  color-scheme: light;
  font: 400 16px/1.5 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  min-width: 0;
}

.world-atlas *,
.world-atlas *::before,
.world-atlas *::after {
  box-sizing: border-box;
}

.world-atlas [hidden] { display: none !important; }
.world-atlas :is(h2, h3, p) { margin: 0; }
.world-atlas button,
.world-atlas select { font-family: inherit; }
.world-atlas button:not(:disabled),
.world-atlas select { cursor: pointer; }
.world-atlas button:disabled { opacity: .53; cursor: default; }
.world-atlas :is(button, select, a, [tabindex]):focus-visible {
  outline: 3px solid #974235;
  outline-offset: 2px;
}

.world-atlas-header {
  display: grid;
  gap: 14px;
  align-items: end;
  margin: 0 0 14px;
}

.world-atlas .atlas-heading-copy h2 {
  color: var(--atlas-ink);
  font: 650 clamp(31px, 3.2vw, 46px)/1.14 var(--atlas-serif);
  letter-spacing: -.035em;
}

.world-atlas .atlas-heading-copy p {
  margin-top: 6px;
  color: var(--atlas-muted);
  font-size: 14px;
  line-height: 1.5;
}

.world-atlas-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
  min-width: 0;
}

.world-atlas .atlas-place-picker {
  position: relative;
  display: grid;
  gap: 4px;
  min-width: 0;
  color: var(--atlas-muted);
  font-size: 12px;
  font-weight: 550;
}

.world-atlas .atlas-place-picker select,
.world-atlas .atlas-month-button {
  box-sizing: border-box;
  min-height: 44px;
  max-width: 100%;
  margin: 0;
  padding: 9px 13px;
  border: 1px solid var(--atlas-rule);
  border-radius: 4px;
  background: var(--atlas-surface);
  color: var(--atlas-ink);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 550;
}

.world-atlas .atlas-place-picker select {
  appearance: auto;
  width: 100%;
  min-width: 0;
  padding-inline-end: 5px;
  text-overflow: ellipsis;
}

.world-atlas .atlas-month-button {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  color: var(--atlas-action);
  border-color: #c99b8d;
  white-space: nowrap;
}

.world-atlas .atlas-month-button svg { width: 18px; height: 18px; }

.world-atlas-layout { display: grid; min-width: 0; }
.world-atlas-main { position: relative; min-width: 0; }
.atlas-continent-index { display: none; }
.world-atlas .world-atlas-canvas {
  position: relative;
  isolation: isolate;
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: clamp(258px, 37svh, 355px);
  overflow: hidden;
  border: 1px solid var(--atlas-sea-line);
  border-radius: 4px 4px 0 0;
  background: var(--atlas-sea);
}

.world-atlas #world-map {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  background: transparent;
  cursor: grab;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.world-atlas #world-map:active { cursor: grabbing; }
.world-atlas .atlas-land {
  stroke: #899d9b;
  stroke-width: .6px;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  cursor: pointer;
}
.world-atlas .atlas-land[data-status="general"] { fill: var(--atlas-general); }
.world-atlas .atlas-land[data-status="special"] { fill: var(--atlas-special); }
.world-atlas .atlas-land[data-status="none"] { fill: var(--atlas-none); }
.world-atlas .atlas-land[data-status="uncovered"] { fill: var(--atlas-uncovered); }
.world-atlas .atlas-land:is(.is-focused, :focus-visible) {
  outline: 0;
  stroke: var(--atlas-action);
  stroke-width: 2px;
}
.world-atlas :is(.atlas-land-label, .atlas-continent-label text, .atlas-mark-label, .atlas-cluster-count) {
  pointer-events: none;
  user-select: none;
}
.world-atlas .atlas-land-label,
.world-atlas .atlas-mark-label {
  fill: #314b49;
  paint-order: stroke;
  stroke: #f2f6ee;
  stroke-linejoin: round;
  stroke-width: 2.2px;
  font-weight: 600;
  font-size: 12px;
}
.world-atlas .atlas-continent-label { cursor: pointer; }
.world-atlas .atlas-continent-label text {
  font-family: var(--atlas-serif);
  font-weight: 700;
  font-size: clamp(14px, 1.45vw, 22px);
  fill: #294742;
  paint-order: stroke;
  stroke: #f1f4ea;
  stroke-width: 2px;
  stroke-linejoin: round;
}
.world-atlas .atlas-dot,
.world-atlas .atlas-cluster { cursor: pointer; --atlas-pin: #456f50; }
.world-atlas :is(.atlas-dot, .atlas-cluster)[data-status="special"] { --atlas-pin: #8a6226; }
.world-atlas :is(.atlas-dot, .atlas-cluster)[data-status="none"] { --atlas-pin: #536c79; }
.world-atlas :is(.atlas-dot-core, .atlas-cluster-core) {
  fill: var(--atlas-pin);
  stroke: var(--atlas-surface);
  stroke-width: 1.7px;
}
.world-atlas .is-selected :is(.atlas-dot-core, .atlas-cluster-core) {
  stroke: var(--atlas-action);
  stroke-width: 3px;
}
.world-atlas :is(.atlas-dot, .atlas-cluster):focus-visible { outline: 0; }
.world-atlas .atlas-dot:focus-visible .atlas-dot-core,
.world-atlas .atlas-cluster:focus-visible .atlas-cluster-core {
  stroke: var(--atlas-action);
  stroke-width: 3px;
  vector-effect: non-scaling-stroke;
}
.world-atlas .atlas-cluster-count { fill: #fffdf7; font-size: 12px; font-weight: 700; }
.world-atlas-controls {
  position: absolute;
  z-index: 1;
  top: 10px;
  left: 10px;
  display: inline-flex;
  overflow: hidden;
  border: 1px solid #a8bbb8;
  border-radius: 4px;
  background: var(--atlas-surface);
  box-shadow: 0 2px 5px rgb(51 76 75 / 10%);
}
.world-atlas-controls button,
.world-atlas .atlas-list-jump {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 5px 10px;
  border: 0;
  border-radius: 0;
  color: #344d49;
  background: var(--atlas-surface);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 600;
}
.world-atlas-controls button + button { border-inline-start: 1px solid #d1dcd9; }
.world-atlas-controls button:focus-visible { z-index: 1; outline-offset: -3px; }
.world-atlas-controls :is(img, svg),
.world-atlas .atlas-list-jump svg { width: 18px; height: 18px; }
.world-atlas .atlas-list-jump {
  position: absolute;
  z-index: 1;
  right: 10px;
  bottom: 10px;
  border: 1px solid #a8bbb8;
  border-radius: 4px;
}
.atlas-map-status {
  position: absolute;
  z-index: 1;
  inset: 50% auto auto 50%;
  max-width: calc(100% - 24px);
  width: max-content;
  transform: translate(-50%, -50%);
  border: 1px solid var(--atlas-sea-line);
  border-radius: 4px;
  background: var(--atlas-surface);
  padding: 10px 14px;
  color: var(--atlas-ink);
  font-size: 13px;
}
.atlas-map-status:empty { display: none; }

.world-atlas-map-footer {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  background: #f4f8f7;
  border: 1px solid var(--atlas-sea-line);
  border-top: 0;
  min-width: 0;
  font-size: 12px;
}
.world-atlas-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: center;
  color: #40514c;
  font-size: 12px;
  line-height: 1.5;
}
.world-atlas-legend span { display: inline-flex; align-items: center; gap: 5px; }
.world-atlas-legend i {
  width: 12px;
  height: 12px;
  flex: none;
  border: 1px solid #80958d;
  border-radius: 2px;
}
.world-atlas-legend .is-general { background: var(--atlas-general); }
.world-atlas-legend .is-special { background: var(--atlas-special); }
.world-atlas-legend .is-none { background: var(--atlas-none); }
.world-atlas-legend .is-uncovered { background: var(--atlas-uncovered); }
.world-atlas-map-footer small { color: var(--atlas-muted); font-size: 11px; }
.world-atlas-map-footer a { color: inherit; text-underline-offset: 2px; }

.world-atlas-panel {
  position: relative;
  min-width: 0;
  overflow-wrap: anywhere;
  border: 1px solid var(--atlas-rule);
  border-top: 0;
  border-radius: 0 0 4px 4px;
  background: var(--atlas-paper);
  scroll-margin-block-start: 12px;
}
.world-atlas-panel svg { width: 17px; height: 17px; flex: none; }
.world-atlas-panel .atlas-panel-head,
.world-atlas-panel .world-atlas-preview { padding: 18px; }
.world-atlas-panel .atlas-panel-head { padding-bottom: 12px; }
.atlas-panel-eyeline,
.world-atlas-preview > small {
  display: block;
  color: var(--atlas-action);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 650;
}
.world-atlas-panel h3 {
  color: var(--atlas-ink);
  font-family: var(--atlas-serif);
  font-size: clamp(25px, 2.25vw, 34px);
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -.02em;
}
.world-atlas-panel .atlas-panel-head > small,
.world-atlas-preview p { color: var(--atlas-muted); font-size: 14px; line-height: 1.6; }
.atlas-panel-head > :not(:first-child),
.world-atlas-preview > :not(:first-child) { margin-block-start: 6px; }
.world-atlas-panel .atlas-panel-handle,
.world-atlas .atlas-panel-back,
.world-atlas .atlas-more,
.world-atlas .atlas-preview-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  margin: 0;
  border: 0;
  border-radius: 4px;
  padding: 8px 12px;
  color: var(--atlas-action);
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}
.world-atlas-panel .atlas-panel-handle {
  float: right;
  margin: 4px 6px 0 0;
  color: var(--atlas-muted);
  font-size: 12px;
}
.world-atlas-panel .atlas-panel-back { margin: 6px 6px 0; }
.world-atlas .world-atlas-results { display: grid; clear: both; margin: 0 18px; }
.world-atlas .world-atlas-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 62px;
  border: 0;
  border-top: 1px solid var(--atlas-rule);
  border-radius: 0;
  padding: 10px 0;
  background: transparent;
  color: var(--atlas-ink);
  text-align: start;
  white-space: normal;
}
.atlas-result-copy { min-width: 0; }
.atlas-result-copy strong,
.atlas-result-copy small { display: block; }
.atlas-result-copy strong { font: 650 17px/1.4 var(--atlas-serif); }
.atlas-result-copy small { margin-top: 3px; color: var(--atlas-muted); font-size: 12px; font-weight: 400; line-height: 1.5; }
.atlas-result-status {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  width: fit-content;
  padding: 3px 6px;
  border-radius: 3px;
  color: #485651;
  background: #e7eae6;
  font-size: 11px;
  line-height: 1.55;
  font-weight: 600;
}
.atlas-result-status[data-status="general"] { color: #374f3c; background: #dfe8d7; }
.atlas-result-status[data-status="special"] { color: #694d1e; background: #f5e8c8; }
.atlas-result-status[data-status="uncovered"] { background: #efefe9; }
.world-atlas .atlas-more { margin: 4px 6px; }
.world-atlas .atlas-preview-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.world-atlas .atlas-preview-actions button { border: 1px solid var(--atlas-rule); padding-inline: 14px; }
.world-atlas .atlas-preview-actions .atlas-open-detail {
  border-color: var(--atlas-action);
  color: #fffdf7;
  background: var(--atlas-action);
}
.world-atlas .world-atlas-preview .atlas-window {
  padding-block: 9px;
  border-block-start: 1px solid var(--atlas-rule);
  margin-top: 13px;
}
.world-atlas-preview .atlas-window b {
  margin-inline-end: 6px;
  color: var(--atlas-ink);
  font-size: 12px;
}
.world-atlas .atlas-empty { padding: 2px 18px 6px; color: var(--atlas-muted); font-size: 14px; }
.world-atlas .atlas-preview-photo { margin: 16px 0 0; }
.world-atlas .atlas-preview-photo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 178px;
  object-fit: cover;
  aspect-ratio: 2.1;
  border-radius: 4px;
}
.world-atlas .atlas-preview-photo figcaption {
  padding-block-start: 5px;
  color: var(--atlas-muted);
  font-size: 11px;
  line-height: 1.5;
}
.world-atlas .atlas-preview-photo a { color: inherit; text-underline-offset: 2px; }

@media (hover: hover) {
  .world-atlas .atlas-land:hover { stroke: #7a473d; stroke-width: 1.5px; }
  .world-atlas :is(.world-atlas-controls button, .atlas-list-jump):hover { background: #eef3ef; }
  .world-atlas :is(.atlas-place-picker select, .atlas-month-button, .atlas-save):hover { border-color: var(--atlas-action); }
  .world-atlas :is(.world-atlas-result, .atlas-panel-back, .atlas-more, .atlas-panel-handle):hover { background: var(--atlas-tint); }
  .world-atlas .atlas-open-detail:hover { background: #8c372a; }
}
@media (prefers-reduced-motion: no-preference) {
  .world-atlas button:active:not(:disabled) { transform: translateY(1px); }
}

@media (max-width: 599px) {
  .world-atlas-header {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "heading month" "picker picker";
    align-items: start;
    gap: 10px;
  }
  .world-atlas .atlas-heading-copy { grid-area: heading; }
  .world-atlas .atlas-heading-copy p { font-size: 12px; }
  .world-atlas-toolbar { display: contents; }
  .world-atlas .atlas-month-button { grid-area: month; }
  .world-atlas .atlas-place-picker {
    grid-area: picker;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 9px;
  }
  .world-atlas .world-atlas-canvas { height: clamp(292px, 46svh, 438px); }
  .world-atlas-layout:has(.world-atlas-panel[data-mode="preview"]:not(.is-collapsed)) .world-atlas-canvas {
    height: clamp(190px, 31svh, 292px);
  }
}

@media (min-width: 600px) {
  .world-atlas-header { grid-template-columns: minmax(0, 1fr) auto; gap: 18px; margin-bottom: 18px; }
  .world-atlas-toolbar { grid-template-columns: minmax(155px, 210px) auto; }
  .world-atlas .world-atlas-canvas { height: clamp(330px, 50svh, 520px); }
  .world-atlas-map-footer { padding: 10px 15px; }
  .world-atlas .world-atlas-results { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 22px; }
}

@media (max-width: 899px) {
  .world-atlas[data-overview="true"] .world-atlas-canvas {
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 1.74;
    border-bottom: 0;
  }
  .world-atlas[data-overview="true"] .atlas-control-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 2px 8px;
    border: 1px solid var(--atlas-sea-line);
    background: #f4f8f7;
  }
  .world-atlas[data-overview="true"] :is(.world-atlas-controls, .atlas-list-jump) {
    position: static;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .world-atlas[data-overview="true"] .world-atlas-controls button {
    padding: 6px 8px;
    background: transparent;
  }
  .world-atlas[data-overview="true"] .world-atlas-controls button + button { border: 0; }
  .world-atlas[data-overview="true"] .atlas-list-jump { text-decoration: underline; text-underline-offset: 4px; }
  .world-atlas[data-overview="true"] .world-atlas-map-footer { border-radius: 0 0 4px 4px; }
  .world-atlas[data-overview="true"] .atlas-continent-index { display: block; margin-top: 14px; }
  .world-atlas[data-overview="true"]:has(.world-atlas-panel:not(.is-collapsed)) .atlas-continent-index {
    display: none;
  }
  .atlas-continent-index h3 {
    margin: 0 0 6px;
    color: var(--atlas-ink);
    font: 650 20px/1.35 var(--atlas-serif);
  }
  .atlas-continent-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 17px;
  }
  .atlas-continent-options button {
    display: flex;
    width: 100%;
    min-height: 44px;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    padding: 6px 2px;
    border: 0;
    border-top: 1px solid var(--atlas-rule);
    border-radius: 0;
    background: transparent;
    text-align: start;
    color: var(--atlas-ink);
    font-size: 14px;
  }
  .atlas-continent-options button strong { font-weight: 600; }
  .atlas-continent-options button small { color: var(--atlas-muted); font-size: 12px; }
  .atlas-continent-options button:focus-visible { outline-offset: -3px; }
  .world-atlas:not([data-overview="true"]) .atlas-control-row { display: contents; }
  .world-atlas:not([data-overview="true"]) .atlas-list-jump { bottom: auto; top: 10px; }
  .world-atlas-panel.is-collapsed { display: flow-root; }
  .world-atlas[data-level="world"] .world-atlas-panel[data-mode="browse"].is-collapsed { display: none; }
  .world-atlas-panel.is-collapsed .atlas-panel-handle {
    float: none;
    width: 100%;
    margin: 0;
    text-align: center;
  }
}

@media (min-width: 600px) and (max-width: 899px) {
  .atlas-continent-options { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .world-atlas-header { padding-block: 4px; margin-bottom: 18px; }
  .world-atlas-toolbar { grid-template-columns: minmax(180px, 235px) auto; gap: 10px; }
  .world-atlas-layout {
    grid-template-columns: minmax(0, 1fr) clamp(270px, 27%, 355px);
    align-items: start;
    column-gap: 18px;
  }
  .world-atlas .world-atlas-canvas {
    aspect-ratio: 1.55;
    height: auto;
    min-height: 365px;
    max-height: 630px;
  }
  .world-atlas-controls { top: 15px; left: 15px; }
  .world-atlas-map-footer { border-radius: 0 0 4px 4px; }
  .world-atlas-panel {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--atlas-rule);
    border-radius: 4px;
    max-height: max(450px, min(73dvh, 710px));
    overflow: hidden;
  }
  .world-atlas-panel #atlas-panel-body {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
  .world-atlas .atlas-panel-handle,
  .world-atlas .atlas-list-jump { display: none; }
  .world-atlas-panel .atlas-panel-head,
  .world-atlas-panel .world-atlas-preview { padding: 20px; }
  .world-atlas .world-atlas-results { grid-template-columns: minmax(0, 1fr); margin-inline: 20px; }
  .world-atlas .world-atlas-result { min-height: 69px; }
  .world-atlas .atlas-more { margin-inline: 8px; }
}

@media (min-width: 1200px) {
  .world-atlas-header { margin-bottom: 22px; }
  .world-atlas-layout { column-gap: 24px; }
  .world-atlas .world-atlas-canvas { aspect-ratio: 1.75; }
  .world-atlas-map-footer { grid-template-columns: 1fr auto; align-items: baseline; gap: 8px; }
}

@media (max-height: 520px) and (max-width: 899px) {
  .world-atlas .world-atlas-canvas { height: clamp(218px, 64svh, 320px); }
  .world-atlas[data-overview="true"] .world-atlas-canvas { height: clamp(210px, 62svh, 285px); aspect-ratio: auto; }
}

/* Compact selected-place card. The results list keeps its own regular layout. */
@media (max-width: 599px), (min-width: 600px) and (max-width: 899px) and (max-height: 520px) {
  .world-atlas-panel[data-mode="preview"] {
    background: var(--atlas-surface);
    border: 1px solid #bab1a1;
    border-radius: 8px 8px 4px 4px;
    box-shadow: 0 -3px 18px rgb(60 54 42 / 12%);
  }
  .world-atlas-panel[data-mode="preview"] .atlas-panel-back,
  .world-atlas-panel[data-mode="preview"] .atlas-panel-handle {
    margin: 0 4px;
    min-width: 44px;
    padding: 6px 10px;
    font-size: 12px;
  }
  .world-atlas-panel[data-mode="preview"].is-collapsed .atlas-panel-handle {
    display: flex;
    width: 100%;
    margin: 0;
    font-size: 14px;
  }
  .world-atlas-panel[data-mode="preview"] .world-atlas-preview {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    grid-template-areas:
      "name name"
      "status country"
      "feature feature"
      "months months"
      "actions actions";
    align-items: start;
    gap: 4px 7px;
    clear: both;
    padding: 0 14px 10px;
  }
  .world-atlas-panel[data-mode="preview"] .world-atlas-preview:has(.atlas-preview-photo) {
    grid-template-columns: max-content minmax(0, 1fr) clamp(66px, 20%, 84px);
    grid-template-areas:
      "name name photo"
      "status country photo"
      "feature feature photo"
      "months months months"
      "actions actions actions";
  }
  .world-atlas-panel[data-mode="preview"] .world-atlas-preview > * { margin: 0; }
  .world-atlas-preview h3 { grid-area: name; font-size: 22px; line-height: 1.23; text-wrap: balance; }
  .world-atlas-preview > small {
    grid-area: country;
    align-self: center;
    color: var(--atlas-muted);
    font-size: 12px;
  }
  .world-atlas-preview .atlas-result-status { grid-area: status; padding-block: 1px; }
  .world-atlas-preview p:not(.atlas-window) {
    grid-area: feature;
    color: var(--atlas-ink);
    font-size: 13px;
    line-height: 1.5;
  }
  .world-atlas-panel[data-mode="preview"] .world-atlas-preview .atlas-window {
    grid-area: months;
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 13px;
    line-height: 1.5;
  }
  .world-atlas-panel[data-mode="preview"] .atlas-preview-actions {
    grid-area: actions;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 4px;
    background: var(--atlas-surface);
  }
  .world-atlas-panel[data-mode="preview"] .atlas-preview-actions button { padding-inline: 6px; }
  .world-atlas-panel[data-mode="preview"] .atlas-preview-photo { grid-area: photo; min-width: 0; }
  .world-atlas-panel[data-mode="preview"] .atlas-preview-photo img {
    height: 50px;
    aspect-ratio: auto;
    object-fit: cover;
    border-radius: 3px;
  }
  .world-atlas-panel[data-mode="preview"] .atlas-preview-photo figcaption {
    padding-top: 3px;
    font-size: 10px;
    line-height: 1.3;
  }
}

@media (max-width: 599px) {
  .world-atlas:has(.world-atlas-panel[data-mode="preview"]:not(.is-collapsed)) {
    padding-bottom: min(46dvh, 320px);
  }
  .world-atlas-panel[data-mode="preview"] {
    position: fixed;
    z-index: 7;
    inset: auto max(8px, env(safe-area-inset-right)) calc(72px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    max-height: min(53dvh, 380px);
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
  .world-atlas-panel[data-mode="preview"] .atlas-preview-actions {
    position: sticky;
    bottom: -1px;
  }
  .world-atlas-panel[data-mode="preview"]:not(.is-collapsed) {
    box-shadow: 0 -5px 20px rgb(60 54 42 / 14%);
  }
}

@media (min-width: 600px) and (max-width: 899px) and (max-height: 520px) {
  .world-atlas-panel[data-mode="preview"] .world-atlas-preview:has(.atlas-preview-photo) {
    grid-template-areas:
      "name name name"
      "status country photo"
      "feature feature photo"
      "months months photo"
      "actions actions actions";
  }
  .world-atlas-layout:has(.world-atlas-panel[data-mode="preview"]) {
    grid-template-columns: minmax(0, 1fr) minmax(258px, 41%);
    gap: 12px;
    align-items: start;
  }
  .world-atlas-layout:has(.world-atlas-panel[data-mode="preview"]) .world-atlas-canvas {
    scroll-margin-block-start: 6px;
  }
  .world-atlas-panel[data-mode="preview"] {
    position: sticky;
    top: 6px;
    max-height: calc(100dvh - 12px);
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
}
