/*
 * Lavender Prism Studio
 * A denser, task-first variation of the approved functional theme.
 */

body.prism-app::before,
body.prism-app::after {
  content: "";
  position: fixed;
  z-index: 0;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0.12;
}

body.prism-app::before {
  top: 16%;
  left: 8%;
  background: rgba(255, 255, 255, 0.08);
  animation: studio-orb-a 18s ease-in-out infinite alternate;
}

body.prism-app::after {
  right: 3%;
  bottom: -14rem;
  background: var(--prism-coral);
  animation: studio-orb-b 22s ease-in-out infinite alternate;
}

@keyframes studio-orb-a {
  to { transform: translate(12vw, 15vh) scale(1.12); }
}

@keyframes studio-orb-b {
  to { transform: translate(-10vw, -12vh) scale(0.88); }
}

body.prism-app::before,
body.prism-app::after {
  animation: none !important;
  filter: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

body.prism-app .prism-beam {
  animation: none !important;
  opacity: 0.05 !important;
  transform: none !important;
}

.prism-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 72%, transparent);
}

/* Header: real page context in the center */
body.prism-app .dedex-dash-bar {
  max-width: 94rem;
  z-index: 500 !important;
  background:
    linear-gradient(110deg, rgba(255,255,255,0.035), transparent 34%),
    rgba(var(--prism-surface-rgb), 0.9) !important;
}

body.prism-app > .toast-stack {
  position: fixed !important;
  z-index: 700 !important;
  top: 0;
  right: auto;
  left: 50%;
  width: min(calc(100% - 2rem), 22rem);
  padding-top: 0.75rem;
  transform: translateX(-50%);
}

body.prism-app .toast {
  border-radius: 0.5rem;
  text-align: center;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.prism-app .dash-user-menu-wrap {
  z-index: 620;
}

body.prism-app .dash-user-dropdown {
  z-index: 650;
}

body.prism-app .dash-header-frame {
  padding-inline: 9px 12px !important;
}

body.prism-app .dedex-wordmark {
  order: -4;
  flex: 0 0 auto !important;
  width: 34px;
  gap: 0;
  overflow: hidden;
  font-size: 0;
}

body.prism-app .dedex-wordmark::before {
  margin: 0;
}

.studio-header-copy {
  order: -3;
  min-width: 0;
  flex: 1;
  line-height: 1.18;
}

.studio-header-copy p {
  margin: 0 0 3px;
  overflow: hidden;
  color: var(--prism-muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.studio-header-copy strong {
  display: block;
  overflow: hidden;
  color: var(--prism-ink);
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
  text-overflow: ellipsis;
}

body.prism-app .dash-user-menu-wrap {
  order: -5;
}

body.prism-app .dash-header-icon-btn.is-help-ping,
body.prism-app .dash-user-menu-trigger.is-menu-hint {
  border-color: rgba(var(--prism-accent-rgb), 0.48) !important;
  color: var(--prism-pearl);
  animation: studio-header-action-glow 1.5s ease-in-out infinite;
}

body.prism-app .dash-header-icon-btn.is-help-ping::before,
body.prism-app .dash-header-icon-btn.is-help-ping::after,
body.prism-app .dash-user-menu-trigger.is-menu-hint::before,
body.prism-app .dash-user-menu-trigger.is-menu-hint::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50% !important;
  border: 2px solid rgba(var(--prism-accent-rgb), 0.52);
  pointer-events: none;
}

body.prism-app .dash-header-icon-btn.is-help-ping::before,
body.prism-app .dash-user-menu-trigger.is-menu-hint::before {
  animation: studio-header-ping-ring 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

body.prism-app .dash-header-icon-btn.is-help-ping::after,
body.prism-app .dash-user-menu-trigger.is-menu-hint::after {
  animation: studio-header-ping-ring 1.5s cubic-bezier(0, 0, 0.2, 1) infinite 0.45s;
}

@keyframes studio-header-ping-ring {
  0% {
    transform: scale(1);
    opacity: 0.75;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

@keyframes studio-header-action-glow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(var(--prism-accent-rgb), 0.28);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(var(--prism-accent-rgb), 0);
  }
}

body.prism-app .dash-header-icon-btn,
body.prism-app .dash-lang__trigger,
body.prism-app .dash-user-menu-trigger {
  padding: 0 !important;
  max-width: none;
  background: rgba(255,255,255,0.045);
}

body.prism-app .dash-header-icon-btn {
  position: relative;
}

body.prism-app .dash-header-icon-btn .dash-shell-icon,
body.prism-app .dash-user-menu-trigger .dash-shell-icon {
  position: relative;
  z-index: 1;
}

/* Desktop dock exit anchor */
.studio-dock-exit {
  display: none;
}

@media (min-width: 1024px) {
  body.prism-app .dash-shell {
    flex-direction: column !important;
    width: 100%;
    max-width: none;
    margin-inline: 0;
    gap: 0;
    padding: 0;
    overflow: visible !important;
  }

  body.prism-app .dash-main__inner {
    max-width: min(90rem, 100%);
    margin-inline: auto;
    padding: 26px 1.5rem 18px !important;
  }

  body.prism-app .dash-footer__inner {
    max-width: min(34rem, calc(100vw - 2rem));
    padding: 0.45rem 0.55rem;
    overflow: visible;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    background:
      linear-gradient(180deg, rgba(255,255,255,0.045), transparent 42%),
      rgba(var(--prism-surface-rgb), 0.84);
    box-shadow:
      inset 0 1px rgba(255, 255, 255, 0.08),
      0 12px 32px rgba(4, 1, 6, 0.36);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }

  .studio-dock-exit {
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #7f7382;
    background: rgba(var(--prism-surface-rgb), 0.42);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: 0.22s ease;
  }

  .studio-dock-exit:hover {
    color: var(--prism-coral);
    border-color: rgba(217, 142, 143, 0.28);
    background: rgba(217, 142, 143, 0.1);
  }

  .studio-dock-exit svg {
    width: 21px;
    height: 21px;
  }

  body.prism-app .dash-footer__inner .studio-dock-exit .ph-fill,
  body.prism-app .dash-footer__inner .studio-dock-exit > i {
    width: auto !important;
    height: auto !important;
  }

  body.prism-app .dash-nav-list {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
  }

  body.prism-app .dash-main {
    padding: 0 !important;
  }
}

/* Page rhythm and intentional hierarchy */
body.prism-app [data-panel] {
  animation: studio-panel-in 0.34s cubic-bezier(.2,.8,.2,1) both;
}

body.prism-app #admin-users-section {
  animation: none !important;
}

@keyframes studio-panel-in {
  from { opacity: 0; transform: translateY(7px); }
}

body.prism-app [data-panel] > div:first-child h1,
body.prism-app [data-panel] > h1 {
  font-size: clamp(1.45rem, 2.4vw, 2.15rem) !important;
  font-weight: 650 !important;
  letter-spacing: -0.045em !important;
}

body.prism-app [data-panel] > div:first-child p,
body.prism-app [data-panel] > p {
  max-width: 46rem;
}

body.prism-app .glass-card,
body.prism-app .domain-hoster-card,
body.prism-app .design-card {
  position: relative;
  overflow: hidden;
}

body.prism-app .glass-card::after,
body.prism-app .domain-hoster-card::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: -55%;
  left: -25%;
  width: 70%;
  height: 100%;
  border-radius: 50%;
  background: rgba(255,255,255,0.045);
  filter: blur(22px);
  transform: rotate(-20deg);
  pointer-events: none;
}

body.prism-app .glass-card > *:not(.domain-hoster-card__cover):not(.domain-row-cover),
body.prism-app .domain-hoster-card > *:not(.domain-hoster-card__cover) {
  position: relative;
  z-index: 1;
}

body.prism-app .domain-hoster-card--design > .domain-hoster-card__cover {
  position: absolute;
  inset: 0;
  z-index: 0;
}

body.prism-app .domain-row-card > .domain-row-cover {
  position: absolute;
  inset: 0;
  z-index: 0;
}

body.prism-app .domain-row-card.has-theme-cover {
  background: transparent !important;
}

body.prism-app .domain-hoster-card--design.has-theme-cover::after {
  display: none;
}

body.prism-app .glass-card:hover,
body.prism-app .domain-hoster-card:hover {
  border-color: rgba(var(--prism-accent-rgb),0.23) !important;
}

/* Profile: live summary + bento arrangement */
.studio-pulse {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.studio-pulse-card {
  position: relative;
  min-height: 92px;
  padding: 17px 18px;
  overflow: hidden;
  border: 1px solid var(--prism-line);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.045), transparent 62%),
    rgba(var(--prism-surface-rgb),0.7);
  box-shadow: 0 16px 38px rgba(4,1,6,0.2);
}

