@media (max-width: 980px) {
  .mobile-map-control-rail .language-toggle,
  .mobile-map-control-rail .spatial-view-toggle {
    border-color: var(--button-flat-border);
    background: var(--button-flat-bg);
    box-shadow: none;
  }

  :is(
    .mobile-map-control-rail .spatial-view-button,
    .mobile-time-step-button
  ) {
    position: relative;
    border-color: var(--button-flat-border);
    background: var(--button-flat-bg);
    box-shadow: none;
    text-shadow: none;
    transform: none;
    animation: none;
  }

  :is(
    .mobile-map-control-rail .spatial-view-button:not(.is-active):not(:disabled),
    .mobile-time-step-button:not(:disabled)
  ):hover {
    border-color: var(--ink);
    background: var(--button-flat-bg-hover);
    color: var(--ink);
    box-shadow: none;
    transform: none;
    animation: none;
  }

  .mobile-time-range-label strong {
    border-color: rgba(17, 16, 14, 0.34);
    background: rgba(255, 253, 247, 0.78);
    color: var(--ink);
  }
}

@media (max-width: 980px) {
  .mobile-map-control-rail {
    position: absolute;
    top: calc(env(safe-area-inset-top) + 66px);
    right: 10px;
    z-index: 6;
    display: grid;
    gap: 6px;
    width: 132px;
    pointer-events: auto;
    transition:
      opacity var(--duration-base) var(--motion-snap),
      transform var(--duration-base) var(--motion-snap);
  }

  .mobile-map-control-rail .language-toggle,
  .mobile-map-control-rail .spatial-view-toggle {
    display: grid;
    width: 100%;
    min-height: 29px;
    background: rgba(255, 253, 247, 0.9);
    box-shadow:
      inset 0 1px 0 rgba(255, 253, 247, 0.72),
      0 8px 20px rgba(36, 30, 20, 0.08);
  }

  .mobile-map-control-rail .language-toggle {
    grid-template-columns: 0.58fr 1.42fr;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .mobile-map-control-rail .spatial-view-toggle {
    grid-template-columns: 0.66fr 1.34fr;
  }

  
  .mobile-map-control-rail .spatial-view-button {
    min-height: 28px;
    padding: 0 4px;
    font-size: 0.6875rem;
    letter-spacing: 0.03em;
    white-space: nowrap;
  }

  body:not(.is-reach-mode) .mobile-map-control-rail .mobile-map-spatial-view-toggle,
  body.is-mobile-sheet-expanded .mobile-map-control-rail {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
  }
}

@media (max-width: 374px) {
  .mobile-map-control-rail {
    top: calc(env(safe-area-inset-top) + 138px);
    right: 8px;
    width: 128px;
  }
}

/* Mobile control-grid mechanics. Split mechanically from mobile-refinements.css. */

@media (max-width: 980px) {
  .mobile-control-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
  }

  .mobile-control-section {
    display: grid;
    gap: 6px;
    padding: 8px;
    border: 1px solid rgba(17, 16, 14, 0.16);
    background: rgba(255, 253, 247, 0.32);
  }

  .mobile-control-section-title {
    margin-bottom: 1px;
  }

.mobile-control-grid .toggle-control,
.mobile-control-grid .select-control{
    min-height: 44px;
  }

  .mobile-control-grid .mobile-select-control {
    display: grid;
    grid-template-columns: minmax(84px, 0.42fr) minmax(0, 1fr) 18px;
    gap: 8px;
    align-items: center;
    justify-content: stretch;
    min-height: 46px;
    padding: 0 8px 0 12px;
    border: 1px solid rgba(17, 16, 14, 0.28);
    background:
      linear-gradient(90deg, rgba(17, 16, 14, 0.03) 1px, transparent 1px),
      linear-gradient(180deg, rgba(255, 253, 247, 0.58), rgba(226, 219, 203, 0.36));
    background-size: 18px 100%, auto;
    box-shadow: var(--material-inset);
  }

  .mobile-control-grid .mobile-select-control > span {
    min-width: 0;
    color: rgba(17, 16, 14, 0.5);
  }

  .mobile-control-grid .mobile-select-control select {
    width: 100%;
    max-width: none;
    min-width: 0;
    height: 100%;
    padding: 0 4px;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: rgba(17, 16, 14, 0.88);
    text-align: start;
    text-align-last: start;
  }

  .mobile-control-grid .mobile-select-control::after {
    justify-self: center;
    margin: 0;
  }

  .mobile-sheet[data-snap="full"] .mobile-control-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .mobile-sheet[data-snap="full"] .mobile-control-section {
    display: grid;
    min-width: 0;
  }

  .mobile-sheet[data-snap="full"] .mobile-control-grid .toggle-control,
  .mobile-sheet[data-snap="full"] .mobile-control-grid .select-control{
    display: inline-flex;
  }

  .mobile-sheet[data-snap="full"] .mobile-control-grid .mobile-select-control {
    display: grid;
  }
}

/* Mobile adjustment bay styling. Split mechanically from mobile-refinements.css. */

@media (max-width: 980px) {
  .mobile-adjust-map {
    padding: 9px;
    border-radius: 3px;
    box-shadow:
      inset 0 2px 0 rgba(17, 16, 14, 0.72),
      inset 0 0 0 1px rgba(255, 253, 247, 0.36);
  }
  .mobile-adjust-map h3 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
  }
  .mobile-adjust-map h3::after {
    content: "";
    width: 38px;
    height: 7px;
    border: 1px solid rgba(17, 16, 14, 0.38);
    background:
      repeating-linear-gradient(90deg, rgba(17, 16, 14, 0.32) 0 1px, transparent 1px 6px),
      rgba(255, 253, 247, 0.28);
  }
  .mobile-control-grid {
    gap: 8px;
  }
  .mobile-control-section {
    padding: 9px 9px 8px 11px;
    min-height: 44px;
  }
