.account-screen:has(.account-settings-page) {
  background: #fff;
  color: #191c1d;
}
.account-screen:has(.account-settings-page) #account-content {
  width: min(100%, 480px);
  padding-inline: 24px;
}
.account-screen .profile-page-header {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 12px;
}
.account-screen .profile-page-header .signin-back {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0;
  border-radius: 12px;
  background: #f5f6f6;
  color: #191c1d;
}
.account-screen .profile-page-header .signin-back svg {
  width: 22px;
  height: 22px;
}
.account-screen .profile-page-header h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  text-align: center;
  letter-spacing: -0.025em;
}
.account-screen .account-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 36px 0 32px;
  text-align: center;
}
.account-screen .account-profile-avatar {
  position: relative;
  padding: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin-bottom: 10px;
  border: 1px solid #e2e5e5;
  border-radius: 50%;
  background: #f5f6f6;
  color: #292d2e;
}
.account-screen .account-profile-avatar [data-profile-picture],
.account-screen .account-profile-avatar img {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
#avatar img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}
#avatar:not(.signed-out) {
  padding: 0;
  overflow: hidden;
}
#avatar > svg {
  width: 24px;
  height: 24px;
}
.account-screen .profile-picture-edit {
  position: absolute;
  right: -2px;
  bottom: -2px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #191c1d;
  color: #fff;
  font-size: 18px;
  line-height: 1;
}
.account-screen .profile-picture-actions {
  display: flex;
  gap: 16px;
  margin: -4px 0 12px;
}
.account-screen .account-profile-avatar .profile-picture-edit svg {
  width: 14px;
  height: 14px;
}
.account-screen .profile-picture-actions button {
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: #646b6d;
  font-size: 13px;
  cursor: pointer;
}
.account-screen .profile-picture-actions button[hidden] {
  display: none;
}
.account-screen #profile-picture-status {
  margin: 0 0 8px;
  color: #26715b;
  font-size: 13px;
}
.account-screen #profile-picture-status.error {
  color: #b83333;
}
.account-screen .account-profile-avatar svg {
  width: 32px;
  height: 32px;
}
.account-screen .account-profile strong {
  max-width: 100%;
  font-size: 21px;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}
.account-screen .account-profile > span:last-child {
  max-width: 100%;
  color: #858b8d;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.account-screen .account-settings-group {
  margin: 0;
}
.account-screen .account-menu-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 64px;
  margin: 0;
  padding: 16px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #191c1d;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.account-screen .account-menu-row > svg {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
}
.account-screen .account-menu-row > svg:last-child {
  flex-basis: 16px;
  width: 16px;
  height: 16px;
  margin-left: auto;
}
.account-screen .account-menu-label {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.account-screen .account-menu-label strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}
.account-screen .account-menu-label > span {
  display: block;
  margin-top: 4px;
  color: #7b8284;
  font-size: 12px;
  font-weight: 400;
}
.account-screen .account-verification-summary {
  margin: 0 0 12px;
  padding: 0 16px;
  border: 1px solid #e6e8e8;
  border-radius: 16px;
  background: #fafbfb;
}
.account-screen .account-verification-summary .verify-cta {
  min-height: 78px;
  padding: 16px 0;
}
.account-screen .account-verification-summary .status-chip {
  flex: 0 1 auto;
  max-width: 96px;
  margin: 0;
  padding: 5px 7px;
  border-radius: 6px;
  background: #eef0f0;
  color: #626a6c;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  white-space: normal;
}
.account-screen .account-verification-summary .status-chip.verified {
  background: #e8f4ed;
  color: #256941;
}
.account-screen .account-verification-summary p {
  margin: -2px 0 16px;
  color: #7b8284;
  font-size: 12px;
  line-height: 1.5;
}
.account-screen #account-password-status {
  margin-bottom: 0;
  color: #626a6c;
  font-size: 13px;
  line-height: 1.5;
}
.account-screen .account-preference-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0 16px;
}
.account-screen .account-preference-row label {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
}
.account-screen .account-preference-row select {
  width: 136px;
  min-height: 44px;
  height: 44px;
  padding: 8px 12px;
  font-size: 14px;
}
.account-screen .account-notification-preference {
  padding-top: 16px;
  border-top: 1px solid #eceeee;
}
.account-screen .account-notification-preference h3 {
  margin: 0 0 4px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
}
.account-screen .account-notification-preference .account-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  margin: 0;
  padding: 0;
  border: 0;
}
.account-screen #player-push-toggle {
  width: auto;
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #191c1d;
  font-size: 14px;
  text-align: left;
}
.account-screen #player-push-toggle:disabled,
.account-screen .account-detail-row button:disabled {
  color: #858b8d;
  cursor: not-allowed;
}
.account-screen #player-push-status {
  display: block;
  color: #7b8284;
  font-size: 12px;
  line-height: 1.5;
}
.account-screen .account-menu-footer {
  margin-top: 14px;
  padding-top: 8px;
}
.account-screen
  #account-panel-overview
  :is(a, button, summary, select):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
@media (hover: hover) and (pointer: fine) {
  .account-screen .account-menu-row:is(a, button):hover {
    border-radius: 8px;
    background: #f4f6f6;
  }
}
#account-panel-verification > .verify-card .verify-cta {
  display: none;
}
@media (max-width: 380px) {
  .account-screen:has(.account-settings-page) #account-content {
    padding-inline: 20px;
  }
  .account-screen .account-verification-summary {
    padding-inline: 12px;
  }
  .account-screen .account-verification-summary .account-menu-row {
    gap: 10px;
  }
}

