:root {
  --bg: #0f1114;
  --surface: #181b20;
  --surface-hi: #1e2128;
  --border: #252830;
  --border-hi: #2e3240;
  --blue: #0052ff;
  --blue-dim: rgba(0, 82, 255, 0.1);
  --crowd: #f4bd4a;
  --astra: #ed5cae;
  --astra-soft: #f5a6d2;
  --exchange-total: #cbd5e1;
  --exchange-bybit: #20c7df;
  --exchange-bitunix: #ff8066;
  --green: #05b169;
  --green-dim: rgba(5, 177, 105, 0.1);
  --red: #f03d3d;
  --red-dim: rgba(240, 61, 61, 0.1);
  --text-1: #fff;
  --text-2: #9ca3af;
  --text-3: #4b5563;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --page-max: 1320px;
  --page-pad: 24px;
}

/* ApexVault thread index and dedicated loadout page */
.community-loadout-surface .community-grid {
  grid-template-columns: 1fr;
  gap: 7px;
}
.vault-thread {
  min-width: 0;
  padding: 13px 15px;
  display: grid;
  grid-template-columns: 40px minmax(260px,1fr) minmax(290px,.62fr) 166px;
  align-items: center;
  gap: 13px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: rgba(22,25,31,.72);
  cursor: pointer;
  transition: background-color .16s ease,border-color .16s ease;
}
.vault-thread:hover,
.vault-thread:focus-visible {
  border-color: rgba(140,124,246,.27);
  outline: 0;
  background: rgba(28,31,39,.88);
}
.vault-thread-avatar,
.vault-thread-avatar .community-avatar { width: 40px; height: 40px; }
.vault-thread-avatar .community-avatar { flex-basis: 40px; }
.vault-thread-content { min-width: 0; }
.vault-thread-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.vault-thread-head > div { min-width: 0; display: flex; align-items: center; gap: 7px; }
.vault-thread-head b { overflow: hidden; color: var(--text-2); font-size: 11px; font-weight: 550; text-overflow: ellipsis; white-space: nowrap; }
.vault-thread-head time { flex: 0 0 auto; color: var(--text-3); font-size: 10px; }
.vault-thread-head .community-owner-badge { padding: 2px 5px; font-size: 9px; }
.vault-thread-content h2 { margin-top: 3px; overflow: hidden; color: var(--text-1); font-size: 15px; font-weight: 570; letter-spacing: -.01em; text-overflow: ellipsis; white-space: nowrap; }
.vault-thread-content > p { margin-top: 3px; overflow: hidden; color: var(--text-3); font-size: 11px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.vault-thread-tags { margin-top: 8px; display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.vault-thread-tags .community-strategy { padding: 2px 6px; border-radius: 9px; background: rgba(255,255,255,.018); font-size: 9px; }
.vault-thread-tags .community-environment { min-height: 20px; padding: 0 6px; border-radius: 9px; font-size: 9px; }
.vault-thread-muted { color: var(--text-3); font-size: 9px; }
.vault-thread-metrics { min-width: 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
.vault-thread-metrics > span { min-width: 0; padding: 2px 12px; display: grid; gap: 4px; border-left: 1px solid var(--border); }
.vault-thread-metrics small { color: var(--text-3); font-size: 9px; text-transform: uppercase; letter-spacing: .04em; }
.vault-thread-metrics b { overflow: hidden; color: var(--text-2); font-size: 11px; font-weight: 550; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.vault-thread-metrics b.pos { color: var(--green); }
.vault-thread-metrics b.neg { color: var(--red); }
.vault-thread-activity { min-width: 0; display: grid; grid-template-columns: 1fr auto; gap: 3px 8px; color: var(--text-3); font-size: 10px; font-variant-numeric: tabular-nums; }
.vault-thread-activity span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vault-thread-activity .vault-thread-rating { display: flex; align-items: center; gap: 6px; overflow: visible; color: var(--text-2); }
.vault-thread-stars { display: inline-flex; align-items: center; gap: 2px; }
.vault-thread-stars i { --star-fill: 0%; position: relative; width: 17px; height: 17px; display: grid; place-items: center; overflow: hidden; border-radius: 3px; background: linear-gradient(90deg,#e4a832 0 var(--star-fill),rgba(255,255,255,.075) var(--star-fill) 100%); font-style: normal; }
.vault-thread-stars span { color: #fff; font-size: 11px; line-height: 1; }
.vault-thread-rating em { color: var(--text-2); font-size: 10px; font-style: normal; font-weight: 600; font-variant-numeric: tabular-nums; }
.vault-thread-activity b { grid-column: 2; grid-row: 1 / 3; align-self: center; color: #9d91ee; font-size: 16px; font-weight: 400; }
.vault-detail-page { width: min(980px,100%); margin: 0 auto; display: grid; gap: 12px; }
.vault-detail-nav { min-height: 43px; padding: 0 4px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); }
.vault-detail-nav > span { color: var(--text-3); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.vault-detail-loading { min-height: 360px; }
.community-loadout-surface .community-detail-card {
  padding: 24px;
  border-color: var(--border);
  background: var(--surface);
  box-shadow: none;
  transform: none;
}
.community-loadout-surface .community-detail-card::before { left: 30px; right: 30px; }
.community-loadout-surface .community-detail-card:hover { border-color: var(--border); box-shadow: none; transform: none; }
.vault-discussion-head { margin-top: 25px; padding: 18px 2px 12px; display: flex; align-items: end; justify-content: space-between; gap: 18px; border-top: 1px solid var(--border); }
.vault-discussion-head small { color: #9d91ee; font-size: 9px; text-transform: uppercase; letter-spacing: .09em; }
.vault-discussion-head h3 { margin-top: 4px; color: var(--text-1); font-size: 16px; font-weight: 550; }
.vault-discussion-head > span { color: var(--text-3); font-size: 11px; }
.community-detail-card .community-comments { margin: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 11px; background: rgba(10,13,18,.38); }

@media (max-width: 980px) {
  .vault-thread { grid-template-columns: 40px minmax(0,1fr) minmax(260px,.72fr); }
  .vault-thread-activity { grid-column: 2 / -1; display: flex; justify-content: flex-end; }
  .vault-thread-activity b { grid-column: auto; grid-row: auto; }
}
@media (max-width: 720px) {
  .vault-thread { grid-template-columns: 36px minmax(0,1fr); align-items: start; }
  .vault-thread-avatar,
  .vault-thread-avatar .community-avatar { width: 36px; height: 36px; }
  .vault-thread-avatar .community-avatar { flex-basis: 36px; }
  .vault-thread-metrics { grid-column: 2; }
  .vault-thread-metrics > span:first-child { padding-left: 0; border-left: 0; }
  .vault-thread-activity { grid-column: 2; justify-content: flex-start; }
  .vault-discussion-head { align-items: flex-start; flex-direction: column; gap: 5px; }
}
@media (max-width: 480px) {
  .vault-thread { padding: 12px; }
  .vault-thread-head time { display: none; }
  .vault-thread-content > p { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .vault-thread-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .vault-thread-metrics > span { padding: 2px 7px; }
  .vault-thread-activity > b { display: none; }
  .community-loadout-surface .community-detail-card { padding: 17px; }
}

/* Copy Trading — friendly discovery experience */
#communityCopyTradingView {
  --copy-accent: #ff6f31;
  --copy-accent-bright: #ff9a5a;
  --copy-accent-soft: rgba(255,111,49,.1);
  --copy-card: var(--surface);
}
#communityCopyTradingView .copy-hub-hero {
  position: relative;
  min-height: 392px;
  padding: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0,1.25fr) minmax(350px,.75fr);
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 20px;
  background:
    radial-gradient(circle at 77% 18%,rgba(255,111,49,.1),transparent 30%),
    radial-gradient(circle at 18% 110%,rgba(255,143,58,.045),transparent 34%),
    linear-gradient(135deg,#11151c 0%,#0d1118 58%,#14110f 100%);
  box-shadow: 0 18px 60px rgba(0,0,0,.16);
}
#communityCopyTradingView .copy-hub-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .24;
  background-image: linear-gradient(rgba(255,255,255,.032) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.032) 1px,transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(90deg,#000,transparent 72%);
  pointer-events: none;
}
#communityCopyTradingView .copy-hub-hero::after {
  content: none;
  display: none;
}
#communityCopyTradingView .copy-hub-main {
  position: relative;
  z-index: 3;
  min-width: 0;
  padding: 35px 38px 31px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.copy-hub-topline {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
}
.copy-hub-topline > span {
  min-height: 27px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255,111,49,.2);
  border-radius: 999px;
  background: rgba(255,111,49,.065);
  color: #ffad86;
  font-size: 11px;
  white-space: nowrap;
}
.copy-hub-topline > span i,
.copy-verified-badge i,
.copy-card-proof i {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: var(--copy-accent);
  box-shadow: 0 0 8px rgba(255,111,49,.38);
}
#communityCopyTradingView .copy-hub-main h1 {
  max-width: 660px;
  margin-top: 12px;
  color: var(--text-1);
  font-size: clamp(40px,4vw,56px);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1;
}
#communityCopyTradingView .copy-hub-main > p:last-of-type {
  max-width: 660px;
  margin-top: 18px;
  color: #eef0f7;
  font-size: 17px;
  line-height: 1.55;
}
#communityCopyTradingView .copy-hub-metrics {
  max-width: none;
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 0;
}
#communityCopyTradingView .copy-hub-metrics > span,
#communityCopyTradingView .copy-hub-metrics > span:first-child,
#communityCopyTradingView .copy-hub-metrics > span:last-child {
  min-width: 0;
  padding: 0 18px;
  display: grid;
  gap: 3px;
  border: 0;
  border-right: 1px solid rgba(255,255,255,.08);
  border-radius: 0;
  background: transparent;
}
#communityCopyTradingView .copy-hub-metrics > span:first-child { padding-left: 0; }
#communityCopyTradingView .copy-hub-metrics > span:last-child { padding-right: 0; border-right: 0; }
#communityCopyTradingView .copy-hub-metrics small {
  color: var(--text-3);
  font-size: 10px;
}
#communityCopyTradingView .copy-hub-metrics b {
  margin: 2px 0;
  color: var(--text-1);
  font-size: 20px;
  font-weight: 500;
}
#communityCopyTradingView .copy-hub-metrics em {
  overflow: hidden;
  color: var(--text-3);
  font-size: 10px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.copy-explore-cta {
  width: fit-content;
  min-height: 40px;
  margin-top: 20px;
  padding: 0 11px 0 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,111,49,.38);
  border-radius: 10px;
  background: linear-gradient(110deg,rgba(255,111,49,.15),rgba(255,143,58,.09));
  color: #ffd5c3;
  font-size: 12px;
  font-weight: 520;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.copy-explore-cta:hover {
  border-color: rgba(255,143,58,.52);
  background: linear-gradient(110deg,rgba(255,111,49,.21),rgba(255,143,58,.13));
  color: #ffe5da;
}
.copy-explore-cta b { font-size: 15px; font-weight: 400; }
.copy-hero-art {
  position: relative;
  z-index: 2;
  min-width: 0;
  min-height: 392px;
  height: 392px;
  overflow: hidden;
  margin: 0;
  padding: 26px 34px 24px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}
