#dhxAdminDrawerBackdrop,
#dhxAdminAccountDrawer {
  --ad-bg: #070806;
  --ad-surface: #111210;
  --ad-surface-2: #171614;
  --ad-border: #2a2518;
  --ad-text: #e2e8f0;
  --ad-muted: #9aa090;
  --ad-gold: #f59e0b;
  --ad-gold-2: #fbbf24;
  --ad-green: #22c55e;
  --ad-red: #ef4444;
  --ad-blue: #60a5fa;
  --ad-hover: rgba(245, 158, 11, .08);
  --ad-shadow: rgba(0, 0, 0, .58);
  box-sizing: border-box;
}

body.light #dhxAdminDrawerBackdrop,
body.light #dhxAdminAccountDrawer {
  --ad-bg: #f7f4ec;
  --ad-surface: #fffdf8;
  --ad-surface-2: #f1eadc;
  --ad-border: #d6c49e;
  --ad-text: #17120a;
  --ad-muted: #7a6c58;
  --ad-gold: #9a6800;
  --ad-gold-2: #7a5200;
  --ad-green: #168a45;
  --ad-red: #c93838;
  --ad-blue: #2563a8;
  --ad-hover: rgba(154, 104, 0, .08);
  --ad-shadow: rgba(86, 59, 10, .2);
}

#dhxAdminAccountDrawer *,
#dhxAdminAccountDrawer *::before,
#dhxAdminAccountDrawer *::after {
  box-sizing: border-box;
}

body.dhx-admin-drawer-open {
  overflow: hidden;
}

#dhxAdminDrawerBackdrop {
  position: fixed;
  inset: 0;
  z-index: 8000;
  opacity: 0;
  pointer-events: none;
  background: rgba(0, 0, 0, .38);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: opacity .2s ease;
}

body.light #dhxAdminDrawerBackdrop {
  background: rgba(23, 18, 10, .24);
}

body.dhx-admin-drawer-open #dhxAdminDrawerBackdrop {
  opacity: 1;
  pointer-events: auto;
}

#dhxAdminAccountDrawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 8010;
  width: min(430px, 100vw);
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  color: var(--ad-text);
  background:
    linear-gradient(180deg, rgba(245, 158, 11, .075), transparent 112px),
    var(--ad-bg);
  border-left: 1px solid var(--ad-border);
  box-shadow: -24px 0 72px var(--ad-shadow);
  font-family: system-ui, -apple-system, "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  transform: translateX(104%);
  transition: transform .28s cubic-bezier(.2, .8, .2, 1);
}

body.dhx-admin-drawer-open #dhxAdminAccountDrawer {
  transform: translateX(0);
}

.dhx-ad-view {
  position: absolute;
  inset: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: max(22px, env(safe-area-inset-top)) 18px max(22px, env(safe-area-inset-bottom));
  scrollbar-width: thin;
  scrollbar-color: var(--ad-gold) transparent;
  transition: transform .28s cubic-bezier(.2, .8, .2, 1), opacity .2s ease;
}

.dhx-ad-main {
  transform: translateX(0);
  opacity: 1;
}

.dhx-ad-detail {
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(245, 158, 11, .075), transparent 112px),
    var(--ad-bg);
}

#dhxAdminAccountDrawer.dhx-ad-detail-open .dhx-ad-main {
  transform: translateX(-18%);
  opacity: .24;
  pointer-events: none;
}

#dhxAdminAccountDrawer.dhx-ad-detail-open .dhx-ad-detail {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.dhx-ad-profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 8px 2px 20px;
}

.dhx-ad-uid {
  min-width: 0;
  overflow: hidden;
  color: var(--ad-text);
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.dhx-ad-profile-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  color: var(--ad-muted);
  font-size: .78rem;
  font-weight: 750;
}

.dhx-ad-plan-tag {
  flex: 0 0 auto;
  padding: 3px 7px;
  border: 1px solid color-mix(in srgb, var(--ad-gold) 38%, transparent);
  border-radius: 6px;
  background: color-mix(in srgb, var(--ad-gold) 11%, transparent);
  color: var(--ad-gold-2);
  font-size: .66rem;
  font-weight: 900;
}

.dhx-ad-online {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.dhx-ad-online::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ad-green);
  box-shadow: 0 0 9px color-mix(in srgb, var(--ad-green) 45%, transparent);
}

.dhx-ad-icon-btn,
.dhx-ad-back {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--ad-gold) 30%, var(--ad-border));
  border-radius: 12px;
  background:
    radial-gradient(circle at 32% 12%, color-mix(in srgb, var(--ad-gold) 16%, transparent), transparent 52%),
    linear-gradient(180deg, color-mix(in srgb, #fff 5%, var(--ad-surface)), var(--ad-surface-2));
  color: var(--ad-gold-2);
  text-decoration: none;
  font: inherit;
  font-size: 1.08rem;
  font-weight: 950;
  line-height: 1;
  cursor: pointer;
  box-shadow:
    0 10px 22px color-mix(in srgb, var(--ad-shadow) 62%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, .08);
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease, transform .18s ease;
}

.dhx-ad-back {
  font-size: 1.28rem;
}

.dhx-ad-icon-btn:hover,
.dhx-ad-back:hover {
  border-color: color-mix(in srgb, var(--ad-gold-2) 72%, var(--ad-border));
  color: #fff4cf;
  background:
    radial-gradient(circle at 34% 14%, color-mix(in srgb, var(--ad-gold) 24%, transparent), transparent 55%),
    linear-gradient(180deg, color-mix(in srgb, var(--ad-gold) 11%, var(--ad-surface)), var(--ad-surface-2));
  box-shadow:
    0 12px 26px color-mix(in srgb, var(--ad-shadow) 72%, transparent),
    0 0 0 3px color-mix(in srgb, var(--ad-gold) 10%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, .1);
  transform: translateY(-1px);
}

.dhx-ad-icon-btn:active,
.dhx-ad-back:active,
.dhx-ad-primary:active,
.dhx-ad-secondary:active {
  transform: translateY(0) scale(.98);
}

.dhx-ad-summary {
  padding: 16px 0 18px;
  border-top: 1px solid var(--ad-border);
  border-bottom: 1px solid var(--ad-border);
}

.dhx-ad-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.dhx-ad-metric {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--ad-border);
  border-radius: 8px;
  background: var(--ad-surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
}

.dhx-ad-metric-label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--ad-muted);
  font-size: .7rem;
  font-weight: 800;
}

.dhx-ad-metric strong {
  display: block;
  margin-top: 8px;
  overflow: hidden;
  color: var(--ad-text);
  font-size: 1.08rem;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.dhx-ad-metric-note {
  display: block;
  margin-top: 5px;
  color: var(--ad-green);
  font-size: .72rem;
  font-weight: 850;
}

.dhx-ad-progress {
  margin-top: 14px;
  color: var(--ad-muted);
  font-size: .76rem;
  font-weight: 800;
}

.dhx-ad-progress-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.dhx-ad-progress-head b {
  color: var(--ad-gold-2);
  text-align: right;
  white-space: nowrap;
  font-size: .74rem;
  font-variant-numeric: tabular-nums;
}

.dhx-ad-progress-track {
  height: 5px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--ad-border);
}

.dhx-ad-progress-track span {
  display: block;
  width: var(--ad-progress, 0%);
  height: 100%;
  background: linear-gradient(90deg, var(--ad-gold), var(--ad-gold-2));
}

.dhx-ad-section {
  padding-top: 22px;
}

.dhx-ad-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--ad-muted);
  font-size: .8rem;
  font-weight: 850;
}

.dhx-ad-watchlist {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 42%;
  gap: 9px;
  overflow-x: auto;
  padding-bottom: 3px;
  scrollbar-width: none;
}

.dhx-ad-watchlist::-webkit-scrollbar { display: none; }

.dhx-ad-coin {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--ad-border);
  border-radius: 8px;
  background: var(--ad-surface);
}

.dhx-ad-coin b,
.dhx-ad-coin span {
  display: block;
}

.dhx-ad-coin b {
  color: var(--ad-text);
  font-size: .95rem;
}

.dhx-ad-coin span {
  margin-top: 10px;
  color: var(--ad-muted);
  font-size: .68rem;
  font-weight: 800;
}

.dhx-ad-watch-alerts {
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid rgba(245, 158, 11, .34);
  border-radius: 8px;
  background: rgba(245, 158, 11, .055);
}

.dhx-ad-watch-alert-head,
.dhx-ad-watch-volume,
.dhx-ad-watch-card-head,
.dhx-ad-watch-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dhx-ad-watch-alert-head {
  margin-bottom: 9px;
  color: var(--ad-gold-2);
  font-size: .72rem;
  font-weight: 850;
}

.dhx-ad-watch-alert-head span:last-child {
  color: var(--ad-muted);
  font-size: .66rem;
}

.dhx-ad-watch-alert-list {
  display: grid;
  gap: 6px;
}

.dhx-ad-watch-alert {
  display: grid;
  grid-template-columns: minmax(88px, auto) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 9px;
  border: 1px solid var(--ad-border);
  border-radius: 6px;
  color: var(--ad-text);
  background: var(--ad-surface);
  text-align: left;
  cursor: pointer;
}

.dhx-ad-watch-alert:hover { border-color: var(--ad-gold); }

.dhx-ad-watch-alert b,
.dhx-ad-watch-alert span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dhx-ad-watch-alert b { font-size: .7rem; }
.dhx-ad-watch-alert span { color: var(--ad-muted); font-size: .68rem; }

.dhx-ad-watch-grid {
  display: grid;
  gap: 10px;
}

