html:root body.ui-system .glass-panel {
  scrollbar-gutter: auto;
  scrollbar-color: hsl(var(--ui-hue) 12% 67% / .38) transparent;
}

html:root body.ui-system .glass-panel.glass-collapsed[data-glass-kind] {
  --rail-control: 44px;
  padding: 6px !important;
  gap: 4px;
}

html:root body.ui-system .glass-collapsed[data-glass-kind] > :is(.glass-panel-head, .glass-compact-rail, .glass-panel-footer) {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
}

html:root body.ui-system .glass-collapsed[data-glass-kind] .glass-panel-head > strong { display: none }

html:root body.ui-system .glass-collapsed[data-glass-kind] :is(.glass-collapse, .glass-shortcut, .glass-panel-footer button) {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 var(--rail-control);
  width: var(--rail-control);
  height: var(--rail-control);
  margin: 0;
  padding: 0 !important;
  background: transparent !important;
  color: var(--ui-ink) !important;
}

html:root body.ui-system .glass-collapsed[data-glass-kind] :is(.glass-collapse, .glass-shortcut, .glass-panel-footer button) svg {
  display: block;
  width: 21px;
  height: 21px;
  padding: 0;
  margin: 0;
  stroke-width: 1.65;
  background: transparent;
  color: currentColor;
}

html:root body.ui-system .glass-collapsed[data-glass-kind] :is(.glass-collapse, .glass-shortcut, .glass-panel-footer button):hover {
  background: var(--ui-control-surface) !important;
}

html:root body.ui-system .glass-collapsed[data-glass-kind] .glass-shortcut.is-active {
  background: var(--ui-selected-bg) !important;
  color: var(--ui-selected-ink) !important;
}

html:root body.ui-system .glass-panel-head .cap-panel-handle svg,
html:root body.ui-system .imm-actions .cap-panel-handle svg { width: 16px; height: 16px; stroke-width: 2.5 }

html:root body.ui-system .glass-panel .project-card > :is(span,div) { min-width: 0; overflow-wrap: anywhere }

html:root body.ui-system .immersive-hud .cap-compass {
  box-shadow: var(--ui-shadow);
  color: var(--ui-ink) !important;
}

@media (min-width: 701px) {
  html:root body.ui-system .glass-collapsed[data-glass-kind]:not(.hx-booking-band) {
    display: grid;
    justify-items: center;
    align-self: start;
    width: 56px;
    margin-inline: auto;
  }
  html:root body.ui-system .glass-collapsed[data-glass-kind] .glass-panel-footer::before {
    content: '';
    width: 18px;
    height: 1px;
    margin-top: 3px;
    background: var(--ui-edge);
  }
  html:root body.ui-system .glass-collapsed[data-glass-kind] > .glass-panel-footer { flex-direction: column }
}

@media (min-width: 701px) and (max-width: 1050px) {
  html:root body.ui-system .glass-collapsed:is(.fx-apartments, .hx-details)[data-glass-kind] {
    display: flex;
    width: 100%;
  }
}

@media (max-width: 700px) {
  html:root body.ui-system .glass-collapsed[data-glass-kind] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin-inline: 0;
  }
  html:root body.ui-system .glass-collapsed[data-glass-kind] > .glass-compact-rail {
    flex: 0 1 auto;
    min-width: 0;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .glass-collapsed[data-glass-kind] .glass-shortcut::after { display: none }
  html:root body.ui-system .project-rail.glass-collapsed[data-glass-kind] {
    display: grid;
    grid-template-columns: repeat(8, minmax(44px, 1fr));
    justify-items: center;
  }
  html:root body.ui-system .project-rail.glass-collapsed[data-glass-kind] > :is(.glass-panel-head,.glass-compact-rail,.glass-panel-footer) {
    display: contents;
  }
  .scene-wrap .immersive-hud:has(.cap-weather[open]) { overflow: visible }
  .scene-wrap .cap-weather[open] {
    position: absolute;
    top: 58px;
    right: 108px;
    width: min(225px, calc(100vw - 128px));
    max-width: none;
    box-shadow: 0 10px 32px #102b3055;
  }
  html:root body.ui-system .journey-dock { padding: 12px; width: 290px }
  .journey-dock .journey-dock-top img { width: 34px; height: 40px }
  .journey-dock .journey-dock-top small { margin-bottom: 2px }
  .journey-dock p { margin: 7px 0; font-size: 12px; line-height: 1.45 }
  .journey-dock .journey-dock-actions button { padding-block: 8px }
}

@media (max-width: 425px) {
  html:root body.ui-system .project-rail.glass-collapsed[data-glass-kind] {
    grid-template-columns: repeat(4, minmax(44px, 1fr));
  }
}