.studio-pulse-card::after {
  content: "";
  position: absolute;
  right: -25px;
  bottom: -40px;
  width: 95px;
  height: 95px;
  border: 1px solid rgba(var(--prism-accent-rgb),0.15);
  border-radius: 50%;
}

.studio-pulse-card:nth-child(2)::after {
  border-color: rgba(217,142,143,0.18);
}

.studio-pulse-card small {
  display: block;
  margin-bottom: 9px;
  color: var(--prism-muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.studio-pulse-card strong {
  display: block;
  overflow: hidden;
  color: var(--prism-ink);
  font-size: clamp(1rem, 2vw, 1.35rem);
  line-height: 1.1;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.studio-pulse-card em {
  display: block;
  margin-top: 7px;
  color: var(--prism-muted);
  font-size: 9px;
  font-style: normal;
}

body.prism-app .account-cards {
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 14px;
}

body.prism-app .account-cards > .glass-card {
  min-height: 174px;
  padding: 22px !important;
  background:
    radial-gradient(circle at 92% 112%, rgba(var(--prism-accent-rgb),0.12), transparent 10rem),
    linear-gradient(145deg, rgba(255,255,255,0.055), transparent 58%),
    rgba(var(--prism-surface-rgb),0.76) !important;
}

body.prism-app .account-cards .profile-network-card__layout {
  min-height: 128px;
}

body.prism-app .account-cards .profile-network-emblem__stage {
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(212, 212, 218, 0.12), rgba(var(--prism-accent-rgb), 0.035));
  box-shadow: inset 0 1px rgba(255,255,255,0.08), 0 12px 28px rgba(4,1,6,0.2);
}

body.prism-app .account-cards .profile-network-emblem__label {
  color: var(--prism-muted);
  font-size: 8px;
  letter-spacing: 0.13em;
}

body.prism-app .account-cards .profile-network-percent {
  margin-left: 8px;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  letter-spacing: -0.035em;
}

body.prism-app #profile-network-wrap .profile-network-aside--dev {
  display: flex;
  align-items: center;
  min-height: 100%;
}

body.prism-app .account-cards .profile-network-aside__edit {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--prism-muted);
  background: rgba(var(--prism-accent-rgb),0.1);
}

body.prism-app .account-emblem--tg .account-emblem__icon,
body.prism-app .account-emblem--tg .profile-network-emblem__label {
  color: var(--prism-muted);
}

/* Domains: compact control surface + vertical card grid */
body.prism-app #domains-list-view > .glass-card {
  padding: 12px !important;
  border-radius: 18px !important;
  background:
    linear-gradient(110deg, rgba(255,255,255,0.035), transparent 44%),
    rgba(var(--prism-surface-rgb),0.76) !important;
}

body.prism-app .domain-add-row {
  grid-template-columns: minmax(0, 1fr) auto auto;
  grid-template-areas: "input count btn";
  gap: 10px;
  min-height: 44px;
}

body.prism-app .domain-add-row__input input {
  height: 44px;
  padding-inline: 14px !important;
}

body.prism-app .domain-add-row__btn {
  width: auto;
  min-height: 44px;
  min-width: 8.5rem;
  padding-inline: 1.5rem;
}

body.prism-app .subdomain-claim-row__label input,
body.prism-app .subdomain-claim-row__zone-btn,
body.prism-app .subdomain-claim-row__claim-btn {
  height: 44px;
  min-height: 44px;
  box-sizing: border-box;
}

body.prism-app .subdomain-claim-row__label input {
  padding-inline: 14px !important;
}

body.prism-app .subdomain-claim-row__zone-btn,
body.prism-app .subdomain-claim-row__claim-btn {
  padding-inline: 1.5rem;
}

body.prism-app .domain-add-count {
  width: 8.5rem;
  min-width: 8.5rem;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
}

body.prism-app .domain-add-count.is-limits-loading,
body.prism-app .domain-add-count .limits-meta-skwrap {
  width: 8.5rem;
  min-width: 8.5rem;
}

body.prism-app #domains-list-mount > .space-y-2,
body.prism-app #subdomains-list-mount > .space-y-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

body.prism-app #domains-list-mount > .space-y-2 > * + *,
body.prism-app #subdomains-list-mount > .space-y-2 > * + * {
  margin-top: 0 !important;
}

body.prism-app .domain-row-card {
  min-height: 112px;
  padding: 19px !important;
  border-radius: 20px !important;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.035), transparent 58%),
    rgba(var(--prism-surface-rgb), 0.78) !important;
}

body.prism-app .domain-row-card.has-theme-cover {
  background: transparent !important;
}

body.prism-app .domain-row-card::before {
  content: none;
  display: none;
}

body.prism-app .domain-row-name {
  color: var(--prism-ink);
  font-size: 0.95rem;
}

body.prism-app .domain-row-meta {
  margin-top: 6px;
  color: var(--prism-muted);
  font-size: 0.72rem;
}

body.prism-app .domain-row-chevron {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--prism-muted);
  background: rgba(255,255,255,0.045);
}

body.prism-app .domain-row-card:hover {
  border-color: rgba(var(--prism-accent-rgb),0.3) !important;
  transform: translateY(-3px);
  box-shadow: 0 24px 55px rgba(4,1,6,0.33);
}

body.prism-app .domain-hoster-grid-pair {
  gap: 16px !important;
}

body.prism-app .domain-detail-view .network-strip,
body.prism-app #domains-detail-view .network-strip {
  position: sticky;
  z-index: 8;
  top: 0;
  backdrop-filter: blur(18px);
}