.dhx-ad-watch-card {
  padding: 13px;
  border: 1px solid var(--ad-border);
  border-radius: 8px;
  background: var(--ad-surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease;
}

.dhx-ad-watch-card:hover {
  border-color: rgba(245, 158, 11, .6);
  background: var(--ad-hover);
}

.dhx-ad-watch-card.has-alert { border-left: 3px solid var(--ad-gold); }

.dhx-ad-watch-card-head strong {
  color: var(--ad-text);
  font-size: 1rem;
}

.dhx-ad-watch-remove {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(245, 158, 11, .42);
  border-radius: 6px;
  color: var(--ad-gold-2);
  background: rgba(245, 158, 11, .07);
  cursor: pointer;
}

.dhx-ad-watch-remove .dhx-ad-menu-icon-svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.dhx-ad-watch-price { margin-top: 8px; }

.dhx-ad-watch-price b {
  color: var(--ad-text);
  font-size: 1.12rem;
}

.dhx-ad-watch-price span,
.dhx-ad-watch-metrics b,
.dhx-ad-watch-card-foot > span {
  font-size: .78rem;
  font-weight: 850;
}

.dhx-ad-watch-card .up { color: var(--ad-green); }
.dhx-ad-watch-card .down { color: var(--ad-red); }
.dhx-ad-watch-card .neutral { color: var(--ad-muted); }

.dhx-ad-watch-volume {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid var(--ad-border);
  color: var(--ad-muted);
  font-size: .7rem;
}

.dhx-ad-watch-volume b { color: var(--ad-text); }

.dhx-ad-watch-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 9px;
}

.dhx-ad-watch-metrics > div {
  display: grid;
  gap: 4px;
  padding: 8px 9px;
  border: 1px solid var(--ad-border);
  border-radius: 6px;
  background: var(--ad-surface-2);
}

.dhx-ad-watch-metrics span {
  color: var(--ad-muted);
  font-size: .65rem;
  font-weight: 750;
}

.dhx-ad-watch-card-foot {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  margin-top: 10px;
}

.dhx-ad-watch-card-foot > span {
  padding: 5px 7px;
  border-radius: 5px;
  background: var(--ad-surface-2);
  white-space: nowrap;
}

.dhx-ad-watch-signal {
  display: grid;
  min-width: 0;
}

.dhx-ad-watch-signal span {
  color: var(--ad-gold-2);
  font-size: .62rem;
  font-weight: 850;
}

.dhx-ad-watch-signal b {
  overflow: hidden;
  margin-top: 2px;
  color: var(--ad-muted);
  font-size: .67rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dhx-ad-menu {
  overflow: hidden;
  border: 1px solid var(--ad-border);
  border-radius: 8px;
  background: var(--ad-surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
}

.dhx-ad-menu-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 58px;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid var(--ad-border);
  background: transparent;
  color: var(--ad-text);
  text-align: left;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
  transition: background .18s ease;
}

.dhx-ad-menu-item:last-child { border-bottom: 0; }
.dhx-ad-menu-item:hover { background: var(--ad-hover); }

.dhx-ad-version-entry {
  padding-bottom: 8px;
}

.dhx-ad-version-entry .dhx-ad-menu {
  border-color: color-mix(in srgb, var(--ad-gold) 28%, var(--ad-border));
  background: linear-gradient(135deg, color-mix(in srgb, var(--ad-gold) 8%, var(--ad-surface)), var(--ad-surface));
}

.dhx-ad-menu-item-disabled,
.dhx-ad-menu-item-disabled:hover {
  background: transparent;
  cursor: default;
  opacity: .72;
}

.dhx-ad-menu-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ad-border);
  border-radius: 7px;
  background: var(--ad-surface-2);
  color: var(--ad-gold-2);
  font-size: .88rem;
  font-weight: 900;
}

.dhx-ad-menu-icon-svg {
  width: 17px;
  height: 17px;
  display: block;
}

.dhx-ad-menu-title,
.dhx-ad-menu-sub {
  display: block;
}

.dhx-ad-menu-title {
  overflow: hidden;
  color: var(--ad-text);
  font-size: .88rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dhx-ad-menu-sub {
  margin-top: 3px;
  color: var(--ad-muted);
  font-size: .68rem;
  font-weight: 700;
  line-height: 1.3;
}

.dhx-ad-chevron {
  color: var(--ad-muted);
  font-size: 1rem;
}

.dhx-ad-soon {
  padding: 2px 6px;
  border: 1px solid color-mix(in srgb, var(--ad-gold) 28%, transparent);
  border-radius: 6px;
  background: color-mix(in srgb, var(--ad-gold) 8%, transparent);
  color: var(--ad-gold-2);
  font-size: .62rem;
  font-weight: 950;
}

.dhx-ad-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 22px;
}

.dhx-ad-secondary,
.dhx-ad-primary {
  min-height: 42px;
  border: 1px solid var(--ad-border);
  border-radius: 8px;
  background: var(--ad-surface);
  color: var(--ad-text);
  font: inherit;
  font-size: .8rem;
  font-weight: 900;
  cursor: pointer;
}

.dhx-ad-primary {
  border-color: var(--ad-gold);
  background: linear-gradient(135deg, var(--ad-gold-2), var(--ad-gold));
  color: #17120a;
}

.dhx-ad-detail-header {
  position: sticky;
  top: calc(max(22px, env(safe-area-inset-top)) * -1);
  z-index: 3;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 11px;
  margin: -22px -18px 0;
  padding: max(18px, env(safe-area-inset-top)) 18px 14px;
  border-bottom: 1px solid var(--ad-border);
  background: color-mix(in srgb, var(--ad-bg) 92%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.dhx-ad-detail-kicker {
  display: block;
  margin-bottom: 2px;
  color: var(--ad-gold-2);
  font-size: .64rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.dhx-ad-detail-title {
  margin: 0;
  color: var(--ad-text);
  font-size: 1.05rem;
  line-height: 1.25;
}

.dhx-ad-detail-content {
  min-width: 0;
  padding-top: 18px;
  overflow-x: hidden;
}

.dhx-ad-intro {
  margin: 0 0 16px;
  color: var(--ad-muted);
  font-size: .77rem;
  line-height: 1.55;
}

.dhx-ad-tabs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 3px;
  margin-bottom: 16px;
  padding: 3px;
  border: 1px solid var(--ad-border);
  border-radius: 8px;
  background: var(--ad-surface-2);
}

.dhx-ad-tab {
  min-height: 33px;
  padding: 5px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ad-muted);
  font: inherit;
  font-size: .72rem;
  font-weight: 850;
  cursor: pointer;
}

.dhx-ad-tab.active {
  background: var(--ad-surface);
  color: var(--ad-gold-2);
  box-shadow: 0 0 0 1px var(--ad-border);
}

.dhx-ad-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 18px;
  border-top: 1px solid var(--ad-border);
  border-bottom: 1px solid var(--ad-border);
}

.dhx-ad-stat {
  min-width: 0;
  padding: 12px 8px 13px;
  border-right: 1px solid var(--ad-border);
}

.dhx-ad-stat:first-child { padding-left: 0; }
.dhx-ad-stat:last-child { border-right: 0; }

.dhx-ad-stat span,
.dhx-ad-stat b {
  display: block;
}

.dhx-ad-stat span {
  color: var(--ad-muted);
  font-size: .67rem;
  font-weight: 750;
}

.dhx-ad-stat b {
  margin-top: 5px;
  color: var(--ad-text);
  font-size: 1.02rem;
  font-variant-numeric: tabular-nums;
}

.dhx-ad-positive { color: var(--ad-green) !important; }
.dhx-ad-negative { color: var(--ad-red) !important; }

.dhx-ad-detail-section { margin-top: 20px; }

.dhx-ad-detail-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
  color: var(--ad-muted);
  font-size: .72rem;
  font-weight: 850;
}

.dhx-ad-detail-section-head b {
  color: var(--ad-text);
  font-size: .8rem;
}

.dhx-ad-panel {
  overflow: hidden;
  border: 1px solid var(--ad-border);
  border-radius: 8px;
  background: var(--ad-surface);
}

.dhx-ad-version-week {
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid var(--ad-border);
  border-radius: 8px;
  background: var(--ad-surface);
}

.dhx-ad-version-week:first-of-type {
  margin-top: 0;
}

.dhx-ad-version-week summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 11px 12px;
  color: var(--ad-text);
  cursor: pointer;
  list-style: none;
}

.dhx-ad-version-week summary::-webkit-details-marker { display: none; }

.dhx-ad-version-week summary:hover {
  background: var(--ad-hover);
}

.dhx-ad-version-week summary > span:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.dhx-ad-version-week summary b {
  font-size: .78rem;
  font-variant-numeric: tabular-nums;
}

.dhx-ad-version-week summary small {
  color: var(--ad-muted);
  font-size: .64rem;
  font-weight: 750;
}

.dhx-ad-version-count {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  color: var(--ad-muted);
  font-size: .66rem;
  font-weight: 850;
}

.dhx-ad-version-count i {
  color: var(--ad-text);
  font-size: .9rem;
  font-style: normal;
  transition: transform .18s ease;
}

.dhx-ad-version-week[open] .dhx-ad-version-count i {
  transform: rotate(180deg);
}

.dhx-ad-version-list {
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-top: 1px solid var(--ad-border);
  list-style: none;
}

.dhx-ad-version-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  padding: 13px 12px;
  border-bottom: 1px solid var(--ad-border);
}

.dhx-ad-version-item:last-child {
  border-bottom: 0;
}