.copy-flow-visual {
  position: relative;
  isolation: isolate;
  width: min(100%,430px);
  padding: 17px 14px 14px;
}
.copy-flow-visual::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 17% 5% 2%;
  border-radius: 42% 58% 56% 44%;
  background: radial-gradient(circle at 50% 42%,rgba(255,111,49,.12),rgba(255,111,49,.025) 48%,transparent 72%);
  filter: blur(16px);
  pointer-events: none;
}
.copy-flow-visual::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 50px 4px 20px;
  opacity: .14;
  background-image: radial-gradient(circle,rgba(180,194,216,.42) .7px,transparent .8px);
  background-size: 15px 15px;
  mask-image: radial-gradient(ellipse at center,#000,transparent 72%);
  pointer-events: none;
}
.copy-flow-kicker {
  margin: 0 5px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #778398;
  font-size: 9px;
  letter-spacing: .02em;
}
.copy-flow-kicker > span { display: inline-flex; align-items: center; gap: 7px; color: #9aa7ba; }
.copy-flow-kicker > span i { width: 6px; height: 6px; border-radius: 50%; background: var(--copy-accent); box-shadow: 0 0 12px rgba(255,111,49,.7); }
.copy-flow-kicker small { font-size: 9px; font-variant-numeric: tabular-nums; }
.copy-flow-source {
  position: relative;
  width: 82%;
  min-height: 76px;
  margin: 0 auto;
  padding: 14px 15px;
  display: grid;
  grid-template-columns: 44px minmax(0,1fr) auto;
  align-items: center;
  gap: 11px;
  overflow: hidden;
  border: 1px solid rgba(142,158,184,.2);
  border-radius: 15px;
  background: linear-gradient(145deg,rgba(28,33,42,.98),rgba(18,22,29,.98));
  box-shadow: 0 17px 34px rgba(0,0,0,.25),inset 0 1px 0 rgba(255,255,255,.035);
}
.copy-flow-source::before {
  content: "";
  position: absolute;
  top: 0;
  right: 17%;
  left: 17%;
  height: 1px;
  background: linear-gradient(90deg,transparent,var(--copy-accent),transparent);
  opacity: .9;
}
.copy-flow-avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,128,76,.34);
  border-radius: 12px;
  background: linear-gradient(145deg,rgba(255,111,49,.19),rgba(255,111,49,.055));
  color: #ffb08b;
  font-size: 12px;
  font-weight: 650;
}
.copy-flow-source-copy { min-width: 0; display: grid; gap: 4px; }
.copy-flow-source-copy small { color: #657187; font-size: 8px; letter-spacing: .12em; }
.copy-flow-source-copy b { overflow: hidden; color: #f5f7fb; font-size: 13px; font-weight: 560; text-overflow: ellipsis; white-space: nowrap; }
.copy-flow-source > strong {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #ffaf89;
  font-size: 9px;
  font-weight: 560;
  letter-spacing: .06em;
}
.copy-flow-source > strong i { width: 5px; height: 5px; border-radius: 50%; background: #ff7443; }
.copy-flow-source > strong em { color: #7c899d; font-style: normal; }
.copy-flow-track { position: relative; width: 100%; height: 68px; }
.copy-flow-track::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 35px;
  background: linear-gradient(var(--copy-accent),rgba(255,125,69,.25));
}
.copy-flow-track::after {
  content: "";
  position: absolute;
  top: 34px;
  right: 25%;
  left: 25%;
  height: 1px;
  background: linear-gradient(90deg,rgba(32,199,223,.48),rgba(255,126,72,.48) 48%,rgba(255,128,102,.55));
}
.copy-flow-guard {
  position: absolute;
  z-index: 2;
  top: 23px;
  left: 50%;
  min-height: 24px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(107,134,178,.22);
  border-radius: 999px;
  background: #131820;
  color: #99a7ba;
  font-size: 8px;
  white-space: nowrap;
  transform: translateX(-50%);
  box-shadow: 0 5px 16px rgba(0,0,0,.28);
}
.copy-flow-guard svg { width: 12px; height: 12px; stroke: #72a0ff; stroke-width: 1.7; }
.copy-flow-pulse {
  position: absolute;
  z-index: 3;
  top: 31px;
  width: 7px;
  height: 7px;
  border: 2px solid #10151c;
  border-radius: 50%;
  animation: copy-flow-pulse 1.9s ease-in-out infinite;
}
.copy-flow-pulse.one { left: calc(25% - 6px); background: var(--exchange-bybit); box-shadow: 0 0 10px rgba(32,199,223,.6); }
.copy-flow-pulse.two { right: calc(25% - 6px); background: var(--exchange-bitunix); box-shadow: 0 0 10px rgba(255,128,102,.6); animation-delay: .45s; }
@keyframes copy-flow-pulse { 0%,100% { opacity: .42; transform: scale(.72); } 50% { opacity: 1; transform: scale(1.2); } }
.copy-flow-targets { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.copy-flow-target {
  position: relative;
  min-width: 0;
  min-height: 65px;
  padding: 11px 11px;
  display: grid;
  grid-template-columns: 34px minmax(0,1fr) 16px;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(133,151,179,.16);
  border-radius: 13px;
  background: rgba(18,23,30,.94);
  box-shadow: 0 12px 24px rgba(0,0,0,.16),inset 0 1px 0 rgba(255,255,255,.025);
}
.copy-flow-target::before { content: ""; position: absolute; bottom: 100%; left: 50%; width: 1px; height: 34px; opacity: .48; }
.copy-flow-target.bybit::before { background: var(--exchange-bybit); }
.copy-flow-target.bitunix::before { background: var(--exchange-bitunix); }
.copy-flow-exchange { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; font-size: 8px; font-weight: 700; }
.copy-flow-target.bybit .copy-flow-exchange { border: 1px solid rgba(32,199,223,.28); background: rgba(32,199,223,.08); color: var(--exchange-bybit); }
.copy-flow-target.bitunix .copy-flow-exchange { border: 1px solid rgba(255,128,102,.28); background: rgba(255,128,102,.08); color: var(--exchange-bitunix); }
.copy-flow-target > span:nth-child(2) { min-width: 0; display: grid; gap: 4px; }
.copy-flow-target small { color: #68758a; font-size: 8px; letter-spacing: .08em; }
.copy-flow-target b { overflow: hidden; color: #c9d1de; font-size: 9px; font-weight: 520; text-overflow: ellipsis; white-space: nowrap; }
.copy-flow-target > strong { color: #39c986; font-size: 11px; font-weight: 650; }
.copy-flow-summary {
  min-height: 32px;
  margin: 10px 8px 0;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid rgba(136,153,179,.11);
  color: #69768a;
  font-size: 8px;
  letter-spacing: .02em;
}
.copy-flow-summary i { width: 16px; height: 1px; background: #343c48; }
.copy-flow-summary em { margin-left: auto; color: #45c98a; font-size: 8px; font-style: normal; letter-spacing: .12em; }
@media (prefers-reduced-motion: reduce) { .copy-flow-pulse { animation: none; } }
#communityCopyTradingView .copy-hub-actions {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 12px;
}
#communityCopyTradingView .copy-hub-action {
  min-height: 82px;
  padding: 16px 18px;
  border: 1px solid rgba(122,145,181,.16);
  border-radius: 15px;
  background: linear-gradient(145deg,rgba(23,28,36,.96),rgba(17,21,28,.96));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}
#communityCopyTradingView button.copy-hub-action:hover {
  border-color: var(--border-hi);
  background: #1b1f26;
  box-shadow: none;
  transform: none;
}
#communityCopyTradingView button.copy-hub-action.active {
  border-color: rgba(255,111,49,.22);
  background: rgba(255,111,49,.045);
  box-shadow: none;
  transform: none;
}
#communityCopyTradingView .copy-hub-action-icon { border-color: rgba(255,111,49,.2); border-radius: 11px; background: var(--copy-accent-soft); color: #ffad86; }
#communityCopyTradingView .copy-hub-action > i { color: #647389; }
#communityCopyTradingView .copy-result-action { border-color: rgba(106,151,223,.18); }
#communityCopyTradingView .copy-result-action .copy-hub-action-icon { border-color: rgba(111,161,255,.2); background: rgba(111,161,255,.08); color: #81adff; }
#communityCopyTradingView .copy-result-action > span.copy-result-value { display: grid; align-items: center; gap: 6px; }
#communityCopyTradingView .copy-result-value small { color: #78869b; font-size: 11px; }
#communityCopyTradingView .copy-result-value b { color: #edf3fb; font-size: 15px; }
#communityCopyTradingView .copy-directory-head {
  min-height: 78px;
  margin-top: 28px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(121,145,181,.14);
  border-radius: 15px;
  background: rgba(18,22,29,.8);
}
.copy-directory-title { min-width: 190px; display: grid; gap: 5px; }
.copy-directory-title > span { color: #eaf0f8; font-size: 17px; font-weight: 550; }
.copy-directory-title small { color: #748299; font-size: 11px; }
#communityCopyTradingView .copy-directory-tools { flex-wrap: wrap; justify-content: flex-end; }
#communityCopyTradingView .copy-period-select select,
#communityCopyTradingView .copy-search input,
#communityCopyTradingView .copy-sort-tabs { border-color: rgba(126,149,184,.17); background: rgba(12,16,22,.65); }
#communityCopyTradingView .copy-sort-tabs button.active { background: var(--copy-accent-soft); color: #ffad86; }
#communityCopyTradingView .copy-trader-grid {
  margin-top: 14px;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 14px;
}
#communityCopyTradingView .copy-trader-card {
  min-height: 458px;
  padding: 19px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: none;
}
#communityCopyTradingView .copy-trader-card:hover,
#communityCopyTradingView .copy-trader-card:focus-visible {
  border-color: var(--border-hi);
  background: #1a1e25;
  box-shadow: none;
  transform: none;
}
#communityCopyTradingView .copy-trader-card.is-following { border-color: var(--border); box-shadow: none; }
#communityCopyTradingView .copy-leader-head {
  margin: 0;
  padding: 0 0 15px;
  border-bottom: 1px solid rgba(126,149,183,.12);
}
#communityCopyTradingView .copy-leader-avatar { width: 46px; height: 46px; flex-basis: 46px; border-color: rgba(255,111,49,.22); background: var(--copy-accent-soft); color: #ffad86; }
#communityCopyTradingView .copy-trader-card .community-author b { font-size: 14px; font-weight: 550; }
.copy-card-badges { display: flex; align-items: flex-end; flex-direction: column; gap: 7px; }
#communityCopyTradingView .copy-trader-card .copy-environment-badge { margin-top: 0; font-size: 9px; }
#communityCopyTradingView .copy-roi-block {
  min-height: 104px;
  margin-top: 13px;
  padding: 13px 14px 9px;
  align-items: center;
  border: 1px solid rgba(123,148,186,.13);
  border-radius: 12px;
  background: rgba(8,12,18,.32);
}
#communityCopyTradingView .copy-roi-block b { font-size: 27px; font-weight: 570; }
#communityCopyTradingView .copy-roi-block canvas { height: 72px; }
#communityCopyTradingView .copy-leader-stats { margin-top: 11px; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
#communityCopyTradingView .copy-leader-stats > span {
  min-width: 0;
  padding: 10px;
  display: grid;
  align-content: center;
  gap: 5px;
  border: 1px solid rgba(123,148,186,.11);
  border-radius: 9px;
  background: rgba(12,16,22,.25);
}
#communityCopyTradingView .copy-leader-stats small { font-size: 9px; text-transform: uppercase; }
#communityCopyTradingView .copy-leader-stats b { overflow: hidden; font-size: 12px; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
#communityCopyTradingView .copy-leader-markets { margin-top: 11px; padding-top: 11px; gap: 9px; border-color: rgba(123,148,186,.12); }
#communityCopyTradingView .copy-leader-markets > span { display: flex; }
.copy-card-proof { margin-top: 12px; padding: 10px 0 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(123,148,186,.1); color: #6f7e93; font-size: 10px; }
.copy-card-proof span { display: inline-flex; align-items: center; gap: 6px; }
#communityCopyTradingView .community-empty { grid-column: 1 / -1; min-height: 190px; border: 1px dashed rgba(123,148,186,.19); border-radius: 16px; background: rgba(15,20,27,.55); }
.copy-education {
  margin-top: 32px;
  padding-top: 24px;
  display: grid;
  grid-template-columns: minmax(240px,.72fr) minmax(0,1.28fr);
  align-items: start;
  gap: 38px;
  border-top: 1px solid rgba(125,146,177,.14);
}
.copy-legend-panel, .copy-faq-panel { min-width: 0; }
.copy-faq-panel { padding-left: 38px; border-left: 1px solid rgba(125,146,177,.12); }
.copy-education-head { display: block; }
.copy-education-head > div { min-width: 0; }
.copy-education-head .control-title { color: #e6ebf2; font-size: 16px; line-height: 1.3; }
.copy-education-head .control-sub { max-width: 560px; margin-top: 6px; color: #718097; font-size: 12px; line-height: 1.55; }
.copy-status-legend { margin-top: 17px; display: grid; }
.copy-status-legend > div {
  min-width: 0;
  min-height: 74px;
  padding: 14px 0;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid rgba(129,150,181,.1);
}
.copy-status-legend > div:last-child { border-bottom: 0; }
.copy-status-legend p { min-width: 0; display: grid; gap: 6px; }
.copy-status-legend b { color: #d6dde8; font-size: 13px; font-weight: 560; }
.copy-status-legend small { color: #77859a; font-size: 11.5px; line-height: 1.55; }
.copy-legend-badge {
  min-width: 64px;
  min-height: 24px;
  padding: 0 8px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(132,151,181,.22);
  border-radius: 5px;
  background: rgba(132,151,181,.07);
  color: #8e9bad;
  font-size: 8.5px;
  font-weight: 650;
  letter-spacing: .07em;
}
.copy-legend-badge.mainnet { border-color: rgba(5,177,105,.3); background: rgba(5,177,105,.08); color: #48d494; }
.copy-legend-badge.demo { border-color: rgba(244,189,74,.3); background: rgba(244,189,74,.08); color: #e5bc62; }
.copy-legend-note {
  margin-top: 13px;
  padding-left: 12px;
  border-left: 1px solid rgba(255,111,49,.45);
  color: #687487;
  font-size: 11px;
  line-height: 1.55;
}
.copy-legend-note b { color: #929daf; font-weight: 550; }
.copy-faq-list { margin-top: 16px; border-top: 1px solid rgba(129,150,181,.11); }
.copy-faq-item { border-bottom: 1px solid rgba(129,150,181,.11); }
.copy-faq-item summary {
  position: relative;
  min-height: 54px;
  padding: 0 38px 0 1px;
  display: flex;
  align-items: center;
  color: #b9c2cf;
  font-size: 13px;
  font-weight: 560;
  cursor: pointer;
  list-style: none;
}
.copy-faq-item summary::-webkit-details-marker { display: none; }
.copy-faq-item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 5px;
  color: #66758c;
  font-size: 19px;
  font-weight: 300;
  transform: translateY(-50%);
  transition: transform 280ms cubic-bezier(.22,.8,.24,1),color 220ms ease;
}
.copy-faq-item.is-expanded summary { color: #f2f5fa; }
.copy-faq-item.is-expanded summary::after { color: #ff9466; transform: translateY(-50%) rotate(45deg); }
.copy-faq-item > .copy-faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 360ms cubic-bezier(.22,.8,.24,1),opacity 220ms ease;
}
.copy-faq-item > .copy-faq-answer > div { min-height: 0; overflow: hidden; }
.copy-faq-item.is-expanded > .copy-faq-answer { grid-template-rows: 1fr; opacity: 1; }
.copy-faq-item p {
  padding: 0 38px 18px 1px;
  color: #7d8a9e;
  font-size: 11.5px;
  line-height: 1.7;
  transform: translateY(-5px);
  transition: transform 360ms cubic-bezier(.22,.8,.24,1);
}
.copy-faq-item.is-expanded p { transform: translateY(0); }
.copy-faq-item summary:hover { color: #fff; }
@media (prefers-reduced-motion: reduce) {
  .copy-faq-item > .copy-faq-answer,
  .copy-faq-item p,
  .copy-faq-item summary::after { transition-duration: 1ms; }
}

@media (max-width: 1180px) {
  #communityCopyTradingView .copy-hub-hero { grid-template-columns: minmax(0,1.1fr) minmax(300px,.9fr); padding: 0; }
  #communityCopyTradingView .copy-hub-main { padding-right: 20px; }
  .copy-hero-art { min-height: 392px; }
  #communityCopyTradingView .copy-trader-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #communityCopyTradingView .copy-directory-head { align-items: flex-start; flex-direction: column; }
  #communityCopyTradingView .copy-directory-tools { width: 100%; justify-content: flex-start; }
}
@media (max-width: 860px) {
  #communityCopyTradingView .copy-hub-hero { padding: 0; grid-template-columns: 1fr; }
  #communityCopyTradingView .copy-hub-main { padding: 30px 26px; }
  .copy-hero-art { width: 100%; min-height: 330px; height: 330px; padding: 12px 24px 18px; border-top: 1px solid rgba(255,255,255,.06); }
  .copy-flow-visual { width: min(100%,460px); }
  #communityCopyTradingView .copy-hub-actions { grid-template-columns: 1fr; }
  #communityCopyTradingView .copy-directory-tools { display: grid; grid-template-columns: 1fr; }
  #communityCopyTradingView .copy-sort-tabs { width: 100%; overflow-x: auto; }
  #communityCopyTradingView .copy-sort-tabs button { flex: 1; }
  #communityCopyTradingView .copy-search input { width: 100%; }
  .copy-education { grid-template-columns: 1fr; gap: 24px; }
  .copy-faq-panel { padding-top: 24px; padding-left: 0; border-top: 1px solid rgba(125,146,177,.11); border-left: 0; }
}
@media (max-width: 610px) {
  #communityCopyTradingView .copy-hub-hero { min-height: 0; padding: 0; border-radius: 16px; }
  #communityCopyTradingView .copy-hub-main { padding: 25px 20px 22px; }
  .copy-hub-topline { align-items: flex-start; }
  .copy-hub-topline > span { font-size: 9px; }
  #communityCopyTradingView .copy-hub-main h1 { margin-top: 12px; font-size: 42px; }
  #communityCopyTradingView .copy-hub-main > p:last-of-type { font-size: 15px; }
  #communityCopyTradingView .copy-hub-metrics { grid-template-columns: 1fr; }
  #communityCopyTradingView .copy-hub-metrics > span,
  #communityCopyTradingView .copy-hub-metrics > span:first-child,
  #communityCopyTradingView .copy-hub-metrics > span:last-child { padding: 0 13px; }
  #communityCopyTradingView .copy-hub-metrics > span:first-child { padding-left: 0; }
  #communityCopyTradingView .copy-hub-metrics > span:last-child { padding-right: 0; border-right: 0; }
  .copy-explore-cta { width: fit-content; justify-content: flex-start; }
  .copy-hero-art { min-height: 310px; height: 310px; padding: 8px 12px 12px; }
  .copy-flow-visual { padding: 8px 2px 4px; }
  .copy-flow-kicker { margin-bottom: 8px; }
  .copy-flow-source { width: 88%; min-height: 68px; padding: 11px 12px; grid-template-columns: 38px minmax(0,1fr) auto; }
  .copy-flow-avatar { width: 38px; height: 38px; border-radius: 10px; }
  .copy-flow-track { height: 58px; }
  .copy-flow-track::before { height: 29px; }
  .copy-flow-track::after { top: 28px; }
  .copy-flow-guard { top: 17px; }
  .copy-flow-pulse { top: 25px; }
  .copy-flow-target { min-height: 60px; }
  .copy-flow-target::before { height: 29px; }
  .copy-flow-summary { min-height: 28px; margin-top: 6px; }
  #communityCopyTradingView .copy-directory-head { padding: 15px; }
  #communityCopyTradingView .copy-trader-grid { grid-template-columns: 1fr; }
  #communityCopyTradingView .copy-trader-card { min-height: 0; }
  .copy-education { margin-top: 26px; padding-top: 18px; }
  .copy-faq-panel { padding-top: 20px; }
}

/* ApexVault · curated community setup library */
.community-loadout-surface { --vault-accent: #8c7cf6; --vault-accent-soft: rgba(140,124,246,.12); --vault-mint: #61d5b1; }
.vault-hero { position: relative; min-height: 392px; overflow: hidden; display: grid; grid-template-columns: minmax(0,1.25fr) minmax(350px,.75fr); border: 1px solid rgba(140,124,246,.2); border-radius: 20px; background: radial-gradient(circle at 77% 18%,rgba(140,124,246,.13),transparent 30%),radial-gradient(circle at 18% 110%,rgba(69,190,157,.08),transparent 34%),linear-gradient(135deg,#11151c 0%,#0d1118 58%,#11101b 100%); box-shadow: 0 18px 60px rgba(0,0,0,.16); }
.vault-hero::before { content: ""; position: absolute; inset: 0; opacity: .24; background-image: linear-gradient(rgba(255,255,255,.032) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.032) 1px,transparent 1px); background-size: 46px 46px; mask-image: linear-gradient(90deg,#000,transparent 72%); pointer-events: none; }
.vault-hero-copy { position: relative; z-index: 2; min-width: 0; padding: 35px 38px 31px; display: flex; flex-direction: column; justify-content: center; }
.vault-hero-topline { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.vault-back-link { padding: 5px 0; border: 0; background: transparent; color: var(--text-3); font-size: 12px; }
.vault-back-link:hover { color: #b8abff; }
.vault-hero h1 { margin-top: 12px; color: var(--text-1); font-size: clamp(40px,4vw,56px); font-weight: 500; letter-spacing: -.045em; line-height: 1; }
.vault-hero-lead { max-width: 660px; margin-top: 18px; color: #eef0f7; font-size: 17px; line-height: 1.55; }
.vault-hero-body { max-width: 650px; margin-top: 8px; color: var(--text-3); font-size: 13px; line-height: 1.65; }
.vault-trust-row { margin-top: 22px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.vault-trust-row span { min-height: 28px; padding: 0 10px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid rgba(140,124,246,.18); border-radius: 15px; background: rgba(140,124,246,.055); color: #b9b1e9; font-size: 11px; }
.vault-trust-row i { width: 5px; height: 5px; border-radius: 50%; background: var(--vault-mint); box-shadow: 0 0 8px rgba(97,213,177,.5); }
.vault-network-metrics { margin-top: 28px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); }
.vault-network-metrics > div { min-width: 0; padding: 0 18px; display: grid; gap: 3px; border-right: 1px solid rgba(255,255,255,.08); }
.vault-network-metrics > div:first-child { padding-left: 0; }
.vault-network-metrics > div:last-child { border-right: 0; }
.vault-network-metrics small,.vault-network-metrics span { overflow: hidden; color: var(--text-3); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.vault-network-metrics b { margin: 2px 0; color: var(--text-1); font-size: 20px; font-weight: 500; font-variant-numeric: tabular-nums; }
.vault-hero-visual { position: relative; min-height: 392px; overflow: hidden; }
.vault-visual-glow { position: absolute; top: 50%; left: 53%; width: 260px; height: 260px; border-radius: 50%; background: rgba(140,124,246,.13); filter: blur(38px); transform: translate(-50%,-50%); }
.vault-orbit { position: absolute; top: 50%; left: 53%; border: 1px solid rgba(164,151,255,.13); border-radius: 50%; transform: translate(-50%,-50%); }
.vault-orbit.orbit-one { width: 290px; height: 290px; }
.vault-orbit.orbit-two { width: 390px; height: 390px; opacity: .55; }
.vault-visual-card { position: absolute; width: 250px; min-height: 118px; padding: 18px; border: 1px solid rgba(177,166,255,.2); border-radius: 15px; background: rgba(22,25,34,.9); box-shadow: 0 22px 55px rgba(0,0,0,.28); }
.vault-visual-card.card-back,.vault-visual-card.card-mid { left: 49%; padding: 15px 18px; display: flex; align-items: flex-end; gap: 5px; color: var(--text-3); font-size: 11px; transform-origin: center; }
.vault-visual-card.card-back { top: 40px; opacity: .48; transform: translateX(-50%) rotate(8deg); }
.vault-visual-card.card-mid { top: 67px; opacity: .68; transform: translateX(-50%) rotate(-5deg); }
.vault-visual-card.card-back span,.vault-visual-card.card-mid span { position: absolute; top: 14px; left: 17px; }
.vault-visual-card.card-back i,.vault-visual-card.card-mid i { width: 5px; border-radius: 2px; background: rgba(140,124,246,.54); }
.vault-visual-card.card-back i:nth-of-type(1),.vault-visual-card.card-mid i:nth-of-type(2) { height: 26px; }
.vault-visual-card.card-back i:nth-of-type(2),.vault-visual-card.card-mid i:nth-of-type(1) { height: 15px; }
.vault-visual-card.card-back i:nth-of-type(3),.vault-visual-card.card-mid i:nth-of-type(3) { height: 34px; }
.vault-visual-card.card-main { top: 105px; left: 49%; min-height: 218px; transform: translateX(-50%); }
.vault-visual-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: rgba(140,124,246,.12); }
.vault-visual-icon img { width: 24px; height: 24px; }
.vault-visual-card.card-main > small { position: absolute; top: 20px; right: 18px; color: #9587e5; font-size: 9px; letter-spacing: .1em; }
.vault-visual-card.card-main > b { display: block; margin-top: 14px; color: var(--text-1); font-size: 17px; font-weight: 500; }
.vault-visual-chart { height: 55px; margin-top: 13px; padding: 0 4px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.06); }
.vault-visual-chart i { position: relative; width: 8px; border-radius: 2px; background: var(--vault-mint); }
.vault-visual-chart i::before { content: ""; position: absolute; top: -7px; bottom: -7px; left: 50%; width: 1px; background: currentColor; transform: translateX(-50%); }
.vault-visual-chart i:nth-child(1) { height: 17px; color: #ef6a75; background: #ef6a75; }
.vault-visual-chart i:nth-child(2) { height: 25px; }
.vault-visual-chart i:nth-child(3) { height: 13px; color: #ef6a75; background: #ef6a75; }
.vault-visual-chart i:nth-child(4) { height: 33px; }
.vault-visual-chart i:nth-child(5) { height: 22px; }
.vault-visual-chart i:nth-child(6) { height: 38px; }
.vault-visual-chart i:nth-child(7) { height: 28px; color: #ef6a75; background: #ef6a75; }
.vault-visual-proof { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; }
.vault-visual-proof span { color: var(--vault-mint); font-size: 11px; }
.vault-visual-proof strong { color: var(--green); font-size: 13px; font-weight: 500; }
.vault-floating-note { position: absolute; min-height: 29px; padding: 0 10px; display: flex; align-items: center; border: 1px solid rgba(177,166,255,.2); border-radius: 9px; background: rgba(20,23,31,.94); box-shadow: 0 12px 28px rgba(0,0,0,.24); color: #b9b1e9; font-size: 10px; }
.vault-floating-note.note-one { top: 130px; left: 7px; transform: rotate(-4deg); }
.vault-floating-note.note-two { right: 9px; bottom: 62px; transform: rotate(4deg); }
.vault-toolbar { min-height: 76px; margin-top: 14px; padding: 12px 16px 12px 20px; display: flex; align-items: center; justify-content: space-between; gap: 22px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.vault-toolbar-copy { min-width: 0; display: grid; gap: 5px; }
.vault-toolbar-copy > span { color: var(--text-1); font-size: 14px; font-weight: 500; }
.vault-toolbar-copy small { color: var(--text-3); font-size: 11px; }
.vault-filter-controls { flex: 0 0 auto; }
.vault-filter-controls label { min-width: 170px; }
.community-loadout-surface .community-publish-card { margin-top: 14px; padding: 18px 20px; grid-template-columns: minmax(340px,.9fr) minmax(0,1.4fr); align-items: center; border-color: rgba(140,124,246,.16); background: linear-gradient(110deg,rgba(140,124,246,.055),transparent 40%),var(--surface); }
.community-loadout-surface .community-publish-copy { min-width: 0; display: flex; align-items: center; gap: 14px; }
.vault-publish-icon { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; background: var(--vault-accent-soft); }
.vault-publish-icon img { width: 25px; height: 25px; }
.community-loadout-surface .community-publish-title { flex-wrap: wrap; }
.community-loadout-surface .community-publish-title > span { border-color: rgba(140,124,246,.24); background: var(--vault-accent-soft); color: #ae9fff; }
.community-loadout-surface .community-feed-divider { margin-top: 29px; margin-bottom: -5px; }
.community-loadout-surface .community-grid { gap: 16px; }
.community-loadout-surface .community-card { position: relative; padding: 20px; border-color: rgba(255,255,255,.075); background: linear-gradient(145deg,rgba(255,255,255,.014),transparent 45%),var(--surface); box-shadow: 0 12px 34px rgba(0,0,0,.08); transition: border-color .2s ease,transform .2s ease,box-shadow .2s ease; }
.community-loadout-surface .community-card::before { content: ""; position: absolute; top: 0; right: 24px; left: 24px; height: 1px; background: linear-gradient(90deg,transparent,rgba(140,124,246,.5),transparent); opacity: .38; }
.community-loadout-surface .community-card:hover { border-color: rgba(140,124,246,.24); box-shadow: 0 18px 46px rgba(0,0,0,.15); transform: translateY(-2px); }
.community-card-badges { display: flex; align-items: center; gap: 6px; }
.community-proof-badge { min-height: 24px; padding: 0 8px; display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 12px; font-size: 10px; white-space: nowrap; }
.community-proof-badge.verified { border-color: rgba(97,213,177,.2); background: rgba(97,213,177,.07); color: var(--vault-mint); }
.community-proof-badge.building { color: var(--text-3); }
.community-loadout-surface .community-environment { min-height: 24px; padding: 0 7px; display: inline-flex; align-items: center; border-radius: 12px; font-size: 10px; }
.community-loadout-surface .community-card-title { margin-top: 19px; }
.community-loadout-surface .community-card-title h2 { font-size: 21px; letter-spacing: -.018em; }
.community-loadout-surface .community-strategies { margin-top: 8px; }
.community-loadout-surface .community-strategy { border-radius: 12px; background: rgba(255,255,255,.025); }
.community-loadout-surface .community-strategy em { padding-left: 5px; border-left: 1px solid rgba(255,255,255,.09); color: var(--text-3); font-size: 9px; font-style: normal; text-transform: uppercase; letter-spacing: .05em; }
.community-loadout-surface .community-strategy.is-disabled { opacity: .48; }
.community-loadout-surface .community-strategy.is-disabled i { background: var(--text-3); }
.community-loadout-surface .community-description { min-height: 46px; margin-top: 15px; padding-left: 12px; border-left: 2px solid rgba(140,124,246,.34); color: var(--text-2); font-size: 12px; }
.community-loadout-surface .community-metrics { margin-top: 17px; overflow: hidden; border: 1px solid var(--border); border-radius: 11px; background: rgba(9,12,17,.33); }
.community-loadout-surface .community-metrics > div { padding: 13px 11px; }
.community-loadout-surface .community-metrics > div:first-child { padding-left: 11px; }
.community-loadout-surface .community-metrics > div:last-child { padding-right: 11px; }
.community-loadout-surface .community-metrics small { font-size: 10px; }
.community-loadout-surface .community-metrics b { margin-top: 6px; font-size: 14px; }
.community-loadout-surface .community-sample { padding: 12px 2px; }
.community-loadout-surface .community-sample span:first-child { display: flex; align-items: center; gap: 6px; }
.community-loadout-surface .community-sample i { width: 5px; height: 5px; flex: 0 0 auto; border-radius: 50%; background: var(--vault-mint); }
.community-loadout-surface .community-sample b { color: var(--text-2); font-weight: 500; }
.community-loadout-surface .community-scope { padding: 13px 2px; display: grid; gap: 9px; border-bottom: 1px solid var(--border); }
.community-loadout-surface .community-scope > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.community-loadout-surface .community-scope small,
.community-loadout-surface .community-rules > small { color: var(--text-3); font-size: 10px; text-transform: uppercase; letter-spacing: .07em; }
.community-loadout-surface .community-scope p { color: var(--text-3); font-size: 10px; line-height: 1.5; }
.community-loadout-surface .community-exchanges { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.community-loadout-surface .community-exchange { min-height: 25px; padding: 0 8px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); border-radius: 12px; background: rgba(255,255,255,.018); color: var(--text-3); font-size: 9px; }
.community-loadout-surface .community-exchange b { font-size: 10px; font-weight: 600; }
.community-loadout-surface .community-exchange.bybit { border-color: rgba(33,200,229,.2); color: #70cfdf; }
.community-loadout-surface .community-exchange.bitunix { border-color: rgba(255,103,82,.2); color: #e98d7d; }
.community-loadout-surface .community-exchange.is-copy-only { opacity: .68; }
.community-loadout-surface .community-rules { padding: 13px 2px; display: grid; gap: 8px; }
.community-loadout-surface .community-rule-card { padding: 11px; display: grid; gap: 10px; border: 1px solid var(--border); border-radius: 10px; background: rgba(9,12,17,.26); }
.community-loadout-surface .community-rule-card.is-disabled { opacity: .5; background: rgba(9,12,17,.14); }
.community-loadout-surface .community-rule-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.community-loadout-surface .community-rule-head > span { display: inline-flex; align-items: center; gap: 7px; }
.community-loadout-surface .community-rule-head i { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.community-loadout-surface .community-rule-card.crowd .community-rule-head i { background: var(--crowd); }
.community-loadout-surface .community-rule-card.fable .community-rule-head i { background: #8b5cf6; }
.community-loadout-surface .community-rule-head b { color: var(--text-2); font-size: 12px; font-weight: 550; }
.community-loadout-surface .community-rule-head em { color: var(--text-3); font-size: 9px; font-style: normal; text-transform: uppercase; letter-spacing: .05em; }
.community-loadout-surface .community-rule-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.community-loadout-surface .community-rule-grid > span { min-width: 0; padding-top: 8px; display: grid; gap: 4px; border-top: 1px solid rgba(255,255,255,.055); }
.community-loadout-surface .community-rule-grid small { overflow: hidden; color: var(--text-3); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.community-loadout-surface .community-rule-grid b { overflow: hidden; color: var(--text-2); font-size: 10px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.community-loadout-surface .community-social-row { min-height: 43px; }
.community-loadout-surface .community-actions { margin-top: 13px; }
.community-loadout-surface .vault-copy-action { min-width: 160px; justify-content: space-between; border-color: rgba(140,124,246,.58); background: linear-gradient(110deg,#6f5ee7,#8c7cf6); box-shadow: 0 8px 20px rgba(111,94,231,.16); }
.community-loadout-surface .vault-copy-action:hover { background: linear-gradient(110deg,#7a68ef,#9b8bfd); }
.community-loadout-surface .vault-copy-action b { margin-left: 10px; font-size: 14px; font-weight: 400; }
.vault-empty { min-height: 270px; border-color: rgba(140,124,246,.2); background: radial-gradient(circle at 50% 40%,rgba(140,124,246,.07),transparent 32%); }
.vault-empty-icon { width: 52px; height: 52px; margin-bottom: 6px; display: grid; place-items: center; border-radius: 15px; background: var(--vault-accent-soft); }
.vault-empty-icon img { width: 30px; height: 30px; }

@media (max-width: 1080px) {
  .vault-hero { grid-template-columns: minmax(0,1.1fr) minmax(300px,.9fr); }
  .vault-hero-copy { padding-right: 20px; }
  .vault-network-metrics > div { padding: 0 11px; }
  .vault-visual-card { width: 228px; }
  .community-loadout-surface .community-publish-card { grid-template-columns: 1fr; align-items: stretch; }
}

@media (max-width: 820px) {
  .vault-hero { grid-template-columns: 1fr; }
  .vault-hero-copy { padding: 30px 26px; }
  .vault-hero-visual { min-height: 330px; border-top: 1px solid rgba(255,255,255,.06); }
  .vault-toolbar { align-items: stretch; flex-direction: column; }
  .vault-filter-controls { width: 100%; }
  .vault-filter-controls label { flex: 1; min-width: 0; }
  .community-loadout-surface .community-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .vault-hero { border-radius: 16px; }
  .vault-hero-copy { padding: 25px 20px 22px; }
  .vault-hero h1 { font-size: 42px; }
  .vault-hero-lead { font-size: 15px; }
  .vault-hero-body { font-size: 12px; }
  .vault-trust-row { align-items: flex-start; flex-direction: column; }
  .vault-network-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px 0; }
  .vault-network-metrics > div:nth-child(2) { border-right: 0; }
  .vault-network-metrics > div:nth-child(3) { padding-left: 0; }
  .vault-hero-visual { min-height: 310px; }
  .vault-orbit.orbit-two { width: 340px; height: 340px; }
  .vault-visual-card.card-main { top: 92px; }
  .vault-floating-note.note-one { left: 4px; }
  .vault-floating-note.note-two { right: 4px; bottom: 43px; }
  .vault-toolbar { padding: 16px; }
  .vault-filter-controls { flex-direction: column; }
  .community-loadout-surface .community-publish-card { padding: 17px; }
  .community-loadout-surface .community-publish-copy { align-items: flex-start; }
  .community-loadout-surface .community-publish-form { grid-template-columns: 1fr; }
  .community-loadout-surface .community-card { padding: 17px; }
  .community-card-badges { align-items: flex-end; flex-direction: column; }
  .community-loadout-surface .community-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .community-loadout-surface .community-metrics > div { border-bottom: 1px solid var(--border); }
  .community-loadout-surface .community-metrics > div:nth-child(2) { border-right: 0; }
  .community-loadout-surface .community-metrics > div:nth-child(n+3) { border-bottom: 0; }
  .community-loadout-surface .community-sample { align-items: flex-start; flex-direction: column; }
  .community-loadout-surface .community-scope > div { align-items: flex-start; flex-direction: column; }
  .community-loadout-surface .community-exchanges { justify-content: flex-start; }
  .community-loadout-surface .community-rule-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .community-loadout-surface .community-social-row { align-items: flex-start; flex-direction: column; }
  .community-loadout-surface .community-actions { flex-wrap: wrap; }
  .community-loadout-surface .vault-copy-action { width: 100%; }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { color-scheme: dark; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text-1);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button { cursor: pointer; }
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-hi); border-radius: 2px; }

.topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(15, 17, 20, 0.86);
  backdrop-filter: blur(16px);
}
.topnav-inner {
  width: 100%;
  max-width: var(--page-max);
  height: 56px;
  margin: 0 auto;
  padding: 0 var(--page-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  background: transparent;
  color: var(--text-1);
  font-size: 16px;
  font-weight: 600;
}
.brand-logo { width: 27px; height: 27px; display: block; flex: 0 0 27px; }
.brand-accent { color: var(--blue); }
.nav-links { display: flex; gap: 2px; }
.nav-link {
  padding: 6px 14px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-3);
  font-size: 13px;
  font-weight: 500;
  transition: color 150ms, background 150ms;
}
.nav-link:hover { color: var(--text-2); background: var(--surface); }
.nav-link.active { color: var(--text-1); background: var(--surface-hi); }
.admin-nav, .community-nav { position: relative; display: flex; }
.community-nav::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 310px;
  height: 12px;
}
.admin-nav-trigger, .community-nav-trigger { display: inline-flex; align-items: center; gap: 7px; }
.admin-nav-chevron, .community-nav-chevron {
  width: 6px;
  height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 160ms ease;
}
.admin-nav.open .admin-nav-chevron, .community-nav.open .community-nav-chevron { transform: translateY(1px) rotate(225deg); }
.admin-nav-popover, .community-nav-popover {
  position: absolute;
  z-index: 110;
  top: calc(100% + 9px);
  right: 0;
  width: 224px;
  padding: 6px;
  display: grid;
  gap: 2px;
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-sm);
  background: rgba(24, 27, 32, .98);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .42);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 140ms ease, visibility 140ms ease, transform 140ms ease;
}
.community-nav-popover {
  left: 0;
  right: auto;
  width: 310px;
  padding: 8px;
  gap: 5px;
  border-color: rgba(88, 96, 116, .42);
  border-radius: 11px;
  background: rgba(19, 22, 28, .985);
  box-shadow: 0 22px 58px rgba(0, 0, 0, .52), 0 1px 0 rgba(255, 255, 255, .025) inset;
  pointer-events: none;
}
.admin-nav.open .admin-nav-popover, .community-nav.open .community-nav-popover { opacity: 1; visibility: visible; transform: translateY(0); }
.community-nav.open .community-nav-popover { pointer-events: auto; }
@media (hover: hover) and (pointer: fine) {
  .community-nav:hover .community-nav-popover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
  .community-nav:hover .community-nav-chevron { transform: translateY(1px) rotate(225deg); }
}
.admin-nav-option, .community-nav-option {
  min-width: 0;
  padding: 10px 11px;
  display: grid;
  gap: 3px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-2);
  text-align: left;
}
.admin-nav-option:hover, .admin-nav-option.active, .community-nav-option:hover, .community-nav-option.active { background: var(--surface-hi); color: var(--text-1); }
.admin-nav-option span, .community-nav-option span { font-size: 13px; font-weight: 500; }
.admin-nav-option small, .community-nav-option small { color: var(--text-3); font-size: 11px; font-weight: 400; }
.community-nav-option {
  width: 100%;
  min-height: 64px;
  padding: 10px;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease, transform 150ms ease;
}
.community-nav-option:hover, .community-nav-option:focus-visible, .community-nav-option.active {
  outline: 0;
  transform: translateX(1px);
}
.community-nav-option-copy:hover, .community-nav-option-copy:focus-visible, .community-nav-option-copy.active {
  border-color: rgba(255, 143, 58, .17);
  background: linear-gradient(90deg, rgba(255, 111, 49, .09), rgba(30, 33, 40, .88));
}
.community-nav-option-vault:hover, .community-nav-option-vault:focus-visible, .community-nav-option-vault.active {
  border-color: rgba(74, 125, 255, .17);
  background: linear-gradient(90deg, rgba(0, 82, 255, .09), rgba(30, 33, 40, .88));
}
.community-nav-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-hi);
  border-radius: 9px;
  background: rgba(255, 255, 255, .025);
}
.community-nav-icon svg { width: 21px; height: 21px; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.community-nav-icon.copy {
  width: 32px;
  height: 32px;
  margin-inline: 3px;
  border: 0;
  background: transparent;
  color: #ff9c52;
}
.community-nav-icon.copy img { width: 19px; height: 19px; display: block; }
.community-nav-icon.vault {
  width: 32px;
  height: 32px;
  margin-inline: 3px;
  border: 0;
  background: transparent;
  color: #7da1ff;
}
.community-nav-icon.vault img { width: 21px; height: 21px; display: block; }
.community-nav-option-copytext { min-width: 0; display: grid; gap: 5px; }
.community-nav-option-title { display: flex; align-items: center; gap: 6px; color: var(--text-1); font-size: 13px; font-weight: 550; }
.community-nav-option small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.community-nav-flame {
  width: 16px;
  height: 16px;
  display: block;
  overflow: visible;
  filter: drop-shadow(0 0 5px rgba(255, 92, 35, .48));
  transform-origin: 50% 90%;
  animation: community-flame 1.7s ease-in-out infinite;
}
@keyframes community-flame {
  0%, 100% { transform: translateY(0) rotate(-2deg) scale(1); }
  50% { transform: translateY(-1px) rotate(2deg) scale(.94, 1.06); }
}
@media (prefers-reduced-motion: reduce) { .community-nav-flame { animation: none; } }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-profile-button {
  min-height: 38px;
  padding: 4px 10px 4px 5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(24,27,32,.92);
  color: #cbd2dd;
  font-size: 12px;
  font-weight: 550;
  transition: border-color 160ms ease,background 160ms ease,color 160ms ease;
}
.nav-profile-button:hover,
.nav-profile-button:focus-visible,
.profile-menu.open .nav-profile-button {
  outline: 0;
  border-color: rgba(0,82,255,.42);
  background: rgba(0,82,255,.08);
  color: #f3f6fb;
}
.live-dot, .pstatus-dot, .cs-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: var(--border-hi);
}
.pstatus-dot.live, .contact-status.online .cs-dot {
  background: var(--green);
  box-shadow: 0 0 6px rgba(5, 177, 105, 0.75);
  animation: blink 2s infinite;
}
.pstatus-dot.live { animation-delay: var(--pulse-delay, 0ms); }
.nav-profile-avatar {
  position: relative;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid rgba(182,196,219,.3);
  border-radius: 50%;
  background: #20252d;
  color: #aeb8c7;
  box-shadow: 0 0 0 2px rgba(255,255,255,.025),inset 0 1px 0 rgba(255,255,255,.05);
}
.nav-profile-avatar svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.nav-profile-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; display: none; border-radius: 50%; object-fit: cover; }
.nav-profile-avatar img.visible { display: block; }
.nav-profile-button:hover .nav-profile-avatar,
.profile-menu.open .nav-profile-avatar { border-color: rgba(117,157,255,.52); }
.nav-profile-chevron { width: 12px; height: 12px; stroke: #69758a; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform 160ms ease; }
.profile-menu.open .nav-profile-chevron { transform: rotate(180deg); }
.profile-menu { position: relative; }
.profile-menu::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 0;
  width: 158px;
  height: 10px;
}
.profile-popover {
  position: absolute;
  z-index: 80;
  top: calc(100% + 9px);
  right: 0;
  width: 158px;
  padding: 6px;
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-sm);
  background: rgba(24, 27, 32, 0.98);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.38);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-5px);
  transition: opacity 150ms ease, transform 170ms ease, visibility 150ms ease;
}
.profile-menu:hover .profile-popover,
.profile-menu:focus-within .profile-popover,
.profile-menu.open .profile-popover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.profile-menu-item {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 500;
  text-align: left;
}
.profile-menu-item:hover, .profile-menu-item:focus-visible { outline: 0; background: var(--surface-hi); color: var(--text-1); }
.profile-menu-item.danger:hover, .profile-menu-item.danger:focus-visible { background: var(--red-dim); color: var(--red); }
@keyframes blink { 50% { opacity: 0.3; } }

.page {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 36px var(--page-pad) 64px;
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  gap: 28px;
}
.is-hidden { display: none !important; }
.site-footer {
  width: 100%;
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: rgba(15, 17, 20, 0.72);
}
.site-footer-inner {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 22px var(--page-pad) 24px;
}
.footer-main { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.footer-brandline { display: flex; align-items: center; gap: 9px; color: var(--text-2); font-size: 12px; }
.footer-brandline img { width: 19px; height: 19px; flex: 0 0 19px; }
.footer-links { display: flex; align-items: center; justify-content: flex-end; gap: 20px; }
.footer-links a { color: var(--text-3); font-size: 12px; text-decoration: none; transition: color 150ms; }
.footer-links a:hover, .footer-links a:focus-visible { outline: 0; color: var(--text-1); }
.footer-risk { max-width: 760px; margin-top: 15px; color: var(--text-3); font-size: 12px; line-height: 1.55; }

/* Shared error pages use the same application shell. */
.error-page .topnav-inner { gap: 24px; }
.error-page .brand,
.error-page .nav-link,
.error-page .nav-profile-button { text-decoration: none; }
.error-page .nav-links { min-width: 0; justify-content: center; }
.error-page .error-view {
  min-height: calc(100vh - 56px - 139px);
  align-items: center;
  justify-content: center;
}
.error-panel {
  position: relative;
  width: min(100%, 820px);
  min-height: 390px;
  padding: 58px 64px;
  overflow: hidden;
  display: grid;
  align-content: center;
  border: 1px solid var(--border);
  border-radius: 20px;
  background:
    radial-gradient(circle at 88% 14%, rgba(0,82,255,.13), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,.025), transparent 48%),
    var(--surface);
  box-shadow: 0 24px 80px rgba(0,0,0,.2);
}
.error-panel::after {
  content: attr(data-code);
  position: absolute;
  top: 50%;
  right: 34px;
  color: rgba(255,255,255,.025);
  font-size: clamp(130px, 19vw, 220px);
  font-weight: 800;
  letter-spacing: -.09em;
  line-height: .8;
  transform: translateY(-50%);
  pointer-events: none;
}
.error-eyebrow {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #7f8ba0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.error-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(0,82,255,.1), 0 0 15px rgba(0,82,255,.45);
}
.error-title {
  position: relative;
  z-index: 1;
  max-width: 610px;
  margin-top: 19px;
  color: var(--text-1);
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 620;
  letter-spacing: -.045em;
  line-height: 1.02;
}
.error-description {
  position: relative;
  z-index: 1;
  max-width: 590px;
  margin-top: 17px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.7;
}
.error-actions {
  position: relative;
  z-index: 1;
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.error-primary,
.error-secondary {
  min-height: 40px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}
.error-primary { border: 1px solid #185fff; background: var(--blue); color: #fff; }
.error-primary:hover { border-color: #3c78ff; background: #165fff; }
.error-secondary { border: 1px solid var(--border-hi); background: transparent; color: var(--text-2); }
.error-secondary:hover { border-color: #414756; background: var(--surface-hi); color: var(--text-1); }
.error-support { position: relative; z-index: 1; margin-top: 22px; color: var(--text-3); font-size: 11px; }
.error-support a { color: #7889a6; text-decoration: none; }
.error-support a:hover { color: var(--text-1); }
.error-403 .error-eyebrow::before { background: #f4bd4a; box-shadow: 0 0 0 5px rgba(244,189,74,.1), 0 0 15px rgba(244,189,74,.35); }
.error-500 .error-eyebrow::before,
.error-502 .error-eyebrow::before,
.error-503 .error-eyebrow::before { background: var(--red); box-shadow: 0 0 0 5px rgba(240,61,61,.1), 0 0 15px rgba(240,61,61,.35); }
.port-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.port-label { margin-bottom: 8px; color: var(--text-2); font-size: 13px; }
.port-value-row { display: flex; align-items: center; gap: 12px; }
.port-value {
  color: var(--text-1);
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
}
.view-title { font-size: 36px; font-weight: 700; line-height: 1; }
.port-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 20px;
  background: var(--surface-hi);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
}
.port-badge.pos { background: var(--green-dim); color: var(--green); }
.port-badge.neg { background: var(--red-dim); color: var(--red); }
.port-sub { margin-top: 8px; color: var(--text-3); font-size: 12px; }
.port-header-right { display: flex; align-items: flex-end; flex-direction: column; gap: 10px; }
.exchange-filter {
  display: flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.exchange-filter-btn {
  min-width: 68px;
  padding: 7px 13px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-3);
  font-size: 12px;
  font-weight: 600;
}
.exchange-filter-btn:hover { color: var(--text-1); }
.exchange-filter-btn.active { background: var(--surface-hi); color: var(--text-1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.025); }
.exchange-filter-btn[hidden], .exchange-filter[hidden] { display: none; }
.tf-group {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.tf {
  padding: 6px 14px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-3);
  font-size: 13px;
  font-weight: 500;
}
.tf:hover { color: var(--text-2); }
.tf.active { background: var(--surface-hi); color: var(--text-1); }

.spark-card, .positions-table, .contacts-section, .funding-strip,
.trade-chart-card, .control-card, .config-loadout-card, .global-risk-card, .log-table, .settings-card, .strategy-control-card,
.analytics-chart-card, .analytics-table-card, .analytics-calendar-card, .profile-summary, .admin-approvals, .admin-users-table, .admin-telemetry, .admin-moderation {
  border: 1px solid var(--border);
  background: var(--surface);
}
.spark-card { height: 284px; overflow: hidden; border-radius: var(--radius-lg); padding-top: 0; }
.portfolio-chart-head { height: 44px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--border); }
.portfolio-chart-head > span { color: var(--text-2); font-size: 12px; font-weight: 600; }
.portfolio-chart-legend { display: flex; align-items: center; gap: 14px; color: var(--text-3); font-size: 11px; }
.portfolio-chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.portfolio-chart-legend b { font: inherit; color: inherit; }
.portfolio-chart-legend i { width: 14px; height: 2px; border-radius: 2px; background: var(--exchange-total); }
.portfolio-chart-legend .legend-bybit i { background: var(--exchange-bybit); }
.portfolio-chart-legend .legend-bitunix i { background: var(--exchange-bitunix); }
#portfolioChart { width: 100%; height: 238px; display: block; cursor: crosshair; touch-action: pan-y; }
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kpi-row.portfolio-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpi-row.three { grid-template-columns: repeat(3, 1fr); }
.kpi-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition: border-color 150ms;
}
.kpi-card:hover { border-color: var(--border-hi); }
.kpi-label { color: var(--text-2); font-size: 12px; }
.kpi-value {
  margin-top: 6px;
  overflow: hidden;
  color: var(--text-1);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kpi-value.small-value { font-size: 19px; }
.kpi-change { margin-top: 6px; font-size: 12px; font-weight: 500; }
.pos { color: var(--green) !important; }
.neg { color: var(--red) !important; }
.neutral { color: var(--text-2) !important; }
.blue { color: var(--blue) !important; }

.position-exchange-badge { padding: 2px 5px; border: 1px solid rgba(32,199,223,.3); border-radius: 4px; color: var(--exchange-bybit); font-size: 8px; font-weight: 700; letter-spacing: .025em; text-transform: uppercase; }
.position-exchange-badge.bitunix { border-color: rgba(255,128,102,.34); color: var(--exchange-bitunix); }
.position-readonly { color: var(--text-3); font-size: 10px; white-space: nowrap; }

.section-divider { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.section-divider > span {
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.section-divider > span b { color: inherit; font-weight: inherit; }
.section-divider::after { content: ""; height: 1px; flex: 1; background: var(--border); }
.div-btn {
  order: 3;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-3);
  font-size: 12px;
  font-weight: 500;
}
.div-btn:hover { border-color: var(--border-hi); color: var(--text-2); }
.div-btn.danger-soft { border-color: rgba(240,61,61,.28); color: var(--red); }
.div-btn.danger-soft:hover:not(:disabled) { border-color: rgba(240,61,61,.54); background: rgba(240,61,61,.08); color: var(--red); }
.div-btn:disabled { opacity: .42; cursor: default; }

.positions-table { overflow: hidden; border-radius: var(--radius-lg); }
.ptable-head, .ptable-row {
  display: grid;
  grid-template-columns: minmax(178px, 1.45fr) minmax(82px,.78fr) 0.62fr 0.82fr 0.82fr 1.04fr 0.9fr 0.66fr 82px;
  align-items: center;
  column-gap: 14px;
}
.ptable-head > *, .ptable-row > * { min-width: 0; }
.ptable-head {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--text-3);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
}
.ptable-row { position: relative; min-height: 63px; padding: 12px 20px; border-bottom: 1px solid var(--border); }
.ptable-row::before, .history-row::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; border-radius: 0 2px 2px 0; }
.ptable-row.side-long::before, .history-row.side-long::before { background: var(--green); box-shadow: 0 0 8px rgba(20,211,139,.32); }
.ptable-row.side-short::before, .history-row.side-short::before { background: var(--red); box-shadow: 0 0 8px rgba(240,61,61,.28); }
.ptable-row:last-child { border-bottom: 0; }
.ptable-row:hover, .contact-row:hover, .history-row:hover, .log-row:hover { background: rgba(255,255,255,0.02); }
.pcoin { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pcoin-icon {
  width: 28px;
  height: 28px;
  display: block;
  flex: 0 0 28px;
  border-radius: 50%;
  object-fit: contain;
}
.pcoin-sym { overflow: hidden; display: flex; align-items: center; gap: 7px; color: var(--text-1); font-size: 14px; font-weight: 600; }
.pcoin-sym > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.strategy-cell { min-width: 0; display: flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 12px; white-space: nowrap; }
.strategy-cell i { width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; }
.strategy-cell span { overflow: hidden; text-overflow: ellipsis; }
.strategy-cell.post-pump i { background: #3975ff; box-shadow: 0 0 7px rgba(57,117,255,.42); }
.strategy-cell.crowd { color: #d9af5a; }
.strategy-cell.crowd i { background: var(--crowd); box-shadow: 0 0 7px rgba(244,189,74,.38); }
.strategy-cell.fable { color: #b9a5ff; }
.strategy-cell.fable i { background: #8b5cf6; box-shadow: 0 0 7px rgba(139,92,246,.42); }
.strategy-cell.copy-trading { color: #79d7ff; }
.strategy-cell.copy-trading i { background: #38bdf8; box-shadow: 0 0 7px rgba(56,189,248,.38); }
.strategy-cell.external { color: var(--text-3); }
.strategy-cell.external i { background: var(--text-3); }
.mobile-strategy-label { display: none; }
.pcoin-sub { margin-top: 2px; color: var(--text-3); font-size: 12px; }
.pdir {
  width: fit-content;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
}
.pdir.short { background: var(--red-dim); color: var(--red); }
.pdir.long { background: var(--green-dim); color: var(--green); }
.pmono { overflow: hidden; color: var(--text-2); font-size: 13px; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.ppnl { overflow: hidden; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.position-live-pnl { display: flex; align-items: flex-start; flex-direction: column; gap: 2px; line-height: 1.15; }
.position-live-roi { color: inherit; font-size: 11px; font-weight: 500; opacity: .76; }
.pstatus { display: flex; align-items: center; gap: 6px; }
.pstatus-label { overflow: hidden; color: var(--text-3); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.position-action { display: flex; justify-content: flex-end; }
.position-close-btn {
  height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(240,61,61,.28);
  border-radius: var(--radius-sm);
  background: rgba(240,61,61,.08);
  color: var(--red);
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, opacity 160ms ease;
}
.position-close-btn:hover:not(:disabled) { border-color: rgba(240,61,61,.58); background: rgba(240,61,61,.14); }
.position-close-btn:disabled { opacity: .46; cursor: default; }
.position-action-muted { color: var(--text-3); font-size: 12px; }
.empty-row { padding: 24px 20px; color: var(--text-3); font-size: 13px; text-align: center; }

.contacts-section { overflow: hidden; border-radius: var(--radius-lg); }
.contact-row {
  min-height: 69px;
  padding: 14px 20px;
  display: grid;
  grid-template-columns: 1fr 200px 90px 100px;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--border);
}
.contact-row:last-child { border-bottom: 0; }
.contact-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.contact-av {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-hi);
}
.contact-av img {
  width: 23px;
  height: 23px;
  display: block;
  object-fit: contain;
}
.contact-name { color: var(--text-1); font-size: 14px; font-weight: 600; }
.contact-handle { margin-top: 2px; color: var(--text-3); font-size: 12px; }
.contact-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ctag {
  padding: 3px 9px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--surface-hi);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 500;
}
.cacc-val { color: var(--text-1); font-size: 18px; font-weight: 700; }
.cacc-label { margin-top: 2px; color: var(--text-3); font-size: 12px; }
.contact-status { display: flex; align-items: center; gap: 6px; color: var(--text-3); font-size: 12px; }
.contact-status.online { color: var(--green); }

.funding-strip {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  border-radius: var(--radius-md);
}
.funding-item { flex: 1; display: flex; flex-direction: column; gap: 4px; text-align: center; }
.fi-sep { width: 1px; height: 32px; flex: 0 0 1px; background: var(--border); }
.fi-label { color: var(--text-3); font-size: 12px; }
.fi-val { color: var(--text-1); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }

.chart-controls {
  align-self: center;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 10px;
}
.chart-control { display: grid; gap: 6px; }
.chart-control > span { color: var(--text-3); font-size: 12px; font-weight: 500; }
.chart-control input, .chart-control select {
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: 0;
  background: var(--surface);
  color: var(--text-1);
  font-size: 12px;
}
.chart-control input:focus, .chart-control select:focus { border-color: var(--blue); }
.chart-control select { min-width: 132px; padding: 0 30px 0 10px; }
.chart-input-wrap { display: flex; align-items: center; }
.chart-symbol-control input {
  width: 190px;
  padding: 0 42px 0 10px;
}
.chart-input-wrap { position: relative; }
.chart-input-wrap button {
  position: absolute;
  right: 3px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 6px;
  background: var(--surface-hi);
  color: var(--text-2);
  font-size: 17px;
}
.chart-input-wrap button:hover { color: var(--text-1); }
.trade-chart-card { height: 500px; overflow: hidden; border-radius: var(--radius-lg); }
#chartView.page {
  width: 100%;
  max-width: var(--page-max);
  min-width: 0;
}
#chartView > *,
#chartView .port-header > div:first-child,
.trade-chart-card,
.tradingview-widget-container,
#tradingviewChart {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
.tradingview-widget-container, #tradingviewChart { height: 100%; overflow: hidden; }
#tradingviewChart iframe { display: block; width: 100% !important; max-width: 100% !important; }
.control-card {
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  border-radius: var(--radius-lg);
}
.control-title { color: var(--text-1); font-size: 15px; font-weight: 600; }
.control-sub { margin-top: 4px; color: var(--text-3); font-size: 12px; }
.control-actions { display: flex; gap: 8px; }
.config-loadout-card {
  min-width: 0;
  padding: 17px 20px;
  display: grid;
  grid-template-columns: minmax(190px, .65fr) minmax(0, 1.8fr);
  align-items: end;
  gap: 22px;
  border-radius: var(--radius-lg);
}
.config-loadout-copy { min-width: 0; align-self: center; }
.config-loadout-title-row { display: flex; align-items: center; gap: 9px; }
.config-loadout-count {
  padding: 3px 7px;
  border: 1px solid var(--border-hi);
  border-radius: 6px;
  background: var(--surface-hi);
  color: var(--text-3);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.config-loadout-manager {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(150px, .9fr) minmax(190px, 1.1fr) auto;
  align-items: end;
  gap: 10px;
}
.config-loadout-field { min-width: 0; display: grid; gap: 6px; }
.config-loadout-field > span { color: var(--text-3); font-size: 12px; font-weight: 500; }
.config-loadout-field input, .config-loadout-field select {
  width: 100%;
  min-width: 0;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: 0;
  background: var(--surface-hi);
  color: var(--text-1);
  font-size: 12px;
  letter-spacing: 0;
}
.config-loadout-field select { padding-right: 30px; }
.config-loadout-field input:focus, .config-loadout-field select:focus { border-color: var(--blue); }
.config-loadout-field input::placeholder { color: var(--text-3); }
.config-loadout-actions { display: flex; align-items: center; gap: 7px; }
.config-loadout-actions .action-btn { height: 36px; padding: 0 12px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.config-loadout-actions .action-btn:disabled { opacity: .38; cursor: default; }
.action-btn.loadout-neutral { background: var(--surface-hi); color: var(--text-2); }
.action-btn.loadout-neutral:hover:not(:disabled) { border-color: var(--border-hi); color: var(--text-1); }
.action-btn.loadout-danger { border-color: rgba(240,61,61,.25); background: transparent; color: var(--red); }
.action-btn.loadout-danger:hover:not(:disabled) { border-color: rgba(240,61,61,.48); background: var(--red-dim); }
.global-risk-card { padding: 20px; border-radius: var(--radius-lg); }
.global-risk-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.global-risk-head-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.risk-reset-btn { height: 29px; padding: 0 10px; border: 1px solid rgba(240,61,61,.32); border-radius: 7px; background: var(--red-dim); color: var(--red); font-size: 12px; font-weight: 500; cursor: pointer; }
.risk-reset-btn:hover { border-color: rgba(240,61,61,.58); background: rgba(240,61,61,.15); }
.risk-gate-badge {
  min-height: 28px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(5, 177, 105, 0.28);
  border-radius: 20px;
  background: var(--green-dim);
  color: var(--green);
  font-size: 12px;
  white-space: nowrap;
}
.risk-gate-badge.blocked { border-color: rgba(240, 61, 61, 0.32); background: var(--red-dim); color: var(--red); }
.risk-gate-badge .live-dot { background: var(--green); }
.risk-gate-badge.blocked .live-dot { background: var(--red); box-shadow: none; animation: none; }
.global-risk-grid {
  margin-top: 18px;
  padding-top: 16px;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(190px, 1fr) minmax(170px, .85fr) auto;
  align-items: end;
  gap: 18px;
  border-top: 1px solid var(--border);
}
.global-risk-control { min-width: 0; }
.toggle-row.global-risk-toggle { min-height: 34px; padding: 0; border-top: 0; }
.global-risk-toggle > span > b, .cooldown-control > div > b { font-size: 12px; font-weight: 500; }
.global-risk-toggle > span > small, .cooldown-control > div > small { display: block; margin-top: 3px; color: var(--text-3); font-size: 12px; }
.global-risk-value {
  height: 34px;
  margin-top: 9px;
  padding: 0 9px;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-hi);
}
.global-risk-value:focus-within { border-color: var(--blue); }
.global-risk-value input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text-1); font-size: 12px; text-align: right; }
.global-risk-value span { color: var(--text-3); font-size: 12px; white-space: nowrap; }
.cooldown-control > div { min-height: 34px; display: flex; flex-direction: column; justify-content: center; }
.global-risk-action { min-width: 150px; display: grid; gap: 9px; }
.global-risk-action > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--text-3); font-size: 12px; }
.global-risk-action > div > b { color: var(--text-2); font-size: 12px; font-weight: 500; white-space: nowrap; }
.global-risk-action .action-btn { width: 100%; height: 34px; }
.symbol-blacklist-panel {
  margin-top: 18px;
  padding-top: 16px;
  display: grid;
  grid-template-columns: minmax(210px, .72fr) minmax(0, 1.65fr);
  align-items: start;
  gap: 18px;
  border-top: 1px solid var(--border);
}
.symbol-blacklist-copy > div { display: flex; align-items: center; gap: 9px; }
.symbol-blacklist-copy b { color: var(--text-1); font-size: 12px; font-weight: 500; }
.symbol-blacklist-copy span {
  padding: 3px 7px;
  border: 1px solid rgba(240,61,61,.25);
  border-radius: 6px;
  background: var(--red-dim);
  color: var(--red);
  font-size: 12px;
}
.symbol-blacklist-copy small { display: block; margin-top: 5px; color: var(--text-3); font-size: 12px; }
.symbol-blacklist-controls { min-width: 0; display: grid; gap: 10px; }
.symbol-blacklist-entry {
  width: min(100%, 360px);
  height: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-hi);
  overflow: hidden;
}
.symbol-blacklist-entry:focus-within { border-color: var(--blue); }
.symbol-blacklist-entry input {
  min-width: 0;
  padding: 0 10px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-1);
  font-size: 12px;
  letter-spacing: 0;
}
.symbol-blacklist-entry button {
  border: 0;
  border-left: 1px solid var(--border);
  background: var(--blue);
  color: white;
  font-size: 19px;
  font-weight: 400;
}
.symbol-blacklist-entry button:hover { background: #174cff; }
.symbol-blacklist-entry button:disabled { opacity: .48; cursor: wait; }
.symbol-blacklist-items { min-height: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.symbol-blacklist-empty { color: var(--text-3); font-size: 12px; }
.symbol-blacklist-chip {
  height: 28px;
  padding: 0 5px 0 9px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(240,61,61,.25);
  border-radius: 6px;
  background: var(--red-dim);
  color: var(--text-2);
  font-size: 12px;
}
.symbol-blacklist-chip button {
  width: 18px;
  height: 18px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--red);
  font-size: 15px;
  line-height: 1;
}
.symbol-blacklist-chip button:hover { color: white; }
.entry-quality-card .global-risk-toggle {
  min-width: 0;
  min-height: 23px;
  padding: 0;
  border: 0;
  background: transparent;
}
.quality-filter-layout {
  margin-top: 18px;
  padding-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 12px;
  border-top: 1px solid var(--border);
}
.quality-filter-fields {
  grid-column: 1 / 3;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.quality-filter-parabolic { grid-column: 3; align-self: start; }
.quality-filter-save { grid-column: 4; align-self: end; width: 100%; height: 34px; }
.market-guard-card { padding: 20px; border-radius: var(--radius-lg); }
.market-guard-badge {
  min-height: 28px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface-hi);
  color: var(--text-3);
  font-size: 12px;
  white-space: nowrap;
}
.market-guard-badge .live-dot { background: var(--text-3); box-shadow: none; animation: none; }
.market-guard-badge.continue { border-color: rgba(5,177,105,.28); background: var(--green-dim); color: var(--green); }
.market-guard-badge.continue .live-dot { background: var(--green); }
.market-guard-badge.pause { border-color: rgba(240,61,61,.32); background: var(--red-dim); color: var(--red); }
.market-guard-badge.pause .live-dot { background: var(--red); }
.market-guard-layout {
  margin-top: 18px;
  padding-top: 16px;
  display: grid;
  grid-template-columns: minmax(110px,.55fr) minmax(110px,.55fr) minmax(180px,.9fr) minmax(235px,1.15fr) minmax(120px,.55fr);
  align-items: end;
  gap: 12px;
  border-top: 1px solid var(--border);
}
.market-guard-market, .market-guard-rule { min-width: 0; display: grid; gap: 5px; }
.market-guard-market > span, .market-guard-rule > span { color: var(--text-3); font-size: 12px; }
.market-guard-market > b { color: var(--text-1); font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.market-guard-market > b.rising { color: var(--red); }
.market-guard-market > b.falling { color: var(--green); }
.market-guard-rule > b { color: var(--text-2); font-size: 12px; font-weight: 500; }
.market-guard-rule > small { overflow: hidden; color: var(--text-3); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.market-guard-toggle { min-height: 34px; }
.market-guard-save { width: 100%; height: 34px; }
.market-guard-note { margin: 13px 0 0; color: var(--text-3); font-size: 12px; line-height: 1.45; }
.market-guard-note.is-paused { color: var(--red); }
.strategy-control-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.strategy-control-card { position: relative; min-width: 0; padding: 20px; overflow: hidden; border-radius: var(--radius-lg); display: flex; flex-direction: column; }
.strategy-control-card.strategy-needs-selection { animation: strategy-selection-hint 1.8s ease; }
@keyframes strategy-selection-hint {
  0%, 100% { border-color: var(--border); box-shadow: none; }
  24%, 68% { border-color: rgba(57,117,255,.82); box-shadow: 0 0 0 2px rgba(57,117,255,.12),0 0 24px rgba(0,82,255,.14); }
}
.strategy-control-card .toggle-row { grid-column: auto; }
.strategy-control-card .strategy-head-row { padding-top: 0; border-top: 0; }
.strategy-lock-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: none;
  place-content: center;
  justify-items: center;
  gap: 9px;
  background: rgba(20, 23, 28, 0.62);
  color: var(--text-1);
  font-size: 12px;
  font-weight: 500;
  backdrop-filter: blur(2px);
}
.strategy-lock-overlay svg { width: 23px; height: 23px; stroke: var(--text-2); stroke-width: 1.6; }
.strategy-control-card.access-locked > :not(.strategy-lock-overlay) {
  filter: blur(2.5px);
  opacity: 0.38;
  pointer-events: none;
  user-select: none;
}
.strategy-control-card.access-locked .strategy-lock-overlay { display: grid; }
.strategy-settings { flex: 1; margin-top: 18px; border-top: 1px solid var(--border); display: flex; flex-direction: column; }
.strategy-setting-row {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}
.strategy-setting-row > span { color: var(--text-3); font-size: 12px; }
.strategy-setting-row > b { color: var(--text-2); font-size: 12px; font-weight: 500; }
.strategy-setting-select {
  height: 30px;
  min-width: 124px;
  padding: 0 28px 0 9px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-hi);
  color: var(--text-2);
  font-size: 12px;
}
.strategy-setting-select:focus { border-color: var(--blue); outline: none; }
.strategy-control-card .strategy-option-row { padding: 14px 0 0; border-top: 0; }
.strategy-more-toggle {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--border);
  appearance: none;
  background: transparent;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 500;
  text-align: left;
}
.strategy-more-toggle:hover { color: var(--text-1); }
.strategy-last-row { border-bottom: 0; }
.strategy-more-toggle i {
  position: relative;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border: 1px solid var(--border-hi);
  border-radius: 50%;
  background: var(--surface-hi);
  transition: border-color 180ms ease, background 180ms ease, transform 240ms ease;
}
.strategy-more-toggle i::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 7px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.strategy-more-toggle[aria-expanded="true"] { color: var(--text-1); }
.strategy-more-toggle[aria-expanded="true"] i {
  border-color: rgba(0, 82, 255, 0.46);
  background: var(--blue-dim);
  transform: rotate(180deg);
}
.strategy-advanced {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transform: translateY(-4px);
  transition: grid-template-rows 280ms ease, opacity 200ms ease, transform 280ms ease;
}
.strategy-advanced.open { grid-template-rows: 1fr; opacity: 1; transform: translateY(0); }
.strategy-advanced-inner { min-height: 0; overflow: hidden; }
.fixed-pnl-toggle {
  min-height: 52px;
  margin-top: 2px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.strategy-trailing-panel { padding: 4px 0 8px; border-bottom: 1px solid var(--border); }
.strategy-trailing-panel > .toggle-row { min-height: 48px; padding: 8px 0; border: 0; }
.strategy-trailing-inputs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 24px; }
.strategy-trailing-inputs .strategy-field { min-height: 44px; border-bottom: 0; }
.strategy-trailing-inputs input:disabled { opacity: .42; cursor: not-allowed; }
.strategy-trailing-panel:not(.enabled) .strategy-trailing-inputs { opacity: .55; }
.fixed-pnl-field { display: none; }
.strategy-advanced.fixed-pnl-enabled .fixed-pnl-field { display: flex; }
.fixed-risk-field { display: none; }
.strategy-advanced.fixed-risk-enabled .fixed-risk-field { display: flex; }
.strategy-advanced.fixed-risk-enabled .fable-margin-field { opacity: 0.48; }
.strategy-field-grid {
  padding-top: 2px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
}
.strategy-field {
  min-width: 0;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(37, 40, 48, 0.72);
}
.strategy-field > span:first-child { color: var(--text-2); font-size: 12px; }
.strategy-input {
  width: 116px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  padding: 0 9px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(15, 17, 20, 0.56);
  transition: border-color 160ms ease, background 160ms ease;
}
.strategy-input:focus-within { border-color: var(--blue); background: var(--surface-hi); }
.strategy-input input {
  width: 100%;
  min-width: 0;
  height: 30px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-1);
  font-size: 12px;
  font-weight: 500;
  text-align: right;
  appearance: textfield;
}
.strategy-input input::-webkit-inner-spin-button,
.strategy-input input::-webkit-outer-spin-button { margin: 0; appearance: none; }
.strategy-input small { color: var(--text-3); font-size: 12px; white-space: nowrap; }
.strategy-save-row { padding-top: 16px; display: flex; justify-content: flex-end; }
.strategy-advanced .strategy-save-btn { height: 34px; padding: 0 16px; }
.action-btn {
  height: 38px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: white;
  font-size: 13px;
  font-weight: 600;
}
.action-btn.primary { border-color: var(--blue); background: var(--blue); }
.action-btn.primary:hover { background: #174cff; }
.action-btn.danger { border-color: rgba(240,61,61,0.36); background: var(--red-dim); color: var(--red); }
.action-btn.full { width: 100%; margin-top: 6px; }
.toggle-row {
  grid-column: 1 / -1;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}
.toggle-row > span > b, .toggle-row > span > small { display: block; }
.toggle-row > span > b { color: var(--text-1); font-size: 13px; font-weight: 600; }
.toggle-row > span > small { margin-top: 3px; color: var(--text-3); font-size: 12px; }
.toggle-row input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-row > i {
  position: relative;
  width: 42px;
  height: 23px;
  border: 1px solid var(--border-hi);
  border-radius: 20px;
  background: var(--surface-hi);
}
.toggle-row > i > b {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--text-2);
  transition: transform 150ms, background 150ms;
}
.toggle-row input:checked + i { border-color: rgba(5,177,105,0.5); background: var(--green-dim); }
.toggle-row input:checked + i > b { transform: translateX(19px); background: var(--green); }

.log-table {
  max-height: 360px;
  overflow-x: hidden;
  overflow-y: auto;
  border-radius: var(--radius-lg);
  overscroll-behavior: contain;
  scrollbar-color: var(--border-hi) transparent;
  scrollbar-width: thin;
}
.log-table::-webkit-scrollbar { width: 7px; }
.log-table::-webkit-scrollbar-track { background: transparent; }
.log-table::-webkit-scrollbar-thumb { border-radius: 8px; background: var(--border-hi); }
.log-table::-webkit-scrollbar-thumb:hover { background: var(--text-3); }
.log-row {
  min-height: 48px;
  padding: 11px 16px;
  display: grid;
  grid-template-columns: 80px 70px 1fr;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}
.log-row:last-child { border-bottom: 0; }
.log-time, .log-level { color: var(--text-3); font-size: 12px; }
.log-level { font-weight: 600; text-transform: uppercase; }
.log-message { color: var(--text-2); font-size: 12px; }

.history-head, .history-row {
  display: grid;
  grid-template-columns: minmax(135px, 1.3fr) 92px 70px 88px 88px 80px 125px 125px minmax(90px, 1fr) 96px;
  align-items: center;
  gap: 8px;
}
.history-head {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--text-3);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
}
.history-row { position: relative; min-height: 56px; padding: 10px 20px; border-bottom: 1px solid var(--border); }
.history-row:last-child { border-bottom: 0; }
.history-group { border-bottom: 1px solid var(--border); }
.history-group:last-child { border-bottom: 0; }
.history-group .history-row { border-bottom: 0; }
.history-row.expandable { background: linear-gradient(90deg,rgba(255,255,255,.012),transparent 34%); }
.history-row > span { overflow: hidden; color: var(--text-2); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.history-row > .strategy-cell { font-size: 12px; }
.history-row .trade-symbol { display: flex; align-items: center; gap: 9px; color: var(--text-1); font-size: 13px; font-weight: 600; }
.history-row .trade-symbol img { width: 24px; height: 24px; flex: 0 0 24px; border-radius: 50%; object-fit: contain; }
.history-row .trade-symbol-main { min-width: 0; display: flex; align-items: center; gap: 7px; }
.history-row .trade-symbol-main > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-symbol-line { min-width: 0; display: flex; align-items: center; gap: 6px; }
.history-symbol-line > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-exchange-badges { display: flex; align-items: center; gap: 3px; }
.history-expand-btn { width: 20px; height: 20px; padding: 0; display: grid; place-items: center; border: 1px solid var(--border-hi); border-radius: 50%; background: var(--surface-hi); color: var(--text-2); font-size: 13px; line-height: 1; }
.history-expand-btn:hover { border-color: var(--blue); color: #fff; }
.history-executions { padding: 4px 18px 10px 52px; background: rgba(7,10,15,.28); }
.history-execution-row { min-height: 46px; padding: 8px 10px; display: grid; grid-template-columns: 72px 1.1fr 80px 1.5fr 1fr 96px; align-items: center; gap: 12px; border-top: 1px solid rgba(255,255,255,.055); color: var(--text-2); font-size: 11px; }
.history-execution-row > span { min-width: 0; }
.history-execution-row small { display: block; margin-bottom: 2px; color: var(--text-3); font-size: 9px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; }
.history-execution-row b { display: block; overflow: hidden; color: var(--text-2); font-size: 11px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.history-execution-row .trade-pnl { justify-self: end; font-size: 12px; font-weight: 600; }
.history-filters { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin: 24px 0 8px; }
.history-symbol-search { display: flex; flex-direction: column; gap: 8px; flex: 1 1 220px; max-width: 380px; min-width: 0; color: var(--text-2); font-size: 14px; }
.history-symbol-search input { width: 100%; min-width: 0; box-sizing: border-box; min-height: 44px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text-1); font: inherit; font-size: 16px; }
.history-symbol-search input:focus-visible, .history-filter-clear:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.history-filter-clear { min-height: 44px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; background: transparent; color: var(--text-2); font: inherit; font-size: 14px; cursor: pointer; }
.history-filter-clear:disabled { opacity: .4; cursor: default; }
.history-filter-clear:hover:not(:disabled) { color: var(--text-1); border-color: var(--blue); }

.trade-pagination {
  min-height: 52px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-top: 1px solid var(--border);
}
.trade-pagination button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-hi);
  color: var(--text-1);
  font-size: 16px;
}
.trade-pagination button:hover:not(:disabled) { border-color: var(--blue); color: #fff; }
.trade-pagination button:disabled { opacity: 0.32; cursor: default; }
.trade-pagination span { min-width: 92px; color: var(--text-2); font-size: 12px; text-align: center; }

.analytics-range {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.analytics-header-controls { display: flex; align-items: center; gap: 8px; }
.analytics-mode-switch { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.analytics-mode-btn { height: 32px; padding: 0 13px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--text-3); font-size: 12px; font-weight: 500; }
.analytics-mode-btn:hover { color: var(--text-2); }
.analytics-mode-btn.active { background: var(--surface-hi); color: var(--text-1); }
.analytics-range-btn {
  min-width: 54px;
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-3);
  font-size: 12px;
  font-weight: 500;
}
.analytics-range-btn:hover { color: var(--text-2); }
.analytics-range-btn.active { background: var(--surface-hi); color: var(--text-1); }
.analytics-chart-card { height: 310px; overflow: hidden; border-radius: var(--radius-lg); }
.analytics-legend {
  height: 48px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--border);
}
.analytics-legend span { display: flex; align-items: center; gap: 7px; color: var(--text-2); font-size: 12px; }
.analytics-legend b { margin-left: 4px; color: var(--text-1); font-weight: 500; }
.analytics-dot { width: 7px; height: 7px; border-radius: 50%; }
.analytics-dot.post-pump { background: var(--blue); }
.analytics-dot.crowd { background: var(--crowd); }
.analytics-dot.fable { background: #8b5cf6; }
.analytics-dot.copy { background: #ff8a4c; }
#analyticsChart { width: 100%; height: 260px; display: block; }
.analytics-table-card { overflow-x: auto; border-radius: var(--radius-lg); }
.analytics-head, .analytics-row {
  min-width: 860px;
  display: grid;
  grid-template-columns: minmax(170px, 1.5fr) 68px 72px 90px 110px 100px 100px 92px;
  align-items: center;
  gap: 12px;
}
.analytics-head {
  min-height: 44px;
  padding: 0 18px;
  border-bottom: 1px solid var(--border);
  color: var(--text-3);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
}
.analytics-row { min-height: 58px; padding: 9px 18px; border-bottom: 1px solid var(--border); }
.analytics-row:last-child { border-bottom: 0; }
.analytics-row.best { background: rgba(0, 82, 255, 0.045); }
.analytics-row > span { overflow: hidden; color: var(--text-2); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.analytics-strategy { display: flex; align-items: center; gap: 9px; color: var(--text-1) !important; font-size: 13px !important; font-weight: 600; }
.analytics-strategy i { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; }
.analytics-empty { padding: 28px 18px; color: var(--text-3); font-size: 12px; text-align: center; }
.analytics-calendar-card { overflow: hidden; border-radius: var(--radius-lg); }
.analytics-calendar-toolbar { min-height: 78px; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--border); }
.analytics-calendar-navigation { min-width: 260px; display: grid; grid-template-columns: 34px minmax(130px,1fr) 34px; align-items: center; gap: 10px; }
.analytics-calendar-navigation button { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-hi); color: var(--text-2); font-size: 15px; }
.analytics-calendar-navigation button:hover:not(:disabled) { border-color: var(--blue); color: var(--text-1); }
.analytics-calendar-navigation button:disabled { opacity: .28; cursor: default; }
.analytics-calendar-navigation div { text-align: center; }
.analytics-calendar-navigation p { color: var(--text-1); font-size: 14px; font-weight: 500; }
.analytics-calendar-navigation small { display: block; margin-top: 3px; color: var(--text-3); font-size: 12px; }
.analytics-calendar-kpis { display: grid; grid-template-columns: repeat(4,minmax(92px,1fr)); }
.analytics-calendar-kpis > div { min-width: 0; padding: 3px 16px; border-left: 1px solid var(--border); }
.analytics-calendar-kpis small { display: block; color: var(--text-3); font-size: 12px; }
.analytics-calendar-kpis b { display: block; margin-top: 5px; overflow: hidden; color: var(--text-2); font-size: 12px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.analytics-calendar-kpis b.pos { color: var(--green); }
.analytics-calendar-kpis b.neg { color: var(--red); }
.analytics-calendar-scroll { overflow-x: auto; }
.analytics-calendar-weekdays, .analytics-calendar-grid { min-width: 760px; display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); }
.analytics-calendar-weekdays { border-bottom: 1px solid var(--border); }
.analytics-calendar-weekdays span { height: 34px; display: grid; place-items: center; color: var(--text-3); font-size: 12px; font-weight: 500; text-transform: uppercase; }
.analytics-calendar-grid { gap: 1px; background: var(--border); }
.analytics-calendar-day { min-width: 0; min-height: 94px; padding: 10px; display: flex; flex-direction: column; background: var(--surface); }
.analytics-calendar-day.empty { background: rgba(255,255,255,.008); }
.analytics-calendar-day.today { box-shadow: inset 0 0 0 1px rgba(0,82,255,.75); }
.analytics-calendar-day.positive { background: rgba(18,184,116,.035); }
.analytics-calendar-day.negative { background: rgba(255,61,80,.035); }
.analytics-calendar-day-number { color: var(--text-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.analytics-calendar-day.today .analytics-calendar-day-number { color: #78a0ff; }
.analytics-calendar-day-pnl { margin-top: auto; overflow: hidden; color: var(--text-2); font-size: 12px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.analytics-calendar-day-pnl.pos { color: var(--green); }
.analytics-calendar-day-pnl.neg { color: var(--red); }
.analytics-calendar-day-meta { margin-top: 5px; color: var(--text-3); font-size: 12px; }
.analytics-calendar-foot { min-height: 45px; padding: 9px 16px; display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px 22px; border-top: 1px solid var(--border); color: var(--text-3); font-size: 12px; }
.analytics-calendar-foot span { display: flex; align-items: center; gap: 6px; }
.analytics-calendar-foot b { color: var(--text-2); font-weight: 500; font-variant-numeric: tabular-nums; }
.analytics-edge-toolbar { min-height: 62px; padding: 10px 14px 10px 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.analytics-settings-intro { min-height: 62px; padding: 10px 16px 10px 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.analytics-walk-intro { min-height: 62px; padding: 10px 16px 10px 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.analytics-lab-badge { padding: 5px 8px; border: 1px solid rgba(0,82,255,.34); border-radius: var(--radius-sm); background: rgba(0,82,255,.08); color: #78a0ff; font-size: 12px; font-weight: 500; white-space: nowrap; }
.analytics-walk-grid { margin-top: 14px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.analytics-walk-card { min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.analytics-walk-head { min-height: 60px; padding: 12px 15px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--border); }
.analytics-walk-strategy { display: flex; align-items: center; gap: 9px; color: var(--text-1); font-size: 13px; font-weight: 500; }
.analytics-walk-strategy i { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; }
.analytics-walk-status { padding: 5px 8px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); color: var(--text-3); font-size: 12px; white-space: nowrap; }
.analytics-walk-status.validated { border-color: rgba(18,184,116,.34); background: rgba(18,184,116,.08); color: var(--green); }
.analytics-walk-status.rejected { border-color: rgba(255,61,80,.3); background: rgba(255,61,80,.07); color: var(--red); }
.analytics-walk-status.thin { border-color: rgba(244,189,74,.32); background: rgba(244,189,74,.07); color: var(--crowd); }
.analytics-walk-body { padding: 15px; }
.analytics-walk-message { min-height: 34px; color: var(--text-3); font-size: 12px; line-height: 1.6; }
.analytics-walk-params { margin-top: 13px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.analytics-walk-param { min-width: 0; padding: 11px 10px; border-right: 1px solid var(--border); }
.analytics-walk-param:first-child { padding-left: 0; }
.analytics-walk-param:last-child { padding-right: 0; border-right: 0; }
.analytics-walk-param small { display: block; overflow: hidden; color: var(--text-3); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.analytics-walk-param b { display: block; margin-top: 5px; color: var(--text-1); font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.analytics-walk-param b.changed { color: #78a0ff; }
.analytics-walk-compare { margin-top: 13px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.analytics-walk-window { min-width: 0; }
.analytics-walk-window-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--text-2); font-size: 12px; }
.analytics-walk-window-head span:last-child { color: var(--text-3); }
.analytics-walk-metrics { margin-top: 8px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
.analytics-walk-metric small { display: block; color: var(--text-3); font-size: 12px; }
.analytics-walk-metric b { display: block; margin-top: 3px; overflow: hidden; color: var(--text-2); font-size: 12px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.analytics-walk-metric b.pos { color: var(--green); }
.analytics-walk-metric b.neg { color: var(--red); }
.analytics-walk-foot { margin-top: 14px; padding-top: 11px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--border); color: var(--text-3); font-size: 12px; }
.analytics-walk-empty { min-height: 250px; padding: 30px 24px; display: grid; align-content: center; justify-items: center; text-align: center; }
.analytics-walk-empty strong { color: var(--text-2); font-size: 13px; font-weight: 500; }
.analytics-walk-empty p { max-width: 340px; margin-top: 8px; color: var(--text-3); font-size: 12px; line-height: 1.6; }
.analytics-walk-progress { width: min(260px,100%); height: 3px; margin-top: 15px; overflow: hidden; background: var(--surface-hi); }
.analytics-walk-progress i { height: 100%; display: block; background: var(--blue); }
.analytics-strategy-filter { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg); }
.analytics-strategy-btn { height: 30px; padding: 0 11px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--text-3); font-size: 12px; font-weight: 500; }
.analytics-strategy-btn:hover { color: var(--text-2); }
.analytics-strategy-btn.active { background: var(--surface-hi); color: var(--text-1); }
.analytics-edge-grid { margin-top: 14px; display: grid; grid-template-columns: repeat(auto-fit,minmax(310px,1fr)); gap: 14px; }
.analytics-edge-panel { min-width: 0; min-height: 238px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.analytics-edge-head { min-height: 59px; padding: 12px 15px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); }
.analytics-edge-head p { color: var(--text-1); font-size: 13px; font-weight: 500; }
.analytics-edge-head small { display: block; margin-top: 3px; color: var(--text-3); font-size: 12px; }
.analytics-edge-head::after { content: "N · WR · P&L"; color: var(--text-3); font-size: 12px; letter-spacing: 0; white-space: nowrap; }
.analytics-breakdown { padding: 4px 0; }
.analytics-breakdown-row { min-height: 39px; padding: 5px 14px; display: grid; grid-template-columns: minmax(90px,1fr) 70px 58px 88px; align-items: center; gap: 8px; border-bottom: 1px solid rgba(37,40,48,.72); }
.analytics-breakdown-row:last-child { border-bottom: 0; }
.analytics-breakdown-row.best { background: rgba(0,82,255,.055); }
.analytics-breakdown-label { overflow: hidden; color: var(--text-2); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.analytics-breakdown-label b { margin-right: 7px; color: var(--blue); font-size: 12px; font-weight: 600; }
.analytics-breakdown-row > span:not(.analytics-breakdown-label) { color: var(--text-3); font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.analytics-breakdown-sample { display: grid; justify-items: end; line-height: 1.1; }
.analytics-breakdown-sample b { color: var(--text-2); font-size: 11px; font-weight: 500; }
.analytics-breakdown-sample small { margin-top: 2px; color: var(--text-3); font-size: 8px; text-transform: uppercase; letter-spacing: .035em; }
.analytics-breakdown-row .pos { color: var(--green) !important; }
.analytics-breakdown-row .neg { color: var(--red) !important; }
.analytics-breakdown-empty { min-height: 174px; padding: 28px 20px; display: grid; place-items: center; color: var(--text-3); font-size: 12px; line-height: 1.6; text-align: center; }

.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.settings-grid.single { grid-template-columns: 1fr; }
.settings-card { padding: 20px; border-radius: var(--radius-lg); }
.settings-head { margin-bottom: 18px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }

.api-command-header { min-height: 156px; padding: 12px 4px 25px; display: flex; align-items: flex-end; justify-content: space-between; gap: 36px; border-bottom: 1px solid var(--border); }
.api-command-title { min-width: 0; }
.api-command-title h1 { margin-top: 8px; color: var(--text-1); font-size: 36px; font-weight: 500; letter-spacing: 0; line-height: 1.08; }
.api-command-title > p:last-child { max-width: 760px; margin-top: 11px; color: var(--text-2); font-size: 13px; line-height: 1.62; }
.api-command-status { min-width: 250px; padding: 4px 0 4px 22px; display: flex; align-items: flex-start; gap: 11px; border-left: 1px solid var(--border-hi); }
.api-command-status > i { width: 7px; height: 7px; margin-top: 6px; flex: 0 0 7px; border-radius: 50%; background: var(--text-3); }
.api-command-status.connected > i { background: var(--green); box-shadow: 0 0 9px rgba(0,208,139,.35); }
.api-command-status > span { min-width: 0; display: grid; gap: 4px; }
.api-command-status small { color: var(--text-3); font-size: 11px; }
.api-command-status b { overflow: hidden; color: var(--text-1); font-size: 15px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.api-command-status em { color: var(--text-3); font-size: 10px; font-style: normal; }
.api-routing-stage { margin-top: 18px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #111419; }
.api-routing-stage-head { min-height: 64px; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--border); }
.api-routing-stage-head > span { padding: 4px 7px; border: 1px solid rgba(255,174,31,.23); border-radius: var(--radius-sm); color: #ffb733; font-size: 9px; white-space: nowrap; }
.api-routing-flow { min-height: 238px; padding: 23px 20px; display: grid; grid-template-columns: minmax(150px,1fr) minmax(45px,.4fr) minmax(210px,1.4fr) minmax(45px,.4fr) minmax(170px,1.05fr); align-items: center; gap: 12px; background-image: linear-gradient(rgba(58,67,81,.055) 1px,transparent 1px),linear-gradient(90deg,rgba(58,67,81,.055) 1px,transparent 1px); background-size: 36px 36px; }
.api-routing-stack { min-width: 0; display: grid; gap: 7px; }
.api-routing-stack > p { margin-bottom: 2px; color: var(--text-3); font-size: 10px; text-transform: uppercase; }
.api-routing-stack > span { min-width: 0; min-height: 38px; padding: 6px 8px; display: grid; grid-template-columns: 25px minmax(0,1fr) auto; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: rgba(25,29,36,.82); color: var(--text-3); }
.api-routing-stack > span.active { border-color: rgba(0,82,255,.3); background: rgba(0,82,255,.055); color: var(--text-2); }
.api-routing-stack > span > i { width: 25px; height: 25px; display: grid; place-items: center; border-radius: var(--radius-sm); background: var(--surface-hi); color: var(--text-2); font-size: 8px; font-style: normal; font-weight: 600; }
.venue-stack > span:first-of-type > i { background: rgba(255,179,0,.09); color: #ffc43d; }
.venue-stack > span:nth-of-type(2) > i { background: rgba(0,208,139,.08); color: #38dca8; }
.venue-stack > span:nth-of-type(3) > i { background: rgba(245,190,43,.08); color: #f5be2b; }
.api-routing-stack > span > b { overflow: hidden; font-size: 11px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.api-routing-stack > span > em { font-size: 9px; font-style: normal; }
.api-routing-stack > span.active > em { color: var(--green); }
.api-flow-bridge { position: relative; min-width: 0; height: 46px; display: grid; align-content: center; }
.api-flow-bridge > span { width: 100%; height: 1px; display: block; background: linear-gradient(90deg,var(--border-hi),rgba(0,82,255,.75)); }
.api-flow-bridge > span::after { content: ""; position: absolute; top: 20px; right: 0; width: 6px; height: 6px; border-top: 1px solid #5985ee; border-right: 1px solid #5985ee; transform: rotate(45deg); }
.api-flow-bridge > b { margin-top: 7px; color: var(--text-3); font-size: 8px; font-weight: 400; text-align: center; white-space: nowrap; }
.api-routing-core-block { min-width: 0; min-height: 112px; padding: 18px; display: flex; align-items: center; gap: 15px; border: 1px solid rgba(0,82,255,.42); border-radius: var(--radius-md); background: #101a2d; box-shadow: inset 0 0 0 1px rgba(82,125,226,.04); }
.api-routing-core-block > span { width: 52px; height: 52px; display: grid; place-items: center; flex: 0 0 52px; border: 1px solid rgba(79,123,228,.45); border-radius: var(--radius-md); background: #0d2b67; }
.api-routing-core-block img { width: 31px; height: 31px; object-fit: contain; }
.api-routing-core-block > div { min-width: 0; display: grid; gap: 5px; }
.api-routing-core-block small { color: #7299f2; font-size: 9px; }
.api-routing-core-block b { color: var(--text-1); font-size: 15px; font-weight: 500; }
.api-routing-core-block em { color: var(--text-3); font-size: 10px; font-style: normal; line-height: 1.4; }
.api-routing-facts { min-height: 78px; padding: 0 18px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-top: 1px solid var(--border); background: rgba(18,21,27,.78); }
.api-routing-facts > span { min-width: 0; padding: 14px 18px; display: grid; grid-template-columns: 7px minmax(0,1fr); column-gap: 9px; border-right: 1px solid var(--border); }
.api-routing-facts > span:first-child { padding-left: 0; }
.api-routing-facts > span:last-child { padding-right: 0; border-right: 0; }
.api-routing-facts i { width: 6px; height: 6px; margin-top: 5px; grid-row: 1 / 3; border-radius: 50%; background: var(--green); }
.api-routing-facts .planned i { background: #ffb733; }
.api-routing-facts b { color: var(--text-2); font-size: 11px; font-weight: 500; }
.api-routing-facts small { margin-top: 4px; color: var(--text-3); font-size: 10px; line-height: 1.4; }
.api-directory-head { margin-top: 30px; display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.api-directory-head > span { color: var(--text-3); font-size: 12px; }
.exchange-directory { margin-top: 13px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.exchange-card { min-width: 0; min-height: 230px; padding: 17px; display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.exchange-card.live { border-color: rgba(0,82,255,.3); }
.exchange-card.upcoming, .exchange-card.more { background: rgba(22,25,30,.72); }
.exchange-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.exchange-logo { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 38px; border: 1px solid var(--border-hi); border-radius: var(--radius-sm); color: var(--text-1); font-size: 10px; font-weight: 600; }
.exchange-logo.bybit { border-color: rgba(32,199,223,.32); background: rgba(32,199,223,.09); color: var(--exchange-bybit); }
.exchange-logo.bitunix { border-color: rgba(255,128,102,.32); background: rgba(255,128,102,.09); color: var(--exchange-bitunix); }
.exchange-logo.binance { border-color: rgba(245,190,43,.27); background: rgba(245,190,43,.08); color: #f5be2b; }
.exchange-logo.more { background: var(--surface-hi); color: var(--text-3); font-size: 20px; font-weight: 300; }
.exchange-availability { padding: 3px 6px; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-3); font-size: 9px; font-weight: 500; }
.exchange-availability.live { border-color: rgba(0,208,139,.25); background: var(--green-dim); color: var(--green); }
.exchange-card h2 { margin-top: 16px; color: var(--text-1); font-size: 17px; font-weight: 500; }
.exchange-card > p { min-height: 49px; margin-top: 8px; color: var(--text-3); font-size: 11px; line-height: 1.5; }
.exchange-card-status { margin-top: 13px; display: flex; align-items: center; gap: 7px; color: var(--text-3); font-size: 11px; }
.exchange-card-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); }
.exchange-card.live.connected .exchange-card-status { color: var(--green); }
.exchange-card.live.connected .exchange-card-status i { background: var(--green); box-shadow: 0 0 8px rgba(0,208,139,.32); }
.exchange-card > button { width: 100%; height: 34px; margin-top: auto; }
.exchange-card > button:disabled { opacity: .42; cursor: default; }
.api-connection-workspace { margin-top: 30px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.api-connection-workspace + .api-connection-workspace { margin-top: 14px; }
.api-workspace-head { min-height: 76px; padding: 17px 20px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--border); }
.api-workspace-title, .api-workspace-actions { display: flex; align-items: center; gap: 12px; }
.api-workspace-body { display: grid; grid-template-columns: minmax(0,.9fr) minmax(420px,1.1fr); }
.api-connection-overview { min-width: 0; min-height: 330px; padding: 24px 20px; border-right: 1px solid var(--border); }
.api-overview-label { color: var(--text-3); font-size: 11px; }
.api-connection-overview > h2 { margin-top: 8px; color: var(--text-1); font-size: 22px; font-weight: 500; }
.api-connection-overview > p:not(.api-overview-label) { max-width: 590px; min-height: 43px; margin-top: 9px; color: var(--text-3); font-size: 12px; line-height: 1.55; }
.api-connection-overview .api-security-grid { margin-top: 23px; }
.api-connection-overview .api-security-foot { padding-top: 14px; }
.api-security-foot > span { color: var(--text-3); font-size: 11px; line-height: 1.5; }
.api-credentials-form { min-width: 0; padding: 24px 20px; }
.api-form-intro { margin-bottom: 16px; }
.api-field { margin-top: 13px; display: grid; gap: 7px; }
.api-field > span { color: var(--text-2); font-size: 11px; }
.api-field input, .api-field select { width: 100%; height: 40px; padding: 0 11px; border: 1px solid var(--border); border-radius: var(--radius-sm); outline: 0; background: var(--surface-hi); color: var(--text-1); font-size: 12px; }
.api-field input:focus, .api-field select:focus { border-color: var(--blue); }
.api-credentials-form > .action-btn { height: 40px; margin-top: 18px; }
.field { margin-top: 13px; display: grid; grid-template-columns: 145px 1fr; align-items: center; gap: 12px; }
.field > span { color: var(--text-2); font-size: 12px; }
.field input, .field select {
  width: 100%;
  height: 38px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: 0;
  background: var(--surface-hi);
  color: var(--text-1);
  font-size: 12px;
}
.field input:focus, .field select:focus { border-color: var(--blue); }

.api-security-section { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); }
.api-security-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.api-security-head p { color: var(--text-1); font-size: 13px; font-weight: 500; }
.api-security-head div > span { display: block; margin-top: 4px; color: var(--text-3); font-size: 11px; }
.api-security-badge { padding: 5px 9px; border: 1px solid var(--border); border-radius: 20px; color: var(--text-3); font-size: 11px; white-space: nowrap; }
.api-security-badge.secure { border-color: rgba(0,208,139,.28); background: var(--green-dim); color: var(--green); }
.api-security-badge.warning, .api-security-badge.grace { border-color: rgba(255,174,31,.28); background: rgba(255,174,31,.08); color: #ffae1f; }
.api-security-badge.blocked { border-color: rgba(240,61,61,.3); background: rgba(240,61,61,.08); color: var(--red); }
.api-security-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.api-security-grid > div { min-width: 0; padding: 13px 14px; border-right: 1px solid var(--border); }
.api-security-grid > div:first-child { padding-left: 0; }
.api-security-grid > div:last-child { padding-right: 0; border-right: 0; }
.api-security-grid span { display: block; color: var(--text-3); font-size: 11px; }
.api-security-grid strong { display: block; margin-top: 6px; overflow: hidden; color: var(--text-2); font-size: 12px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.api-security-foot { min-height: 48px; padding-top: 13px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.api-security-foot p { color: var(--text-3); font-size: 12px; line-height: 1.5; }
.api-security-foot .div-btn { flex: 0 0 auto; }

/* API Hub connection cockpit */
.api-command-header { min-height: 142px; padding: 10px 4px 23px; }
.api-command-title > p:last-child { max-width: 650px; }
.api-command-status {
  min-width: 310px;
  padding: 14px 15px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg,rgba(24,28,35,.94),rgba(16,19,24,.94));
}
.api-command-status > i { margin-top: 0; }
.api-command-status > span { flex: 1; }
.api-command-status > strong { min-width: 52px; padding-left: 14px; border-left: 1px solid var(--border); color: var(--text-1); font-size: 13px; font-weight: 500; text-align: right; }
.api-trust-strip { margin-top: 18px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border: 1px solid var(--border); border-radius: var(--radius-md); background: rgba(17,20,25,.72); }
.api-trust-strip > span { min-width: 0; padding: 13px 16px; display: grid; grid-template-columns: 7px minmax(0,1fr); column-gap: 10px; border-right: 1px solid var(--border); }
.api-trust-strip > span:last-child { border-right: 0; }
.api-trust-strip i { width: 7px; height: 7px; margin-top: 4px; grid-row: 1 / 3; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px rgba(0,208,139,.25); }
.api-trust-strip i.automatic { background: #7299f2; box-shadow: 0 0 8px rgba(114,153,242,.25); }
.api-trust-strip i.isolated { background: #a888f7; box-shadow: 0 0 8px rgba(168,136,247,.25); }
.api-trust-strip b { color: var(--text-2); font-size: 11px; font-weight: 500; }
.api-trust-strip small { margin-top: 3px; overflow: hidden; color: var(--text-3); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.api-directory-head { margin-top: 27px; }
.exchange-directory { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.exchange-card {
  min-height: 228px;
  padding: 18px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1fr) 188px;
  grid-template-rows: auto auto 1fr auto;
  column-gap: 22px;
  overflow: hidden;
  background: linear-gradient(145deg,rgba(25,29,36,.94),rgba(17,20,25,.94));
  transition: border-color .18s ease,background .18s ease,transform .18s ease;
}
#bybitExchangeCard { border-color: rgba(32,199,223,.24); }
#bitunixExchangeCard { border-color: rgba(255,128,102,.24); }
.exchange-card::before { content: ""; position: absolute; top: 0; right: 0; left: 0; height: 2px; opacity: 0; background: var(--exchange-bybit); transition: opacity .18s ease; }
.exchange-card.bitunix-card::before { background: var(--exchange-bitunix); }
.exchange-card.active { border-color: rgba(32,199,223,.48); background: linear-gradient(145deg,rgba(32,199,223,.05),rgba(17,20,25,.96)); }
.exchange-card.bitunix-card.active { border-color: rgba(255,128,102,.48); background: linear-gradient(145deg,rgba(255,128,102,.05),rgba(17,20,25,.96)); }
.exchange-card.active::before { opacity: 1; }
.exchange-card-head { grid-column: 1; }
.exchange-card-copy { grid-column: 1; }
.exchange-card-copy h2 { margin-top: 15px; color: var(--text-1); font-size: 18px; font-weight: 500; }
.exchange-card-copy p { max-width: 440px; margin-top: 7px; color: var(--text-3); font-size: 11px; line-height: 1.5; }
.exchange-card-status { grid-column: 1; align-self: end; }
.exchange-card-metrics { grid-column: 2; grid-row: 1 / 4; display: grid; grid-template-columns: 1fr; align-content: center; border-left: 1px solid var(--border); }
.exchange-card-metrics > span { padding: 12px 0 12px 18px; border-bottom: 1px solid var(--border); }
.exchange-card-metrics > span:last-child { border-bottom: 0; }
.exchange-card-metrics small { display: block; color: var(--text-3); font-size: 9px; text-transform: uppercase; }
.exchange-card-metrics b { display: block; margin-top: 6px; overflow: hidden; color: var(--text-1); font-size: 13px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.exchange-card > button { grid-column: 1 / 3; height: 36px; margin-top: 16px; }
.exchange-card.active > button { border-color: rgba(32,199,223,.32); background: rgba(32,199,223,.07); color: var(--exchange-bybit); }
.exchange-card.bitunix-card.active > button { border-color: rgba(255,128,102,.32); background: rgba(255,128,102,.07); color: var(--exchange-bitunix); }
.exchange-logo.bitunix { border-color: rgba(255,128,102,.32); background: rgba(255,128,102,.09); color: var(--exchange-bitunix); }
.exchange-availability.bybit { border-color: rgba(32,199,223,.27); background: rgba(32,199,223,.07); color: var(--exchange-bybit); }
.exchange-availability.bitunix { border-color: rgba(255,128,102,.27); background: rgba(255,128,102,.07); color: var(--exchange-bitunix); }
.api-manager-shell { margin-top: 24px; padding: 0; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); background: rgba(15,18,22,.76); }
.api-manager-label { min-height: 46px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--border); background: rgba(25,29,36,.58); }
.api-manager-label span { color: var(--text-2); font-size: 10px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.api-manager-label small { color: var(--text-3); font-size: 10px; }
.api-connection-workspace { margin-top: 0; border: 0; border-radius: 0; background: transparent; }
.api-connection-workspace + .api-connection-workspace { margin-top: 0; }
.api-connection-workspace[hidden] { display: none; }
.api-workspace-head { min-height: 74px; padding: 15px 20px; }
.api-workspace-actions .danger-soft { color: var(--text-3); }
.api-progress { min-height: 50px; padding: 0 20px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: center; gap: 0; border-bottom: 1px solid var(--border); background: rgba(13,16,20,.54); }
.api-progress > span { position: relative; min-width: 0; display: flex; align-items: center; gap: 8px; color: var(--text-3); font-size: 10px; }
.api-progress > span:not(:last-child)::after { content: ""; height: 1px; position: absolute; right: 14px; left: 96px; background: var(--border-hi); }
.api-progress i { width: 22px; height: 22px; display: grid; place-items: center; flex: 0 0 22px; border: 1px solid var(--border-hi); border-radius: 50%; color: var(--text-3); font-size: 9px; font-style: normal; }
.api-progress b { font-weight: 400; }
.api-progress > span.active { color: var(--text-2); }
.api-progress > span.active i { border-color: rgba(114,153,242,.5); background: rgba(0,82,255,.12); color: #8fb0ff; }
.api-progress > span.complete { color: var(--green); }
.api-progress > span.complete i { border-color: rgba(0,208,139,.35); background: var(--green-dim); color: var(--green); }
.api-progress > span.complete:not(:last-child)::after { background: rgba(0,208,139,.28); }
.api-workspace-body { grid-template-columns: minmax(0,.92fr) minmax(390px,1.08fr); }
.api-connection-overview { min-height: 306px; padding: 25px 22px; }
.api-connection-overview > h2 { font-size: 20px; }
.api-credentials-form { padding: 25px 22px; background: rgba(23,27,33,.4); }
.api-field input, .api-field select { height: 42px; background: rgba(12,15,19,.78); }
.api-credentials-form > .action-btn { height: 42px; }
.api-connection-workspace[data-api-workspace="bybit"] .api-credentials-form > .action-btn.primary { border-color: rgba(32,199,223,.36); background: #159db1; color: #fff; }
.api-connection-workspace[data-api-workspace="bybit"] .api-credentials-form > .action-btn.primary:hover:not(:disabled) { background: #1db0c6; }
.api-connection-workspace[data-api-workspace="bitunix"] .api-credentials-form > .action-btn.primary { border-color: rgba(255,128,102,.4); background: #d85f48; color: #fff; }
.api-connection-workspace[data-api-workspace="bitunix"] .api-credentials-form > .action-btn.primary:hover:not(:disabled) { background: #e66f58; }
.api-help-details { border-top: 1px solid var(--border); background: rgba(13,16,20,.46); }
.api-help-details summary, .api-roadmap-details summary { padding: 15px 20px; position: relative; list-style: none; color: var(--text-2); font-size: 11px; cursor: pointer; }
.api-help-details summary::-webkit-details-marker, .api-roadmap-details summary::-webkit-details-marker { display: none; }
.api-help-details summary::after, .api-roadmap-details summary::after { content: "+"; position: absolute; top: 50%; right: 20px; color: var(--text-3); font-size: 17px; font-weight: 300; transform: translateY(-50%); }
.api-help-details[open] summary::after, .api-roadmap-details[open] summary::after { content: "−"; }
.api-help-details > div { padding: 0 20px 16px; display: grid; gap: 5px; color: var(--text-3); font-size: 11px; line-height: 1.55; }
.api-help-details > div span { color: var(--text-3); }
.api-roadmap-details { margin-top: 14px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-md); background: rgba(17,20,25,.7); }
.api-roadmap-details > div { padding: 0 20px 16px; display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 12px; }
.api-roadmap-details p { display: grid; gap: 4px; }
.api-roadmap-details b { color: var(--text-2); font-size: 11px; font-weight: 500; }
.api-roadmap-details small { color: var(--text-3); font-size: 10px; line-height: 1.5; }
.api-roadmap-details em { padding: 4px 7px; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-3); font-size: 9px; font-style: normal; }

.profile-summary {
  min-height: 86px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: var(--radius-lg);
}
.profile-summary-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  border-radius: 50%;
  background: var(--blue-dim);
  color: #78a0ff;
  overflow: hidden;
}
.profile-summary-icon img { width: 100%; height: 100%; display: none; object-fit: cover; }
.profile-summary-icon img.visible { display: block; }
.profile-summary-icon svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.profile-summary-name { color: var(--text-1); font-size: 16px; font-weight: 600; }
.profile-summary-meta { margin-top: 4px; color: var(--text-3); font-size: 12px; }
.profile-verified {
  margin-left: auto;
  padding: 5px 9px;
  border-radius: 20px;
  background: var(--surface-hi);
  color: var(--text-3);
  font-size: 12px;
  font-weight: 500;
}
.profile-verified.verified { background: var(--green-dim); color: var(--green); }
.profile-avatar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.profile-avatar-actions + .profile-verified { margin-left: 0; }
.profile-verify-action { margin-left: auto; }
.profile-avatar-actions + .profile-verify-action { margin-left: 0; }
.profile-card { min-width: 0; }
.profile-form { display: block; }
.profile-input-wrap { min-width: 0; display: grid; gap: 6px; }
.profile-field-status { min-height: 15px; color: var(--text-3); font-size: 12px; }
.profile-field-status.available { color: var(--green); }
.profile-field-status.unavailable { color: var(--red); }
.profile-action-row { margin-top: 18px; display: flex; justify-content: flex-end; }
.profile-action-row .action-btn { min-width: 180px; }
.profile-section-divider { height: 1px; margin: 24px 0 4px; background: var(--border); }
.profile-hint { margin: 14px 0 0 157px; color: var(--text-3); font-size: 12px; line-height: 1.5; }
.profile-security-grid { margin-top: 16px; }
.security-card { min-height: 220px; display: flex; flex-direction: column; }
.security-copy { max-width: 560px; color: var(--text-3); font-size: 13px; line-height: 1.65; }
.security-status { padding: 5px 9px; border: 1px solid var(--border); border-radius: 20px; color: var(--text-3); font-size: 12px; white-space: nowrap; }
.security-status.active { border-color: rgba(0,208,139,.28); background: var(--green-dim); color: var(--green); }
.security-status.required { border-color: rgba(255,174,31,.28); background: rgba(255,174,31,.08); color: #ffae1f; }
.security-card-actions { margin-top: auto; padding-top: 18px; display: flex; justify-content: flex-end; }
.session-list { min-height: 116px; display: grid; align-content: start; }
.session-row { min-height: 57px; padding: 9px 0; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 12px; border-top: 1px solid var(--border); }
.session-row:first-child { border-top: 0; }
.session-device { min-width: 0; }
.session-device strong { display: flex; align-items: center; gap: 7px; overflow: hidden; color: var(--text-2); font-size: 13px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.session-device small { display: block; margin-top: 4px; color: var(--text-3); font-size: 11px; line-height: 1.4; }
.session-current { padding: 2px 6px; border-radius: 10px; background: var(--green-dim); color: var(--green); font-size: 10px; font-weight: 500; }
.session-revoke { height: 30px; padding: 0 9px; border: 1px solid rgba(240,61,61,.3); border-radius: var(--radius-sm); background: transparent; color: var(--red); font-size: 11px; }
.security-dialog { width: min(560px,100%); }
.security-dialog-message { min-height: 18px; color: var(--red); font-size: 12px; line-height: 1.5; }
.two-factor-step { display: grid; gap: 20px; }
.two-factor-step .moderation-dialog-actions { margin-top: 2px; }
.totp-setup { padding: 14px; display: grid; grid-template-columns: 152px minmax(0,1fr); align-items: center; gap: 18px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg); }
.totp-setup img { width: 152px; height: 152px; padding: 7px; border-radius: var(--radius-sm); background: #fff; }
.totp-setup p { color: var(--text-2); font-size: 13px; line-height: 1.55; }
.totp-setup span { display: block; margin-top: 15px; color: var(--text-3); font-size: 11px; }
.totp-setup code { display: block; margin-top: 5px; overflow-wrap: anywhere; color: #8aabff; font-family: ui-monospace,SFMono-Regular,Consolas,monospace; font-size: 13px; line-height: 1.5; }
.recovery-intro, .security-warning { color: var(--text-2); font-size: 13px; line-height: 1.6; }
.security-warning { padding: 12px 14px; border-left: 2px solid #ffae1f; background: rgba(255,174,31,.055); }
.recovery-code-grid { padding: 14px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px 18px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg); }
.recovery-code-grid code { color: var(--text-1); font-family: ui-monospace,SFMono-Regular,Consolas,monospace; font-size: 13px; text-align: center; }
.admin-approvals { padding: 20px; border-radius: var(--radius-lg); }
.admin-approvals .settings-head { margin-bottom: 12px; }
.admin-telemetry { margin-top: 16px; overflow: hidden; border-radius: var(--radius-lg); }
.admin-telemetry-head { min-height: 64px; padding: 12px 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--border); }
.admin-telemetry-status { padding: 5px 9px; display: flex; align-items: center; gap: 6px; border: 1px solid rgba(18,184,116,.3); border-radius: var(--radius-sm); background: rgba(18,184,116,.07); color: var(--green); font-size: 12px; white-space: nowrap; }
.admin-telemetry-status i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.admin-telemetry-status.offline { border-color: var(--border); background: var(--surface-hi); color: var(--text-3); }
.admin-telemetry-grid { display: grid; grid-template-columns: 80px 120px 130px minmax(150px,1fr) minmax(150px,1fr); }
.admin-telemetry-grid > div { min-width: 0; padding: 13px 18px; border-right: 1px solid var(--border); }
.admin-telemetry-grid > div:last-child { border-right: 0; }
.admin-telemetry-grid small { display: block; color: var(--text-3); font-size: 12px; }
.admin-telemetry-grid b { display: block; margin-top: 5px; overflow: hidden; color: var(--text-2); font-size: 12px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.admin-shadow-panel { border-top: 1px solid var(--border); background: rgba(10,14,20,.24); }
.admin-shadow-head { min-height: 58px; padding: 11px 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.admin-shadow-head > div { display: grid; gap: 4px; }
.admin-shadow-head b { color: var(--text-1); font-size: 13px; font-weight: 600; }
.admin-shadow-head small { color: var(--text-3); font-size: 11px; }
.admin-shadow-head > span { padding: 5px 9px; border: 1px solid rgba(129,92,246,.28); border-radius: var(--radius-sm); background: rgba(129,92,246,.07); color: #a98cff; font-size: 11px; white-space: nowrap; }
.admin-shadow-head > span.ready { border-color: rgba(18,184,116,.3); background: rgba(18,184,116,.07); color: var(--green); }
.admin-shadow-head > span.warning { border-color: rgba(244,179,64,.3); background: rgba(244,179,64,.07); color: #f4b340; }
.admin-shadow-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); border-top: 1px solid var(--border); }
.admin-shadow-grid > div { min-width: 0; padding: 12px 18px; border-right: 1px solid var(--border); }
.admin-shadow-grid > div:last-child { border-right: 0; }
.admin-shadow-grid small { display: block; color: var(--text-3); font-size: 11px; }
.admin-shadow-grid b { display: block; margin-top: 5px; color: var(--text-2); font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.admin-market-cache-panel { background: linear-gradient(135deg,rgba(0,82,255,.035),rgba(6,12,20,.3)); }
.admin-market-cache-grid { grid-template-columns: repeat(6,minmax(0,1fr)); }
.admin-market-cache-paths { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border-top: 1px solid var(--border); }
.admin-market-cache-paths > span { min-width: 0; padding: 10px 18px; display: grid; gap: 3px; border-right: 1px solid var(--border); }
.admin-market-cache-paths > span:last-child { border-right: 0; }
.admin-market-cache-paths b { color: var(--text-2); font-size: 10px; font-weight: 600; }
.admin-market-cache-paths small { color: var(--text-3); font-size: 9px; }
.admin-market-cache-paths em { overflow: hidden; color: #83a7ff; font-size: 9px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.admin-shadow-strategies { border-top: 1px solid var(--border); }
.admin-shadow-strategy { min-height: 42px; padding: 8px 18px; display: grid; grid-template-columns: minmax(190px,1.2fr) minmax(210px,1fr) 100px 110px; align-items: center; gap: 16px; border-bottom: 1px solid var(--border); color: var(--text-3); font-size: 11px; font-variant-numeric: tabular-nums; }
.admin-shadow-strategy:last-child { border-bottom: 0; }
.admin-shadow-strategy > span:first-child { display: flex; align-items: baseline; gap: 8px; }
.admin-shadow-strategy > span:first-child b { color: var(--text-2); font-size: 12px; font-weight: 500; }
.admin-shadow-strategy > span:first-child small { color: var(--text-3); font-size: 10px; }
.admin-shadow-strategy strong { justify-self: end; font-size: 12px; font-weight: 600; }
.admin-telemetry-note { padding: 9px 18px; border-top: 1px solid var(--border); color: var(--text-3); font-size: 12px; line-height: 1.5; }
.admin-market-list-head { margin-bottom: 8px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.admin-market-list-head b { color: var(--text-2); font-size: 11px; font-weight: 600; }
.admin-market-list-head small { color: var(--text-3); font-size: 9px; }
.admin-trailing-research-panel { background: linear-gradient(135deg,rgba(5,18,34,.58),rgba(15,13,22,.42)); }
.admin-trailing-research-head { border-bottom: 1px solid rgba(0,82,255,.15); }
.admin-trailing-comparison-grid { padding: 12px 18px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; border-top: 1px solid var(--border); }
.admin-trailing-comparison-grid article { min-width: 0; padding: 12px; border: 1px solid var(--border); border-radius: 9px; background: rgba(8,12,18,.55); }
.admin-trailing-comparison-grid article.focus { border-color: rgba(0,82,255,.26); background: rgba(0,82,255,.055); }
.admin-trailing-comparison-grid small, .admin-trailing-excursion-grid small { display: block; color: var(--text-3); font-size: 10px; }
.admin-trailing-comparison-grid strong { margin-top: 7px; display: block; color: var(--text-1); font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; }
.admin-trailing-comparison-grid article > span { margin-top: 4px; display: block; overflow: hidden; color: var(--text-3); font-size: 9px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.admin-trailing-excursion-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border-top: 1px solid var(--border); background: rgba(4,8,14,.18); }
.admin-trailing-excursion-grid > div { min-width: 0; padding: 11px 18px; border-right: 1px solid var(--border); }
.admin-trailing-excursion-grid > div:last-child { border-right: 0; }
.admin-trailing-excursion-grid b { margin-top: 5px; display: block; color: var(--text-2); font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.admin-trailing-strategies { border-top: 1px solid var(--border); }
.admin-trailing-strategy-row { min-height: 50px; padding: 9px 18px; display: grid; grid-template-columns: minmax(190px,1fr) minmax(120px,.55fr) minmax(120px,.55fr) minmax(120px,.55fr); align-items: center; gap: 16px; border-bottom: 1px solid rgba(255,255,255,.04); font-variant-numeric: tabular-nums; }
.admin-trailing-strategy-row:last-child { border-bottom: 0; }
.admin-trailing-strategy-row > span { min-width: 0; display: grid; gap: 3px; }
.admin-trailing-strategy-row > span:first-child b { color: var(--text-2); font-size: 11px; font-weight: 600; }
.admin-trailing-strategy-row small { color: var(--text-3); font-size: 9px; }
.admin-trailing-strategy-row span > b, .admin-trailing-strategy-row strong { color: var(--text-2); font-size: 11px; font-weight: 600; }
.admin-trailing-strategy-row strong { justify-self: end; }
.admin-trailing-empty { padding: 12px 18px; color: var(--text-3); font-size: 11px; }
.admin-trailing-insight-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border-top: 1px solid var(--border); }
.admin-trailing-insight-grid > div { min-width: 0; padding: 13px 18px; }
.admin-trailing-insight-grid > div + div { border-left: 1px solid var(--border); }
.admin-trailing-trade-list { display: grid; }
.admin-trailing-trade-list > span { min-width: 0; min-height: 36px; display: grid; grid-template-columns: 70px minmax(140px,1fr) minmax(125px,auto) minmax(80px,auto); align-items: center; gap: 9px; border-bottom: 1px solid rgba(255,255,255,.035); color: var(--text-3); font-size: 9px; }
.admin-trailing-trade-list > span:last-child { border-bottom: 0; }
.admin-trailing-trade-list b { overflow: hidden; color: var(--text-2); font-size: 10px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.admin-trailing-trade-list small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-trailing-trade-list em { color: var(--text-2); font-size: 9px; font-style: normal; font-variant-numeric: tabular-nums; white-space: nowrap; }
.admin-trailing-trade-list strong { justify-self: end; font-size: 10px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.admin-trailing-research-foot { min-height: 40px; padding: 10px 18px; display: flex; align-items: center; border-top: 1px solid var(--border); color: var(--text-3); font-size: 10px; line-height: 1.5; }
.admin-maxhold-shadow { border-top: 1px solid var(--border); background: rgba(3,9,17,.28); }
.admin-maxhold-head { min-height: 58px; padding: 11px 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.admin-maxhold-head > div { min-width: 0; display: grid; gap: 3px; }
.admin-maxhold-head b { color: var(--text-1); font-size: 12px; font-weight: 600; }
.admin-maxhold-head small { color: var(--text-3); font-size: 10px; line-height: 1.45; }
.admin-maxhold-head > span { flex: 0 0 auto; padding: 5px 8px; border: 1px solid var(--border); border-radius: 7px; color: var(--text-3); font-size: 9px; }
.admin-maxhold-head > span.ready { border-color: rgba(18,184,116,.24); background: rgba(18,184,116,.05); color: var(--green); }
.admin-maxhold-head > span.warning { border-color: rgba(244,159,69,.25); background: rgba(244,159,69,.05); color: #f49f45; }
.admin-maxhold-meta { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.admin-maxhold-meta > div { min-width: 0; padding: 10px 18px; border-right: 1px solid var(--border); }
.admin-maxhold-meta > div:last-child { border-right: 0; }
.admin-maxhold-meta small { display: block; color: var(--text-3); font-size: 9px; }
.admin-maxhold-meta b { margin-top: 4px; display: block; overflow: hidden; color: var(--text-2); font-size: 11px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.admin-maxhold-strategies { display: grid; }
.admin-maxhold-strategy { padding: 14px 18px 16px; border-bottom: 1px solid var(--border); }
.admin-maxhold-strategy:last-child { border-bottom: 0; }
.admin-maxhold-strategy-head { margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.admin-maxhold-strategy-head > span { min-width: 0; display: grid; gap: 2px; }
.admin-maxhold-strategy-head b { color: var(--text-2); font-size: 11px; font-weight: 600; }
.admin-maxhold-strategy-head small { color: var(--text-3); font-size: 9px; }
.admin-maxhold-strategy-head em { padding: 4px 7px; border: 1px solid rgba(0,82,255,.2); border-radius: 6px; background: rgba(0,82,255,.045); color: #83a7ff; font-size: 9px; font-style: normal; white-space: nowrap; }
.admin-maxhold-strategy.historical .admin-maxhold-strategy-head em { border-color: var(--border); background: rgba(255,255,255,.025); color: var(--text-3); }
.admin-maxhold-variant-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.admin-maxhold-variant { min-width: 0; padding: 11px; border: 1px solid var(--border); border-radius: 9px; background: rgba(8,12,18,.5); }
.admin-maxhold-variant.reference { border-color: rgba(0,82,255,.24); background: rgba(0,82,255,.045); }
.admin-maxhold-variant > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.admin-maxhold-variant > div:first-child b { color: var(--text-2); font-size: 10px; font-weight: 600; }
.admin-maxhold-variant > div:first-child span { color: var(--text-3); font-size: 8px; text-transform: uppercase; letter-spacing: .04em; }
.admin-maxhold-variant > strong { margin-top: 9px; display: block; color: var(--text-1); font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.admin-maxhold-variant > small { margin-top: 3px; display: block; overflow: hidden; color: var(--text-3); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.admin-maxhold-variant dl { margin: 10px 0 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px 9px; }
.admin-maxhold-variant dl div { min-width: 0; display: grid; gap: 2px; }
.admin-maxhold-variant dt { color: var(--text-3); font-size: 8px; }
.admin-maxhold-variant dd { margin: 0; color: var(--text-2); font-size: 9px; font-variant-numeric: tabular-nums; }
.admin-maxhold-foot { min-height: 38px; padding: 9px 18px; display: flex; align-items: center; border-top: 1px solid var(--border); color: var(--text-3); font-size: 9px; line-height: 1.5; }
.admin-time-window-shadow { background: rgba(5,11,19,.38); }
.admin-astra-research-panel { border-color: rgba(237,92,174,.2); }
.admin-astra-research-panel .admin-shadow-head b { color: #ed5cae; }
.admin-astra-research-panel .admin-maxhold-strategy-head em { border-color: var(--border); background: transparent; color: var(--text-2); }
.admin-astra-note, .admin-astra-management { margin: 12px 18px; color: var(--text-3); font-size: 11px; line-height: 1.6; }
.admin-astra-management { margin: 10px 0; }
.admin-astra-phase h3 { margin: 18px 18px 0; color: var(--text-2); font-size: 12px; }
.admin-astra-table-wrap { overflow-x: auto; }
.admin-astra-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.admin-astra-table th, .admin-astra-table td { padding: 9px 8px; text-align: right; border-bottom: 1px solid var(--border); white-space: nowrap; }
.admin-astra-table th:first-child { text-align: left; white-space: normal; min-width: 180px; }
.admin-astra-table thead th { color: var(--text-3); font-weight: 500; }
.admin-astra-table tbody th { color: var(--text-2); font-weight: 500; }
.admin-astra-table small { display: block; color: var(--text-3); font-size: 10px; font-weight: 400; }
.admin-astra-details { margin-top: 12px; }
.admin-astra-details summary { cursor: pointer; color: var(--text-2); font-size: 11px; padding: 7px 0; }
@media (max-width: 640px) {
  .admin-astra-research-panel .admin-maxhold-strategy-head { align-items: flex-start; flex-direction: column; }
}
.admin-time-window-variant-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.admin-time-window-variant > div:first-child { align-items: flex-start; }
.admin-time-window-variant > div:first-child b { max-width: calc(100% - 48px); line-height: 1.35; }
.admin-time-window-variant > small { white-space: normal; line-height: 1.35; }
@media (max-width: 900px) {
  .admin-trailing-comparison-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .admin-trailing-insight-grid { grid-template-columns: 1fr; }
  .admin-trailing-insight-grid > div + div { border-top: 1px solid var(--border); border-left: 0; }
  .admin-trailing-strategy-row { grid-template-columns: minmax(160px,1fr) repeat(3,minmax(105px,.55fr)); }
  .admin-maxhold-variant-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .admin-time-window-variant-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .admin-trailing-comparison-grid, .admin-trailing-excursion-grid { grid-template-columns: 1fr; }
  .admin-trailing-excursion-grid > div { border-right: 0; border-bottom: 1px solid var(--border); }
  .admin-trailing-excursion-grid > div:last-child { border-bottom: 0; }
  .admin-trailing-strategy-row { grid-template-columns: 1fr 1fr; }
  .admin-trailing-strategy-row strong { justify-self: start; }
  .admin-trailing-trade-list > span { grid-template-columns: 65px minmax(0,1fr); padding: 7px 0; }
  .admin-trailing-trade-list em, .admin-trailing-trade-list strong { justify-self: start; }
  .admin-maxhold-head { align-items: flex-start; }
  .admin-maxhold-meta { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .admin-maxhold-meta > div:nth-child(2) { border-right: 0; }
  .admin-maxhold-meta > div:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .admin-maxhold-variant-grid { grid-template-columns: 1fr; }
  .admin-time-window-variant-grid { grid-template-columns: 1fr; }
  .admin-market-cache-paths { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .admin-market-cache-paths > span:nth-child(2n) { border-right: 0; }
  .admin-market-cache-paths > span:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
}
.admin-moderation { margin-top: 16px; overflow: hidden; border-radius: var(--radius-lg); }
.admin-moderation-head { min-height: 70px; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--border); }
.admin-moderation-tools { display: flex; align-items: flex-end; gap: 10px; }
.admin-moderation-tools label { min-width: 128px; display: grid; gap: 5px; }
.admin-moderation-tools label > span { color: var(--text-3); font-size: 12px; }
.admin-moderation-tools select { width: 100%; height: 36px; padding: 0 30px 0 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); outline: 0; background: var(--surface-hi); color: var(--text-2); font-size: 12px; }
.admin-report-list { display: grid; }
.admin-report-card { padding: 16px 18px; border-bottom: 1px solid var(--border); }
.admin-report-card:last-child { border-bottom: 0; }
.admin-report-card-head, .admin-report-card-head > div, .admin-report-meta, .admin-report-card-foot, .admin-report-actions { display: flex; align-items: center; gap: 9px; }
.admin-report-card-head { justify-content: space-between; }
.admin-report-card-head b { color: var(--text-2); font-size: 12px; font-weight: 500; }
.admin-report-type, .admin-report-status, .admin-target-state { padding: 4px 7px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-hi); color: var(--text-3); font-size: 12px; font-weight: 500; }
.admin-report-status.pending { border-color: rgba(244,189,74,.28); background: rgba(244,189,74,.07); color: var(--crowd); }
.admin-report-status.reviewed { border-color: rgba(0,82,255,.3); background: var(--blue-dim); color: #82a5ff; }
.admin-report-status.actioned { border-color: rgba(5,177,105,.28); background: var(--green-dim); color: var(--green); }
.admin-report-status.dismissed { color: var(--text-3); }
.admin-report-meta { margin-top: 8px; flex-wrap: wrap; color: var(--text-3); font-size: 12px; }
.admin-report-meta span + span::before { content: "·"; margin-right: 9px; color: var(--border-hi); }
.admin-report-meta b { color: var(--text-2); font-weight: 500; }
.admin-report-target { position: relative; margin-top: 13px; padding: 12px 14px; display: grid; grid-template-columns: 180px minmax(0,1fr); align-items: center; gap: 18px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: rgba(11,14,19,.52); }
.admin-report-target > div { min-width: 0; display: grid; gap: 3px; }
.admin-report-target small, .admin-report-note > span { color: var(--text-3); font-size: 12px; }
.admin-report-target b { overflow: hidden; color: var(--text-1); font-size: 12px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.admin-report-target > div > span { color: var(--text-3); font-size: 12px; }
.admin-report-target blockquote, .admin-report-target > p { color: var(--text-2); font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.admin-report-target.lead { grid-template-columns: 180px minmax(0,1fr) auto; }
.admin-target-state.active { border-color: rgba(5,177,105,.24); color: var(--green); }
.admin-target-state.blocked { border-color: rgba(240,61,61,.26); background: var(--red-dim); color: var(--red); }
.admin-report-details { margin-top: 10px; display: grid; gap: 4px; color: var(--text-2); font-size: 12px; line-height: 1.55; }
.admin-report-details b { color: var(--text-3); font-size: 12px; font-weight: 500; }
.admin-report-note { margin-top: 11px; display: grid; gap: 5px; }
.admin-report-note textarea { width: 100%; min-height: 72px; padding: 11px 12px; resize: vertical; border: 1px solid var(--border); border-radius: var(--radius-sm); outline: 0; background: var(--surface-hi); color: var(--text-1); font: inherit; font-size: 12px; line-height: 1.55; }
.admin-report-note textarea:focus { border-color: var(--blue); }
.admin-report-card-foot { min-height: 40px; margin-top: 10px; justify-content: space-between; }
.admin-report-card-foot > div:first-child { color: var(--text-3); font-size: 12px; }
.admin-report-actions { justify-content: flex-end; flex-wrap: wrap; }
.admin-report-actions .div-btn, .admin-report-actions .action-btn { height: 34px; padding: 0 12px; font-size: 12px; font-weight: 500; }
.admin-report-actions .action-btn.danger-soft { border-color: rgba(240,61,61,.3); background: var(--red-dim); color: var(--red); }
.admin-report-actions .action-btn.secondary { background: var(--surface-hi); color: var(--text-2); }
.admin-report-unavailable { color: var(--text-3); font-size: 12px; }
.pending-count {
  padding: 4px 9px;
  border-radius: 20px;
  background: var(--surface-hi);
  color: var(--text-2);
  font-size: 12px;
}
.approval-row {
  min-height: 62px;
  padding: 11px 0;
  display: grid;
  grid-template-columns: minmax(130px, 0.8fr) minmax(180px, 1.2fr) 120px auto;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--border);
}
.approval-user { min-width: 0; }
.approval-name { overflow: hidden; color: var(--text-1); font-size: 13px; font-weight: 600; text-overflow: ellipsis; }
.approval-verification { margin-top: 3px; color: var(--red); font-size: 11px; }
.approval-verification.verified { color: var(--green); }
.approval-email, .approval-date { overflow: hidden; color: var(--text-3); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.approval-actions { display: flex; justify-content: flex-end; gap: 7px; }
.approval-actions .action-btn { height: 34px; padding: 0 12px; font-size: 12px; }
.approval-actions .action-btn.secondary { background: transparent; color: var(--text-2); }
.admin-users-table { overflow: hidden; border-radius: var(--radius-lg); }
.admin-users-head, .admin-user-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(180px, 1.25fr) 82px 105px 80px 92px;
  align-items: center;
  gap: 14px;
}
.admin-users-head {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--text-3);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
}
.admin-user-row { min-height: 60px; padding: 10px 18px; border-bottom: 1px solid var(--border); }
.admin-user-row:last-child { border-bottom: 0; }
.admin-user-row:hover { background: rgba(255,255,255,0.02); }
.admin-user-main { min-width: 0; }
.admin-user-name { overflow: hidden; color: var(--text-1); font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.admin-user-id { margin-top: 3px; color: var(--text-3); font-size: 12px; }
.admin-user-cell { overflow: hidden; color: var(--text-2); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.admin-role, .admin-state {
  width: fit-content;
  padding: 4px 7px;
  border-radius: 5px;
  background: var(--surface-hi);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 500;
}
.admin-role.admin { background: var(--blue-dim); color: #78a0ff; }
.admin-state.approved { background: var(--green-dim); color: var(--green); }
.admin-state.blocked { background: var(--red-dim); color: var(--red); }
.admin-bot-state { display: flex; align-items: center; gap: 6px; color: var(--text-3); font-size: 12px; }
.admin-bot-state.running { color: var(--green); }
.admin-user-row .div-btn { justify-self: end; }
.admin-user-editor { width: 100%; }
.admin-editor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.admin-status-toggle { margin-top: 20px; }
.admin-access-section { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); }
.admin-access-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.admin-access-toggle {
  min-height: 66px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-hi);
}

.community-header { align-items: flex-end; }
.community-welcome-hero { position: relative; isolation: isolate; min-height: 535px; overflow: hidden; border: 1px solid rgba(125,152,255,.18); border-radius: 22px; background: #0c1018; box-shadow: 0 28px 80px rgba(0,0,0,.28); }
.community-hero-image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.community-hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,rgba(8,11,17,.99) 0%,rgba(8,11,17,.94) 30%,rgba(8,11,17,.54) 54%,rgba(8,11,17,.05) 78%),linear-gradient(0deg,rgba(8,11,17,.78) 0%,transparent 38%); }
.community-hero-copy { width: min(720px,62%); min-height: 535px; padding: 58px 58px 42px; display: flex; flex-direction: column; justify-content: center; }
.community-section-kicker { color: #86a4ff; font-size: 11px; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; }
.community-hero-copy h1 { max-width: 650px; color: #f6f8ff; font-size: clamp(42px,4.1vw,64px); font-weight: 520; letter-spacing: -.045em; line-height: .98; }
.community-hero-copy h1 em { color: #91a9ff; font-style: normal; }
.community-hero-copy > p { max-width: 620px; margin-top: 22px; color: #aeb8cc; font-size: 15px; line-height: 1.72; }
.community-hero-directory { width: min(550px,100%); margin-top: 27px; overflow: hidden; display: grid; border: 1px solid rgba(159,176,222,.18); border-radius: 14px; background: rgba(12,16,25,.68); box-shadow: 0 16px 42px rgba(0,0,0,.18); backdrop-filter: blur(12px); }
.community-hero-destination { min-width: 0; padding: 13px 15px; display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 13px; border: 0; border-bottom: 1px solid rgba(255,255,255,.075); background: transparent; color: #eef2ff; text-align: left; transition: background 160ms ease,color 160ms ease; }
.community-hero-destination:last-child { border-bottom: 0; }
.community-hero-destination:hover { background: rgba(124,148,231,.1); color: #fff; }
.community-hero-destination > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.community-hero-destination b { font-size: 13px; font-weight: 620; letter-spacing: -.01em; }
.community-hero-destination small { overflow: hidden; color: #8995aa; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.community-hero-destination > i { color: #8398da; font-size: 18px; font-style: normal; transition: transform 160ms ease,color 160ms ease; }
.community-hero-destination:hover > i { color: #fff; transform: translateX(3px); }
.community-destination-icon { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(104,137,255,.24); border-radius: 10px; background: rgba(63,101,238,.1); color: #87a1ff; }
.community-hero-destination.traders .community-destination-icon { border-color: rgba(76,211,185,.22); background: rgba(52,190,167,.09); color: #69d8c3; }
.community-hero-destination.vault .community-destination-icon,
.community-hero-destination.traders .community-destination-icon {
  border: 0;
  background: transparent;
}
.community-destination-icon svg, .community-destination-icon img { width: 19px; height: 19px; display: block; }
.community-destination-icon svg { stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.community-hero-proof { width: min(720px,calc(100vw - 120px)); margin-top: 42px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border-top: 1px solid rgba(255,255,255,.1); }
.community-hero-proof > span { min-width: 0; padding: 17px 16px 0; display: grid; gap: 4px; border-right: 1px solid rgba(255,255,255,.08); }
.community-hero-proof > span:first-child { padding-left: 0; }
.community-hero-proof > span:last-child { border-right: 0; }
.community-hero-proof b { color: #f6f8ff; font-size: 20px; font-weight: 560; font-variant-numeric: tabular-nums; }
.community-hero-proof small { overflow: hidden; color: #7f8aa1; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.community-intro { margin: 56px 0 20px; display: grid; grid-template-columns: minmax(0,1fr) minmax(300px,.85fr); align-items: end; gap: 60px; }
.community-intro h2 { max-width: 680px; margin-top: 8px; color: var(--text-1); font-size: clamp(28px,3vw,42px); font-weight: 520; letter-spacing: -.035em; line-height: 1.08; }
.community-intro > p { padding-bottom: 3px; color: var(--text-2); font-size: 14px; line-height: 1.75; }
.community-feature-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.community-feature-card { position: relative; min-height: 415px; padding: 28px; overflow: hidden; display: flex; flex-direction: column; border: 1px solid rgba(130,151,196,.16); border-radius: 18px; background: linear-gradient(145deg,rgba(27,33,46,.98),rgba(17,21,29,.98)); transition: transform 180ms ease,border-color 180ms ease,box-shadow 180ms ease; }
.community-feature-card::before { content: ""; position: absolute; top: -140px; right: -120px; width: 330px; height: 330px; border-radius: 50%; background: radial-gradient(circle,rgba(100,128,255,.15),transparent 70%); pointer-events: none; }
.community-feature-card.copy-trading::before { background: radial-gradient(circle,rgba(62,207,185,.12),transparent 70%); }
.community-feature-card:hover { border-color: rgba(132,160,255,.32); box-shadow: 0 20px 48px rgba(0,0,0,.2); transform: translateY(-2px); }
.community-feature-card.upcoming { min-height: 265px; grid-column: 1 / -1; display: grid; grid-template-columns: 74px minmax(0,1fr) minmax(280px,.7fr); align-items: center; gap: 24px; background: linear-gradient(110deg,rgba(24,28,38,.95),rgba(17,21,28,.98)); }
.community-feature-card.upcoming::before { top: -210px; right: 5%; width: 460px; height: 460px; background: radial-gradient(circle,rgba(202,118,255,.1),transparent 68%); }
.community-feature-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.community-feature-icon { width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid rgba(126,153,255,.26); border-radius: 14px; background: rgba(81,107,216,.12); color: #91a9ff; box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.community-feature-card.copy-trading .community-feature-icon { border-color: rgba(78,210,187,.23); background: rgba(78,210,187,.09); color: #70ddca; }
.community-feature-card.loadouts .community-feature-icon,
.community-feature-card.copy-trading .community-feature-icon {
  border: 0;
  background: transparent;
  box-shadow: none;
}
.community-feature-card.upcoming .community-feature-icon { border-color: rgba(202,118,255,.2); background: rgba(202,118,255,.08); color: #d19aff; }
.community-feature-icon svg, .community-feature-icon img { width: 24px; height: 24px; display: block; }
.community-feature-icon svg { stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.community-feature-status { padding: 5px 8px; border: 1px solid rgba(104,227,189,.2); border-radius: 999px; background: rgba(104,227,189,.08); color: #75dfbf; font-size: 10px; font-weight: 650; letter-spacing: .09em; }
.community-feature-status.muted { border-color: rgba(202,118,255,.2); background: rgba(202,118,255,.07); color: #c993f7; }
.community-feature-copy { position: relative; z-index: 1; margin-top: 46px; }
.community-feature-copy h2 { max-width: 530px; margin-top: 9px; color: var(--text-1); font-size: clamp(25px,2.2vw,34px); font-weight: 530; letter-spacing: -.035em; line-height: 1.12; }
.community-feature-copy > p:last-child { max-width: 610px; margin-top: 15px; color: var(--text-2); font-size: 13px; line-height: 1.75; }
.community-feature-tags { position: relative; z-index: 1; margin-top: 25px; display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.community-feature-tags span { padding: 6px 9px; border: 1px solid rgba(255,255,255,.08); border-radius: 999px; background: rgba(255,255,255,.025); color: #8f9aae; font-size: 11px; }
.community-feature-cta { position: relative; z-index: 1; width: 100%; margin-top: auto; padding: 17px 0 0; display: flex; align-items: center; justify-content: space-between; border: 0; border-top: 1px solid rgba(255,255,255,.09); background: transparent; color: #dce3f2; font-size: 13px; font-weight: 560; text-align: left; }
.community-feature-cta b { color: #91a9ff; font-size: 19px; font-weight: 500; transition: transform 160ms ease; }
button.community-feature-cta:hover b { transform: translateX(4px); }
.community-feature-cta.disabled { color: #707b90; cursor: default; }
.community-feature-card.upcoming .community-feature-top { display: contents; }
.community-feature-card.upcoming .community-feature-icon { grid-column: 1; }
.community-feature-card.upcoming .community-feature-status { position: absolute; top: 26px; right: 28px; }
.community-feature-card.upcoming .community-feature-copy { grid-column: 2; margin-top: 0; }
.community-feature-card.upcoming .community-feature-tags { grid-column: 3; margin-top: 0; align-content: center; }
.community-feature-card.upcoming .community-feature-cta { position: absolute; right: 28px; bottom: 23px; width: min(320px,32%); }
.community-spirit-strip { margin-top: 16px; padding: 24px 28px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 22px; border: 1px solid rgba(130,151,196,.14); border-radius: 18px; background: rgba(20,24,32,.78); }
.community-spirit-avatars { display: flex; align-items: center; padding-left: 8px; }
.community-spirit-avatars span { width: 42px; height: 42px; margin-left: -8px; display: grid; place-items: center; border: 3px solid #151922; border-radius: 50%; background: linear-gradient(145deg,#354469,#222b43); color: #cdd8f6; font-size: 10px; font-weight: 650; }
.community-spirit-avatars span:nth-child(2) { background: linear-gradient(145deg,#624a78,#342b46); }
.community-spirit-avatars span:nth-child(3) { background: linear-gradient(145deg,#35665e,#243d3a); }
.community-spirit-avatars i { width: 32px; height: 32px; margin-left: -5px; display: grid; place-items: center; border: 2px solid #151922; border-radius: 50%; background: var(--surface-hi); color: var(--text-2); font-size: 13px; font-style: normal; }
.community-spirit-strip h2 { margin-top: 5px; color: var(--text-1); font-size: 19px; font-weight: 540; letter-spacing: -.015em; }
.community-spirit-strip > div:nth-child(2) > p:last-child { margin-top: 5px; color: var(--text-3); font-size: 12px; line-height: 1.55; }
.community-spirit-button { height: 40px; padding: 0 15px; border: 1px solid rgba(130,151,196,.2); border-radius: 9px; background: rgba(255,255,255,.025); color: var(--text-2); font-size: 12px; font-weight: 550; white-space: nowrap; }
.community-spirit-button span { margin-left: 10px; color: #91a9ff; }
.community-spirit-button:hover { border-color: rgba(132,160,255,.36); color: var(--text-1); }
.community-header-controls { display: flex; align-items: flex-end; gap: 8px; }
.community-back-btn { height: 36px; padding: 0 12px; }
.community-header-controls label { min-width: 142px; display: grid; gap: 6px; }
.community-header .port-sub, .community-hub-header .port-sub { font-size: 14px; }
.community-header-controls label > span, .community-field > span { color: var(--text-3); font-size: 12px; font-weight: 500; }
.community-header-controls select, .community-field input, .community-field select { width: 100%; height: 38px; padding: 0 11px; border: 1px solid var(--border); border-radius: var(--radius-sm); outline: 0; background: var(--surface-hi); color: var(--text-1); font-size: 13px; }
.community-header-controls select:focus, .community-field input:focus, .community-field select:focus { border-color: var(--blue); }
.community-field input::placeholder { color: var(--text-3); }
.community-publish-card { padding: 18px 20px; display: grid; grid-template-columns: minmax(190px,.65fr) minmax(0,1.8fr); align-items: end; gap: 22px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.community-publish-title { display: flex; align-items: center; gap: 9px; }
.community-publish-title > span, .community-environment, .community-owner-badge { padding: 4px 7px; border: 1px solid rgba(0,82,255,.28); border-radius: 6px; background: var(--blue-dim); color: #789fff; font-size: 12px; font-weight: 500; }
.community-publish-form { min-width: 0; display: grid; grid-template-columns: minmax(155px,.8fr) minmax(220px,1.45fr) auto; align-items: end; gap: 10px; }
.community-field { min-width: 0; display: grid; gap: 6px; }
.community-publish-form .action-btn { height: 38px; padding: 0 14px; font-size: 12px; white-space: nowrap; }
.community-publish-form .action-btn:disabled { opacity: .38; cursor: default; }
.community-feed-divider { margin-bottom: -12px; }
.community-feed-divider small { color: var(--text-3); font-size: 12px; font-weight: 400; }
.community-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; align-items: start; }
.community-card { min-width: 0; overflow: hidden; padding: 17px; display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.community-card:hover { border-color: var(--border-hi); }
.community-card-head, .community-card-title, .community-social-row, .community-actions, .community-comment-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.community-author { min-width: 0; display: flex; align-items: center; gap: 10px; }
.community-avatar { position: relative; width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(0,82,255,.32); border-radius: 50%; background: var(--blue-dim); color: #83a5ff; font-size: 12px; font-weight: 600; }
.community-avatar img, .copy-leader-avatar img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.community-author div { min-width: 0; }
.community-author b { display: block; overflow: hidden; color: var(--text-2); font-size: 13px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.community-author small { display: block; margin-top: 3px; color: var(--text-3); font-size: 12px; }
.community-environment { border-color: var(--border-hi); background: var(--surface-hi); color: var(--text-3); white-space: nowrap; }
.community-card-title { margin-top: 16px; align-items: flex-start; }
.community-card-title > div { min-width: 0; }
.community-card-title h2 { overflow: hidden; color: var(--text-1); font-size: 19px; font-weight: 600; letter-spacing: 0; text-overflow: ellipsis; white-space: nowrap; }
.community-strategies { margin-top: 8px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.community-strategy { padding: 4px 7px; display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-hi); color: var(--text-2); font-size: 12px; }
.community-strategy i { width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }
.community-strategy.crowd i { background: var(--crowd); }
.community-strategy.fable i { background: #8b5cf6; }
.community-owner-badge { flex: 0 0 auto; border-color: rgba(5,177,105,.28); background: var(--green-dim); color: var(--green); }
.community-description { min-height: 42px; margin-top: 13px; color: var(--text-2); font-size: 12px; line-height: 1.65; }
.community-metrics { margin-top: 14px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.community-metrics > div { min-width: 0; padding: 11px 8px; border-right: 1px solid var(--border); }
.community-metrics > div:first-child { padding-left: 0; }
.community-metrics > div:last-child { padding-right: 0; border-right: 0; }
.community-metrics small { display: block; color: var(--text-3); font-size: 12px; white-space: nowrap; }
.community-metrics b { display: block; margin-top: 5px; overflow: hidden; color: var(--text-1); font-size: 13px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.community-metrics b.pos { color: var(--green); }
.community-metrics b.neg { color: var(--red); }
.community-metrics b.neutral { color: var(--text-2); }
.community-sample { min-width: 0; padding: 10px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--border); color: var(--text-3); font-size: 12px; }
.community-sample span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.community-parameters { padding: 11px 0; display: grid; gap: 6px; color: var(--text-3); font-size: 12px; }
.community-parameters span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.community-parameters b { color: var(--text-2); font-weight: 500; }
.community-social-row { min-height: 36px; padding-top: 9px; border-top: 1px solid var(--border); }
.community-rating { min-width: 0; display: flex; align-items: center; gap: 7px; }
.community-stars { display: flex; align-items: center; gap: 1px; }
.community-stars button { width: 17px; height: 22px; border: 0; background: transparent; color: var(--border-hi); font-size: 14px; line-height: 1; }
.community-stars button:hover:not(:disabled), .community-stars button.active { color: var(--crowd); }
.community-stars button:disabled { cursor: default; }
.community-rating small, .community-counters { color: var(--text-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.community-counters { display: flex; align-items: center; gap: 10px; }
.community-actions { margin-top: 10px; justify-content: flex-start; }
.community-actions .action-btn, .community-actions .div-btn { height: 34px; padding: 0 12px; font-size: 12px; font-weight: 500; }
.community-actions .danger-soft { margin-left: auto; }
.community-comments { margin: 14px -17px -17px; border-top: 1px solid var(--border); background: rgba(15,17,20,.38); }
.community-comment-form { padding: 12px 17px; display: grid; grid-template-columns: 1fr auto; gap: 8px; border-bottom: 1px solid var(--border); }
.community-comment-form input { min-width: 0; height: 36px; padding: 0 11px; border: 1px solid var(--border); border-radius: var(--radius-sm); outline: 0; background: var(--surface-hi); color: var(--text-1); font-size: 12px; }
.community-comment-form input:focus { border-color: var(--blue); }
.community-comment-form input::placeholder { color: var(--text-3); }
.community-comment-form .div-btn { height: 36px; padding: 0 13px; font-size: 12px; }
.community-comment-list { max-height: 320px; overflow-y: auto; }
.community-comment { padding: 13px 17px; border-bottom: 1px solid var(--border); }
.community-comment:last-child { border-bottom: 0; }
.community-comment-head { justify-content: flex-start; }
.community-comment-head span { color: var(--text-2); font-size: 12px; font-weight: 500; }
.community-comment-head time { color: var(--text-3); font-size: 12px; }
.community-comment-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.community-comment-tools button { padding: 2px 0; border: 0; background: transparent; color: var(--text-3); font-size: 12px; }
.community-comment-tools button:hover { color: var(--text-1); }
.community-comment-tools button.danger:hover { color: var(--red); }
.community-comment p { margin-top: 7px; color: var(--text-2); font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
.community-comment-empty { padding: 20px; color: var(--text-3); font-size: 12px; text-align: center; }
.community-empty { min-height: 220px; grid-column: 1 / -1; display: grid; align-content: center; justify-items: center; gap: 7px; border: 1px dashed var(--border); border-radius: var(--radius-lg); color: var(--text-3); font-size: 12px; text-align: center; }
.community-empty strong { color: var(--text-2); font-size: 15px; font-weight: 500; }
.community-empty span { color: var(--text-3); }
.community-pagination { display: flex; align-items: center; justify-content: center; gap: 12px; }
.community-pagination span { min-width: 100px; color: var(--text-3); font-size: 12px; text-align: center; }
.community-pagination .div-btn { height: 34px; font-size: 12px; }
.community-pagination .div-btn:disabled { opacity: .3; cursor: default; }

.copy-best-effort { color: #69d1ff; }
.copy-network-strip { min-height: 112px; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.copy-network-metrics { min-width: 0; flex: 1; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); }
.copy-network-metrics > div { min-width: 0; padding: 0 24px; display: grid; gap: 5px; border-right: 1px solid var(--border); }
.copy-network-metrics > div:first-child { padding-left: 0; }
.copy-network-metrics > div:last-child { border-right: 0; }
.copy-network-metrics small { color: var(--text-3); font-size: 12px; }
.copy-network-metrics b { color: var(--text-1); font-size: 20px; font-weight: 500; font-variant-numeric: tabular-nums; }
.copy-network-metrics b.pos { color: var(--green); }
.copy-network-metrics b.neg { color: var(--red); }
.copy-network-metrics span { color: var(--text-3); font-size: 12px; }
.copy-network-actions { display: flex; align-items: center; gap: 9px; }
.copy-network-actions .action-btn, .copy-network-actions .div-btn { height: 36px; white-space: nowrap; }
.copy-network-actions .div-btn.active { border-color: rgba(0,82,255,.5); background: var(--blue-dim); color: #83a5ff; }
.copy-network-actions .div-btn span { margin-left: 6px; color: #83a5ff; }
.copy-profile-card { padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.copy-profile-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.copy-profile-form { margin-top: 16px; display: grid; grid-template-columns: minmax(240px,1fr) auto; align-items: end; gap: 10px; }
.copy-profile-form .action-btn { height: 36px; }
.copy-profile-moderation { margin-top: 12px; padding: 10px 12px; border: 1px solid rgba(240,61,61,.24); border-radius: var(--radius-sm); background: var(--red-dim); color: #ff7883; font-size: 12px; line-height: 1.55; }
.copy-hub-hero { position: relative; min-height: 310px; overflow: hidden; padding: 30px; display: grid; grid-template-columns: minmax(0,1.25fr) minmax(340px,.75fr); align-items: stretch; gap: 28px; border: 1px solid var(--border); border-radius: var(--radius-lg); background-color: #101318; background-image: linear-gradient(rgba(0,82,255,.075) 1px,transparent 1px),linear-gradient(90deg,rgba(0,82,255,.075) 1px,transparent 1px); background-size: 44px 44px; }
.copy-hub-hero::after { content: ""; position: absolute; right: 26%; bottom: 0; left: 0; height: 1px; background: var(--blue); opacity: .8; }
.copy-hub-main { position: relative; z-index: 1; min-width: 0; padding: 11px 0 6px; align-self: center; }
.copy-hub-main h1 { margin-top: 9px; font-size: 44px; font-weight: 500; letter-spacing: 0; line-height: 1.05; }
.copy-hub-main > p:last-of-type { max-width: 600px; margin-top: 12px; color: var(--text-2); font-size: 14px; line-height: 1.65; }
.copy-hub-metrics { max-width: 660px; margin-top: 31px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
.copy-hub-metrics > span { min-width: 0; padding: 0 22px; display: grid; gap: 7px; border-right: 1px solid var(--border-hi); }
.copy-hub-metrics > span:first-child { padding-left: 0; }
.copy-hub-metrics > span:last-child { padding-right: 0; border-right: 0; }
.copy-hub-metrics small { color: var(--text-3); font-size: 12px; }
.copy-hub-metrics b { overflow: hidden; color: var(--text-1); font-size: 19px; font-weight: 500; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.copy-hub-metrics b.pos { color: var(--green); }
.copy-hub-metrics b.neg { color: var(--red); }
.copy-guide-panel { position: relative; z-index: 1; min-height: 248px; overflow: hidden; padding: 25px; display: grid; grid-template-columns: minmax(0,1fr) 150px; align-items: center; border: 1px solid var(--border-hi); border-radius: var(--radius-lg); background: rgba(18,21,27,.94); }
.copy-guide-copy { position: relative; z-index: 2; }
.copy-guide-copy > span { color: #7da0ff; font-size: 12px; }
.copy-guide-copy h2 { margin-top: 12px; font-size: 19px; font-weight: 500; line-height: 1.45; }
.copy-guide-copy button { margin-top: 20px; padding: 0; border: 0; background: transparent; color: #7da0ff; font-size: 13px; }
.copy-guide-copy button:hover { color: #a9beff; }
.copy-guide-copy button b { margin-left: 5px; font-weight: 400; }
.copy-guide-visual { position: relative; width: 150px; height: 180px; }
.copy-guide-ring { position: absolute; top: 50%; left: 50%; border: 1px solid rgba(0,82,255,.24); border-radius: 50%; transform: translate(-50%,-50%); }
.copy-guide-ring.ring-one { width: 94px; height: 94px; }
.copy-guide-ring.ring-two { width: 148px; height: 148px; }
.copy-guide-core { position: absolute; top: 50%; left: 50%; width: 50px; height: 50px; display: grid; place-items: center; border: 1px solid rgba(61,116,255,.78); border-radius: 50%; box-shadow: 0 0 0 5px rgba(0,82,255,.08),0 0 26px rgba(0,82,255,.34); transform: translate(-50%,-50%); }
.copy-guide-core img { width: 30px; height: 30px; display: block; object-fit: contain; }
.copy-guide-person { position: absolute; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--border-hi); border-radius: 50%; background: #222731; color: #8da8ee; }
.copy-guide-person svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.copy-guide-person.person-one { top: 16px; right: 5px; }
.copy-guide-person.person-two { bottom: 14px; left: 3px; }
.copy-hub-actions { margin-top: 14px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.copy-hub-action { min-width: 0; min-height: 72px; padding: 14px 17px; display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 12px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); color: var(--text-1); text-align: left; }
button.copy-hub-action:hover, button.copy-hub-action.active { border-color: rgba(0,82,255,.42); background: rgba(0,82,255,.065); }
.copy-hub-action-icon { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(0,82,255,.26); border-radius: var(--radius-sm); background: var(--blue-dim); color: #7da0ff; }
.copy-hub-action-icon svg { width: 19px; height: 19px; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.copy-hub-action > span:nth-child(2) { min-width: 0; display: grid; gap: 5px; }
.copy-hub-action b { overflow: hidden; font-size: 14px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.copy-hub-action small { overflow: hidden; color: var(--text-3); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.copy-hub-action small strong { color: #789fff; font-weight: 500; }
.copy-hub-action > i { color: var(--text-3); font-size: 16px; font-style: normal; }
.copy-result-action { grid-template-columns: 38px minmax(0,1fr); }
.copy-result-action > span.copy-result-value { display: flex; align-items: baseline; gap: 7px; }
.copy-result-value small { flex: 0 0 auto; color: var(--text-2); font-size: 13px; }
.copy-result-action > span:nth-child(2) b.pos { color: var(--green); }
.copy-result-action > span:nth-child(2) b.neg { color: var(--red); }
.copy-profile-page-header { align-items: flex-end; }
.copy-profile-page-grid { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(310px,.65fr); gap: 14px; align-items: start; }
.copy-profile-editor, .copy-profile-preview { min-width: 0; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.copy-profile-editor-head, .copy-profile-preview-head, .copy-profile-visibility-row, .copy-profile-save-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.copy-profile-state { min-height: 27px; padding: 0 9px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-hi); color: var(--text-3); font-size: 12px; }
.copy-profile-state i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); }
.copy-profile-state.active { border-color: rgba(5,177,105,.3); background: var(--green-dim); color: var(--green); }
.copy-profile-state.active i { background: var(--green); box-shadow: 0 0 8px rgba(5,177,105,.4); }
.copy-profile-state.blocked { border-color: rgba(240,61,61,.3); background: var(--red-dim); color: var(--red); }
.copy-profile-state.blocked i { background: var(--red); }
.copy-profile-visibility-row { min-height: 74px; margin-top: 17px; padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.copy-profile-visibility-row > span { display: grid; gap: 5px; }
.copy-profile-visibility-row b { font-size: 13px; font-weight: 500; }
.copy-profile-visibility-row small { color: var(--text-3); font-size: 12px; }
.copy-profile-bio-field { position: relative; margin-top: 17px; display: grid; gap: 10px; }
.copy-profile-bio-field > span { display: grid; gap: 4px; }
.copy-profile-bio-field b { font-size: 13px; font-weight: 500; }
.copy-profile-bio-field small { color: var(--text-3); font-size: 12px; }
.copy-profile-bio-field textarea { width: 100%; min-height: 150px; padding: 13px 14px 32px; resize: vertical; border: 1px solid var(--border); border-radius: var(--radius-sm); outline: 0; background: rgba(15,17,20,.58); color: var(--text-1); font: inherit; font-size: 13px; line-height: 1.6; }
.copy-profile-bio-field textarea:focus { border-color: var(--blue); background: var(--surface-hi); }
.copy-profile-bio-field textarea::placeholder { color: var(--text-3); }
.copy-profile-bio-field em { position: absolute; right: 11px; bottom: 10px; color: var(--text-3); font-size: 11px; font-style: normal; }
.copy-profile-save-row { margin-top: 16px; }
.copy-profile-save-row > span { color: var(--text-3); font-size: 12px; }
.copy-profile-save-row .action-btn { min-width: 142px; }
.copy-profile-preview-head > span { color: var(--text-3); font-size: 12px; }
.copy-profile-preview-person { margin-top: 22px; display: flex; align-items: center; gap: 13px; }
.copy-profile-preview-avatar { position: relative; width: 58px; height: 58px; flex: 0 0 58px; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(0,82,255,.38); border-radius: 50%; background: var(--blue-dim); color: #8ba9ff; font-size: 13px; }
.copy-profile-preview-avatar img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.copy-profile-preview-person h2 { margin-bottom: 5px; font-size: 18px; font-weight: 500; }
.copy-profile-preview-bio { min-height: 72px; margin-top: 20px; padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); color: var(--text-2); font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.copy-profile-preview-meta { padding: 14px 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.copy-profile-preview-meta > span { display: grid; gap: 5px; }
.copy-profile-preview-meta small { color: var(--text-3); font-size: 12px; }
.copy-profile-preview-meta b { font-size: 13px; font-weight: 500; }
.copy-profile-preview > .div-btn { width: 100%; height: 36px; margin-top: 5px; }
.switch.compact { position: relative; width: 38px; height: 22px; flex: 0 0 38px; }
.switch.compact input { position: absolute; opacity: 0; pointer-events: none; }
.switch.compact span { position: absolute; inset: 0; border: 1px solid var(--border-hi); border-radius: 11px; background: var(--surface-hi); transition: border-color .2s ease,background .2s ease; }
.switch.compact span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #8390a6; transition: transform .2s ease,background .2s ease; }
.switch.compact input:checked + span { border-color: rgba(5,177,105,.45); background: rgba(5,177,105,.12); }
.switch.compact input:checked + span::after { transform: translateX(16px); background: var(--green); }
.switch.compact input:focus-visible + span { outline: 2px solid rgba(0,82,255,.5); outline-offset: 2px; }
.copy-directory-head { margin-top: 32px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.copy-directory-head h2 { color: var(--text-1); font-size: 20px; font-weight: 500; }
.copy-directory-tools { display: flex; align-items: center; gap: 9px; }
.copy-period-select select, .copy-search input { height: 36px; border: 1px solid var(--border); border-radius: var(--radius-sm); outline: 0; background: var(--surface-hi); color: var(--text-2); font-size: 12px; }
.copy-period-select select { min-width: 104px; padding: 0 28px 0 10px; }
.copy-sort-tabs { height: 36px; padding: 3px; display: flex; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-hi); }
.copy-sort-tabs button { min-width: 66px; padding: 0 10px; border: 0; border-radius: 4px; background: transparent; color: var(--text-3); font-size: 12px; }
.copy-sort-tabs button.active { background: var(--surface); color: var(--text-1); }
.copy-search { position: relative; display: block; }
.copy-search svg { position: absolute; top: 10px; left: 10px; width: 15px; height: 15px; stroke: var(--text-3); stroke-width: 1.6; pointer-events: none; }
.copy-search input { width: 190px; padding: 0 10px 0 31px; }
.copy-trader-grid { margin-top: 14px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; align-items: start; }
.copy-trader-card { min-width: 0; overflow: hidden; padding: 17px; border: 1px solid var(--border); border-radius: var(--radius-lg); outline: 0; background: var(--surface); cursor: pointer; transition: border-color 160ms ease,background 160ms ease,transform 160ms ease,box-shadow 160ms ease; }
.copy-trader-card:hover, .copy-trader-card:focus-visible { border-color: rgba(0,82,255,.48); background: #1a1e25; box-shadow: 0 10px 28px rgba(0,0,0,.2); transform: translateY(-1px); }
.copy-trader-card.is-following { border-color: rgba(56,189,248,.3); }
.copy-trader-card.is-following:hover, .copy-trader-card.is-following:focus-visible { border-color: rgba(56,189,248,.58); }
.copy-leader-head { margin: -17px -17px 0; padding: 15px 17px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--border); }
.copy-leader-avatar { position: relative; width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(0,82,255,.35); border-radius: 50%; background: var(--blue-dim); color: #83a5ff; font-size: 12px; }
.copy-trader-card .community-author b { color: var(--text-1); font-size: 14px; }
.copy-follower-count { margin-top: 4px; color: var(--text-3); font-size: 12px !important; }
.copy-trader-head, .copy-trader-actions, .copy-config-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.copy-trader-live { display: inline-flex; align-items: center; gap: 6px; color: var(--text-3); font-size: 12px; white-space: nowrap; }
.copy-trader-live i { width: 5px; height: 5px; border-radius: 50%; background: var(--text-3); }
.copy-trader-live.running { color: var(--green); }
.copy-trader-live.running i { background: var(--green); box-shadow: 0 0 7px rgba(5,177,105,.42); }
.copy-environment-badge { margin-top: 3px; display: inline-flex; align-items: center; gap: 5px; color: #8ea0b9; }
.copy-environment-badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #8290a5; }
.copy-environment-badge.demo::before { background: #f0b84b; box-shadow: 0 0 7px rgba(240,184,75,.3); }
.copy-environment-badge.mainnet::before { background: #4b9bff; box-shadow: 0 0 7px rgba(75,155,255,.32); }
.copy-environment-badge.testnet::before { background: #a78bfa; box-shadow: 0 0 7px rgba(167,139,250,.3); }
.copy-trader-card .copy-environment-badge { font-size: 12px; }
.copy-roi-block { min-height: 78px; margin-top: 14px; display: grid; grid-template-columns: minmax(0,1fr) minmax(110px,.85fr); align-items: end; gap: 12px; }
.copy-roi-block > div { display: grid; gap: 5px; }
.copy-roi-block small { color: var(--text-3); font-size: 12px; }
.copy-roi-block b { font-size: 25px; font-weight: 500; font-variant-numeric: tabular-nums; }
.copy-roi-block b.pos, .copy-leader-stats b.pos { color: var(--green); }
.copy-roi-block b.neg, .copy-leader-stats b.neg { color: var(--red); }
.copy-roi-block b.neutral, .copy-leader-stats b.neutral { color: var(--text-2); }
.copy-roi-block canvas { width: 100%; height: 64px; display: block; }
.copy-equity-missing { align-self: center; color: var(--text-3); font-size: 12px; text-align: right; }
.copy-leader-stats { margin-top: 12px; display: grid; gap: 8px; }
.copy-leader-stats > span, .copy-leader-markets > span { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.copy-leader-stats small, .copy-leader-markets small { color: var(--text-3); font-size: 12px; }
.copy-leader-stats b { color: var(--text-1); font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; }
.copy-leader-markets { margin-top: 12px; padding-top: 10px; display: grid; gap: 8px; border-top: 1px solid var(--border); }
.copy-leader-markets b { min-height: 22px; display: flex; align-items: center; justify-content: flex-end; gap: 4px; font-weight: 400; }
.copy-market-icon { width: 24px; height: 24px; display: block; overflow: hidden; border: 1px solid var(--border); border-radius: 50%; background: var(--surface-hi); }
.copy-market-icon img { width: 100%; height: 100%; display: block; object-fit: cover; }
.copy-market-empty { color: var(--text-3); font-size: 12px; }
.copy-strategy-list .strategy-cell { font-size: 12px; }
.copy-trader-metrics { margin-top: 13px; }
.copy-equity-panel { margin-top: 12px; padding: 11px 11px 6px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: rgba(10,13,18,.42); }
.copy-equity-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.copy-equity-head > span { display: grid; gap: 3px; }
.copy-equity-head small { color: var(--text-3); font-size: 12px; }
.copy-equity-head b { color: var(--text-1); font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
.copy-equity-head strong { font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.copy-equity-head strong.pos { color: var(--green); }
.copy-equity-head strong.neg { color: var(--red); }
.copy-equity-head strong.neutral { color: var(--text-3); }
.copy-equity-panel canvas { width: 100%; height: 88px; margin-top: 5px; display: block; }
.copy-equity-empty { height: 88px; display: grid; place-items: center; color: var(--text-3); font-size: 12px; }
.copy-trader-submetrics { padding: 11px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--border); color: var(--text-3); font-size: 12px; }
.copy-trader-submetrics b { color: var(--text-2); font-weight: 500; }
.copy-trader-error { margin-top: 9px; padding: 9px 10px; border: 1px solid rgba(255,72,89,.2); border-radius: 6px; background: var(--red-dim); color: #ff8792; font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.copy-trader-actions { margin-top: 14px; justify-content: stretch; }
.copy-trader-actions .action-btn, .copy-trader-actions .div-btn { height: 34px; padding: 0 11px; font-size: 12px; }
.copy-trader-actions .action-btn { flex: 1; }
.copy-trader-card .community-owner-badge { font-size: 12px; }
.copy-config-panel { max-height: 0; margin: 0 -17px -17px; padding: 0 17px; overflow: hidden; opacity: 0; border-top: 1px solid transparent; transition: max-height .28s ease,margin-top .28s ease,padding .28s ease,opacity .2s ease,border-color .2s ease; }
.copy-config-panel.open { max-height: 340px; margin-top: 13px; padding-top: 14px; padding-bottom: 15px; opacity: 1; border-color: var(--border); }
.copy-config-grid { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(150px,.45fr); gap: 9px; align-items: end; }
.copy-sizing-rule { min-height: 58px; padding: 9px 10px; display: grid; align-content: center; gap: 3px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: rgba(10,13,18,.38); }
.copy-sizing-rule span { color: #69d1ff; font-size: 12px; }
.copy-sizing-rule b { color: var(--text-1); font-size: 12px; font-weight: 500; }
.copy-sizing-rule small { color: var(--text-3); font-size: 12px; line-height: 1.45; }
.copy-input-unit { position: relative; display: block; }
.copy-input-unit input { padding-right: 48px; font-variant-numeric: tabular-nums; }
.copy-input-unit small { position: absolute; top: 50%; right: 10px; color: var(--text-3); font-size: 12px; transform: translateY(-50%); pointer-events: none; }
.copy-config-foot { margin-top: 11px; align-items: flex-end; }
.copy-config-foot p { max-width: 360px; color: var(--text-3); font-size: 12px; line-height: 1.55; }
.copy-config-foot .copy-route-warning { color: #f0b84b; }
.copy-config-foot .action-btn { height: 34px; padding: 0 12px; font-size: 12px; white-space: nowrap; }

.copy-detail-header { min-height: 76px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 14px; }
.copy-detail-back { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text-2); }
.copy-detail-back:hover { border-color: var(--border-hi); color: var(--text-1); }
.copy-detail-back svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.8; }
.copy-detail-person { min-width: 0; display: flex; align-items: center; gap: 12px; }
.copy-detail-avatar { position: relative; width: 48px; height: 48px; flex: 0 0 48px; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(0,82,255,.38); border-radius: 50%; background: var(--blue-dim); color: #8ba9ff; font-size: 12px; }
.copy-detail-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.copy-detail-name-line { display: flex; align-items: center; gap: 10px; }
.copy-detail-name-line h1 { overflow: hidden; color: var(--text-1); font-size: 23px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.copy-detail-person p { margin-top: 4px; overflow: hidden; color: var(--text-3); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.copy-detail-head-meta { display: flex; align-items: center; justify-content: flex-end; gap: 14px; color: var(--text-3); font-size: 12px; }
.copy-detail-head-meta b { color: var(--text-1); font-weight: 500; }
.copy-detail-live { display: inline-flex; align-items: center; gap: 6px; }
.copy-detail-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); }
.copy-detail-live.running { color: var(--green); }
.copy-detail-live.running i { background: var(--green); box-shadow: 0 0 8px rgba(5,177,105,.4); animation: blink 2s ease-in-out infinite; }
.copy-detail-metrics { margin-top: 18px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.copy-detail-metrics article { min-width: 0; padding: 15px 18px; display: grid; gap: 5px; border-right: 1px solid var(--border); }
.copy-detail-metrics article:last-child { border-right: 0; }
.copy-detail-metrics small, .copy-detail-metrics span { color: var(--text-3); font-size: 12px; }
.copy-detail-metrics b { overflow: hidden; color: var(--text-1); font-size: 18px; font-weight: 500; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.copy-detail-metrics b.pos { color: var(--green); }
.copy-detail-metrics b.neg { color: var(--red); }
.copy-detail-chart-section, .copy-live-panel, .copy-settings-panel { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.copy-detail-chart-section { height: 270px; margin-top: 14px; padding: 16px 18px 12px; }
.copy-detail-section-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.copy-detail-section-head > span { color: var(--text-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.copy-detail-section-head > span.pos { color: var(--green); }
.copy-detail-section-head > span.neg { color: var(--red); }
#copyDetailEquityChart { width: 100%; height: 210px; margin-top: 8px; display: block; }
.copy-detail-grid { margin-top: 14px; display: grid; grid-template-columns: minmax(0,1.7fr) minmax(310px,.7fr); gap: 14px; align-items: start; }
.copy-live-panel, .copy-settings-panel { min-width: 0; padding: 16px 18px; }
.copy-live-count b { color: var(--text-1); font-weight: 500; }
.copy-live-table { margin: 14px -18px -16px; overflow-x: auto; }
.copy-live-head, .copy-live-row { min-width: 760px; display: grid; grid-template-columns: 1.05fr 1.15fr .62fr .9fr .9fr 1fr .75fr; align-items: center; column-gap: 14px; }
.copy-live-head { height: 36px; padding: 0 18px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); color: var(--text-3); font-size: 12px; text-transform: uppercase; }
.copy-live-row { position: relative; min-height: 56px; padding: 0 18px; border-bottom: 1px solid var(--border); color: var(--text-2); font-size: 12px; font-variant-numeric: tabular-nums; }
.copy-live-row:last-child { border-bottom: 0; }
.copy-live-row::before { content: ""; position: absolute; top: 8px; bottom: 8px; left: 0; width: 2px; background: var(--green); }
.copy-live-row.short::before { background: var(--red); }
.copy-live-symbol { display: flex; align-items: center; gap: 8px; color: var(--text-1); font-weight: 500; }
.copy-live-symbol img { width: 24px; height: 24px; border: 1px solid var(--border); border-radius: 50%; object-fit: cover; }
.copy-live-row .strategy-cell { font-size: 12px; }
.copy-live-row .pos { color: var(--green); }
.copy-live-row .neg { color: var(--red); }
.copy-live-empty { min-height: 112px; display: grid; place-items: center; color: var(--text-3); font-size: 12px; }
.copy-status-badge { padding: 5px 8px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface-hi); }
.copy-status-badge.active { border-color: rgba(5,177,105,.32); background: rgba(5,177,105,.08); color: var(--green); }
.copy-sizing-note { margin-top: 14px; padding: 11px 12px; display: grid; gap: 4px; border: 1px solid rgba(56,189,248,.18); border-radius: var(--radius-sm); background: rgba(56,189,248,.05); }
.copy-sizing-note span { color: #70d2ff; font-size: 12px; }
.copy-sizing-note b { color: var(--text-1); font-size: 12px; font-weight: 500; line-height: 1.4; }
.copy-sizing-note small { color: var(--text-3); font-size: 12px; line-height: 1.5; }
.copy-setting-field, .copy-override-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.copy-setting-field { min-height: 58px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.copy-setting-field > span:first-child, .copy-override-title > span:first-child { min-width: 0; display: grid; gap: 3px; }
.copy-setting-field b, .copy-override-title b { color: var(--text-1); font-size: 12px; font-weight: 500; }
.copy-setting-field small, .copy-override-title small { color: var(--text-3); font-size: 12px; line-height: 1.4; }
.copy-setting-field > .copy-input-unit { width: 116px; flex: 0 0 116px; }
.copy-override-row { padding: 11px 0; display: grid; grid-template-columns: minmax(0,1fr) 116px; align-items: center; gap: 12px; border-bottom: 1px solid var(--border); }
.copy-override-row.trailing { grid-template-columns: 1fr; }
.copy-override-title { cursor: pointer; }
.copy-trailing-inputs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.copy-trailing-inputs > label { display: grid; gap: 5px; }
.copy-trailing-inputs > label > span:first-child { color: var(--text-3); font-size: 12px; }
.copy-settings-panel input:disabled { opacity: .42; cursor: not-allowed; }
.copy-settings-actions { margin-top: 14px; display: flex; justify-content: flex-end; gap: 8px; }
.copy-settings-actions .action-btn, .copy-settings-actions .div-btn { height: 34px; }
.copy-settings-actions .action-btn { flex: 1; }
.copy-settings-panel.is-self { opacity: .68; }
.copy-settings-panel.is-self .copy-settings-actions, .copy-settings-panel.is-self .copy-sizing-note { display: none; }

/* Lead trader profile */
.lead-profile-banner { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.lead-profile-banner-top { min-height: 166px; padding: 22px 24px; display: grid; grid-template-columns: 96px minmax(0,1fr); align-items: center; gap: 22px; }
.lead-banner-avatar { width: 96px; height: 96px; flex-basis: 96px; border: 2px solid rgba(255,255,255,.7); box-shadow: 0 0 0 5px rgba(0,82,255,.13), 0 14px 34px rgba(0,0,0,.26); font-size: 19px; }
.lead-banner-content { min-width: 0; }
.lead-banner-heading, .lead-profile-actions, .lead-profile-meta { display: flex; align-items: center; }
.lead-banner-heading { min-width: 0; justify-content: space-between; gap: 24px; }
.lead-banner-identity { min-width: 0; display: grid; gap: 10px; }
.lead-banner-identity .copy-detail-name-line { flex-wrap: wrap; }
.lead-banner-identity .copy-detail-name-line h1 { overflow: hidden; max-width: min(420px,42vw); color: var(--text-1); font-size: 28px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.lead-profile-meta { gap: 13px; color: var(--text-3); font-size: 13px; }
.lead-profile-meta b { color: var(--text-1); font-weight: 500; }
.lead-profile-actions { gap: 8px; }
.lead-profile-actions .action-btn, .lead-profile-actions .div-btn { height: 34px; padding: 0 14px; white-space: nowrap; }
.lead-copy-btn { background: var(--blue); }
.lead-copy-btn.active { border-color: rgba(5,177,105,.36); background: rgba(5,177,105,.12); color: var(--green); }
.lead-share-btn, .lead-settings-btn { display: inline-flex; align-items: center; gap: 7px; }
.lead-share-btn svg, .lead-settings-btn svg, .lead-report-btn svg { width: 13px; height: 13px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.lead-settings-btn small { padding-left: 7px; border-left: 1px solid var(--border); color: var(--text-3); font-size: 11px; }
.lead-settings-btn.has-active-limits { border-color: rgba(0,82,255,.38); background: rgba(0,82,255,.08); color: var(--text-1); }
.lead-settings-btn.has-active-limits small { color: var(--blue-soft); }
.lead-report-btn { display: inline-flex; align-items: center; gap: 7px; }
.lead-report-btn:hover { border-color: rgba(240,61,61,.3); color: #ff7883; }
.lead-banner-metrics { width: min(720px,100%); margin-top: 24px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); }
.lead-banner-metrics > span { min-width: 0; padding: 0 20px; display: grid; gap: 6px; border-left: 1px solid var(--border); }
.lead-banner-metrics > span:first-child { padding-left: 0; border-left: 0; }
.lead-banner-metrics small, .lead-banner-account-strip small { color: var(--text-3); font-size: 12px; }
.lead-banner-metrics b { overflow: hidden; color: var(--text-1); font-size: 17px; font-weight: 500; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.lead-banner-account-strip { min-height: 74px; padding: 0 24px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border-top: 1px solid var(--border); background: rgba(4,9,17,.28); }
.lead-banner-account-strip > span { min-width: 0; padding: 15px 22px; display: grid; align-content: center; gap: 6px; border-left: 1px solid var(--border); }
.lead-banner-account-strip > span:first-child { padding-left: 0; border-left: 0; }
.lead-banner-account-strip b { overflow: hidden; color: var(--text-1); font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.lead-banner-account-strip b.pos { color: var(--green); }
.lead-banner-account-strip b.neg { color: var(--red); }
.lead-performance-card, .lead-preference-card, .lead-trades-section { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.lead-analytics-grid { margin-top: 14px; display: grid; grid-template-columns: minmax(330px,.72fr) minmax(0,1.28fr); gap: 14px; align-items: stretch; }
.lead-performance-card, .lead-preference-card { min-width: 0; padding: 16px 18px; }
.lead-card-head { min-height: 30px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lead-card-head > small { color: var(--text-3); font-size: 12px; }
.lead-performance-primary { margin-top: 14px; padding-bottom: 13px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; border-bottom: 1px solid var(--border); }
.lead-performance-primary > span { display: grid; gap: 5px; }
.lead-performance-primary > span:last-child { text-align: right; }
.lead-performance-primary small, .lead-performance-list small { color: var(--text-3); font-size: 12px; }
.lead-performance-primary b { color: var(--text-1); font-size: 18px; font-weight: 500; font-variant-numeric: tabular-nums; }
.lead-performance-primary b.pos { color: var(--green); }
.lead-performance-primary b.neg { color: var(--red); }
.lead-performance-list { padding: 10px 0; display: grid; gap: 8px; }
.lead-performance-list > span { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lead-performance-list b { color: var(--text-1); font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.lead-performance-list b.pos { color: var(--green); }
.lead-performance-list b.neg { color: var(--red); }
.lead-winbar { height: 6px; overflow: hidden; border-radius: 3px; background: rgba(255,72,89,.7); }
.lead-winbar i { width: 0; height: 100%; display: block; background: var(--green); transition: width .3s ease; }
.lead-winbar-labels { margin-top: 7px; display: flex; align-items: center; justify-content: space-between; color: var(--text-3); font-size: 12px; }
.lead-winbar-labels span:first-child { color: var(--green); }
.lead-winbar-labels span:last-child { color: var(--red); }
.copy-detail-chart-section { height: 276px; margin: 0; padding: 16px 18px 10px; }
.copy-chart-tabs { display: flex; align-items: center; gap: 15px; }
.copy-chart-tabs button { padding: 0 0 5px; border: 0; border-bottom: 1px solid transparent; background: transparent; color: var(--text-3); font-size: 12px; }
.copy-chart-tabs button.active { border-color: var(--blue); color: var(--text-1); }
.lead-chart-meta { display: flex; align-items: center; gap: 10px; }
.lead-chart-meta span { color: var(--text-2); font-size: 12px; font-variant-numeric: tabular-nums; }
.lead-chart-meta span.pos { color: var(--green); }
.lead-chart-meta span.neg { color: var(--red); }
.lead-chart-meta small { color: var(--text-3); font-size: 12px; }
#copyDetailEquityChart { height: 218px; margin-top: 5px; }
.lead-overview-card { min-height: 310px; padding: 16px 18px; }
.lead-overview-grid { margin-top: 13px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.lead-overview-grid > span { min-width: 0; min-height: 67px; padding: 12px 0; display: grid; align-content: center; gap: 5px; border-bottom: 1px solid var(--border); }
.lead-overview-grid > span:nth-child(odd) { padding-right: 18px; }
.lead-overview-grid > span:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--border); }
.lead-overview-grid > span:nth-last-child(-n+2) { border-bottom: 0; }
.lead-overview-grid small { color: var(--text-3); font-size: 12px; }
.lead-overview-grid b { overflow: hidden; color: var(--text-1); font-size: 13px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.lead-copy-settings-grid { margin-top: 9px; }
.lead-copy-settings-grid .strategy-field { min-height: 46px; }
.lead-copy-settings-grid .lead-copy-toggle { padding: 12px 0 3px; border-top: 0; }
.lead-copy-settings-grid .lead-copy-value { min-height: 42px; }
.lead-copy-settings-grid input:disabled { opacity: .42; cursor: not-allowed; }
.lead-preference-card { min-height: 310px; }
.lead-preference-body { min-height: 218px; display: grid; grid-template-columns: minmax(180px,.9fr) minmax(150px,1.1fr); align-items: center; gap: 28px; }
.lead-donut { width: 154px; aspect-ratio: 1; place-self: center; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--green) 0 50%, var(--red) 50% 100%); }
.lead-donut::before { content: ""; grid-area: 1 / 1; width: 104px; aspect-ratio: 1; border-radius: 50%; background: var(--surface); }
.lead-donut > span { z-index: 1; grid-area: 1 / 1; display: grid; gap: 3px; text-align: center; }
.lead-donut b { color: var(--text-1); font-size: 15px; font-weight: 500; }
.lead-donut small { color: var(--text-3); font-size: 12px; }
.lead-preference-legend { display: grid; gap: 12px; }
.lead-preference-legend > span { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; color: var(--text-3); font-size: 12px; }
.lead-preference-legend i { width: 7px; height: 7px; border-radius: 2px; background: var(--green); }
.lead-preference-legend i.short { background: var(--red); }
.lead-preference-legend b { color: var(--text-1); font-size: 12px; font-weight: 500; text-align: right; }
.lead-preference-note { color: var(--text-3); font-size: 12px; }
.lead-trades-section { margin-top: 28px; overflow: hidden; }
.lead-trade-tabs { height: 43px; padding: 0 17px; display: flex; align-items: end; gap: 26px; border-bottom: 1px solid var(--border); }
.lead-trade-tabs button { height: 43px; padding: 0 0 11px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--text-3); font-size: 12px; }
.lead-trade-tabs button.active { border-color: var(--text-1); color: var(--text-1); }
.lead-trade-tabs button span { margin-left: 5px; color: var(--text-3); }
.lead-trades-section .copy-live-table { margin: 0; }
.lead-trades-section .copy-live-head, .lead-trades-section .copy-live-row { min-width: 860px; grid-template-columns: 1.05fr 1.15fr .62fr .9fr .9fr 1fr .75fr; }
.lead-trades-section .copy-live-head { border-top: 0; }
.lead-trades-section .copy-live-head { font-size: 12px; }
.lead-trades-section .copy-live-row { font-size: 12px; }
.lead-trades-section .copy-live-row .strategy-cell { font-size: 12px; }
.lead-trades-section .copy-live-empty { font-size: 12px; }
.lead-overview-card .copy-status-badge { font-size: 12px; }
.lead-performance-card .copy-period-select select { font-size: 12px; }

@media (max-width: 1050px) {
  .lead-profile-banner-top { grid-template-columns: 82px minmax(0,1fr); }
  .lead-banner-avatar { width: 82px; height: 82px; flex-basis: 82px; }
  .lead-banner-heading { align-items: flex-start; flex-direction: column; }
  .lead-profile-actions { flex-wrap: wrap; justify-content: flex-start; }
  .lead-analytics-grid { grid-template-columns: 1fr; }
  .lead-performance-card { grid-row: auto; }
  .copy-detail-chart-section { grid-row: 2; }
  .lead-overview-card { grid-row: 3; }
  .lead-preference-card { grid-row: 4; }
}

@media (max-width: 780px) {
  .lead-profile-banner-top { padding: 18px; grid-template-columns: 72px minmax(0,1fr); gap: 15px; }
  .lead-banner-avatar { width: 72px; height: 72px; flex-basis: 72px; }
  .lead-banner-identity .copy-detail-name-line h1 { max-width: 52vw; font-size: 23px; }
  .lead-banner-content { grid-column: 2; }
  .lead-banner-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); row-gap: 20px; }
  .lead-banner-metrics > span:nth-child(3) { padding-left: 0; border-left: 0; }
  .lead-banner-account-strip { padding: 0 18px; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .lead-banner-account-strip > span:nth-child(3) { padding-left: 0; border-left: 0; border-top: 1px solid var(--border); }
  .lead-banner-account-strip > span:nth-child(4) { border-top: 1px solid var(--border); }
  .lead-copy-settings-grid .copy-override-row.trailing { grid-template-columns: 1fr; }
  .copy-modal-settings-grid { grid-template-columns: 1fr; }
  .lead-preference-body { grid-template-columns: 1fr; gap: 12px; }
  .lead-preference-legend { width: min(320px,100%); margin: 0 auto; }
}

@media (max-width: 480px) {
  .lead-overview-card .lead-card-head { align-items: flex-start; }
  .lead-profile-banner-top { grid-template-columns: 1fr; align-items: start; }
  .lead-banner-avatar { grid-column: 1; width: 78px; height: 78px; flex-basis: 78px; }
  .lead-banner-content { grid-column: 1 / -1; }
  .lead-banner-identity .copy-detail-name-line h1 { max-width: 70vw; }
  .lead-profile-actions > * { flex: 1 1 calc(50% - 4px); }
  .lead-banner-metrics > span { padding-right: 10px; padding-left: 10px; }
  .lead-banner-account-strip > span { padding-right: 10px; padding-left: 10px; }
  .lead-overview-grid { grid-template-columns: 1fr; }
  .lead-overview-grid > span, .lead-overview-grid > span:nth-child(odd), .lead-overview-grid > span:nth-child(even) { padding-right: 0; padding-left: 0; border-left: 0; border-bottom: 1px solid var(--border); }
  .lead-overview-grid > span:last-child { border-bottom: 0; }
  .lead-performance-primary { grid-template-columns: 1fr; }
  .lead-performance-primary > span:last-child { text-align: left; }
  .lead-equity-main b { font-size: 21px; }
}

body.modal-open { overflow: hidden; }
.moderation-modal { position: fixed; inset: 0; z-index: 1200; padding: 20px; display: grid; place-items: center; background: rgba(3,5,8,.76); backdrop-filter: blur(5px); }
.moderation-dialog { width: min(520px,100%); padding: 22px; display: grid; gap: 18px; border: 1px solid var(--border-hi); border-radius: var(--radius-lg); background: var(--surface); box-shadow: 0 24px 70px rgba(0,0,0,.55); }
.moderation-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.moderation-dialog-head .control-title { font-size: 18px; }
.moderation-dialog-head .control-sub { margin-top: 5px; font-size: 13px; line-height: 1.5; }
.moderation-dialog .community-field > span { font-size: 12px; }
.moderation-dialog .community-field select { height: 40px; font-size: 13px; }
.icon-btn { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-hi); color: var(--text-3); font-size: 21px; font-weight: 300; line-height: 1; }
.icon-btn:hover { border-color: var(--border-hi); color: var(--text-1); }
.moderation-dialog .community-field textarea { width: 100%; min-height: 120px; padding: 12px; resize: vertical; border: 1px solid var(--border); border-radius: var(--radius-sm); outline: 0; background: var(--surface-hi); color: var(--text-1); font: inherit; font-size: 13px; line-height: 1.6; }
.moderation-dialog .community-field textarea:focus { border-color: var(--blue); }
.moderation-dialog .community-field textarea::placeholder { color: var(--text-3); }
.moderation-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }
.moderation-dialog-actions .div-btn, .moderation-dialog-actions .action-btn { height: 38px; padding: 0 15px; font-size: 12px; }
.hard-protection-dialog { width: min(860px,100%); max-height: min(840px,calc(100vh - 40px)); overflow-y: auto; }
.hard-protection-scope { padding: 11px 13px; display: flex; align-items: baseline; gap: 9px; border-left: 2px solid var(--blue); background: rgba(0,82,255,.06); color: var(--text-3); font-size: 12px; line-height: 1.5; }
.hard-protection-scope b { color: var(--text-2); font-weight: 500; white-space: nowrap; }
.copy-modal-section { padding-top: 16px; }
.copy-modal-section + .copy-modal-section { margin-top: 4px; border-top: 1px solid var(--border); }
.copy-modal-section-head { min-height: 28px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.copy-modal-section-head > span { color: var(--text-3); font-size: 12px; }
.copy-exchange-intro, .copy-exchange-note { margin: 7px 0 0; color: var(--text-3); font-size: 11px; line-height: 1.55; }
.copy-exchange-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 12px; }
.copy-exchange-card { position: relative; min-width: 0; min-height: 70px; display: grid; grid-template-columns: 24px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); cursor: pointer; transition: border-color .18s ease,background .18s ease,box-shadow .18s ease; }
.copy-exchange-card input { position: absolute; opacity: 0; pointer-events: none; }
.copy-exchange-check { width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid var(--border-strong); border-radius: 6px; color: transparent; background: var(--surface); font-size: 13px; font-weight: 800; }
.copy-exchange-copy { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.copy-exchange-copy b { color: var(--text); font-size: 13px; }
.copy-exchange-copy small { overflow: hidden; color: var(--text-3); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.copy-exchange-env { padding: 4px 6px; border: 1px solid var(--border); border-radius: 999px; color: var(--text-3); font-size: 9px; letter-spacing: .04em; }
.copy-exchange-card:has(input:checked) { background: color-mix(in srgb,var(--surface-2) 82%,var(--exchange-accent)); border-color: color-mix(in srgb,var(--exchange-accent) 65%,var(--border)); box-shadow: inset 0 0 0 1px color-mix(in srgb,var(--exchange-accent) 22%,transparent); }
.copy-exchange-card:has(input:checked) .copy-exchange-check { border-color: var(--exchange-accent); color: #fff; background: var(--exchange-accent); }
.copy-exchange-card.bybit { --exchange-accent: #f5a524; }
.copy-exchange-card.bitunix { --exchange-accent: #11b7a3; }
.copy-exchange-card.is-unavailable { opacity: .58; }
.copy-exchange-note { margin-top: 10px; }
.copy-modal-settings-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 24px; }
.copy-modal-settings-grid .strategy-field, .copy-modal-settings-grid .lead-copy-toggle { min-height: 55px; margin: 0; padding: 8px 0; border-bottom: 1px solid var(--border); }
.copy-modal-settings-grid .lead-copy-toggle { border-top: 0; }
.copy-modal-settings-grid .lead-copy-toggle > span b { font-size: 12px; font-weight: 500; }
.copy-modal-settings-grid .lead-copy-toggle > span small { margin-top: 3px; font-size: 11px; }
.copy-modal-settings-grid input:disabled { opacity: .42; cursor: not-allowed; }
.protection-rules-section .hard-limit-grid { margin-top: 3px; }
.hard-limit-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 24px; }
.hard-limit-rule { min-width: 0; padding: 15px 0; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 14px; border-top: 1px solid var(--border); }
.hard-limit-rule:nth-child(-n+2) { border-top: 0; }
.hard-limit-rule-wide { grid-column: 1 / -1; }
.hard-limit-copy { min-width: 0; }
.hard-limit-copy b { display: block; color: var(--text-1); font-size: 13px; font-weight: 500; }
.hard-limit-copy small { display: block; margin-top: 4px; color: var(--text-3); font-size: 12px; line-height: 1.45; }
.hard-limit-actions { display: flex; align-items: center; gap: 10px; }
.hard-limit-actions .global-risk-value { width: 132px; margin: 0; }
.toggle-row.hard-limit-toggle { min-height: 30px; padding: 0; border: 0; }
.hard-protection-note { margin: 0; padding-top: 14px; border-top: 1px solid var(--border); color: var(--text-3); font-size: 12px; line-height: 1.55; }
.copy-modal-actions { align-items: center; }
.copy-modal-actions > span { flex: 1; }
.copy-modal-actions .danger-soft { margin-right: auto; }

.toast-stack {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1000;
  width: min(340px, calc(100vw - 32px));
  display: grid;
  gap: 8px;
  pointer-events: none;
}
.toast {
  min-height: 48px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(24, 27, 32, 0.98);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.36);
  color: var(--text-1);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
}
.toast.visible { opacity: 1; transform: translateY(0); }
.toast-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(20, 211, 139, 0.12);
}
.toast.error .toast-dot {
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(255, 77, 94, 0.12);
}
.toast-message { font-size: 12px; font-weight: 500; line-height: 1.4; }

@media (max-width: 1050px) {
  .nav-link { padding-right: 8px; padding-left: 8px; font-size: 12px; }
  .nav-right { gap: 8px; }
  .community-hero-copy { width: 72%; padding-right: 24px; }
  .community-hero-image { object-position: 58% center; }
  .community-hero-shade { background: linear-gradient(90deg,rgba(8,11,17,.99) 0%,rgba(8,11,17,.94) 39%,rgba(8,11,17,.48) 68%,rgba(8,11,17,.12) 100%),linear-gradient(0deg,rgba(8,11,17,.75),transparent 45%); }
  .community-feature-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .community-feature-card.upcoming { grid-column: 1 / -1; min-height: 250px; }
  .community-feature-card.upcoming { grid-template-columns: 66px minmax(0,1fr); padding-bottom: 78px; }
  .community-feature-card.upcoming .community-feature-tags { grid-column: 2; }
  .community-feature-card.upcoming .community-feature-cta { width: calc(100% - 122px); }
  .copy-trader-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .copy-profile-page-grid { grid-template-columns: 1fr; }
  .copy-network-strip, .copy-directory-head { align-items: stretch; flex-direction: column; }
  .copy-directory-tools { flex-wrap: wrap; }
  .copy-detail-grid { grid-template-columns: 1fr; }
  .copy-settings-panel { width: 100%; }
  .exchange-directory { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 780px) {
  :root { --page-pad: 16px; }
  .community-welcome-hero { min-height: 620px; }
  .community-hero-image { opacity: .66; object-position: 64% center; }
  .community-hero-shade { background: linear-gradient(90deg,rgba(8,11,17,.97),rgba(8,11,17,.68)),linear-gradient(0deg,rgba(8,11,17,.97) 0%,rgba(8,11,17,.46) 62%,rgba(8,11,17,.28) 100%); }
  .community-hero-copy { width: 100%; min-height: 620px; padding: 42px 34px 34px; justify-content: flex-end; }
  .community-hero-copy h1 { max-width: 580px; }
  .community-hero-copy > p { max-width: 560px; }
  .community-hero-proof { width: 100%; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .community-hero-proof > span { padding: 13px 12px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .community-hero-proof > span:first-child { padding-left: 12px; }
  .community-hero-proof > span:nth-child(2) { border-right: 0; }
  .community-hero-proof > span:nth-child(n+3) { border-bottom: 0; }
  .community-intro { margin-top: 42px; grid-template-columns: 1fr; align-items: start; gap: 14px; }
  .community-intro > p { max-width: 610px; }
  .community-feature-card.upcoming { min-height: 360px; padding-bottom: 28px; display: flex; }
  .community-feature-card.upcoming .community-feature-top { display: flex; }
  .community-feature-card.upcoming .community-feature-status { position: static; }
  .community-feature-card.upcoming .community-feature-copy { margin-top: 34px; }
  .community-feature-card.upcoming .community-feature-tags { margin-top: 22px; }
  .community-feature-card.upcoming .community-feature-cta { position: relative; right: auto; bottom: auto; width: 100%; }
  .community-spirit-strip { grid-template-columns: auto minmax(0,1fr); }
  .community-spirit-button { grid-column: 2; width: fit-content; }
  .copy-exchange-grid { grid-template-columns: 1fr; }
  .copy-modal-settings-grid { grid-template-columns: 1fr; }
  .copy-hub-hero { padding: 24px; grid-template-columns: 1fr; }
  .copy-guide-panel { min-height: 220px; }
  .copy-hub-actions { grid-template-columns: 1fr; }
  .api-command-header { align-items: flex-start; flex-direction: column; gap: 20px; }
  .api-command-status { width: 100%; min-width: 0; padding: 14px 15px; border: 1px solid var(--border); }
  .api-trust-strip { grid-template-columns: 1fr; }
  .api-trust-strip > span { border-right: 0; border-bottom: 1px solid var(--border); }
  .api-trust-strip > span:last-child { border-bottom: 0; }
  .api-trust-strip small { white-space: normal; }
  .exchange-directory { grid-template-columns: 1fr; }
  .api-manager-label { padding: 12px 16px; align-items: flex-start; flex-direction: column; gap: 4px; }
  .api-routing-stage-head { align-items: flex-start; flex-direction: column; gap: 10px; }
  .api-routing-flow { grid-template-columns: 1fr; }
  .api-routing-stack, .api-routing-core-block { width: min(520px,100%); margin: 0 auto; }
  .api-flow-bridge { height: 34px; }
  .api-flow-bridge > span { width: 1px; height: 34px; margin: 0 auto; background: linear-gradient(180deg,var(--border-hi),rgba(0,82,255,.75)); }
  .api-flow-bridge > span::after { top: auto; right: calc(50% - 3px); bottom: 1px; transform: rotate(135deg); }
  .api-flow-bridge > b { display: none; }
  .api-routing-facts { grid-template-columns: 1fr; }
  .api-routing-facts > span, .api-routing-facts > span:first-child, .api-routing-facts > span:last-child { padding: 13px 0; border-right: 0; border-bottom: 1px solid var(--border); }
  .api-routing-facts > span:last-child { border-bottom: 0; }
  .api-workspace-body { grid-template-columns: 1fr; }
  .api-connection-overview { min-height: 0; border-right: 0; border-bottom: 1px solid var(--border); }
  .api-progress { padding: 0 16px; }
  .api-progress > span:not(:last-child)::after { right: 10px; left: 31px; }
  .api-progress b { display: none; }
  .topnav-inner { height: auto; min-height: 56px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; gap: 10px; }
  .nav-links { order: 3; width: 100%; overflow-x: auto; }
  .nav-links.admin-open, .nav-links.community-open { overflow: visible; }
  .nav-link { flex: 1; white-space: nowrap; }
  .admin-nav, .community-nav { flex: 1; }
  .admin-nav-trigger, .community-nav-trigger { width: 100%; justify-content: center; }
  .admin-nav-popover { position: fixed; top: 108px; right: var(--page-pad); }
  .community-nav-popover { position: fixed; top: 108px; right: var(--page-pad); left: var(--page-pad); width: auto; }
  .page { padding-top: 28px; }
  .error-page .topnav-inner { gap: 10px; }
  .error-page .nav-profile-label, .error-page .nav-profile-chevron { display: none; }
  .error-page .nav-profile-button { padding-right: 5px; }
  .error-page .error-view { min-height: 0; }
  .error-panel { min-height: 350px; padding: 42px 28px; }
  .error-panel::after { right: 14px; font-size: 128px; }
  .error-actions { align-items: stretch; flex-direction: column; }
  .error-primary, .error-secondary { width: 100%; }
  .footer-main { align-items: flex-start; flex-direction: column; gap: 14px; }
  .footer-links { width: 100%; justify-content: flex-start; flex-wrap: wrap; gap: 10px 18px; }
  .port-header { flex-direction: column; }
  .port-header-right { width: 100%; align-items: stretch; }
  .exchange-filter { width: 100%; }
  .exchange-filter-btn { min-width: 0; flex: 1; }
  .port-value { font-size: 34px; }
  .view-title { font-size: 32px; }
  .kpi-row, .kpi-row.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-row.portfolio-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ptable-head, .history-head { display: none; }
  .ptable-row { grid-template-columns: 1fr auto; gap: 6px; }
  .ptable-row > .strategy-cell, .ptable-row > .pmono, .ptable-row > .pstatus { display: none; }
  .ptable-row > .ppnl { align-items: flex-end; text-align: right; }
  .mobile-strategy-label { display: inline; color: var(--text-3); font-size: 12px; font-weight: 400; }
  .history-row .trade-symbol-main { align-items: flex-start; flex-direction: column; gap: 2px; }
  .contact-row { grid-template-columns: 1fr 88px; }
  .contact-tags, .contact-status { display: none; }
  .funding-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 8px; }
  .fi-sep { display: none; }
  .trade-chart-card { height: 420px; }
  .bot-header .chart-controls { width: 100%; align-self: stretch; justify-content: stretch; }
  .chart-control, .chart-symbol-control { flex: 1; }
  .chart-control select, .chart-symbol-control input { width: 100%; min-width: 0; }
  .control-card { grid-template-columns: 1fr; }
  .config-loadout-card { grid-template-columns: 1fr; align-items: stretch; gap: 16px; }
  .config-loadout-manager { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .config-loadout-actions { grid-column: 1 / -1; }
  .config-loadout-actions .action-btn { flex: 1; }
  .global-risk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .symbol-blacklist-panel { grid-template-columns: 1fr; }
  .global-risk-head { align-items: stretch; flex-direction: column; }
  .global-risk-head-actions { justify-content: flex-start; }
  .hard-limit-grid { grid-template-columns: 1fr; }
  .hard-limit-rule:nth-child(2) { border-top: 1px solid var(--border); }
  .hard-limit-rule-wide { grid-column: auto; }
  .entry-quality-card .global-risk-head { align-items: flex-start; flex-direction: row; }
  .entry-quality-card .global-risk-head-actions { justify-content: flex-end; }
  .quality-filter-layout { grid-template-columns: minmax(0, 1fr) minmax(150px, .6fr); }
  .quality-filter-fields { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quality-filter-parabolic { grid-column: 1; }
  .quality-filter-save { grid-column: 2; }
  .market-guard-layout { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .market-guard-toggle { grid-column: 1 / 3; }
  .strategy-control-grid { grid-template-columns: 1fr; }
  .control-actions { width: 100%; }
  .control-actions .action-btn { flex: 1; }
  .history-row { grid-template-columns: 1fr auto; }
  .history-row > span:not(.trade-symbol):not(.trade-pnl) { display: none; }
  .history-row .trade-pnl { text-align: right; }
  .history-executions { padding: 2px 12px 10px 24px; }
  .history-execution-row { grid-template-columns: 64px 1fr auto; gap: 8px; }
  .history-execution-row > span:nth-child(3), .history-execution-row > span:nth-child(4), .history-execution-row > span:nth-child(5) { display: none; }
  .settings-grid { grid-template-columns: 1fr; }
  .analytics-range { width: 100%; }
  .analytics-range-btn { flex: 1; }
  .analytics-header-controls { width: 100%; align-items: stretch; flex-direction: column; }
  .analytics-mode-switch { width: 100%; }
  .analytics-mode-btn { flex: 1; }
  .analytics-chart-card { height: 280px; }
  #analyticsChart { height: 230px; }
  .analytics-calendar-toolbar { align-items: stretch; flex-direction: column; }
  .analytics-calendar-navigation { width: 100%; }
  .analytics-calendar-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .analytics-calendar-kpis > div { padding: 8px 12px; border-bottom: 1px solid var(--border); }
  .analytics-edge-toolbar { align-items: stretch; flex-direction: column; }
  .analytics-settings-intro { align-items: flex-start; flex-direction: column; }
  .analytics-walk-intro { align-items: flex-start; flex-direction: column; }
  .analytics-walk-grid { grid-template-columns: 1fr; }
  .analytics-strategy-filter { width: 100%; }
  .analytics-strategy-btn { flex: 1; }
  .community-header-controls { width: 100%; }
  .community-header-controls label { flex: 1; }
  .community-publish-card { grid-template-columns: 1fr; align-items: stretch; gap: 16px; }
  .community-grid { grid-template-columns: 1fr; }
  .community-feature-grid, .copy-trader-grid { grid-template-columns: 1fr; }
  .copy-network-metrics { grid-template-columns: 1fr; }
  .copy-network-metrics > div { padding: 10px 0; border-right: 0; border-bottom: 1px solid var(--border); }
  .copy-network-metrics > div:last-child { border-bottom: 0; }
  .copy-network-actions, .copy-directory-tools { width: 100%; }
  .copy-network-actions > *, .copy-period-select, .copy-period-select select, .copy-search, .copy-search input { flex: 1; width: 100%; }
  .copy-sort-tabs { order: 3; width: 100%; }
  .copy-sort-tabs button { flex: 1; min-width: 0; }
  .copy-detail-header { grid-template-columns: auto minmax(0,1fr); }
  .copy-detail-head-meta { grid-column: 1 / -1; justify-content: flex-start; flex-wrap: wrap; padding-left: 48px; }
  .copy-detail-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .copy-detail-metrics article:nth-child(2) { border-right: 0; }
  .copy-detail-metrics article:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .copy-detail-chart-section { height: 240px; }
  #copyDetailEquityChart { height: 180px; }
  .profile-summary { flex-wrap: wrap; }
  .profile-avatar-actions { order: 3; width: 100%; margin-left: 56px; }
  .totp-setup { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .admin-moderation-head { align-items: stretch; flex-direction: column; }
  .admin-moderation-tools { justify-content: space-between; }
  .admin-report-target, .admin-report-target.lead { grid-template-columns: 1fr; gap: 9px; }
  .admin-target-state { width: fit-content; }
  .admin-report-card-foot { align-items: flex-start; flex-direction: column; }
  .admin-report-actions { width: 100%; justify-content: flex-start; }
  .community-feature-card.upcoming { grid-column: auto; }
}

@media (max-width: 480px) {
  .brand-name { display: none; }
  .community-welcome-hero { min-height: 650px; border-radius: 16px; }
  .community-hero-image { height: 53%; opacity: .78; object-position: 63% top; }
  .community-hero-shade { background: linear-gradient(0deg,#080b11 44%,rgba(8,11,17,.58) 73%,rgba(8,11,17,.2) 100%); }
  .community-hero-copy { min-height: 650px; padding: 28px 22px 22px; }
  .community-hero-copy h1 { font-size: 39px; }
  .community-hero-copy > p { margin-top: 17px; font-size: 13px; }
  .community-hero-directory { width: 100%; margin-top: 20px; }
  .community-hero-proof { margin-top: 24px; }
  .community-hero-proof b { font-size: 17px; }
  .community-hero-proof small { white-space: normal; }
  .community-intro { margin-top: 36px; }
  .community-feature-card { min-height: 390px; border-radius: 15px; }
  .community-feature-copy { margin-top: 34px; }
  .community-feature-copy h2 { font-size: 26px; }
  .community-feature-card.upcoming { min-height: 390px; }
  .community-spirit-strip { padding: 22px; grid-template-columns: 1fr; }
  .community-spirit-avatars { padding-left: 8px; }
  .community-spirit-button { grid-column: 1; width: 100%; }
  .api-command-title h1 { font-size: 31px; }
  .api-routing-flow { padding: 18px 13px; }
  .api-routing-core-block { align-items: flex-start; flex-direction: column; }
  .api-directory-head { align-items: flex-start; flex-direction: column; gap: 7px; }
  .exchange-directory { grid-template-columns: 1fr; }
  .exchange-card { grid-template-columns: 1fr; grid-template-rows: auto auto auto auto auto; }
  .exchange-card-head, .exchange-card-copy, .exchange-card-status, .exchange-card-metrics, .exchange-card > button { grid-column: 1; }
  .exchange-card-metrics { grid-row: auto; margin-top: 14px; grid-template-columns: repeat(2,minmax(0,1fr)); border-top: 1px solid var(--border); border-left: 0; }
  .exchange-card-metrics > span { padding: 12px 10px 0 0; border-right: 1px solid var(--border); border-bottom: 0; }
  .exchange-card-metrics > span:last-child { padding-left: 12px; border-right: 0; }
  .api-workspace-head, .api-workspace-actions { align-items: stretch; flex-direction: column; }
  .api-workspace-title { align-items: flex-start; }
  .api-workspace-actions .div-btn { width: 100%; }
  .api-connection-overview, .api-credentials-form { padding: 19px 16px; }
  .nav-profile-button { width: 38px; padding: 4px; justify-content: center; }
  .nav-profile-label, .nav-profile-chevron { display: none; }
  .kpi-row, .kpi-row.three { grid-template-columns: 1fr; }
  .kpi-row.portfolio-kpis { grid-template-columns: 1fr; }
  .portfolio-chart-head { height: auto; min-height: 48px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 5px; }
  .portfolio-chart-legend { flex-wrap: wrap; }
  .port-value-row { flex-wrap: wrap; }
  .strategy-field-grid { grid-template-columns: 1fr; }
  .strategy-trailing-inputs { grid-template-columns: 1fr; }
  .global-risk-grid { grid-template-columns: 1fr; }
  .config-loadout-manager { grid-template-columns: 1fr; }
  .config-loadout-actions { grid-column: auto; flex-wrap: wrap; }
  .config-loadout-actions .action-btn { min-width: calc(50% - 4px); }
  .config-loadout-actions .action-btn:last-child { flex-basis: 100%; }
  .recovery-code-grid { grid-template-columns: 1fr; }
  .symbol-blacklist-entry { width: 100%; }
  .copy-detail-name-line { align-items: flex-start; flex-direction: column; gap: 3px; }
  .copy-detail-name-line h1 { font-size: 19px; }
  .copy-detail-person p { white-space: normal; }
  .copy-detail-head-meta { padding-left: 0; }
  .copy-detail-metrics { grid-template-columns: 1fr; }
  .copy-detail-metrics article { border-right: 0; border-bottom: 1px solid var(--border); }
  .copy-detail-metrics article:last-child { border-bottom: 0; }
  .copy-override-row { grid-template-columns: 1fr; }
  .entry-quality-card .global-risk-head { align-items: stretch; flex-direction: column; }
  .entry-quality-card .global-risk-head-actions { justify-content: flex-start; }
  .entry-quality-card .global-risk-toggle { width: auto; }
  .quality-filter-layout { grid-template-columns: 1fr; }
  .quality-filter-fields { grid-column: auto; grid-template-columns: 1fr; }
  .quality-filter-parabolic, .quality-filter-save { grid-column: auto; }
  .market-guard-layout { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .market-guard-rule, .market-guard-toggle, .market-guard-save { grid-column: 1 / -1; }
  .market-guard-save { width: 100%; }
  .analytics-walk-compare { grid-template-columns: 1fr; }
  .tf-group { width: 100%; }
  .tf { flex: 1; }
  .field { grid-template-columns: 1fr; gap: 6px; }
  .api-security-grid { grid-template-columns: 1fr; }
  .api-security-grid > div, .api-security-grid > div:nth-child(n+3) { padding: 11px 0; border-right: 0; border-bottom: 1px solid var(--border); }
  .api-security-grid > div:last-child { border-bottom: 0; }
  .api-security-foot { align-items: stretch; flex-direction: column; }
  .api-security-foot .div-btn { width: 100%; }
  .profile-hint { margin-left: 0; }
  .profile-action-row .action-btn { width: 100%; }
  .approval-row { grid-template-columns: 1fr; gap: 5px; }
  .approval-actions { margin-top: 6px; justify-content: stretch; }
  .approval-actions .action-btn { flex: 1; }
  .admin-users-head { display: none; }
  .admin-telemetry-head { align-items: flex-start; }
  .admin-telemetry-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .admin-telemetry-grid > div { border-bottom: 1px solid var(--border); }
  .admin-telemetry-grid > div:nth-child(2n) { border-right: 0; }
  .admin-telemetry-grid > div:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .admin-shadow-head { align-items: flex-start; flex-direction: column; }
  .admin-shadow-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .admin-shadow-grid > div { border-bottom: 1px solid var(--border); }
  .admin-shadow-grid > div:nth-child(2n) { border-right: 0; }
  .admin-shadow-grid > div:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .admin-market-cache-grid > div:last-child { grid-column: auto; }
  .admin-shadow-strategy { grid-template-columns: 1fr auto; gap: 5px 12px; }
  .admin-shadow-strategy > span:nth-child(2) { grid-column: 1 / -1; }
  .admin-shadow-strategy > span:nth-child(3) { grid-column: 1; }
  .admin-shadow-strategy strong { grid-column: 2; grid-row: 2 / span 2; }
  .admin-user-row { grid-template-columns: 1fr auto; gap: 8px 14px; }
  .admin-user-row > :nth-child(2) { grid-column: 1 / -1; }
  .admin-user-row .div-btn { grid-column: 2; grid-row: 1; }
  .admin-editor-grid { grid-template-columns: 1fr; }
  .admin-access-grid { grid-template-columns: 1fr; }
  .admin-moderation-tools { align-items: stretch; flex-direction: column; }
  .admin-moderation-tools label { width: 100%; }
  .admin-report-card-head { align-items: flex-start; }
  .admin-report-card-head > div { align-items: flex-start; flex-direction: column; }
  .admin-report-actions > button { flex: 1; }
  .community-header-controls { align-items: stretch; flex-direction: column; }
  .community-header-controls label { width: 100%; }
  .community-publish-form { grid-template-columns: 1fr; }
  .community-publish-form .action-btn { width: 100%; }
  .community-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .community-metrics > div:nth-child(2) { border-right: 0; }
  .community-metrics > div:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .community-metrics > div:first-child, .community-metrics > div:nth-child(3) { padding-left: 0; }
  .community-social-row { align-items: flex-start; flex-direction: column; }
  .community-actions { flex-wrap: wrap; }
  .community-actions .danger-soft { margin-left: 0; }
  .community-feature-card { min-height: 300px; padding: 18px; }
  .community-feature-status { top: 18px; right: 18px; }
  .copy-profile-head { align-items: flex-start; }
  .copy-hub-main h1 { font-size: 34px; }
  .copy-hub-metrics { grid-template-columns: 1fr; }
  .copy-hub-metrics > span, .copy-hub-metrics > span:first-child, .copy-hub-metrics > span:last-child { padding: 11px 0; border-right: 0; border-bottom: 1px solid var(--border-hi); }
  .copy-hub-metrics > span:last-child { border-bottom: 0; }
  .copy-guide-panel { padding: 20px; grid-template-columns: minmax(0,1fr) 104px; }
  .copy-guide-visual { width: 104px; transform: scale(.82); transform-origin: center; }
  .copy-profile-editor, .copy-profile-preview { padding: 17px; }
  .copy-profile-editor-head, .copy-profile-save-row { align-items: flex-start; flex-direction: column; }
  .copy-profile-save-row .action-btn { width: 100%; }
  .copy-profile-form { grid-template-columns: 1fr; }
  .copy-profile-form .action-btn { width: 100%; }
  .copy-config-grid { grid-template-columns: 1fr; }
  .copy-config-panel.open { max-height: 470px; }
  .copy-config-foot { align-items: stretch; flex-direction: column; }
  .copy-config-foot .action-btn { width: 100%; }
  .moderation-modal { padding: 12px; }
  .hard-protection-dialog { padding: 18px; }
  .hard-protection-scope { align-items: flex-start; flex-direction: column; gap: 2px; }
  .hard-limit-grid { grid-template-columns: 1fr; }
  .hard-limit-rule-wide { grid-column: auto; }
  .hard-limit-rule { grid-template-columns: 1fr; gap: 10px; }
  .hard-limit-actions { justify-content: space-between; }
  .hard-limit-actions .global-risk-value { width: min(190px,calc(100% - 52px)); }
  .moderation-dialog-actions > * { flex: 1; }
  .copy-modal-actions { flex-wrap: wrap; }
  .copy-modal-actions > span { display: none; }
  .copy-modal-actions .danger-soft { flex-basis: 100%; }
  .toast-stack { right: 16px; bottom: 16px; }
}
.strategy-exchange-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 18px;
  align-items: center;
  padding: 14px 15px;
  border: 1px solid var(--line, #27303c);
  border-radius: 10px;
  background: rgba(10, 15, 22, 0.48);
}

.strategy-exchange-panel > span {
  display: grid;
  gap: 3px;
}

.strategy-exchange-panel > span b {
  color: var(--text, #f4f7fb);
  font-size: 13px;
}

.strategy-exchange-panel > span small,
.strategy-exchange-hint {
  color: var(--muted, #748299);
  font-size: 11px;
  line-height: 1.45;
}

.strategy-exchange-options {
  display: flex;
  gap: 7px;
}

.strategy-exchange-options label {
  cursor: pointer;
}

.strategy-exchange-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.strategy-exchange-options span {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  padding: 0 13px;
  border: 1px solid #2b3542;
  border-radius: 8px;
  color: #91a0b5;
  background: #111720;
  font-size: 11px;
  font-weight: 700;
  transition: border-color .18s ease, color .18s ease, background-color .18s ease;
}

.strategy-exchange-options input:checked + span {
  border-color: rgba(21, 117, 255, .72);
  color: #eef6ff;
  background: rgba(21, 117, 255, .14);
}

.strategy-exchange-options label.is-unavailable span {
  opacity: .55;
}

.strategy-exchange-hint {
  grid-column: 1 / -1;
}

@media (max-width: 620px) {
  .strategy-exchange-panel { grid-template-columns: 1fr; }
  .strategy-exchange-hint { grid-column: auto; }
}

/* Astra labels, analytics and strategy controls. */
.strategy-cell.astra { color: var(--astra-soft); }
.strategy-cell.astra i, .analytics-dot.astra, .community-strategy.astra i,
.community-loadout-surface .community-rule-card.astra .community-rule-head i { background: var(--astra); }
.strategy-cell.astra i { box-shadow: 0 0 7px rgba(237,92,174,.38); }
.astra-explanation { margin: 12px 0; color: var(--muted, #64748b); font-size: 12px; line-height: 1.65; }
.community-strategy-tag.astra { color: var(--astra-soft); background: var(--surface-hi); }
.astra-regime-card { grid-column: 1 / -1; padding: 16px; }
.astra-regime-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.astra-regime-row strong { margin-left: auto; }
.astra-card .toggle-row > span { min-width: 0; max-width: calc(100% - 54px); }
.astra-card .toggle-row > i { flex-shrink: 0; }

/* Fixed and equity-based strategy margin share the existing settings grid. */
.margin-mode-select { width: 100%; min-width: 0; height: 35px; }
.margin-sizing-field[hidden], .margin-sizing-hint[hidden] { display: none; }
.margin-sizing-hint { grid-column: 1 / -1; color: var(--text-2); font-size: 11px; line-height: 1.6; }

/* Public community pages share the content, with no personal controls for guests. */
body[data-guest="true"] .community-publish-card,
body[data-guest="true"] .copy-hub-actions,
body[data-guest="true"] #copyDetailSettingsPanel,
body[data-guest="true"] #openHardProtectionBtn {
  display: none !important;
}
.public-nav a { text-decoration: none; }
.public-auth-actions { gap: 10px; }
.public-auth-actions .action-btn { display: inline-flex; align-items: center; justify-content: center; }
.public-auth-actions .div-btn { color: var(--text); }
.public-signin-note { color: var(--text-muted); padding: 12px 0; }
.public-signin-note a { color: var(--green); text-decoration: underline; }
@media (max-width: 700px) {
  .public-nav .topnav-inner { flex-wrap: wrap; gap: 10px; padding: 10px 16px; }
  .public-nav .nav-links { order: 3; width: 100%; justify-content: center; }
  .public-nav .nav-right { margin-left: auto; }
  .public-auth-actions .div-btn, .public-auth-actions .action-btn { padding: 8px 10px; font-size: 12px; }
}

/* Coin Detector: scoped performance, independent of trade execution. */
.trades-nav-option { grid-template-columns: minmax(0, 1fr); }
#coinDetectorView .port-hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
#coinDetectorRefresh { padding: 10px 16px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text-1); cursor: pointer; }
.coin-detector-kpis { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin: 28px 0; }
.coin-detector-controls { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; padding: 20px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.coin-detector-controls label { display: grid; gap: 8px; min-width: 0; color: var(--text-3); font-size: 12px; }
.coin-detector-controls input, .coin-detector-controls select { width: 100%; min-width: 0; height: 40px; padding: 0 11px; border: 1px solid var(--border); border-radius: 7px; background: var(--bg, #101216); color: var(--text-1); font: inherit; color-scheme: dark; }
.coin-detector-controls input:focus, .coin-detector-controls select:focus { outline: 2px solid #0052ff; outline-offset: 2px; }
.coin-detector-rule, .coin-detector-footnote { color: var(--text-3); font-size: 12px; line-height: 1.8; margin: 18px 0; }
.coin-detector-meta { color: var(--text-3); font-size: 12px; line-height: 1.6; margin: 14px 0; }
.coin-detector-results { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.coin-detector-results > .empty-row { grid-column: 1 / -1; }
.coin-detector-card { min-width: 0; padding: 22px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.coin-detector-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.coin-detector-card h2 { margin: 0; font-size: 18px; font-weight: 600; }
.coin-detector-card-head p { margin: 5px 0 0; color: var(--text-3); font-size: 12px; }
.coin-status { display: inline-block; padding: 5px 8px; border: 1px solid var(--border); border-radius: 6px; font-size: 10px; line-height: 1.4; text-align: center; }
.coin-status.neg { background: rgba(246,70,93,.07); border-color: rgba(246,70,93,.2); }
.coin-detector-stats { display: grid; grid-template-columns: 1fr 1.4fr; gap: 20px 10px; margin: 24px 0 20px; }
.coin-detector-stats dt { margin-bottom: 7px; color: var(--text-3); font-size: 11px; }
.coin-detector-stats dd { margin: 0; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.coin-detector-totals { display: flex; flex-wrap: wrap; gap: 10px 16px; border-top: 1px solid var(--border); padding-top: 14px; color: var(--text-3); font-size: 11px; }
.coin-detector-totals b { font-weight: 500; }
.coin-detector-recent { font-size: 12px; color: var(--text-2); line-height: 1.7; margin: 14px 0; }
.coin-detector-card summary { font-size: 12px; color: var(--text-2); cursor: pointer; padding: 4px 0; }
.coin-result-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.coin-result { font-size: 11px; padding: 5px 7px; border: 1px solid var(--border); border-radius: 5px; }
.coin-history-link { font-size: 12px; color: #8eacff; }
@media (max-width: 780px) {
  .nav-links.trades-open { overflow: visible; }
}
@media (max-width: 640px) {
  .coin-detector-kpis { grid-template-columns: 1fr; gap: 10px; }
  .coin-detector-controls { grid-template-columns: 1fr 1fr; padding: 14px; }
  .coin-detector-results { grid-template-columns: 1fr; }
  .coin-detector-card { padding: 18px; }
  #coinDetectorView .port-hero { align-items: flex-start; flex-direction: column; gap: 14px; }
}

.coin-blacklist-action { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin: 16px 0; padding-top: 14px; border-top: 1px solid var(--border); }
.coin-blacklist-action span { font-size: 12px; color: var(--text-2); }
.coin-blacklist-action button { padding: 8px 12px; border: 1px solid var(--border-hi); border-radius: 7px; background: var(--surface-hi); color: var(--text-1); cursor: pointer; font: inherit; font-size: 12px; }
.coin-blacklist-action button[aria-pressed="true"] { border-color: rgba(246,70,93,.4); }
.coin-blacklist-action button:hover { border-color: #8eacff; }
.coin-blacklist-action button:focus-visible { outline: 2px solid #8eacff; outline-offset: 3px; }
.coin-blacklist-action button:disabled { opacity: .5; cursor: wait; }
