/* Final interface-colour override.
   Map data ramps keep their original colours; this file only changes the UI chrome. */
:root {
  --ui-accent: #557f9d;
  --ui-accent-bright: #8fb7d2;
  --ui-accent-deep: #24475f;
  --ui-accent-soft: rgba(85, 127, 157, 0.17);
  --ui-indigo: #8f9ac8;
  --ui-indigo-soft: rgba(117, 129, 183, 0.17);
}

button:focus-visible,
select:focus-visible,
a:focus-visible {
  outline-color: var(--ui-accent-bright);
}

a,
a:link,
a:visited,
.eyebrow,
.section-kicker,
.control-panel .section-kicker,
.walking-city-title,
.about-button small,
.panel-footer button span,
.detail-row > span:last-child,
.select-wrap::after,
.context-select-wrap > span,
.icon-button:hover,
.result-hero .result-type,
.profile-copy small,
.primary-stat strong,
.dialog-scroll h3 small,
.explain-number,
.dialog-links a:hover,
.map-popup small,
.mobile-dock small {
  color: var(--ui-accent-bright);
}

.skip-link,
.button-primary {
  border-color: var(--ui-accent-bright);
  background: var(--ui-accent-deep);
  color: #f3f7fa !important;
}

.button-primary:hover {
  background: var(--ui-accent);
}

.control-scroll,
.dialog-scroll,
.result-content {
  scrollbar-color: rgba(85, 127, 157, 0.62) transparent;
}

.control-scroll::-webkit-scrollbar-thumb,
.dialog-scroll::-webkit-scrollbar-thumb,
.result-content::-webkit-scrollbar-thumb {
  background: rgba(85, 127, 157, 0.62);
}

.section-value,
.segmented-control button[aria-pressed="true"],
.style-switch button[aria-pressed="true"],
.context-time-switch button[aria-pressed="true"],
.filter-options button[aria-pressed="true"] {
  border-color: rgba(111, 158, 190, 0.5);
  background: linear-gradient(180deg, rgba(67, 109, 139, 0.28), rgba(44, 77, 101, 0.18));
  color: var(--ui-accent-bright);
}

.filter-options button[aria-pressed="true"]::after {
  border-color: var(--ui-accent-bright);
  background: var(--ui-accent-bright);
}

.panel-footer button:hover,
.about-icon {
  border-color: rgba(111, 158, 190, 0.48);
  background: var(--ui-accent-soft);
}

.about-button:hover,
.icon-button:hover {
  border-color: rgba(111, 158, 190, 0.48);
  background: var(--ui-accent-soft);
}

.about-icon {
  color: var(--ui-accent-bright);
}

.lens-selector-section {
  background:
    radial-gradient(circle at 18% 10%, rgba(85, 127, 157, 0.1), transparent 42%),
    radial-gradient(circle at 90% 90%, rgba(117, 129, 183, 0.07), transparent 40%);
}

#lens-tab-coaccess[aria-selected="true"] {
  border-color: rgba(111, 158, 190, 0.7);
  background:
    radial-gradient(circle at 12% 50%, rgba(85, 127, 157, 0.24), transparent 40%),
    linear-gradient(100deg, rgba(47, 84, 111, 0.28), rgba(47, 84, 111, 0.07));
  box-shadow: inset 3px 0 0 var(--ui-accent-bright), 0 8px 24px rgba(0, 0, 0, 0.2);
}

#lens-tab-access[aria-selected="true"] {
  border-color: rgba(143, 154, 200, 0.64);
  background:
    radial-gradient(circle at 12% 50%, rgba(117, 129, 183, 0.2), transparent 40%),
    linear-gradient(100deg, rgba(72, 82, 132, 0.24), rgba(72, 82, 132, 0.06));
  box-shadow: inset 3px 0 0 var(--ui-indigo), 0 8px 24px rgba(0, 0, 0, 0.2);
}