.dhx-ad-version-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.dhx-ad-version-meta time {
  color: var(--ad-muted);
  font-size: .66rem;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.dhx-ad-version-badge {
  padding: 2px 6px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: .58rem;
  font-weight: 950;
  line-height: 1.35;
}

.dhx-ad-version-badge.live { color: var(--ad-green); }
.dhx-ad-version-badge.removed { color: var(--ad-red); }
.dhx-ad-version-badge.fixed { color: var(--ad-gold-2); }
.dhx-ad-version-badge.changed { color: var(--ad-blue); }

.dhx-ad-version-copy b,
.dhx-ad-version-copy p {
  display: block;
  margin: 0;
}

.dhx-ad-version-copy b {
  color: var(--ad-text);
  font-size: .78rem;
  line-height: 1.4;
}

.dhx-ad-version-copy p {
  margin-top: 4px;
  color: var(--ad-muted);
  font-size: .68rem;
  font-weight: 650;
  line-height: 1.55;
}

.dhx-ad-history-row,
.dhx-ad-event-row,
.dhx-ad-analysis-row {
  display: grid;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  padding: 11px 12px;
  border-bottom: 1px solid var(--ad-border);
}

.dhx-ad-history-row:last-child,
.dhx-ad-event-row:last-child,
.dhx-ad-analysis-row:last-child { border-bottom: 0; }

.dhx-ad-history-row { grid-template-columns: 36px minmax(0, 1fr) auto; }

.dhx-ad-trade-side {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: color-mix(in srgb, var(--ad-green) 9%, var(--ad-surface-2));
  color: var(--ad-green);
  font-size: .67rem;
  font-weight: 950;
}

.dhx-ad-trade-side.short {
  background: color-mix(in srgb, var(--ad-red) 8%, var(--ad-surface-2));
  color: var(--ad-red);
}

.dhx-ad-row-title,
.dhx-ad-row-sub {
  display: block;
}

.dhx-ad-row-title {
  color: var(--ad-text);
  font-size: .83rem;
  font-weight: 900;
}

.dhx-ad-row-sub {
  margin-top: 3px;
  color: var(--ad-muted);
  font-size: .67rem;
  line-height: 1.3;
}

.dhx-ad-row-value {
  text-align: right;
  font-size: .76rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.dhx-ad-event-date {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.dhx-ad-panel + .dhx-ad-event-date { margin-top: 16px; }

.dhx-ad-event-date strong {
  color: var(--ad-text);
  font-size: 1.8rem;
  line-height: 1;
}

.dhx-ad-event-date span {
  color: var(--ad-muted);
  font-size: .73rem;
  font-weight: 800;
}

.dhx-ad-event-row { display: block; min-height: 0; padding: 0; }
.dhx-ad-event-trigger { display: grid; grid-template-columns: 45px 5px minmax(0,1fr); align-items: center; gap: 10px; width: 100%; min-height: 60px; padding: 11px 12px; border: 0; background: transparent; color: inherit; text-align: left; font: inherit; cursor: pointer; touch-action: manipulation; transition: background .18s ease; }
.dhx-ad-event-trigger:hover,.dhx-ad-event-row.open .dhx-ad-event-trigger { background: var(--ad-hover); }
.dhx-ad-event-trigger:focus-visible { position: relative; z-index: 1; outline: 3px solid color-mix(in srgb,var(--ad-gold) 72%,white); outline-offset: -3px; }
.dhx-ad-event-copy { min-width: 0; }
.dhx-ad-event-more { display: flex; align-items: center; gap: 3px; margin-top: 7px; color: var(--ad-gold); font-size: .65rem; font-weight: 850; }
.dhx-ad-event-more svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; transition: transform .18s ease; }
.dhx-ad-event-row.open .dhx-ad-event-more svg { transform: rotate(180deg); }
.dhx-ad-event-detail { display: grid; gap: 8px; padding: 0 12px 12px 72px; background: var(--ad-hover); }
.dhx-ad-event-detail[hidden] { display: none; }
.dhx-ad-event-guide { display: grid; gap: 9px; padding: 11px; border: 1px solid var(--ad-border); border-left: 3px solid var(--ad-gold); border-radius: 8px; background: var(--ad-surface); }
.dhx-ad-event-guide-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dhx-ad-event-guide-head b { color: var(--ad-gold); font-size: .75rem; }
.dhx-ad-event-guide-head span,.dhx-ad-event-guide small { color: var(--ad-muted); font-size: .61rem; font-weight: 800; }
.dhx-ad-event-guide > div > b { color: var(--ad-text); font-size: .68rem; }
.dhx-ad-event-guide p { margin: 3px 0 0; color: var(--ad-muted); font-size: .68rem; line-height: 1.55; }

.dhx-ad-event-time {
  color: var(--ad-text);
  font-size: .72rem;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.dhx-ad-impact {
  width: 4px;
  height: 28px;
  border-radius: 2px;
  background: var(--ad-gold);
}

.dhx-ad-impact.high { background: var(--ad-red); }
.dhx-ad-impact.medium { background: #f59e0b; }
.dhx-ad-impact.low { background: var(--ad-green); }

.dhx-ad-event-sync {
  display: block;
  margin-top: 7px;
  color: var(--ad-gold);
  font-size: .68rem;
  font-weight: 800;
}

.dhx-ad-event-insight {
  display: grid;
  gap: 5px;
  margin-top: 8px;
  padding: 9px 10px;
  border: 1px solid var(--ad-border);
  border-left: 3px solid var(--ad-gold);
  border-radius: 8px;
  background: color-mix(in srgb, var(--ad-surface) 90%, var(--ad-gold));
  color: var(--ad-text);
  font-size: .69rem;
  line-height: 1.5;
}

.dhx-ad-event-insight.hawk { border-left-color: var(--ad-red); }
.dhx-ad-event-insight.dove { border-left-color: var(--ad-green); }

.dhx-ad-event-insight-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dhx-ad-event-insight-head b { color: var(--ad-gold); }
.dhx-ad-event-insight.hawk .dhx-ad-event-insight-head b { color: var(--ad-red); }
.dhx-ad-event-insight.dove .dhx-ad-event-insight-head b { color: var(--ad-green); }

.dhx-ad-event-insight-head em {
  padding: 2px 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ad-red) 16%, transparent);
  color: var(--ad-red);
  font-size: .61rem;
  font-style: normal;
  font-weight: 900;
}

.dhx-ad-event-insight > strong { font-size: .74rem; }
.dhx-ad-event-insight ul { margin: 0; padding-left: 17px; }

.dhx-ad-event-source {
  color: var(--ad-muted);
  font-size: .62rem;
  font-weight: 750;
}

a.dhx-ad-event-source { color: var(--ad-gold); text-decoration: underline; }
.dhx-ad-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.dhx-ad-field {
  display: block;
  min-width: 0;
}

.dhx-ad-field.full { grid-column: 1 / -1; }

.dhx-ad-field > span {
  display: block;
  margin-bottom: 6px;
  color: var(--ad-muted);
  font-size: .67rem;
  font-weight: 800;
}

.dhx-ad-field input,
.dhx-ad-field textarea,
.dhx-ad-field select {
  width: 100%;
  min-height: 40px;
  padding: 9px 10px;
  border: 1px solid var(--ad-border);
  border-radius: 7px;
  outline: 0;
  background: var(--ad-surface);
  color: var(--ad-text);
  font: inherit;
  font-size: .8rem;
  font-variant-numeric: tabular-nums;
}

.dhx-ad-field textarea {
  min-height: 72px;
  resize: vertical;
  line-height: 1.45;
}

.dhx-ad-field input:focus,
.dhx-ad-field textarea:focus,
.dhx-ad-field select:focus {
  border-color: var(--ad-gold);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--ad-gold) 13%, transparent);
}

.dhx-ad-result {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1px;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--ad-border);
  border-radius: 8px;
  background: var(--ad-border);
}

.dhx-ad-result > div {
  padding: 13px;
  background: var(--ad-surface);
}

.dhx-ad-result span,
.dhx-ad-result strong {
  display: block;
}

.dhx-ad-result span {
  color: var(--ad-muted);
  font-size: .66rem;
  font-weight: 800;
}

.dhx-ad-result strong {
  margin-top: 5px;
  color: var(--ad-gold-2);
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
}

.dhx-ad-result > div:last-child strong {
  color: var(--ad-text);
  font-size: .9rem;
}

.dhx-ad-direction {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--ad-border);
  border-radius: 7px;
  background: var(--ad-surface-2);
}

.dhx-ad-direction button {
  min-height: 34px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--ad-muted);
  font: inherit;
  font-size: .73rem;
  font-weight: 900;
  cursor: pointer;
}

.dhx-ad-direction button.active {
  background: color-mix(in srgb, var(--ad-green) 10%, var(--ad-surface));
  color: var(--ad-green);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ad-green) 28%, transparent);
}

.dhx-ad-check {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 7px 0;
  border-bottom: 1px solid var(--ad-border);
  color: var(--ad-text);
  font-size: .75rem;
  font-weight: 750;
}

.dhx-ad-check:last-child { border-bottom: 0; }
.dhx-ad-check input { accent-color: var(--ad-gold); }

.dhx-ad-full-action {
  width: 100%;
  margin-top: 14px;
}

.dhx-ad-quick-order {
  display: grid;
  place-items: center;
  text-decoration: none;
}

.dhx-ad-pulse {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding: 15px 0;
  border-top: 1px solid var(--ad-border);
  border-bottom: 1px solid var(--ad-border);
}

.dhx-ad-pulse-score {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border: 7px solid var(--ad-border);
  border-top-color: var(--ad-gold);
  border-right-color: var(--ad-gold-2);
  border-radius: 50%;
  color: var(--ad-text);
  font-size: 1.5rem;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  transform: rotate(10deg);
}

.dhx-ad-pulse-score span { transform: rotate(-10deg); }

.dhx-ad-pulse-copy b {
  display: block;
  color: var(--ad-gold-2);
  font-size: .95rem;
}

.dhx-ad-pulse-copy p {
  margin: 6px 0 0;
  color: var(--ad-muted);
  font-size: .71rem;
  line-height: 1.5;
}

.dhx-ad-analysis-row { grid-template-columns: 34px minmax(0, 1fr) auto; }

.dhx-ad-signal-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--ad-surface-2);
  color: var(--ad-gold-2);
  font-size: .7rem;
  font-weight: 950;
}

