/* v177 home control ownership: evolution label and the two action rows. */

@scope (body[data-ui-release="177"]) {
:scope #asset-title .tier-copy {
  align-items: baseline !important;
  row-gap: 8px !important;
}

:scope #asset-title .tier-next-label {
  align-items: baseline;
  color: var(--ui-foreground) !important;
  display: flex !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  gap: 0;
  line-height: 18px !important;
  min-width: 0;
  overflow: hidden !important;
  white-space: nowrap !important;
}

:scope #asset-title .tier-target-name {
  color: var(--ui-foreground);
  font: inherit;
  font-weight: 850;
}

:scope #asset-title .tier-target-suffix {
  color: var(--ui-foreground-secondary);
  font-weight: 650;
}

:scope #asset-title .tier-progress-pct {
  align-self: baseline;
  line-height: 18px !important;
}

:scope #home-control-deck {
  background: var(--ui-surface-muted);
  border: 0;
  border-radius: 0;
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 8px 8px max(8px, env(safe-area-inset-bottom));
}

:scope .asset-overview {
  position: relative;
  z-index: 2;
}

:scope #asset-summary-toggle{padding-inline:10px!important}
:scope .asset-glance{margin-left:10px!important}

:scope #asset-summary-details:not([hidden]) {
  position: absolute;
  top: calc(100% + 10px);
  right: calc(-1 * var(--topbar-side));
  left: calc(-1 * var(--topbar-side));
  z-index: 80;
  box-sizing: border-box;
  width: auto !important;
  max-height: min(58dvh, 520px) !important;
  margin: 0 !important;
  overflow: hidden auto !important;
  overscroll-behavior: contain;
  border: 1px solid var(--ui-hairline);
  border-right: 0;
  border-left: 0;
  border-radius: 0 0 8px 8px;
  background: var(--ui-surface-muted) !important;
  box-shadow: 0 14px 28px rgb(25 31 40 / 18%);
}

:scope[data-active-panel="home"]:has(#asset-summary-details:not([hidden])) #main-screen {
  overflow: hidden !important;
}

:scope #panel-home #home-control-deck #action-buttons,
:scope #panel-home #home-control-deck #home-feature-nav {
  background: transparent !important;
  gap: 6px !important;
  margin: 0 !important;
  padding: 0 !important;
}

:scope #panel-home #home-control-deck #action-buttons > button,
:scope #panel-home #home-control-deck #home-feature-nav > .home-feature-btn {
  background: var(--ui-surface) !important;
  border: 0 !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

:scope #panel-home #home-control-deck #home-feature-nav > .home-feature-btn.active,
:scope #panel-home #home-control-deck #home-feature-nav > .home-feature-btn:focus-visible {
  background: var(--ui-surface) !important;
  color: var(--ui-primary) !important;
  outline: 2px solid color-mix(in srgb, var(--ui-primary) 22%, transparent);
  outline-offset: -2px;
}

:scope #panel-home #home-control-deck :is(#free-cash-btn, #boost-btn) {
  background: var(--ui-surface) !important;
}

:scope #panel-milestones .housing-complete-note {
  color: var(--ui-foreground-secondary);
  background: var(--ui-surface);
  border-color: var(--ui-hairline);
}

@media (max-width: 360px), (max-height: 760px) and (max-width: 699px) {
  :scope #asset-title .tier-next-label {
    font-size: 11px !important;
  }

  :scope #asset-title .tier-copy {
    column-gap: 4px !important;
  }

  :scope .topbar-btns {
    gap: 4px !important;
  }

  :scope .topbar-row1 :is(#ranking-btn, #utility-btn) {
    min-height: 38px !important;
    min-width: 38px !important;
    padding-inline: 8px !important;
  }

  :scope #home-control-deck {
    gap: 4px;
    padding: 6px 6px max(8px, env(safe-area-inset-bottom));
  }

  :scope #panel-home #home-control-deck #action-buttons,
  :scope #panel-home #home-control-deck #home-feature-nav {
    gap: 4px !important;
  }
}

}