#lens-tab-coaccess[aria-selected="true"] .lens-state {
  border-color: rgba(111, 158, 190, 0.46);
  background: var(--ui-accent-soft);
  color: var(--ui-accent-bright);
}

#lens-tab-access[aria-selected="true"] .lens-state {
  border-color: rgba(143, 154, 200, 0.46);
  background: var(--ui-indigo-soft);
  color: #aeb8df;
}

.lens-switch-icon.coaccess i,
.lens-switch-icon.coaccess i:nth-child(2) {
  background: var(--ui-accent-bright);
}

.lens-switch-icon.access {
  color: #aeb8df;
}

.coaccessibility-section {
  background: linear-gradient(135deg, rgba(85, 127, 157, 0.065), transparent 48%);
}

.accessibility-section {
  background: linear-gradient(135deg, rgba(117, 129, 183, 0.065), transparent 48%);
}

.control-panel .lens-number {
  border-color: rgba(111, 158, 190, 0.48);
  background: rgba(47, 84, 111, 0.16);
  color: var(--ui-accent-bright);
}

.control-panel .accessibility-section .lens-number {
  border-color: rgba(143, 154, 200, 0.48);
  background: rgba(72, 82, 132, 0.16);
  color: #aeb8df;
}

.result-hero {
  border-color: rgba(111, 158, 190, 0.24);
  background: linear-gradient(145deg, rgba(47, 84, 111, 0.2), rgba(255, 255, 255, 0.02));
}

.result-hero::after {
  border-color: rgba(111, 158, 190, 0.18);
  box-shadow: 0 0 0 18px rgba(85, 127, 157, 0.04), 0 0 0 40px rgba(85, 127, 157, 0.022);
}

.lens-toolbar-label {
  color: rgba(143, 183, 210, 0.82);
}

.story-dots button[aria-current="step"],
.contact-section-heading h4,
.contact-tools h4,
.contact-paper-card.theory small,
.story-paper-link.theory small {
  color: var(--ui-accent-bright);
}

.story-dots button[aria-current="step"]::before {
  background: var(--ui-accent-bright);
}

.story-paper-link.theory,
.contact-paper-card.theory {
  border-color: rgba(111, 158, 190, 0.35);
  background: rgba(47, 84, 111, 0.1);
}

.story-paper-link.empirical,
.contact-paper-card.empirical {
  border-color: rgba(143, 154, 200, 0.34);
  background: rgba(72, 82, 132, 0.1);
}

.story-paper-link.empirical small,
.contact-paper-card.empirical small,
.contact-paper-card.empirical .contact-paper-index,
.contact-tool-card.streets small {
  color: #aeb8df;
}

.contact-tool-card.streets::before {
  background: var(--ui-indigo);
}

.contact-author h4 {
  color: #aeb8df;
}

.contact-tool-card.streets .contact-tool-icon {
  border-color: rgba(143, 154, 200, 0.38);
  background: rgba(117, 129, 183, 0.1);
  color: #aeb8df;
}

/* Panel-first map parameters. The controls remain the original controls and
   handlers; only their composition changes from a floating bar to a setup card. */
.parameter-section {
  padding: 13px 14px 14px;
  background:
    radial-gradient(circle at 100% 0, rgba(85, 127, 157, 0.09), transparent 48%),
    rgba(255, 255, 255, 0.01);
}

.parameter-section .section-heading {
  margin-bottom: 10px;
}

.parameter-section .section-heading h2 {
  font-size: 16px;
}