.dhx-ad-signal-state {
  color: var(--ad-green);
  font-size: .7rem;
  font-weight: 900;
}

.dhx-ad-assistant {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto auto;
}

#dhxAdminAccountDrawer.dhx-ad-assistant-open .dhx-ad-detail {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow-y: hidden;
}

#dhxAdminAccountDrawer.dhx-ad-assistant-open .dhx-ad-detail-header {
  position: relative;
  top: auto;
}

#dhxAdminAccountDrawer.dhx-ad-assistant-open .dhx-ad-detail-content {
  min-height: 0;
  padding-top: 14px;
  overflow: hidden;
}

.dhx-ad-assistant-welcome {
  min-height: 0;
  overflow-y: auto;
  padding: 22px 0 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--ad-gold) transparent;
}

.dhx-ad-assistant-welcome[hidden],
.dhx-ad-assistant-log[hidden],
.dhx-ad-assistant-status[hidden] { display: none; }

.dhx-ad-assistant-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2px 0 22px;
}

.dhx-ad-assistant-hero h3 { margin: 13px 0 6px; color: var(--ad-text); font-size: 1.12rem; text-align: center; }
.dhx-ad-assistant-hero p { max-width: 38ch; margin: 0; color: var(--ad-muted); font-size: .73rem; line-height: 1.65; text-align: center; text-wrap: pretty; }
.dhx-ad-ai-modes {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 14px;
  padding: 5px;
  border: 1px solid var(--ad-border);
  border-radius: 10px;
  background: var(--ad-surface);
}
.dhx-ad-ai-modes button {
  min-width: 0;
  display: grid;
  gap: 2px;
  padding: 9px 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--ad-muted);
  font: inherit;
  cursor: pointer;
}
.dhx-ad-ai-modes button.active {
  border-color: color-mix(in srgb, var(--ad-gold) 44%, transparent);
  background: color-mix(in srgb, var(--ad-gold) 11%, transparent);
  color: var(--ad-text);
}
.dhx-ad-ai-modes button.locked { opacity: .68; }
.dhx-ad-ai-modes span { font-size: .74rem; font-weight: 900; }
.dhx-ad-assistant-sections { display: grid; gap: 19px; }
.dhx-ad-assistant-prompt-group { display: grid; gap: 7px; }
.dhx-ad-assistant-group-title { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; color: var(--ad-gold-2); font-size: .72rem; font-weight: 900; }
.dhx-ad-assistant-group-title i { height: 1px; background: var(--ad-border); }
.dhx-ad-assistant-prompts { overflow: hidden; border: 1px solid var(--ad-border); border-radius: 8px; background: var(--ad-surface); }

.dhx-ad-assistant-prompt {
  width: 100%;
  min-height: 64px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid var(--ad-border);
  border-radius: 0;
  background: transparent;
  color: var(--ad-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.dhx-ad-assistant-prompt:last-child { border-bottom: 0; }
.dhx-ad-assistant-prompt:hover { background: var(--ad-hover); }
.dhx-ad-assistant-prompt:active { transform: scale(.99); }
.dhx-ad-assistant-prompt-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 7px; background: var(--ad-surface-2); color: var(--ad-gold-2); font-size: .7rem; font-weight: 950; }
.dhx-ad-assistant-prompt small,
.dhx-ad-assistant-prompt b { display: block; }
.dhx-ad-assistant-prompt small { margin-top: 3px; color: var(--ad-muted); font-size: .61rem; font-weight: 750; line-height: 1.35; }
.dhx-ad-assistant-prompt b { overflow-wrap: anywhere; font-size: .76rem; line-height: 1.35; }
.dhx-ad-assistant-prompt > i { color: var(--ad-muted); font-size: 1.1rem; font-style: normal; }

.dhx-ad-assistant-status { margin: 18px 0 0; padding: 12px; border: 1px solid var(--ad-border); border-radius: 7px; color: var(--ad-muted); font-size: .72rem; }
.dhx-ad-assistant-status.error { border-color: color-mix(in srgb, var(--ad-red) 38%, var(--ad-border)); color: var(--ad-red); }

.dhx-ad-chat-log {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.dhx-ad-assistant-log {
  min-height: 0;
  max-height: none;
  align-content: start;
  overflow-y: auto;
  padding: 3px 2px 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--ad-gold) transparent;
}

.dhx-ad-chat-message {
  max-width: 88%;
  padding: 10px 11px;
  border: 1px solid var(--ad-border);
  border-radius: 8px 8px 8px 2px;
  background: var(--ad-surface);
  color: var(--ad-text);
  font-size: .76rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.dhx-ad-chat-message.user {
  justify-self: end;
  border-color: color-mix(in srgb, var(--ad-gold) 35%, var(--ad-border));
  border-radius: 8px 8px 2px 8px;
  background: var(--ad-hover);
}

.dhx-ad-followups {
  display: grid;
  gap: 6px;
  margin-top: 11px;
  padding-top: 9px;
  border-top: 1px solid var(--ad-border);
}

.dhx-ad-followups > span {
  color: var(--ad-gold-2);
  font-size: .64rem;
  font-weight: 900;
}

.dhx-ad-followups button {
  width: 100%;
  padding: 7px 8px;
  border: 1px solid var(--ad-border);
  border-radius: 6px;
  background: var(--ad-surface-2);
  color: var(--ad-text);
  font: inherit;
  font-size: .69rem;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}

.dhx-ad-followups button:hover { border-color: var(--ad-gold); background: var(--ad-hover); }

.dhx-ad-chat-label {
  display: block;
  margin-bottom: 4px;
  color: var(--ad-gold-2);
  font-size: .63rem;
  font-weight: 900;
}

.dhx-ad-chat-message.thinking { min-width: 90px; }
.dhx-ad-thinking { display: flex; gap: 4px; padding: 4px 0 1px; }
.dhx-ad-thinking i { width: 5px; height: 5px; border-radius: 50%; background: var(--ad-gold); animation: dhx-ad-thinking 1s infinite ease-in-out; }
.dhx-ad-thinking i:nth-child(2) { animation-delay: .12s; }
.dhx-ad-thinking i:nth-child(3) { animation-delay: .24s; }

@keyframes dhx-ad-thinking { 0%, 70%, 100% { opacity: .3; transform: translateY(0); } 35% { opacity: 1; transform: translateY(-3px); } }

.dhx-ad-assistant-composer {
  position: sticky;
  bottom: -1px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 8px;
  margin-top: auto;
  padding: 7px 0 4px;
  background: linear-gradient(180deg, transparent, var(--ad-bg) 25%);
  z-index: 2;
}

.dhx-ad-assistant-composer textarea {
  width: 100%;
  min-height: 44px;
  max-height: 112px;
  padding: 11px 12px;
  resize: none;
  border: 1px solid var(--ad-border);
  border-radius: 9px;
  outline: 0;
  background: var(--ad-surface);
  color: var(--ad-text);
  font: inherit;
  font-size: .78rem;
  line-height: 1.45;
}

.dhx-ad-assistant-composer textarea:focus { border-color: var(--ad-gold); box-shadow: 0 0 0 2px color-mix(in srgb, var(--ad-gold) 13%, transparent); }
.dhx-ad-assistant-composer textarea:disabled { opacity: .65; }

.dhx-ad-assistant-disclaimer {
  margin: 6px 0 0;
  color: var(--ad-muted);
  font-size: .61rem;
  line-height: 1.45;
  text-align: center;
}

.dhx-ad-chat-send {
  width: 42px;
  border: 1px solid var(--ad-gold);
  border-radius: 8px;
  background: var(--ad-gold);
  color: #17120a;
  font-size: 1rem;
  font-weight: 950;
  cursor: pointer;
}

.dhx-ad-chat-send:disabled { opacity: .5; cursor: wait; }

.dhx-ad-heatmap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.04;
  margin-top: 10px;
}

.dhx-ad-heat-cell {
  position: absolute;
  left: calc(var(--heat-x) + 2px);
  top: calc(var(--heat-y) + 2px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: max(0px, calc(var(--heat-w) - 4px));
  height: max(0px, calc(var(--heat-h) - 4px));
  min-width: 0;
  padding: 8px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, #30cc5a 48%, var(--ad-border));
  border-radius: 5px;
  background: color-mix(in srgb, #30cc5a var(--heat-strength), var(--ad-surface));
  color: #fff;
  transition: filter .18s ease, transform .18s ease;
}

.dhx-ad-heat-cell.down {
  border-color: color-mix(in srgb, #f63538 50%, var(--ad-border));
  background: color-mix(in srgb, #f63538 var(--heat-strength), var(--ad-surface));
}

.dhx-ad-heat-cell.flat {
  border-color: #414554;
  background: #414554;
}

.dhx-ad-heat-cell:hover { z-index: 2; filter: brightness(1.12); }

.dhx-ad-heat-cell b {
  overflow: hidden;
  font-size: .78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dhx-ad-heat-cell.large b { font-size: 1.05rem; }
.dhx-ad-heat-cell.large span { font-size: .82rem; }
.dhx-ad-heat-cell.tiny { padding: 6px; }
.dhx-ad-heat-cell.tiny b { font-size: .67rem; }
.dhx-ad-heat-cell.tiny span { display: none; }
.dhx-ad-heat-cell.tiny small { display: none; }
.dhx-ad-heat-cell.micro { padding: 3px; }
.dhx-ad-heat-cell.micro b,
.dhx-ad-heat-cell.micro span,
.dhx-ad-heat-cell.micro small { display: none; }

.dhx-ad-heat-cell span {
  font-size: .68rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.dhx-ad-heat-cell small {
  overflow: hidden;
  color: rgba(255, 255, 255, .78);
  font-size: .54rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dhx-ad-heat-legend {
  display: flex;
  justify-content: space-between;
  margin-top: 9px;
  color: var(--ad-muted);
  font-size: .64rem;
  font-weight: 800;
}

.dhx-ad-heat-legend i {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  width: min(47%, 150px);
  height: 5px;
  overflow: hidden;
  border-radius: 2px;
}

.dhx-ad-heat-legend em:nth-child(1) { background: #f63538; }
.dhx-ad-heat-legend em:nth-child(2) { background: #bf4045; }
.dhx-ad-heat-legend em:nth-child(3) { background: #8b444e; }
.dhx-ad-heat-legend em:nth-child(4) { background: #414554; }
.dhx-ad-heat-legend em:nth-child(5) { background: #35764e; }
.dhx-ad-heat-legend em:nth-child(6) { background: #2f9e4f; }
.dhx-ad-heat-legend em:nth-child(7) { background: #30cc5a; }

.dhx-ad-heat-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin-top: 10px;
}

.dhx-ad-heat-meta span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid var(--ad-border);
  border-radius: 5px;
  background: var(--ad-surface);
  color: var(--ad-muted);
  font-size: .58rem;
}

.dhx-ad-heat-meta b {
  overflow: hidden;
  color: var(--ad-text);
  font-size: .66rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dhx-ad-heat-source {
  margin-top: 6px;
  color: var(--ad-muted);
  font-size: .6rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.dhx-ad-heat-view {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(3, auto);
  align-items: center;
  gap: 3px;
  margin-top: 8px;
  padding: 4px;
  border: 1px solid var(--ad-border);
  border-radius: 6px;
  background: var(--ad-surface);
}

.dhx-ad-heat-view > span {
  padding-left: 6px;
  color: var(--ad-muted);
  font-size: .62rem;
  font-weight: 800;
}

.dhx-ad-heat-view button {
  min-width: 48px;
  padding: 6px 9px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--ad-muted);
  font: inherit;
  font-size: .65rem;
  font-weight: 850;
  cursor: pointer;
}

.dhx-ad-heat-view button.active {
  background: var(--ad-hover);
  color: var(--ad-gold);
}

.dhx-ad-heat-view button[data-heatmap-view="up"].active { color: var(--ad-green); }
.dhx-ad-heat-view button[data-heatmap-view="down"].active { color: var(--ad-red); }

.dhx-ad-heatmap-empty {
  display: grid;
  place-items: center;
  min-height: 220px;
  margin-top: 10px;
  border: 1px dashed var(--ad-border);
  border-radius: 6px;
  color: var(--ad-muted);
  font-size: .72rem;
  font-weight: 800;
}

.dhx-ad-rank-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, auto);
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--ad-border);
  border-radius: 5px;
  background: var(--ad-surface);
}

.dhx-ad-rank-switch button {
  min-width: 44px;
  padding: 5px 8px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--ad-muted);
  font: inherit;
  font-size: .63rem;
  font-weight: 850;
  cursor: pointer;
}

.dhx-ad-rank-switch button.active {
  background: var(--ad-hover);
  color: var(--ad-gold);
}

.dhx-ad-empty {
  padding: 14px;
  border: 1px dashed var(--ad-border);
  border-radius: 8px;
  color: var(--ad-muted);
  font-size: .74rem;
  line-height: 1.5;
}

.dhx-ad-profile-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid color-mix(in srgb, var(--ad-gold) 18%, var(--ad-border));
  border-radius: 14px;
  background:
    linear-gradient(180deg, color-mix(in srgb, #fff 4%, transparent), transparent),
    color-mix(in srgb, var(--ad-surface) 72%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .055);
}

#dhxAdminAccountDrawer .acct-tour-wrap { position: relative; }
#dhxAdminAccountDrawer .acct-tour-trigger {
  height: 36px;
  padding: 0 11px;
  border: 1px solid color-mix(in srgb, var(--ad-gold) 48%, var(--ad-border));
  border-radius: 11px;
  background:
    radial-gradient(circle at 24% 8%, rgba(255, 255, 255, .1), transparent 38%),
    linear-gradient(135deg, color-mix(in srgb, var(--ad-gold) 22%, var(--ad-surface)), color-mix(in srgb, var(--ad-gold) 7%, var(--ad-surface-2)));
  color: var(--ad-gold-2);
  font: inherit;
  font-size: .7rem;
  font-weight: 950;
  letter-spacing: .01em;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

#dhxAdminAccountDrawer .acct-tour-trigger:hover {
  border-color: var(--ad-gold-2);
  color: #fff4cf;
  background:
    radial-gradient(circle at 24% 8%, rgba(255, 255, 255, .14), transparent 40%),
    linear-gradient(135deg, color-mix(in srgb, var(--ad-gold) 30%, var(--ad-surface)), color-mix(in srgb, var(--ad-gold) 12%, var(--ad-surface-2)));
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--ad-gold) 10%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, .14);
  transform: translateY(-1px);
}

#dhxAdminAccountDrawer .acct-tour-trigger:active {
  transform: translateY(0) scale(.98);
}

.dhx-ad-logout {
  display: grid;
  place-items: center;
  min-width: 46px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--ad-red) 28%, var(--ad-border));
  border-radius: 11px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--ad-red) 7%, var(--ad-surface)), color-mix(in srgb, var(--ad-red) 3%, var(--ad-surface-2)));
  color: color-mix(in srgb, var(--ad-red) 86%, #fff 14%);
  text-decoration: none;
  font: inherit;
  font-size: .7rem;
  font-weight: 950;
  line-height: 1;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .055);
  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.dhx-ad-logout:hover {
  border-color: color-mix(in srgb, var(--ad-red) 68%, var(--ad-border));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--ad-red) 12%, var(--ad-surface)), color-mix(in srgb, var(--ad-red) 6%, var(--ad-surface-2)));
  color: #fecaca;
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--ad-red) 10%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, .07);
  transform: translateY(-1px);
}

