.screen:has(.chat-toolbar) > .page-header .header-actions {
  display: none;
}

.screen:has(.chat-toolbar) > .intro {
  margin-top: 0;
  padding-top: 8px;
}

#app > .screen {
  top: 28px;
}

#device > .account-layer {
  top: 28px;
}

.global-balance-eye {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #66809a;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}

.global-balance-eye svg {
  width: 21px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.global-balance-eye .eye-slash { display: none; }
.global-balance-eye.is-hidden .eye-slash { display: block; }
.global-balance-eye:active { background: rgba(59, 126, 178, .1); }

/* Keep every first-level page on one bottom-navigation implementation. */
#app > .bottom-nav.sunshine-nav {
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 69px;
  padding: 6px 6px 7px;
  overflow: hidden;
}

#app > .bottom-nav.sunshine-nav .nav-item {
  min-width: 0;
  min-height: 0;
  padding: 3px 2px 5px;
}

#app > .bottom-nav.sunshine-nav .nav-item.active::after {
  bottom: 0;
}

#app .page-header,
#app .chat-appbar,
#app .chat-search-appbar,
#app .co-header,
#app .ho-header,
#app .wo-header,
#app .chat-scrolled .chat-appbar {
  border-bottom: 0;
  box-shadow: none;
}

@media (max-width: 760px) {
  #app > .screen {
    top: calc(28px + env(safe-area-inset-top));
    bottom: calc(69px + env(safe-area-inset-bottom));
  }

  #device > .account-layer {
    top: calc(28px + env(safe-area-inset-top));
  }

  #app > .bottom-nav.sunshine-nav {
    height: calc(69px + env(safe-area-inset-bottom));
    padding-bottom: calc(7px + env(safe-area-inset-bottom));
  }
}

/* The browser viewport may change, but the prototype remains a scaled phone. */
@media (max-width: 760px) {
  .stage {
    display: grid;
    grid-template-columns: 1fr;
    place-items: start center;
    min-height: 100dvh;
    padding: 16px;
    overflow: auto;
    background: radial-gradient(circle at 65% 10%, #fff 0, #eef3f0 42%, #e4eae6 100%);
  }

  .device-wrap {
    display: grid;
    place-items: center;
    min-width: 0;
  }

  #device.device {
    width: 375px;
    height: 812px;
    border-radius: 38px;
    box-shadow: 0 0 0 8px #101714, 0 0 0 10px #313b36, var(--shadow);
  }

  #device.device::after { display: block; }
  .prototype-note { display: none; }
  #app > .status-bar { height: 32px; padding-top: 0; }
  #app > .screen { top: 32px; bottom: 69px; }
  #app > .bottom-nav.sunshine-nav { height: 69px; padding-bottom: 6px; }
}