/* Designs: stable equal cards and a single control language */
body.prism-app .designs-panel-bar {
  min-height: 58px;
  padding: 8px 10px;
  border-radius: 18px !important;
  background:
    linear-gradient(110deg, rgba(255,255,255,0.035), transparent 44%),
    rgba(var(--prism-surface-rgb),0.76) !important;
}

body.prism-app .designs-panel-bar__search {
  height: 40px;
  max-width: none;
  padding-inline: 13px !important;
  border-radius: 12px !important;
}

body.prism-app .designs-panel-bar__meta {
  width: 8.5rem;
  min-width: 8.5rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

body.prism-app .designs-panel-bar__meta.is-limits-loading,
body.prism-app .designs-panel-bar__meta .limits-meta-skwrap {
  width: 8.5rem;
  min-width: 8.5rem;
  max-width: 8.5rem;
}

body.prism-app .designs-panel-bar__meta.is-limits-loading .limits-meta-skwrap {
  width: 100%;
  max-width: 100%;
}

body.prism-app .designs-panel-bar__cluster {
  flex-wrap: nowrap;
  flex-shrink: 0;
  min-width: 12.5rem;
}

body.prism-app .designs-panel-bar__pag.tron-pagination {
  min-width: 7.75rem;
  overflow: visible;
  border: 1px solid var(--prism-line) !important;
  border-radius: 12px !important;
  background: rgba(var(--prism-surface-rgb), 0.42) !important;
}

body.prism-app .designs-panel-bar__pag .tron-pg-btn.btn-ghost {
  border: 1px solid rgba(210, 210, 218, 0.22) !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.05) !important;
}

body.prism-app .designs-panel-bar__pag .tron-pg-btn.btn-ghost:hover:not(:disabled) {
  border-color: rgba(var(--prism-accent-rgb), 0.38) !important;
  background: rgba(var(--prism-accent-rgb), 0.12) !important;
}

body.prism-app .design-grid-cards {
  grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)) !important;
  grid-auto-rows: 1fr;
  gap: 16px !important;
}

body.prism-app .design-grid-cards > .design-card {
  min-width: 0;
  min-height: 0;
  height: 100%;
  border-radius: 22px !important;
}

body.prism-app .design-card__cover {
  margin: 9px 9px 0;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
}

body.prism-app .design-card__cover::after {
  background: linear-gradient(to top, rgba(14,8,16,0.48), transparent 46%);
}

body.prism-app .design-card__body {
  padding: 15px 17px 4px;
}

body.prism-app .design-card__title {
  font-size: 0.96rem;
}

body.prism-app .design-card__tag {
  border-color: rgba(var(--prism-accent-rgb),0.25);
  color: var(--prism-muted);
  background: rgba(var(--prism-accent-rgb),0.07);
}

body.prism-app .design-card__actions {
  padding: 12px 16px 16px;
}

body.prism-app .design-card__btn--install {
  color: var(--prism-ink) !important;
  background: rgba(255, 255, 255, 0.14) !important;
}

body.prism-app .design-card:hover {
  border-color: rgba(var(--prism-accent-rgb),0.32) !important;
  transform: translateY(-4px);
  box-shadow: 0 28px 65px rgba(4,1,6,0.36);
}

/* Admin: clearer workspace tabs and denser data */
body.prism-app #admin-users-section .admin-subtabs__rail.glass-card {
  overflow: visible !important;
  border-radius: 18px !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08) !important;
  filter: drop-shadow(0 10px 28px rgba(4, 1, 6, 0.34));
}

body.prism-app #admin-users-section .admin-subtabs__rail.glass-card::after {
  display: none;
}

body.prism-app #admin-users-section .admin-subtab.is-active {
  color: var(--prism-ink);
}

body.prism-app #admin-users-section .admin-subtab.is-active .admin-subtab__icon {
  color: var(--prism-ink);
  box-shadow: none;
}

body.prism-app #admin-users-section table {
  border-collapse: separate;
  border-spacing: 0;
}

body.prism-app #admin-users-section tbody tr {
  transition: background 0.16s ease;
}

body.prism-app .tron-pagination {
  border-color: var(--prism-line);
  border-radius: 14px;
  background: rgba(var(--prism-surface-rgb),0.62);
}

/* Mobile keeps the successful shell but simplifies dense blocks */
@media (max-width: 1023px) {
  body.prism-app .dedex-wordmark {
    display: none;
  }

  .studio-header-copy {
    order: -3;
  }

  .studio-dock-exit {
    display: none !important;
  }

  body.prism-app .dash-main {
    padding: 0 !important;
  }

  body.prism-app .dash-main__inner {
    padding-top: 28px !important;
  }

  body.prism-app .account-cards,
  .studio-pulse {
    grid-template-columns: 1fr;
  }

  body.prism-app #profile-network-wrap .profile-network-card {
    min-height: 0;
  }

  body.prism-app #profile-network-wrap .profile-network-percent {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  body.prism-app #domains-list-mount > .space-y-2,
  body.prism-app #subdomains-list-mount > .space-y-2 {
    grid-template-columns: 1fr;
  }

  body.prism-app .design-grid-cards {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)) !important;
  }

  body.prism-app .design-grid-cards > .design-card {
    min-height: 0;
  }
}

/*
 * Bottom navigation is a viewport overlay, not a flex item.
 * Keep this block last so legacy footer rules cannot reserve a full-width row.
 */
@keyframes dock-border-glow {
  0%, 100% {
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow:
      inset 0 1px rgba(255, 255, 255, 0.08),
      0 12px 32px rgba(4, 1, 6, 0.36),
      0 0 0 0 rgba(255, 255, 255, 0);
  }
  50% {
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow:
      inset 0 1px rgba(255, 255, 255, 0.12),
      0 14px 36px rgba(4, 1, 6, 0.44),
      0 0 18px rgba(255, 255, 255, 0.08);
  }
}

@keyframes dock-sheen {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

body.prism-app .dash-bottom-dock {
  position: fixed !important;
  z-index: 45;
  left: 50% !important;
  right: auto !important;
  bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px)) !important;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: max-content !important;
  max-width: calc(100vw - 2rem);
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0.45rem 0.55rem !important;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 42%),
    rgba(var(--prism-surface-rgb), 0.98);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.08),
    0 12px 32px rgba(4, 1, 6, 0.36);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: dock-border-glow 5s ease-in-out infinite;
}

body.prism-app .dash-bottom-dock::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    110deg,
    transparent 0%,
    rgba(255, 255, 255, 0) 32%,
    rgba(255, 255, 255, 0.22) 50%,
    rgba(255, 255, 255, 0) 68%,
    transparent 100%
  );
  background-size: 200% 100%;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: dock-sheen 6s linear infinite;
}

body.prism-app .dash-bottom-dock .dash-nav-list {
  margin: 0;
  gap: 0.55rem;
}

body.prism-app .dash-bottom-dock:hover {
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.12),
    0 16px 42px rgba(4, 1, 6, 0.48),
    0 0 22px rgba(255, 255, 255, 0.1);
}

body.prism-app .dash-bottom-dock .dash-nav-item,
body.prism-app .dash-bottom-dock .studio-dock-exit {
  margin: 0 0.1rem;
}

body.prism-app .dash-bottom-dock .dash-nav-item__icon > i,
body.prism-app .dash-bottom-dock .studio-dock-exit > i {
  display: block !important;
  width: auto !important;
  height: auto !important;
  line-height: 1 !important;
}