.dhx-ad-logout:active {
  transform: translateY(0) scale(.98);
}

.dhx-ad-logout,
#dhxAdminAccountDrawer .acct-tour-trigger,
.dhx-ad-icon-btn,
.dhx-ad-back {
  -webkit-tap-highlight-color: transparent;
}
#dhxAdminAccountDrawer .acct-tour-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  display: none;
  width: 176px;
  padding: 6px;
  border: 1px solid color-mix(in srgb, var(--ad-gold) 38%, var(--ad-border));
  border-radius: 8px;
  background: var(--ad-surface);
  box-shadow: 0 16px 36px var(--ad-shadow);
}

#dhxAdminAccountDrawer .acct-tour-wrap.open .acct-tour-menu { display: grid; gap: 3px; }
#dhxAdminAccountDrawer .acct-tour-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 10px;
  border-radius: 5px;
  color: var(--ad-text);
  font-size: .73rem;
  font-weight: 800;
  text-decoration: none;
}
#dhxAdminAccountDrawer .acct-tour-menu a::after { content: "›"; color: var(--ad-gold); }
#dhxAdminAccountDrawer .acct-tour-menu a:hover { background: var(--ad-hover); color: var(--ad-gold); }

.dhx-ad-all-plans {
  min-width: 0;
  color: var(--ad-gold);
  font-size: .6rem;
  font-weight: 900;
  line-height: 1.3;
  text-align: right;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.dhx-ad-metric-label { gap: 4px; }
.dhx-ad-progress-head { align-items: flex-start; }
.dhx-ad-progress-head b { max-width: 58%; font-size: .66rem; line-height: 1.35; text-align: right; white-space: normal; }

.dhx-ad-range {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 10px;
  align-items: center;
}

.dhx-ad-range input { width: 100%; accent-color: var(--ad-gold); }
.dhx-ad-range b { color: var(--ad-gold); text-align: right; font-variant-numeric: tabular-nums; }

.dhx-ad-calc-card {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--ad-gold) 24%, var(--ad-border));
  border-radius: 8px;
  background:
    radial-gradient(circle at 10% 0%, color-mix(in srgb, var(--ad-gold) 10%, transparent), transparent 32%),
    linear-gradient(180deg, color-mix(in srgb, var(--ad-surface) 88%, #000 12%), var(--ad-bg));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

.dhx-ad-calc-lev-head,
.dhx-ad-calc-lev-main,
.dhx-ad-calc-safety > div,
.dhx-ad-calc-results > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dhx-ad-calc-lev-head span,
.dhx-ad-calc-note,
.dhx-ad-calc-results span,
.dhx-ad-calc-safety span {
  color: var(--ad-muted);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .02em;
}

.dhx-ad-calc-lev-head small {
  display: block;
  margin-top: 5px;
  color: color-mix(in srgb, var(--ad-muted) 78%, transparent);
  font-size: .66rem;
  line-height: 1.45;
}

.dhx-ad-calc-suggest {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border: 1px solid color-mix(in srgb, var(--ad-gold) 35%, var(--ad-border));
  border-radius: 999px;
  background: color-mix(in srgb, var(--ad-gold) 8%, var(--ad-surface));
}

.dhx-ad-calc-suggest span {
  color: var(--ad-gold);
  font-size: .66rem;
}

.dhx-ad-calc-suggest b {
  color: var(--ad-gold-2);
  font-size: 1.08rem;
  font-variant-numeric: tabular-nums;
}

.dhx-ad-calc-lev-main {
  margin-top: 12px;
}

.dhx-ad-calc-lev-main strong {
  color: var(--ad-gold-2);
  font-size: clamp(3.6rem, 12vw, 5.7rem);
  line-height: .95;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 0 18px color-mix(in srgb, var(--ad-gold) 22%, transparent);
  font-variant-numeric: tabular-nums;
}

.dhx-ad-calc-step {
  display: grid;
  gap: 8px;
}

.dhx-ad-calc-step button,
.dhx-ad-calc-caps button {
  min-height: 38px;
  border: 1px solid var(--ad-border);
  border-radius: 7px;
  background: var(--ad-surface);
  color: var(--ad-text);
  font: inherit;
  font-size: .78rem;
  font-weight: 900;
  cursor: pointer;
}

.dhx-ad-calc-step button {
  width: 42px;
  color: var(--ad-gold);
  font-size: 1rem;
  line-height: 1;
}

.dhx-ad-calc-slider {
  margin-top: 12px;
}

.dhx-ad-calc-slider input {
  width: 100%;
  accent-color: var(--ad-gold);
}

.dhx-ad-calc-marks {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 8px;
  color: var(--ad-muted);
  font-size: .68rem;
  font-variant-numeric: tabular-nums;
}

.dhx-ad-calc-marks span:nth-child(2),
.dhx-ad-calc-marks span:nth-child(3),
.dhx-ad-calc-marks span:nth-child(4) { text-align: center; }
.dhx-ad-calc-marks span:last-child { text-align: right; }

.dhx-ad-calc-caps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  margin-top: 12px;
}

.dhx-ad-calc-caps button:hover,
.dhx-ad-calc-step button:hover {
  border-color: color-mix(in srgb, var(--ad-gold) 55%, var(--ad-border));
  color: var(--ad-gold-2);
}

.dhx-ad-calc-note {
  margin-top: 10px;
  line-height: 1.55;
}

.dhx-ad-calc-results {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--ad-border);
}

