:root {
  font-family: "Segoe UI", Arial, sans-serif;
  color: #1f2937;
  background: #f5f6f8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  display: flex;
  min-width: 320px;
  min-height: 100vh;
  background: #f5f6f8;
}

body.landingActive {
  display: block;
  background: #ffffff;
}

body.landingActive > .side,
body.landingActive > .main {
  display: none;
}

.landingPage {
  min-height: 100vh;
  background: #ffffff;
  color: #0f172a;
}

.landingHeader {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 clamp(22px, 5vw, 88px);
  border-bottom: 1px solid #e6ebf2;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.landingBrand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.landingBrand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #0f172a;
}

.landingBrand span {
  display: grid;
  gap: 2px;
}

.landingBrand strong {
  font-size: 18px;
}

.landingBrand small {
  color: #64748b;
  font-size: 12px;
}

.landingNav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.landingNav button,
.landingActions button,
.landingSectionHead button {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 18px;
  background: transparent;
  color: #0f172a;
  font-weight: 700;
  cursor: pointer;
}

.landingNav .primary,
.landingActions button,
.landingSectionHead button {
  background: #0b63ce;
  color: #ffffff;
}

.landingActions .secondaryButton {
  border-color: #cbd5e1;
  background: #ffffff;
  color: #0f172a;
}

.landingMain {
  display: grid;
  gap: 28px;
  width: min(1240px, calc(100% - 44px));
  margin: 0 auto;
  padding: 38px 0 64px;
}

.landingHero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 34px;
  align-items: center;
  min-height: 520px;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(11, 99, 206, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(11, 99, 206, 0.05) 1px, transparent 1px),
    #f8fbff;
  background-size: 34px 34px;
}

.landingHeroCopy {
  display: grid;
  gap: 18px;
}

.landingEyebrow,
.landingSectionHead span {
  color: #0b63ce;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.landingHero h1 {
  max-width: 720px;
  margin: 0;
  color: #0f172a;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.12;
  letter-spacing: 0;
}

.landingHero p {
  max-width: 660px;
  margin: 0;
  color: #475569;
  font-size: 17px;
  line-height: 1.9;
}

.landingActions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.landingActions button {
  min-width: 136px;
  min-height: 46px;
}

.landingPreview {
  display: grid;
  gap: 18px;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  padding: 22px;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.1);
}

.landingPreviewHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.landingPreviewHead span,
.landingSignalMetrics span,
.landingSignalScore span,
.landingStat span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.landingPreviewHead b {
  color: #0f172a;
  font-size: 19px;
}

.landingPreviewCurve {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: end;
  gap: 10px;
  min-height: 210px;
  border: 1px solid #e6ebf2;
  border-radius: 8px;
  padding: 18px;
  background: #f8fafc;
}

.landingPreviewCurve i {
  display: block;
  min-height: 46px;
  border-radius: 5px 5px 2px 2px;
  background: #0f766e;
}

.landingPreviewCurve i:nth-child(1) { height: 34%; }
.landingPreviewCurve i:nth-child(2) { height: 48%; }
.landingPreviewCurve i:nth-child(3) { height: 42%; background: #2563eb; }
.landingPreviewCurve i:nth-child(4) { height: 66%; }
.landingPreviewCurve i:nth-child(5) { height: 78%; background: #2563eb; }
.landingPreviewCurve i:nth-child(6) { height: 90%; }

.landingPreviewStats,
.landingStrip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.landingStrip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.landingStat {
  display: grid;
  gap: 7px;
  min-height: 88px;
  align-content: center;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  padding: 15px;
  background: #ffffff;
}

.landingStat b {
  color: #0f172a;
  font-size: 24px;
}

.landingStat.gain b,
.landingSignalMetrics .gain {
  color: #047857;
}

.landingSignalMetrics .loss {
  color: #b91c1c;
}

.landingSection,
.landingFeatureGrid article {
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #ffffff;
}

.landingSection {
  padding: 22px;
}

.landingSectionHead {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.landingSectionHead h2 {
  margin: 4px 0 0;
  font-size: 28px;
}

.landingSignals {
  display: grid;
  gap: 12px;
}

.landingSignalCard {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) minmax(130px, 0.32fr) 74px;
  gap: 16px;
  align-items: center;
  border: 1px solid #e6ebf2;
  border-radius: 8px;
  padding: 16px;
  background: #fbfdff;
}

.landingSignalIcon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 8px;
  background: #eaf3ff;
  color: #0b63ce;
  font-weight: 900;
}

.landingSignalMain h3 {
  margin: 0 0 5px;
  color: #0f172a;
  font-size: 17px;
}

.landingSignalMain p {
  margin: 0;
  color: #64748b;
}

.landingSignalTags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.landingSignalTags span {
  border: 1px solid #dbe4f0;
  border-radius: 999px;
  padding: 3px 8px;
  background: #ffffff;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}

.landingSignalMetrics,
.landingSignalScore {
  display: grid;
  gap: 4px;
  justify-items: start;
}

.landingSignalMetrics b,
.landingSignalScore b {
  color: #0f172a;
  font-size: 22px;
}

.landingSignalMetrics em {
  color: #64748b;
  font-size: 12px;
  font-style: normal;
}

.landingSignalScore {
  justify-items: center;
  border-left: 1px solid #e6ebf2;
}

.landingEmpty {
  padding: 26px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  color: #64748b;
  text-align: center;
}

.landingFeatureGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.landingFeatureGrid article {
  display: grid;
  gap: 10px;
  min-height: 142px;
  align-content: start;
  padding: 22px;
}

.landingFeatureGrid b {
  color: #0f172a;
  font-size: 18px;
}

.landingFeatureGrid p {
  margin: 0;
  color: #64748b;
  line-height: 1.8;
}

.landingHeader.freebirdStyle {
  min-height: 76px;
  border-bottom: 1px solid rgba(203, 213, 225, 0.65);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 36px rgba(15, 23, 42, 0.05);
}

.landingHeader.freebirdStyle .landingNav {
  gap: 8px;
}

.landingHeader.freebirdStyle .landingNav button {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: #334155;
}

.landingHeader.freebirdStyle .landingNav button:hover {
  background: #eef6ff;
  color: #0b63ce;
}

.landingHeader.freebirdStyle .landingNav .primary {
  background: #0b63ce;
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(11, 99, 206, 0.22);
}

.landingMain {
  gap: 34px;
}

.landingHero.freebirdHero {
  position: relative;
  overflow: hidden;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 0.78fr);
  min-height: 630px;
  border: 0;
  border-radius: 18px;
  background:
    radial-gradient(circle at 84% 18%, rgba(79, 70, 229, 0.35), transparent 30%),
    radial-gradient(circle at 18% 76%, rgba(14, 165, 233, 0.28), transparent 34%),
    linear-gradient(135deg, #07152f 0%, #0b2b6f 48%, #0b63ce 100%);
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.18);
}

.landingHero.freebirdHero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.55), transparent 72%);
}

.landingHero.freebirdHero > * {
  position: relative;
  z-index: 1;
}

.landingHero.freebirdHero .landingEyebrow {
  width: max-content;
  border: 1px solid rgba(191, 219, 254, 0.35);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #bfdbfe;
}

.landingHero.freebirdHero h1 {
  color: #ffffff;
  font-size: clamp(40px, 5.1vw, 68px);
  line-height: 1.08;
}

.landingHero.freebirdHero p {
  color: #dbeafe;
}

.landingHero.freebirdHero .landingActions button {
  min-height: 50px;
  border-radius: 999px;
  background: #ffffff;
  color: #0b2b6f;
}

.landingHero.freebirdHero .landingActions .secondaryButton {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.landingTrustLine {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.landingTrustLine span {
  min-height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 5px 11px;
  background: rgba(255, 255, 255, 0.08);
  color: #e0f2fe;
  font-size: 12px;
  font-weight: 800;
}

.productPreview {
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.productWindow {
  display: grid;
  gap: 16px;
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 28px 70px rgba(2, 6, 23, 0.28);
  backdrop-filter: blur(14px);
}

.productWindowBar {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.productWindowBar i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #ef4444;
}

.productWindowBar i:nth-child(2) {
  background: #f59e0b;
}

.productWindowBar i:nth-child(3) {
  background: #22c55e;
  margin-right: 7px;
}

.productSignalHeader {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  border: 1px solid #e5eaf2;
  border-radius: 12px;
  padding: 14px;
  background: #f8fbff;
}

.productSignalHeader span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.productSignalHeader b {
  display: block;
  margin-top: 4px;
  color: #0f172a;
  font-size: 19px;
}

.productSignalHeader em {
  border-radius: 999px;
  padding: 5px 10px;
  background: #dcfce7;
  color: #166534;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.productStats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.productStats .landingStat {
  min-height: 78px;
  padding: 12px;
  background: #ffffff;
}

.productStats .landingStat b {
  font-size: 20px;
}

.productCurve {
  min-height: 180px;
  border: 1px solid #e5eaf2;
  border-radius: 12px;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(11, 99, 206, 0.04) 1px, transparent 1px),
    #ffffff;
  background-size: 100% 40px;
}

.productCurve svg {
  width: 100%;
  height: 100%;
  min-height: 150px;
}

.productCurve path {
  fill: none;
  stroke: #0b63ce;
  stroke-width: 5;
  stroke-linecap: round;
}

.productCurve path.area {
  fill: rgba(11, 99, 206, 0.12);
  stroke: none;
}

.copyRoutePreview {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 8px;
  align-items: center;
}

.copyRoutePreview span {
  min-height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #eef6ff;
  color: #0b63ce;
  font-size: 12px;
  font-weight: 900;
}

.copyRoutePreview b {
  color: #94a3b8;
}

.landingFeatureIntro {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
  padding: 18px 0 2px;
}

.landingFeatureIntro span,
.landingFinalCta span {
  color: #0b63ce;
  font-size: 12px;
  font-weight: 900;
}

.landingFeatureIntro h2,
.landingSplit h2,
.landingFinalCta h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.18;
}

.landingFeatureGrid.featureMatrix {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.featureMatrix article {
  position: relative;
  overflow: hidden;
  min-height: 176px;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.05);
}

.featureMatrix article::before {
  content: "";
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #ffffff url("/static/favicon.svg") center / 32px 32px no-repeat;
  border: 1px solid #dbeafe;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
}

.featureMatrix article b {
  font-size: 19px;
}

.landingSplit {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(420px, 1fr);
  gap: 24px;
  align-items: center;
  border-radius: 18px;
  padding: clamp(24px, 4vw, 44px);
  background: #ffffff;
  border: 1px solid #dbe4f0;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.06);
}

.landingStepList {
  display: grid;
  gap: 12px;
}

.landingStepList article {
  display: grid;
  grid-template-columns: 52px minmax(0, 0.42fr) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border: 1px solid #e5eaf2;
  border-radius: 12px;
  padding: 15px;
  background: #f8fbff;
}

.landingStepList em {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #0b63ce;
  color: #ffffff;
  font-style: normal;
  font-weight: 900;
}

.landingStepList b {
  color: #0f172a;
  font-size: 17px;
}

.landingStepList p {
  margin: 0;
  color: #64748b;
  line-height: 1.65;
}

.landingFinalCta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-radius: 18px;
  padding: clamp(24px, 4vw, 42px);
  background: linear-gradient(135deg, #07152f, #0b63ce);
  color: #ffffff;
}

.landingFinalCta span,
.landingFinalCta h2 {
  color: #ffffff;
}

.landingFinalCta button {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  background: #ffffff;
  color: #0b2b6f;
  font-weight: 900;
  cursor: pointer;
}

.side {
  width: 260px;
  flex: 0 0 260px;
  background: #ffffff;
  color: #1f2937;
  padding: 18px 14px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  border-right: 1px solid #e5e7eb;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 4px 16px;
  margin-bottom: 10px;
  border-bottom: 1px solid #eef1f5;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #0f172a;
}

.brand span {
  display: grid;
  gap: 2px;
  font-weight: 700;
}

.brand small {
  color: #6b7280;
  font-size: 12px;
  font-weight: 500;
}

.authBox {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 14px;
  background: #f9fafb;
}

.authBox b {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
}

.authBox input {
  width: 100%;
  min-height: 34px;
  margin-bottom: 7px;
  border-color: #d1d5db;
  background: #ffffff;
  color: #1f2937;
}

.authBox button {
  width: 100%;
  min-height: 34px;
  margin-top: 4px;
  cursor: pointer;
}

.authBox button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.authBox .mutedLink {
  display: inline-block;
  margin-top: 8px;
  color: #1d4ed8;
  font-size: 12px;
  cursor: pointer;
}

.authMiniText {
  margin: 4px 0 8px;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.6;
}

.authStatus {
  color: #4b5563;
  font-size: 12px;
  line-height: 1.5;
}

.authMessage {
  margin-top: 8px;
  padding: 7px 8px;
  border: 1px solid #c7d2fe;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.4;
  background: #eef2ff;
  color: #374151;
}

.authMessage.ok {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.authMessage.bad {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.verifyNotice {
  grid-column: 1 / -1;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 12px;
  background: #eff6ff;
  color: #1e3a8a;
}

.verifyNotice p {
  margin: 6px 0 10px;
  color: #334155;
}

.authViewActive {
  background: #f7f7fa;
}

.authViewActive .side,
.authViewActive .top,
.authViewActive .metrics,
.authViewActive .quickActions,
.authViewActive .providerPanel,
.authViewActive .siteFooter {
  display: none;
}

.authViewActive .main {
  padding: 0;
  min-height: 100vh;
}

.authViewActive #authView.active {
  display: block;
  min-height: 100vh;
}

.copyTradeViewActive .metrics,
.copyTradeViewActive .quickActions,
.copyTradeViewActive .providerPanel,
.copyTradeViewActive .top .toolbar {
  display: none;
}

.adminBackendActive .metrics,
.adminBackendActive .quickActions,
.adminBackendActive .providerPanel,
.adminBackendActive .top .toolbar {
  display: none;
}

.userBackendActive .metrics,
.userBackendActive .quickActions,
.userBackendActive .providerPanel,
.userBackendActive .top .toolbar {
  display: none;
}

.homeViewActive .metrics,
.homeViewActive .quickActions,
.homeViewActive .providerPanel,
.homeViewActive .top .toolbar {
  display: none;
}

body:not(.accountViewActive) .metrics,
body:not(.accountViewActive) .quickActions,
body:not(.accountViewActive) .providerPanel {
  display: none;
}

.loginPage {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(520px, 58vw) minmax(420px, 1fr);
  gap: 0;
  background: #f7f7fa;
}

.loginBrandPanel,
.loginCard {
  border: 0;
  border-radius: 0;
  min-width: 0;
}

.loginBrandPanel {
  position: relative;
  min-height: 100vh;
  padding: 42px;
  background:
    linear-gradient(90deg, rgba(4, 17, 57, 0.98), rgba(7, 22, 69, 0.95)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='900' viewBox='0 0 1200 900'%3E%3Crect width='1200' height='900' fill='%2305163f'/%3E%3Cg fill='none' stroke='%23294aa5' stroke-width='4' stroke-opacity='.46'%3E%3Cpath d='M110 900 L275 120' stroke-width='10'/%3E%3Cpath d='M84 900 L250 116' stroke-width='3'/%3E%3Cpath d='M260 160 L1200 350'/%3E%3Cpath d='M248 190 L1200 400'/%3E%3Cpath d='M236 220 L1200 450'/%3E%3Cpath d='M224 250 L1200 500'/%3E%3Cpath d='M212 280 L1200 550'/%3E%3Cpath d='M200 310 L1200 600'/%3E%3Cpath d='M188 340 L1200 650'/%3E%3Cpath d='M176 370 L1200 700'/%3E%3Cpath d='M164 400 L1200 750'/%3E%3Cpath d='M152 430 L1200 800'/%3E%3Cpath d='M140 460 L1200 850'/%3E%3C/g%3E%3Cg fill='none' stroke='%231b347a' stroke-width='2' stroke-opacity='.65'%3E%3Cpath d='M0 740 C210 610 410 640 700 542 C890 480 1010 424 1200 420'/%3E%3Cpath d='M0 790 C230 650 470 660 720 590 C930 532 1060 500 1200 490'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
  color: #ffffff;
  overflow: hidden;
}

.loginBrandPanel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 12, 40, 0.1), rgba(3, 12, 40, 0.45));
}

.loginBrandCopy {
  display: none;
}

.loginLogoRow {
  display: flex;
  align-items: center;
  gap: 12px;
}

.loginLogoRow img {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: #ffffff;
}

.loginLogoRow span {
  display: grid;
  gap: 2px;
}

.loginLogoRow b {
  font-size: 20px;
}

.loginLogoRow small {
  color: #bfdbfe;
  font-size: 12px;
}

.loginBrandPanel h2 {
  max-width: 760px;
  margin: 18px 0 8px;
  font-size: 30px;
  line-height: 1.25;
}

.loginBrandPanel p {
  max-width: 720px;
  margin: 0;
  color: #dbeafe;
  font-size: 15px;
  line-height: 1.9;
}

.loginHighlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.loginHighlights span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 11px;
  background: rgba(255, 255, 255, 0.1);
  color: #e0f2fe;
  font-size: 12px;
  font-weight: 700;
}

.loginCard {
  min-height: 100vh;
  padding: 48px 72px;
  align-self: stretch;
  display: grid;
  align-content: center;
  justify-items: center;
  background: #f7f7fa;
  box-shadow: none;
}

.loginCard > * {
  width: min(100%, 464px);
}

.loginEyebrow {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border-radius: 999px;
  padding: 3px 9px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 800;
}

.loginCard h2 {
  margin: 18px 0 10px;
  text-align: center;
  font-size: 22px;
}

.loginCard p {
  color: #64748b;
  line-height: 1.7;
}

.loginCenterLogo {
  display: grid;
  justify-items: center;
  gap: 6px;
  margin-bottom: 18px;
}

.loginCenterLogo img {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
}

.loginCenterLogo strong {
  color: #f97316;
  font-size: 16px;
}

.loginTabs {
  display: grid;
  grid-template-columns: 1fr;
  margin: 2px 0 22px;
  border-bottom: 1px solid #e3e8f2;
}

.loginTabs button {
  min-height: 42px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #172033;
  cursor: default;
  font-size: 14px;
}

.loginTabs button.active {
  color: #4f46e5;
  border-bottom: 2px solid #5b5cff;
  font-weight: 700;
}

.loginForm {
  display: grid;
  gap: 14px;
  margin-top: 0;
}

.loginForm label {
  display: grid;
  gap: 7px;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}

.loginForm input {
  width: 100%;
  min-height: 42px;
  font-size: 14px;
  background: #eaf2ff;
  border-color: #c8d4e8;
  border-radius: 4px;
}

.loginForm button,
.loginActions button {
  min-height: 36px;
  justify-content: center;
  border-radius: 4px;
}

.forgotLine {
  display: flex;
  justify-content: space-between;
  min-height: 22px;
  margin-top: -4px;
}

.forgotLine a,
.forgotLine button {
  color: #4f46e5;
  font-size: 12px;
  text-decoration: none;
  border: 0;
  background: transparent;
  padding: 0;
  min-height: 0;
  cursor: pointer;
}

.plainSwitch {
  width: 100%;
  margin-top: 34px;
  background: transparent;
  color: #1d4ed8;
  border: 0;
}

.loginAccountBox {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

.loginAccountBox p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #e5eaf2;
  border-radius: 8px;
  background: #f8fafc;
}

.loginAccountBox b {
  color: #475569;
}

.loginActions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.navGroup {
  margin: 10px 0 14px;
}

.navGroup[hidden],
.adminOnly[hidden] {
  display: none !important;
}

.userBackendNav,
.adminNav {
  margin-top: 16px;
  border: 1px solid #e5eaf2;
  border-radius: 10px;
  padding: 8px;
  background: #fbfdff;
}

.adminNav {
  border-color: #dbeafe;
  background: #f7fbff;
}

.navGroup > span,
.navGroup > summary {
  display: block;
  color: #9ca3af;
  font-size: 12px;
  padding: 0 12px 6px;
}

.userBackendNav > span,
.adminNav > span,
.userBackendNav > summary,
.adminNav > summary {
  color: #475569;
  font-weight: 800;
}

.navGroup > summary {
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.navGroup > summary::-webkit-details-marker {
  display: none;
}

.navGroup > summary::after {
  content: "收起";
  float: right;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
}

.navGroup:not([open]) > summary::after {
  content: "展开";
}

.adminNav > span,
.adminNav > summary {
  color: #0b63ce;
}

.side button {
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #4b5563;
  text-align: left;
  padding: 10px 12px;
  cursor: pointer;
  font-size: 14px;
}

.side button:hover,
.side button.active {
  background: #eef6ff;
  color: #0b63ce;
  font-weight: 700;
}

.adminNav button:hover,
.adminNav button.active {
  background: #0b63ce;
  color: #ffffff;
}

.main {
  flex: 1;
  min-width: 0;
  padding: 22px 26px 34px;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 14px 16px;
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(8px);
}

.top h1 {
  margin: 3px 0 0;
  font-size: 28px;
}

#eyebrow {
  color: #64748b;
  font-size: 13px;
}

.modeBadge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-right: 8px;
  padding: 3px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #ffffff;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

.modeBadge.user {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.modeBadge.admin {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.modeBadge.auth {
  border-color: #ddd6fe;
  background: #f5f3ff;
  color: #5b21b6;
}

.userBackendActive .top {
  border-color: #bbf7d0;
}

.adminBackendActive .top {
  border-color: #bfdbfe;
}

.toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

select,
input,
button {
  min-height: 38px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px 10px;
  background: white;
  font: inherit;
}

#refreshBtn {
  background: #0b63ce;
  color: white;
  border-color: #0b63ce;
  cursor: pointer;
}

.loginForm button,
.loginActions button:not(.secondaryButton),
.authBox button:not(.secondaryButton) {
  background: #5b5cff;
  color: white;
  border-color: #5b5cff;
  cursor: pointer;
}

.loginActions .secondaryButton {
  background: #f8fafc;
  color: #172033;
  border-color: #cbd5e1;
}

#refreshBtn:disabled,
select:disabled,
button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.softLoading {
  cursor: progress;
}

body.isLoading .top {
  box-shadow: inset 0 -2px 0 #93c5fd;
}

.loadingBlock {
  min-height: 92px;
  display: grid;
  place-items: center;
  color: #64748b;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(142px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.metric {
  min-height: 86px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 14px;
  display: grid;
  align-content: center;
  gap: 6px;
}

.metric span {
  color: #64748b;
  font-size: 13px;
}

.metric b {
  font-size: 19px;
  overflow-wrap: anywhere;
}

.cashFlowNotice {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  line-height: 1.55;
}

.cashFlowNotice b {
  font-size: 15px;
}

.cashFlowNotice span {
  font-weight: 700;
}

.cashFlowNotice small {
  color: #64748b;
}

.cashFlowNotice.danger {
  border-color: #fecaca;
  background: #fff1f2;
  color: #991b1b;
}

.cashFlowNotice.danger b {
  color: #b91c1c;
}

.cashFlowNotice.info {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1e3a8a;
}

.quickActions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: -4px 0 18px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
}

.quickActions .summary {
  color: #334155;
  font-size: 13px;
  margin-right: auto;
}

.quickActions a,
.quickActions button {
  min-height: 34px;
  border-radius: 8px;
  padding: 7px 10px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #172033;
  text-decoration: none;
  cursor: pointer;
  font-size: 13px;
}

.quickActions .subscribeButton,
.rankingActions .subscribeButton,
.subscribeButton {
  border-color: #0b63ce;
  background: #0b63ce;
  color: #ffffff;
  font-weight: 800;
}

.subscribeButton:disabled {
  opacity: 0.74;
  cursor: progress;
}

.quickActionDivider {
  width: 1px;
  height: 24px;
  background: #e2e8f0;
}

.quickActions button.miniAction {
  min-height: 30px;
  padding: 5px 8px;
  color: #475569;
  background: #ffffff;
  border-color: #dbe4f0;
}

.good b {
  color: #15803d;
}

.bad b {
  color: #b91c1c;
}

.warn b {
  color: #b45309;
}

.healthBadge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  vertical-align: middle;
  background: #f1f5f9;
  color: #334155;
}

.healthBadge.ok {
  background: #dcfce7;
  color: #166534;
}

.healthBadge.warn {
  background: #fef3c7;
  color: #92400e;
}

.healthBadge.demo {
  background: #eef2ff;
  color: #4338ca;
}

.healthBadge.bad {
  background: #fee2e2;
  color: #991b1b;
}

.view {
  display: none;
  gap: 18px;
}

.view.active {
  display: grid;
}

.grid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.grid3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.panel {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  min-width: 0;
}

.compactPanel {
  padding: 12px;
}

.panel h2 {
  margin: 0 0 12px;
  font-size: 16px;
}

.clientIntro p,
.steps p {
  margin: 6px 0;
  color: #475569;
  line-height: 1.7;
}