.account-screen .account-settings-page:not(#account-panel-overview) {
  padding-top: 36px;
}
.account-screen .account-settings-link {
  border-bottom: 1px solid #eceeee;
}
.account-screen .account-readonly-details,
.account-screen .account-password-form {
  display: grid;
  gap: 20px;
}
.account-screen .account-readonly-details label,
.account-screen .account-password-form label {
  display: grid;
  gap: 10px;
  color: #626a6c;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}
.account-screen .account-readonly-details input:disabled {
  background: #f5f6f6;
  color: #858b8d;
  -webkit-text-fill-color: #858b8d;
  opacity: 1;
  cursor: not-allowed;
}
.account-screen .account-password-form {
  margin-top: 32px;
}
.account-screen .account-password-form h2 {
  margin: 0;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
}
.account-screen .account-password-form .password-input {
  position: relative;
  display: block;
}
.account-screen .account-password-form .password-input input {
  padding-right: 56px;
}
.account-screen .account-password-form [data-password-toggle] {
  position: absolute;
  inset: 6px 6px 6px auto;
  display: grid;
  place-items: center;
  width: 44px;
  min-width: 44px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #626a6c;
}
.account-screen #account-password-requirements {
  margin: -12px 0 0;
  font-size: 12px;
  line-height: 1.5;
}
.account-screen #account-password-status {
  margin: 0;
}
.account-screen #account-password-status.unmet {
  color: #ad3434;
}
.account-screen
  :is(.account-password-form, .account-trading-panel)
  :is(.primary-action, .secondary-action) {
  min-height: 50px;
  margin: 8px 0 0;
  border: 0;
  border-radius: 12px;
  background: #191c1d;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
}
.account-screen .kyc-form > .primary-action {
  position: static;
  bottom: auto;
  margin: 0;
  width: 100%;
}
.account-screen .kyc-form .consent-check {
  border: 0;
  border-radius: 0;
}
.account-screen .kyc-form .consent-check span {
  font-size: 13px;
  line-height: 1.5;
}
.account-screen .account-language-select {
  position: relative;
  display: block;
  flex: 0 0 148px;
}
.account-screen .account-language-select select {
  width: 100%;
  padding-right: 40px;
  appearance: none;
  -webkit-appearance: none;
  background-image: none;
}
.account-screen .account-language-select > svg {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 14px;
  height: 14px;
  transform: translateY(-50%) rotate(90deg);
  pointer-events: none;
  color: #626a6c;
}
.account-screen .account-duration-select {
  width: 100%;
}
.account-screen .account-duration-select select {
  height: 56px;
}
.account-screen #player-push-status {
  text-transform: none;
  letter-spacing: normal;
}
.account-screen .account-trading-panel {
  margin: 0;
}
.account-screen .account-trading-intro {
  margin: 0 0 28px;
  color: #626a6c;
  font-size: 14px;
  line-height: 1.6;
}
.account-screen .account-trading-panel .wallet-form {
  gap: 24px;
}
.account-screen .account-trading-panel label.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #626a6c;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
}
.account-screen .account-trading-panel .consent-check > span {
  display: block;
  flex: 1;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: normal;
  text-transform: none;
}
.account-screen .account-trading-panel .consent-check input {
  appearance: auto;
  -webkit-appearance: checkbox;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 2px 0 0;
  padding: 0;
  border-radius: 4px;
  box-shadow: none;
}
.account-screen .account-break-status {
  margin: 8px 0 0 36px;
  color: #626a6c;
  font-size: 12px;
}
.verification-wizard fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 18px;
}
.verification-wizard fieldset[hidden] {
  display: none;
}
.verification-wizard legend {
  padding: 0 0 22px;
  font-size: 20px;
  font-weight: 700;
}
.verification-steps {
  display: flex;
  justify-content: space-between;
  padding: 0;
  margin: 0;
  list-style: none;
  gap: 12px;
  color: var(--muted, #777);
  font-size: 12px;
}
.verification-steps li {
  display: grid;
  gap: 8px;
  justify-items: center;
  flex: 1;
}
.verification-steps span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line, #ddd);
  border-radius: 50%;
  font-weight: 700;
}
.verification-steps [aria-current="step"] {
  color: var(--accent);
  font-weight: 700;
}
.verification-steps [aria-current="step"] span,
.verification-steps .complete span {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.verification-save-status {
  margin: 0;
  color: var(--muted, #777);
  font-size: 12px;
}
.verification-actions {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}
.verification-actions > button {
  flex: 1;
  margin: 0;
}
.verification-step-error {
  color: #b42318;
  font-size: 13px;
}
.verification-wizard .consent-check {
  margin-top: 4px;
}
.account-screen #kyc-save-exit {
  min-height: 44px;
  color: var(--accent);
  font-weight: 500;
}
.page-loading {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
  background: var(--paper, #f3f2f2);
}
.page-loading[hidden] {
  display: none;
}
.page-loading .page-loading-logo {
  width: 76px;
  height: 76px;
  animation: page-logo-pulse 1.6s ease-in-out infinite;
}
.page-loading.failed .page-loading-logo {
  animation: none;
}
.page-loading.failed #page-loading-message {
  position: static;
  width: auto;
  height: auto;
  clip: auto;
  overflow: visible;
  text-align: center;
  padding-inline: 24px;
}
@keyframes page-logo-pulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.94);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .page-loading .page-loading-logo {
    animation: none;
  }
}