.mobile-control-section .toggle-control {
    display: flex;
    justify-content: space-between;
    min-height: 44px;
    padding-inline: 7px;
    border-top: 1px solid rgba(17, 16, 14, 0.12);
    background: transparent;
  }
  .mobile-control-section .toggle-control:first-of-type {
    border-top: 0;
  }
  .mobile-sheet[data-snap="full"] .mobile-adjust-map h3 {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: normal;
  }
  .mobile-sheet[data-snap="full"] .mobile-control-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .mobile-sheet[data-snap="full"] .mobile-control-section {
    display: grid;
  }
  .mobile-sheet[data-snap="full"] .mobile-control-grid .mobile-select-control {
    grid-template-columns: minmax(76px, 0.38fr) minmax(0, 1fr) 18px;
  }
}

/* Mobile control bay instrumentation. Split mechanically from mobile-refinements.css. */

.mobile-control-section {
  --bay-accent: var(--material-signal-teal);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-color: rgba(17, 16, 14, 0.22);
  background:
    linear-gradient(90deg, rgba(17, 16, 14, 0.024) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 253, 247, 0.52), rgba(231, 224, 209, 0.36));
  background-size: 18px 18px, auto;
  box-shadow:
    inset 0 1px 0 rgba(255, 253, 247, 0.64),
    inset 4px 0 0 rgba(17, 16, 14, 0.06);
}

.mobile-control-section::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  z-index: -1;
  width: 4px;
  background: var(--bay-accent);
  opacity: 0.86;
}

.mobile-control-section::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 6px;
  height: 6px;
  border: 1px solid rgba(17, 16, 14, 0.22);
  border-radius: 50%;
  background: rgba(17, 16, 14, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 253, 247, 0.36);
}

.mobile-control-section-title {
  display: block;
  padding-right: 18px;
  color: rgba(17, 16, 14, 0.52);
  font-family: var(--font-mono);
  font-size: 0.54rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.mobile-control-section .toggle-control,
.mobile-control-section .select-control{
  border-radius: 2px;
}

.mobile-control-section select {
  min-height: 32px;
}

.mobile-control-section .toggle-control:has(input:checked)::after {
  background: var(--bay-accent);
}

.mobile-control-section .toggle-control:focus-within,
.mobile-control-section .select-control:focus-within {
  border-color: rgba(201, 53, 43, 0.58);
  box-shadow:
    inset 0 0 0 1px rgba(201, 53, 43, 0.2),
    0 0 0 2px rgba(201, 53, 43, 0.1);
}

/* Late mobile atlas-control refinements. Split mechanically from refinements.css. */

.mobile-map-control-rail .language-toggle,
.mobile-map-control-rail .spatial-view-toggle {
  background: rgba(255, 253, 247, 0.9);
  box-shadow: none;
}

@media (max-width: 980px) {
body.is-mobile-sheet-expanded .mobile-map-control-rail {
    display: none;
  }

body.is-reach-mode .mobile-sheet[data-snap="full"] > .mobile-mode-control {
    order: 3;
  }
}

@media (max-width: 980px) {
.mobile-map-control-rail {
    top: calc(env(safe-area-inset-top) + 58px);
    right: 10px;
    width: min(184px, calc(100vw - 20px));
    gap: 6px;
    z-index: 6;
  }

.mobile-map-control-rail .language-toggle,
  .mobile-map-control-rail .spatial-view-toggle {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 44px;
  }


  .mobile-map-control-rail .spatial-view-button {
    min-width: 0;
    min-height: 44px;
    padding: 0 6px;
    overflow: hidden;
    font-size: 0.6875rem;
    line-height: 1;
    letter-spacing: 0.015em;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

.mobile-map-control-rail .language-toggle {
    min-height: 44px;
  }

}

@media (max-width: 374px) {
.mobile-map-control-rail {
    width: min(150px, calc(100vw - 18px));
  }
}

.mobile-spatial-view-guide {
  order: 3;
  width: 100%;
  margin-top: 8px;
}

.mobile-spatial-view-guide .spatial-view-toggle {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mobile-map-control-rail .mobile-map-spatial-view-guide {
  grid-area: auto;
  justify-self: stretch;
  align-self: auto;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.mobile-map-control-rail .mobile-map-spatial-view-guide .spatial-view-eyebrow,
.mobile-map-control-rail .mobile-map-spatial-view-guide .spatial-view-button em{
  display: none;
}

.mobile-map-control-rail .mobile-map-spatial-view-toggle {
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 44px;
}

.mobile-map-control-rail .spatial-view-button {
  grid-template-columns: 13px minmax(0, 1fr);
  gap: 3px;
  min-height: 44px;
  padding: 0 6px;
  text-align: center;
}

.mobile-map-control-rail .spatial-view-icon {
  width: 12px;
  height: 12px;
}

.mobile-map-control-rail .spatial-view-text {
  font-size: var(--type-micro);
  letter-spacing: 0;
}

/* Reach full-sheet control order. Moved from the late refinement adapter. */
@media (max-width: 980px) {
  
  .mobile-sheet[data-snap="collapsed"] .mobile-surface-story-toggle,
  body.is-reach-mode .mobile-sheet[data-snap="full"] > .mobile-surface-story-toggle,
  body.is-route-mode .mobile-sheet[data-snap="full"] > .mobile-surface-story-toggle,
  body.is-inspect-mode .mobile-sheet[data-snap="full"] > .mobile-surface-story-toggle {
    display: none;
  }

  body.is-reach-mode.has-origin .mobile-sheet[data-snap="full"] .mobile-sheet-head {
    padding-bottom: 6px;
  }

  body.is-reach-mode .mobile-sheet[data-snap="full"] {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
  }

  body.is-reach-mode .mobile-sheet[data-snap="full"] > * {
    grid-column: 1 / -1;
    min-width: 0;
  }

  body.is-reach-mode .mobile-sheet[data-snap="full"] > #mobilePrimarySummary {
    order: 2;
  }

  body.is-reach-mode .mobile-sheet[data-snap="full"] > .mobile-search-form[data-panel-visible="true"],
  body.is-reach-mode .mobile-sheet[data-snap="full"] > .mobile-search-form {
    order: 5;
  }

  body.is-reach-mode .mobile-sheet[data-snap="full"] > #mobileAdjustMap {
    order: 6;
    min-height: 0;
    padding: 0;
  }

  body.is-reach-mode .mobile-sheet[data-snap="full"] > #mobileReachDetails[data-panel-visible="true"],
  body.is-reach-mode .mobile-sheet[data-snap="full"] > #mobileReachDetails {
    order: 7;
  }

  body.is-reach-mode .mobile-sheet[data-snap="full"] > #mobileInspector[data-panel-visible="true"],
  body.is-reach-mode .mobile-sheet[data-snap="full"] > #mobileInspector {
    order: 8;
  }

  body.is-reach-mode .mobile-sheet[data-snap="full"] .mobile-settings-disclosure {
    min-height: 0;
  }

  body.is-reach-mode .mobile-sheet[data-snap="full"] .mobile-settings-disclosure > summary {
    min-height: 44px;
  }
}