.brandHero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brandHero img {
  width: 96px;
  height: 96px;
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.14);
}

.brandHero h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
}

.noticePanel {
  border-left: 4px solid #f59e0b;
  background: #fffbeb;
}

.contactList {
  display: grid;
  gap: 10px;
}

.contactList p {
  display: grid;
  gap: 4px;
  margin: 0;
  color: #475569;
}

.contactList b {
  color: #172033;
}

.sectionNote {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 13px;
}

.providerPanel {
  margin: -4px 0 18px;
}

.providerPanel:empty {
  display: none;
}

.providerCard {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
}

.providerCard span {
  color: #64748b;
  font-size: 12px;
}

.providerCard h2 {
  margin: 2px 0 4px;
  font-size: 18px;
}

.providerCard p {
  margin: 0;
  color: #475569;
  line-height: 1.6;
}

.providerContacts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 12px;
  font-size: 12px;
}

.providerContacts p {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.providerContacts a,
.providerContacts span {
  overflow-wrap: anywhere;
  color: #1d4ed8;
}

.communityHero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.75fr);
  gap: 18px;
  align-items: stretch;
  padding: 26px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background:
    linear-gradient(115deg, rgba(239, 246, 255, 0.88), rgba(255, 255, 255, 0.94)),
    #ffffff;
  overflow: hidden;
}

.communityHeroCopy {
  display: grid;
  align-content: center;
  gap: 12px;
}

.communityEyebrow {
  color: #0b63ce;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.communityHero h2 {
  margin: 0;
  max-width: 760px;
  color: #111827;
  font-size: 32px;
  line-height: 1.25;
}

.communityHero p {
  max-width: 720px;
  margin: 0;
  color: #4b5563;
  line-height: 1.8;
}

.communityActions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.communityActions button {
  border-color: #0b63ce;
  background: #0b63ce;
  color: #ffffff;
  cursor: pointer;
}

.communityActions .secondaryButton {
  border-color: #d1d5db;
  background: #ffffff;
  color: #1f2937;
}

.communityActions .ghostButton {
  border-color: #dbe4f0;
  background: #f8fafc;
  color: #0f172a;
}

.saasHero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 22px;
  align-items: stretch;
  min-height: 330px;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  padding: 28px;
  background: #ffffff;
}

.saasHeroCopy {
  display: grid;
  align-content: center;
  gap: 14px;
}

.saasHero h2 {
  max-width: 680px;
  margin: 0;
  color: #0f172a;
  font-size: 36px;
  line-height: 1.18;
}

.saasHero p {
  max-width: 720px;
  margin: 0;
  color: #475569;
  font-size: 15px;
  line-height: 1.85;
}

.saasHeroVisual {
  display: grid;
  gap: 14px;
  align-content: stretch;
  min-height: 290px;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  padding: 18px;
  background: #fbfdff;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.07);
}