html.prism-safe-mode-boot body.prism-app .dash-bottom-dock,
body.prism-app.prism-safe-mode .dash-bottom-dock {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.025), transparent 46%),
    rgba(var(--prism-surface-rgb), 0.95) !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

@media (min-width: 1024px) {
  body.prism-app .dash-bottom-dock {
    width: min(28rem, calc(100vw - 3rem)) !important;
    max-width: none;
    gap: 0.65rem;
    padding: 0.55rem 0.75rem !important;
    border-color: rgba(255, 255, 255, 0.18);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.085), transparent 46%),
      rgba(var(--prism-surface-rgb), 0.98);
    box-shadow:
      inset 0 1px rgba(255, 255, 255, 0.12),
      0 14px 38px rgba(4, 1, 6, 0.44);
  }

  body.prism-app .dash-bottom-dock .dash-nav-list {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
    gap: 0.65rem;
    width: 100%;
    padding: 0 !important;
  }

  body.prism-app .dash-bottom-dock .studio-dock-exit {
    margin-left: 0.15rem;
  }

  body.prism-app .dash-bottom-dock .dash-nav-item__icon > i {
    font-size: 28px !important;
  }

  body.prism-app .dash-bottom-dock .studio-dock-exit > i {
    font-size: 26px !important;
  }

  body.prism-app .dash-main__inner {
    padding-bottom: 6.5rem !important;
  }
}

@media (max-width: 1023px) {
  body.prism-app .dash-bottom-dock {
    bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px)) !important;
    width: calc(100vw - 1rem) !important;
    max-width: none;
    padding: 6px 7px calc(6px + env(safe-area-inset-bottom, 0px)) !important;
    border-radius: 24px;
    background: rgba(var(--prism-surface-rgb), 0.98);
    box-shadow:
      0 20px 50px rgba(0, 0, 0, 0.45),
      inset 0 1px rgba(255, 255, 255, 0.09);
  }

  body.prism-app .dash-bottom-dock .dash-nav-list {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    align-items: center;
    gap: 0.35rem;
    width: 100%;
  }

  body.prism-app .dash-bottom-dock .dash-nav-item {
    margin: 0;
    padding: 4px 2px !important;
    justify-self: stretch;
    width: 100%;
    min-height: 54px;
    justify-content: center !important;
    align-items: center !important;
    background: transparent !important;
  }

  body.prism-app .dash-bottom-dock .dash-nav-item--exit {
    display: none !important;
  }

  body.prism-app .dash-bottom-dock .dash-nav-item[data-tab="profile"] {
    position: relative;
    align-self: stretch;
    justify-content: center !important;
    padding-bottom: 4px !important;
  }

  body.prism-app .dash-bottom-dock .dash-nav-item[data-tab="profile"] .dash-nav-item__icon {
    position: static;
    top: auto;
    left: auto;
    transform: none;
    width: auto;
    height: auto;
    border: 0;
    border-radius: 0.625rem;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  body.prism-app .dash-bottom-dock .dash-nav-item:not([data-tab="profile"]) .dash-nav-item__icon,
  body.prism-app .dash-bottom-dock .dash-nav-item[data-tab="profile"] .dash-nav-item__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    border: 0;
    border-radius: 0.625rem;
    color: inherit;
    background: transparent;
    box-shadow: none;
  }

  body.prism-app .dash-bottom-dock .dash-nav-item.is-active:not([data-tab="profile"]) .dash-nav-item__icon,
  body.prism-app .dash-bottom-dock .dash-nav-item[data-tab="profile"].is-active .dash-nav-item__icon {
    color: inherit;
    background: rgba(255, 255, 255, 0.14);
    border: 0;
    border-radius: 0.625rem;
    box-shadow: none;
  }

  body.prism-app .dash-bottom-dock .dash-nav-item[data-tab="designs"] { order: 1; }
  body.prism-app .dash-bottom-dock .dash-nav-item[data-tab="profile"] { order: 2; }
  body.prism-app .dash-bottom-dock .dash-nav-item[data-tab="domains"] { order: 3; }
}

/* Keep every dialog inside the viewport; long forms scroll inside the card. */
body.prism-app .modal-backdrop {
  box-sizing: border-box;
  padding:
    max(1rem, env(safe-area-inset-top))
    max(1rem, env(safe-area-inset-right))
    max(1rem, env(safe-area-inset-bottom))
    max(1rem, env(safe-area-inset-left));
  overflow: hidden;
}

body.prism-app .modal-panel,
body.prism-app .auth-modal-shell {
  max-height: calc(100dvh - max(2rem, calc(env(safe-area-inset-top) + env(safe-area-inset-bottom))));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}

body.prism-app #modal-domain-cloaking .modal-panel {
  max-height: calc(100dvh - max(2rem, calc(env(safe-area-inset-top) + env(safe-area-inset-bottom)))) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

body.prism-app #modal-domain-cloaking .modal-cloaking-body {
  flex: 0 0 auto;
  min-height: 0;
  overflow: visible;
}

/* Lite mode: no live blur on any viewport, only painted glass surfaces. */
html.prism-safe-mode-boot body.prism-app
  :is(
    .dedex-dash-bar,
    .dash-lang__menu,
    .dash-user-dropdown,
    .dash-footer__inner,
    .dash-footer__more-btn,
    .dash-nav-item[data-tab="profile"] .dash-nav-item__icon,
    .glass-card,
    .domain-hoster-card,
    .design-card,
    .modal-panel,
    .modal-backdrop,
    #domains-detail-view .network-strip,
    .profile-network-card,
    .studio-telegram-overlay
  ),
body.prism-app.prism-safe-mode
  :is(
    .dedex-dash-bar,
    .dash-lang__menu,
    .dash-user-dropdown,
    .dash-footer__inner,
    .dash-footer__more-btn,
    .dash-nav-item[data-tab="profile"] .dash-nav-item__icon,
    .glass-card,
    .domain-hoster-card,
    .design-card,
    .modal-panel,
    .modal-backdrop,
    #domains-detail-view .network-strip,
    .profile-network-card,
    .studio-telegram-overlay
  ) {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

html.prism-safe-mode-boot body.prism-app
  :is(.dedex-dash-bar, .dash-footer__inner, .glass-card, .domain-hoster-card, .design-card, .modal-panel),
body.prism-app.prism-safe-mode
  :is(.dedex-dash-bar, .dash-footer__inner, .glass-card, .domain-hoster-card, .design-card, .modal-panel) {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.025), transparent 46%),
    rgba(var(--prism-surface-rgb), 0.95) !important;
}

html.prism-safe-mode-boot body.prism-app .glass-card::after,
html.prism-safe-mode-boot body.prism-app .domain-hoster-card::after,
body.prism-app.prism-safe-mode .glass-card::after,
body.prism-app.prism-safe-mode .domain-hoster-card::after {
  filter: none !important;
}

html.prism-safe-mode-boot body.prism-app .modal-backdrop,
body.prism-app.prism-safe-mode .modal-backdrop {
  background: rgba(5, 2, 6, 0.86) !important;
}