.panel-context-bar,
body.result-open .panel-context-bar {
  position: static;
  z-index: auto;
  top: auto;
  right: auto;
  left: auto;
  display: grid;
  width: 100%;
  min-height: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.panel-context-bar .parameter-field,
.panel-context-bar .context-search,
.panel-context-bar .context-city,
.panel-context-bar .context-time,
.panel-context-bar .context-style {
  display: grid;
  min-width: 0;
  align-items: stretch;
  gap: 5px;
}

.panel-context-bar .parameter-filter,
.panel-context-bar .parameter-appearance {
  grid-column: 1 / -1;
}

.panel-context-bar .context-label {
  display: block;
  min-height: 0;
  padding: 0 2px;
  color: rgba(214, 223, 228, 0.62);
  font-size: 9px;
  font-weight: 760;
  letter-spacing: 0.09em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: normal;
}

.panel-context-bar .parameter-filter > .context-label,
.panel-context-bar .parameter-appearance > .context-label {
  position: relative;
  padding-bottom: 6px;
  text-align: center;
}

.panel-context-bar .parameter-filter > .context-label::after,
.panel-context-bar .parameter-appearance > .context-label::after {
  position: absolute;
  right: 7px;
  bottom: 0;
  left: 7px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(126, 174, 207, 0.42) 18%, rgba(126, 174, 207, 0.42) 82%, transparent);
  content: '';
}

.panel-context-bar .walking-city-title {
  color: var(--ui-accent-bright);
}

.panel-context-bar .context-select-wrap,
.panel-context-bar .context-select-wrap select {
  width: 100%;
  min-width: 0;
}

.panel-context-bar .geocoder-slot {
  width: 100%;
  min-width: 0;
  margin: 0;
}

.panel-context-bar .geocoder-slot .mapboxgl-ctrl-geocoder--input {
  height: 42px;
}

.panel-context-bar .context-select-wrap select {
  min-height: 42px;
  padding: 7px 28px 7px 10px;
  border-color: rgba(111, 158, 190, 0.3);
  background: rgba(5, 10, 13, 0.34);
  color: var(--ink);
  font-size: 12px;
}

.panel-context-bar .parameter-time-switch {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  gap: 4px;
  padding: 3px;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(5, 10, 13, 0.34);
}

.panel-context-bar .parameter-time-switch button {
  min-height: 34px;
  gap: 4px;
  padding: 5px 4px;
}

.panel-context-bar .parameter-time-switch button b {
  font-size: 14px;
}

.panel-context-bar .parameter-time-switch button span {
  font-size: 9px;
}

.parameter-filter-button {
  display: grid;
  width: 100%;
  min-height: 50px;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 7px 10px 7px 7px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--ink-soft);
  cursor: pointer;
  text-align: left;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.parameter-filter-button:hover {
  border-color: rgba(111, 158, 190, 0.5);
  background: var(--ui-accent-soft);
  transform: translateY(-1px);
}

.parameter-filter-button > span:nth-child(2) b,
.parameter-filter-button > span:nth-child(2) small {
  display: block;
}

.parameter-filter-button b {
  color: var(--ink);
  font-size: 12.5px;
}

.parameter-filter-button small {
  margin-top: 2px;
  color: var(--ink-muted);
  font-size: 10.5px;
  line-height: 1.25;
}

.parameter-filter-button > span:last-child {
  color: var(--ui-accent-bright);
  font-size: 20px;
}

.parameter-filter-button.has-filter {
  border-color: rgba(111, 158, 190, 0.56);
  background: var(--ui-accent-soft);
}

.parameter-place-tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.parameter-place-button {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 57px;
  grid-template-columns: 32px minmax(0, 1fr) 7px;
  align-items: center;
  gap: 7px;
  padding: 6px 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.028);
  color: var(--ink-muted);
  cursor: pointer;
  text-align: left;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease, transform 150ms ease;
}

.parameter-place-button:hover {
  border-color: rgba(126, 174, 207, 0.58);
  background: rgba(85, 127, 157, 0.13);
  color: var(--ink);
  transform: translateY(-1px);
}

.parameter-place-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(143, 183, 210, 0.3);
  border-radius: 9px;
  background: rgba(85, 127, 157, 0.12);
  color: var(--ui-accent-bright);
}