.heroVisualTop,
.heroVisualFoot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.heroVisualTop span,
.heroVisualFoot span,
.heroVisualStats span {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.heroVisualTop b {
  color: #0f172a;
  font-size: 18px;
}

.heroVisualStats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.heroVisualStats div {
  display: grid;
  gap: 6px;
  border: 1px solid #e5eaf2;
  border-radius: 8px;
  padding: 11px;
  background: #ffffff;
}

.heroVisualStats b {
  color: #0f172a;
  font-size: 18px;
}

.heroVisualStats .gain {
  color: #047857;
}

.heroVisualChart {
  display: flex;
  align-items: end;
  gap: 10px;
  min-height: 118px;
  border: 1px solid #e5eaf2;
  border-radius: 8px;
  padding: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.heroVisualChart i {
  flex: 1;
  min-width: 16px;
  border-radius: 6px 6px 2px 2px;
  background: #0f766e;
}

.heroVisualChart i:nth-child(2n) {
  background: #2563eb;
}

.heroVisualFoot em {
  color: #0b63ce;
  font-style: normal;
  font-weight: 800;
}

.homeProductGrid,
.homeFlowPanel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.homeProductGrid div,
.homeFlowPanel div {
  display: grid;
  gap: 8px;
  min-height: 118px;
  align-content: start;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  padding: 18px;
  background: #ffffff;
}

.homeProductGrid b,
.homeFlowPanel b {
  color: #0f172a;
  font-size: 17px;
}

.homeProductGrid span,
.homeFlowPanel p {
  margin: 0;
  color: #64748b;
  line-height: 1.7;
}

.homeFlowPanel span {
  width: fit-content;
  border-radius: 999px;
  padding: 3px 9px;
  background: #eef6ff;
  color: #0b63ce;
  font-size: 12px;
  font-weight: 800;
}

.communityStats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.communityStats div,
.marketHighlights div {
  display: grid;
  gap: 6px;
  min-height: 88px;
  align-content: center;
  border: 1px solid #eef1f5;
  border-radius: 8px;
  padding: 14px;
  background: #f9fafb;
}

.communityStats span,
.marketHighlights span {
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
}

.communityStats b {
  color: #111827;
  font-size: 26px;
}

.marketHighlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.homeSignalPanel {
  margin-top: 14px;
}

.homeSignalPanel > .panelHead {
  margin-bottom: 12px;
}

.homeSignalPanel > .panelHead button {
  min-height: 34px;
}

.homeFeatureGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.homeFeatureGrid div {
  display: grid;
  gap: 6px;
  min-height: 96px;
  align-content: center;
  padding: 16px;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #ffffff;
}

.homeFeatureGrid b {
  color: #0f172a;
  font-size: 16px;
}

.homeFeatureGrid span {
  color: #64748b;
  line-height: 1.65;
}

.marketHighlights b,
.marketHighlights em {
  overflow-wrap: anywhere;
}

.marketHighlights b {
  color: #111827;
  font-size: 15px;
}

.marketHighlights em {
  color: #0b63ce;
  font-size: 14px;
  font-style: normal;
  font-weight: 800;
}

.providerAvatar,
.profileAvatar {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #dbe4f0;
  background: #eef6ff;
  color: #1d4ed8;
  font-weight: 800;
}

.profileAvatar {
  width: 96px;
  height: 96px;
  font-size: 28px;
}

.providerAvatar img,
.profileAvatar img,
.rankingAvatar.image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profileEditor {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.profileWalletCard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid #dbe4f0;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffffff 0%, #f7fbff 100%);
}

.profileWalletCard span,
.profileWalletCard small {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.profileWalletCard strong {
  display: block;
  margin-top: 5px;
  color: #0f172a;
  font-size: 26px;
  line-height: 1.1;
}

.profileWalletCard small {
  display: block;
  margin-top: 6px;
  font-weight: 600;
}

.profileWalletStats {
  display: grid;
  gap: 6px;
  min-width: 180px;
}

.profileWalletStats b {
  margin-left: 6px;
  color: #0f172a;
}

.roleApplyPanel {
  margin-top: 18px;
}

.profileSecurityPanel {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #dbe4f0;
  border-radius: 10px;
  background: #ffffff;
}

.roleApplyPanel h3 {
  margin: 0 0 12px;
}

.profileSecurityPanel h3 {
  margin: 0 0 12px;
}

.compactProfileForm {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.roleCards,
.sourceStatsGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.roleCard,
.sourceStatCard {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 128px;
  padding: 14px;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #ffffff;
}

.roleCard.active {
  background: #f8fafc;
}

.roleCard span,
.sourceStatCard span {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.roleCard b,
.sourceStatCard b {
  color: #0f172a;
  font-size: 18px;
}

.roleCard small,
.sourceStatCard small {
  color: #64748b;
  line-height: 1.5;
}

.roleBadge {
  display: inline-flex;
  width: max-content;
  min-height: 24px;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef2f7;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

.roleBadge.ok {
  background: #dcfce7;
  color: #047857;
}

.roleBadge.warn {
  background: #fef3c7;
  color: #b45309;
}

.roleBadge.bad {
  background: #fee2e2;
  color: #b91c1c;
}

.roleAdminControl,
.publishVerifyBox {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.adminUserIdentity {
  display: grid;
  gap: 3px;
  min-width: 190px;
}

.adminUserIdentity b {
  color: #0f172a;
}

.adminUserIdentity span,
.adminUserIdentity small {
  color: #64748b;
  font-size: 12px;
}

.adminUserActions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 280px;
}

.adminUserActions button {
  min-height: 30px;
  padding: 5px 8px;
  font-size: 12px;
}

.adminWalletCell {
  display: grid;
  gap: 3px;
  min-width: 120px;
}

.adminWalletCell b {
  color: #0f172a;
  font-size: 14px;
}

.adminWalletCell small {
  color: #64748b;
  font-size: 11px;
}

.adminCreateAccountBox {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid #d8e1ef;
  border-radius: 12px;
  background: #f8fafc;
}

.compactHead {
  align-items: center;
  margin: 0;
}

.compactHead h3 {
  margin: 0;
  color: #0f172a;
  font-size: 16px;
}

.adminCreateAccountForm {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  align-items: end;
}

.adminCreateAccountForm label {
  display: grid;
  gap: 6px;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}

.adminCreateAccountForm input,
.adminCreateAccountForm select {
  width: 100%;
  min-height: 36px;
}

.adminSearchPanel {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid #d8e1ef;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.adminSearchControls {
  display: flex;
  gap: 10px;
  align-items: center;
}

.adminSearchControls input {
  flex: 1;
  min-width: 0;
  min-height: 38px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: #0f172a;
}

.adminSearchStats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.adminSearchStats span {
  padding: 5px 9px;
  border: 1px solid #d8e1ef;
  border-radius: 999px;
  background: #fff;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}

.adminSearchResultGrid {
  display: grid;
  gap: 14px;
}

.adminSearchSection {
  display: grid;
  gap: 8px;
}

.adminSearchSection h4 {
  margin: 0;
  color: #0f172a;
  font-size: 14px;
}

.adminSearchIdentity,
.adminUserIdentity {
  display: grid;
  gap: 3px;
}

.adminSearchIdentity b,
.adminUserIdentity b {
  color: #0f172a;
}

.adminSearchIdentity span,
.adminSearchIdentity small,
.adminUserIdentity span,
.adminUserIdentity small {
  color: #64748b;
}

.adminSearchEmpty {
  padding: 12px;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  color: #64748b;
  font-size: 13px;
}

.adminSearchEmpty.small {
  padding: 10px;
}

.sourceBar {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5eaf1;
}

.sourceBar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #0b63ce;
}

.profilePreview {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 16px;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #f8fafc;
  text-align: center;
}

.profilePreview h3,
.profilePreview p {
  margin: 0;
}

.profilePreview p,
.profilePreview small {
  color: #64748b;
}

.profileForm {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.profileForm label {
  display: grid;
  gap: 5px;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}

.profileForm input,
.profileForm textarea {
  width: 100%;
  resize: vertical;
}

.fullLine {
  grid-column: 1 / -1;
}

.fileButton {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid #1d4ed8;
  border-radius: 8px;
  padding: 7px 12px;
  background: #1d4ed8;
  color: white;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.fileButton input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.rankingOwner {
  margin: -4px 0 7px !important;
  color: #475569 !important;
  font-size: 12px !important;
}

.siteFooter {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 22px;
  padding: 16px;
  color: #64748b;
  font-size: 12px;
}

.advancedBlock {
  display: grid;
  gap: 18px;
}

.advancedBlock summary {
  cursor: pointer;
  color: #1d4ed8;
  font-weight: 700;
  margin: 6px 0;
}

code {
  background: #eef2ff;
  color: #1e3a8a;
  border-radius: 6px;
  padding: 2px 6px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.smtpStatus {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f8fafc;
  color: #334155;
}

.smtpStatus.ok {
  background: #dcfce7;
  color: #166534;
}

.smtpStatus.bad {
  background: #fef2f2;
  color: #991b1b;
}

.panelHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.panelHead h2 {
  margin: 0;
}

.copyLiveHead {
  align-items: flex-start;
}

.copyLiveTitle {
  display: grid;
  gap: 4px;
}

.copyLiveMeta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  color: #64748b;
  font-size: 12px;
}

.copyLiveMeta::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #16a34a;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.1);
}

.copyLivePanel.isRefreshing #copyOpenOrdersBody {
  opacity: 0.76;
}

.miniToolBar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.miniToolBar button {
  min-height: 32px;
  border-radius: 8px;
  border: 1px solid #d7e0ec;
  background: #f8fafc;
  color: #334155;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 13px;
}

.miniToolBar button:hover {
  border-color: #93c5fd;
  color: #0b63ce;
  background: #eff6ff;
}

.miniSelect {
  min-height: 32px;
  padding: 4px 8px;
  font-size: 13px;
}

.riskGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.riskItem {
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  padding: 10px 12px;
  background: #f8fafc;
}

.riskItem span {
  display: block;
  color: #64748b;
  font-size: 12px;
  margin-bottom: 4px;
}

.riskItem b {
  font-size: 14px;
}

.riskItem.ok b {
  color: #15803d;
}

.riskItem.warn b {
  color: #b45309;
}

.riskItem.bad b {
  color: #b91c1c;
}

.kvGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.kvItem {
  min-height: 72px;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  padding: 10px 12px;
  background: #f8fafc;
}

.kvItem span {
  display: block;
  color: #64748b;
  font-size: 12px;
  margin-bottom: 5px;
}

.kvItem b {
  display: block;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.kvItem.good b {
  color: #15803d;
}

.kvItem.bad b {
  color: #b91c1c;
}

.filterBar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.filterBar label {
  display: grid;
  gap: 6px;
  color: #475569;
  font-size: 12px;
}

.filterBar select,
.filterBar input {
  width: 100%;
}

.buttonRow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.buttonRow button {
  background: #1d4ed8;
  color: white;
  border-color: #1d4ed8;
  cursor: pointer;
}

.buttonRow .secondaryButton,
.secondaryButton {
  background: #f8fafc;
  color: #172033;
  border-color: #cbd5e1;
}

.linkButton {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border-radius: 8px;
  border: 1px solid #1d4ed8;
  background: #1d4ed8;
  color: white;
  padding: 8px 12px;
  text-decoration: none;
  font-size: 14px;
}

.downloadCards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.downloadCards.compact {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  margin: 0 0 12px;
}

.downloadCard {
  display: grid;
  gap: 4px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  color: #172033;
  padding: 12px;
  text-decoration: none;
}

.downloadCard b {
  color: #1d4ed8;
}

.downloadCard span {
  color: #475569;
  font-size: 12px;
  word-break: break-all;
}

.downloadCard:hover {
  border-color: #1d4ed8;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.12);
}

.setupResult {
  display: grid;
  gap: 8px;
}

.setupResult p {
  margin: 0;
}

.clientSetupForm {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
  width: 100%;
}

.filterBar > .clientSetupForm {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.clientSetupNote {
  grid-column: 1 / -1;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  padding: 10px 12px;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 13px;
  font-weight: 700;
}

.clientSetupForm button {
  align-self: end;
}

.serverCombo {
  position: relative;
  z-index: 8;
}

.serverSuggestPanel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  display: grid;
  gap: 4px;
  max-height: 280px;
  overflow: auto;
  padding: 8px;
  border: 1px solid #d8e1ef;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
}

.serverSuggestItem {
  display: grid;
  gap: 3px;
  width: 100%;
  min-height: auto;
  padding: 9px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #0f172a;
  text-align: left;
  cursor: pointer;
}

.serverSuggestItem:hover {
  background: #eff6ff;
}

.serverSuggestItem b {
  font-size: 13px;
}

.serverSuggestItem span,
.serverSuggestEmpty {
  color: #64748b;
  font-size: 12px;
}

.serverSuggestEmpty {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.serverSuggestEmpty b {
  color: #0f172a;
  font-size: 13px;
}

.serverSuggestEmpty span {
  line-height: 1.5;
}

.serverSuggestUseTyped {
  width: 100%;
  min-height: 34px;
  border: 1px solid #bfdbfe;
  border-radius: 9px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.serverSuggestUseTyped:hover {
  background: #dbeafe;
}

.clientLoginResult {
  grid-column: 1 / -1;
  border: 1px solid #d8e1ef;
  border-radius: 10px;
  padding: 10px 12px;
  background: #f8fafc;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}

.clientLoginResult.ok {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #047857;
}

.clientLoginResult.bad {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.checkGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  margin: 10px 0 14px;
}

.checkLine {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #334155;
  font-size: 13px;
}

.checkLine input {
  min-height: auto;
}

.fieldLine {
  display: grid;
  gap: 6px;
  color: #475569;
  font-size: 12px;
  margin: 12px 0;
}

textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px;
  font: inherit;
  resize: vertical;
}

.mailGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hintText {
  margin-top: 10px;
  color: #64748b;
  font-size: 13px;
}

.copyTradeForm {
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
}

.copyTradeForm button {
  min-height: 38px;
  align-self: end;
  background: #0b63ce;
  color: #ffffff;
  border-color: #0b63ce;
  cursor: pointer;
}

#copytradeView > .clientIntro,
#copytradeView > .noticePanel {
  display: none;
}

.copyQuickSetup {
  display: grid;
  gap: 14px;
  border-color: #dbe4f0;
  background: #ffffff;
}

.copyQuickHeader {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.copyQuickHeader h2 {
  margin: 0;
  color: #0f172a;
  font-size: 20px;
  line-height: 1.25;
}

.copyQuickHeader p {
  max-width: 820px;
  margin: 0;
  color: #475569;
  line-height: 1.7;
}

.copyQuickSteps {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.copyQuickSteps span {
  border: 1px solid #dbeafe;
  border-radius: 999px;
  padding: 6px 10px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.copyQuickGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 12px;
}

.copyQuickGrid.compact {
  grid-template-columns: repeat(3, minmax(150px, 1fr));
}

.copyQuickGrid label {
  display: grid;
  gap: 6px;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}

.copyQuickGrid input,
.copyQuickGrid select {
  min-height: 40px;
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px 10px;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
}

.copyQuickOptions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  padding: 10px 12px;
  border: 1px solid #e5eaf2;
  border-radius: 8px;
  background: #ffffff;
}

.copyAdvancedMini {
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  padding: 10px 12px;
  background: #f8fafc;
}

.copyAdvancedMini summary {
  cursor: pointer;
  color: #0b63ce;
  font-weight: 800;
  outline: none;
}

.copyAdvancedMini .copyQuickGrid {
  margin-top: 12px;
}

.copyAdvancedMini.isDisabled {
  opacity: 0.7;
}

.copyQuickFooter {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.copyQuickFooter button {
  min-height: 42px;
  border-color: #0b63ce;
  background: #0b63ce;
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.copyQuickFooter span {
  color: #64748b;
  font-size: 13px;
}

.copyRuntimeBar {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.copyRuntimeBar .copyMetric {
  min-height: 76px;
}

.copyHealthStrip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0 14px;
}

.copyHealthPill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  border: 1px solid #dbe4f0;
  border-radius: 999px;
  padding: 6px 12px;
  background: #ffffff;
  color: #475569;
}

.copyHealthPill::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #64748b;
}

.copyHealthPill.ok::before {
  background: #16a34a;
}

.copyHealthPill.warn::before {
  background: #f59e0b;
}

.copyHealthPill.bad::before {
  background: #dc2626;
}

.copyHealthPill b {
  color: #0f172a;
  font-size: 13px;
}

.copyHealthPill small {
  color: #64748b;
  font-size: 12px;
}

.localServicePanel {
  display: grid;
  gap: 14px;
}

.localServiceHead {
  align-items: center;
}

.localServiceActions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.localServiceActions button {
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 13px;
}

.localServiceOverview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.localServiceOverview article {
  display: grid;
  gap: 4px;
  min-height: 86px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.localServiceOverview article.ok {
  border-color: #b7ebc8;
  background: linear-gradient(180deg, #f8fff9, #effcf3);
}

.localServiceOverview article.warn {
  border-color: #f8d88a;
  background: linear-gradient(180deg, #fffdf4, #fff7df);
}

.localServiceOverview article.bad {
  border-color: #f5b5bb;
  background: linear-gradient(180deg, #fff8f8, #fff1f2);
}

.localServiceOverview span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.localServiceOverview b {
  color: #0f172a;
  font-size: 22px;
  line-height: 1.1;
}

.localServiceOverview small {
  color: #64748b;
  font-size: 12px;
}

.localServiceGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.localServiceCard {
  display: grid;
  gap: 12px;
  min-height: 142px;
  border: 1px solid #dbe4f0;
  border-radius: 12px;
  padding: 14px;
  background: #f8fafc;
}

.localServiceCardTop {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.localServiceDot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #94a3b8;
  box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.16);
}

.localServiceCard.ok .localServiceDot {
  background: #16a34a;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.14);
}

.localServiceCard.warn .localServiceDot {
  background: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.localServiceCard.bad .localServiceDot {
  background: #dc2626;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.14);
}

.localServiceCard span,
.localServiceCard small {
  color: #64748b;
}

.localServiceCard b {
  color: #0f172a;
  font-size: 17px;
}

.localServiceCardMeta {
  display: grid;
  gap: 6px;
  border-radius: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.72);
}

.localServiceCardMeta span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #64748b;
  font-size: 12px;
}

.localServiceCardMeta span:last-child {
  justify-content: flex-start;
}

.localServiceCardMeta b {
  color: #0f172a;
  font-size: 12px;
}

.localServiceMiniActions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.localServiceMiniActions button {
  min-height: 30px;
  padding: 6px 10px;
  font-size: 12px;
}

.localServiceCard.ok {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.localServiceCard.warn {
  border-color: #fde68a;
  background: #fffbeb;
}

.localServiceCard.bad {
  border-color: #fecaca;
  background: #fef2f2;
}

.localServiceDetails {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  overflow: hidden;
}

.localServiceDetails summary {
  cursor: pointer;
  padding: 11px 14px;
  color: #475569;
  font-size: 13px;
  font-weight: 900;
  list-style: none;
}

.localServiceDetails summary::-webkit-details-marker {
  display: none;
}

.localServiceDetails summary::after {
  content: "+";
  float: right;
  color: #64748b;
  font-weight: 900;
}

.localServiceDetails[open] summary {
  border-bottom: 1px solid #e2e8f0;
}

.localServiceDetails[open] summary::after {
  content: "-";
}

.localProcessList {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.localProcessList span {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid #e5eaf2;
  border-radius: 10px;
  padding: 9px 10px;
  background: #ffffff;
}

.localProcessList b {
  color: #0f172a;
  font-size: 13px;
}

.localProcessList em {
  color: #64748b;
  font-size: 12px;
  font-style: normal;
  overflow-wrap: anywhere;
  text-align: right;
}

.localServicePanel.isRefreshing {
  opacity: 0.82;
}

.dangerText {
  color: #b91c1c;
}

.copyBindLayout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.copyStepCard {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #fbfdff;
}

.copyStepCard h3 {
  margin: 0;
  color: #0f172a;
  font-size: 17px;
}

.copyStepTitle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.copyStepCard p {
  margin: 0;
  color: #64748b;
  line-height: 1.65;
}

.copyStepCard.isDisabled {
  background: #f8fafc;
  opacity: 0.72;
}

.copyServerReuse {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #ffffff;
}

.copyServerReuse span {
  color: #64748b;
  font-size: 13px;
}

.copyServerReuse b {
  color: #0f172a;
  font-size: 15px;
}

.copyServerReuse small {
  color: #64748b;
}

.copyFollowerCard {
  background: #ffffff;
  border-color: #bfdbfe;
}

.copyFollowerSimple {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 12px;
  align-items: end;
}

.copyFollowerSimple label {
  display: grid;
  gap: 6px;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}

.copyFollowerSimple input,
.copyFollowerSimple select {
  min-height: 42px;
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px 10px;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
}

.copyFollowerSimple .copyServerReuse {
  min-height: 42px;
}

.copyInlineResult {
  min-height: 22px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

.copyInlineResult.ok {
  color: #047857;
}

.copyInlineResult.warn {
  color: #b45309;
}

.copyInlineResult.bad {
  color: #b91c1c;
}

.subscriptionSummary {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.subscriptionSummary > div {
  min-height: 76px;
  padding: 14px;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #f8fafc;
}

.subscriptionSummary span {
  display: block;
  color: #64748b;
  font-size: 13px;
}

.subscriptionSummary b {
  display: block;
  margin-top: 8px;
  color: #0f172a;
  font-size: 28px;
}

.compactButtons {
  gap: 6px;
  flex-wrap: nowrap;
}

.compactButtons button {
  min-height: 30px;
  padding: 4px 8px;
  font-size: 12px;
  white-space: nowrap;
}

.dangerButton {
  border-color: #fecaca !important;
  background: #fff1f2 !important;
  color: #991b1b !important;
}

.copyHero {
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(420px, 1.35fr);
  gap: 18px;
  align-items: stretch;
  padding: 18px;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.95)),
    radial-gradient(circle at 100% 0, rgba(11, 99, 206, 0.12), transparent 38%);
}

.copyHero.ok {
  border-color: #bbf7d0;
}

.copyHero.warn {
  border-color: #fde68a;
}

.copyHero.bad {
  border-color: #fecaca;
}

.copyHeroMain {
  display: grid;
  align-content: center;
  gap: 10px;
}

.copyHeroMain h2 {
  margin: 0;
  color: #111827;
  font-size: 26px;
  line-height: 1.25;
}

.copyHeroMain p {
  max-width: 680px;
  margin: 0;
  color: #475569;
  line-height: 1.75;
}

.copyBackendHeader {
  grid-template-columns: minmax(150px, 0.32fr) minmax(520px, 1.8fr);
  padding: 12px 14px;
  background: #ffffff;
}

.copyBackendHeader .copyHeroMain {
  gap: 4px;
}

.copyBackendHeader .copyHeroMain h2 {
  font-size: 22px;
}

.copyMetricGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.copyMetric {
  min-height: 72px;
  display: grid;
  align-content: center;
  gap: 5px;
  border: 1px solid #e5eaf2;
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
}

.copyMetric span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.copyMetric b {
  color: #0f172a;
  font-size: 18px;
  overflow-wrap: anywhere;
}

.copyMetric small {
  color: #64748b;
  line-height: 1.45;
}

.copyMetric.ok b {
  color: #047857;
}

.copyMetric.warn b {
  color: #b45309;
}

.copyMetric.bad b {
  color: #b91c1c;
}

.copyLatest {
  grid-column: 1 / -1;
  display: grid;
  gap: 4px;
  border: 1px solid #e5eaf2;
  border-radius: 8px;
  padding: 12px 14px;
  background: #ffffff;
}

.copyLatest span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.copyLatest b {
  color: #172033;
}

.copyLatest small {
  color: #64748b;
}

.copyConfigBlock {
  display: grid;
  gap: 14px;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  padding: 12px 14px;
  background: #ffffff;
}

.copyConfigBlock summary {
  cursor: pointer;
  color: #0b63ce;
  font-weight: 800;
}

.copyConfigGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.copyGroupGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 14px;
}

.copySetupDetails {
  padding: 0;
  overflow: hidden;
}

.copySetupDetails summary {
  cursor: pointer;
  padding: 18px 20px;
  color: #0f172a;
  font-weight: 900;
  list-style: none;
}

.copySetupDetails summary::-webkit-details-marker {
  display: none;
}

.copySetupDetails summary::after {
  content: "+";
  float: right;
  color: #2563eb;
  font-weight: 900;
}

.copySetupDetails[open] summary::after {
  content: "-";
}

.copySetupDetailsBody {
  border-top: 1px solid #e5eaf2;
  padding: 16px;
}

.copySetupDetailsBody > .copyQuickSetup {
  margin: 0;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.copyFocusPanel,
.copyFocusDetail {
  border-color: #dbeafe;
}

.copyFocusHead {
  align-items: center;
}

.copyFocusSelector {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 16px;
  align-items: end;
}

.copyFocusSelector label {
  display: grid;
  gap: 8px;
  color: #475569;
  font-size: 12px;
  font-weight: 900;
}

.copyFocusSelector select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px 12px;
  background: #ffffff;
  color: #0f172a;
  font-weight: 800;
}

.copyFocusMiniStats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.copyFocusGrid {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(420px, 1.18fr);
  gap: 14px;
  align-items: start;
}

.copyFocusCard {
  min-height: 100%;
}

.copyGroupCard,
.copyAccountCard {
  display: grid;
  gap: 12px;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
}

.copyGroupCard.ok {
  border-color: #bbf7d0;
}

.copyGroupCard.warn {
  border-color: #fde68a;
}

.copyGroupCard.bad {
  border-color: #fecaca;
}

.copyAdminDetails {
  padding: 0;
  overflow: hidden;
  background: #f8fafc;
}

.copyAdminDetails summary {
  cursor: pointer;
  padding: 10px 14px;
  color: #64748b;
  font-weight: 800;
  font-size: 13px;
}

.copyAdminDetails[open] {
  padding-bottom: 12px;
}

.copyAdminDetails[open] summary {
  border-bottom: 1px solid #e5eaf2;
}

.copyAdminDetails .grid2 {
  padding: 16px;
}

.copyAdminDetails > div {
  padding: 12px 14px;
}

.subtleOnly {
  display: none !important;
}

.copyGroupTop,
.copyAccountCard {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.copyGroupTop {
  display: grid;
  gap: 12px;
}

.copyGroupTop span,
.copyAccountCard span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.copyGroupTop h3,
.copyAccountCard h3 {
  margin: 3px 0 4px;
  color: #0f172a;
  font-size: 17px;
}

.copyGroupTop p,
.copyAccountCard p {
  margin: 0;
  color: #64748b;
  overflow-wrap: anywhere;
}

.copyGroupStats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.copyGroupStats .copyMetric {
  min-height: 76px;
  padding: 10px;
  background: #f8fafc;
}

.copyGroupStats .copyMetric b {
  font-size: 17px;
}

.copyRuleLine {
  border-radius: 8px;
  padding: 10px 12px;
  background: #f8fafc;
  color: #334155;
  font-size: 13px;
  line-height: 1.55;
}

.copyAccountGrid {
  display: grid;
  gap: 10px;
}

.copyAccountSide {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.copyTimeline {
  display: grid;
  gap: 10px;
  max-height: 420px;
  overflow: auto;
  padding-right: 4px;
}

.copyTimelineItem {
  position: relative;
  display: grid;
  gap: 4px;
  border: 1px solid #e5eaf2;
  border-left: 4px solid #0b63ce;
  border-radius: 8px;
  padding: 10px 12px;
  background: #ffffff;
}

.copyTimelineItem.ok {
  border-left-color: #16a34a;
}

.copyTimelineItem.warn {
  border-left-color: #f59e0b;
}

.copyTimelineItem.bad {
  border-left-color: #dc2626;
}

.copyTimelineItem span {
  color: #64748b;
  font-size: 12px;
}

.copyTimelineItem b {
  color: #172033;
}

.copyTimelineItem p {
  margin: 0;
  color: #475569;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.copyManagerPanel {
  overflow: hidden;
}

.copyManagerHead {
  align-items: center;
}

.copyManagerOverview {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.copyManagerLayout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.copyManagerAside {
  position: sticky;
  top: 82px;
  display: grid;
  gap: 10px;
}

.copyManagerAsideTitle {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}

.copyManagerGroupList {
  display: grid;
  gap: 8px;
  max-height: 560px;
  overflow: auto;
  padding-right: 4px;
}

.copyManagerGroupButton {
  display: grid;
  width: 100%;
  min-height: 88px;
  gap: 5px;
  justify-items: start;
  border: 1px solid #dbe4f0;
  border-left: 4px solid #cbd5e1;
  border-radius: 12px;
  padding: 12px;
  background: #ffffff;
  color: #0f172a;
  text-align: left;
  box-shadow: none;
}

.copyManagerGroupButton.ok {
  border-left-color: #16a34a;
}

.copyManagerGroupButton.warn {
  border-left-color: #f59e0b;
}

.copyManagerGroupButton.bad {
  border-left-color: #dc2626;
}

.copyManagerGroupButton.active {
  border-color: #93c5fd;
  border-left-color: #0b63ce;
  background: #eff6ff;
}

.copyManagerGroupButton span {
  font-size: 14px;
  font-weight: 900;
}

.copyManagerGroupButton b,
.copyManagerGroupButton em {
  color: #64748b;
  font-size: 12px;
  font-style: normal;
  overflow-wrap: anywhere;
}

.copyManagerDetail {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.copyManagerDetailHeader {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.copyManagerDetailHeader h3 {
  margin: 0 0 4px;
  color: #0f172a;
  font-size: 20px;
}

.copyManagerDetailHeader p {
  margin: 0;
  color: #64748b;
  overflow-wrap: anywhere;
}

.copyManagerControls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.copyManagerAccounts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 10px;
}

.copyManagerAccountBlock {
  border: 1px solid #dbe4f0;
  border-radius: 12px;
  padding: 12px;
  background: #ffffff;
}

.copyManagerAccountBlock.ok {
  border-color: #bbf7d0;
}

.copyManagerAccountBlock.bad {
  border-color: #fecaca;
}

.copyManagerAccountHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.copyManagerAccountHead h4,
.copyManagerSplit h4 {
  margin: 0;
  color: #0f172a;
  font-size: 14px;
}

.copyManagerFields,
.copyManagerSettings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
}

.copyManagerField {
  display: grid;
  min-height: 56px;
  gap: 4px;
  border: 1px solid #e5eaf2;
  border-radius: 10px;
  padding: 8px 10px;
  background: #f8fafc;
}

.copyManagerField em {
  color: #64748b;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.copyManagerField b {
  color: #0f172a;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.copyManagerField.ok b {
  color: #047857;
}

.copyManagerField.warn b {
  color: #b45309;
}

.copyManagerField.bad b {
  color: #b91c1c;
}

.copyManagerSplit {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 14px;
}

.copyManagerSplit > section {
  display: grid;
  gap: 10px;
  border: 1px solid #dbe4f0;
  border-radius: 12px;
  padding: 12px;
  background: #ffffff;
}

.copyManagerLogs {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
}

.copyManagerLog {
  display: grid;
  gap: 4px;
  border: 1px solid #e5eaf2;
  border-left: 4px solid #0b63ce;
  border-radius: 10px;
  padding: 9px 10px;
  background: #ffffff;
}

.copyManagerLog.ok {
  border-left-color: #16a34a;
}

.copyManagerLog.warn {
  border-left-color: #f59e0b;
}

.copyManagerLog.bad {
  border-left-color: #dc2626;
}

.copyManagerLog span {
  color: #64748b;
  font-size: 12px;
}

.copyManagerLog b {
  color: #334155;
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.copyManagerEmpty {
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 16px;
  color: #64748b;
  background: #f8fafc;
}

.copyBadge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.copyBadge.ok {
  background: #dcfce7;
  color: #047857;
}

.copyBadge.warn {
  background: #fef3c7;
  color: #b45309;
}

.copyBadge.bad {
  background: #fee2e2;
  color: #b91c1c;
}

.compactButtons {
  gap: 6px;
}

.compactButtons button {
  min-height: 30px;
  padding: 5px 8px;
  font-size: 12px;
}

.chart {
  width: 100%;
  height: 310px;
}

.main {
  max-width: 1680px;
  padding: 20px 28px 36px;
}

.top {
  margin-bottom: 14px;
  border-color: #e1e8f0;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.top h1 {
  font-size: 26px;
}

.metrics {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.metric {
  min-height: 74px;
  padding: 12px 14px;
  border-color: #e1e8f0;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.metric span {
  font-size: 12px;
}

.metric b {
  font-size: 18px;
}

.quickActions {
  margin: -2px 0 14px;
  padding: 9px 10px;
  border-color: #e1e8f0;
}

.view.active {
  gap: 16px;
}

.panel {
  border-color: #e1e8f0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.panel h2 {
  color: #0f172a;
  font-size: 15px;
}

.panelHead {
  margin-bottom: 8px;
}

.chartFocusGrid {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(360px, 0.82fr);
  gap: 16px;
  align-items: stretch;
}

.primaryChartPanel {
  padding: 18px;
}

.primaryChartPanel .chart,
.secondaryChartPanel .chart {
  height: 390px;
}

.secondaryChartPanel {
  background: linear-gradient(180deg, #ffffff 0%, #fffafa 100%);
}

.periodGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.periodPanel .chart {
  height: 270px;
}

.riskPanel {
  padding: 14px 16px;
}

.riskGrid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.riskItem {
  min-height: 68px;
  padding: 9px 10px;
  background: #fbfcfe;
}

.dataPreviewGrid {
  align-items: start;
}

.communityHero {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.58fr);
  gap: 16px;
  padding: 18px;
  border-color: #e1e8f0;
}

.communityHero h2 {
  font-size: 24px;
}

.communityHero p {
  max-width: 780px;
  font-size: 14px;
  line-height: 1.65;
}

.communityStats div,
.marketHighlights div {
  min-height: 74px;
  padding: 12px;
  background: #fbfcfe;
}

.communityStats b {
  font-size: 22px;
}

.marketHighlights {
  gap: 10px;
}

.tableWrap {
  overflow: auto;
}

.tableMeta {
  color: #64748b;
  font-size: 12px;
  margin-bottom: 8px;
}

.clientLiveMoney {
  color: #0f172a;
  font-weight: 800;
  white-space: nowrap;
}

.clientLiveMoney.positive {
  color: #047857;
}

.clientLiveMoney.negative {
  color: #b91c1c;
}

.clientLiveMoney.muted {
  color: #64748b;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
  color: #475569;
  font-size: 13px;
}

.pager button {
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 8px;
  background: #f8fafc;
  cursor: pointer;
}

.pager button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.rankingHero {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(360px, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: linear-gradient(135deg, #f8fbff, #ffffff);
}

.rankingHero h2 {
  margin: 4px 0 0;
  color: #0f172a;
  font-size: 22px;
  line-height: 1.25;
}

.rankingHeroStats {
  display: grid;
  grid-template-columns: repeat(5, minmax(70px, 1fr));
  gap: 10px;
}

.rankingHeroStats div {
  display: grid;
  gap: 5px;
  min-height: 62px;
  border: 1px solid #e5eaf2;
  border-radius: 8px;
  padding: 10px;
  background: #ffffff;
}

.rankingHeroStats span {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.rankingHeroStats b {
  color: #0f172a;
  font-size: 18px;
}

.rankingToolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f9fafb;
}

.rankingToolbar b {
  display: block;
  margin-bottom: 3px;
  font-size: 15px;
}

.rankingToolbar span {
  color: #64748b;
  font-size: 12px;
}

.rankingFilters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rankingFilters button {
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #ffffff;
  cursor: pointer;
  font-size: 13px;
}

.rankingFilters button.active {
  border-color: #0b63ce;
  background: #0b63ce;
  color: white;
}

.rankingSearch {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  align-items: end;
  gap: 10px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
}

.rankingSearch.compact {
  grid-template-columns: minmax(180px, 1fr) auto auto;
  margin-bottom: 12px;
  padding: 10px;
  background: #f8fafc;
}

.rankingSearch label {
  display: grid;
  gap: 5px;
  color: #475569;
  font-size: 12px;
}

.rankingSearch input {
  width: 100%;
  min-height: 36px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 7px 10px;
  background: #ffffff;
  color: #0f172a;
  font-size: 14px;
}

.rankingSearch input:focus {
  border-color: #0b63ce;
  box-shadow: 0 0 0 3px rgba(11, 99, 206, 0.12);
  outline: none;
}

.rankingSearch button {
  min-height: 36px;
  border-radius: 8px;
  padding: 7px 14px;
  background: #0b63ce;
  color: white;
  cursor: pointer;
}

.rankingSearch button.secondaryButton {
  border-color: #cbd5e1;
  background: #ffffff;
  color: #334155;
}

.rankingSearch small {
  grid-column: 1 / -1;
  color: #64748b;
  font-size: 12px;
}

.rankingList {
  display: grid;
  gap: 14px;
}

.rankingList.compact {
  gap: 10px;
}

.rankingCard {
  display: grid;
  grid-template-columns: 78px minmax(180px, 1fr) minmax(360px, 1.2fr) minmax(90px, 0.36fr) 128px;
  align-items: center;
  gap: 14px;
  min-height: 116px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.rankingList.compact .rankingCard {
  grid-template-columns: 72px minmax(170px, 1fr) minmax(340px, 1.05fr) 88px 120px;
  gap: 12px;
}

.rankingCard:hover {
  border-color: #b9d8ff;
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.08);
  transform: translateY(-1px);
}

.rankingIdentity {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.rankingAvatar {
  width: 64px;
  height: 64px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 20px;
}

.rankingScore {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 25px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef6ff;
  color: #0b63ce;
  font-size: 11px;
  font-weight: 800;
}

.rankingScore b {
  font-size: 15px;
}

.rankingInfo {
  min-width: 0;
}

.rankingTitleRow {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rankingActions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.rankingInfo h3 {
  margin: 0;
  font-size: 17px;
  color: #111827;
}

.rankingTitleRow button {
  min-height: 30px;
  padding: 5px 10px;
  border-color: #0b63ce;
  background: #0b63ce;
  color: #ffffff;
  cursor: pointer;
  font-size: 12px;
}

.rankingInfo p {
  margin: 7px 0 0;
  color: #64748b;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.rankingAccountLine {
  color: #6b7280 !important;
}

.rankingTags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.rankingTag {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #334155;
  font-size: 11px;
  font-weight: 700;
}

.rankingTag.live {
  border-color: #86efac;
  background: #dcfce7;
  color: #166534;
}

.rankingTag.demo {
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
}

.rankingTag.ok {
  border-color: #86efac;
  background: #dcfce7;
  color: #166534;
}

.rankingTag.warn {
  border-color: #fcd34d;
  background: #fef3c7;
  color: #92400e;
}

.rankingTag.bad {
  border-color: #fecaca;
  background: #fee2e2;
  color: #991b1b;
}

.rankingTag.price {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.rankingTag.followers {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #047857;
}

.rankingTag.runtime {
  border-color: #c7d2fe;
  background: #eef2ff;
  color: #3730a3;
}

.linkedLiveNote {
  display: inline-grid;
  gap: 3px;
  margin-top: 9px;
  padding: 7px 9px;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  background: #f0fdf4;
  color: #166534;
  cursor: pointer;
}

.linkedLiveNote b {
  font-size: 12px;
}

.linkedLiveNote span {
  font-size: 11px;
  font-weight: 700;
}

.linkedLivePanel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(360px, 1.4fr);
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  background: linear-gradient(90deg, #f0fdf4, #ffffff);
}

.linkedLivePanel span {
  color: #15803d;
  font-size: 12px;
  font-weight: 800;
}

.linkedLivePanel h3 {
  margin: 6px 0;
  font-size: 18px;
}

.linkedLivePanel p {
  margin: 0;
  color: #64748b;
}

.linkedLiveMetrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(76px, 1fr));
  gap: 10px;
}

.linkedLiveMeta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.liveLinkControl {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 6px;
  align-items: center;
  min-width: 300px;
}

.liveLinkControl select {
  min-height: 34px;
  font-size: 12px;
}

.liveLinkControl button {
  min-height: 34px;
  padding: 5px 10px;
  font-size: 12px;
}

.liveLinkControl small {
  grid-column: 1 / -1;
  color: #64748b;
}

.subscriptionEdit {
  display: grid;
  grid-template-columns: auto 90px auto;
  gap: 6px;
  align-items: center;
  min-width: 210px;
}

.subscriptionEdit input[type="number"] {
  min-height: 30px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 4px 6px;
}

.subscriptionEdit button {
  min-height: 30px;
  padding: 4px 8px;
  font-size: 12px;
}

.followerCountEdit {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) 78px auto;
  gap: 6px;
  align-items: center;
  min-width: 260px;
}

.followerCountEdit span {
  color: #334155;
  font-size: 12px;
}

.followerCountEdit span b {
  color: #047857;
  font-size: 15px;
}

.followerCountEdit small {
  color: #64748b;
  font-size: 12px;
}

.followerCountEdit input {
  min-height: 30px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 4px 6px;
}

.followerCountEdit button {
  min-height: 30px;
  padding: 4px 8px;
  font-size: 12px;
}

.rankingMetrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(70px, 1fr));
  gap: 10px;
}

.rankingMetric {
  display: grid;
  justify-items: center;
  gap: 7px;
  min-width: 0;
}

.rankingMetric span {
  color: #4b5563;
  font-size: 12px;
  font-weight: 800;
}

.rankingMetric b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 25px;
  max-width: 100%;
  border-radius: 999px;
  padding: 4px 10px;
  color: white;
  font-size: 13px;
  line-height: 17px;
  overflow-wrap: anywhere;
}

.rankingMetric b.profit {
  background: #14a05f;
}

.rankingMetric b.loss {
  background: #e11d48;
}

.rankingMetric b.gain {
  background: #e83b57;
}

.rankingMetric b.win {
  background: #ffbf00;
  color: #111827;
}

.rankingMetric b.dd {
  background: #0b7bea;
}

.rankingMetric b.followers {
  background: #047857;
}

.rankingRisk {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.rankingRisk span {
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
}

.rankingRisk b {
  font-size: 13px;
}

.rankingRisk b.ok {
  color: #15803d;
}

.rankingRisk b.warn {
  color: #b45309;
}

.rankingRisk b.demo {
  color: #4f46e5;
}

.rankingRisk b.bad {
  color: #b91c1c;
}

.rankingSubscribe {
  display: grid;
  gap: 7px;
  justify-items: stretch;
  align-content: center;
  min-height: 88px;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  padding: 10px;
  background: #f8fafc;
}

.rankingSubscribe span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.rankingSubscribe b {
  color: #0f172a;
  font-size: 14px;
}

.rankingSubscribe em {
  color: #047857;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.rankingSubscribe.open {
  border-color: #bfdbfe;
  background: #f8fbff;
}

.rankingSubscribe.closed {
  opacity: 0.72;
}

.rankingSubscribe .subscribeButton {
  min-height: 32px;
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
}

.rankingSubscribe .subscribeButton.isClosed {
  border-color: #dbe4f0;
  background: #e5eaf2;
  color: #64748b;
  cursor: not-allowed;
}

.riskBar {
  height: 7px;
  border-radius: 999px;
  background: #eef1f5;
  overflow: hidden;
}

.riskBar i {
  display: block;
  height: 100%;
  min-width: 4px;
  border-radius: inherit;
}

.riskBar i.ok {
  background: #22c55e;
}

.riskBar i.warn {
  background: #f59e0b;
}

.riskBar i.bad {
  background: #ef4444;
}

.emptyState {
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  padding: 22px;
  color: #64748b;
  text-align: center;
  background: #f8fafc;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  padding: 3px 9px;
  font-size: 12px;
  line-height: 18px;
  font-weight: 700;
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid #e5eaf2;
  padding: 10px 9px;
  text-align: left;
  white-space: nowrap;
  font-size: 13px;
}

th {
  background: #f8fafc;
  color: #475569;
}

tr:hover td {
  background: #fbfdff;
}

@media (max-width: 1100px) {
  .metrics {
    grid-template-columns: repeat(4, minmax(120px, 1fr));
  }

  .grid2,
  .grid3,
  .chartFocusGrid,
  .periodGrid {
    grid-template-columns: 1fr;
  }

  .providerCard,
  .profileEditor,
  .profileWalletCard,
  .communityHero,
  .landingHero,
  .landingFeatureGrid,
  .marketHighlights,
  .homeFeatureGrid,
  .saasHero,
    .homeProductGrid,
    .homeFlowPanel,
    .landingSplit,
    .roleCards,
    .sourceStatsGrid {
    grid-template-columns: 1fr;
  }

  .landingPreviewStats,
  .landingStrip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landingHero.freebirdHero {
    grid-template-columns: 1fr;
  }

  .rankingCard {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .rankingMetrics,
  .rankingRisk,
  .rankingSubscribe {
    grid-column: 1 / -1;
  }

  .linkedLivePanel {
    grid-template-columns: 1fr;
  }

  .copyHero,
  .copyQuickHeader,
  .copyConfigGrid,
  .copyBindLayout {
    grid-template-columns: 1fr;
  }

  .copyQuickSteps {
    justify-content: flex-start;
  }

  .copyQuickGrid,
  .copyQuickGrid.compact,
  .copyFollowerSimple {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .copyMetricGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .copyRuntimeBar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .loginPage {
    grid-template-columns: 1fr;
  }

  .loginBrandPanel {
    min-height: auto;
    padding: 18px 20px;
    background:
      linear-gradient(135deg, rgba(4, 17, 57, 0.98), rgba(11, 99, 206, 0.86)),
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='260' viewBox='0 0 900 260'%3E%3Crect width='900' height='260' fill='%2305163f'/%3E%3Cg fill='none' stroke='%23294aa5' stroke-width='3' stroke-opacity='.35'%3E%3Cpath d='M0 220 C210 120 420 160 900 70'/%3E%3Cpath d='M0 250 C230 150 500 178 900 110'/%3E%3C/g%3E%3C/svg%3E");
    background-size: cover;
  }

  .loginBrandPanel::after {
    display: none;
  }

  .loginBrandCopy {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 6px;
  }

  .loginBrandPanel h2 {
    margin: 8px 0 0;
    font-size: 20px;
  }

  .loginBrandPanel p {
    display: none;
  }

  .loginCard {
    min-height: calc(100vh - 138px);
    align-self: stretch;
    align-content: start;
    padding-top: 28px;
  }
}

@media (max-width: 760px) {
  body {
    display: block;
  }

  body.landingActive {
    display: block;
  }

  .landingHeader {
    position: relative;
    align-items: flex-start;
    flex-direction: column;
    padding: 16px;
  }

  .landingNav {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  .landingNav button,
  .landingActions button,
  .landingSectionHead button {
    width: 100%;
  }

  .landingMain {
    width: calc(100% - 28px);
    padding: 18px 0 36px;
  }

  .landingHero {
    min-height: auto;
    padding: 22px;
  }

  .landingHero.freebirdHero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .landingHero h1 {
    font-size: 34px;
  }

  .landingPreviewStats,
  .landingStrip,
  .landingSignalCard,
  .productStats,
  .copyRoutePreview,
  .landingStepList article {
    grid-template-columns: 1fr;
  }

  .copyRoutePreview b {
    display: none;
  }

  .landingSignalScore {
    justify-items: start;
    border-left: 0;
    border-top: 1px solid #e6ebf2;
    padding-top: 12px;
  }

  .landingSectionHead {
    align-items: stretch;
    flex-direction: column;
  }

  .landingFeatureGrid.featureMatrix {
    grid-template-columns: 1fr;
  }

  .side {
    width: 100%;
    height: auto;
    position: relative;
  }

  .main {
    padding: 16px;
  }

  .top {
    display: grid;
  }

  .toolbar,
  .toolbar select,
  .toolbar button {
    width: 100%;
  }

  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quickActions {
    display: grid;
  }

  .quickActions .summary {
    margin-right: 0;
    line-height: 1.7;
  }

  .chart {
    min-height: 280px;
  }

  .primaryChartPanel .chart,
  .secondaryChartPanel .chart {
    height: 320px;
  }

  .periodPanel .chart {
    height: 260px;
  }

  .brandHero {
    display: grid;
  }

  .brandHero img {
    width: 72px;
    height: 72px;
  }

  .communityHero {
    padding: 18px;
  }

  .communityHero h2 {
    font-size: 24px;
  }

  .communityStats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .saasHero {
    padding: 20px;
  }

  .saasHero h2 {
    font-size: 30px;
  }

  .heroVisualStats {
    grid-template-columns: 1fr;
  }

  .rankingToolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .rankingHero {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .rankingHeroStats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rankingSearch,
  .rankingSearch.compact {
    grid-template-columns: 1fr;
  }

  .rankingSearch button {
    width: 100%;
  }

  .rankingCard {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .rankingIdentity {
    justify-items: start;
    grid-template-columns: 64px auto;
  }

  .rankingTitleRow {
    width: 100%;
  }

  .rankingMetrics {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rankingRisk,
  .rankingSubscribe {
    width: 100%;
  }

  .linkedLiveMetrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .copyHero {
    padding: 14px;
  }

  .copyMetricGrid,
  .copyRuntimeBar,
  .copyQuickGrid,
  .copyQuickGrid.compact,
  .copyFollowerSimple,
  .copyGroupStats {
    grid-template-columns: 1fr;
  }

  .copyGroupGrid {
    grid-template-columns: 1fr;
  }

  .copyGroupTop,
  .copyAccountCard {
    grid-template-columns: 1fr;
  }

  .copyAccountSide {
    justify-items: start;
  }

  .liveLinkControl {
    grid-template-columns: 1fr;
    min-width: 220px;
  }

  .providerContacts,
  .profileForm {
    grid-template-columns: 1fr;
  }

  .rankingMetric {
    justify-items: start;
  }

  .loginBrandPanel {
    padding: 16px 18px;
  }

  .loginCard {
    min-height: calc(100vh - 126px);
    padding: 22px 18px 28px;
  }

  .loginBrandPanel h2 {
    font-size: 19px;
  }

  .loginCenterLogo {
    margin-bottom: 12px;
  }

  .loginCenterLogo img {
    width: 56px;
    height: 56px;
  }

  .loginTabs {
    margin-bottom: 16px;
  }

  .plainSwitch {
    margin-top: 22px;
  }

  .loginAccountBox p {
    display: grid;
  }

  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  body:not(.landingActive) {
    background: #f3f6fa;
  }

  .landingHeader {
    gap: 12px;
    border-bottom-color: #eef2f7;
  }

  .landingBrand img {
    width: 36px;
    height: 36px;
  }

  .landingNav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .landingNav button {
    min-height: 38px;
    padding: 0 8px;
    font-size: 13px;
  }

  .landingHero {
    gap: 18px;
    background-size: 26px 26px;
  }

  .landingHero h1 {
    font-size: 30px;
    line-height: 1.18;
  }

  .landingHero p {
    font-size: 15px;
    line-height: 1.75;
  }

  .landingActions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .landingPreview {
    padding: 16px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  }

  .landingPreviewCurve {
    min-height: 160px;
    gap: 7px;
    padding: 12px;
  }

  .landingSection {
    padding: 16px;
  }

  .side {
    padding: 12px;
    border-right: 0;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    overflow: visible;
  }

  .brand {
    gap: 8px;
    padding: 0 0 8px;
    margin-bottom: 8px;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .brand small {
    font-size: 11px;
  }

  .authBox {
    margin: 0 0 8px;
    padding: 9px;
  }

  .authBox input {
    min-height: 40px;
  }

  .authBox button {
    min-height: 38px;
  }

  .navGroup,
  .userBackendNav,
  .adminNav {
    display: flex;
    align-items: center;
    gap: 8px;
    width: calc(100% + 24px);
    margin: 0 -12px;
    border: 0;
    border-radius: 0;
    padding: 5px 12px 8px;
    overflow-x: auto;
    background: transparent;
    scrollbar-width: none;
  }

  details.navGroup[open] {
    display: flex;
  }

  details.navGroup:not([open]) {
    display: flex;
  }

  .navGroup::-webkit-scrollbar {
    display: none;
  }

  .navGroup > span,
  .navGroup > summary {
    flex: 0 0 auto;
    padding: 0 2px;
    white-space: nowrap;
  }

  .navGroup > summary::after {
    display: none;
  }

  .side button {
    flex: 0 0 auto;
    width: auto;
    min-width: max-content;
    min-height: 36px;
    border: 1px solid #dbe4f0;
    border-radius: 999px;
    padding: 8px 12px;
    background: #ffffff;
    text-align: center;
    font-size: 13px;
    white-space: nowrap;
  }

  .adminNav button:hover,
  .adminNav button.active,
  .side button:hover,
  .side button.active {
    border-color: #bfdbfe;
    background: #eaf4ff;
    color: #0b63ce;
  }

  .main {
    padding: 12px;
  }

  .top {
    position: relative;
    gap: 12px;
    padding: 14px;
    border-radius: 8px;
  }

  .top h1 {
    font-size: 24px;
    line-height: 1.2;
  }

  #eyebrow {
    display: block;
    margin-top: 4px;
    font-size: 12px;
  }

  .modeBadge {
    min-height: 22px;
    margin-right: 0;
    padding: 2px 7px;
    font-size: 11px;
  }

  .toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    width: 100%;
  }

  .toolbar select {
    width: 100%;
    min-width: 0;
  }

  .toolbar button {
    width: auto;
    min-width: 70px;
  }

  .metrics {
    gap: 8px;
    margin-bottom: 12px;
  }

  .metric {
    min-height: 74px;
    padding: 11px;
  }

  .metric span {
    font-size: 12px;
  }

  .metric b {
    font-size: 17px;
  }

  .quickActions {
    gap: 8px;
    padding: 10px;
  }

  .quickActions a,
  .quickActions button,
  .quickActions .subscribeButton {
    width: 100%;
    text-align: center;
  }

  .quickActionDivider {
    display: none;
  }

  .view.active {
    gap: 12px;
  }

  .grid2,
  .grid3,
  .chartFocusGrid,
  .periodGrid,
  .dataPreviewGrid,
  .profileEditor,
  .profileWalletCard,
  .homeProductGrid,
  .homeFlowPanel,
  .homeFeatureGrid,
  .localServiceGrid,
  .roleCards,
  .sourceStatsGrid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .panel {
    padding: 14px;
  }

  .panelHead {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .panelHead button {
    width: 100%;
  }

  .chart {
    min-height: 240px;
  }

  .primaryChartPanel .chart,
  .secondaryChartPanel .chart {
    height: 290px;
  }

  .periodPanel .chart {
    height: 240px;
  }

  .tableWrap,
  .ordersTable,
  .positionsTable {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  table {
    min-width: 680px;
  }

  th,
  td {
    padding: 9px 8px;
    font-size: 12px;
  }

  .rankingCard {
    gap: 12px;
    padding: 14px;
  }

  .rankingList.compact .rankingCard {
    grid-template-columns: 1fr;
  }

  .rankingIdentity {
    grid-template-columns: 54px minmax(0, 1fr);
    width: 100%;
  }

  .rankingAvatar {
    width: 54px;
    height: 54px;
  }

  .rankingTitleRow {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .rankingTags {
    gap: 5px;
  }

  .rankingMetric b {
    justify-content: flex-start;
    min-height: 24px;
    font-size: 12px;
  }

  .rankingSubscribe {
    min-height: auto;
  }

  .rankingActions {
    width: 100%;
  }

  .rankingActions button,
  .rankingActions a {
    width: 100%;
  }

  .linkedLiveMetrics,
  .subscriptionSummary {
    grid-template-columns: 1fr;
  }

  .subscriptionEdit,
  .liveLinkControl {
    width: 100%;
    min-width: 0;
  }

  .copyQuickFooter {
    align-items: stretch;
    flex-direction: column;
  }

  .copyQuickFooter button {
    width: 100%;
  }

  .copyQuickOptions {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr;
  }

  .copyHealthStrip {
    grid-template-columns: 1fr;
  }

  .copyConfigBlock,
  .copyStepCard,
  .copyGroupCard,
  .copyAccountCard {
    padding: 14px;
  }
}

@media (max-width: 460px) {
  .landingNav {
    grid-template-columns: 1fr;
  }

  .landingMain {
    width: calc(100% - 20px);
    padding-top: 12px;
  }

  .landingHero,
  .landingSection {
    padding: 14px;
  }

  .metrics,
  .communityStats,
  .rankingMetrics,
  .linkedLiveMetrics {
    grid-template-columns: 1fr;
  }

  .top h1 {
    font-size: 22px;
  }

  .toolbar {
    grid-template-columns: 1fr;
  }

  .toolbar button {
    width: 100%;
  }

  .primaryChartPanel .chart,
  .secondaryChartPanel .chart {
    height: 260px;
  }
}

/* 20260705 global UI polish */
:root {
  --fx-bg: #f4f7fb;
  --fx-surface: #ffffff;
  --fx-soft: #f8fafc;
  --fx-line: #dfe7f1;
  --fx-line-soft: #edf2f7;
  --fx-text: #111827;
  --fx-muted: #64748b;
  --fx-blue: #1167d8;
  --fx-blue-strong: #0759c7;
  --fx-green: #16834a;
  --fx-red: #c21d2b;
  --fx-amber: #b7791f;
  --fx-radius: 12px;
  --fx-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  --fx-shadow-soft: 0 2px 10px rgba(15, 23, 42, 0.045);
}

html {
  background: var(--fx-bg);
}

body {
  color: var(--fx-text);
  background:
    radial-gradient(circle at 78% 0%, rgba(17, 103, 216, 0.08), transparent 32%),
    linear-gradient(180deg, #f8fbff 0%, var(--fx-bg) 260px);
}

body.landingActive {
  background: #ffffff;
}

button,
select,
input,
textarea {
  border-color: #cfd9e6;
  border-radius: 10px;
  color: var(--fx-text);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

button {
  font-weight: 700;
}

button:hover:not(:disabled) {
  border-color: #9db6d6;
}

button:active:not(:disabled) {
  transform: translateY(1px);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--fx-blue);
  box-shadow: 0 0 0 3px rgba(17, 103, 216, 0.12);
  outline: none;
}

#refreshBtn,
.loginForm button,
.loginActions button:not(.secondaryButton),
.authBox button:not(.secondaryButton),
.rankingFilters button.active,
.subscribeButton,
.rankingSubscribe .subscribeButton,
.landingActions button,
.landingSectionHead button,
.landingFinalCta button {
  background: var(--fx-blue);
  border-color: var(--fx-blue);
  color: #ffffff;
}

#refreshBtn:hover:not(:disabled),
.loginForm button:hover:not(:disabled),
.authBox button:not(.secondaryButton):hover:not(:disabled),
.rankingSubscribe .subscribeButton:hover:not(:disabled),
.landingActions button:hover:not(:disabled),
.landingSectionHead button:hover:not(:disabled) {
  background: var(--fx-blue-strong);
  border-color: var(--fx-blue-strong);
}

.side {
  width: 248px;
  flex-basis: 248px;
  padding: 18px 12px;
  border-right: 1px solid var(--fx-line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 10px 0 30px rgba(15, 23, 42, 0.035);
}

.brand {
  margin-bottom: 14px;
  padding: 2px 8px 18px;
  border-bottom-color: var(--fx-line-soft);
}

.brand img {
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.brand strong {
  font-size: 17px;
  letter-spacing: 0;
}

.authBox,
.navGroup {
  border-radius: var(--fx-radius);
}

.authBox {
  padding: 12px;
  border-color: var(--fx-line);
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.side .navGroup > span,
.side details.navGroup > summary {
  color: #8a98aa;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.side button {
  min-height: 42px;
  margin-top: 4px;
  border-radius: 10px;
  color: #334155;
  font-size: 14px;
}

.side button:hover,
.side button.active {
  background: #eef6ff;
  color: var(--fx-blue);
}

.adminNav button.active,
.adminNav button:hover {
  background: #e8f2ff;
  color: var(--fx-blue);
}

.main {
  width: min(100%, 1580px);
  margin: 0 auto;
  padding: 24px 30px 44px;
}

.top {
  min-height: 86px;
  margin-bottom: 18px;
  border-color: var(--fx-line);
  border-radius: 14px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--fx-shadow-soft);
}

.top h1 {
  margin-top: 6px;
  color: var(--fx-text);
  font-size: 28px;
  line-height: 1.18;
}

#eyebrow {
  color: #718096;
}

.modeBadge {
  border-color: #cfe0f5;
  background: #f2f7ff;
  color: var(--fx-blue);
}

.toolbar {
  align-items: center;
}

.toolbar select {
  min-width: 260px;
  border-color: #c9d7e8;
  background: #ffffff;
}

.metrics {
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 12px;
}

.metric {
  min-height: 86px;
  border-color: var(--fx-line);
  border-radius: var(--fx-radius);
  padding: 14px 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: var(--fx-shadow-soft);
}

.metric span {
  color: #708096;
  font-size: 12px;
  font-weight: 700;
}

.metric b {
  color: var(--fx-text);
  font-size: 20px;
  line-height: 1.18;
}

.metric b.profit,
.metric b.gain,
.metric b.win,
.rankingMetric b.profit,
.rankingMetric b.gain,
.rankingMetric b.win {
  color: var(--fx-green);
}

.metric b.loss,
.metric b.dd,
.rankingMetric b.loss,
.rankingMetric b.dd {
  color: var(--fx-red);
}

.quickActions,
.providerPanel,
.panel,
.riskItem,
.rankingToolbar,
.rankingSearch,
.rankingHero {
  border-color: var(--fx-line);
  border-radius: var(--fx-radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--fx-shadow-soft);
}

.quickActions {
  margin-bottom: 18px;
  padding: 12px 14px;
}

.panel {
  padding: 18px;
}

.panel h2,
.panelHead h2 {
  color: var(--fx-text);
  font-size: 16px;
  line-height: 1.28;
}

.view.active {
  gap: 18px;
}

.chartFocusGrid,
.periodGrid,
.grid2,
.grid3,
.dataPreviewGrid {
  gap: 18px;
}

.primaryChartPanel,
.secondaryChartPanel,
.periodPanel {
  overflow: hidden;
}

.chart {
  min-height: 300px;
}

.primaryChartPanel .chart,
.secondaryChartPanel .chart {
  height: 380px;
}

.periodPanel .chart {
  height: 280px;
}

.riskGrid {
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
}

.riskItem {
  border-color: #dde8f4;
  background: #fbfdff;
}

.tableWrap {
  border: 1px solid var(--fx-line-soft);
  border-radius: 10px;
  background: #ffffff;
}

table {
  border-collapse: separate;
  border-spacing: 0;
}

th {
  background: #f6f8fb;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

td {
  color: #1f2937;
  border-top-color: #edf2f7;
}

tbody tr:hover td {
  background: #f8fbff;
}

.pager button {
  border-color: #d7e2ef;
  background: #ffffff;
}

.rankingHero {
  grid-template-columns: minmax(260px, 0.78fr) minmax(420px, 1fr);
  padding: 18px;
  background: linear-gradient(135deg, #ffffff 0%, #f7fbff 100%);
}

.rankingHero h2 {
  font-size: 24px;
}

.rankingHeroStats div {
  border-color: #dce7f5;
  border-radius: 12px;
  background: #ffffff;
}

.rankingToolbar {
  padding: 12px;
  background: #ffffff;
}

.rankingSearch {
  padding: 12px;
  background: #ffffff;
}

.rankingList,
.rankingList.compact {
  gap: 12px;
}

.rankingCard {
  grid-template-columns: 118px minmax(230px, 1fr) minmax(420px, 1.35fr) minmax(160px, 0.42fr);
  gap: 18px;
  align-items: center;
  border: 1px solid var(--fx-line);
  border-radius: 14px;
  padding: 18px;
  background: #ffffff;
  box-shadow: var(--fx-shadow-soft);
}

.rankingList.compact .rankingCard {
  grid-template-columns: 106px minmax(220px, 1fr) minmax(380px, 1.25fr) minmax(150px, 0.42fr);
}

.rankingCard:hover {
  border-color: #b9d5f6;
  box-shadow: var(--fx-shadow);
  transform: translateY(-1px);
}

.rankingIdentity {
  gap: 10px;
}

.rankingAvatar {
  width: 66px;
  height: 66px;
  border-radius: 16px;
  background: linear-gradient(135deg, #eaf3ff, #dcecff);
}

.rankingScore {
  border-radius: 999px;
  background: #eef6ff;
  color: var(--fx-blue);
}

.rankingInfo h3 {
  font-size: 20px;
}

.rankingTags {
  gap: 6px;
}

.rankingTag {
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
}

.rankingMetrics {
  grid-template-columns: repeat(4, minmax(86px, 1fr));
  gap: 10px;
}

.rankingMetric {
  min-height: 70px;
  border: 1px solid #e5edf6;
  border-radius: 12px;
  padding: 10px;
  background: #fbfdff;
}

.rankingMetric b {
  min-height: auto;
  justify-content: flex-start;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: var(--fx-text);
  font-size: 16px;
}

.rankingRisk {
  min-width: 0;
}

.rankingRisk span,
.rankingRisk b {
  font-size: 12px;
}

.rankingSubscribe {
  min-height: 112px;
  border-radius: 12px;
  padding: 12px;
  background: #f8fbff;
}

.rankingSubscribe .subscribeButton {
  width: 100%;
  min-height: 40px;
  border-radius: 999px;
}

.landingHeader.freebirdStyle {
  min-height: 68px;
  border-bottom-color: #e6eef8;
  background: rgba(255, 255, 255, 0.94);
}

.landingHeader.freebirdStyle .landingNav button {
  color: #334155;
}

.landingHeader.freebirdStyle .landingNav .primary {
  color: #ffffff;
}

.landingHero.freebirdHero {
  border-color: #dbeafe;
  border-radius: 0;
  background:
    radial-gradient(circle at 78% 18%, rgba(59, 130, 246, 0.22), transparent 34%),
    linear-gradient(135deg, #edf6ff 0%, #ffffff 56%, #f7fbff 100%);
  box-shadow: none;
}

.landingHero.freebirdHero h1 {
  color: #0f172a;
}

.landingHero.freebirdHero p {
  color: #3f4b5f;
}

.productWindow,
.landingSection,
.landingFeatureGrid article,
.landingSignalCard,
.landingFinalCta {
  border-radius: 16px;
  border-color: var(--fx-line);
  box-shadow: var(--fx-shadow-soft);
}

.landingSignalCard {
  align-items: center;
}

.landingFinalCta {
  background: linear-gradient(135deg, #0b4fb3 0%, #1174e6 100%);
}

.loginCard,
.loginForm {
  border-radius: 16px;
}

.authViewActive .main {
  background: #f7f9fc;
}

.copyHero,
.copyQuickSetup,
.copyGroupCard,
.copyAccountCard,
.copyStepCard {
  border-color: var(--fx-line);
  border-radius: 14px;
  box-shadow: var(--fx-shadow-soft);
}

.copyMetric,
.copyHealthPill {
  border-radius: 12px;
}

.copyGroupCard.ok {
  border-color: #bbf7d0;
}

.copyGroupCard.warn {
  border-color: #fde68a;
}

.copyGroupCard.bad {
  border-color: #fecaca;
}

@media (max-width: 1280px) {
  .rankingCard,
  .rankingList.compact .rankingCard {
    grid-template-columns: 98px minmax(220px, 1fr);
  }

  .rankingMetrics,
  .rankingRisk,
  .rankingSubscribe {
    grid-column: 1 / -1;
  }

  .rankingMetrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .main {
    padding: 16px;
  }

  .top {
    position: relative;
  }

  .toolbar select {
    min-width: 0;
  }

  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .copyManagerOverview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .copyManagerLayout,
  .copyManagerSplit {
    grid-template-columns: 1fr;
  }

  .copyManagerAside {
    position: static;
  }

  .copyManagerGroupList {
    max-height: none;
  }
}

@media (max-width: 760px) {
  body:not(.landingActive):not(.authViewActive) {
    background: var(--fx-bg);
  }

  .side {
    width: 100%;
    max-height: none;
    padding: 14px;
    border-right: 0;
    border-bottom: 1px solid var(--fx-line);
    box-shadow: none;
  }

  .brand {
    padding-bottom: 12px;
  }

  .authBox {
    margin-bottom: 10px;
  }

  .navGroup.publicNav,
  .side details.navGroup {
    margin-bottom: 8px;
    padding: 8px;
    border: 1px solid var(--fx-line-soft);
    background: #ffffff;
  }

  .side button {
    min-height: 40px;
  }

  .top {
    min-height: auto;
    padding: 14px;
  }

  .top h1 {
    font-size: 24px;
  }

  .toolbar {
    grid-template-columns: 1fr auto;
  }

  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .copyManagerOverview,
  .copyManagerAccounts,
  .copyManagerFields,
  .copyManagerSettings {
    grid-template-columns: 1fr;
  }

  .metric {
    min-height: 78px;
  }

  .panel {
    padding: 14px;
  }

  .rankingHeroStats,
  .rankingMetrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rankingCard,
  .rankingList.compact .rankingCard {
    grid-template-columns: 1fr;
    padding: 14px;
    gap: 10px;
  }

  .rankingMetrics,
  .rankingRisk,
  .rankingSubscribe {
    grid-column: auto;
  }

  .rankingIdentity {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .rankingAvatar {
    width: 56px;
    height: 56px;
  }

  .rankingInfo h3 {
    font-size: 18px;
  }

  .rankingInfo p,
  .rankingAccountLine {
    font-size: 12px;
    line-height: 1.45;
  }

  .rankingMetric {
    min-height: 58px;
    padding: 8px;
  }

  .rankingMetric b {
    font-size: 14px;
  }

  .rankingRisk {
    gap: 5px;
  }

  .rankingSubscribe {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 7px 10px;
    min-height: auto;
    padding: 10px;
  }

  .rankingSubscribe .subscribeButton {
    grid-column: 1 / -1;
    min-height: 38px;
  }

  .landingHeader.freebirdStyle {
    position: relative;
  }

  .landingHero.freebirdHero {
    padding: 28px 18px;
  }
}

@media (max-width: 460px) {
  .main {
    padding: 12px;
  }

  .metrics,
  .rankingHeroStats,
  .rankingMetrics {
    grid-template-columns: 1fr;
  }

  .toolbar {
    grid-template-columns: 1fr;
  }

  .metric b {
    font-size: 18px;
  }

  .rankingInfo h3 {
    font-size: 18px;
  }
}

/* Ranking page: compact market-list layout */
.rankingList:not(.compact) {
  gap: 10px;
}

.rankingCard,
.rankingList.compact .rankingCard {
  grid-template-columns: 86px minmax(260px, 1.1fr) minmax(460px, 1.45fr) minmax(160px, 0.45fr);
  align-items: center;
  gap: 18px;
  min-height: 128px;
  padding: 18px 20px;
  border-color: #dfe7f2;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.rankingCard:hover {
  border-color: #9fc4f5;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.rankingIdentity {
  align-content: center;
}

.rankingAvatar {
  width: 62px;
  height: 62px;
  border-radius: 14px;
}

.rankingScore {
  min-height: 24px;
  padding: 3px 8px;
  background: #f0f7ff;
  white-space: nowrap;
}

.rankingTitleRow {
  align-items: flex-start;
}

.rankingInfo h3 {
  max-width: 100%;
  font-size: 20px;
  line-height: 1.25;
}

.rankingActions button {
  min-width: 76px;
  border-radius: 10px;
}

.rankingSubline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 5px;
  color: #64748b;
  font-size: 13px;
}

.rankingSubscribeInline {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  padding: 4px 6px;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  background: #f8fbff;
}

.rankingSubscribeInline span,
.rankingSubscribeInline em {
  color: #0f172a;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.rankingSubscribeInline em {
  color: #047857;
}

.rankingSubscribeInline .subscribeButton {
  min-height: 28px;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 12px;
}

.rankingTags {
  margin-top: 10px;
}

.rankingAccountLine {
  margin-top: 8px !important;
  line-height: 1.45;
}

.rankingMetrics {
  grid-template-columns: repeat(5, minmax(76px, 1fr));
  gap: 8px;
}

.rankingMetric {
  justify-items: start;
  min-height: 56px;
  padding: 9px 10px;
  border: 1px solid #edf2f7;
  border-radius: 10px;
  background: #fbfdff;
}

.rankingMetric span {
  color: #64748b;
  font-size: 12px;
}

.rankingMetric b {
  justify-content: flex-start;
  min-height: 0;
  padding: 0;
  background: transparent !important;
  color: #0f172a;
  font-size: 15px;
  line-height: 1.25;
  text-align: left;
}

.rankingMetric b.profit,
.rankingMetric b.gain,
.rankingMetric b.followers {
  color: #059669;
}

.rankingMetric b.loss,
.rankingMetric b.dd {
  color: #dc2626;
}

.rankingMetric b.win {
  color: #b45309;
}

.rankingRisk {
  align-content: center;
  gap: 8px;
}

.rankingRisk span {
  color: #475569;
}

.rankingRisk b {
  line-height: 1.35;
}

.rankingSubscribe {
  display: none;
}

@media (max-width: 1280px) {
  .rankingCard,
  .rankingList.compact .rankingCard {
    grid-template-columns: 78px minmax(240px, 1fr);
  }

  .rankingMetrics,
  .rankingRisk {
    grid-column: 1 / -1;
  }

  .rankingMetrics {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .rankingCard,
  .rankingList.compact .rankingCard {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 14px;
  }

  .rankingIdentity {
    grid-template-columns: 62px 1fr;
    justify-items: start;
  }

  .rankingMetrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rankingSubline {
    align-items: stretch;
    flex-direction: column;
  }

  .rankingSubscribeInline {
    width: 100%;
  }
}

@media (max-width: 460px) {
  .rankingMetrics {
    grid-template-columns: 1fr;
  }
}

/* Public signal pages should be entered from cards, not a global account picker. */
#accountSelect {
  display: none !important;
}

.appToast {
  position: fixed;
  right: 24px;
  top: 24px;
  z-index: 9999;
  max-width: min(360px, calc(100vw - 32px));
  padding: 12px 14px;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  background: #f0fdf4;
  color: #166534;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  font-size: 14px;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.appToast.bad {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.appToast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 760px) {
  .appToast {
    left: 16px;
    right: 16px;
    top: 16px;
    max-width: none;
  }
}

.walletHeader {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 240px) auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 18px;
}

.walletHeader > div,
.walletTxItem {
  border: 1px solid var(--fx-line-soft, #e5edf7);
  border-radius: 10px;
  background: #ffffff;
  padding: 14px;
}

.walletHeader span,
.walletHeader label,
.walletTxItem small {
  color: #64748b;
  font-size: 13px;
}

.walletHeader strong {
  display: block;
  margin-top: 6px;
  color: #0f172a;
  font-size: 26px;
}

.walletTxList {
  display: grid;
  gap: 10px;
}

.walletTxItem {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
}

.walletTxItem small {
  grid-column: 1 / -1;
}

.walletTxItem .positive {
  color: #047857;
}

.walletTxItem .negative {
  color: #b91c1c;
}

.paymentTable .secondaryButton {
  margin-right: 6px;
}

.statusPill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 700;
  background: #e5edf7;
  color: #334155;
}

.statusPill.ok {
  background: #dcfce7;
  color: #166534;
}

.statusPill.warn {
  background: #fef3c7;
  color: #92400e;
}

.statusPill.bad {
  background: #fee2e2;
  color: #991b1b;
}

@media (max-width: 760px) {
  .walletHeader {
    grid-template-columns: 1fr;
  }
}

.shellSwitch {
  display: grid;
  gap: 8px;
  margin: 12px 0 16px;
  padding: 8px;
  border: 1px solid var(--fx-line, #e5eaf2);
  border-radius: 10px;
  background: #ffffff;
}

.shellSwitch button,
.shellSwitch span {
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  padding: 10px 12px;
  background: transparent;
  color: #354153;
  font-size: 14px;
  font-weight: 800;
  text-align: left;
}

.shellSwitch button {
  cursor: pointer;
}

.shellSwitch button:hover {
  background: #eef4fb;
  color: var(--fx-accent, #0b63ce);
}

body[data-area="admin"] .modeBadge {
  background: #ecfeff;
  color: #0e7490;
}

body[data-area="user"] .modeBadge {
  background: #f0fdf4;
  color: #047857;
}

.subscriptionDialogBackdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.42);
}

.subscriptionOverlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 14px;
  background: rgba(15, 23, 42, 0.48);
}

.subscriptionDialog {
  display: grid;
  gap: 16px;
  width: min(520px, 100%);
  border: 1px solid #dbe4f0;
  border-radius: 14px;
  padding: 20px;
  background: #ffffff;
  box-shadow: 0 22px 70px rgba(15, 23, 42, 0.22);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

.subscriptionDialogHead > div { display: grid; gap: 3px; }
.subscriptionDialogHead h2 { margin: 0; color: #0f172a; font-size: 19px; }
.subscriptionDialogHead > div > span { color: #64748b; font-size: 11px; }

.subscriptionRiskAdvanced { border: 1px solid #dbe4ef; border-radius: 9px; background: #f8fafc; }
.subscriptionRiskAdvanced > summary { padding: 11px 12px; color: #36506c; cursor: pointer; font-size: 12px; font-weight: 850; }
.subscriptionRiskGrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; padding: 0 12px 12px; }
.subscriptionRiskGrid.primary { padding: 0; }
.subscriptionRiskGrid .fullLine { grid-column: 1 / -1; }
.subscriptionRiskGrid .checkLine { min-height: 36px; align-items: center; }
.subscriptionRiskDialog { width: min(680px, 100%); }
.subscriptionRiskLead { display: flex; justify-content: space-between; gap: 12px; align-items: center; border-left: 3px solid #0b63ce; padding: 8px 11px; background: #f3f7fc; }
.subscriptionRiskLead b { color: #1e344d; }
.subscriptionRiskLead span { color: #64748b; font-size: 11px; }

.subscriptionDialogHead,
.subscriptionDialogActions,
.copyRiskTitle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.subscriptionDialogHead span {
  color: #0f172a;
  font-size: 18px;
  font-weight: 900;
}

.subscriptionDialogSteps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.subscriptionDialogSteps span {
  border: 1px solid #dbeafe;
  border-radius: 999px;
  padding: 8px 10px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.subscriptionDialogMessage {
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fef2f2;
  color: #991b1b;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.subscriptionDialogMessage.warn {
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
}

.subscriptionDialogMessage[hidden] {
  display: none;
}

.iconButton {
  min-width: 34px;
  min-height: 34px;
  border: 1px solid #dbe4f0;
  border-radius: 999px;
  background: #ffffff;
  color: #64748b;
  cursor: pointer;
}

.subscriptionSignalSummary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  border: 1px solid #e5edf7;
  border-radius: 10px;
  padding: 14px;
  background: #f8fbff;
}

.subscriptionSignalSummary b {
  color: #0f172a;
  font-size: 18px;
}

.subscriptionSignalSummary small {
  color: #64748b;
}

.subscriptionSignalSummary strong {
  color: #0b63ce;
}

.subscriptionMetricGrid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.subscriptionMetricGrid span,
.copyRiskSummary span,
.copyExceptionSummary span {
  display: grid;
  gap: 3px;
  border: 1px solid #e5edf7;
  border-radius: 10px;
  padding: 9px 10px;
  background: #ffffff;
}

.subscriptionMetricGrid em,
.copyRiskSummary em,
.copyExceptionSummary em {
  color: #64748b;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.subscriptionMetricGrid b,
.copyRiskSummary b,
.copyExceptionSummary b {
  color: #0f172a;
  font-size: 13px;
}

.dialogField {
  display: grid;
  gap: 8px;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
}

.dialogField select,
.dialogField input {
  min-height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  padding: 8px 10px;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
}

.dialogRiskCheck {
  align-items: flex-start;
  border: 1px solid #fbd38d;
  border-radius: 10px;
  padding: 12px;
  background: #fffbeb;
  color: #854d0e;
}

.myCopyTop {
  border-color: #dbeafe;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
}

.myCopySummary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.myCopyList {
  display: grid;
  gap: 16px;
}

.myCopyCard {
  display: grid;
  gap: 16px;
  border: 1px solid #dbe4f0;
  border-radius: 12px;
  padding: 18px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.myCopyCardHead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.myCopyCardHead span {
  display: inline-flex;
  margin-bottom: 5px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.myCopyCardHead h3 {
  margin: 0;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.35;
}

.myCopyHeadActions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.myCopyMetaGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.myCopyMetaGrid span {
  display: grid;
  gap: 5px;
  border: 1px solid #e5edf7;
  border-radius: 10px;
  padding: 11px 12px;
  background: #f8fafc;
}

.myCopyMetaGrid em {
  color: #64748b;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.myCopyMetaGrid b {
  color: #0f172a;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.myCopyTables {
  display: block;
}

.myCopyTables section {
  border: 1px solid #e5edf7;
  border-radius: 12px;
  padding: 14px;
  background: #fbfdff;
  overflow: hidden;
}

.myCopyTables h4 {
  margin: 0;
  color: #0f172a;
  font-size: 15px;
}

.myCopyTables .tableWrap {
  max-height: 360px;
}

.myCopyEmptyPanel .emptyState {
  display: grid;
  gap: 10px;
  justify-items: flex-start;
  text-align: left;
}

.myCopyEmptyPanel .emptyState span {
  color: #64748b;
}

.copyRiskPanel,
.copyExceptionPanel {
  border-color: #dbe4f0;
}

.copyRiskGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 14px;
}

.copyRiskCard {
  display: grid;
  gap: 14px;
  border: 1px solid #dbe4f0;
  border-radius: 12px;
  padding: 14px;
  background: #ffffff;
}

.copyRiskSummary,
.copyExceptionSummary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
}

.copyRiskTitle {
  align-items: flex-start;
}

.copyRiskTitle b {
  color: #0f172a;
  font-size: 16px;
}

.copyRiskTitle span {
  color: #64748b;
  font-size: 12px;
  text-align: right;
}

.copyRiskFields {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 10px;
}

.copyRiskFields label {
  display: grid;
  gap: 6px;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

.copyRiskFields input,
.copyRiskFields select {
  min-height: 38px;
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 7px 9px;
  background: #ffffff;
  color: #0f172a;
}

.copyRiskSwitches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  border: 1px solid #e5edf7;
  border-radius: 10px;
  padding: 10px 12px;
  background: #f8fafc;
}

.copyExceptionPanel .buttonRow {
  min-width: 132px;
}

@media (max-width: 900px) {
  .copyFocusSelector,
  .copyFocusGrid {
    grid-template-columns: 1fr;
  }

  .copyFocusMiniStats {
    grid-template-columns: 1fr;
  }

  .myCopyCardHead {
    display: grid;
  }

  .myCopyHeadActions {
    justify-content: flex-start;
  }

  .copyRiskFields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .clientSetupForm {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .shellSwitch {
    grid-template-columns: 1fr;
    margin-bottom: 8px;
  }

  .side .adminNav[hidden],
  .side .userBackendNav[hidden],
  .side .publicNav[hidden] {
    display: none;
  }

  .top .toolbar {
    width: 100%;
  }

  .top .toolbar button {
    width: 100%;
  }

  .subscriptionDialogBackdrop {
    align-items: end;
    padding: 12px;
  }

  .subscriptionDialog {
    max-height: calc(100vh - 24px);
    overflow: auto;
    border-radius: 14px 14px 10px 10px;
  }

  .subscriptionDialogActions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .subscriptionDialogActions button {
    width: 100%;
  }

  .subscriptionDialogSteps,
  .subscriptionMetricGrid,
  .clientSetupForm {
    grid-template-columns: 1fr;
  }

  .copyRiskGrid,
  .myCopySummary,
  .myCopyMetaGrid,
  .copyRiskFields {
    grid-template-columns: 1fr;
  }

  .myCopyCard {
    padding: 14px;
  }

  .myCopyTables section {
    padding: 10px;
  }

  .copyRiskTitle {
    display: grid;
  }

  .copyRiskTitle span {
    text-align: left;
  }
}

/* 20260705 mature bilingual trading theme */
:root {
  --fx-bg: #f3f5f7;
  --fx-surface: #ffffff;
  --fx-surface-soft: #f8fafc;
  --fx-line: #dde5ee;
  --fx-line-soft: #edf1f5;
  --fx-text: #172033;
  --fx-heading: #101827;
  --fx-muted: #66758a;
  --fx-accent: #0d5ec9;
  --fx-accent-strong: #084aa3;
  --fx-success: #087443;
  --fx-danger: #b4232c;
  --fx-warning: #9a6700;
  --fx-radius: 10px;
  --fx-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 8px 24px rgba(16, 24, 40, 0.06);
  --fx-shadow-soft: 0 1px 2px rgba(16, 24, 40, 0.04);
}

html,
body {
  background: var(--fx-bg);
}

body {
  color: var(--fx-text);
  background: var(--fx-bg);
}

body.landingActive {
  background: #ffffff;
}

.languageSwitcher {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 120;
}

.languageToggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  max-width: 190px;
  padding: 6px 10px 6px 8px;
  border: 1px solid #cbd7e4;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--fx-heading);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 8px 22px rgba(16, 24, 40, 0.08);
  backdrop-filter: blur(12px);
}

.languageToggle:hover {
  border-color: var(--fx-accent);
  color: var(--fx-accent);
}

.languageToggleIcon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #f2f6fb;
  color: #364760;
}

.languageToggleIcon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.languageCurrentLabel {
  max-width: 96px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.languageToggleArrow {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  opacity: 0.55;
}

.languageSwitcher.open .languageToggle {
  border-color: rgba(221, 107, 32, 0.45);
  box-shadow: 0 10px 26px rgba(16, 24, 40, 0.12);
}

.languageSwitcher.open .languageToggleArrow {
  transform: translateY(2px) rotate(225deg);
}

.languageMenu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 278px;
  max-height: min(72vh, 540px);
  overflow: auto;
  padding: 14px 8px 10px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
  color: #222b3a;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(18px);
}

.languageMenu[hidden] {
  display: none;
}

.languageMenuTitle {
  padding: 2px 12px 10px;
  color: #5c6778;
  font-size: 13px;
  font-weight: 800;
}

.languageMenuList {
  display: grid;
  gap: 4px;
}

.languageOption {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 9px 42px 9px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #1f2937;
  text-align: left;
  box-shadow: none;
}

.languageOption:hover {
  background: #f6f8fb;
  border-color: transparent;
  box-shadow: none;
}

.languageOption.selected {
  background: #fff3ed;
}

.languageOption.disabled {
  cursor: default;
  color: #7b8494;
}

.languageOption.disabled:hover {
  background: transparent;
}

.languageOptionText {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.languageOptionText strong {
  font-size: 14px;
  line-height: 1.1;
  letter-spacing: 0;
}

.languageOptionText small {
  color: #64748b;
  font-size: 12px;
  line-height: 1.1;
}

.languageSoon {
  margin-left: auto;
  padding: 3px 6px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #8a94a6;
  font-size: 11px;
  font-weight: 800;
}

.languageCheck {
  position: absolute;
  top: 50%;
  right: 12px;
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 2px solid #dd6b20;
  border-radius: 50%;
  color: #dd6b20;
  font-size: 11px;
  font-weight: 900;
  transform: translateY(-50%);
}

body[data-lang="en"] .navGroup > summary::after {
  content: "Collapse";
}

body[data-lang="en"] .navGroup:not([open]) > summary::after {
  content: "Expand";
}

button,
select,
input,
textarea {
  border-radius: 8px;
  border-color: #cfd8e3;
  background: #ffffff;
  color: var(--fx-text);
}

button {
  font-weight: 700;
}

button:hover:not(:disabled) {
  border-color: #aebfd2;
  box-shadow: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--fx-accent);
  box-shadow: 0 0 0 3px rgba(13, 94, 201, 0.12);
}

#refreshBtn,
.subscribeButton,
.rankingSubscribe .subscribeButton,
.loginForm button,
.authBox button:not(.secondaryButton),
.landingActions button,
.landingSectionHead button,
.landingFinalCta button,
.copyQuickFooter button,
.copyTradeForm button,
.copyGroupCard button:first-of-type {
  border-color: var(--fx-accent);
  background: var(--fx-accent);
  color: #ffffff;
}

#refreshBtn:hover:not(:disabled),
.subscribeButton:hover:not(:disabled),
.rankingSubscribe .subscribeButton:hover:not(:disabled),
.loginForm button:hover:not(:disabled),
.authBox button:not(.secondaryButton):hover:not(:disabled),
.landingActions button:hover:not(:disabled) {
  border-color: var(--fx-accent-strong);
  background: var(--fx-accent-strong);
}

.secondaryButton,
.ghostButton,
.miniAction,
.pager button,
.quickActions button,
.quickActions a,
.rankingActions button,
.miniToolBar button {
  border-color: #cfd8e3;
  background: #ffffff;
  color: var(--fx-text);
}

.side {
  width: 236px;
  flex-basis: 236px;
  border-right: 1px solid var(--fx-line);
  background: #ffffff;
  box-shadow: none;
}

.brand {
  padding: 2px 8px 16px;
  border-bottom: 1px solid var(--fx-line-soft);
}

.brand img,
.landingBrand img,
.loginLogoRow img,
.loginCenterLogo img {
  border-radius: 10px;
  background: #ffffff;
  box-shadow: none;
}

.brand strong,
.landingBrand strong {
  color: var(--fx-heading);
  letter-spacing: 0;
}

.brand small,
.landingBrand small {
  color: var(--fx-muted);
}

.authBox,
.navGroup.publicNav,
.side details.navGroup {
  border: 1px solid var(--fx-line);
  border-radius: 10px;
  background: #ffffff;
}

.authBox {
  box-shadow: var(--fx-shadow-soft);
}

.side .navGroup > span,
.side details.navGroup > summary {
  color: #8a96a8;
  font-size: 12px;
  font-weight: 800;
}

.side button {
  border: 0;
  border-radius: 8px;
  color: #354153;
  background: transparent;
}

.side button:hover,
.side button.active {
  background: #eef4fb;
  color: var(--fx-accent);
}

.main {
  width: min(100%, 1540px);
  padding: 24px 28px 42px;
}

.top,
.quickActions,
.providerPanel,
.panel,
.metric,
.rankingCard,
.rankingToolbar,
.rankingSearch,
.rankingHero,
.copyHero,
.copyQuickSetup,
.copyGroupCard,
.copyAccountCard,
.copyStepCard,
.localServicePanel {
  border: 1px solid var(--fx-line);
  border-radius: var(--fx-radius);
  background: var(--fx-surface);
  box-shadow: var(--fx-shadow-soft);
}

.top {
  min-height: 82px;
  margin-bottom: 16px;
  padding: 18px 20px;
}

.top h1 {
  margin-top: 6px;
  color: var(--fx-heading);
  font-size: 28px;
  font-weight: 800;
}

#eyebrow,
.communityEyebrow,
.landingEyebrow,
.hintText,
.authMiniText {
  color: var(--fx-muted);
}

.modeBadge {
  border-color: #cfe0f5;
  background: #f3f8ff;
  color: var(--fx-accent);
}

.toolbar {
  padding-right: 58px;
}

.toolbar select {
  min-width: 260px;
  background: #ffffff;
}

.metrics {
  gap: 12px;
}

.metric {
  min-height: 82px;
  padding: 14px 16px;
}

.metric span,
.rankingMetric span,
.copyMetric span {
  color: var(--fx-muted);
  font-size: 12px;
  font-weight: 700;
}

.metric b,
.rankingMetric b,
.copyMetric b {
  color: var(--fx-heading);
}

.metric.good b,
.metric b.profit,
.metric b.gain,
.metric b.win,
.rankingMetric b.profit,
.rankingMetric b.gain,
.rankingMetric b.win,
.copyMetric.ok b {
  color: var(--fx-success);
}

.metric.bad b,
.metric b.loss,
.metric b.dd,
.rankingMetric b.loss,
.rankingMetric b.dd,
.copyMetric.bad b {
  color: var(--fx-danger);
}

.panel {
  padding: 18px;
}

.panel h2,
.panelHead h2 {
  color: var(--fx-heading);
  font-size: 16px;
  font-weight: 800;
}

.chart {
  background: #ffffff;
}

th {
  background: #f7f9fc;
  color: #48576c;
}

td {
  color: #182235;
}

tbody tr:hover td {
  background: #f8fbff;
}

.landingHeader.freebirdStyle,
.landingHeader {
  border-bottom: 1px solid var(--fx-line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: none;
}

.landingMain {
  width: min(1220px, calc(100% - 40px));
}

.landingHero,
.landingHero.freebirdHero {
  min-height: 500px;
  border: 1px solid var(--fx-line);
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(13, 94, 201, 0.05), transparent 58%),
    #ffffff;
  box-shadow: var(--fx-shadow);
}

.landingHero h1 {
  max-width: 680px;
  color: var(--fx-heading);
  font-size: clamp(38px, 5vw, 60px);
}

.landingHero p {
  color: #4d5b70;
}

.landingTrustLine span,
.landingSignalTags span,
.rankingTag,
.copyBadge {
  border-radius: 999px;
  border: 1px solid #dce5ef;
  background: #f8fafc;
  color: #44546a;
}

.productWindow,
.landingPreview,
.landingFeatureGrid article,
.landingSignalCard,
.landingFinalCta,
.landingSection,
.homeProductGrid > div,
.homeFlowPanel > div,
.marketHighlights > div {
  border: 1px solid var(--fx-line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--fx-shadow-soft);
}

.landingFinalCta {
  color: #ffffff;
  background: #102033;
}

.landingFinalCta span,
.landingFinalCta h2 {
  color: #ffffff;
}

.rankingHero {
  grid-template-columns: minmax(260px, 0.78fr) minmax(420px, 1fr);
  padding: 18px;
  background: #ffffff;
}

.rankingHero h2 {
  color: var(--fx-heading);
  font-size: 24px;
}

.rankingHeroStats div,
.rankingMetric {
  border: 1px solid var(--fx-line-soft);
  border-radius: 10px;
  background: #fbfcfe;
}

.rankingCard,
.rankingList.compact .rankingCard {
  grid-template-columns: 84px minmax(260px, 1.05fr) minmax(440px, 1.36fr) minmax(150px, 0.4fr);
  min-height: 124px;
  padding: 18px;
  gap: 18px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.rankingCard:hover {
  border-color: #b8cce5;
  box-shadow: var(--fx-shadow);
  transform: none;
}

.rankingAvatar {
  width: 60px;
  height: 60px;
  border-radius: 12px;
}

.rankingScore {
  min-height: 24px;
  border-radius: 999px;
  background: #f0f6ff;
  color: var(--fx-accent);
}

.rankingInfo h3 {
  color: var(--fx-heading);
  font-size: 19px;
  font-weight: 800;
}

.rankingMetrics {
  grid-template-columns: repeat(4, minmax(82px, 1fr));
  gap: 9px;
}

.rankingMetric {
  min-height: 66px;
  padding: 10px;
}

.rankingMetric b {
  min-height: auto;
  padding: 0;
  justify-content: flex-start;
  background: transparent;
  font-size: 16px;
}

.rankingRisk .riskBar,
.riskBar {
  background: #edf2f7;
}

.rankingRisk .riskBar i,
.riskBar i {
  background: var(--fx-accent);
}

.rankingRisk .riskBar i.warn,
.riskBar i.warn {
  background: #f59e0b;
}

.rankingRisk .riskBar i.bad,
.riskBar i.bad {
  background: var(--fx-danger);
}

.loginPage {
  background: #f5f7fb;
}

.loginBrandPanel {
  background:
    linear-gradient(180deg, rgba(9, 28, 56, 0.72), rgba(9, 28, 56, 0.78)),
    linear-gradient(135deg, #0e2a4f, #102033);
}

.loginCard {
  border: 1px solid var(--fx-line);
  background: #ffffff;
  box-shadow: var(--fx-shadow);
}

.copyHero,
.copyQuickSetup,
.copyGroupCard,
.copyAccountCard,
.copyStepCard,
.localServicePanel {
  background: #ffffff;
}

.localServiceOverview article,
.localServiceDetails {
  border-radius: 10px;
}

.localServicePanel.ok {
  border-color: #c7ead3;
}

.localServicePanel.warn {
  border-color: #efd08b;
}

.copyMetric,
.copyHealthPill,
.localServiceCard {
  border-radius: 10px;
  background: #fbfcfe;
}

.localServiceActions {
  gap: 8px;
}

.localServiceCard.ok,
.copyGroupCard.ok {
  border-color: #b8e6c9;
}

.localServiceCard.warn,
.copyGroupCard.warn {
  border-color: #f6d992;
}

.localServiceCard.bad,
.copyGroupCard.bad {
  border-color: #f3b6bd;
}

@media (max-width: 1280px) {
  .rankingCard,
  .rankingList.compact .rankingCard {
    grid-template-columns: 78px minmax(220px, 1fr);
  }

  .rankingMetrics,
  .rankingRisk,
  .rankingSubscribe,
  .rankingSubscribeInline {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .languageSwitcher {
    top: 12px;
    right: 12px;
  }

  .languageToggle {
    min-height: 34px;
  }

  .languageCurrentLabel {
    max-width: 82px;
  }

  .languageMenu {
    width: min(278px, calc(100vw - 24px));
    max-height: min(72vh, 520px);
  }

  .toolbar {
    padding-right: 0;
  }

  .main {
    padding: 16px;
  }

  .top {
    padding-right: 76px;
  }
}

@media (max-width: 760px) {
  .languageSwitcher {
    top: 10px;
    right: 10px;
  }

  body:not(.landingActive):not(.authViewActive) {
    display: block;
  }

  .side {
    width: 100%;
    flex-basis: auto;
    border-right: 0;
    border-bottom: 1px solid var(--fx-line);
  }

  .main {
    width: 100%;
    padding: 12px;
  }

  .top {
    padding: 14px 72px 14px 14px;
  }

  .toolbar {
    grid-template-columns: 1fr auto;
  }

  .toolbar select {
    min-width: 0;
  }

  .metrics,
  .rankingHeroStats,
  .rankingMetrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rankingCard,
  .rankingList.compact .rankingCard {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 14px;
  }

  .rankingIdentity {
    grid-template-columns: 56px 1fr;
  }

  .rankingAvatar {
    width: 56px;
    height: 56px;
  }

  .rankingInfo h3 {
    font-size: 18px;
  }

  .rankingMetrics,
  .rankingRisk,
  .rankingSubscribe,
  .rankingSubscribeInline {
    grid-column: auto;
  }

  .landingHero,
  .landingHero.freebirdHero {
    min-height: auto;
    padding: 28px 18px;
  }
}

@media (max-width: 460px) {
  .top {
    padding-right: 64px;
  }

  .metrics,
  .rankingHeroStats,
  .rankingMetrics {
    grid-template-columns: 1fr;
  }

  .languageToggle {
    min-height: 32px;
    padding: 5px 8px 5px 6px;
  }

  .languageToggleIcon {
    width: 22px;
    height: 22px;
  }

  .languageCurrentLabel {
    max-width: 64px;
  }

  .languageMenu {
    right: -2px;
    padding-top: 12px;
    border-radius: 18px;
  }
}

/* FXNice official landing page, scoped away from dashboard/admin views. */
body.landingActive {
  background: #07101f;
}

.landingPage {
  background:
    linear-gradient(180deg, #07101f 0%, #0a1324 54%, #f4f7fb 54%, #f4f7fb 100%);
  color: #e5edf6;
}

.landingHeader.landingProHeader {
  min-height: 76px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(7, 16, 31, 0.92);
  box-shadow: none;
}

.landingHeader.landingProHeader .landingBrand img {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #ffffff;
}

.landingHeader.landingProHeader .landingBrand strong {
  color: #ffffff;
}

.landingHeader.landingProHeader .landingBrand small {
  color: #9fb1c7;
}

.landingHeader.landingProHeader .landingNav button {
  min-height: 38px;
  border-radius: 6px;
  color: #c8d5e6;
}

.landingHeader.landingProHeader .landingNav button:hover {
  border-color: rgba(212, 175, 55, 0.38);
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
}

.landingHeader.landingProHeader .landingNav .primary {
  background: #d4af37;
  color: #07101f;
  box-shadow: 0 12px 28px rgba(212, 175, 55, 0.22);
}

.landingProMain {
  width: min(1320px, calc(100% - 48px));
  gap: 26px;
  padding: 32px 0 68px;
}

.landingHero.landingProHero {
  position: relative;
  overflow: hidden;
  grid-template-columns: minmax(0, 0.95fr) minmax(430px, 0.8fr);
  min-height: 640px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(135deg, #07101f 0%, #0a2140 44%, #0f1d2e 100%);
  background-size: 42px 42px, 42px 42px, auto;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.landingProHero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.7), transparent);
}

.landingProHeroCopy {
  gap: 20px;
}

.landingProHero .landingProEyebrow {
  width: max-content;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(212, 175, 55, 0.1);
  color: #f3d778;
}

.landingProHero h1 {
  max-width: 760px;
  color: #ffffff;
  font-size: clamp(42px, 5.4vw, 72px);
  line-height: 1.07;
}

.landingProHero p {
  max-width: 690px;
  color: #c8d5e6;
  font-size: 18px;
  line-height: 1.9;
}

.landingProHero .landingActions button {
  min-height: 50px;
  border-radius: 6px;
  background: #d4af37;
  color: #07101f;
  box-shadow: 0 14px 30px rgba(212, 175, 55, 0.2);
}

.landingProHero .landingActions .secondaryButton {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  box-shadow: none;
}

.landingProTrustLine {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.landingProTrustLine span {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(255, 255, 255, 0.06);
  color: #dbe7f7;
  font-size: 12px;
  font-weight: 800;
}

.landingProConsole {
  display: grid;
  gap: 16px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 8px;
  padding: 18px;
  background: rgba(6, 12, 24, 0.82);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(14px);
}

.landingProConsoleTop,
.landingProStatusRail {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.landingProConsoleTop span,
.landingProConsoleGrid span,
.landingProStatusRail span {
  color: #8fa4bf;
  font-size: 12px;
  font-weight: 800;
}

.landingProConsoleTop b {
  display: block;
  margin-top: 5px;
  color: #ffffff;
  font-size: 20px;
}

.landingProConsoleTop em {
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(34, 197, 94, 0.15);
  color: #6ee7a8;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.landingProConsoleGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.landingProConsoleGrid div,
.landingProStatusRail div {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  padding: 13px;
  background: rgba(255, 255, 255, 0.045);
}

.landingProConsoleGrid b,
.landingProStatusRail b {
  display: block;
  margin-top: 5px;
  color: #ffffff;
  font-size: 22px;
}

.landingProConsoleGrid .gain,
.landingProSignalMetrics .gain {
  color: #42d392;
}

.landingProConsoleGrid .loss,
.landingProSignalMetrics .loss {
  color: #ff6b6b;
}

.landingProChart {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  align-items: end;
  gap: 10px;
  min-height: 210px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    rgba(255, 255, 255, 0.035);
  background-size: 100% 42px;
}

.landingProChart i {
  display: block;
  min-height: 42px;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, #42d392, #0d9488);
}

.landingProChart i:nth-child(3n) {
  background: linear-gradient(180deg, #d4af37, #a67c00);
}

.landingProBoard {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.landingProBoard .landingStat {
  min-height: 104px;
  border-color: rgba(148, 163, 184, 0.18);
  background: #0e1a2a;
}

.landingProBoard .landingStat span {
  color: #8fa4bf;
}

.landingProBoard .landingStat b {
  color: #ffffff;
  font-size: 25px;
}

.landingProBoard .landingStat.gain b {
  color: #42d392;
}

.landingProWhy,
.landingProSignals,
.landingProRisk {
  border: 1px solid #d9e2ee;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.06);
}

.landingProWhy,
.landingProSignals {
  padding: clamp(22px, 4vw, 34px);
}

.landingProSectionHead {
  display: grid;
  gap: 8px;
  max-width: 780px;
  margin-bottom: 20px;
}

.landingProSectionHead span,
.landingProRisk span {
  color: #0b63ce;
  font-size: 12px;
  font-weight: 900;
}

.landingProSectionHead h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.18;
}

.landingProSectionHead button,
.landingProSignalAction button,
.landingProRisk button {
  width: max-content;
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  padding: 0 16px;
  background: #0b63ce;
  color: #ffffff;
  font-weight: 900;
  cursor: pointer;
}

.landingProFeatureGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.landingProFeatureGrid article {
  display: grid;
  gap: 10px;
  min-height: 178px;
  align-content: start;
  border: 1px solid #e0e8f2;
  border-radius: 8px;
  padding: 20px;
  background: #fbfcfe;
}

.landingProFeatureGrid img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #0f172a;
}

.landingProFeatureGrid b {
  color: #0f172a;
  font-size: 18px;
}

.landingProFeatureGrid p {
  margin: 0;
  color: #5b6b80;
  line-height: 1.75;
}

.landingProSignalList {
  gap: 14px;
}

.landingSignalCard.landingProSignalCard {
  grid-template-columns: 74px minmax(240px, 0.8fr) minmax(360px, 1fr) minmax(120px, 0.28fr);
  min-height: 124px;
  border: 1px solid #d9e2ee;
  border-radius: 8px;
  padding: 18px;
  background: linear-gradient(180deg, #ffffff, #f9fbfe);
}

.landingProSignalIcon {
  width: 64px;
  height: 64px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #0f172a;
  color: #d4af37;
}

.landingProSignalMain {
  align-content: center;
}

.landingProSignalMain h3 {
  font-size: 19px;
}

.landingProTags span {
  border-color: #d9e2ee;
  background: #ffffff;
}

.landingProSignalMetrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: center;
}

.landingProSignalMetrics div {
  display: grid;
  gap: 5px;
  min-height: 54px;
  align-content: center;
  border-top: 1px solid #e7eef7;
}

.landingProSignalMetrics span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.landingProSignalMetrics b {
  color: #0f172a;
  font-size: 20px;
}

.landingProSignalAction {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.landingProSignalScore {
  justify-items: end;
  border-left: 0;
}

.landingProSignalScore b {
  color: #0b63ce;
}

.landingProRisk {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 24px;
  border-color: #f1d7a0;
  background: #fffaf0;
}

.landingProRisk b {
  display: block;
  margin-top: 6px;
  color: #7c4f00;
  font-size: 22px;
}

.landingProRisk p {
  max-width: 920px;
  margin: 8px 0 0;
  color: #5f4a1d;
  line-height: 1.75;
}

@media (max-width: 1100px) {
  .landingHero.landingProHero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .landingProBoard {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .landingProFeatureGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landingSignalCard.landingProSignalCard {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .landingProSignalMetrics,
  .landingProSignalAction {
    grid-column: 1 / -1;
  }

  .landingProSignalAction {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}

@media (max-width: 760px) {
  .landingHeader.landingProHeader {
    position: relative;
    display: grid;
    gap: 12px;
    padding: 16px;
  }

  .landingHeader.landingProHeader .landingNav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .landingHeader.landingProHeader .landingNav button {
    width: 100%;
    min-height: 42px;
  }

  .landingProMain {
    width: min(100% - 24px, 680px);
    padding-top: 14px;
  }

  .landingHero.landingProHero {
    padding: 26px 18px;
  }

  .landingProHero h1 {
    font-size: 34px;
  }

  .landingProHero p {
    font-size: 15px;
    line-height: 1.72;
  }

  .landingProHero .landingActions {
    display: grid;
  }

  .landingProHero .landingActions button {
    width: 100%;
  }

  .landingProConsoleGrid,
  .landingProStatusRail,
  .landingProBoard,
  .landingProFeatureGrid,
  .landingProSignalMetrics {
    grid-template-columns: 1fr;
  }

  .landingProStatusRail {
    display: grid;
  }

  .landingProChart {
    min-height: 150px;
    gap: 7px;
  }

  .landingSignalCard.landingProSignalCard {
    grid-template-columns: 1fr;
  }

  .landingProSignalIcon {
    width: 58px;
    height: 58px;
  }

  .landingProSignalAction {
    display: grid;
    justify-items: stretch;
  }

  .landingProSignalScore {
    justify-items: start;
  }

  .landingProRisk {
    display: grid;
  }

  .landingProRisk button,
  .landingProSectionHead button,
  .landingProSignalAction button {
    width: 100%;
  }
}

.side .shellSwitch {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin: 12px 0 14px;
  padding: 8px;
  border: 1px solid var(--fx-line, #e5eaf2);
  border-radius: 10px;
  background: #ffffff;
}

.side .shellSwitch button,
.side .shellSwitch span {
  width: 100%;
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  padding: 9px 12px;
  background: transparent;
  color: #354153;
  font-size: 14px;
  font-weight: 800;
  text-align: left;
}

.side .shellSwitch button:hover {
  background: #eef4fb;
  color: var(--fx-accent, #0b63ce);
}

/* FXNice UI refresh: cleaner SaaS shell with icon navigation. */
.iconSprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

body:not(.landingActive) {
  --fx-bg: #f5f7fb;
  --fx-surface: #ffffff;
  --fx-surface-soft: #f9fbfd;
  --fx-line: #e1e8f0;
  --fx-line-soft: #eef3f8;
  --fx-text: #1d2736;
  --fx-heading: #0f172a;
  --fx-muted: #6b7788;
  --fx-accent: #145fc7;
  --fx-accent-strong: #0b4fa8;
  --fx-accent-soft: #edf5ff;
  --fx-success: #07834f;
  --fx-danger: #c12b35;
  --fx-warning: #a66a00;
  --fx-radius: 10px;
  --fx-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
  --fx-shadow-soft: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 28px rgba(15, 23, 42, 0.05);
  background:
    radial-gradient(circle at 18% -12%, rgba(20, 95, 199, 0.09), transparent 30%),
    linear-gradient(180deg, #fbfdff 0, #f5f7fb 320px, #f5f7fb 100%);
}

body:not(.landingActive) .side {
  width: 252px;
  flex-basis: 252px;
  gap: 14px;
  padding: 18px 14px;
  border-right: 1px solid rgba(213, 222, 234, 0.9);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 8px 0 30px rgba(15, 23, 42, 0.03);
}

body:not(.landingActive) .brand {
  min-height: 58px;
  padding: 4px 8px 14px;
  border-bottom: 1px solid var(--fx-line-soft);
}

body:not(.landingActive) .brand img {
  width: 38px;
  height: 38px;
  border: 1px solid var(--fx-line);
  border-radius: 11px;
  padding: 3px;
  background: #ffffff;
}

body:not(.landingActive) .brand strong {
  font-size: 18px;
  letter-spacing: 0;
}

body:not(.landingActive) .brand small {
  margin-top: 2px;
  color: #7a8797;
  font-size: 12px;
}

body:not(.landingActive) .authBox,
body:not(.landingActive) .side .shellSwitch,
body:not(.landingActive) .navGroup.publicNav,
body:not(.landingActive) .side details.navGroup {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body:not(.landingActive) .authBox {
  padding: 12px;
  border: 1px solid var(--fx-line);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: var(--fx-shadow-soft);
}

body:not(.landingActive) .side .shellSwitch {
  margin: 0;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--fx-line-soft);
}

body:not(.landingActive) .navGroup {
  gap: 5px;
  margin: 0;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--fx-line-soft);
}

body:not(.landingActive) .side details.navGroup {
  padding-bottom: 10px;
}

body:not(.landingActive) .navGroup:last-child {
  border-bottom: 0;
}

body:not(.landingActive) .side .navGroup > span,
body:not(.landingActive) .side details.navGroup > summary {
  margin: 0 0 4px;
  padding: 0 8px;
  color: #8b98aa;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

body:not(.landingActive) .side details.navGroup > summary {
  min-height: 26px;
  cursor: pointer;
}

body:not(.landingActive) .side button,
body:not(.landingActive) .side .shellSwitch button,
body:not(.landingActive) .side .shellSwitch span {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 42px;
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 9px 11px;
  background: transparent;
  color: #344255;
  font-size: 14px;
  font-weight: 760;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

body:not(.landingActive) .side button::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 999px;
  background: transparent;
}

body:not(.landingActive) .side button:hover {
  background: #f3f7fc;
  color: var(--fx-heading);
}

body:not(.landingActive) .side button.active {
  background: var(--fx-accent-soft);
  color: var(--fx-accent);
  box-shadow: inset 0 0 0 1px rgba(20, 95, 199, 0.08);
}

body:not(.landingActive) .side button.active::before {
  background: var(--fx-accent);
}

.navIcon {
  width: 19px;
  height: 19px;
  justify-self: center;
  color: currentColor;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.82;
}

body:not(.landingActive) .side button.active .navIcon {
  opacity: 1;
}

body:not(.landingActive) .main {
  width: min(100%, 1580px);
  padding: 22px 30px 46px;
}

body:not(.landingActive) .top {
  min-height: 86px;
  border: 1px solid rgba(218, 226, 236, 0.9);
  border-radius: 16px;
  padding: 18px 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.94)),
    var(--fx-surface);
  box-shadow: var(--fx-shadow-soft);
}

body:not(.landingActive) .top h1 {
  margin-top: 7px;
  color: var(--fx-heading);
  font-size: clamp(24px, 2.1vw, 32px);
  line-height: 1.18;
}

body:not(.landingActive) .modeBadge {
  min-height: 25px;
  border: 1px solid #cfe1f8;
  border-radius: 999px;
  padding: 5px 10px;
  background: #eef6ff;
  color: var(--fx-accent);
  font-weight: 850;
}

body:not(.landingActive) #eyebrow {
  margin-left: 8px;
  color: #7b8797;
  font-weight: 700;
}

body:not(.landingActive) .toolbar {
  gap: 10px;
}

body:not(.landingActive) button,
body:not(.landingActive) select,
body:not(.landingActive) input,
body:not(.landingActive) textarea {
  min-height: 38px;
  border: 1px solid #d5deea;
  border-radius: 9px;
  background: #ffffff;
  color: var(--fx-text);
}

body:not(.landingActive) button {
  font-weight: 800;
}

body:not(.landingActive) button:hover:not(:disabled) {
  border-color: #b7c7da;
}

body:not(.landingActive) #refreshBtn,
body:not(.landingActive) .subscribeButton,
body:not(.landingActive) .rankingSubscribe .subscribeButton,
body:not(.landingActive) .copyQuickFooter button,
body:not(.landingActive) .copyTradeForm button,
body:not(.landingActive) .loginForm button,
body:not(.landingActive) .authBox button:not(.secondaryButton) {
  border-color: var(--fx-accent);
  background: linear-gradient(180deg, #176bdc, var(--fx-accent));
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(20, 95, 199, 0.16);
}

body:not(.landingActive) .secondaryButton,
body:not(.landingActive) .ghostButton,
body:not(.landingActive) .miniAction,
body:not(.landingActive) .pager button,
body:not(.landingActive) .quickActions button,
body:not(.landingActive) .rankingActions button,
body:not(.landingActive) .miniToolBar button {
  border-color: #d6dfeb;
  background: #ffffff;
  color: #27364a;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

body:not(.landingActive) .metrics {
  gap: 13px;
}

body:not(.landingActive) .metric {
  min-height: 88px;
  border: 1px solid rgba(218, 226, 236, 0.95);
  border-radius: 14px;
  padding: 15px 16px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  box-shadow: var(--fx-shadow-soft);
}

body:not(.landingActive) .metric span,
body:not(.landingActive) .rankingMetric span,
body:not(.landingActive) .copyMetric span {
  color: #718096;
  font-size: 12px;
  font-weight: 760;
}

body:not(.landingActive) .metric b,
body:not(.landingActive) .rankingMetric b,
body:not(.landingActive) .copyMetric b {
  color: var(--fx-heading);
  letter-spacing: 0;
}

body:not(.landingActive) .panel,
body:not(.landingActive) .rankingCard,
body:not(.landingActive) .rankingToolbar,
body:not(.landingActive) .rankingSearch,
body:not(.landingActive) .rankingHero,
body:not(.landingActive) .copyHero,
body:not(.landingActive) .copyQuickSetup,
body:not(.landingActive) .copyGroupCard,
body:not(.landingActive) .copyAccountCard,
body:not(.landingActive) .copyStepCard,
body:not(.landingActive) .localServicePanel,
body:not(.landingActive) .copyManagerPanel,
body:not(.landingActive) .copyFocusPanel,
body:not(.landingActive) .copyRiskPanel,
body:not(.landingActive) .copyExceptionPanel,
body:not(.landingActive) .copyLivePanel {
  border: 1px solid rgba(218, 226, 236, 0.95);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--fx-shadow-soft);
}

body:not(.landingActive) .panel {
  padding: 20px;
}

body:not(.landingActive) .panelHead {
  gap: 12px;
  padding-bottom: 12px;
}

body:not(.landingActive) .panel h2,
body:not(.landingActive) .panelHead h2 {
  color: var(--fx-heading);
  font-size: 17px;
  font-weight: 850;
}

body:not(.landingActive) .chart {
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
}

body:not(.landingActive) table {
  border-collapse: separate;
  border-spacing: 0;
}

body:not(.landingActive) th {
  border-bottom: 1px solid var(--fx-line);
  background: #f8fafc;
  color: #536276;
  font-size: 12px;
  font-weight: 850;
}

body:not(.landingActive) td {
  border-bottom: 1px solid var(--fx-line-soft);
  color: #1c2838;
}

body:not(.landingActive) tbody tr:hover td {
  background: #f8fbff;
}

body:not(.landingActive) .rankingHero {
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(20, 95, 199, 0.08), rgba(8, 131, 79, 0.04)),
    #ffffff;
}

body:not(.landingActive) .rankingCard,
body:not(.landingActive) .rankingList.compact .rankingCard {
  border-radius: 16px;
  background:
    linear-gradient(180deg, #ffffff, #fbfdff);
}

body:not(.landingActive) .rankingCard:hover {
  border-color: #bad0ea;
  box-shadow: var(--fx-shadow);
}

body:not(.landingActive) .rankingAvatar,
body:not(.landingActive) .landingProSignalIcon {
  border-radius: 14px;
}

body:not(.landingActive) .rankingTag,
body:not(.landingActive) .copyBadge,
body:not(.landingActive) .statusPill,
body:not(.landingActive) .landingSignalTags span {
  border-radius: 999px;
  border-color: #dce5ef;
  background: #f8fafc;
  color: #435167;
}

body:not(.landingActive) .positive,
body:not(.landingActive) .profit,
body:not(.landingActive) .gain,
body:not(.landingActive) .win {
  color: var(--fx-success) !important;
}

body:not(.landingActive) .negative,
body:not(.landingActive) .loss,
body:not(.landingActive) .dd,
body:not(.landingActive) .danger {
  color: var(--fx-danger) !important;
}

body:not(.landingActive) .walletHeader,
body:not(.landingActive) .profilePanel,
body:not(.landingActive) .copyManagerContent,
body:not(.landingActive) .copyFocusDetail {
  border-radius: 14px;
}

body:not(.landingActive) .emptyState {
  border: 1px dashed #d7e1ee;
  border-radius: 14px;
  background: #f9fbfd;
  color: #728197;
}

body:not(.landingActive) ::selection {
  background: rgba(20, 95, 199, 0.16);
}

@media (max-width: 1100px) {
  body:not(.landingActive) .side {
    width: 228px;
    flex-basis: 228px;
  }

  body:not(.landingActive) .main {
    padding: 18px;
  }
}

@media (max-width: 760px) {
  body:not(.landingActive):not(.authViewActive) {
    background: #f5f7fb;
  }

  body:not(.landingActive) .side {
    position: sticky;
    top: 0;
    z-index: 70;
    width: 100%;
    max-height: none;
    padding: 10px 10px 8px;
    border-right: 0;
    border-bottom: 1px solid rgba(218, 226, 236, 0.95);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  }

  body:not(.landingActive) .brand {
    min-height: 44px;
    padding: 0 6px 8px;
  }

  body:not(.landingActive) .brand img {
    width: 32px;
    height: 32px;
  }

  body:not(.landingActive) .authBox {
    display: none;
  }

  body:not(.landingActive) .side .shellSwitch {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding: 0 0 8px;
  }

  body:not(.landingActive) .navGroup.publicNav,
  body:not(.landingActive) .side details.navGroup {
    display: flex;
    overflow-x: auto;
    gap: 7px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 0 7px;
    border-bottom: 0;
  }

  body:not(.landingActive) .side details.navGroup > summary,
  body:not(.landingActive) .side .navGroup > span {
    flex: 0 0 auto;
    align-self: center;
    margin: 0;
    padding: 0 2px;
    white-space: nowrap;
  }

  body:not(.landingActive) .side button,
  body:not(.landingActive) .side .shellSwitch button,
  body:not(.landingActive) .side .shellSwitch span {
    flex: 0 0 auto;
    grid-template-columns: 22px auto;
    width: auto;
    min-height: 38px;
    padding: 8px 10px;
    white-space: nowrap;
  }

  body:not(.landingActive) .side button::before {
    left: 8px;
    right: 8px;
    top: auto;
    bottom: 3px;
    width: auto;
    height: 2px;
  }

  body:not(.landingActive) .navIcon {
    width: 17px;
    height: 17px;
  }

  body:not(.landingActive) .main {
    padding: 12px;
  }

  body:not(.landingActive) .top {
    min-height: auto;
    padding: 14px 66px 14px 14px;
    border-radius: 14px;
  }

  body:not(.landingActive) .top h1 {
    font-size: 22px;
  }

  body:not(.landingActive) .panel {
    padding: 15px;
    border-radius: 14px;
  }

  body:not(.landingActive) .rankingHero {
    grid-template-columns: 1fr !important;
    gap: 12px;
    overflow: hidden;
  }

  body:not(.landingActive) .rankingHeroStats {
    width: 100%;
    min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body:not(.landingActive) .rankingHeroStats div {
    min-width: 0;
  }

  body:not(.landingActive) .metric {
    min-height: 76px;
    padding: 12px;
  }
}

@media (max-width: 460px) {
  body:not(.landingActive) .side {
    padding-inline: 8px;
  }

  body:not(.landingActive) .brand small {
    display: none;
  }

  body:not(.landingActive) .top {
    padding-right: 58px;
  }

  body:not(.landingActive) .metrics {
    gap: 9px;
  }

  body:not(.landingActive) .rankingHeroStats {
    grid-template-columns: 1fr !important;
  }
}

/* Finance center recharge page. */
.walletRechargePage {
  display: grid;
  gap: 22px;
}

.walletRechargeTitle {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.walletRechargeTitle h2 {
  margin: 0;
  color: var(--fx-heading, #0f172a);
  font-size: 28px;
  font-weight: 900;
}

.walletRechargeTitle p {
  margin: 8px 0 0;
  color: var(--fx-muted, #64748b);
}

.walletRechargeTitle > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  border: 1px solid var(--fx-line-soft, #edf2f7);
  border-radius: 999px;
  padding: 6px 11px;
  background: #fbfcfe;
  color: #3f4d61;
  font-size: 12px;
  font-weight: 800;
}

.walletRechargeTitle > span::before {
  content: "";
  width: 14px;
  height: 14px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 2 4.5 5.3v5.2c0 4.8 3 9.1 7.5 11.5 4.5-2.4 7.5-6.7 7.5-11.5V5.3L12 2Zm3.5 8.1-4.2 4.3-2.1-2.1-1.4 1.4 3.5 3.5 5.6-5.7-1.4-1.4Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.walletRechargeGrid {
  display: grid;
  grid-template-columns: minmax(320px, 0.88fr) minmax(520px, 1.5fr);
  gap: 24px;
  align-items: stretch;
}

.walletBalanceColumn,
.walletPayColumn {
  display: grid;
  gap: 18px;
}

.walletBalanceCard,
.walletVoucherCard,
.walletPayBlock,
.walletCheckoutSummary,
.walletRecordsCard {
  border: 1px solid var(--fx-line, #e1e8f0);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--fx-shadow-soft, 0 1px 2px rgba(15, 23, 42, 0.04));
}

.walletBalanceCard {
  position: relative;
  overflow: hidden;
  display: grid;
  min-height: 410px;
  padding: 28px 24px;
  background:
    linear-gradient(145deg, rgba(245, 242, 239, 0.92), rgba(255, 255, 255, 0.96)),
    #ffffff;
}

.walletBalanceText {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  gap: 8px;
}

.walletBalanceText span,
.walletBalanceText small {
  color: #5d6979;
  font-weight: 760;
}

.walletBalanceText strong {
  margin-bottom: 18px;
  color: #22252a;
  font-size: clamp(42px, 5vw, 62px);
  line-height: 1;
  letter-spacing: 0;
}

.walletBalanceText b {
  margin-bottom: 18px;
  color: #8a949f;
  font-size: 25px;
  font-weight: 650;
}

.walletIllustration {
  position: absolute;
  right: -12px;
  top: 34px;
  width: min(38%, 180px);
  color: rgba(15, 23, 42, 0.07);
}

.walletIllustration svg {
  width: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 7;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.walletHistoryLink {
  align-self: end;
  justify-self: end;
  min-width: 132px;
}

.walletVoucherCard {
  padding: 22px 24px;
}

.walletVoucherCard h3,
.walletPayBlock h3,
.walletRecordsCard h3 {
  margin: 0 0 8px;
  color: var(--fx-heading, #0f172a);
  font-size: 18px;
  font-weight: 900;
}

.walletVoucherCard p {
  margin: 0 0 14px;
  color: var(--fx-muted, #64748b);
}

.walletVoucherLine,
.walletCouponLine {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.walletVoucherLine input,
.walletCouponLine input {
  min-width: 0;
  background: #f8f6f4;
}

.walletPayColumn {
  align-content: start;
  padding-top: 2px;
}

.walletPayBlock {
  border: 0;
  box-shadow: none;
  background: transparent;
}

.walletAmountGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.walletAmountButton,
.walletCustomAmount {
  min-height: 52px;
  border: 1px solid #ded7d1;
  border-radius: 12px;
  background: #ffffff;
}

.walletAmountButton {
  color: #111827;
  font-size: 16px;
  font-weight: 900;
}

.walletAmountButton.active,
.walletAmountButton:hover {
  border-color: #bfb2aa;
  background: #bdb0a8;
  color: #ffffff;
}

.walletCustomAmount {
  display: grid;
  align-items: center;
  padding: 5px 12px;
}

.walletCustomAmount span {
  color: #8a817c;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.walletCustomAmount input {
  min-height: 24px !important;
  border: 0 !important;
  padding: 0;
  background: transparent !important;
  text-align: center;
  font-weight: 900;
}

.walletCouponLine {
  grid-template-columns: 1fr 60px;
}

.walletCouponLine button,
.walletVoucherLine button {
  background: #bdb0a8;
  color: #ffffff;
  border-color: #bdb0a8;
}

.walletMethodGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.walletMethod {
  display: flex;
  justify-content: center;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  border: 1px solid #ded7d1;
  border-radius: 12px;
  background: #ffffff;
}

.walletMethod span {
  color: #111827;
  font-weight: 900;
}

.walletMethod b {
  border-radius: 5px;
  padding: 2px 5px;
  background: #111827;
  color: #ffffff;
  font-size: 11px;
}

.walletMethod.active {
  background: #fbfaf9;
}

.walletCheckoutSummary {
  display: grid;
  gap: 9px;
  border: 0;
  padding: 10px 0 18px;
  box-shadow: none;
  background: transparent;
}

.walletCheckoutSummary div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #4a5566;
}

.walletCheckoutSummary b {
  color: #1f2937;
}

.walletTotalLine {
  align-items: end;
  margin-top: 2px;
}

.walletTotalLine strong {
  color: #0f172a;
  font-size: 18px;
}

.walletTotalLine em {
  color: #151a22;
  font-size: 31px;
  font-style: normal;
  font-weight: 900;
}

.walletPayButton {
  width: 100%;
  min-height: 56px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: #111111 !important;
  color: #ffffff !important;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(17, 17, 17, 0.12) !important;
}

.walletResultText {
  min-height: 22px;
  text-align: right;
}

.walletRecordsGrid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 18px;
}

.walletRecordsCard {
  padding: 18px;
  min-width: 0;
}

.walletRecordsCard .panelHead {
  padding-bottom: 10px;
}

@media (max-width: 1100px) {
  .walletRechargeGrid,
  .walletRecordsGrid {
    grid-template-columns: 1fr;
  }

  .walletBalanceCard {
    min-height: 300px;
  }
}

@media (max-width: 900px) {
  body:not(.landingActive) .rankingHero {
    grid-template-columns: 1fr;
    overflow: hidden;
  }

  body:not(.landingActive) .rankingHeroStats {
    width: 100%;
    min-width: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body:not(.landingActive) .rankingHeroStats div,
  .walletAmountGrid > *,
  .walletCustomAmount,
  .walletCustomAmount input {
    min-width: 0;
  }

  .walletAmountGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .walletCustomAmount input {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .walletRechargeTitle {
    display: grid;
  }

  .walletRechargeTitle h2 {
    font-size: 24px;
  }

  .walletRechargeGrid {
    gap: 16px;
  }

  .walletBalanceCard {
    min-height: 260px;
    padding: 22px 18px;
  }

  .walletBalanceText strong {
    font-size: 42px;
  }

  .walletAmountGrid,
  .walletMethodGrid {
    grid-template-columns: 1fr;
  }

  .walletVoucherLine,
  .walletCouponLine {
    grid-template-columns: 1fr;
  }

  .walletCouponLine button,
  .walletVoucherLine button {
    width: 100%;
  }

.walletResultText {
    text-align: left;
  }
}

.businessSummary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.businessCardGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.businessCard {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--fx-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--fx-shadow-soft);
}

.businessCardHead,
.businessMetrics {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.businessCardHead > div,
.businessMetrics span,
.inviteBox {
  display: grid;
  gap: 3px;
}

.businessCardHead b,
.inviteBox b {
  color: var(--fx-heading);
  font-size: 16px;
}

.businessCardHead span,
.businessCard p,
.businessMetrics em,
.inviteBox span {
  color: var(--fx-muted);
  font-size: 12px;
  font-style: normal;
}

.businessMetrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.businessMetrics span {
  padding: 9px;
  border-radius: 10px;
  background: #f8fbff;
}

.businessMetrics b {
  color: var(--fx-heading);
  font-size: 14px;
}

.businessForm {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.compactBusinessForm {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.businessForm label {
  display: grid;
  gap: 6px;
  color: var(--fx-muted);
  font-size: 12px;
  font-weight: 800;
}

.businessForm .fullLine {
  grid-column: 1 / -1;
}

.businessTags,
.buttonRow.compactButtons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.businessTags span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #eef5ff;
  color: var(--fx-accent);
  font-size: 12px;
  font-weight: 800;
}

.licenseBox,
.inviteBox {
  padding: 12px;
  border: 1px solid var(--fx-line);
  border-radius: 12px;
  background: #f8fbff;
}

.strategyDetailHero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 18px;
  align-items: start;
}

.strategyDetailHero h2 {
  margin: 10px 0 8px;
  color: var(--fx-heading);
  font-size: 26px;
}

.strategyDetailHero p {
  margin: 0 0 12px;
  color: var(--fx-muted);
  line-height: 1.7;
}

.strategyDetailActions {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--fx-line);
  border-radius: 14px;
  background: #f8fbff;
}

.strategyDetailActions b {
  color: var(--fx-heading);
  font-size: 20px;
}

.strategyFeed {
  display: grid;
  gap: 10px;
}

.strategyFeed article {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--fx-line);
  border-radius: 12px;
  background: #fff;
}

.strategyFeed article span {
  color: var(--fx-muted);
  font-size: 12px;
}

.strategyFeed article b {
  color: var(--fx-heading);
}

.strategyFeed article p {
  margin: 0;
  color: #475569;
  line-height: 1.6;
}

@media (max-width: 760px) {
  .businessSummary,
  .businessForm,
  .compactBusinessForm,
  .businessMetrics,
  .strategyDetailHero {
    grid-template-columns: 1fr;
  }
}

/* Final sidebar polish. */
body:not(.landingActive) .side .shellSwitch {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  margin: 2px 0 8px;
  padding: 0 0 10px;
  border: 0;
  border-bottom: 1px solid var(--fx-line-soft);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body:not(.landingActive) .side .shellSwitch button {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  justify-content: start;
  gap: 10px;
  min-height: 40px;
  padding: 9px 11px;
  border-radius: 10px;
  color: #344255;
  font-size: 14px;
  font-weight: 760;
  white-space: nowrap;
  box-shadow: none;
}

body:not(.landingActive) .side .shellSwitch button > span {
  display: block;
  width: auto;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: 1.2;
  text-align: left;
}

body:not(.landingActive) .side .shellSwitch button::before {
  display: block;
}

body:not(.landingActive) .side .shellSwitch button:hover {
  background: #f3f7fc;
  color: var(--fx-heading);
}

body:not(.landingActive) .side .shellSwitch button.active {
  background: var(--fx-accent-soft);
  color: var(--fx-accent);
  box-shadow: inset 0 0 0 1px rgba(20, 95, 199, 0.08);
}

body:not(.landingActive) .side .navGroup > span,
body:not(.landingActive) .side details.navGroup > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 24px;
  margin: 6px 0 5px;
  padding: 0 9px;
  color: #8b98aa;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
}

body:not(.landingActive) .side details.navGroup > summary::after {
  content: "收起";
  color: #a2adbb;
  font-size: 11px;
  font-weight: 750;
}

body:not(.landingActive) .side details.navGroup:not([open]) > summary::after {
  content: "展开";
}

body[data-lang="en"]:not(.landingActive) .side details.navGroup > summary::after {
  content: "Collapse";
}

body[data-lang="en"]:not(.landingActive) .side details.navGroup:not([open]) > summary::after {
  content: "Expand";
}

body:not(.landingActive) .side .navGroup {
  padding-bottom: 12px;
}

body:not(.landingActive) .side .navGroup button {
  min-height: 40px;
  border-radius: 11px;
}

body:not(.landingActive) .side .authBox button {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 38px;
  padding: 9px 12px;
  white-space: nowrap;
}

body:not(.landingActive) .side .authBox button::before {
  display: none;
}

@media (max-width: 760px) {
  body:not(.landingActive) .side .shellSwitch {
    display: flex;
    gap: 6px;
    margin: 0;
    padding: 0 0 7px;
    border-bottom: 0;
    overflow-x: auto;
  }

  body:not(.landingActive) .side .shellSwitch button {
    flex: 1 0 auto;
    grid-template-columns: 22px auto;
    width: auto;
    min-width: 92px;
    min-height: 38px;
    padding: 8px 10px;
  }

  body:not(.landingActive) .side .navGroup > span,
  body:not(.landingActive) .side details.navGroup > summary {
    padding: 0 3px;
  }
}

/* Product cleanup: concise public/user flow, compact cards and mobile-first pages. */
body:not(.landingActive) .publicNav button[data-view="account"] {
  display: none;
}

body:not(.landingActive) .accountTabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
  padding: 6px;
  border: 1px solid var(--fx-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--fx-shadow-soft);
}

body:not(.landingActive) .accountTabs button {
  min-height: 36px;
  padding: 8px 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #536276;
  font-weight: 850;
}

body:not(.landingActive) .accountTabs button.active {
  background: var(--fx-accent-soft);
  color: var(--fx-accent);
  box-shadow: inset 0 0 0 1px rgba(20, 95, 199, 0.08);
}

body:not(.landingActive) .accountTabPanel {
  display: none;
}

body:not(.landingActive) .accountTabPanel.active {
  display: block;
}

body:not(.landingActive) .rankingList:not(.compact) {
  gap: 12px;
}

body:not(.landingActive) .rankingCard,
body:not(.landingActive) .rankingList.compact .rankingCard {
  grid-template-columns: 78px minmax(260px, 1.2fr) minmax(430px, 1.5fr) minmax(140px, 0.38fr);
  min-height: 118px;
  padding: 16px 18px;
}

body:not(.landingActive) .rankingMetrics {
  grid-template-columns: repeat(4, minmax(112px, 1fr));
}

body:not(.landingActive) .rankingMetric {
  min-height: 54px;
  border-radius: 12px;
  background: #f8fbff;
}

body:not(.landingActive) .rankingRisk {
  align-self: stretch;
  display: grid;
  align-content: center;
  min-width: 128px;
}

body:not(.landingActive) .rankingSubscribeInline {
  border: 0;
  background: transparent;
  padding: 0;
}

body:not(.landingActive) .rankingSubscribeInline span {
  color: #0f172a;
  font-weight: 850;
}

body:not(.landingActive) .rankingSubscribeInline .subscribeButton {
  min-height: 30px;
  padding: 6px 10px;
}

body:not(.landingActive) .simpleFlowHead {
  grid-column: 1 / -1;
  display: grid;
  gap: 4px;
  padding: 4px 0 6px;
}

body:not(.landingActive) .simpleFlowHead b {
  color: var(--fx-heading);
  font-size: 18px;
}

body:not(.landingActive) .simpleFlowHead span {
  color: var(--fx-muted);
  font-size: 13px;
}

body:not(.landingActive) .simpleOptions {
  grid-column: 1 / -1;
  border: 1px solid var(--fx-line);
  border-radius: 12px;
  background: #fbfdff;
  padding: 10px 12px;
}

body:not(.landingActive) .simpleOptions summary {
  cursor: pointer;
  color: #536276;
  font-weight: 850;
}

body:not(.landingActive) .simpleOptions > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

body:not(.landingActive) .myCopySummary,
body:not(.landingActive) .copyManagerOverview {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body:not(.landingActive) .myCopyCard {
  border: 1px solid var(--fx-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--fx-shadow-soft);
  padding: 18px;
}

body:not(.landingActive) .myCopyCardHead,
body:not(.landingActive) .myCopyMetaGrid {
  gap: 12px;
}

body:not(.landingActive) #financeView h2 {
  letter-spacing: 0;
}

body:not(.landingActive) .adminBackendActive .panel {
  border-radius: 12px;
}

body:not(.landingActive) .adminBackendActive .tableWrap {
  max-height: 68vh;
}

@media (max-width: 1280px) {
  body:not(.landingActive) .rankingCard,
  body:not(.landingActive) .rankingList.compact .rankingCard {
    grid-template-columns: 72px minmax(220px, 1fr);
  }

  body:not(.landingActive) .rankingMetrics,
  body:not(.landingActive) .rankingRisk {
    grid-column: 1 / -1;
  }

  body:not(.landingActive) .rankingMetrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .localServiceOverview,
  .localServiceGrid {
    grid-template-columns: 1fr;
  }

  .localServiceActions {
    justify-content: stretch;
  }

  .localServiceActions button {
    flex: 1 1 130px;
  }

  .localProcessList span {
    display: grid;
  }

  .localProcessList em {
    text-align: left;
  }

  body:not(.landingActive) .top {
    min-height: auto;
    align-items: start;
  }

  body:not(.landingActive) .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body:not(.landingActive) .metrics .metric {
    min-height: 74px;
  }

  body:not(.landingActive) .accountTabs {
    position: sticky;
    top: 0;
    z-index: 8;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  body:not(.landingActive) .accountTabs button {
    flex: 0 0 auto;
  }

  body:not(.landingActive) .rankingCard,
  body:not(.landingActive) .rankingList.compact .rankingCard {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  body:not(.landingActive) .rankingAvatar {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    font-size: 16px;
  }

  body:not(.landingActive) .rankingScore {
    display: none;
  }

  body:not(.landingActive) .rankingTitleRow {
    display: grid;
    gap: 8px;
  }

  body:not(.landingActive) .rankingActions {
    margin-left: 0;
  }

  body:not(.landingActive) .rankingMetrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body:not(.landingActive) .rankingMetric {
    min-height: 50px;
    padding: 9px 10px;
  }

  body:not(.landingActive) .dataPreviewGrid,
  body:not(.landingActive) .periodGrid,
  body:not(.landingActive) .chartFocusGrid,
  body:not(.landingActive) .simpleOptions > div,
  body:not(.landingActive) .myCopySummary,
  body:not(.landingActive) .copyManagerOverview {
    grid-template-columns: 1fr;
  }

  body:not(.landingActive) .tableWrap {
    border-radius: 12px;
    overflow-x: auto;
  }

  body:not(.landingActive) .clientSetupForm {
    grid-template-columns: 1fr;
  }

  body:not(.landingActive) .myCopyCard {
    padding: 14px;
  }

  body:not(.landingActive) .myCopyCardHead,
  body:not(.landingActive) .myCopyHeadActions {
    display: grid;
    justify-items: start;
  }
}

@media (max-width: 460px) {
  body:not(.landingActive) .metrics {
    grid-template-columns: 1fr;
  }

  body:not(.landingActive) .rankingMetrics {
    grid-template-columns: 1fr;
  }

  body:not(.landingActive) .quickActions {
    display: grid;
  }

  body:not(.landingActive) .quickActions > * {
    width: 100%;
  }
}

/* 20260709 compact form controls: keep inputs readable without turning checks into giant buttons. */
body:not(.landingActive) input[type="checkbox"],
body:not(.landingActive) input[type="radio"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  margin: 0;
  padding: 0;
  border-radius: 4px;
  accent-color: var(--fx-accent);
  box-shadow: none;
  transform: none;
}

body:not(.landingActive) input[type="checkbox"]:focus,
body:not(.landingActive) input[type="radio"]:focus {
  box-shadow: 0 0 0 3px rgba(13, 94, 201, 0.12);
}

body:not(.landingActive) .checkLine,
body:not(.landingActive) .compactCheck {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  width: fit-content;
  max-width: 100%;
  padding: 6px 10px;
  border: 1px solid var(--fx-line);
  border-radius: 999px;
  background: #ffffff;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}

body:not(.landingActive) .checkLine:has(input:checked),
body:not(.landingActive) .compactCheck:has(input:checked) {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #0b63ce;
}

body:not(.landingActive) .simpleOptions {
  padding: 10px 12px 12px;
}

body:not(.landingActive) .simpleOptions > div,
body:not(.landingActive) .simpleOptions .simpleOptionGrid {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
  margin-top: 10px;
}

body:not(.landingActive) .compactField {
  display: grid;
  gap: 5px;
  min-width: 140px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

body:not(.landingActive) .compactField input,
body:not(.landingActive) .subscriptionEdit input,
body:not(.landingActive) .followerCountEdit input,
body:not(.landingActive) [data-client-subscription-price],
body:not(.landingActive) [data-account-subscription-price],
body:not(.landingActive) [data-follower-count] {
  width: 92px;
  min-height: 32px;
  padding: 6px 8px;
}

body:not(.landingActive) .tableWrap button,
body:not(.landingActive) .adminUserActions button,
body:not(.landingActive) .subscriptionEdit button,
body:not(.landingActive) .followerCountEdit button,
body:not(.landingActive) .liveLinkControl button,
body:not(.landingActive) .paymentTable .secondaryButton {
  min-height: 30px;
  padding: 5px 9px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.2;
}

body:not(.landingActive) .buttonRow button,
body:not(.landingActive) .filterBar button,
body:not(.landingActive) .clientSetupForm > button {
  min-height: 34px;
  padding: 7px 12px;
}

body:not(.landingActive) .clientSetupForm > button {
  width: fit-content;
  min-width: 132px;
}

body:not(.landingActive) .tableWrap .checkLine {
  min-height: 28px;
  padding: 4px 8px;
  font-size: 12px;
}

@media (max-width: 760px) {
  body:not(.landingActive) .simpleOptions > div,
  body:not(.landingActive) .simpleOptions .simpleOptionGrid {
    display: grid;
    grid-template-columns: 1fr;
  }

  body:not(.landingActive) .checkLine,
  body:not(.landingActive) .compactCheck,
  body:not(.landingActive) .clientSetupForm > button {
    width: 100%;
  }

  body:not(.landingActive) .compactField input {
    width: 100%;
  }
}

/* Final collapsible sidebar. */
body:not(.landingActive) .side .shellSwitch {
  display: block;
  margin: 2px 0 8px;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--fx-line-soft);
}

body:not(.landingActive) .side .shellSwitchDetails {
  display: grid;
  gap: 5px;
}

body:not(.landingActive) .side .shellSwitchDetails > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  border-radius: 10px;
  padding: 9px 11px;
  background: #f3f7fc;
  color: var(--fx-heading);
  cursor: pointer;
  font-size: 14px;
  font-weight: 850;
  list-style: none;
  user-select: none;
}

body:not(.landingActive) .side .shellSwitchDetails > summary::-webkit-details-marker,
body:not(.landingActive) .side details.navGroup > summary::-webkit-details-marker {
  display: none;
}

body:not(.landingActive) .side .shellSwitchDetails > summary::after,
body:not(.landingActive) .side details.navGroup > summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid #8a97aa;
  border-bottom: 2px solid #8a97aa;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

body:not(.landingActive) .side .shellSwitchDetails[open] > summary::after,
body:not(.landingActive) .side details.navGroup[open] > summary::after {
  transform: rotate(225deg);
}

body:not(.landingActive) .side .shellSwitchMenu {
  display: grid;
  gap: 4px;
  padding-top: 5px;
}

body:not(.landingActive) .side details.navGroup {
  display: grid;
  gap: 5px;
}

body:not(.landingActive) .side details.navGroup > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  margin: 0;
  border-radius: 10px;
  padding: 9px 11px;
  background: #f8fafc;
  color: #536276;
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.2;
  list-style: none;
  user-select: none;
}

body:not(.landingActive) .side details.navGroup[open] > summary {
  background: #eef4fb;
  color: var(--fx-accent);
}

body:not(.landingActive) .side details.navGroup:not([open]) > button {
  display: none;
}

body:not(.landingActive) .side .navGroup.publicNav {
  border-bottom: 1px solid var(--fx-line-soft);
  padding-bottom: 10px;
}

@media (max-width: 760px) {
  body:not(.landingActive) .side .shellSwitchDetails > summary,
  body:not(.landingActive) .side details.navGroup > summary {
    min-height: 38px;
  }
}

/* CopyAlpha business modules */
.businessGrid {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(360px, 1.4fr);
  gap: 16px;
}

.businessForm {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.businessForm label {
  display: grid;
  gap: 6px;
  color: #536276;
  font-size: 13px;
  font-weight: 760;
}

.businessForm .fullLine,
.compactBusinessForm .fullLine {
  grid-column: 1 / -1;
}

.businessForm textarea,
.businessForm input,
.businessForm select {
  width: 100%;
}

.compactBusinessForm {
  margin-bottom: 14px;
}

.businessCardGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.businessCard {
  display: grid;
  gap: 12px;
  border: 1px solid var(--fx-line);
  border-radius: 12px;
  padding: 14px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.businessCardHead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.businessCardHead > div:first-child {
  display: grid;
  gap: 3px;
}

.businessCardHead b {
  color: var(--fx-heading);
  font-size: 16px;
}

.businessCardHead span,
.businessCard p,
.businessTags span,
.licenseBox span {
  color: #64748b;
  font-size: 12px;
}

.badgeRow,
.businessTags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.businessTags span {
  border: 1px solid #dbe5f0;
  border-radius: 999px;
  padding: 4px 8px;
  background: #f8fafc;
  font-weight: 760;
}

.businessMetrics,
.businessSummary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.businessMetrics span {
  display: grid;
  gap: 2px;
  border-radius: 10px;
  padding: 9px 10px;
  background: #f3f7fc;
}

.businessMetrics em {
  color: #64748b;
  font-size: 11px;
  font-style: normal;
  font-weight: 760;
}

.businessMetrics b {
  color: var(--fx-heading);
  font-size: 15px;
}

.licenseBox,
.inviteBox {
  display: grid;
  gap: 6px;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 10px;
  background: #eff6ff;
  word-break: break-all;
}

.licenseBox b,
.inviteBox b {
  color: #0b63ce;
  letter-spacing: 0.04em;
}

.emptyState {
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 18px;
  color: #64748b;
  background: #f8fafc;
  text-align: center;
}

@media (max-width: 920px) {
  .businessGrid,
  .businessForm {
    grid-template-columns: 1fr;
  }
}

/* EA marketplace and publisher workspace */
.eaMarketHero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(340px, .7fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 16px;
  border: 1px solid #173a61;
  border-radius: 14px;
  padding: 28px;
  overflow: hidden;
  color: #fff;
  background: #091b30;
  box-shadow: 0 18px 42px rgba(9, 27, 48, .18);
}

.eaMarketHero > div:first-child > span {
  display: block;
  margin-bottom: 9px;
  color: #6ee7b7;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.eaMarketHero h1 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 42px;
  line-height: 1.1;
  letter-spacing: 0;
}

.eaMarketHero p {
  max-width: 600px;
  margin: 0;
  color: #b9c9db;
  line-height: 1.7;
}

.eaHeroStats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 10px;
  background: rgba(255,255,255,.06);
}

.eaHeroStats span {
  display: grid;
  gap: 3px;
  padding: 14px 12px;
  color: #9fb2c7;
  font-size: 11px;
  text-align: center;
}

.eaHeroStats span + span { border-left: 1px solid rgba(255,255,255,.12); }
.eaHeroStats b { color: #fff; font-size: 20px; }

.eaMarketCatalog { padding: 16px; }
.eaMarketToolbar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}

.eaMarketFilters { display: flex; flex-wrap: wrap; gap: 6px; }
.eaMarketFilters button {
  min-height: 34px;
  border: 1px solid #dbe5f0;
  border-radius: 7px;
  padding: 6px 12px;
  color: #536276;
  background: #fff;
}
.eaMarketFilters button.active {
  border-color: #0b63ce;
  color: #fff;
  background: #0b63ce;
}

.eaMarketSearch {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(330px, 100%);
  color: #64748b;
  font-size: 12px;
}
.eaMarketSearch input { width: 100%; min-height: 36px; }

.eaMarketGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.eaProductCard {
  display: grid;
  grid-template-rows: 138px 1fr;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dce5ef;
  border-radius: 10px;
  background: #fff;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.eaProductCard:hover {
  border-color: #a9bfd9;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(15, 45, 78, .11);
}
.eaProductCard.featured { border-color: #8bc9b0; }

.eaProductVisual {
  position: relative;
  overflow: hidden;
  background: #102c49;
}
.eaProductVisual > img { width: 100%; height: 100%; object-fit: cover; }
.eaCoverFallback {
  display: flex;
  height: 100%;
  align-items: flex-end;
  justify-content: space-between;
  padding: 18px;
  background: linear-gradient(135deg, #071827 0%, #123d61 65%, #137a68 100%);
}
.eaCoverFallback span { color: #72e1ba; font-size: 12px; font-weight: 850; }
.eaCoverFallback b { color: #fff; font-size: 42px; line-height: 1; }
.eaProductBadges { position: absolute; top: 10px; left: 10px; display: flex; gap: 5px; }
.eaProductBadges span {
  border-radius: 5px;
  padding: 4px 7px;
  color: #fff;
  background: rgba(5,20,35,.78);
  font-size: 10px;
  font-weight: 850;
}
.eaProductBadges span:first-child:not(:last-child) { color: #052f26; background: #6ee7b7; }

.eaProductBody { display: grid; gap: 12px; align-content: start; padding: 15px; }
.eaProductTitle { display: flex; justify-content: space-between; gap: 10px; }
.eaProductTitle > div { display: grid; gap: 3px; min-width: 0; }
.eaProductTitle h3,
.eaLicenseCard h3,
.eaPublisherItem h3 { margin: 0; color: var(--fx-heading); font-size: 16px; }
.eaProductTitle span,
.eaLicenseTop span,
.eaPublisherItem span { color: #64748b; font-size: 11px; }
.eaProductTitle strong { flex: none; color: #087a5b; font-size: 15px; }
.eaProductBody > p { min-height: 42px; margin: 0; color: #58677b; font-size: 12px; line-height: 1.65; }

.eaProductFacts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.eaProductFacts span {
  display: grid;
  gap: 2px;
  border-radius: 6px;
  padding: 8px 6px;
  color: #748297;
  background: #f4f7fa;
  font-size: 10px;
  text-align: center;
}
.eaProductFacts b { color: #20364e; font-size: 13px; }
.eaRatingStars { color: #f0a317; font-size: 11px; letter-spacing: 0; white-space: nowrap; }
.eaProductFacts .eaRatingStars { display: inline; padding: 0; color: #f0a317; background: transparent; font-size: 8px; }
.eaProductBody .eaRiskNote { min-height: 0; border-left: 3px solid #f59e0b; padding-left: 8px; color: #85621e; }

.eaPurchaseRow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.eaProductCard .eaPurchaseRow { grid-template-columns: auto minmax(0, 1fr) auto; }
.eaPurchaseRow select { min-width: 0; width: 100%; }
.eaPointInput { min-width: 0; width: 100%; }
.eaPurchaseRow button { min-height: 38px; white-space: nowrap; }
.eaOwnedActions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: #64748b; font-size: 11px; }
.eaOwnedBadge { border-radius: 5px; padding: 4px 7px; color: #075d47 !important; background: #dff8ee; font-weight: 850; }

.eaLicenseGrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.eaLicenseCard { display: grid; gap: 12px; border: 1px solid #dbe5ef; border-radius: 9px; padding: 14px; background: #fbfdff; }
.eaLicenseTop { display: grid; grid-template-columns: 54px 1fr; gap: 10px; align-items: center; }
.eaLicenseTop > div:first-child { height: 54px; overflow: hidden; border-radius: 7px; }
.eaLicenseTop .eaCoverFallback { padding: 7px; }
.eaLicenseTop .eaCoverFallback span { display: none; }
.eaLicenseTop .eaCoverFallback b { font-size: 20px; }
.eaLicenseTop > div:last-child { display: grid; gap: 4px; }
.eaLicenseKey { display: grid; gap: 4px; border: 1px solid #c8daf0; border-radius: 7px; padding: 9px; background: #eef5fc; }
.eaLicenseKey span { color: #64748b; font-size: 10px; }
.eaLicenseKey code { overflow-wrap: anywhere; color: #0b63ce; font-weight: 800; }
.eaLicenseCard dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.eaLicenseCard dl div { display: grid; gap: 2px; }
.eaLicenseCard dt { color: #718096; font-size: 10px; }
.eaLicenseCard dd { margin: 0; color: #253b53; font-size: 12px; font-weight: 780; }

.eaLoginNotice { display: flex; justify-content: space-between; gap: 14px; align-items: center; margin-top: 14px; border: 1px solid #cbd9e8; border-radius: 9px; padding: 14px 16px; background: #f7fafc; }

.eaPublisherPanel > summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; color: var(--fx-heading); font-weight: 850; }
.eaPublisherBody { display: grid; gap: 18px; padding-top: 18px; }
.eaPublishForm { border-top: 1px solid #e3eaf2; padding-top: 16px; }
.eaPublisherList { display: grid; gap: 10px; }
.eaPublisherItem { display: grid; grid-template-columns: minmax(180px, .7fr) minmax(0, 1.8fr); gap: 14px; align-items: center; border-top: 1px solid #e3eaf2; padding-top: 12px; }
.eaPublisherItem > div:first-child { display: grid; gap: 4px; }
.eaUploadFields { display: grid; grid-template-columns: 100px 100px minmax(140px, 1fr) minmax(150px, 1fr) auto auto; gap: 7px; align-items: center; }
.eaUploadFields input,
.eaUploadFields select,
.eaUploadFields button { min-width: 0; width: 100%; }
.eaUploadFields .checkLine { white-space: nowrap; }
.eaAssetUploadFields { grid-column: 2; display: grid; grid-template-columns: 120px minmax(140px, .8fr) minmax(180px, 1.2fr) auto auto; gap: 7px; align-items: center; }
.eaAssetUploadFields input,
.eaAssetUploadFields select,
.eaAssetUploadFields button { min-width: 0; width: 100%; }
.eaPublisherItem > .eaAssetList { grid-column: 2; }
.eaAssetSection { padding: 18px 0; border-top: 1px solid #e3eaf2; }
.eaAssetList { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 9px; }
.eaAssetList.compact { display: flex; flex-wrap: wrap; gap: 6px; }
.eaAssetLink { display: grid; gap: 3px; padding: 10px 12px; border: 1px solid #dce5ef; background: #f8fafc; color: var(--fx-heading); text-decoration: none; border-radius: 6px; }
.eaAssetLink:hover { border-color: #8fb4dd; background: #f2f7fd; }
.eaAssetLink span { color: #2768aa; font-size: 11px; }
.eaAssetLink b { font-size: 13px; }
.eaAssetLink small { color: #64748b; font-size: 11px; }
.eaAssetList.compact .eaAssetLink { display: inline-flex; flex-direction: row; align-items: center; gap: 5px; padding: 5px 8px; }
.eaAssetList.compact .eaAssetLink b { font-size: 11px; font-weight: 600; }
.operationsToolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border: 1px solid #dce5ef; background: #fff; border-radius: 7px; }
.operationsToolbar > div { display: grid; gap: 3px; }
.operationsToolbar b { color: var(--fx-heading); font-size: 16px; }
.operationsToolbar span { color: #64748b; font-size: 12px; }
.operationsToolbar button { width: auto; }

.eaDeviceDialog { max-width: 620px; }
.eaDeviceList { display: grid; gap: 8px; margin-top: 12px; }
.eaDeviceRow { display: flex; justify-content: space-between; gap: 12px; align-items: center; border: 1px solid #dde6ef; border-radius: 8px; padding: 11px; }
.eaDeviceRow > div { display: grid; gap: 3px; }
.eaDeviceRow span { color: #64748b; font-size: 11px; }
.eaDeviceRow.inactive { opacity: .65; }

.eaProductDialog {
  width: min(900px, calc(100vw - 28px));
  max-height: min(880px, calc(100vh - 28px));
  overflow-y: auto;
}

.eaProductDetailHero {
  display: grid;
  grid-template-columns: minmax(220px, .65fr) minmax(0, 1.35fr);
  gap: 22px;
  margin-top: 4px;
}

.eaProductDetailCover {
  min-height: 230px;
  overflow: hidden;
  border: 1px solid #d6e1ec;
  border-radius: 9px;
  background: #102c49;
}
.eaProductDetailCover > img { width: 100%; height: 100%; object-fit: cover; }
.eaProductDetailCover .eaCoverFallback { min-height: 230px; }

.eaProductDetailSummary { display: grid; gap: 13px; align-content: start; }
.eaProductDetailSummary > strong { color: #087a5b; font-size: 28px; line-height: 1; }
.eaProductDetailSummary > p { margin: 0; color: #526276; font-size: 13px; line-height: 1.75; }
.eaProductDetailSummary dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}
.eaProductDetailSummary dl div {
  display: grid;
  gap: 3px;
  border: 1px solid #e1e8f0;
  border-radius: 7px;
  padding: 9px 10px;
  background: #f8fafc;
}
.eaProductDetailSummary dt { color: #758398; font-size: 10px; }
.eaProductDetailSummary dd { margin: 0; color: #20364e; font-size: 12px; font-weight: 800; }

.eaDetailRisk {
  margin-top: 16px;
  border-left: 4px solid #e7a217;
  padding: 11px 13px;
  color: #73571d;
  background: #fff9e9;
}
.eaDetailRisk b { color: #5d4515; font-size: 12px; }
.eaDetailRisk p { margin: 4px 0 0; font-size: 12px; line-height: 1.65; }

.eaReviewSection,
.eaSupportCreate {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  border-top: 1px solid #e3eaf2;
  padding-top: 16px;
}
.eaReviewSummary { display: flex; gap: 7px; align-items: center; color: #354b64; }
.eaReviewList,
.eaSupportList { display: grid; gap: 9px; }
.eaReviewItem,
.eaSupportItem { border: 1px solid #dfe7ef; border-radius: 8px; padding: 12px; background: #fff; }
.eaReviewHead,
.eaSupportHead { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.eaReviewHead > div,
.eaSupportHead > div { display: grid; gap: 4px; }
.eaReviewHead > span,
.eaSupportHead span { color: #718096; font-size: 10px; }
.eaReviewItem h4 { margin: 9px 0 0; color: #20364e; font-size: 13px; }
.eaReviewItem > p,
.eaAuthorReply p { margin: 6px 0 0; color: #526276; font-size: 12px; line-height: 1.65; }
.eaAuthorReply { margin-top: 9px; border-left: 3px solid #2d9b77; padding: 8px 10px; background: #f2faf7; }
.eaAuthorReply b { color: #087a5b; font-size: 11px; }
.eaReviewForm { display: grid; grid-template-columns: 100px minmax(0, 1fr) auto; gap: 8px; align-items: end; border: 1px solid #d8e4ef; border-radius: 8px; padding: 12px; background: #f7fafc; }
.eaReviewForm label,
.eaSupportCreate form { color: #627287; font-size: 11px; }
.eaReviewForm label { display: grid; gap: 5px; }
.eaReviewForm .fullLine { grid-column: 1 / -1; }
.eaReviewForm button { grid-column: 3; }
.eaSupportCreate > div { display: grid; gap: 3px; }
.eaSupportCreate > div span { color: #68788d; font-size: 11px; }
.eaSupportCreate form { display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; gap: 8px; align-items: start; }
.eaSupportCreate form textarea { grid-column: 1 / 3; }
.eaSupportCreate form button { grid-column: 3; grid-row: 1 / 3; align-self: stretch; }
.eaSupportPanel > summary { display: flex; justify-content: space-between; cursor: pointer; color: var(--fx-heading); font-weight: 850; }
.eaSupportList { margin-top: 14px; }
.eaSupportMessages { display: grid; gap: 6px; margin-top: 10px; }
.eaSupportMessages p { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; margin: 0; border-radius: 6px; padding: 8px 9px; color: #465b72; background: #f5f7fa; font-size: 11px; }
.eaSupportMessages p.staff { background: #edf8f4; }
.eaSupportMessages p b { color: #223b55; }
.eaSupportMessages p em { min-width: 0; color: inherit; font-style: normal; overflow-wrap: anywhere; }
.eaSupportMessages p span { color: #7a8798; font-size: 9px; }
.eaSupportReply { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; margin-top: 10px; }
.eaSupportActions { display: flex; justify-content: flex-end; margin-top: 8px; }
.eaSupportActions button { min-height: 32px; padding: 6px 11px; }
.compactEmpty { padding: 12px; }

.eaVersionTimeline { display: grid; gap: 8px; margin-top: 16px; }
.eaVersionEntry {
  position: relative;
  display: grid;
  gap: 5px;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
  padding: 11px 12px;
  background: #fff;
}
.eaVersionEntry.current { border-color: #83c8ad; background: #f4fbf8; }
.eaVersionEntry > div { display: flex; justify-content: space-between; gap: 12px; }
.eaVersionEntry b { color: #1d354e; font-size: 13px; }
.eaVersionEntry span { color: #718096; font-size: 10px; }
.eaVersionEntry p { margin: 0; color: #536276; font-size: 12px; line-height: 1.55; }
.eaVersionEntry em { position: absolute; top: 9px; right: 10px; color: #087a5b; font-size: 10px; font-style: normal; font-weight: 850; }
.eaVersionEntry.current > div { padding-right: 72px; }

.eaDetailActions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  align-items: center;
  margin-top: 16px;
  border-top: 1px solid #e3eaf2;
  padding-top: 14px;
}
.eaDetailActions .eaPurchaseRow { width: min(620px, 100%); grid-template-columns: minmax(0, 1fr) 120px auto; }

.adminEaActions { max-width: 420px; }
.adminEaVersionOverlay { z-index: 2500; }
.adminEaVersionsDialog {
  width: min(940px, calc(100vw - 28px));
  max-height: min(880px, calc(100vh - 28px));
  overflow-y: auto;
}
.adminEaProductSummary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0 14px;
}
.adminEaProductSummary span {
  border: 1px solid #dbe5ef;
  border-radius: 6px;
  padding: 5px 8px;
  color: #536276;
  background: #f7f9fc;
  font-size: 11px;
}
.adminEaVersionList { display: grid; gap: 9px; }
.adminEaVersionRow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}
.adminEaVersionRow.current { border-color: #7cc3a7; background: #f4fbf8; }
.adminEaVersionMain { display: grid; gap: 5px; min-width: 0; }
.adminEaVersionMain > div { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.adminEaVersionMain b { color: #1f3852; font-size: 14px; }
.adminEaVersionMain em {
  border-radius: 5px;
  padding: 3px 6px;
  color: #087a5b;
  background: #dff8ee;
  font-size: 9px;
  font-style: normal;
  font-weight: 850;
}
.adminEaVersionMain em.warn { color: #805b11; background: #fff1c7; }
.adminEaVersionMain span { color: #718096; font-size: 10px; }
.adminEaVersionMain p { margin: 0; color: #526276; font-size: 12px; }
.adminEaVersionMain code {
  overflow: hidden;
  color: #4e6074;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.adminEaVersionActions { display: grid; grid-template-columns: repeat(2, auto); gap: 6px; }
.adminEaVersionActions button:last-child { grid-column: 1 / -1; }
.adminEaAddVersion { margin-top: 14px; border-top: 1px solid #e3eaf2; padding-top: 12px; }
.adminEaAddVersion > summary { cursor: pointer; color: #27435f; font-size: 12px; font-weight: 850; }
.adminEaAddVersion .businessForm { margin-top: 10px; }

.authConsent { display: grid; gap: 8px; }
.authConsent .checkLine { align-items: flex-start; color: #536276; font-size: 12px; line-height: 1.5; }

@media (max-width: 1160px) {
  .eaMarketGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eaUploadFields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eaAssetUploadFields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .operationsToolbar { align-items: stretch; flex-direction: column; }
  .operationsToolbar button { width: 100%; }
}

@media (max-width: 760px) {
  .eaMarketHero { grid-template-columns: 1fr; padding: 20px; }
  .eaMarketHero h1 { font-size: 29px; }
  .eaHeroStats { width: 100%; }
  .eaMarketToolbar { align-items: stretch; flex-direction: column; }
  .eaMarketSearch { width: 100%; }
  .eaMarketGrid,
  .eaLicenseGrid { grid-template-columns: 1fr; }
  .eaProductCard { grid-template-rows: 120px 1fr; }
  .eaPurchaseRow,
  .eaProductCard .eaPurchaseRow { grid-template-columns: 1fr; }
  .eaPublisherItem { grid-template-columns: 1fr; }
  .eaUploadFields { grid-template-columns: 1fr; }
  .eaAssetUploadFields,
  .eaPublisherItem > .eaAssetList { grid-column: 1; }
  .eaAssetUploadFields { grid-template-columns: 1fr; }
  .eaLoginNotice { align-items: stretch; flex-direction: column; }
  .eaDeviceRow { align-items: stretch; flex-direction: column; }
  .eaProductDialog,
  .adminEaVersionsDialog { width: 100%; max-width: 100%; max-height: calc(100vh - 16px); }
  .eaProductDetailHero { grid-template-columns: 1fr; }
  .eaProductDetailCover,
  .eaProductDetailCover .eaCoverFallback { min-height: 150px; }
  .eaProductDetailSummary dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eaDetailActions { align-items: stretch; flex-direction: column; }
  .eaReviewForm,
  .eaSupportCreate form { grid-template-columns: 1fr; }
  .eaReviewForm .fullLine,
  .eaReviewForm button,
  .eaSupportCreate form textarea,
  .eaSupportCreate form button { grid-column: auto; grid-row: auto; }
  .eaReviewHead,
  .eaSupportHead { align-items: stretch; flex-direction: column; }
  .eaSupportMessages p { grid-template-columns: auto minmax(0, 1fr); }
  .eaSupportMessages p span { grid-column: 1 / -1; }
  .adminEaVersionRow { grid-template-columns: 1fr; }
  .adminEaVersionActions { grid-template-columns: 1fr; }
  .adminEaVersionActions button:last-child { grid-column: auto; }
  .subscriptionRiskGrid { grid-template-columns: 1fr; }
  .subscriptionRiskGrid .fullLine { grid-column: auto; }
  .subscriptionRiskLead { align-items: flex-start; flex-direction: column; }
}

/* Keep signed-in mobile navigation to one compact action row. */
@media (max-width: 760px) {
  body:not(.landingActive):not(.authViewActive) .side {
    max-height: 128px;
    overflow: hidden;
  }

  body:not(.landingActive):not(.authViewActive) .side .authBox,
  body:not(.landingActive):not(.authViewActive) .side .shellSwitch {
    display: none;
  }

  body:not(.landingActive):not(.authViewActive) .side details.navGroup,
  body:not(.landingActive):not(.authViewActive) .side .navGroup.publicNav {
    display: flex;
    overflow-x: auto;
    gap: 6px;
    padding: 4px 0 6px;
    scrollbar-width: none;
  }

  body:not(.landingActive):not(.authViewActive) .side details.navGroup::-webkit-scrollbar,
  body:not(.landingActive):not(.authViewActive) .side .navGroup.publicNav::-webkit-scrollbar {
    display: none;
  }

  body:not(.landingActive):not(.authViewActive) .side details.navGroup > summary,
  body:not(.landingActive):not(.authViewActive) .side .navGroup.publicNav > span {
    display: none;
  }

  body:not(.landingActive):not(.authViewActive) .side details.navGroup > button,
  body:not(.landingActive):not(.authViewActive) .side .navGroup.publicNav > button {
    display: grid;
    flex: 0 0 auto;
    width: auto;
    min-height: 36px;
    padding: 7px 10px;
    white-space: nowrap;
  }

  body:not(.landingActive):not(.authViewActive) .side button.active {
    order: -1;
  }
}
.moderationAvatarPreview {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line, #d9e0e8);
}

.strategyChart {
  width: 100%;
  height: 300px;
  min-height: 300px;
}

.strategyChartGrid {
  margin: 16px 0;
}

.subscriptionAccessNotice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin: 14px 0;
  border: 1px solid #bfdbfe;
  border-left: 3px solid #2563eb;
  background: #eff6ff;
  color: #1e3a5f;
}

.subscriptionAccessNotice span,
.replyHint {
  color: #64748b;
  font-size: 13px;
}

.textButton {
  width: auto;
  min-height: 30px;
  padding: 4px 8px;
  border: 0;
  background: transparent;
  color: #2563eb;
  box-shadow: none;
}

@media (max-width: 720px) {
  .strategyChart {
    height: 240px;
    min-height: 240px;
  }

  .subscriptionAccessNotice {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}