@media (max-width: 639px) {
  body.prism-app > .toast-stack {
    top: env(safe-area-inset-top);
    right: auto;
    left: 50%;
    width: min(calc(100% - 2rem), 22rem);
    transform: translateX(-50%);
  }

  body.prism-app .domain-add-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "input count"
      "btn btn";
  }

  body.prism-app .domain-add-row__btn {
    width: 100%;
  }

  body.prism-app .domain-add-count {
    width: auto;
    min-width: 7.5rem;
  }

  body.prism-app .domain-add-count.is-limits-loading,
  body.prism-app .domain-add-count .limits-meta-skwrap {
    width: 7.5rem;
    min-width: 7.5rem;
  }

  body.prism-app .designs-panel-bar {
    min-height: 104px;
  }

  body.prism-app .domain-hoster-card > .domain-table-controls {
    min-height: 0;
  }

  body.prism-app .designs-panel-bar__meta {
    width: auto;
    min-width: 7.5rem;
  }

  body.prism-app .designs-panel-bar__cluster {
    min-width: 0;
  }

  body.prism-app #profile-network-wrap .profile-network-card__layout {
    align-items: stretch;
  }

  .studio-pulse-card {
    min-height: 82px;
  }

  body.prism-app .domain-row-card {
    min-height: 102px;
    padding: 16px !important;
  }
}

/* Profile correction: one network card + three compact account cards */
body.prism-app #profile-network-wrap .profile-network-card {
  min-height: 184px;
  padding: 18px !important;
  overflow: hidden;
  border: 1px solid var(--prism-line) !important;
  border-radius: 22px !important;
  background:
    radial-gradient(circle at 8% 16%, rgba(255, 255, 255, 0.06), transparent 18rem),
    linear-gradient(145deg, rgba(255,255,255,0.045), transparent 56%),
    rgba(var(--prism-surface-rgb),0.8) !important;
  box-shadow: var(--prism-shadow);
  backdrop-filter: blur(18px);
}

body.prism-app #profile-network-wrap .profile-network-card__layout {
  min-height: 148px;
  display: grid;
  grid-template-columns: minmax(205px, 0.72fr) minmax(330px, 1.28fr);
  align-items: stretch;
  gap: 0;
}

body.prism-app #profile-network-wrap .profile-network-card__hero {
  position: relative;
  min-height: 100%;
  height: 100%;
  padding: 28px 24px 18px 4px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 16px;
  row-gap: 8px;
}

body.prism-app #profile-network-wrap .profile-network-card__hero::before {
  display: none;
}

body.prism-app #profile-network-wrap .studio-partner-share {
  position: absolute;
  top: 0;
  left: 4px;
  z-index: 2;
  color: var(--prism-muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  pointer-events: none;
}

body.prism-app #profile-network-wrap .profile-network-card__hero::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: -82px;
  width: 170px;
  height: 170px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(255, 255, 255, 0.02);
  opacity: 0.7;
  pointer-events: none;
}

body.prism-app #profile-network-wrap .profile-network-emblem {
  display: contents;
}

body.prism-app #profile-network-wrap .profile-network-emblem__stage {
  grid-column: 1;
  grid-row: 1;
  justify-self: center;
  width: 62px;
  height: 62px;
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 18px;
  background: rgba(255,255,255,0.055);
  box-shadow: inset 0 1px rgba(255,255,255,0.08), 0 15px 32px rgba(4,1,6,0.22);
  display: grid;
  place-items: center;
}

body.prism-app #profile-network-wrap .profile-network-emblem__label {
  grid-column: 1;
  grid-row: 2;
  justify-self: center;
  min-width: 62px;
  text-align: center;
}

body.prism-app #profile-network-wrap .profile-network-emblem__logo {
  width: 34px;
  max-height: 36px;
  height: auto;
  display: block;
}

body.prism-app #profile-network-wrap .profile-network-emblem__logo--sol {
  width: 32px;
  max-height: 30px;
}

body.prism-app #profile-network-wrap .profile-network-percent {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
}

body.prism-app #profile-network-wrap .profile-network-aside {
  position: relative;
  min-height: 100%;
  height: 100%;
  padding: 12px 6px 10px 26px !important;
  overflow: visible;
  border: 0;
  border-left: 1px solid var(--prism-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.prism-app #profile-network-wrap .profile-network-aside::after {
  content: "";
  position: absolute;
  right: -18px;
  top: -28px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  filter: blur(4px);
  opacity: 0.8;
  pointer-events: none;
}

body.prism-app .account-cards > .glass-card {
  min-height: 126px;
  padding: 17px 18px !important;
  overflow: hidden;
  border-radius: 20px !important;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.045), transparent 62%),
    rgba(var(--prism-surface-rgb),0.7) !important;
  box-shadow: 0 16px 38px rgba(4,1,6,0.2);
}

body.prism-app .account-cards > .glass-card::after {
  display: none;
}

body.prism-app .account-cards > .glass-card:nth-child(2)::after {
  display: none;
}

body.prism-app .account-cards > .glass-card:nth-child(3)::after {
  display: none;
}

body.prism-app #tg-account-card.profile-tg-split {
  display: grid !important;
  grid-template-columns: 1fr 1px 1fr;
  align-items: stretch;
  min-height: 126px;
  padding: 0 !important;
  overflow: hidden;
}

body.prism-app #tg-account-card .profile-tg-split__half {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-width: 0;
  padding: 18px 14px;
  color: rgba(220, 220, 224, 0.72);
  text-decoration: none;
  background: transparent !important;
}

body.prism-app #tg-account-card .profile-tg-split__half:hover {
  color: rgba(245, 245, 247, 0.98);
  background: transparent !important;
}

body.prism-app #tg-account-card .profile-tg-split__label {
  font-family: "IBM Plex Mono", "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
}

body.prism-app #tg-account-card .profile-tg-split__divider {
  position: relative;
  width: 1px;
  align-self: stretch;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

body.prism-app .account-cards .profile-network-card__layout {
  position: relative;
  min-height: 90px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

body.prism-app .account-cards .profile-network-card__hero {
  min-width: 0;
  display: block;
}

body.prism-app .account-cards .profile-network-emblem {
  display: block;
}

body.prism-app .account-cards .profile-network-emblem__stage {
  position: absolute;
  z-index: 0;
  top: 50%;
  right: 56px;
  width: 76px;
  height: 76px;
  display: grid;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  opacity: 0.09;
  transform: translateY(-50%);
  pointer-events: none;
}

body.prism-app .account-cards .account-emblem__icon {
  width: 60px;
  height: 60px;
  color: var(--prism-pearl);
  filter: none;
}

body.prism-app .account-cards .profile-network-emblem__label {
  display: block;
  margin: 0;
  color: var(--prism-muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body.prism-app .account-cards .profile-network-percent,
body.prism-app .account-cards #login-display {
  margin: 10px 0 0;
  max-width: 100%;
  overflow: hidden;
  color: var(--prism-ink);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

body.prism-app .account-cards .profile-network-aside--action {
  position: absolute;
  z-index: 3;
  top: 50%;
  right: 0;
  bottom: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  transform: translateY(-50%);
}

body.prism-app .account-cards .profile-network-aside--dev {
  grid-column: 1 / -1;
  min-height: 0;
  padding: 9px 0 0;
  border: 0;
}

body.prism-app .account-cards .profile-network-aside__dev {
  color: var(--prism-muted);
  font-size: 9px;
}

body.prism-app .studio-payout-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

body.prism-app .studio-payout-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  color: var(--prism-muted);
  background: rgba(255, 255, 255, 0.04);
}

body.prism-app .studio-payout-icon svg {
  width: 19px;
  height: 19px;
}

body.prism-app #profile-network-wrap .studio-payout-heading .profile-network-aside__title {
  margin: 0 !important;
}

body.prism-app #profile-network-wrap .profile-network-percent.is-limits-loading .limits-meta-skwrap {
  width: clamp(3.25rem, 18vw, 4.5rem);
  height: clamp(1.35rem, 3.2vw, 2rem);
}