.dhx-ad-calc-results > div,
.dhx-ad-calc-safety {
  padding: 13px;
  border: 1px solid var(--ad-border);
  border-radius: 7px;
  background: color-mix(in srgb, var(--ad-surface) 82%, #000 18%);
}

.dhx-ad-calc-results strong {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  color: var(--ad-text);
  font-size: 1.2rem;
  font-variant-numeric: tabular-nums;
}

.dhx-ad-calc-results b[data-calc-margin] {
  color: var(--ad-gold-2);
}

.dhx-ad-calc-results em {
  color: var(--ad-muted);
  font-size: .66rem;
  font-style: normal;
  font-weight: 800;
}

.dhx-ad-calc-safety {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.dhx-ad-calc-safety b {
  color: var(--ad-gold-2);
  font-size: .82rem;
  font-variant-numeric: tabular-nums;
}

.dhx-ad-calc-safety b.good { color: var(--ad-green); }
.dhx-ad-calc-safety b.warn { color: #f59e0b; }
.dhx-ad-calc-safety b.danger { color: var(--ad-red); }

.dhx-ad-calc-status,
.dhx-ad-calendar-status {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--ad-border);
  border-radius: 6px;
  background: var(--ad-surface-2);
  color: var(--ad-muted);
  font-size: .72rem;
  line-height: 1.6;
}

.dhx-ad-calc-status.warning { color: #f7c96b; border-color: color-mix(in srgb, var(--ad-gold) 44%, var(--ad-border)); }
.dhx-ad-calc-status.danger,
.dhx-ad-calendar-status.error { color: var(--ad-red); border-color: color-mix(in srgb, var(--ad-red) 40%, var(--ad-border)); }

.dhx-ad-inbody { display: grid; gap: 14px; }
.dhx-ad-inbody-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--ad-gold) 36%, var(--ad-border));
  border-radius: 8px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--ad-gold) 10%, var(--ad-surface)), var(--ad-surface-2));
}
.dhx-ad-inbody-hero span { color: var(--ad-gold); font-size: .62rem; font-weight: 900; letter-spacing: .16em; }
.dhx-ad-inbody-hero h3 { margin: 5px 0 4px; color: var(--ad-text); font-size: 1.2rem; }
.dhx-ad-inbody-hero p { margin: 0; color: var(--ad-muted); font-size: .72rem; line-height: 1.6; }
.dhx-ad-inbody-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.dhx-ad-inbody-meta span { padding: 4px 8px; border: 1px solid var(--ad-border); border-radius: 999px; color: var(--ad-muted); font-size: .63rem; font-weight: 800; }
.dhx-ad-completion { padding: 12px; border: 1px solid var(--ad-border); border-radius: 7px; background: var(--ad-surface); }
.dhx-ad-completion > div { display: flex; justify-content: space-between; gap: 12px; color: var(--ad-muted); font-size: .68rem; }
.dhx-ad-completion b { color: var(--ad-text); }
.dhx-ad-completion > i { display: block; height: 5px; margin-top: 9px; overflow: hidden; border-radius: 9px; background: var(--ad-surface-2); }
.dhx-ad-completion > i span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #94701d, var(--ad-gold)); transition: width .2s ease; }
.dhx-ad-inbody-card { padding: 15px; border: 1px solid var(--ad-border); border-radius: 8px; background: var(--ad-surface); }
.dhx-ad-inbody-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.dhx-ad-inbody-head h4 { margin: 0; color: var(--ad-text); font-size: .88rem; }
.dhx-ad-inbody-head span { color: var(--ad-muted); font-size: .62rem; }
.dhx-ad-inbody-three { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 12px 0; }
.dhx-ad-inbody-scores { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.dhx-ad-inbody-scores > div { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; padding: 12px; border: 1px solid var(--ad-border); border-radius: 6px; background: var(--ad-surface-2); }
.dhx-ad-inbody-scores small { color: var(--ad-muted); }
.dhx-ad-inbody-scores strong { grid-row: span 2; color: var(--ad-gold); font-size: 1.35rem; text-align: right; }
.dhx-ad-inbody-scores span { color: var(--ad-text); font-size: .68rem; }
.dhx-ad-inbody-card h5 { margin: 18px 0 8px; padding-bottom: 7px; border-bottom: 1px solid var(--ad-border); color: var(--ad-gold); font-size: .72rem; }
.dhx-ad-inbody-question { padding: 11px 0; border-bottom: 1px solid var(--ad-border); }
.dhx-ad-inbody-question:last-child { border-bottom: 0; }
.dhx-ad-inbody-question p { margin: 0 0 8px; color: var(--ad-text); font-size: .74rem; font-weight: 800; line-height: 1.5; }
.dhx-ad-inbody-options { display: grid; gap: 6px; }
.dhx-ad-inbody-options button { display: flex; justify-content: space-between; gap: 10px; width: 100%; padding: 9px 10px; border: 1px solid var(--ad-border); border-radius: 5px; background: var(--ad-surface-2); color: var(--ad-muted); font: inherit; font-size: .68rem; text-align: left; cursor: pointer; }
.dhx-ad-inbody-options button b { flex: 0 0 auto; color: var(--ad-muted); }
.dhx-ad-inbody-options button[aria-pressed="true"] { border-color: var(--ad-gold); background: var(--ad-hover); color: var(--ad-text); }
.dhx-ad-inbody-options button[aria-pressed="true"] b { color: var(--ad-gold); }
.dhx-ad-inbody-actions { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 7px; margin-top: 12px; }
.dhx-ad-inbody-actions button { min-height: 40px; }
.dhx-ad-inbody-notice { min-height: 18px; margin-top: 8px; color: var(--ad-gold); font-size: .67rem; }

@media (max-width: 430px) {
  .dhx-ad-inbody-three { grid-template-columns: 1fr; }
  .dhx-ad-inbody-actions { grid-template-columns: 1fr; }
}

.dhx-ad-skeleton {
  position: relative;
  overflow: hidden;
  color: transparent !important;
  background: var(--ad-surface-2);
}

.dhx-ad-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .08), transparent);
  transform: translateX(-100%);
  animation: dhx-ad-shimmer 1.2s infinite;
}

@keyframes dhx-ad-shimmer {
  to { transform: translateX(100%); }
}

#dhxAdminAccountDrawer button:focus-visible,
#dhxAdminAccountDrawer a:focus-visible,
#dhxAdminAccountDrawer input:focus-visible,
#dhxAdminAccountDrawer textarea:focus-visible,
#dhxAdminAccountDrawer select:focus-visible {
  outline: 2px solid var(--ad-gold);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  #dhxAdminDrawerBackdrop,
  #dhxAdminAccountDrawer,
  .dhx-ad-view {
    transition: none;
  }

  .dhx-ad-event-trigger, .dhx-ad-event-more svg { transition: none; }
  .dhx-ad-skeleton::after { animation: none; }
}

@media (max-width: 760px) {
  #dhxAdminAccountDrawer { width: min(430px, 92vw); }
  .dhx-ad-view { padding: max(18px, env(safe-area-inset-top)) 14px max(22px, env(safe-area-inset-bottom)); }
  .dhx-ad-detail-header {
    top: calc(max(18px, env(safe-area-inset-top)) * -1);
    margin: -18px -14px 0;
    padding: max(15px, env(safe-area-inset-top)) 14px 12px;
  }
  .dhx-ad-profile { grid-template-columns: minmax(0, 1fr) auto; gap: 9px; }
  .dhx-ad-profile-actions { gap: 3px; padding: 2px; }
  #dhxAdminAccountDrawer .acct-tour-trigger { height: 34px; padding: 0 9px; font-size: .66rem; }
  .dhx-ad-logout { min-width: 42px; height: 34px; padding: 0 8px; font-size: .66rem; }
  .dhx-ad-icon-btn,
  .dhx-ad-back { width: 38px; height: 38px; border-radius: 11px; }
  .dhx-ad-uid { font-size: .93rem; }
  .dhx-ad-watchlist { grid-auto-columns: 68%; }
}

@media (max-width: 430px) {
  .dhx-ad-form-grid { grid-template-columns: 1fr; }
  .dhx-ad-field.full { grid-column: auto; }
  .dhx-ad-event-detail { padding-left: 12px; }
}