.parameter-place-icon svg,
.parameter-tool-icon svg {
  width: 21px;
  height: 21px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.parameter-control-copy b,
.parameter-control-copy small {
  display: block;
}

.parameter-control-copy b {
  color: var(--ink);
  font-size: 11.5px;
}

.parameter-control-copy small {
  margin-top: 2px;
  overflow: hidden;
  color: var(--ink-muted);
  font-size: 9px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.parameter-state-dot {
  width: 6px;
  height: 6px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.parameter-place-button[aria-pressed="true"],
.parameter-place-button.has-filter {
  border-color: rgba(126, 174, 207, 0.66);
  background: linear-gradient(160deg, rgba(67, 109, 139, 0.3), rgba(35, 63, 82, 0.16));
  color: var(--ink);
  box-shadow: inset 0 -2px 0 rgba(143, 183, 210, 0.62);
}

.parameter-place-button[aria-pressed="true"] .parameter-state-dot,
.parameter-place-button.has-filter .parameter-state-dot {
  border-color: var(--ui-accent-bright);
  background: var(--ui-accent-bright);
  box-shadow: 0 0 0 3px rgba(85, 127, 157, 0.16), 0 0 9px rgba(111, 158, 190, 0.46);
}

.filter-bulk-actions {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding-bottom: 4px;
}

.filter-options .filter-bulk-action {
  min-height: 42px;
  border-color: rgba(111, 158, 190, 0.28);
  background: rgba(85, 127, 157, 0.07);
  color: var(--ui-accent-bright);
  font-weight: 720;
}

.filter-options .filter-bulk-action:hover {
  border-color: rgba(111, 158, 190, 0.5);
  background: rgba(85, 127, 157, 0.14);
}

.parameter-tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.parameter-tool-button {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 57px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 3px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--ink-muted);
  cursor: pointer;
  font-size: 10.5px;
  font-weight: 700;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease, transform 150ms ease;
}

.parameter-tool-button:hover {
  border-color: rgba(111, 158, 190, 0.46);
  background: rgba(85, 127, 157, 0.1);
  color: var(--ink);
  transform: translateY(-1px);
}

.parameter-tool-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: var(--ui-accent-bright);
  font-size: 18px;
  line-height: 1;
}

.parameter-tool-button > i {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 6px;
  height: 6px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.parameter-tool-button[aria-pressed="true"] {
  border-color: rgba(111, 158, 190, 0.62);
  background: linear-gradient(160deg, rgba(67, 109, 139, 0.26), rgba(35, 63, 82, 0.14));
  color: var(--ink);
  box-shadow: inset 0 -2px 0 rgba(143, 183, 210, 0.56);
}

.parameter-tool-button[aria-pressed="true"] > i {
  border-color: var(--ui-accent-bright);
  background: var(--ui-accent-bright);
  box-shadow: 0 0 0 3px rgba(85, 127, 157, 0.14);
}

.lens-tool-icon.streets {
  border-color: rgba(111, 158, 190, 0.36);
  background: rgba(85, 127, 157, 0.12);
  color: var(--ui-accent-bright);
}

.coaccess-tool-grid .encounter-key {
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 180ms ease, margin 180ms ease, opacity 160ms ease;
}

.coaccess-tool-grid .encounter-key.is-active {
  max-height: 48px;
  margin-top: 4px;
  opacity: 1;
}

@media (min-width: 761px) {
  .desktop-context-slot {
    position: fixed;
    z-index: 21;
    top: 12px;
    right: 184px;
    left: 374px;
    display: flex;
    justify-content: center;
    pointer-events: none;
    transition: opacity 170ms ease, transform 190ms ease;
  }

  .desktop-context-slot .parameter-section {
    width: min(100%, 720px);
    padding: 9px;
    border: 1px solid rgba(126, 174, 207, 0.26);
    border-radius: 15px;
    background:
      linear-gradient(150deg, rgba(85, 127, 157, 0.15), transparent 36%),
      rgba(13, 22, 28, 0.96);
    box-shadow:
      0 20px 52px rgba(0, 0, 0, 0.42),
      0 0 0 1px rgba(85, 127, 157, 0.08),
      0 0 28px rgba(36, 71, 95, 0.18),
      inset 0 1px rgba(255, 255, 255, 0.055);
    pointer-events: auto;
    -webkit-backdrop-filter: blur(22px) saturate(115%);
    backdrop-filter: blur(22px) saturate(115%);
  }

  .desktop-context-slot .parameter-section > .section-heading {
    display: none;
  }

  .desktop-context-slot .panel-context-bar,
  body.result-open .desktop-context-slot .panel-context-bar {
    grid-template-columns: 126px 110px 130px 104px 160px;
    justify-content: center;
    gap: 8px;
  }

  .desktop-context-slot .panel-context-bar .parameter-filter,
  .desktop-context-slot .panel-context-bar .parameter-appearance {
    grid-column: auto;
  }

  .desktop-context-slot .panel-context-bar .context-label {
    min-height: 10px;
    overflow: hidden;
    color: rgba(218, 231, 239, 0.74);
    font-size: 8.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .desktop-context-slot .panel-context-bar .context-select-wrap select,
  .desktop-context-slot .panel-context-bar .parameter-time-switch,
  .desktop-context-slot .geocoder-slot .mapboxgl-ctrl-geocoder--input {
    min-height: 40px;
    height: 40px;
  }

  .desktop-context-slot .panel-context-bar .context-select-wrap select {
    padding-left: 9px;
    font-size: 11px;
  }

  .desktop-context-slot .panel-context-bar .parameter-time-switch button {
    min-height: 32px;
  }

  .desktop-context-slot .parameter-filter-button {
    min-height: 40px;
    grid-template-columns: 27px minmax(0, 1fr) auto;
    gap: 7px;
    padding: 4px 7px 4px 5px;
  }

  .desktop-context-slot .parameter-place-tools {
    height: 40px;
    gap: 5px;
  }

  .desktop-context-slot .parameter-place-button {
    min-height: 40px;
    grid-template-columns: 1fr;
    place-items: center;
    padding: 4px;
    border-radius: 9px;
  }

  .desktop-context-slot .parameter-place-icon {
    width: 29px;
    height: 29px;
    border: 0;
    background: transparent;
  }

  .desktop-context-slot .parameter-place-icon svg {
    width: 23px;
    height: 23px;
    stroke-width: 1.75;
  }

  .desktop-context-slot .parameter-control-copy {
    display: none;
  }

  .desktop-context-slot .parameter-place-button .parameter-state-dot {
    position: absolute;
    top: 4px;
    right: 4px;
  }

  .desktop-context-slot .parameter-filter-button .lens-tool-icon {
    width: 27px;
    height: 27px;
    flex-basis: 27px;
    border-radius: 7px;
  }

  .desktop-context-slot .parameter-filter-button b {
    font-size: 10.5px;
  }

  .desktop-context-slot .parameter-filter-button small {
    overflow: hidden;
    font-size: 8.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .desktop-context-slot .parameter-tool-grid {
    gap: 4px;
  }

  .desktop-context-slot .parameter-tool-button {
    min-height: 40px;
    gap: 0;
    padding: 4px 3px;
    border-radius: 8px;
  }

  .desktop-context-slot .parameter-tool-icon {
    width: 27px;
    height: 27px;
  }

  .desktop-context-slot .parameter-tool-icon svg {
    width: 20px;
    height: 20px;
  }

  .desktop-context-slot .parameter-control-name {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .desktop-context-slot .parameter-tool-button > i {
    top: 4px;
    right: 4px;
    width: 5px;
    height: 5px;
  }

  .desktop-context-slot [data-tooltip]::before {
    position: absolute;
    z-index: 90;
    top: calc(100% + 11px);
    left: 50%;
    width: max-content;
    max-width: 230px;
    padding: 8px 10px;
    border: 1px solid rgba(126, 174, 207, 0.38);
    border-radius: 8px;
    background: rgba(12, 22, 29, 0.98);
    box-shadow: 0 13px 30px rgba(0, 0, 0, 0.44);
    color: #e1ebf0;
    content: attr(data-tooltip);
    font-size: 11.5px;
    font-weight: 560;
    line-height: 1.35;
    opacity: 0;
    pointer-events: none;
    text-align: left;
    transform: translate(-50%, -3px);
    transition: opacity 130ms ease, transform 130ms ease, visibility 130ms ease;
    visibility: hidden;
    white-space: normal;
  }

  .desktop-context-slot [data-tooltip]:focus-visible::before {
    opacity: 1;
    transform: translate(-50%, 0);
    visibility: visible;
  }

  @media (hover: hover) {
    .desktop-context-slot [data-tooltip]:hover::before {
      opacity: 1;
      transform: translate(-50%, 0);
      visibility: visible;
    }
  }

  .desktop-context-slot .parameter-tool-button:last-child::before {
    right: 0;
    left: auto;
    transform: translate(0, -3px);
  }

  .desktop-context-slot .parameter-tool-button:last-child:focus-visible::before {
    transform: translate(0, 0);
  }

  @media (hover: hover) {
    .desktop-context-slot .parameter-tool-button:last-child:hover::before {
      transform: translate(0, 0);
    }
  }

  .panel-context-bar[aria-hidden="true"] {
    opacity: 0;
    pointer-events: none;
  }

  body.story-open .desktop-context-slot,
  body.overlay-open .desktop-context-slot {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-5px);
  }

  body.result-open .result-panel {
    top: 96px;
  }

  .control-panel.has-active-lens .lens-switcher {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .control-panel.has-active-lens .lens-switcher button {
    min-height: 64px;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 8px;
    padding: 8px;
  }

  .control-panel.has-active-lens .lens-switch-icon {
    width: 34px;
    height: 34px;
  }

  .control-panel.has-active-lens .lens-state,
  .control-panel.has-active-lens .lens-switcher small {
    display: none;
  }

  .control-panel.has-active-lens .lens-switcher b {
    font-size: 12px;
  }
}

@media (min-width: 761px) and (max-width: 1340px) {
  .desktop-context-slot {
    top: 68px;
    right: 12px;
  }

  .desktop-context-slot .parameter-section {
    width: min(100%, 460px);
  }

  .desktop-context-slot .panel-context-bar,
  body.result-open .desktop-context-slot .panel-context-bar {
    grid-template-columns: 150px 116px 136px;
    justify-content: center;
  }

  .desktop-context-slot .panel-context-bar .parameter-filter {
    grid-column: 1 / 2;
  }

  .desktop-context-slot .panel-context-bar .parameter-appearance {
    grid-column: 2 / 4;
  }

  body.result-open .result-panel {
    top: 222px;
  }
}

@media (min-width: 761px) and (max-width: 900px) {
  .desktop-context-slot .panel-context-bar,
  body.result-open .desktop-context-slot .panel-context-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }

  .desktop-context-slot .panel-context-bar .parameter-filter {
    grid-column: auto;
  }

  .desktop-context-slot .panel-context-bar .parameter-appearance {
    grid-column: 1 / -1;
  }

  body.result-open .result-panel {
    top: 284px;
  }
}

@media (max-width: 760px) {
  .mobile-context-slot {
    display: block;
    padding: 0;
    border: 0;
  }

  .parameter-section {
    padding: 15px 18px 16px;
  }

  .panel-context-bar,
  body.result-open .panel-context-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
    padding: 0;
  }

  .parameter-tool-button {
    min-height: 60px;
    font-size: 11px;
  }

  .parameter-control-name {
    display: inline;
  }
}