body.prism-app .profile-addr-toggle.is-skeleton .limits-meta-skwrap,
body.prism-app .profile-partner-skwrap--addr {
  width: 15rem;
  max-width: 100%;
  height: 0.85rem;
}

body.prism-app #profile-network-wrap .profile-network-aside__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
}

body.prism-app .studio-address-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  min-width: 0;
}

body.prism-app .studio-address-line {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  min-height: 2rem;
}

body.prism-app .studio-address-line .profile-network-aside__value-row {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  min-height: 2rem;
}

body.prism-app #profile-network-wrap .profile-addr-toggle {
  width: 100%;
  min-height: 2rem;
  padding: 0;
  display: flex;
  align-items: center;
  text-align: left;
  font-weight: 400;
  line-height: 1.35;
}

body.prism-app #profile-network-wrap .profile-addr-toggle__inner {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 1.35em;
}

body.prism-app #profile-network-wrap .profile-addr-toggle.is-revealed .profile-addr-toggle__text {
  white-space: normal;
  word-break: break-all;
  text-align: left;
}

body.prism-app #profile-network-wrap .profile-addr-toggle.is-unset {
  color: var(--prism-muted);
  background: transparent;
}

body.prism-app #profile-network-wrap .profile-addr-toggle.is-unset .profile-addr-toggle__inner {
  display: flex;
  align-items: center;
  gap: 8px;
}

body.prism-app #profile-network-wrap .profile-addr-toggle.is-unset .profile-addr-toggle__inner::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: none;
}

body.prism-app .studio-wallet-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 0;
}

body.prism-app .studio-wallet-actions--icons {
  align-self: flex-start;
}

body.prism-app .studio-wallet-icon-btn {
  width: 2rem;
  height: 2rem;
  min-height: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(210, 210, 218, 0.12);
  border-radius: 0.5rem;
  color: var(--prism-muted);
  background: rgba(255, 255, 255, 0.035);
  transition: 0.18s ease;
}

body.prism-app .studio-wallet-icon-btn .studio-wallet-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

body.prism-app .studio-wallet-icon-btn .studio-wallet-icon--hide,
body.prism-app .studio-wallet-icon-btn .studio-wallet-icon--check {
  display: none;
}

body.prism-app .studio-wallet-icon-btn.is-revealed .studio-wallet-icon--show {
  display: none;
}

body.prism-app .studio-wallet-icon-btn.is-revealed .studio-wallet-icon--hide {
  display: block;
}

body.prism-app .studio-wallet-icon-btn.is-copied {
  border-color: rgba(134, 239, 172, 0.35);
  color: rgba(187, 247, 208, 0.95);
  background: rgba(34, 197, 94, 0.12);
}

body.prism-app .studio-wallet-icon-btn.is-copied .studio-wallet-icon--copy {
  display: none;
}

body.prism-app .studio-wallet-icon-btn.is-copied .studio-wallet-icon--check {
  display: block;
}

body.prism-app .studio-wallet-icon-btn:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--prism-ink);
  background: rgba(255, 255, 255, 0.08);
}

body.prism-app .studio-wallet-icon-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

body.prism-app #profile-network-wrap .profile-network-aside__edit {
  flex: 0 0 auto;
  align-self: center;
  margin-left: 0;
}

@media (min-width: 1024px) {
  body.prism-app #profile-network-wrap .profile-network-viewport {
    min-height: 172px;
  }

  body.prism-app .profile-network-wrap.is-switching .profile-network-viewport {
    min-height: 172px;
  }

  body.prism-app #profile-network-wrap .profile-network-card__layout {
    height: 172px;
    min-height: 172px;
    max-height: 172px;
  }
}

@media (max-width: 1023px) {
  body.prism-app #profile-network-wrap .profile-network-viewport,
  body.prism-app .profile-network-wrap.is-switching .profile-network-viewport {
    min-height: 296px;
  }

  body.prism-app #profile-network-wrap .profile-network-card__layout {
    grid-template-columns: 1fr;
    min-height: 296px;
  }

  body.prism-app #profile-network-wrap .profile-network-card__hero {
    min-height: 138px;
    height: 138px;
    max-height: 138px;
    padding: 18px 6px 22px;
  }

  body.prism-app #profile-network-wrap .profile-network-aside {
    min-height: 158px;
    height: auto;
    padding: 22px 6px 6px !important;
    border-top: 1px solid var(--prism-line);
    border-left: 0;
  }
}

@media (max-width: 639px) {
  body.prism-app #profile-network-wrap .profile-network-card {
    padding: 18px !important;
  }

  body.prism-app .account-cards > .glass-card {
    min-height: 116px;
  }

  body.prism-app .studio-wallet-actions--icons {
    display: flex;
    gap: 6px;
  }
}

/* Phosphor icons in shell navigation and header */
body.prism-app .dash-shell-icon,
body.prism-app .dash-lang__icon.ph-fill,
body.prism-app .dash-user-menu-trigger .ph-fill,
body.prism-app .dash-user-menu-trigger > i,
body.prism-app .dash-user-dropdown-item__icon.ph-fill,
body.prism-app .dash-nav-item__icon .ph-fill,
body.prism-app .dash-nav-item__icon > i,
body.prism-app .studio-dock-exit .ph-fill,
body.prism-app .studio-dock-exit > i {
  display: block;
  line-height: 1;
  color: currentColor;
  width: auto !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
}

body.prism-app .dash-header-icon-btn .dash-shell-icon {
  font-size: 18px;
}

body.prism-app .dash-lang__icon.ph-fill {
  font-size: 18px;
}

body.prism-app .dash-user-menu-trigger .ph-fill,
body.prism-app .dash-user-menu-trigger > i {
  font-size: 18px;
  color: var(--prism-muted);
}

body.prism-app .dash-user-dropdown-item__icon.ph-fill {
  font-size: 17px;
}

body.prism-app .dash-nav-item__icon .ph-fill,
body.prism-app .dash-nav-item__icon > i {
  font-size: 26px;
}

body.prism-app .studio-dock-exit .ph-fill,
body.prism-app .studio-dock-exit > i {
  font-size: 23px;
}

@media (max-width: 1023px) {
  body.prism-app .dash-nav-item:not([data-tab="profile"]) .dash-nav-item__icon .ph-fill,
  body.prism-app .dash-nav-item:not([data-tab="profile"]) .dash-nav-item__icon > i {
    font-size: 30px;
  }

  body.prism-app .dash-nav-item[data-tab="profile"] .dash-nav-item__icon .ph-fill,
  body.prism-app .dash-nav-item[data-tab="profile"] .dash-nav-item__icon > i {
    font-size: 38px;
  }
}