/* 2026-07-20: stronger account drawer action button polish */
#dhxAdminAccountDrawer .dhx-ad-profile-actions {
  gap: 6px;
  padding: 4px;
  border: 1px solid color-mix(in srgb, var(--ad-gold) 34%, var(--ad-border));
  border-radius: 16px;
  background:
    radial-gradient(circle at 20% 0%, color-mix(in srgb, var(--ad-gold) 18%, transparent), transparent 42%),
    linear-gradient(180deg, color-mix(in srgb, var(--ad-surface) 82%, #fff 5%), color-mix(in srgb, var(--ad-surface-2) 92%, #000 8%));
  box-shadow:
    0 12px 28px color-mix(in srgb, var(--ad-shadow) 52%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, .12);
}

#dhxAdminAccountDrawer .acct-tour-trigger,
#dhxAdminAccountDrawer .dhx-ad-logout {
  height: 38px;
  min-width: 54px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: .7rem;
  font-weight: 950;
  letter-spacing: .02em;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease, color .16s ease, filter .16s ease;
}

#dhxAdminAccountDrawer .acct-tour-trigger {
  border: 1px solid color-mix(in srgb, var(--ad-gold-2) 72%, var(--ad-border));
  background: linear-gradient(135deg, #f8d26a 0%, #d4af37 48%, #a66f08 100%);
  color: #17120a;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .36);
}

#dhxAdminAccountDrawer .acct-tour-trigger:hover {
  border-color: #fde68a;
  background: linear-gradient(135deg, #ffe48c 0%, #d4af37 48%, #b87909 100%);
  color: #0b0b08;
  filter: saturate(1.08) brightness(1.04);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--ad-gold) 18%, transparent),
    0 10px 24px color-mix(in srgb, var(--ad-gold) 24%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, .24);
  transform: translateY(-1px);
}

#dhxAdminAccountDrawer .dhx-ad-logout {
  border: 1px solid color-mix(in srgb, var(--ad-red) 64%, var(--ad-border));
  background: linear-gradient(180deg, color-mix(in srgb, var(--ad-red) 18%, var(--ad-surface)), color-mix(in srgb, var(--ad-red) 7%, var(--ad-surface-2)));
  color: #fecaca;
}

#dhxAdminAccountDrawer .dhx-ad-logout:hover {
  border-color: #fca5a5;
  background: linear-gradient(180deg, color-mix(in srgb, var(--ad-red) 26%, var(--ad-surface)), color-mix(in srgb, var(--ad-red) 12%, var(--ad-surface-2)));
  color: #fff1f2;
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--ad-red) 14%, transparent),
    0 10px 24px color-mix(in srgb, var(--ad-red) 18%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, .14);
  transform: translateY(-1px);
}

#dhxAdminAccountDrawer .acct-tour-trigger:active,
#dhxAdminAccountDrawer .dhx-ad-logout:active {
  transform: translateY(0) scale(.98);
}

#dhxAdminAccountDrawer .dhx-ad-back,
#dhxAdminAccountDrawer .dhx-ad-icon-btn {
  width: 44px;
  height: 42px;
  border-radius: 13px;
  font-weight: 950;
  line-height: 1;
  box-shadow:
    0 12px 30px color-mix(in srgb, var(--ad-shadow) 60%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, .16);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease, color .16s ease, filter .16s ease;
}

#dhxAdminAccountDrawer .dhx-ad-back {
  border: 1px solid color-mix(in srgb, var(--ad-gold-2) 72%, var(--ad-border));
  background:
    radial-gradient(circle at 28% 12%, rgba(255,255,255,.24), transparent 34%),
    linear-gradient(135deg, #f8d26a 0%, #d4af37 50%, #8f650f 100%);
  color: #11120d;
  font-size: 1.48rem;
  text-shadow: 0 1px 0 rgba(255,255,255,.38);
}

#dhxAdminAccountDrawer .dhx-ad-icon-btn {
  border: 1px solid color-mix(in srgb, var(--ad-red) 58%, var(--ad-border));
  background:
    radial-gradient(circle at 28% 12%, rgba(255,255,255,.1), transparent 34%),
    linear-gradient(180deg, color-mix(in srgb, var(--ad-red) 19%, var(--ad-surface)), color-mix(in srgb, var(--ad-red) 8%, var(--ad-surface-2)));
  color: #fecaca;
  font-size: 1.24rem;
}

#dhxAdminAccountDrawer .dhx-ad-back:hover {
  border-color: #fde68a;
  background:
    radial-gradient(circle at 28% 12%, rgba(255,255,255,.3), transparent 35%),
    linear-gradient(135deg, #ffe48c 0%, #d4af37 50%, #a66f08 100%);
  color: #080806;
  filter: saturate(1.08) brightness(1.04);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--ad-gold) 18%, transparent),
    0 14px 30px color-mix(in srgb, var(--ad-gold) 24%, transparent),
    inset 0 1px 0 rgba(255,255,255,.22);
  transform: translateY(-1px);
}

#dhxAdminAccountDrawer .dhx-ad-icon-btn:hover {
  border-color: #fca5a5;
  background:
    radial-gradient(circle at 28% 12%, rgba(255,255,255,.13), transparent 35%),
    linear-gradient(180deg, color-mix(in srgb, var(--ad-red) 28%, var(--ad-surface)), color-mix(in srgb, var(--ad-red) 13%, var(--ad-surface-2)));
  color: #fff1f2;
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--ad-red) 14%, transparent),
    0 14px 30px color-mix(in srgb, var(--ad-red) 18%, transparent),
    inset 0 1px 0 rgba(255,255,255,.16);
  transform: translateY(-1px);
}

#dhxAdminAccountDrawer .dhx-ad-back:active,
#dhxAdminAccountDrawer .dhx-ad-icon-btn:active {
  transform: translateY(0) scale(.97);
}

@media (max-width: 760px) {
  #dhxAdminAccountDrawer .dhx-ad-profile-actions { gap: 4px; padding: 3px; }
  #dhxAdminAccountDrawer .acct-tour-trigger,
  #dhxAdminAccountDrawer .dhx-ad-logout { height: 36px; min-width: 48px; padding: 0 10px; font-size: .66rem; }
  #dhxAdminAccountDrawer .dhx-ad-back,
  #dhxAdminAccountDrawer .dhx-ad-icon-btn { width: 42px; height: 40px; border-radius: 12px; }
}

/* 2026-07-20: minimal detail header icons */
#dhxAdminAccountDrawer .dhx-ad-detail-header .dhx-ad-back,
#dhxAdminAccountDrawer .dhx-ad-detail-header .dhx-ad-icon-btn {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, .82);
  box-shadow: none;
  text-shadow: 0 0 16px rgba(255, 255, 255, .16);
  transition: color .16s ease, background .16s ease, transform .16s ease, text-shadow .16s ease;
}

#dhxAdminAccountDrawer .dhx-ad-detail-header .dhx-ad-back {
  font-size: 1.62rem;
}

#dhxAdminAccountDrawer .dhx-ad-detail-header .dhx-ad-icon-btn {
  font-size: 1.28rem;
}

#dhxAdminAccountDrawer .dhx-ad-detail-header .dhx-ad-back:hover,
#dhxAdminAccountDrawer .dhx-ad-detail-header .dhx-ad-icon-btn:hover {
  background: rgba(255, 255, 255, .07);
  color: #fff7d6;
  box-shadow: none;
  text-shadow: 0 0 18px rgba(245, 158, 11, .28);
  transform: translateY(-1px);
}

#dhxAdminAccountDrawer .dhx-ad-detail-header .dhx-ad-back:active,
#dhxAdminAccountDrawer .dhx-ad-detail-header .dhx-ad-icon-btn:active {
  transform: translateY(0) scale(.96);
}

body.light #dhxAdminAccountDrawer .dhx-ad-detail-header .dhx-ad-back,
body.light #dhxAdminAccountDrawer .dhx-ad-detail-header .dhx-ad-icon-btn {
  color: rgba(23, 18, 10, .72);
  text-shadow: none;
}

body.light #dhxAdminAccountDrawer .dhx-ad-detail-header .dhx-ad-back:hover,
body.light #dhxAdminAccountDrawer .dhx-ad-detail-header .dhx-ad-icon-btn:hover {
  background: rgba(154, 104, 0, .08);
  color: #5f3b00;
  text-shadow: none;
}

@media (max-width: 760px) {
  #dhxAdminAccountDrawer .dhx-ad-detail-header .dhx-ad-back,
  #dhxAdminAccountDrawer .dhx-ad-detail-header .dhx-ad-icon-btn {
    width: 36px;
    height: 36px;
  }
}


/* 2026-07-20: VIP-style account profile header */
#dhxAdminAccountDrawer .dhx-ad-profile {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding: 8px 2px 20px;
}

#dhxAdminAccountDrawer .dhx-ad-member-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 86px;
  padding: 13px 15px;
  border: 1px solid color-mix(in srgb, var(--ad-gold) 28%, var(--ad-border));
  border-radius: 18px;
  background:
    radial-gradient(circle at 10% 8%, color-mix(in srgb, #fff 14%, transparent), transparent 28%),
    linear-gradient(100deg, color-mix(in srgb, var(--ad-surface-2) 78%, var(--ad-gold) 8%), color-mix(in srgb, var(--ad-surface) 86%, var(--ad-blue) 8%));
  box-shadow:
    0 14px 34px color-mix(in srgb, var(--ad-shadow) 44%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, .12);
}

#dhxAdminAccountDrawer .dhx-ad-avatar {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, #fff 34%, var(--ad-border));
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 25%, rgba(255, 255, 255, .52), transparent 24%),
    linear-gradient(135deg, color-mix(in srgb, var(--ad-gold) 82%, #fff 12%), color-mix(in srgb, var(--ad-surface-2) 78%, #000 22%));
  color: #17120a;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .42),
    0 9px 18px color-mix(in srgb, var(--ad-shadow) 36%, transparent);
}

#dhxAdminAccountDrawer .dhx-ad-avatar span {
  font-size: 1.28rem;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

#dhxAdminAccountDrawer .dhx-ad-member-main {
  min-width: 0;
  display: grid;
  gap: 7px;
  align-content: center;
}