@media (max-width: 980px) {
.mobile-sheet[data-snap="collapsed"] .mobile-spatial-view-guide,
  body.is-reach-mode .mobile-sheet[data-snap="full"] > .mobile-surface-story-toggle,
  body.is-route-mode .mobile-sheet[data-snap="full"] > .mobile-surface-story-toggle,
  body.is-inspect-mode .mobile-sheet[data-snap="full"] > .mobile-surface-story-toggle {
    display: none;
  }

body.is-reach-mode .mobile-sheet[data-snap="full"] > .mobile-spatial-view-guide {
    display: grid;
    order: 3;
  }
}

@media (max-width: 374px) {
.mobile-map-control-rail .spatial-view-icon {
    display: none;
  }

.mobile-map-control-rail .spatial-view-button {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 980px) {
body.is-inspect-mode .mobile-sheet[data-snap="full"] > .mobile-mode-control {
    display: grid;
    order: 3;
  }
}

@media (max-width: 980px) {
body.is-reach-mode .mobile-sheet[data-snap="full"] > .mobile-surface-story-toggle {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    order: 4;
    width: 100%;
  }

body.is-reach-mode .mobile-sheet[data-snap="full"] > .mobile-spatial-view-guide {
    order: 3;
  }
}

@media (max-width: 980px) {
  body.is-map-active {
    --mobile-atlas-bg:
      linear-gradient(90deg, rgba(17, 16, 14, 0.026) 1px, transparent 1px),
      rgba(255, 253, 247, 0.92);
    --mobile-atlas-bg-soft:
      linear-gradient(90deg, rgba(17, 16, 14, 0.018) 1px, transparent 1px),
      rgba(255, 253, 247, 0.76);
    --mobile-atlas-border: rgba(17, 16, 14, 0.18);
    --mobile-atlas-border-strong: rgba(17, 16, 14, 0.34);
    --mobile-atlas-ink: #16140f;
    --mobile-atlas-cream: rgba(255, 253, 247, 0.96);
    --mobile-atlas-red: #c9352b;
    --mobile-atlas-radius: var(--control-radius);
    --mobile-atlas-radius-inner: var(--control-radius);
    --mobile-atlas-shadow:
      0 1px 2px rgba(17, 16, 14, 0.05),
      0 10px 26px rgba(48, 42, 32, 0.11);
  }

  body.is-map-active .mobile-map-search-form {
    --mobile-map-search-shift-x: -50%;
    position: absolute;
    left: 50%;
    right: auto;
    top: calc(env(safe-area-inset-top) + 10px);
    z-index: 11;
    display: grid;
    gap: 5px;
    width: min(520px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    pointer-events: auto;
    transform: translateX(var(--mobile-map-search-shift-x));
    transition:
      opacity var(--duration-base) var(--motion-snap),
      transform var(--duration-base) var(--motion-snap);
  }

  body.is-map-active .mobile-map-search-form[hidden],
  body.is-map-active .mobile-map-search-form[data-panel-visible="false"] {
    display: none;
  }

  .mobile-map-search-form label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .mobile-map-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    align-items: center;
    min-height: 40px;
    padding: 3px;
    border: 1px solid var(--mobile-atlas-border);
    border-radius: var(--mobile-atlas-radius);
    background: var(--mobile-atlas-bg);
    background-size: 18px 18px, auto;
    box-shadow: var(--mobile-atlas-shadow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .mobile-map-search-row input {
    min-width: 0;
    width: 100%;
    height: 34px;
    min-height: 34px;
    padding: 0 10px;
    border: 0;
    border-radius: var(--mobile-atlas-radius-inner);
    background: rgba(255, 253, 247, 0.68);
    box-shadow: inset 0 0 0 1px rgba(17, 16, 14, 0.08);
    color: var(--mobile-atlas-ink);
    font-family: var(--font-rail-label, var(--font-main));
    font-size: 16px;
    font-weight: 720;
    letter-spacing: 0;
  }

  .mobile-map-search-row input::placeholder {
    color: rgba(22, 20, 15, 0.42);
  }

  .mobile-map-search-row input:focus {
    outline: none;
    background: rgba(255, 253, 247, 0.96);
    box-shadow:
      inset 0 0 0 1px rgba(201, 53, 43, 0.36),
      0 0 0 2px rgba(201, 53, 43, 0.12);
  }

  .mobile-map-search-row button {
    position: absolute;
    width: 1px;
    height: 1px;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .mobile-map-search-row button:hover,
  .mobile-map-search-row button:focus-visible {
    outline: none;
  }

  .mobile-map-search-results {
    position: absolute;
    left: 50%;
    top: calc(100% + 8px);
    display: grid;
    gap: 5px;
    width: min(354px, calc(100vw - 24px));
    max-height: min(42dvh, 260px);
    overflow: auto;
    padding: 6px;
    border: 1px solid var(--mobile-atlas-border-strong);
    border-radius: var(--mobile-atlas-radius);
    background:
      linear-gradient(90deg, rgba(17, 16, 14, 0.018) 1px, transparent 1px),
      rgba(255, 253, 247, 0.98);
    background-size: 18px 18px, auto;
    box-shadow: var(--mobile-atlas-shadow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform: translateX(-50%);
  }

  .mobile-map-search-results:empty {
    display: none;
  }

  .mobile-map-search-results .search-result {
    border-color: rgba(17, 16, 14, 0.14);
    border-radius: var(--control-radius);
    padding: 8px 9px;
    background: rgba(255, 253, 247, 0.7);
    box-shadow: none;
  }

  .mobile-map-search-results .search-result:hover,
  .mobile-map-search-results .search-result:focus-visible {
    border-color: rgba(201, 53, 43, 0.38);
    background: rgba(255, 253, 247, 0.98);
    box-shadow: 0 4px 12px rgba(36, 30, 20, 0.08);
  }

  body.is-mobile-sheet-expanded .mobile-map-search-form {
    opacity: 0;
    pointer-events: none;
    transform: translate(var(--mobile-map-search-shift-x), -6px);
  }

  .mobile-collapsed-mode-control,
  .mobile-mode-control,
  .mobile-surface-story-toggle,
  .mobile-language-toggle,
  .mobile-spatial-view-guide {
    gap: 3px;
    padding: 3px;
    overflow: hidden;
    border: 1px solid var(--mobile-atlas-border);
    border-radius: var(--mobile-atlas-radius);
    background: var(--mobile-atlas-bg);
    background-size: 18px 18px, auto;
    box-shadow:
      inset 0 1px 0 rgba(255, 253, 247, 0.72),
      0 6px 16px rgba(36, 30, 20, 0.08);
  }

  
  .mobile-spatial-view-guide {
    align-content: stretch;
  }

  
  .mobile-spatial-view-guide .spatial-view-toggle {
    width: 100%;
    min-height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .mobile-collapsed-mode-control .mode-button,
  .mobile-mode-control .mode-button,
  .mobile-surface-story-toggle .surface-story-button,
  .mobile-spatial-view-guide .spatial-view-button {
    position: relative;
    min-width: 0;
    min-height: 28px;
    padding: 0 7px;
    overflow: hidden;
    border: 0;
    border-radius: var(--mobile-atlas-radius-inner);
    background: transparent;
    color: rgba(22, 20, 15, 0.68);
    box-shadow: none;
    font-family: var(--font-rail-label, var(--font-main));
    font-size: var(--type-micro);
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .mobile-collapsed-mode-control .mode-button {
    padding-inline: 4px;
    letter-spacing: 0;
  }

  body.is-map-active .mobile-sheet[data-snap="collapsed"] .mobile-collapsed-mode-control .mode-button {
    padding-inline: 3px;
    letter-spacing: 0;
  }


.mobile-spatial-view-guide .spatial-view-button {
  grid-template-columns: minmax(0, 1fr);
  justify-content: center;
  padding-inline: 6px;
}

.mobile-spatial-view-guide .spatial-view-copy {
  width: 100%;
  justify-items: center;
}

  
  .mobile-spatial-view-guide .spatial-view-eyebrow,
  .mobile-spatial-view-guide .spatial-view-button em{
    display: none;
  }

  
  .mobile-spatial-view-guide .spatial-view-icon {
    color: currentColor;
    opacity: 0.72;
  }

  .mobile-collapsed-mode-control .mode-button:not(.is-active):hover,
  .mobile-mode-control .mode-button:not(.is-active):hover,
  .mobile-surface-story-toggle .surface-story-button:not(.is-active):hover {
    background: rgba(246, 241, 230, 0.72);
    color: var(--mobile-atlas-ink);
  }

  .mobile-collapsed-mode-control,
  .mobile-mode-control {
    gap: 0;
    padding: 4px;
    border-color: rgba(17, 16, 14, 0.24);
    border-radius: 17px;
    background:
      linear-gradient(90deg, rgba(17, 16, 14, 0.018) 1px, transparent 1px),
      rgba(255, 253, 247, 0.94);
    background-size: 18px 18px, auto;
    box-shadow:
      inset 0 1px 0 rgba(255, 253, 247, 0.78),
      0 1px 1px rgba(17, 16, 14, 0.08);
  }

  .mobile-collapsed-mode-control {
    container-name: mobile-mode-lens;
    container-type: inline-size;
  }

  .mobile-collapsed-mode-control .mode-button,
  .mobile-mode-control .mode-button {
    --mobile-mode-icon-left: 3px;
    --mobile-mode-icon-size: 7px;
    --mobile-mode-reach-dot-size: 5px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    justify-items: start;
    gap: 3px;
    overflow: visible;
    border-radius: 12px;
    color: rgba(22, 20, 15, 0.7);
    font-family: var(--font-rail-label, var(--font-main));
    text-align: left;
  }

  /* This layer draws the mode glyph through ::before. Retaining the older DOM
   * icon creates an implicit second grid column and can leave the copy with as
   * little as 15px on narrow sheets. */
  .mobile-collapsed-mode-control .mobile-mode-icon,
  .mobile-mode-control .mobile-mode-icon,
  .mobile-collapsed-mode-control .mobile-mode-selection-rail,
  .mobile-mode-control .mobile-mode-selection-rail {
    display: none;
  }

  .mobile-collapsed-mode-control .mobile-mode-copy,
  .mobile-mode-control .mobile-mode-copy {
    grid-column: 1;
    justify-self: stretch;
    width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .mobile-mode-control .mode-button {
    --mobile-mode-icon-left: 10px;
    --mobile-mode-icon-size: 14px;
    --mobile-mode-reach-dot-size: 6px;
    min-height: 48px;
    padding: 7px 9px 7px 31px;
  }

  .mobile-collapsed-mode-control .mode-button {
    min-height: 34px;
    padding: 0 3px 0 10px;
  }

  body.is-map-active .mobile-sheet[data-snap="collapsed"] .mobile-collapsed-mode-control .mode-button {
    min-height: 34px;
    padding: 0 3px 0 10px;
    overflow: visible;
    font-family: var(--font-rail-label, var(--font-main));
    font-size: inherit;
    letter-spacing: 0;
    text-overflow: clip;
  }

  .mobile-collapsed-mode-control .mode-button strong,
  .mobile-mode-control .mode-button strong {
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: currentColor;
    font-family: var(--font-rail-label, var(--font-main));
    font-weight: 850;
    letter-spacing: 0;
    line-height: 1.2;
    text-overflow: clip;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .mobile-mode-control .mode-button strong {
    font-size: 0.72rem;
  }

  .mobile-collapsed-mode-control .mode-button strong,
  body.is-map-active .mobile-sheet[data-snap="collapsed"] .mobile-collapsed-mode-control .mode-button strong {
    font-size: 0.6875rem;
    letter-spacing: 0;
    line-height: 1.02;
    text-wrap: balance;
    white-space: normal;
  }

  .mobile-mode-control .mode-button em {
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: rgba(22, 20, 15, 0.42);
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-style: normal;
    font-weight: 650;
    letter-spacing: 0;
    line-height: 1.2;
    text-overflow: clip;
    text-transform: none;
    white-space: nowrap;
  }

  .mobile-collapsed-mode-control .mode-button em {
    display: none;
  }

  .mobile-collapsed-mode-control .mode-button[data-mode="route"],
  .mobile-mode-control .mode-button[data-mode="route"] {
    --mobile-mode-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316140f' stroke-opacity='0.58' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='5.5' cy='18.5' r='2.3'/%3E%3Ccircle cx='18.5' cy='5.5' r='2.3'/%3E%3Cpath d='M7.5 16.5C10 14 14 10 16.5 7.5' stroke-dasharray='0.5 3.4'/%3E%3C/svg%3E");
  }

  .mobile-collapsed-mode-control .mode-button[data-mode="inspect"],
  .mobile-mode-control .mode-button[data-mode="inspect"] {
    --mobile-mode-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316140f' stroke-opacity='0.58' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.4'/%3E%3Cpath d='m14.8 9.2-2 4.4-3.6 1.2 2-4.4z'/%3E%3C/svg%3E");
  }

  .mobile-collapsed-mode-control .mode-button[data-mode="route"].is-active,
  .mobile-mode-control .mode-button[data-mode="route"].is-active {
    --mobile-mode-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fffdf7' stroke-opacity='0.86' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='5.5' cy='18.5' r='2.3'/%3E%3Ccircle cx='18.5' cy='5.5' r='2.3'/%3E%3Cpath d='M7.5 16.5C10 14 14 10 16.5 7.5' stroke-dasharray='0.5 3.4'/%3E%3C/svg%3E");
  }

  .mobile-collapsed-mode-control .mode-button[data-mode="inspect"].is-active,
  .mobile-mode-control .mode-button[data-mode="inspect"].is-active {
    --mobile-mode-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fffdf7' stroke-opacity='0.86' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.4'/%3E%3Cpath d='m14.8 9.2-2 4.4-3.6 1.2 2-4.4z'/%3E%3C/svg%3E");
  }

  .mobile-collapsed-mode-control .mode-button::before,
  .mobile-mode-control .mode-button::before {
    content: "";
    position: absolute;
    top: 50%;
    left: var(--mobile-mode-icon-left);
    display: block;
    width: var(--mobile-mode-icon-size);
    height: var(--mobile-mode-icon-size);
    border: 0;
    border-radius: 0;
    background: var(--mobile-mode-icon, none) center / contain no-repeat;
    box-shadow: none;
    transform: translateY(-50%);
  }

  .mobile-collapsed-mode-control .mode-button[data-mode="reach"]::before,
  .mobile-mode-control .mode-button[data-mode="reach"]::before {
    width: var(--mobile-mode-reach-dot-size);
    height: var(--mobile-mode-reach-dot-size);
    border: 1px solid rgba(17, 16, 14, 0.42);
    border-radius: 50%;
    background: rgba(255, 253, 247, 0.62);
  }

  .mobile-collapsed-mode-control .mode-button::after,
  .mobile-mode-control .mode-button::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    left: auto;
    bottom: auto;
    display: block;
    width: 5px;
    height: 1px;
    border-radius: 0;
    background: rgba(17, 16, 14, 0.28);
    box-shadow: none;
    transform: translateY(-50%);
  }

  .mobile-collapsed-mode-control .mode-button:last-child::after,
  .mobile-mode-control .mode-button:last-child::after {
    content: none;
    display: none;
  }

  .mobile-collapsed-mode-control .mode-button.is-active,
  .mobile-mode-control .mode-button.is-active {
    background: var(--mobile-atlas-ink);
    color: var(--mobile-atlas-cream);
    box-shadow:
      inset 0 1px 0 rgba(255, 253, 247, 0.08),
      0 3px 9px rgba(17, 16, 14, 0.24);
  }

  .mobile-collapsed-mode-control .mode-button[data-mode="reach"].is-active::before,
  .mobile-mode-control .mode-button[data-mode="reach"].is-active::before {
    border-color: rgba(255, 253, 247, 0.94);
    background: var(--mobile-atlas-red);
    box-shadow: 0 0 0 1px var(--mobile-atlas-red);
  }

  .mobile-collapsed-mode-control .mode-button[data-mode="route"].is-active::before,
  .mobile-mode-control .mode-button[data-mode="route"].is-active::before,
  .mobile-collapsed-mode-control .mode-button[data-mode="inspect"].is-active::before,
  .mobile-mode-control .mode-button[data-mode="inspect"].is-active::before {
    background: var(--mobile-mode-icon) center / contain no-repeat;
    opacity: 0.92;
  }

  .mobile-mode-control .mode-button.is-active em {
    color: rgba(255, 253, 247, 0.7);
  }

  @media (min-width: 390px) and (min-aspect-ratio: 9 / 20) {
    .mobile-mode-control .mode-button strong {
      font-size: 0.76rem;
    }
  }

  @media (min-width: 414px) and (min-aspect-ratio: 23 / 50) {
    .mobile-mode-control .mode-button strong {
      font-size: 0.8rem;
    }
  }

  @container mobile-mode-lens (min-width: 190px) {
    .mobile-collapsed-mode-control .mode-button,
    body.is-map-active .mobile-sheet[data-snap="collapsed"] .mobile-collapsed-mode-control .mode-button {
      min-height: 41px;
      padding: 5px 4px 5px 14px;
      gap: 1px;
    }

  }

  @container mobile-mode-lens (min-width: 252px) {
    .mobile-collapsed-mode-control .mode-button,
    body.is-map-active .mobile-sheet[data-snap="collapsed"] .mobile-collapsed-mode-control .mode-button {
      --mobile-mode-icon-left: 5px;
      --mobile-mode-icon-size: 9px;
      padding-left: 16px;
    }

  }

  .mobile-surface-story-toggle .surface-story-button.is-active::after,
  .mobile-spatial-view-guide .spatial-view-button.is-active::after {
    content: none;
    display: none;
  }

  .mobile-settings-disclosure {
    display: grid;
    gap: 8px;
    min-width: 0;
  }

  .mobile-settings-disclosure > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    padding: 0 10px;
    border: 1px solid rgba(17, 16, 14, 0.24);
    background:
      linear-gradient(90deg, rgba(17, 16, 14, 0.024) 1px, transparent 1px),
      rgba(255, 253, 247, 0.66);
    background-size: 18px 18px, auto;
    color: var(--ink);
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    line-height: 1;
    list-style: none;
    text-transform: uppercase;
  }

  .mobile-settings-disclosure > summary::-webkit-details-marker {
    display: none;
  }

  .mobile-settings-disclosure > summary::after {
    content: "+";
    color: var(--plate-rail-red);
    font-size: 0.9rem;
    font-weight: 900;
  }

  .mobile-settings-disclosure[open] > summary::after {
    content: "-";
  }

  .mobile-settings-disclosure:not([open]) > h3,
  .mobile-settings-disclosure:not([open]) > .mobile-control-grid {
    display: none;
  }

  .mobile-settings-disclosure > h3 {
    margin: 4px 0 0;
  }

  .mobile-share-button:not(.mobile-collapsed-poster-button){
    border: 1px solid var(--mobile-atlas-border);
    border-radius: var(--mobile-atlas-radius-inner);
    background: var(--mobile-atlas-bg);
    background-size: 18px 18px, auto;
    color: var(--mobile-atlas-ink);
    box-shadow:
      inset 0 1px 0 rgba(255, 253, 247, 0.7),
      0 5px 13px rgba(36, 30, 20, 0.08);
    font-family: var(--font-rail-label, var(--font-main));
    font-size: 0.58rem;
    font-weight: 830;
    letter-spacing: 0;
    text-transform: uppercase;
    white-space: nowrap;
  }

  #mobileAdjustMap .mobile-settings-disclosure > summary {
    border: 1px solid var(--mobile-atlas-border);
    border-radius: var(--mobile-atlas-radius-inner);
    background: var(--mobile-atlas-bg);
    background-size: 18px 18px, auto;
    color: var(--mobile-atlas-ink);
    box-shadow:
      inset 0 1px 0 rgba(255, 253, 247, 0.7),
      0 5px 13px rgba(36, 30, 20, 0.08);
    font-family: var(--font-rail-label, var(--font-main));
    font-size: 0.58rem;
    font-weight: 830;
    letter-spacing: 0;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .mobile-share-button:not(.mobile-collapsed-poster-button) {
    border-color: rgba(184, 70, 54, 0.44);
    background:
      no-repeat left 11px center / 14px 14px
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b84636' stroke-opacity='0.86' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='4.5' width='17' height='15' rx='2.4'/%3E%3Cpath d='m6.5 15.5 3.6-4.4 2.8 3 1.8-2 2.8 3.4'/%3E%3Ccircle cx='9.2' cy='9' r='1.2' fill='%23b84636' fill-opacity='0.82' stroke='none'/%3E%3C/svg%3E"),
      var(--mobile-atlas-bg);
    background-size: 14px 14px, 18px 18px, auto;
    color: rgba(22, 20, 15, 0.72);
    box-shadow:
      inset 0 1px 0 rgba(255, 253, 247, 0.72),
      0 5px 13px rgba(36, 30, 20, 0.08);
    padding: 0 12px 0 34px;
  }

  .mobile-collapsed-poster-button {
    min-width: 40px;
    padding: 0;
    background:
      no-repeat center / 15px 15px
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b84636' stroke-opacity='0.86' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='4.5' width='17' height='15' rx='2.4'/%3E%3Cpath d='m6.5 15.5 3.6-4.4 2.8 3 1.8-2 2.8 3.4'/%3E%3Ccircle cx='9.2' cy='9' r='1.2' fill='%23b84636' fill-opacity='0.82' stroke='none'/%3E%3C/svg%3E"),
      var(--mobile-atlas-bg);
    background-position: center;
    background-size: 15px 15px, 18px 18px, auto;
    color: transparent;
    font-size: 0;
    letter-spacing: 0;
  }

  #mobileAdjustMap .mobile-settings-disclosure > summary {
    min-height: 40px;
    padding: 0 10px;
    border-radius: var(--mobile-atlas-radius);
  }

  #mobileAdjustMap .mobile-settings-disclosure > summary::after {
    color: var(--mobile-atlas-red);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 900;
  }

  .mobile-settings-disclosure[open] {
    border: 1px solid var(--mobile-atlas-border-strong);
    border-radius: var(--mobile-atlas-radius);
    background:
      linear-gradient(90deg, rgba(17, 16, 14, 0.022) 1px, transparent 1px),
      rgba(255, 253, 247, 0.92);
    background-size: 18px 18px, auto;
    box-shadow: var(--mobile-atlas-shadow);
  }

  #mobileAdjustMap .mobile-settings-disclosure[open] > summary {
    border-width: 0 0 1px;
    border-radius: var(--mobile-atlas-radius) var(--mobile-atlas-radius) 0 0;
    box-shadow: none;
  }

  .mobile-settings-disclosure[open] > h3,
  .mobile-settings-disclosure[open] > .mobile-control-grid {
    padding-inline: 8px;
  }

  /* Mobile reach-time slider base skin. Moved from mobile-refinements.css
     before the compact owner rules below so the existing final rail stays put. */
  body.is-reach-mode .mobile-reach-time-control {
    left: auto;
    right: 12px;
    bottom: var(--mobile-map-bottom-clearance);
    grid-template-columns: minmax(0, 1fr);
    width: min(206px, calc(100% - 184px));
    min-height: 32px;
    padding: 3px;
    border-color: rgba(17, 16, 14, 0.5);
    background:
      linear-gradient(90deg, rgba(17, 16, 14, 0.045) 1px, transparent 1px) 0 0 / 16px 100% repeat-x,
      linear-gradient(180deg, rgba(249, 245, 235, 0.92), rgba(222, 214, 197, 0.88));
    box-shadow:
      0 8px 18px rgba(17, 16, 14, 0.13),
      var(--material-inset);
    transform: none;
  }

  body.is-mobile-sheet-expanded .mobile-reach-time-control {
    transform: translateY(8px);
  }

  body.is-reach-mode .mobile-reach-time-control .mobile-time-step-button {
    display: none;
  }

  .mobile-time-step-button {
    width: 32px;
    height: 38px;
    border-color: var(--material-black-key-edge);
    background:
      linear-gradient(180deg, rgba(255, 253, 247, 0.08), rgba(255, 253, 247, 0)),
      var(--material-black-key);
    color: var(--material-black-key-text);
    box-shadow: var(--material-led-shadow);
    transition:
      transform var(--duration-fast) var(--motion-snap),
      box-shadow var(--duration-fast) var(--motion-snap),
      opacity var(--duration-fast) var(--motion-snap);
  }

  .mobile-time-step-button:not(:disabled):active {
    transform: translateY(1px);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.34);
  }

  .mobile-time-range-label {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 6px;
    align-items: center;
    min-height: 38px;
    padding: 4px 6px 5px;
    overflow: hidden;
    border: 1px solid rgba(17, 16, 14, 0.36);
    background:
      linear-gradient(90deg, rgba(17, 16, 14, 0.22) 1px, transparent 1px) left 7px bottom 7px / calc((100% - 14px) / 8) 7px repeat-x,
      linear-gradient(180deg, rgba(255, 253, 247, 0.78), rgba(226, 219, 203, 0.72));
    box-shadow: var(--material-inset-deep);
  }

  .mobile-time-range-label::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: var(--material-signal-red);
    transform: translateX(-50%);
    pointer-events: none;
  }

  .mobile-time-range-label > span,
  .mobile-time-range-label input,
  .mobile-time-range-label strong {
    position: relative;
    z-index: 1;
  }

  .mobile-time-range-label > span {
    min-width: 2.8em;
    color: rgba(17, 16, 14, 0.58);
    font-size: 0.54rem;
    letter-spacing: 0.12em;
  }

  .mobile-time-range-label input {
    appearance: none;
    width: 100%;
    min-width: 0;
    height: 22px;
    background: transparent;
    accent-color: var(--material-signal-red);
  }

  .mobile-time-range-label:focus-within {
    border-color: rgba(201, 53, 43, 0.78);
    box-shadow:
      0 0 0 2px rgba(201, 53, 43, 0.16),
      var(--material-inset-deep);
  }

  .mobile-time-range-label input:focus-visible {
    outline: none;
  }

  .mobile-time-range-label strong {
    min-width: 38px;
    padding: 4px 5px;
    border: 1px solid rgba(0, 0, 0, 0.74);
    background: var(--material-led);
    color: var(--material-led-text);
    box-shadow: var(--material-led-shadow);
    font-size: 0.68rem;
    letter-spacing: 0.01em;
    text-align: center;
    text-transform: none;
  }

  body.is-reach-mode .mobile-reach-time-control .mobile-time-range-label {
    --mobile-map-label-width: 36px;
    --mobile-map-value-width: 36px;
    --mobile-map-slider-gap: 6px;
    grid-template-columns: var(--mobile-map-label-width) minmax(0, 1fr) var(--mobile-map-value-width);
    gap: var(--mobile-map-slider-gap);
    min-height: 26px;
    width: 100%;
    min-width: 0;
    padding: 2px 6px;
  }

  body.is-reach-mode .mobile-reach-time-control .mobile-time-range-label > span {
    min-width: 0;
    overflow: hidden;
    color: rgba(17, 16, 14, 0.58);
    font-size: 0.5rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.is-reach-mode .mobile-reach-time-control .mobile-time-range-label::before {
    left: calc(
      6px + var(--mobile-map-label-width) + var(--mobile-map-slider-gap)
      + ((100% - 12px - var(--mobile-map-label-width) - var(--mobile-map-value-width) - (2 * var(--mobile-map-slider-gap))) / 2)
    );
    top: 4px;
    bottom: 4px;
  }

  body.is-reach-mode .mobile-reach-time-control .mobile-time-range-label input {
    height: 18px;
  }

  body.is-reach-mode .mobile-reach-time-control .mobile-time-range-label strong {
    justify-self: stretch;
    min-width: 0;
    padding: 2px 4px;
    font-size: 0.58rem;
    line-height: 1;
  }

  body.is-reach-mode .mobile-reach-time-control {
    right: 12px;
    width: min(312px, calc(100% - 78px));
    min-height: 44px;
    padding: 4px;
    border-radius: var(--mobile-atlas-radius);
  }

  body.is-reach-mode .mobile-reach-time-control,
  body.is-map-active.is-reach-mode #mobileReachTimeControl.mobile-reach-time-control,
  body.is-map-active.is-reach-mode.has-origin .mobile-map-time-instrument #mobileReachTimeControl.mobile-reach-time-control {
    border: 1px solid var(--mobile-atlas-border);
    background: var(--mobile-atlas-bg);
    background-size: 18px 18px, auto;
    box-shadow: var(--mobile-atlas-shadow);
  }

  body.is-reach-mode .mobile-reach-time-control .mobile-time-range-label {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 52px;
    grid-template-rows: 14px 19px;
    grid-template-areas:
      "label value"
      "rail value";
    align-items: center;
    gap: 1px 8px;
    min-height: 34px;
    width: 100%;
    padding: 4px 8px 5px;
    overflow: visible;
    border: 0;
    border-radius: var(--mobile-atlas-radius-inner);
    background: transparent;
    box-shadow: none;
  }

  body.is-reach-mode .mobile-reach-time-control .mobile-time-range-label::before {
    content: none;
  }

  body.is-reach-mode .mobile-reach-time-control .mobile-time-range-label > span {
    grid-area: label;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    overflow: visible;
    color: var(--ink-secondary);
    font-family: var(--font-rail-label, var(--font-main));
    font-size: var(--type-micro);
    font-weight: 820;
    letter-spacing: 0;
    line-height: 1.18;
    min-height: 10px;
    text-overflow: clip;
    text-transform: uppercase;
    white-space: nowrap;
  }

  body.is-reach-mode .mobile-reach-time-control .mobile-time-range-label > span::after {
    content: "所要時間の上限";
    min-width: 0;
    overflow: hidden;
    color: var(--ink-tertiary);
    font-family: var(--font-ui-ja, var(--font-mono));
    font-size: var(--type-micro);
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.18;
    text-overflow: clip;
    text-transform: none;
    white-space: nowrap;
  }

  body.is-reach-mode .mobile-reach-time-control .mobile-time-range-label input {
    grid-area: rail;
    width: 100%;
    height: 44px;
    margin: 0;
    padding: 0;
    background:
      linear-gradient(90deg, rgba(17, 16, 14, 0.24) 1px, transparent 1px) left 8px bottom 1px / calc((100% - 16px) / 17) 4px repeat-x,
      linear-gradient(90deg, rgba(17, 16, 14, 0.36) 1px, transparent 1px) left 8px bottom 1px / calc((100% - 16px) / 3.4) 7px repeat-x,
      transparent;
    border: 0;
    box-shadow: none;
  }

  body.is-reach-mode .mobile-reach-time-control .mobile-time-range-label strong {
    grid-area: value;
    align-self: stretch;
    justify-self: stretch;
    display: grid;
    align-content: center;
    justify-items: end;
    min-width: 0;
    padding: 0 0 0 8px;
    border: 0;
    border-left: 1px solid rgba(17, 16, 14, 0.16);
    background: transparent;
    color: var(--mobile-atlas-ink);
    box-shadow: none;
    font-family: var(--font-metric, var(--font-mono));
    font-size: 0.58rem;
    font-weight: 760;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
    line-height: 0.95;
    text-align: right;
    text-transform: none;
  }

  body.is-map-active.is-reach-mode #mobileReachTimeControl.mobile-reach-time-control .mobile-time-range-label > strong {
    padding: 0 0 0 8px;
    border-left: 1px solid rgba(17, 16, 14, 0.16);
    font-size: 0.58rem;
  }

  body.is-reach-mode .mobile-reach-time-control .mobile-time-range-label strong b,
  body.is-reach-mode .mobile-reach-time-control .mobile-time-range-label strong i {
    display: block;
    letter-spacing: 0;
    line-height: 1;
  }

  body.is-reach-mode .mobile-reach-time-control .mobile-time-range-label strong b {
    font-size: 1.02rem;
    font-weight: 760;
  }

  body.is-reach-mode .mobile-reach-time-control .mobile-time-range-label strong i {
    margin-top: 1px;
    color: rgba(22, 20, 15, 0.52);
    font-family: var(--font-rail-label, var(--font-main));
    font-size: 0.6875rem;
    font-style: normal;
    font-weight: 820;
    text-transform: uppercase;
  }

  .mobile-sheet[data-snap="full"] > .mobile-mode-control,
  .mobile-sheet[data-snap="full"] > .mobile-surface-story-toggle {
    margin-block: 0;
  }
}

@media (max-width: 380px) {
  body.is-reach-mode .mobile-reach-time-control {
    right: 10px;
    width: min(196px, calc(100% - 174px));
    min-height: 30px;
  }

  .mobile-time-step-button {
    width: 30px;
    height: 36px;
  }

  body.is-reach-mode .mobile-reach-time-control .mobile-time-range-label {
    --mobile-map-label-width: 32px;
    --mobile-map-value-width: 34px;
  }
}

@media (max-width: 374px) {
  body.is-reach-mode .mobile-reach-time-control {
    right: 10px;
    width: min(300px, calc(100% - 72px));
  }

  .mobile-collapsed-mode-control .mode-button {
    padding: 0 3px 0 10px;
    letter-spacing: 0;
  }

  body.is-map-active .mobile-sheet[data-snap="collapsed"] .mobile-collapsed-mode-control .mode-button {
    letter-spacing: 0;
  }

  .mobile-collapsed-poster-button {
    font-size: 0;
    letter-spacing: 0;
  }
}

@media (max-width: 980px) {
  body.is-map-active .mobile-map-control-rail {
    top: calc(env(safe-area-inset-top) + 120px);
  }

  body.is-map-active .legend {
    top: calc(env(safe-area-inset-top) + 178px);
  }

  body.is-map-active:has(.mobile-map-search-form:focus-within) .mobile-map-control-rail,
  body.is-map-active:has(.mobile-map-search-results:not(:empty)) .mobile-map-control-rail,
  body.is-map-active:has(.mobile-map-search-form:focus-within) .legend,
  body.is-map-active:has(.mobile-map-search-results:not(:empty)) .legend {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
  }

  body.is-map-active:has(.mobile-map-search-form:focus-within) .mobile-map-search-form,
  body.is-map-active:has(.mobile-map-search-results:not(:empty)) .mobile-map-search-form {
    z-index: 12;
  }
}

@media (min-width: 620px) and (max-width: 980px) {
  body.is-map-active .mobile-map-search-form {
    width: min(540px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
  }
}

@media (max-width: 374px) {
  body.is-map-active .mobile-map-search-form {
    top: calc(env(safe-area-inset-top) + 8px);
    width: calc(100vw - 18px);
    max-width: calc(100vw - 18px);
  }

  .mobile-map-search-row input {
    padding-inline: 8px;
  }
}

@media (max-width: 760px) {
  .mobile-collapsed-mode-control .mode-button strong,
  body.is-map-active .mobile-sheet[data-snap="collapsed"] .mobile-collapsed-mode-control .mode-button strong {
    font-size: 0.65625rem;
    letter-spacing: 0;
  }
}

@media (max-width: 420px) {
  :is(.mobile-map-spatial-view-guide, .mobile-spatial-view-guide) .spatial-view-text[data-compact-en] {
    font-size: 0;
  }

  :is(.mobile-map-spatial-view-guide, .mobile-spatial-view-guide) .spatial-view-text[data-compact-en]::after {
    content: attr(data-compact-en);
    font-size: var(--type-micro);
    font-weight: 700;
    letter-spacing: 0.02em;
  }

}

/* Three equal mode columns use compact real text on phones; the complete task
 * names remain on each button's aria-label. */
@media (max-width: 430px) {
  html body.is-map-active #mobileSheet.mobile-sheet
    > .mobile-mode-control .mode-button .mobile-mode-copy > strong {
    font-size: 11px;
    letter-spacing: 0;
  }
}