body.prism-app .studio-telegram-overlay {
  position: absolute;
  z-index: 6;
  inset: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: inherit;
  background: rgba(var(--prism-surface-rgb), 0.7);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  text-align: center;
}

body.prism-app .studio-telegram-overlay__mark {
  width: 32px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  box-shadow: 0 0 12px rgba(var(--prism-accent-rgb),0.4);
}

body.prism-app .studio-telegram-overlay p {
  max-width: 17rem;
  margin: 0;
  color: var(--prism-pearl);
  font-size: 10px;
  line-height: 1.55;
}

body.prism-app .account-cards .profile-network-percent--status {
  color: var(--prism-muted);
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-overflow: clip;
}

body.prism-app .profile-quota-card {
  border-color: var(--prism-line);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), transparent 60%),
    rgba(var(--prism-surface-rgb), 0.76);
  box-shadow: 0 18px 44px rgba(4, 1, 6, 0.24);
}

body.prism-app .profile-quota-item {
  border-color: var(--prism-line);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.05), transparent 62%),
    rgba(0, 0, 0, 0.16);
}

body.prism-app .profile-quota-item__label {
  color: var(--prism-muted);
}

body.prism-app .profile-quota-item__value {
  color: var(--prism-ink);
}

body.prism-app .profile-quota-item__track {
  background: rgba(255, 255, 255, 0.08);
}

body.prism-app .profile-quota-item__fill {
  background: linear-gradient(90deg, rgba(226, 226, 230, 0.45), rgba(255, 255, 255, 0.88));
}

body.prism-app .profile-quota-item.is-full {
  border-color: rgba(251, 191, 36, 0.32);
}

body.prism-app .profile-quota-foot {
  color: var(--prism-muted);
}

body.prism-app .profile-community-card {
  border-color: var(--prism-line);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), transparent 60%),
    rgba(var(--prism-surface-rgb), 0.76);
  box-shadow: 0 18px 44px rgba(4, 1, 6, 0.24);
}

body.prism-app .profile-community-card__title {
  color: var(--prism-ink);
}

body.prism-app .profile-community-card__text {
  color: var(--prism-pearl);
}

body.prism-app .profile-community-card__hint {
  color: var(--prism-muted);
}

body.prism-app .profile-community-forums a {
  border-color: var(--prism-line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--prism-pearl);
}

body.prism-app .profile-community-forums a:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.075);
}

body.prism-app .profile-community-support {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.065);
  color: var(--prism-ink);
}

body.prism-app .profile-community-support:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.11);
}

/* Consistent motion across network and nested tabs */
body.prism-app .network-strip button,
body.prism-app [data-admin-subtab],
body.prism-app [data-design-tab],
body.prism-app [data-domain-subtab],
body.prism-app [data-tron-subtab] {
  transition:
    color 0.28s ease,
    background 0.32s cubic-bezier(.2,.8,.2,1),
    box-shadow 0.32s ease,
    transform 0.32s cubic-bezier(.2,.8,.2,1);
}

body.prism-app .network-strip button:active,
body.prism-app [data-admin-subtab]:active,
body.prism-app [data-design-tab]:active {
  transform: scale(0.975);
}

body.prism-app #profile-network-wrap .profile-network-viewport {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  overflow: visible;
  min-height: 0;
  position: relative;
}

body.prism-app #profile-network-wrap .profile-network-panel {
  position: relative !important;
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  min-width: 0;
  transform: none !important;
}

body.prism-app #profile-network-wrap .profile-network-panel .profile-network-card__layout {
  width: 100%;
}

body.prism-app #profile-network-wrap .profile-network-panel[hidden] {
  display: none !important;
}

body.prism-app #profile-network-wrap .profile-network-panel:not(.is-active):not(.is-leaving) {
  position: absolute !important;
  inset: 0 auto auto 0;
  width: 100%;
  height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.prism-app #profile-network-wrap .profile-network-panel.is-active {
  opacity: 1;
  visibility: visible;
}

body.prism-app .profile-network-wrap .profile-network-card {
  transition: none;
}

body.prism-app .profile-network-wrap.is-switching .profile-network-card {
  opacity: 1;
}

body.prism-app .profile-network-wrap.is-switching .profile-network-viewport {
  overflow: hidden;
}

body.prism-app .profile-network-wrap.is-switching .profile-network-panel.is-leaving {
  display: block !important;
  position: absolute !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
  visibility: visible;
  pointer-events: none;
  z-index: 1;
  animation: studio-network-out 0.42s ease both;
}

body.prism-app .profile-network-wrap.is-switching .profile-network-panel.is-active {
  display: block !important;
  position: absolute !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
  animation: studio-network-in 0.42s ease both;
}

body.prism-app .profile-network-wrap.is-switching-forward .profile-network-panel.is-active,
body.prism-app .profile-network-wrap.is-switching-back .profile-network-panel.is-active {
  animation: studio-network-in 0.42s ease both !important;
  transform: none !important;
}

@keyframes studio-network-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes studio-network-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

body.prism-app [data-design-panel]:not(.panel-hidden),
body.prism-app [data-admin-subtab-panel]:not(.panel-hidden),
body.prism-app [data-domain-subpanel]:not(.panel-hidden),
body.prism-app [data-tron-subpanel]:not(.panel-hidden) {
  animation: studio-subpanel-in 0.4s cubic-bezier(.16,1,.3,1) both;
}

