/* The account controls use the same layout on every screen. */
body[data-route] .top-panel,
body[data-case-view="detail"] .top-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 78px;
}

body[data-route] .top-panel .profile-summary,
body[data-case-view="detail"] .top-panel .profile-summary {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  gap: 11px;
  padding: 0 2px;
}

body[data-route] .top-panel .avatar,
body[data-case-view="detail"] .top-panel .avatar {
  width: 58px;
  height: 58px;
  flex: none;
}

body[data-route] .top-panel .profile-copy,
body[data-case-view="detail"] .top-panel .profile-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  gap: 6px;
}

body[data-route] .top-panel .profile-name,
body[data-case-view="detail"] .top-panel .profile-name {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
}

.top-panel .profile-name-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-panel .profile-chevron {
  flex: none;
  margin-left: 4px;
}

body[data-route] .top-panel .balance-row,
body[data-case-view="detail"] .top-panel .balance-row {
  display: flex;
  flex: none;
  height: 31px;
  margin: 0;
  padding: 2px 7px 2px 9px;
  border-radius: 18px;
  background: #383b44;
}

body[data-route] .top-panel .balance-plus,
body[data-case-view="detail"] .top-panel .balance-plus {
  display: grid;
}

body[data-route] .top-panel .top-deposit,
body[data-case-view="detail"] .top-panel .top-deposit {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: auto;
  min-width: 146px;
  height: 50px;
  gap: 9px;
  overflow: hidden;
  padding: 0 15px 0 10px;
  border: 1px solid #76baff;
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(145deg, #5aafff 0%, #3889ed 47%, #1d62d0 100%);
  box-shadow: inset 0 1px 0 #ffffff82, inset 0 -3px 0 #0c4eaa72, 0 5px 16px #155aca6b;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .01em;
  text-shadow: 0 1px 2px #124383a6;
  transition: filter .2s ease, transform .2s ease, box-shadow .2s ease;
}

.top-panel .top-deposit::after {
  position: absolute;
  inset: 1px 2px auto;
  height: 45%;
  border-radius: inherit;
  background: linear-gradient(#ffffff30, #ffffff00);
  content: '';
  pointer-events: none;
}

.top-panel .deposit-icon-shell {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  flex: none;
  border: 1px solid #ffffff69;
  border-radius: 10px;
  background: #ffffff26;
  box-shadow: inset 0 1px 0 #ffffff40;
}

.top-panel .wallet-icon { width: 17px; height: 17px; }
.top-panel .deposit-label { position: relative; z-index: 1; }

body[data-route] .top-panel .top-deposit:hover,
body[data-case-view="detail"] .top-panel .top-deposit:hover {
  filter: brightness(1.08);
  box-shadow: inset 0 1px 0 #ffffff82, inset 0 -3px 0 #0c4eaa72, 0 7px 19px #155acaa3;
}

.profile-card h2 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 430px) {
  body[data-route] .top-panel,
  body[data-case-view="detail"] .top-panel {
    min-height: 75px;
    gap: 7px;
  }

  body[data-route] .top-panel .profile-summary,
  body[data-case-view="detail"] .top-panel .profile-summary { gap: 8px; padding: 0; }

  body[data-route] .top-panel .avatar,
  body[data-case-view="detail"] .top-panel .avatar { width: 54px; height: 54px; }

  body[data-route] .top-panel .profile-name,
  body[data-case-view="detail"] .top-panel .profile-name { font-size: 13px; }

  body[data-route] .top-panel .top-deposit,
  body[data-case-view="detail"] .top-panel .top-deposit {
    min-width: 122px;
    height: 46px;
    gap: 6px;
    padding: 0 10px 0 7px;
    border-radius: 15px;
    font-size: 12px;
  }

  .top-panel .deposit-icon-shell { width: 26px; height: 26px; border-radius: 8px; }
  .top-panel .wallet-icon { width: 15px; height: 15px; }
}

@media (max-width: 360px) {
  body[data-route] .top-panel .avatar,
  body[data-case-view="detail"] .top-panel .avatar { width: 52px; height: 52px; }

  body[data-route] .top-panel .top-deposit,
  body[data-case-view="detail"] .top-panel .top-deposit {
    min-width: 112px;
    gap: 5px;
    padding: 0 7px;
    font-size: 11px;
  }

  .top-panel .deposit-icon-shell { width: 24px; height: 24px; }
}