#dhxAdminAccountDrawer .dhx-ad-vip-badge {
  width: max-content;
  max-width: 100%;
  padding: 5px 13px 6px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 5px;
  color: #fff7d6;
  font-size: .82rem;
  font-weight: 950;
  line-height: 1;
  letter-spacing: .08em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .35);
  transform: skew(-7deg);
  box-shadow: 0 7px 16px color-mix(in srgb, var(--ad-shadow) 36%, transparent);
}

#dhxAdminAccountDrawer .dhx-ad-vip-pro {
  background: linear-gradient(135deg, #1e2d66, #5667b3 52%, #1b2553);
}

#dhxAdminAccountDrawer .dhx-ad-vip-standard {
  background: linear-gradient(135deg, #8a5b12, #d4af37 52%, #6c4308);
  color: #181006;
  text-shadow: 0 1px 7px rgba(255, 255, 255, .2);
}

#dhxAdminAccountDrawer .dhx-ad-vip-basic {
  background: linear-gradient(135deg, #3f4650, #8a929c 52%, #2f343b);
}

#dhxAdminAccountDrawer .dhx-ad-wallet-points {
  display: flex;
  align-items: baseline;
  justify-self: end;
  gap: 5px;
  color: color-mix(in srgb, var(--ad-text) 88%, var(--ad-muted));
  font-size: .86rem;
  font-weight: 900;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

#dhxAdminAccountDrawer .dhx-ad-wallet-points b {
  color: #38bdf8;
  font-size: 1.13rem;
  font-weight: 950;
}

#dhxAdminAccountDrawer .dhx-ad-wallet-points em {
  color: var(--ad-text);
  font-style: normal;
}

body.light #dhxAdminAccountDrawer .dhx-ad-member-card {
  background:
    radial-gradient(circle at 10% 8%, rgba(255, 255, 255, .72), transparent 28%),
    linear-gradient(100deg, #ebeef8, #f8fbff);
  border-color: #d7def1;
  box-shadow: 0 12px 26px rgba(58, 67, 108, .12);
}

body.light #dhxAdminAccountDrawer .dhx-ad-wallet-points b {
  color: #1f9fd0;
}

@media (max-width: 760px) {
  #dhxAdminAccountDrawer .dhx-ad-profile {
    grid-template-columns: 1fr;
  }

  #dhxAdminAccountDrawer .dhx-ad-member-card {
    grid-template-columns: 48px minmax(0, 1fr);
    min-height: 0;
    padding: 12px;
  }

  #dhxAdminAccountDrawer .dhx-ad-avatar {
    width: 48px;
    height: 48px;
  }

  #dhxAdminAccountDrawer .dhx-ad-wallet-points {
    grid-column: 2;
    justify-self: start;
    margin-top: -1px;
    font-size: .78rem;
  }

  #dhxAdminAccountDrawer .dhx-ad-wallet-points b {
    font-size: .98rem;
  }

  #dhxAdminAccountDrawer .dhx-ad-vip-badge {
    padding: 4px 10px 5px;
    font-size: .72rem;
  }

  #dhxAdminAccountDrawer .dhx-ad-profile-actions {
    justify-self: end;
  }
}


/* 2026-07-20: version badge and in-card profile actions */
#dhxAdminAccountDrawer .dhx-ad-profile {
  grid-template-columns: 1fr;
}

#dhxAdminAccountDrawer .dhx-ad-member-card {
  grid-template-columns: 56px minmax(0, 1fr) auto auto;
  gap: 12px;
}

#dhxAdminAccountDrawer .dhx-ad-vip-badge {
  min-width: 66px;
  text-align: center;
  letter-spacing: .04em;
}

#dhxAdminAccountDrawer .dhx-ad-vip-pro {
  background:
    radial-gradient(circle at 28% 12%, rgba(255, 255, 255, .48), transparent 24%),
    linear-gradient(135deg, #fff2a8, #d4af37 42%, #8b5f08 74%, #fff0a6);
  border-color: rgba(255, 236, 172, .55);
  color: #1b1202;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .3);
}

#dhxAdminAccountDrawer .dhx-ad-vip-standard {
  background:
    radial-gradient(circle at 28% 12%, rgba(255, 255, 255, .56), transparent 24%),
    linear-gradient(135deg, #ffffff, #c7ccd4 43%, #7c8794 74%, #f5f7fb);
  border-color: rgba(231, 236, 245, .58);
  color: #121820;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .35);
}

#dhxAdminAccountDrawer .dhx-ad-vip-basic {
  background:
    radial-gradient(circle at 28% 12%, rgba(255, 255, 255, .38), transparent 24%),
    linear-gradient(135deg, #f4c18b, #b87333 43%, #6f3e1f 76%, #efb77c);
  border-color: rgba(239, 183, 124, .52);
  color: #1a0e06;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .22);
}

#dhxAdminAccountDrawer .dhx-ad-member-card > .dhx-ad-profile-actions {
  justify-self: end;
  align-self: center;
  grid-column: 4;
  margin-left: 2px;
}

@media (max-width: 760px) {
  #dhxAdminAccountDrawer .dhx-ad-member-card {
    grid-template-columns: 48px minmax(0, 1fr) auto;
  }

  #dhxAdminAccountDrawer .dhx-ad-member-card > .dhx-ad-profile-actions {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: start;
  }

  #dhxAdminAccountDrawer .dhx-ad-wallet-points {
    grid-column: 2;
  }
}


/* 2026-07-20: remove frames from member card and in-card actions */
#dhxAdminAccountDrawer .dhx-ad-member-card {
  border-color: transparent;
}

#dhxAdminAccountDrawer .dhx-ad-member-card > .dhx-ad-profile-actions {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

#dhxAdminAccountDrawer .dhx-ad-member-card > .dhx-ad-profile-actions::before,
#dhxAdminAccountDrawer .dhx-ad-member-card > .dhx-ad-profile-actions::after {
  display: none;
}


/* 2026-07-21: soften in-card profile action buttons */
#dhxAdminAccountDrawer .dhx-ad-member-card > .dhx-ad-profile-actions {
  gap: 7px;
}

#dhxAdminAccountDrawer .dhx-ad-member-card > .dhx-ad-profile-actions .acct-tour-trigger,
#dhxAdminAccountDrawer .dhx-ad-member-card > .dhx-ad-profile-actions .dhx-ad-logout {
  height: 34px;
  min-width: 48px;
  padding: 0 11px;
  border-radius: 10px;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .01em;
  text-shadow: none;
  filter: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .08),
    0 8px 18px color-mix(in srgb, var(--ad-shadow) 18%, transparent);
}

#dhxAdminAccountDrawer .dhx-ad-member-card > .dhx-ad-profile-actions .acct-tour-trigger {
  border: 1px solid color-mix(in srgb, var(--ad-gold) 22%, var(--ad-border));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--ad-gold) 9%, var(--ad-surface)), color-mix(in srgb, var(--ad-surface-2) 92%, #000 8%));
  color: color-mix(in srgb, var(--ad-gold-2) 74%, var(--ad-text));
}

#dhxAdminAccountDrawer .dhx-ad-member-card > .dhx-ad-profile-actions .acct-tour-trigger:hover {
  border-color: color-mix(in srgb, var(--ad-gold) 36%, var(--ad-border));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--ad-gold) 13%, var(--ad-surface)), color-mix(in srgb, var(--ad-surface-2) 88%, #000 12%));
  color: color-mix(in srgb, var(--ad-gold-2) 86%, #fff);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .1),
    0 10px 20px color-mix(in srgb, var(--ad-shadow) 22%, transparent);
}

#dhxAdminAccountDrawer .dhx-ad-member-card > .dhx-ad-profile-actions .dhx-ad-logout {
  border: 1px solid color-mix(in srgb, var(--ad-red) 22%, var(--ad-border));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--ad-red) 7%, var(--ad-surface)), color-mix(in srgb, var(--ad-surface-2) 94%, #000 6%));
  color: color-mix(in srgb, var(--ad-red) 72%, var(--ad-text));
}

#dhxAdminAccountDrawer .dhx-ad-member-card > .dhx-ad-profile-actions .dhx-ad-logout:hover {
  border-color: color-mix(in srgb, var(--ad-red) 34%, var(--ad-border));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--ad-red) 10%, var(--ad-surface)), color-mix(in srgb, var(--ad-surface-2) 90%, #000 10%));
  color: color-mix(in srgb, var(--ad-red) 82%, #fff);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .08),
    0 10px 20px color-mix(in srgb, var(--ad-shadow) 22%, transparent);
}

body.light #dhxAdminAccountDrawer .dhx-ad-member-card > .dhx-ad-profile-actions .acct-tour-trigger {
  background: color-mix(in srgb, #fff 84%, var(--ad-gold) 8%);
  color: color-mix(in srgb, var(--ad-gold-2) 78%, var(--ad-text));
}

body.light #dhxAdminAccountDrawer .dhx-ad-member-card > .dhx-ad-profile-actions .dhx-ad-logout {
  background: color-mix(in srgb, #fff 88%, var(--ad-red) 6%);
  color: color-mix(in srgb, var(--ad-red) 72%, var(--ad-text));
}


/* 2026-07-21: remove account avatar from profile card */
#dhxAdminAccountDrawer .dhx-ad-member-card {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

#dhxAdminAccountDrawer .dhx-ad-member-card > .dhx-ad-profile-actions {
  grid-column: 3;
}

@media (max-width: 760px) {
  #dhxAdminAccountDrawer .dhx-ad-member-card {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  #dhxAdminAccountDrawer .dhx-ad-member-card > .dhx-ad-profile-actions {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  #dhxAdminAccountDrawer .dhx-ad-wallet-points {
    grid-column: 1;
  }
}