@keyframes studio-subpanel-in {
  from { opacity: 0; transform: translateY(8px) scale(0.995); filter: blur(2px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}

/* All modals stay mounted so both opening and closing can animate */
body.prism-app .modal-backdrop {
  display: flex !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    visibility 0s linear 0.36s,
    backdrop-filter 0.36s ease;
}

body.prism-app .modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 0.3s ease,
    visibility 0s,
    backdrop-filter 0.36s ease;
}

body.prism-app .modal-panel,
body.prism-app .auth-modal-shell {
  opacity: 0;
  transform: translateY(18px) scale(0.965);
  transition:
    opacity 0.3s ease,
    transform 0.44s cubic-bezier(.16,1,.3,1) !important;
}

body.prism-app .modal-backdrop.is-open .modal-panel,
body.prism-app .modal-backdrop.is-open .auth-modal-shell {
  opacity: 1;
  transform: none;
}

body.prism-app .auth-modal-card,
body.prism-app .modal-panel {
  position: relative !important;
  padding: 28px !important;
}

body.prism-app .auth-modal-card > .auth-modal-close,
body.prism-app .modal-panel .modal-close-btn,
body.prism-app .modal-panel .modal-domain-delete__close {
  position: absolute !important;
  z-index: 20 !important;
  top: 12px !important;
  right: 12px !important;
  bottom: auto !important;
  left: auto !important;
  width: 34px !important;
  height: 34px !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.prism-app .auth-modal-card .auth-header {
  margin: 0 38px 20px;
  min-height: 34px;
  justify-content: center;
}

body.prism-app .modal-panel > .flex.items-start.justify-between,
body.prism-app .modal-panel > .flex.shrink-0.items-start.justify-between {
  position: static !important;
  display: block !important;
  min-height: 34px;
  margin: 0 38px 20px;
  text-align: center;
}

body.prism-app .modal-panel > .flex.items-start.justify-between > .min-w-0,
body.prism-app .modal-panel > .flex.shrink-0.items-start.justify-between > .min-w-0 {
  text-align: center;
}

@media (max-width: 1023px) {
  body.prism-app .modal-backdrop {
    inset:
      var(--dash-header-offset, 4.5rem)
      0
      0
      0 !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px)) !important;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  body.prism-app .modal-backdrop .modal-panel,
  body.prism-app .modal-backdrop .auth-modal-shell {
    max-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  body.prism-app #modal-domain-cloaking .modal-panel {
    max-height: 100% !important;
  }
}

@media (max-width: 639px) {
  body.prism-app .auth-modal-card,
  body.prism-app .modal-panel {
    padding: 24px !important;
  }

  body.prism-app .auth-modal-card > .auth-modal-close,
  body.prism-app .modal-panel .modal-close-btn,
  body.prism-app .modal-panel .modal-domain-delete__close {
    top: 10px !important;
    right: 10px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.prism-app::before,
  body.prism-app::after {
    animation: none !important;
  }

  body.prism-app .dash-header-icon-btn.is-help-ping,
  body.prism-app .dash-user-menu-trigger.is-menu-hint,
  body.prism-app .dash-header-icon-btn.is-help-ping::before,
  body.prism-app .dash-header-icon-btn.is-help-ping::after,
  body.prism-app .dash-user-menu-trigger.is-menu-hint::before,
  body.prism-app .dash-user-menu-trigger.is-menu-hint::after {
    animation: none !important;
  }

  body.prism-app .profile-network-wrap.is-switching .profile-network-panel.is-leaving,
  body.prism-app .profile-network-wrap.is-switching .profile-network-panel.is-active {
    animation: none !important;
  }
}

/* Единый тактильный визуальный отклик без выделения текста на мобильных. */
body.prism-app button,
body.prism-app [role="button"],
body.prism-app input[type="button"],
body.prism-app input[type="submit"],
body.prism-app input[type="reset"],
body.prism-app a.btn-ghost,
body.prism-app a.btn-icon,
body.prism-app a.btn-chrome,
body.prism-app a.modal-save-btn,
body.prism-app a.dash-nav-item {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}

body.prism-app .nc-button-press {
  animation: nc-button-press 100ms cubic-bezier(.2,.8,.2,1) both !important;
}

body.prism-app .nc-button-release {
  animation: nc-button-release 180ms cubic-bezier(.16,1,.3,1) both !important;
}

@keyframes nc-button-press {
  from {
    scale: 1;
    translate: 0 0;
    filter: brightness(1);
  }
  to {
    scale: .965;
    translate: 0 1px;
    filter: brightness(.9);
  }
}

@keyframes nc-button-release {
  from {
    scale: .965;
    translate: 0 1px;
    filter: brightness(.9);
  }
  70% {
    scale: 1.012;
    translate: 0 0;
    filter: brightness(1.04);
  }
  to {
    scale: 1;
    translate: 0 0;
    filter: brightness(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.prism-app .nc-button-press,
  body.prism-app .nc-button-release {
    animation: none !important;
  }
}

/*
 * Mobile performance: cheaper real glass by default, painted glass in Lite.
 */
@media (max-width: 1023px) {
  body.prism-app .dedex-dash-bar,
  body.prism-app .dash-lang__menu,
  body.prism-app .dash-user-dropdown,
  body.prism-app .dash-footer__inner,
  body.prism-app .dash-footer__more-btn,
  body.prism-app .dash-nav-item[data-tab="profile"] .dash-nav-item__icon,
  body.prism-app .glass-card,
  body.prism-app .domain-hoster-card,
  body.prism-app .design-card,
  body.prism-app .modal-panel,
  body.prism-app .modal-backdrop,
  body.prism-app #domains-detail-view .network-strip,
  body.prism-app .profile-network-card,
  body.prism-app .studio-telegram-overlay {
    -webkit-backdrop-filter: blur(8px) !important;
    backdrop-filter: blur(8px) !important;
  }

  body.prism-app .dedex-dash-bar,
  body.prism-app .dash-footer__inner {
    background:
      linear-gradient(110deg, rgba(255, 255, 255, 0.03), transparent 36%),
      rgba(var(--prism-surface-rgb), 0.93) !important;
  }

  body.prism-app .glass-card,
  body.prism-app .domain-hoster-card,
  body.prism-app .design-card,
  body.prism-app .modal-panel,
  body.prism-app .profile-network-card {
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.03), transparent 44%),
      rgba(var(--prism-surface-rgb), 0.91) !important;
  }

  body.prism-app .domain-detail-view .network-strip--domains,
  body.prism-app #domains-detail-view .network-strip--domains {
    width: 100%;
    max-width: none;
    align-self: stretch;
    background:
      linear-gradient(110deg, rgba(255, 255, 255, 0.03), transparent 42%),
      rgba(var(--prism-surface-rgb), 0.94) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    backdrop-filter: blur(6px) !important;
  }

  body.prism-app .network-strip--domains > button {
    flex: 1 1 0;
    min-width: 0;
  }

  body.prism-app .glass-card::after,
  body.prism-app .domain-hoster-card::after,
  body.prism-app #profile-network-wrap .profile-network-aside::after {
    filter: none !important;
    background: linear-gradient(
      110deg,
      rgba(255, 255, 255, 0.045),
      transparent 72%
    ) !important;
  }

  body.prism-app .modal-backdrop {
    background: rgba(5, 2, 6, 0.82) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    backdrop-filter: blur(4px) !important;
  }

  html.prism-safe-mode-boot body.prism-app
    :is(
      .dedex-dash-bar,
      .dash-lang__menu,
      .dash-user-dropdown,
      .dash-footer__inner,
      .dash-footer__more-btn,
      .dash-nav-item[data-tab="profile"] .dash-nav-item__icon,
      .glass-card,
      .domain-hoster-card,
      .design-card,
      .modal-panel,
      .modal-backdrop,
      #domains-detail-view .network-strip,
      .profile-network-card,
      .studio-telegram-overlay
    ),
  body.prism-app.prism-safe-mode
    :is(
      .dedex-dash-bar,
      .dash-lang__menu,
      .dash-user-dropdown,
      .dash-footer__inner,
      .dash-footer__more-btn,
      .dash-nav-item[data-tab="profile"] .dash-nav-item__icon,
      .glass-card,
      .domain-hoster-card,
      .design-card,
      .modal-panel,
      .modal-backdrop,
      #domains-detail-view .network-strip,
      .profile-network-card,
      .studio-telegram-overlay
    ) {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  html.prism-safe-mode-boot body.prism-app
    :is(.dedex-dash-bar, .dash-footer__inner, .glass-card, .domain-hoster-card, .design-card, .modal-panel),
  body.prism-app.prism-safe-mode
    :is(.dedex-dash-bar, .dash-footer__inner, .glass-card, .domain-hoster-card, .design-card, .modal-panel) {
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.025), transparent 46%),
      rgba(var(--prism-surface-rgb), 0.95) !important;
  }
}
