/* Forex desk for Home, Assets, Profile, and History. Trade mode is not styled here. */

html:has(body.desk-mode) {
  background-color: #121a2e;
}

body.desk-mode {
  --ink: #0a1830;
  --panel: #16304c;
  --panel-deep: #122440;
  --edge: #2d4e78;
  --line: #2d4e78;
  --line-strong: #3d6294;
  --text: #f0f5fc;
  --soft: #a4b6d0;
  --muted: #a4b6d0;
  --green: #0b8f6a;
  --green-ink: #ffffff;
  --up: #12c48b;
  --down: #f0445a;
  --raise: 0 2px 8px rgba(0, 0, 0, 0.28);
  background-color: #121a2e;
  background-image:
    radial-gradient(120% 72% at 50% -22%, rgba(90, 140, 210, 0.06), transparent 58%),
    linear-gradient(180deg, #1a2740 0%, #121a2e 48%, #101828 100%);
  background-attachment: fixed;
  color: var(--text);
  color-scheme: dark;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.4;
  min-height: 100dvh;
}

body.desk-mode::before {
  content: none;
  opacity: 0;
  background: none;
}

body.desk-mode .app-shell,
body.desk-mode .main {
  background: transparent;
}

body.desk-mode h1,
body.desk-mode h2 {
  margin: 0;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
}

body.desk-mode a {
  color: var(--text);
}

body.desk-mode button,
body.desk-mode input,
body.desk-mode select,
body.desk-mode textarea {
  font-family: inherit;
}

body.desk-mode .up { color: var(--up); }
body.desk-mode .down { color: var(--down); }
body.desk-mode .flat { color: var(--soft); }

body.desk-mode .muted,
body.desk-mode label {
  color: var(--soft);
}

body.desk-mode .main {
  padding: 8px 12px 96px;
}

body.desk-mode .desk {
  gap: 0;
}

@media (min-width: 900px) {
  body.desk-mode .main {
    padding: 14px 18px 36px;
  }

  body.desk-mode .topbar,
  body.desk-mode #content .desk {
    width: min(760px, 100%);
  }
}

body.desk-mode .topbar {
  align-items: center;
  min-height: 36px;
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  background: transparent;
}

body.desk-mode .bal-face {
  position: relative;
  display: inline-flex;
  align-items: center;
  overflow: visible;
}

body.desk-mode .bal-face .real-edge {
  position: absolute;
  z-index: 2;
  right: calc(100% + 6px);
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  color: #f0d78a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
}

body.desk-mode .bal-face .real-mark {
  width: 13px;
  height: 13px;
  display: block;
  flex: none;
  color: #f0d78a;
}

body.desk-mode .bal-face.bal-face-mark {
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

body.desk-mode .bal-face.bal-face-mark .real-edge {
  position: static;
  right: auto;
  top: auto;
  transform: none;
  gap: 4px;
}

body.desk-mode .spread:has(.bal-face-mark) {
  align-items: flex-end;
}

body.desk-mode .balance,
body.desk-mode .topbar .balance {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--edge);
  background: var(--panel);
  box-shadow: none;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  text-shadow: none;
}

body.desk-mode .menu-toggle,
body.desk-mode .icon-btn,
body.desk-mode .key-btn,
body.desk-mode .topbar .home-menu {
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid var(--edge);
  background: var(--panel);
  color: var(--text);
  box-shadow: none;
  letter-spacing: 0;
  text-transform: none;
  position: static;
  cursor: pointer;
  backdrop-filter: none;
}

body.desk-mode .topbar .home-menu,
body.desk-mode .menu-toggle {
  display: inline-flex;
}

@media (min-width: 861px) {
  body.desk-mode .menu-toggle {
    display: none;
  }
}

body.desk-mode .topbar .home-menu svg,
body.desk-mode .menu-toggle svg {
  width: 16px;
  height: 16px;
  display: block;
}

body.desk-mode .icon-btn {
  display: inline-flex;
  font-size: 16px;
  line-height: 1;
  color: var(--soft);
}

body.desk-mode .menu-toggle:hover,
body.desk-mode .icon-btn:hover,
body.desk-mode .key-btn:hover,
body.desk-mode .topbar .home-menu:hover,
body.desk-mode .menu-toggle:focus-visible,
body.desk-mode .icon-btn:focus-visible,
body.desk-mode .key-btn:focus-visible,
body.desk-mode .topbar .home-menu:focus-visible {
  border-color: var(--line-strong);
  background: #1a3358;
  color: var(--text);
}

body.desk-mode .app-back {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--edge);
  background: transparent;
  color: var(--text);
  box-shadow: none;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0;
}

body.desk-mode .app-back:hover,
body.desk-mode .app-back:focus-visible {
  border-color: var(--line-strong);
  background: #1a3358;
  color: var(--text);
}

body.desk-mode .btn::after,
body.desk-mode button.btn::after {
  content: none;
  animation: none;
}

body.desk-mode .sidebar {
  background: #102038;
  border-right: 1px solid var(--edge);
  padding: 16px 12px;
  box-shadow: none;
}

body.desk-mode .sidebar .brand {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.desk-mode .side-nav {
  gap: 0;
  margin-top: 14px;
}

body.desk-mode .side-nav form {
  margin: 0;
}

body.desk-mode .side-nav a,
body.desk-mode .side-nav button {
  min-height: 42px;
  padding: 0 12px;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--soft);
  font-size: 14px;
  font-weight: 560;
  letter-spacing: 0;
  cursor: pointer;
  box-shadow: none;
}

body.desk-mode .side-nav a:hover,
body.desk-mode .side-nav button:hover,
body.desk-mode .side-nav a:focus-visible,
body.desk-mode .side-nav button:focus-visible {
  background: #1a3358;
  color: var(--text);
  box-shadow: none;
}

body.desk-mode .side-nav a.is-on,
body.desk-mode .side-nav a.is-on:hover {
  background: rgba(11, 143, 106, 0.14);
  color: var(--up);
  box-shadow: inset 2px 0 0 var(--green);
}

body.desk-mode .more-sheet {
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: 12px;
  box-shadow: var(--raise);
  padding: 4px;
  backdrop-filter: none;
}

body.desk-mode .more-sheet a {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 560;
  letter-spacing: 0;
}

body.desk-mode .more-sheet a + a {
  box-shadow: none;
}

body.desk-mode .more-sheet a:hover,
body.desk-mode .more-sheet a:focus-visible {
  background: #1a3358;
  color: var(--text);
}

body.desk-mode .bottom-nav,
body.trade-mode .bottom-nav {
  align-items: end;
  background: #0B1220;
  border-top: 1px solid rgba(59, 130, 246, 0.18);
  box-shadow: none;
  backdrop-filter: none;
  gap: 6px;
  padding: 2px 6px calc(3px + env(safe-area-inset-bottom));
  -webkit-tap-highlight-color: transparent;
}

body.desk-mode .bottom-nav a,
body.trade-mode .bottom-nav a,
body.desk-mode .bottom-nav a *,
body.trade-mode .bottom-nav a * {
  -webkit-tap-highlight-color: transparent;
}

body.desk-mode .bottom-nav a,
body.trade-mode .bottom-nav a {
  min-height: 40px;
  border-radius: 9px;
  border: 1px solid rgba(59, 130, 246, 0.42);
  background: #1E293B;
  background-clip: padding-box;
  color: #F8FAFC;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  box-shadow: 0 0 6px rgba(59, 130, 246, 0.28);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  line-height: 1.1;
  text-shadow: none;
  position: relative;
  overflow: visible;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

body.desk-mode .bottom-nav a:focus,
body.trade-mode .bottom-nav a:focus,
body.desk-mode .bottom-nav a:focus-visible,
body.trade-mode .bottom-nav a:focus-visible,
body.desk-mode .bottom-nav a:active,
body.trade-mode .bottom-nav a:active {
  outline: none;
  outline-offset: 0;
  -webkit-tap-highlight-color: transparent;
}

body.desk-mode .bottom-nav a:not(.nav-trade):focus,
body.trade-mode .bottom-nav a:not(.nav-trade):focus,
body.desk-mode .bottom-nav a:not(.nav-trade):focus-visible,
body.trade-mode .bottom-nav a:not(.nav-trade):focus-visible {
  outline: none;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
}

body.desk-mode .bottom-nav a:not(.nav-trade):active,
body.trade-mode .bottom-nav a:not(.nav-trade):active {
  filter: none;
  transform: scale(0.97);
  border-radius: 9px;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.45);
}

body.desk-mode .bottom-nav svg,
body.trade-mode .bottom-nav svg {
  width: 15px;
  height: 15px;
  display: block;
  color: currentColor;
  filter: none;
  position: relative;
  z-index: 1;
}

body.desk-mode .bottom-nav a:not(.nav-trade) span,
body.trade-mode .bottom-nav a:not(.nav-trade) span {
  position: relative;
  z-index: 1;
  color: #F8FAFC;
}

body.desk-mode .bottom-nav a:not(.nav-trade) svg path,
body.desk-mode .bottom-nav a:not(.nav-trade) svg circle,
body.trade-mode .bottom-nav a:not(.nav-trade) svg path,
body.trade-mode .bottom-nav a:not(.nav-trade) svg circle {
  stroke-width: 1.7;
}

body.desk-mode .bottom-nav a:not(.nav-trade),
body.trade-mode .bottom-nav a:not(.nav-trade) {
  border-radius: 9px;
  border-color: rgba(59, 130, 246, 0.5);
  color: #F8FAFC;
  background: #1E293B;
}

body.desk-mode .bottom-nav a:not(.nav-trade) svg,
body.trade-mode .bottom-nav a:not(.nav-trade) svg {
  color: #F8FAFC;
}

body.desk-mode .bottom-nav a.is-on:not(.nav-trade),
body.desk-mode .bottom-nav a.is-on:not(.nav-trade):hover,
body.trade-mode .bottom-nav a.is-on:not(.nav-trade),
body.trade-mode .bottom-nav a.is-on:not(.nav-trade):hover {
  color: #F8FAFC;
  border-color: rgba(59, 130, 246, 0.95);
  background: #1E293B;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
  text-shadow: none;
}

body.desk-mode .bottom-nav a.is-on:not(.nav-trade) svg,
body.trade-mode .bottom-nav a.is-on:not(.nav-trade) svg {
  color: #F8FAFC;
}

body.desk-mode .bottom-nav a.nav-profile.is-on,
body.desk-mode .bottom-nav a.nav-profile.is-on:hover,
body.trade-mode .bottom-nav a.nav-profile.is-on,
body.trade-mode .bottom-nav a.nav-profile.is-on:hover {
  color: #10B981;
  border-color: rgba(16, 185, 129, 0.95);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

body.desk-mode .bottom-nav a.nav-profile.is-on svg,
body.trade-mode .bottom-nav a.nav-profile.is-on svg,
body.desk-mode .bottom-nav a.nav-profile.is-on span,
body.trade-mode .bottom-nav a.nav-profile.is-on span {
  color: #10B981;
}

body.desk-mode .bottom-nav a.nav-trade,
body.trade-mode .bottom-nav a.nav-trade,
body.desk-mode .bottom-nav a.nav-trade:hover,
body.trade-mode .bottom-nav a.nav-trade:hover,
body.desk-mode .bottom-nav a.nav-trade.is-on,
body.trade-mode .bottom-nav a.nav-trade.is-on {
  --nav-rim: 0deg;
  width: 56px;
  height: 56px;
  min-height: 56px;
  margin: -16px 0 0;
  align-self: end;
  padding: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  justify-self: center;
  color: #F8FAFC;
  background:
    radial-gradient(circle at 50% 34%, #1E293B 0%, #0B1220 68%, #070d16 100%) padding-box,
    conic-gradient(
      from var(--nav-rim),
      #10B981 0deg,
      #22D3EE 55deg,
      #3B82F6 120deg,
      #A855F7 210deg,
      #10B981 300deg,
      #22D3EE 360deg
    ) border-box;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.32), 0 0 16px rgba(168, 85, 247, 0.2);
  animation: nav-trade-ring 7s linear infinite;
  overflow: visible;
  transition: transform 0.14s ease, box-shadow 0.2s ease;
}

body.desk-mode .bottom-nav a.nav-trade::after,
body.trade-mode .bottom-nav a.nav-trade::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
}

body.desk-mode .bottom-nav a.nav-trade:focus,
body.trade-mode .bottom-nav a.nav-trade:focus,
body.desk-mode .bottom-nav a.nav-trade:focus-visible,
body.trade-mode .bottom-nav a.nav-trade:focus-visible,
body.desk-mode .bottom-nav a.nav-trade:active,
body.trade-mode .bottom-nav a.nav-trade:active {
  border-radius: 50%;
  outline: none;
  outline-offset: 0;
  filter: none;
  -webkit-tap-highlight-color: transparent;
}

body.desk-mode .bottom-nav a.nav-trade:focus,
body.trade-mode .bottom-nav a.nav-trade:focus,
body.desk-mode .bottom-nav a.nav-trade:focus-visible,
body.trade-mode .bottom-nav a.nav-trade:focus-visible {
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.4), 0 0 16px rgba(168, 85, 247, 0.24);
}

body.desk-mode .bottom-nav a.nav-trade:active,
body.trade-mode .bottom-nav a.nav-trade:active {
  transform: scale(0.94);
  box-shadow:
    0 0 0 4px rgba(59, 130, 246, 0.3),
    0 0 0 8px rgba(168, 85, 247, 0.16),
    0 0 18px rgba(16, 185, 129, 0.38);
}

body.desk-mode .bottom-nav a.nav-trade:active::after,
body.trade-mode .bottom-nav a.nav-trade:active::after {
  opacity: 1;
  animation: nav-trade-pulse 0.45s ease-out;
}

body.desk-mode .bottom-nav a.nav-trade.is-on,
body.trade-mode .bottom-nav a.nav-trade.is-on {
  border-color: transparent;
  color: #F8FAFC;
}

body.desk-mode .bottom-nav a.nav-trade span,
body.trade-mode .bottom-nav a.nav-trade span {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: inherit;
  font-weight: 700;
  position: relative;
  z-index: 2;
}

body.desk-mode .bottom-nav a.nav-trade svg,
body.trade-mode .bottom-nav a.nav-trade svg {
  width: 20px;
  height: 20px;
  overflow: visible;
  filter: drop-shadow(0 0 2px rgba(16, 185, 129, 0.35));
  z-index: 2;
  shape-rendering: crispEdges;
}

body.desk-mode .bottom-nav a.nav-trade .tm-body,
body.trade-mode .bottom-nav a.nav-trade .tm-body {
  opacity: 0.86;
  animation: nav-candle-light 5.6s ease-in-out infinite;
}

body.desk-mode .bottom-nav a.nav-trade .tm-b1,
body.trade-mode .bottom-nav a.nav-trade .tm-b1,
body.desk-mode .bottom-nav a.nav-trade .tm-b4,
body.trade-mode .bottom-nav a.nav-trade .tm-b4 {
  fill: #ff3b4e;
}

body.desk-mode .bottom-nav a.nav-trade .tm-b2,
body.trade-mode .bottom-nav a.nav-trade .tm-b2 {
  fill: #00e676;
  animation-delay: 0.45s;
}

body.desk-mode .bottom-nav a.nav-trade .tm-b3,
body.trade-mode .bottom-nav a.nav-trade .tm-b3 {
  fill: #00e676;
  animation-delay: 0.9s;
}

body.desk-mode .bottom-nav a.nav-trade .tm-b4,
body.trade-mode .bottom-nav a.nav-trade .tm-b4 {
  animation-delay: 1.35s;
}

body.desk-mode .bottom-nav a.nav-trade .tm-b5,
body.trade-mode .bottom-nav a.nav-trade .tm-b5 {
  fill: #00e676;
  animation-delay: 1.8s;
}

body.desk-mode .bottom-nav a.nav-trade .tm-sheen,
body.trade-mode .bottom-nav a.nav-trade .tm-sheen {
  opacity: 0;
  pointer-events: none;
  transform-box: fill-box;
  transform-origin: center;
  animation: nav-trade-sheen 4.8s ease-in-out infinite;
}

body.desk-mode .card,
body.desk-mode .desk-card,
body.desk-mode .desk-bal,
body.desk-mode .table-wrap,
body.desk-mode .asset-row,
body.desk-mode .market-row {
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: 12px;
  color: var(--text);
  box-shadow: var(--raise);
}

body.desk-mode .kicker {
  margin: 0;
  color: var(--soft);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
}

body.desk-mode .fx-seg {
  display: inline-flex;
  flex: none;
  margin-left: auto;
  align-self: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid #2a4d78;
  border-radius: 10px;
  background: #0e1c30;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.45);
}

body.desk-mode .fx-seg button {
  min-width: 54px;
  min-height: 26px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #c5d4e8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: none;
}

body.desk-mode .fx-seg button + button {
  border-left: 0;
}

body.desk-mode .fx-seg button:hover,
body.desk-mode .fx-seg button:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
}

body.desk-mode .fx-seg button.is-on,
body.desk-mode .fx-seg button.is-on:hover,
body.desk-mode .fx-seg button.is-on:focus-visible {
  background: linear-gradient(180deg, #14b88a 0%, #0a7d5e 100%);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 1px 2px rgba(0, 0, 0, 0.35);
}

body.desk-mode .rate-note,
body.desk-mode .demo-quiet {
  margin: 4px 0 0;
  color: var(--soft);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.3;
  text-decoration: none;
}

body.desk-mode .demo-quiet:hover,
body.desk-mode .demo-quiet:focus-visible {
  color: var(--text);
}

body.desk-mode .eye-key {
  position: relative;
  z-index: 2;
  flex: none;
  width: 26px;
  height: 26px;
  min-width: 26px;
  min-height: 26px;
  padding: 0;
  border-radius: 7px;
  border: 1px solid var(--edge);
  background: transparent;
  color: var(--soft);
  display: grid;
  place-items: center;
  box-shadow: none;
  cursor: pointer;
}

body.desk-mode .eye-key svg {
  width: 15px;
  height: 15px;
  display: block;
}

body.desk-mode .eye-key [hidden] {
  display: none;
}

body.desk-mode .eye-key:hover,
body.desk-mode .eye-key:focus-visible {
  border-color: var(--line-strong);
  background: #1a3358;
  color: var(--text);
}

body.desk-mode .term-home {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.desk-mode .home-funds {
  margin: 0;
  padding: 8px 10px 9px;
  border: 0;
  border-radius: 11px 11px 0 0;
  background:
    linear-gradient(180deg, rgba(186, 214, 255, 0.08), rgba(186, 214, 255, 0) 72%),
    #1a3254;
  box-shadow: inset 0 1px 0 rgba(232, 238, 248, 0.32);
}

body.desk-mode .home-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 6px;
  width: 100%;
}

body.desk-mode .home-deposit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  min-height: 46px;
  padding: 4px 12px;
  border-radius: 7px;
  border: 1px solid #9ec4ff;
  background: linear-gradient(180deg, #1a4fce 0%, #102f86 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.05;
  text-transform: none;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 -1px 0 rgba(0, 0, 0, 0.35);
}

body.desk-mode .home-deposit .fund-ico {
  width: 18px;
  height: 18px;
  flex: none;
  display: block;
}

body.desk-mode .home-deposit.is-out {
  border-color: #ff8a9a;
  background: linear-gradient(180deg, #c81e32 0%, #8d1222 100%);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 -1px 0 rgba(0, 0, 0, 0.35);
}

body.desk-mode .home-deposit:hover,
body.desk-mode .home-deposit:focus-visible {
  border-color: #c8d8ff;
  background: linear-gradient(180deg, #245ee0 0%, #143696 100%);
  color: #ffffff;
  filter: none;
}

body.desk-mode .home-deposit.is-out:hover,
body.desk-mode .home-deposit.is-out:focus-visible {
  border-color: #ffc4cc;
  background: linear-gradient(180deg, #d4283c 0%, #9a1628 100%);
  color: #ffffff;
}

body.desk-mode .home-deposit:active,
body.desk-mode .term-home .fund-row a:active {
  transform: translateY(1px);
}

body.desk-mode .account-band {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--edge);
  background: var(--panel);
  box-shadow: inset 0 1px 0 rgba(186, 214, 255, 0.2), var(--raise);
  backdrop-filter: none;
}

body.desk-mode .home-hairline {
  height: 1px;
  width: 100%;
  background: rgba(186, 214, 255, 0.55);
  box-shadow: 0 1px 0 rgba(6, 12, 24, 0.7);
}

body.desk-mode .home-body {
  padding: 8px 12px 8px;
}

body.desk-mode .home-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(42, 77, 120, 0.95);
}

body.desk-mode .instr-who {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  margin: 0;
}

body.desk-mode .instr-who b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
}

body.desk-mode .instr-who span {
  flex: none;
  margin: 0;
  color: var(--soft);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

body.desk-mode .demo-trade-tag {
  flex: none;
  margin: 0;
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid var(--edge);
  background: var(--panel-deep);
  color: var(--soft);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
  text-transform: none;
  box-shadow: none;
}

body.desk-mode .readout-bar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  padding: 0;
}

body.desk-mode .readout-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 28px;
}

body.desk-mode .readout-row .pub-id {
  margin-top: 7px;
}

body.desk-mode .support-gap {
  flex: 1 1 auto;
  min-width: 18px;
}

body.desk-mode .readout-row .support-key {
  margin-top: 0;
  flex: none;
}

/* Guest home: wordmark sits 4px above care on the INR/USDT line. */
body.desk-mode .guest-home .readout-row > .cd-wordmark-home {
  transform: translateY(-18px);
}

body.desk-mode .guest-home .readout-row .support-key {
  transform: translateY(-14px);
}

/* Logged-in care sits on the INR/USDT buttons. The wordmark only nudges up. */
body.desk-mode .term-home:not(.guest-home) .readout-row .support-key {
  transform: translateY(-11px);
}

body.desk-mode .term-home:not(.guest-home) .readout-row > .cd-wordmark-home {
  transform: translateY(-12px);
}

body.desk-mode .readout-row .fx-stack {
  margin-left: 0;
  flex: none;
}

body.desk-mode .support-key {
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  min-width: 26px;
  min-height: 26px;
  padding: 0;
  border-radius: 7px;
  border: 1px solid rgba(196, 164, 112, 0.7);
  background: linear-gradient(180deg, #6e5a3a 0%, #4a3b26 100%);
  color: #fff6e4;
  box-shadow: inset 0 1px 0 rgba(255, 236, 204, 0.22);
  cursor: pointer;
  text-decoration: none;
  position: relative;
  z-index: 1;
}

body.desk-mode .support-key svg {
  width: 15px;
  height: 15px;
  display: block;
}

body.desk-mode .support-key:hover,
body.desk-mode .support-key:focus-visible {
  color: #fffaf0;
  border-color: rgba(220, 192, 146, 0.88);
  background: linear-gradient(180deg, #7d6744 0%, #56462d 100%);
  box-shadow: inset 0 1px 0 rgba(255, 236, 204, 0.28);
}

body.desk-mode .support-key:focus-visible {
  outline: 2px solid rgba(232, 210, 164, 0.95);
  outline-offset: 2px;
}

body.desk-mode .fx-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  margin-left: auto;
  max-width: 100%;
  min-width: 0;
}

body.desk-mode .fx-stack .fx-seg {
  margin-left: 0;
}

body.desk-mode .pub-id {
  flex: none;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

body.desk-mode .term-home .home-usdt {
  display: block;
  margin: 0;
  max-width: 100%;
  color: #e4c24a;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.01em;
  line-height: 1.25;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-shadow: none;
}

body.desk-mode .term-home .usdt-pack {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--soft);
}

body.desk-mode .term-home .usdt-mark {
  width: 14px;
  height: 14px;
  display: block;
}

body.desk-mode .usdt-mark circle {
  fill: #16304c;
  stroke: #12c48b;
}

body.desk-mode .usdt-mark path {
  stroke: #12c48b;
}

body.desk-mode .term-home .usdt-word {
  font-weight: 650;
  letter-spacing: 0.04em;
}

body.desk-mode .term-home .usdt-rate {
  color: #e4c24a;
  font-weight: 750;
}

body.desk-mode .term-home .usdt-rate::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 6px 1px 0;
  border-radius: 50%;
  vertical-align: 0.05em;
  background: radial-gradient(circle at 35% 30%, #fff8df 0%, #f0d56a 42%, #8fbf3a 100%);
  box-shadow: 0 0 6px 1px rgba(224, 186, 58, 0.9);
  animation: ofk-rate-pulse 1.8s ease-in-out infinite;
}

body.desk-mode .term-home .usdt-live {
  color: #f3d56a;
  font-weight: 800;
  background: none;
  -webkit-text-fill-color: #f3d56a;
  animation: none;
}

body.desk-mode .term-home .home-usdt.is-missing .usdt-rate {
  color: #e4c24a;
  font-weight: 750;
  text-shadow: none;
  animation: none;
}

body.desk-mode .term-home .home-usdt.is-missing .usdt-live {
  animation: none;
  -webkit-text-fill-color: #f3d56a;
  background: none;
}

body.desk-mode .bal-line {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  column-gap: 10px;
  row-gap: 4px;
  min-width: 0;
}

body.desk-mode .real-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  flex: 1 0 auto;
  min-width: min-content;
  max-width: 100%;
  gap: 3px;
}

body.desk-mode .real-amt {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}

body.desk-mode .term-home .real-kicker {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  color: #f0d78a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: none;
}

body.desk-mode .term-home:not(.guest-home) .real-kicker::before,
body.desk-mode .term-home.guest-home .real-kicker::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1.25 13.25 3.1v4.45c0 3.1-2.2 5.2-5.25 6.6C5 12.75 2.75 10.65 2.75 7.55V3.1L8 1.25Z' fill='none' stroke='%23f0d78a' stroke-width='1.25' stroke-linejoin='round'/%3E%3Cpath d='M8 5.05 9.65 7.15 8 9.25 6.35 7.15 8 5.05Z' fill='%23f0d78a'/%3E%3C/svg%3E") center / contain no-repeat;
}

body.desk-mode .term-home .real-mark {
  width: 13px;
  height: 13px;
  display: block;
  flex: none;
  color: #f0d78a;
}

body.desk-mode .demo-balance {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 3px;
  flex: 1 0 auto;
  min-width: min-content;
  max-width: 100%;
  margin: 0;
  text-align: right;
}

body.desk-mode .demo-balance .demo-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  flex: none;
  margin: 0;
  color: #7eb6ff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: none;
  white-space: nowrap;
}

body.desk-mode .demo-mark {
  width: 12px;
  height: 12px;
  display: block;
  flex: none;
  color: #5aa7ff;
}

body.desk-mode .demo-balance b {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  margin: 0;
  max-width: 100%;
  color: #e8f3ff;
  font-size: clamp(18px, 5.6vw, 23px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  overflow: visible;
  text-overflow: clip;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

body.desk-mode .term-home:not(.guest-home) .demo-balance,
body.desk-mode .term-home.guest-home .demo-balance {
  align-items: center;
  text-align: center;
}

body.desk-mode .term-home:not(.guest-home) .demo-balance .demo-kicker,
body.desk-mode .term-home.guest-home .demo-balance .demo-kicker {
  justify-content: center;
  width: 100%;
}

body.desk-mode .term-home:not(.guest-home) .demo-balance b,
body.desk-mode .term-home.guest-home .demo-balance b {
  justify-content: center;
  font-size: clamp(15px, 4.8vw, 20px);
}

body.desk-mode .term-home .readout {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  margin: 0;
  width: auto;
  max-width: 100%;
  flex: none;
  color: #ffffff;
  font-size: clamp(22px, 7.4vw, 30px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
  text-shadow: none;
  overflow: visible;
  text-overflow: clip;
}

body.desk-mode .term-home:not(.guest-home) .readout,
body.desk-mode .term-home.guest-home .readout {
  font-size: clamp(19px, 6.4vw, 26px);
}

body.desk-mode .term-home .readout .amt-fig,
body.desk-mode .demo-balance b .amt-fig {
  max-width: none;
  overflow: visible;
  vertical-align: baseline;
}

body.desk-mode .term-home .fund-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

body.desk-mode .term-home .fund-row a,
body.desk-mode .term-home .fund-row a.is-out,
body.desk-mode .term-home .fund-row a.is-hist,
body.desk-mode .term-home .fund-row a.is-trade {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 40px;
  min-width: 0;
  padding: 0 4px;
  border-radius: 10px;
  border: 1px solid #4a6aa0;
  background: #1e3a62;
  box-shadow: inset 0 1px 0 rgba(186, 214, 255, 0.14);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  white-space: nowrap;
}

body.desk-mode .term-home .fund-row .act-ico {
  width: 14px;
  height: 14px;
  flex: none;
  display: block;
}

body.desk-mode .term-home .fund-row a.is-dep {
  border-color: var(--green);
  background: var(--green);
  color: #ffffff;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.22);
}

body.desk-mode .term-home .fund-row a:hover,
body.desk-mode .term-home .fund-row a:focus-visible {
  background: #1a3358;
  border-color: var(--line-strong);
  color: var(--text);
  filter: none;
}

body.desk-mode .term-home .fund-row a.is-dep:hover,
body.desk-mode .term-home .fund-row a.is-dep:focus-visible {
  background: #0a7d5d;
  border-color: #0a7d5d;
  color: #ffffff;
}

body.desk-mode .tape,
body.desk-mode .term-book .board {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: 12px;
  box-shadow: var(--raise);
  overflow: hidden;
  backdrop-filter: none;
}

body.desk-mode .tape {
  border-color: rgba(90, 122, 164, 0.38);
  background: #152648;
  box-shadow:
    inset 0 0 0 1px rgba(6, 14, 28, 0.18),
    0 4px 12px rgba(0, 0, 0, 0.22);
}

body.desk-mode .term-home .tape.home-mkt {
  gap: 6px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

body.desk-mode .qhead,
body.desk-mode .qrow {
  display: grid;
  grid-template-columns: 28px minmax(0, 1.35fr) minmax(4.4rem, auto) minmax(4.85rem, auto);
  column-gap: 10px;
  align-items: center;
}

body.desk-mode .qhead {
  min-height: 32px;
  padding: 7px 12px 5px;
  color: #8ea4c2;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: transparent;
  border-bottom: 1px solid rgba(126, 168, 214, 0.18);
}

body.desk-mode .term-book .qhead {
  margin-top: 2px;
  padding: 8px 12px 5px;
  border-top: 1px solid rgba(126, 168, 214, 0.28);
  background: linear-gradient(180deg, rgba(210, 228, 255, 0.1), rgba(210, 228, 255, 0));
}

body.desk-mode .qhead span:nth-child(3),
body.desk-mode .qhead span:nth-child(4) {
  text-align: right;
}

body.desk-mode .term-home .qrow,
body.desk-mode .term-book .qrow {
  min-height: 54px;
  margin: 0;
  padding: 8px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--text);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.14s ease, box-shadow 0.14s ease;
}

body.desk-mode .term-home .qrow + .qrow,
body.desk-mode .term-book .qrow + .qrow {
  border-top: 1px solid rgba(126, 168, 214, 0.2);
}

body.desk-mode .term-home .qrow:hover,
body.desk-mode .term-home .qrow:focus-visible,
body.desk-mode .term-book .qrow:hover,
body.desk-mode .term-book .qrow:focus-visible {
  background: linear-gradient(90deg, rgba(116, 174, 236, 0.18) 0%, rgba(21, 42, 74, 0.72) 46%, rgba(16, 33, 60, 0.2) 100%);
  box-shadow: inset 2px 0 0 #8ec5ff;
}

body.desk-mode .term-home .qrow:active,
body.desk-mode .term-book .qrow:active {
  background: #122848;
  box-shadow: inset 2px 0 0 #5aa7ff, inset 0 2px 7px rgba(0, 0, 0, 0.38);
}

body.desk-mode .qrow .pair-logo,
body.desk-mode .qrow .pair-logo svg {
  width: 26px;
  height: 26px;
}

body.desk-mode .term-home .qrow .pair-logo,
body.desk-mode .term-book .qrow .pair-logo {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 1px #8eb4e0;
}

body.desk-mode .term-home .qrow .pair-logo svg,
body.desk-mode .term-book .qrow .pair-logo svg {
  width: 26px;
  height: 26px;
  display: block;
}

body.desk-mode .qname {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

body.desk-mode .qname b,
body.desk-mode .qname small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.desk-mode .qname b,
body.desk-mode .term-home .qname b,
body.desk-mode .term-book .qname b {
  color: #f4f8ff;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.03em;
  line-height: 1.15;
}

body.desk-mode .qname small,
body.desk-mode .term-home .qname small,
body.desk-mode .term-book .qname small {
  margin: 0;
  color: #7f93ad;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
}

body.desk-mode .qsim {
  display: inline-block;
  margin-left: 4px;
  padding: 0 4px;
  border-radius: 4px;
  border: 1px solid rgba(228, 194, 74, 0.5);
  color: #e4c24a;
  font-style: normal;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.45;
  text-transform: uppercase;
  vertical-align: 1px;
}

body.desk-mode .qsim.is-off {
  border-color: rgba(147, 164, 191, 0.45);
  color: #93a4bf;
}

body.desk-mode .qrow > b,
body.desk-mode .qrow [data-symbol-price] {
  justify-self: end;
  color: #f3f7ff;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
  white-space: nowrap;
}

body.desk-mode .qchg {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 4.7rem;
  min-height: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  font-variant-numeric: tabular-nums lining-nums;
  white-space: nowrap;
}

body.desk-mode .qchg.up {
  color: #e7fff3;
  background: linear-gradient(180deg, rgba(52, 220, 158, 0.32), rgba(10, 112, 80, 0.24));
  border: 1px solid rgba(86, 226, 168, 0.48);
  box-shadow: inset 0 1px 0 rgba(226, 255, 240, 0.3);
}

body.desk-mode .qchg.down {
  color: #ffe8ec;
  background: linear-gradient(180deg, rgba(255, 96, 118, 0.32), rgba(140, 24, 44, 0.22));
  border: 1px solid rgba(255, 120, 138, 0.46);
  box-shadow: inset 0 1px 0 rgba(255, 226, 230, 0.24);
}

body.desk-mode .qchg.flat {
  color: #d0dbea;
  background: rgba(147, 164, 191, 0.12);
  border: 1px solid rgba(160, 180, 206, 0.32);
}

body.desk-mode .qchg .qdir {
  font-size: 8px;
  line-height: 1;
  font-style: normal;
}

body.desk-mode .qchg b {
  font-weight: 700;
  font-variant-numeric: tabular-nums lining-nums;
}

body.desk-mode .qempty {
  margin: 0;
  padding: 14px 12px;
  color: var(--soft);
  font-size: 13px;
  border-top: 1px solid var(--line);
}

body.desk-mode .term-book {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.desk-mode .desk-banner {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.desk-mode .desk-news {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0 0 8px;
  border: 1px solid var(--edge);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--raise);
  backdrop-filter: none;
  overflow: hidden;
}

body.desk-mode .desk-news h2 {
  margin: 0;
  padding: 7px 12px;
  border-bottom: 1px solid #2a4d78;
  background: linear-gradient(180deg, #1e3c64 0%, #16304c 100%);
  color: #d5e4f8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

body.desk-mode .desk-tape {
  overflow: hidden;
  border-bottom: 1px solid rgba(126, 168, 214, 0.22);
  background: #122440;
}

body.desk-mode .desk-tape-track {
  display: flex;
  width: max-content;
  gap: 28px;
  padding: 7px 12px;
  color: #f0d78a;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.02em;
  line-height: 1.3;
  white-space: nowrap;
  animation: desk-tape 64s linear infinite;
}

body.desk-mode .desk-tape-track span + span {
  padding-left: 28px;
  border-left: 1px solid rgba(240, 215, 138, 0.28);
}

@keyframes desk-tape {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  body.desk-mode .desk-tape-track {
    animation: none;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

body.desk-mode .desk-banner-slim {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid var(--edge);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--raise);
}

body.desk-mode .desk-banner-slim b {
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

body.desk-mode .desk-banner-slim span {
  color: var(--soft);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}

body.desk-mode .desk-apk {
  margin: 10px 12px 2px;
}

body.desk-mode .desk-news .cdg-apk {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  overflow: hidden;
  padding: 10px 12px;
  border-radius: 16px;
  text-decoration: none;
  color: #f4fff8;
  background: linear-gradient(180deg, #12384a 0%, #0c2836 100%);
  border: 1.5px solid #3cba86;
  box-shadow: inset 0 1px 0 rgba(180, 255, 214, .12), 0 8px 18px rgba(0, 0, 0, .22);
}

body.desk-mode .desk-news .cdg-apk::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 38%;
  background: linear-gradient(90deg, transparent, rgba(170, 245, 205, .38), transparent);
  transform: translateX(-180%);
  animation: desk-apk-sweep 1.7s ease-in-out infinite;
  pointer-events: none;
}

body.desk-mode .desk-news .cdg-apk-mark,
body.desk-mode .desk-news .cdg-apk-copy,
body.desk-mode .desk-news .cdg-apk-dl { position: relative; z-index: 1; }

body.desk-mode .desk-news .cdg-apk-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(180deg, #34c98a 0%, #14915c 100%);
  border: 1.5px solid #8ee0b4;
  color: #062416;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

body.desk-mode .desk-news .cdg-apk-mark svg { width: 26px; height: 26px; display: block; }

body.desk-mode .desk-news .cdg-apk-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

body.desk-mode .desk-news .cdg-apk-copy strong { font-size: 15px; font-weight: 800; color: #f4fff8; }
body.desk-mode .desk-news .cdg-apk-copy em { font-style: normal; font-size: 12px; color: #b7e8cf; font-weight: 600; }

body.desk-mode .desk-news .cdg-apk-dl {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(180deg, #145c40 0%, #0c3324 100%);
  border: 1.5px solid #5ddea0;
  color: #e7fff2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

body.desk-mode .desk-news .cdg-apk-dl svg { width: 18px; height: 18px; display: block; }

@keyframes desk-apk-sweep {
  0%, 8% { transform: translateX(-180%); }
  58%, 100% { transform: translateX(320%); }
}

@media (prefers-reduced-motion: reduce) {
  body.desk-mode .desk-news .cdg-apk::before { animation: none; }
}

body.desk-mode .desk-photo {
  display: block;
  margin: 8px 8px 0;
  min-height: 0;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel-deep);
  color: var(--text);
  box-shadow: none;
}

body.desk-mode .desk-photo summary {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 64px;
  list-style: none;
  cursor: pointer;
}

body.desk-mode .desk-photo summary:not(:has(img)) {
  grid-template-columns: minmax(0, 1fr);
}

body.desk-mode .desk-photo summary::-webkit-details-marker {
  display: none;
}

body.desk-mode .desk-photo summary::marker {
  content: "";
}

body.desk-mode .desk-photo img {
  width: 112px;
  height: 64px;
  max-width: 112px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

body.desk-mode .desk-photo b {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

body.desk-mode .desk-photo[open] b {
  display: block;
  -webkit-line-clamp: unset;
}

body.desk-mode .desk-photo[open] img {
  height: 92px;
}

body.desk-mode .desk-photo-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

body.desk-mode .desk-photo b,
body.desk-mode .desk-line b {
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.28;
}

body.desk-mode .desk-line {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 2px 2px 6px;
  color: var(--text);
  text-decoration: none;
}

body.desk-mode .desk-news time,
body.desk-mode .desk-src {
  color: var(--soft);
  font-size: 12px;
  font-weight: 550;
  letter-spacing: 0;
}

body.desk-mode .desk-src {
  margin: 8px 12px 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 10px;
  font-weight: 650;
}

body.desk-mode .desk-photo p {
  margin: 0 6px 6px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}

body.desk-mode .board-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px 8px;
  border-bottom: 0;
}

body.desk-mode .board-exchange {
  margin: 0;
  color: #f4f8ff;
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

body.desk-mode .board-bal {
  min-width: 0;
}

body.desk-mode .board-read {
  display: inline-flex;
  align-items: baseline;
  margin: 4px 0 0;
  color: #ffffff;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums lining-nums;
  text-shadow: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.desk-mode .term-book .board-read {
  font-size: 24px;
  letter-spacing: -0.035em;
}

body.desk-mode .term-file {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.desk-mode .dossier,
body.desk-mode .file-panel {
  padding: 14px 14px 6px;
  border: 1px solid var(--edge);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--raise);
  backdrop-filter: none;
}

body.desk-mode .profile-card {
  padding: 16px 16px 8px;
  border: 1px solid #2a4d78;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(186, 214, 255, 0.08), rgba(22, 48, 76, 0) 46%),
    #16304c;
  box-shadow:
    inset 0 1px 0 rgba(232, 238, 248, 0.22),
    0 4px 12px rgba(0, 0, 0, 0.24);
}

body.desk-mode .profile-note {
  margin: -2px 0 12px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 550;
  line-height: 1.35;
}

body.desk-mode .profile-card h2 {
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(42, 77, 120, 0.95);
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

body.desk-mode .dossier h2 {
  margin-top: 6px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #ffffff;
  text-shadow: none;
}

body.desk-mode .id-list {
  margin: 10px 0 4px;
}

body.desk-mode .id-list div,
body.desk-mode .id-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  min-height: 42px;
  margin: 0;
  border-top: 1px solid var(--line);
}

body.desk-mode .id-list dt,
body.desk-mode .id-line span {
  color: var(--soft);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.desk-mode .id-list dd,
body.desk-mode .id-line b {
  margin: 0;
  min-width: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-align: right;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

body.desk-mode .file-acts {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--edge);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--raise);
  overflow: hidden;
}

body.desk-mode .file-acts a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--text);
  font-size: 15px;
  font-weight: 580;
  letter-spacing: 0;
  text-align: left;
  text-decoration: none;
}

body.desk-mode .file-acts a + a {
  box-shadow: inset 0 1px 0 var(--line);
}

body.desk-mode .file-acts a::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  border: 0;
  border-radius: 2px;
  background: var(--green);
  box-shadow: none;
}

body.desk-mode .file-acts a span {
  flex: 1;
  min-width: 0;
}

body.desk-mode .file-acts a::after {
  content: "";
  width: 7px;
  height: 7px;
  flex: none;
  margin-right: 2px;
  border-top: 1.5px solid var(--soft);
  border-right: 1.5px solid var(--soft);
  transform: rotate(45deg);
}

body.desk-mode .file-acts a:hover,
body.desk-mode .file-acts a:focus-visible,
body.desk-mode .file-acts button:hover,
body.desk-mode .file-acts button:focus-visible {
  background: #1a3358;
  color: var(--text);
}

body.desk-mode .file-acts button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  font-weight: 580;
  letter-spacing: 0;
  text-align: left;
  cursor: pointer;
}

body.desk-mode .file-acts button span {
  flex: 1;
  min-width: 0;
}

body.desk-mode .file-acts button .support-mark {
  flex: none;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  color: #9eb6d6;
}

body.desk-mode .file-acts button .support-mark svg {
  width: 16px;
  height: 16px;
  display: block;
}

body.desk-mode .file-acts button::after {
  content: "";
  width: 7px;
  height: 7px;
  flex: none;
  margin-right: 2px;
  border-top: 1.5px solid var(--soft);
  border-right: 1.5px solid var(--soft);
  transform: rotate(45deg);
}

body.desk-mode .support-desk {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  align-items: end;
  justify-items: center;
  padding: 16px 16px 88px;
  background: rgba(6, 12, 24, 0.66);
}

body.desk-mode .support-desk[hidden] {
  display: none;
}

body.desk-mode .support-desk-card {
  width: min(420px, 100%);
  padding: 16px 16px 8px;
  border-radius: 14px;
  border: 1px solid #2a4d78;
  background:
    linear-gradient(180deg, rgba(186, 214, 255, 0.08), rgba(22, 48, 76, 0) 40%),
    #16304c;
  box-shadow:
    inset 0 1px 0 rgba(232, 238, 248, 0.24),
    0 8px 18px rgba(0, 0, 0, 0.32);
}

body.desk-mode .support-desk-card h2 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

body.desk-mode .support-desk-card p {
  margin: 0 0 12px;
  color: var(--soft);
  font-size: 14px;
  line-height: 1.45;
}

body.desk-mode .file-panel > .kicker {
  display: block;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

body.desk-mode .term-file .field {
  gap: 6px;
  margin: 12px 0;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--soft);
}

body.desk-mode .term-file .check {
  min-height: 40px;
  align-items: center;
  margin: 0 0 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 560;
  letter-spacing: 0;
  text-transform: none;
}

body.desk-mode .term-file .check input {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
}

body.desk-mode .term-file .muted {
  margin: 0 0 12px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 480;
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: none;
}

body.desk-mode .btn,
body.desk-mode button.btn {
  min-height: 44px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: none;
}

body.desk-mode .btn-primary,
body.desk-mode .term-file .btn-primary {
  width: 100%;
  margin: 4px 0 12px;
  border: 1px solid var(--green);
  border-radius: 10px;
  background: var(--green);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: none;
}

body.desk-mode .btn-primary:hover,
body.desk-mode .btn-primary:focus-visible,
body.desk-mode .term-file .btn-primary:hover,
body.desk-mode .term-file .btn-primary:focus-visible {
  background: #0a7d5d;
  border-color: #0a7d5d;
  color: #ffffff;
}

body.desk-mode .btn-ghost {
  width: auto;
  min-height: 36px;
  padding: 0 12px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--edge);
  box-shadow: none;
}

body.desk-mode .topbar .btn-ghost.menu-toggle,
body.desk-mode .topbar .home-menu {
  width: 32px;
  min-height: 32px;
  padding: 0;
}

body.desk-mode input[type="text"],
body.desk-mode input[type="email"],
body.desk-mode input[type="password"],
body.desk-mode input[type="tel"],
body.desk-mode input[type="number"],
body.desk-mode input[type="date"],
body.desk-mode select,
body.desk-mode textarea {
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid var(--edge);
  background: var(--panel-deep);
  color: var(--text);
  font-size: 16px;
  font-weight: 520;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: none;
}

body.desk-mode input:focus,
body.desk-mode select:focus,
body.desk-mode textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(11, 143, 106, 0.28);
}

body.desk-mode input:-webkit-autofill {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  box-shadow: inset 0 0 0 1000px #122440;
}

body.desk-mode .desk-tabs {
  gap: 8px;
  border: 0;
}

body.desk-mode .desk-tabs a {
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid var(--edge);
  background: var(--panel);
  color: var(--soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: none;
}

body.desk-mode .desk-tabs a.is-on {
  color: #ffffff;
  background: var(--green);
  border-color: var(--green);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.32);
}

body.desk-mode th,
body.desk-mode td {
  border-color: var(--line);
  color: var(--text);
}

body.desk-mode th {
  color: var(--soft);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.desk-mode .stat b {
  color: var(--text);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

body.desk-mode .flash {
  border-radius: 10px;
  border: 1px solid var(--edge);
  background: var(--panel);
  color: var(--text);
}

body.desk-mode .flash-success {
  color: #d8fff2;
  background: rgba(18, 196, 139, 0.12);
  border-color: rgba(18, 196, 139, 0.45);
}

body.desk-mode .flash-error {
  color: #ffd5de;
  background: rgba(240, 68, 90, 0.12);
  border-color: rgba(240, 68, 90, 0.45);
}

body.desk-mode .desk-label {
  margin: 2px 0 0;
  color: var(--soft);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
}

body.desk-mode .desk-empty,
body.desk-mode .empty {
  color: var(--soft);
}

body.desk-mode .home-sec .hx {
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: 11px;
  box-shadow: var(--raise);
  color: var(--text);
  padding: 6px 9px 5px;
}

body.desk-mode .home-sec .hx-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 10px;
  align-items: start;
}

body.desk-mode .home-sec .hx-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}

body.desk-mode .home-sec .hx-col-end {
  align-items: flex-end;
  text-align: right;
}

body.desk-mode .home-sec .hx-top {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
}

body.desk-mode .home-sec .hx-sym {
  display: block;
  flex: 1;
  min-width: 0;
}

body.desk-mode .home-sec .hx-sym b {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-weight: 750;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.desk-mode .home-sec .hx-id-label {
  color: #8ea0b8;
}

body.desk-mode .home-sec .hx-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  width: auto;
  max-width: 100%;
  margin: 0;
}

body.desk-mode .home-sec .hx-px {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  min-width: 0;
  max-width: 100%;
}

body.desk-mode .home-sec .hx-col-end .hx-px {
  align-items: flex-end;
}

body.desk-mode .home-sec .hx-fact {
  justify-content: flex-start;
  overflow: hidden;
  max-width: 100%;
  white-space: nowrap;
}

body.desk-mode .home-sec .hx-fact em {
  font-size: 9px;
  letter-spacing: 0.07em;
}

body.desk-mode .home-sec .hx-col-end .hx-fact {
  justify-content: flex-end;
}

body.desk-mode .home-sec .hx-when,
body.desk-mode .home-sec .hx-exit-when {
  display: block;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-size: 11px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.desk-mode .home-sec .hx-when { color: #8eb4d4; }
body.desk-mode .home-sec .hx-exit-when { color: #b7a6d6; }

body.desk-mode .home-sec .hx-result {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: flex-end;
  gap: 5px;
  align-self: flex-end;
  justify-self: end;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-align: right;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}

body.desk-mode .home-sec .hx-pl {
  display: inline-block;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  font-variant-numeric: tabular-nums lining-nums;
  white-space: nowrap;
  word-break: keep-all;
}

body.desk-mode .home-sec .hx-pl-word {
  display: inline-block;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: none;
  white-space: nowrap;
}

body.desk-mode .home-sec .hx-result.is-profit { color: #14c98a; }
body.desk-mode .home-sec .hx-result.is-loss { color: #ef4b5d; }
body.desk-mode .home-sec .hx-result.is-even { color: var(--soft); }

body.desk-mode .home-sec .hx-broker {
  flex: none;
  align-self: flex-end;
  margin-left: 0;
  justify-content: flex-end;
  max-width: 100%;
}
body.desk-mode .home-sec .hx-col .hx-exit,
body.desk-mode .home-sec .hx-col .hx-entry {
  justify-content: flex-start;
}

body.desk-mode .home-sec .hx-col-end .hx-exit-when {
  align-self: flex-end;
  text-align: right;
}

body.desk-mode .home-sec .hx-entry,
body.desk-mode .home-sec .hx-entry em,
body.desk-mode .home-sec .hx-entry b { color: #9ec4e6; }
body.desk-mode .home-sec .hx-exit,
body.desk-mode .home-sec .hx-exit em,
body.desk-mode .home-sec .hx-exit b { color: #cbbbe6; }
body.desk-mode .home-sec .hx-broker,
body.desk-mode .home-sec .hx-broker em,
body.desk-mode .home-sec .hx-broker b { color: #8b98ab; }
body.desk-mode .home-sec .hx-id {
  align-self: flex-end;
  margin-left: 0;
  color: #d5deea;
}

body.desk-mode .topbar .hx-sum {
  align-self: center;
  flex: none;
}

body.desk-mode .hx-sum-wrap {
  position: relative;
  z-index: 6;
  flex: 1 1 auto;
  min-width: 0;
  max-width: calc(100% - 4.4rem);
  display: flex;
  justify-content: flex-end;
}

body.desk-mode .hx-sum {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex: 0 1 auto;
  box-sizing: border-box;
  width: auto;
  height: auto;
  min-height: 36px;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 7px 11px;
  border-radius: 8px;
  border: 1px solid rgba(196, 214, 240, 0.46);
  background: linear-gradient(180deg, #21406c 0%, #101e36 100%);
  box-shadow: inset 0 1px 0 rgba(236, 244, 255, 0.24), 0 2px 6px rgba(0, 0, 0, 0.2);
  color: #d5e4f6;
  font: inherit;
  line-height: 1.2;
  text-align: right;
  white-space: nowrap;
  overflow: visible;
  appearance: none;
  cursor: pointer;
}

body.desk-mode .hx-sum-label {
  flex: 0 1 auto;
  min-width: 0;
  color: #d5e4f6;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

body.desk-mode .hx-sum-value {
  display: inline-flex;
  flex: none;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.22em;
  font-size: clamp(16px, 4.8vw, 20px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
  white-space: nowrap;
  word-break: keep-all;
  overflow: visible;
  font-variant-numeric: tabular-nums lining-nums;
}

body.desk-mode .hx-sum-sign,
body.desk-mode .hx-sum-amt {
  flex: none;
  line-height: 1.2;
  white-space: nowrap;
}

body.desk-mode .hx-sum-value.up { color: #14c98a; }
body.desk-mode .hx-sum-value.down { color: #ef4b5d; }
body.desk-mode .hx-sum-value.flat { color: #d5e2f2; }

body.desk-mode .term-home #history {
  display: none;
  margin-top: 0;
  scroll-margin-top: 8px;
}

body.desk-mode .term-home.is-history #market,
body.desk-mode .term-home:has(#history:target) #market {
  display: none;
}

body.desk-mode .term-home.is-history #history,
body.desk-mode .term-home:has(#history:target) #history {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 0;
  padding: 10px 10px 12px;
  border: 1px solid rgba(90, 122, 164, 0.38);
  border-radius: 12px;
  background: #152648;
  box-shadow:
    inset 0 0 0 1px rgba(6, 14, 28, 0.18),
    0 4px 12px rgba(0, 0, 0, 0.22);
}

body.desk-mode #market {
  scroll-margin-top: 8px;
}

body.desk-mode .hx-bar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  min-height: 0;
}

body.desk-mode .hx-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  min-height: 0;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--edge);
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

body.desk-mode .hx-period-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: max-content;
  min-width: 132px;
  margin: 0;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid rgba(186, 206, 232, 0.38);
  background: linear-gradient(180deg, #17304f 0%, #0c182c 100%);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.28);
}

body.desk-mode .hx-period-menu[hidden] {
  display: none;
}

body.desk-mode .hx-period-menu a {
  display: flex;
  align-items: center;
  height: 32px;
  padding: 0 10px;
  border-radius: 7px;
  color: #d5e4f6;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

body.desk-mode .hx-period-menu a.is-on {
  background: linear-gradient(180deg, #3d5680 0%, #243a5c 100%);
  color: #f7fbff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

body.desk-mode .home-desk .hx-filters {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0;
  height: 26px;
  max-height: 26px;
  margin: 0;
  padding: 2px;
  border-radius: 8px;
  border: 1px solid rgba(168, 196, 232, 0.34);
  background: linear-gradient(180deg, #132743 0%, #0d1b32 100%);
  box-shadow: inset 0 1px 0 rgba(214, 230, 255, 0.12);
}

body.desk-mode .home-desk .hx-filters button,
body.desk-mode .home-desk .hx-filters a {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  min-height: 0;
  height: 22px;
  max-height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: #c5d4ea;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: none;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
}

body.desk-mode .home-desk .hx-filters button.is-on,
body.desk-mode .home-desk .hx-filters a.is-on {
  border-color: rgba(186, 210, 240, 0.42);
  background: linear-gradient(180deg, #2a4670 0%, #1a3356 100%);
  color: #f4f8ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

body.desk-mode .home-desk .hx[hidden],
body.desk-mode .home-desk [data-hx-empty][hidden],
body.desk-mode .home-desk [data-hx-none][hidden] {
  display: none;
}

body.desk-mode :focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

@property --nav-rim {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes nav-trade-ring {
  to {
    --nav-rim: 360deg;
  }
}

@keyframes nav-trade-pulse {
  0% {
    opacity: 0.85;
    transform: scale(0.92);
    border-color: rgba(59, 130, 246, 0.55);
    box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.35);
  }
  100% {
    opacity: 0;
    transform: scale(1.18);
    border-color: rgba(16, 185, 129, 0);
    box-shadow: 0 0 0 8px rgba(168, 85, 247, 0);
  }
}

@keyframes nav-candle-light {
  0%, 62%, 100% {
    opacity: 0.86;
  }
  16%, 32% {
    opacity: 1;
  }
}

@keyframes nav-trade-sheen {
  0% {
    transform: translateX(0);
    opacity: 0;
  }
  18% {
    opacity: 0.22;
  }
  100% {
    transform: translateX(22px);
    opacity: 0;
  }
}

@keyframes ofk-rate-pulse {
  0%, 100% {
    box-shadow: 0 0 4px 1px rgba(224, 186, 58, 0.55);
    opacity: 0.86;
  }
  50% {
    box-shadow: 0 0 8px 2px rgba(243, 213, 106, 0.95);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.desk-mode .term-home .usdt-live {
    animation: none;
    background: none;
    -webkit-text-fill-color: #f3d56a;
    color: #f3d56a;
  }

  body.desk-mode .term-home .usdt-rate::before {
    animation: none;
  }

  body.desk-mode .bottom-nav a.nav-trade,
  body.trade-mode .bottom-nav a.nav-trade,
  body.desk-mode .bottom-nav a.nav-trade.is-on,
  body.trade-mode .bottom-nav a.nav-trade.is-on {
    animation: none;
    --nav-rim: 40deg;
  }

  body.desk-mode .bottom-nav a.nav-trade:active,
  body.trade-mode .bottom-nav a.nav-trade:active {
    transform: none;
  }

  body.desk-mode .bottom-nav a.nav-trade::after,
  body.trade-mode .bottom-nav a.nav-trade::after,
  body.desk-mode .bottom-nav a.nav-trade:active::after,
  body.trade-mode .bottom-nav a.nav-trade:active::after {
    animation: none;
    transform: none;
    opacity: 0;
  }

  body.desk-mode .bottom-nav a.nav-trade .tm-body,
  body.trade-mode .bottom-nav a.nav-trade .tm-body {
    animation: none;
    opacity: 1;
  }

  body.desk-mode .bottom-nav a.nav-trade .tm-sheen,
  body.trade-mode .bottom-nav a.nav-trade .tm-sheen {
    animation: none;
    opacity: 0;
  }
}

body.desk-mode .amt-fig {
  display: inline-block;
  max-width: 100%;
  min-width: 0;
  line-height: 1.15;
  vertical-align: baseline;
  white-space: nowrap;
}

body .amt-fig .usd-mark {
  vertical-align: baseline;
  align-self: auto;
  line-height: 1;
}

body .usd-mark {
  display: inline;
  width: auto;
  height: auto;
  min-width: 0;
  margin: 0 0 0 0.08em;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  vertical-align: baseline;
  align-self: baseline;
  font-family: "Iowan Old Style", Palatino, "Palatino Linotype", "Book Antiqua", Georgia, "Times New Roman", serif;
  font-size: 0.9em;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0;
  line-height: 1;
  color: inherit;
  -webkit-text-fill-color: currentColor;
  text-decoration: none;
  text-shadow: none;
  flex: none;
}

@media (max-width: 380px) {
  body.desk-mode .term-home .readout {
    font-size: clamp(22px, 7.4vw, 26px);
  }

  body.desk-mode .demo-balance b {
    font-size: clamp(18px, 5.6vw, 20px);
  }

  body.desk-mode .demo-balance .demo-kicker {
    font-size: 10px;
  }

  body.desk-mode .term-home .fund-row a {
    font-size: 12px;
    padding: 0 2px;
  }

  body.desk-mode .qhead,
  body.desk-mode .qrow {
    grid-template-columns: 24px minmax(0, 1fr) minmax(3.6rem, auto) minmax(4.35rem, auto);
    column-gap: 6px;
  }

  body.desk-mode .term-home .qrow,
  body.desk-mode .term-book .qrow {
    min-height: 50px;
    padding: 7px 10px;
  }

  body.desk-mode .qrow .pair-logo,
  body.desk-mode .qrow .pair-logo svg,
  body.desk-mode .term-home .qrow .pair-logo,
  body.desk-mode .term-book .qrow .pair-logo,
  body.desk-mode .term-home .qrow .pair-logo svg,
  body.desk-mode .term-book .qrow .pair-logo svg {
    width: 24px;
    height: 24px;
  }

  body.desk-mode .qrow > b,
  body.desk-mode .qrow [data-symbol-price] {
    font-size: 12px;
  }

  body.desk-mode .qchg {
    min-width: 0;
    padding: 2px 5px;
    font-size: 10px;
  }
}

body.desk-mode .topbar .gate-pair {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}

a.cd-brand-btn {
  --edge: #4aa8ee;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  line-height: 0;
  text-decoration: none;
  overflow: hidden;
  filter: none;
}

a.cd-brand-login {
  --edge: #4aa8ee;
}

a.cd-brand-register {
  --edge: #3dcec6;
}

a.cd-brand-deposit {
  --edge: #3eb4f0;
}

a.cd-brand-withdraw {
  --edge: #ee6a82;
}

a.cd-brand-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: var(--edge);
  -webkit-mask-image: var(--brand-mask), var(--brand-mask);
  mask-image: var(--brand-mask), var(--brand-mask);
  -webkit-mask-size: 100% 100%, calc(100% - 4px) calc(100% - 4px);
  mask-size: 100% 100%, calc(100% - 4px) calc(100% - 4px);
  -webkit-mask-position: center, center;
  mask-position: center, center;
  -webkit-mask-repeat: no-repeat, no-repeat;
  mask-repeat: no-repeat, no-repeat;
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

a.cd-brand-btn img {
  display: block;
  position: relative;
  z-index: 0;
  width: auto;
  height: auto;
  max-height: 34px;
  max-width: 100%;
  object-fit: contain;
  pointer-events: none;
  filter: none;
  animation: none;
}

a.cd-brand-login.cd-brand-live::after,
a.cd-brand-register.cd-brand-live::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, 0.14) 44%, rgba(255, 255, 255, 0.9) 50%, rgba(255, 255, 255, 0.14) 56%, transparent 68%);
  background-size: 220% 100%;
  background-repeat: no-repeat;
  animation: cd-brand-sheen 2.15s ease-in-out infinite;
  -webkit-mask-image: var(--brand-mask);
  mask-image: var(--brand-mask);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

a.cd-brand-deposit::after,
a.cd-brand-withdraw::after {
  content: none;
  animation: none;
}

a.cd-brand-btn:hover,
a.cd-brand-btn:focus-visible {
  background: transparent;
  filter: none;
  box-shadow: none;
}

@keyframes cd-brand-sheen {
  0%, 28% { background-position: 150% 0; }
  68%, 100% { background-position: -50% 0; }
}

@media (prefers-reduced-motion: reduce) {
  a.cd-brand-login.cd-brand-live::after,
  a.cd-brand-register.cd-brand-live::after {
    animation: none;
  }
}

body.desk-mode .home-pair {
  align-items: center;
  justify-items: center;
}

body.desk-mode .home-pair a.cd-brand-btn {
  width: auto;
  max-width: 100%;
}

body.desk-mode .home-pair a.cd-brand-btn img {
  max-height: 44px;
  max-width: 100%;
}

body.desk-mode .home-pair a.cd-brand-deposit img {
  max-height: 52px;
}

body.desk-mode .topbar .gate-pair a.cd-brand-btn img {
  max-height: 34px;
  max-width: calc((100vw - 78px) / 2);
}

/* The mask border is position:absolute; inset:0. position:static on this
   link anchored that border to the whole header row, so the outline spanned
   the amount and the artwork looked cut in half. Keep it on the button. */
body.trade-mode .qx-top,
body.trade-mode .qx-sub {
  overflow: visible;
}

body.trade-mode a.qx-deposit.cd-brand-btn {
  position: relative;
  overflow: hidden;
  width: 128px;
  min-width: 128px;
  max-width: 128px;
  height: auto;
  min-height: 0;
  max-height: none;
  padding: 0;
  border: 0;
  animation: none;
  box-shadow: none;
  flex: none;
  align-self: center;
  justify-self: end;
  z-index: 1;
}

body.trade-mode a.qx-deposit.cd-brand-btn img {
  display: block;
  width: 128px;
  height: auto;
  max-width: none;
  max-height: none;
  aspect-ratio: 481 / 130;
  object-fit: fill;
  object-position: center;
}

body.desk-mode .home-share-slot {
  position: relative;
  flex: none;
  margin-left: auto;
}

body.desk-mode .home-share {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  margin: 0;
  padding: 0 8px 0 6px;
  border-radius: 999px;
  border: 1px solid #f6e2a8;
  background:
    linear-gradient(180deg, rgba(255, 248, 226, 0.55), rgba(255, 248, 226, 0) 46%),
    linear-gradient(180deg, #f0d48a 0%, #c6a15a 55%, #8d6b32 100%);
  color: #2a1c08;
  box-shadow: inset 0 1px 0 rgba(255, 248, 220, 0.7), 0 1px 0 rgba(0, 0, 0, 0.35);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
}

body.desk-mode .home-share svg {
  width: 11px;
  height: 11px;
  display: block;
  flex: none;
}

body.desk-mode .home-share:hover,
body.desk-mode .home-share:focus-visible {
  color: #1a1206;
  border-color: #fff1c4;
  background:
    linear-gradient(180deg, rgba(255, 250, 236, 0.7), rgba(255, 250, 236, 0) 46%),
    linear-gradient(180deg, #f7e0a4 0%, #d4b06a 55%, #9a7638 100%);
  box-shadow: inset 0 1px 0 rgba(255, 250, 230, 0.85), 0 1px 0 rgba(0, 0, 0, 0.35);
}

body.desk-mode .home-share:focus-visible {
  outline: 2px solid rgba(232, 210, 164, 0.95);
  outline-offset: 2px;
}

body.desk-mode .home-share:active {
  transform: translateY(1px);
}

body.desk-mode .home-share-sheet {
  position: fixed;
  z-index: 90;
  min-width: 196px;
  max-width: min(280px, calc(100vw - 16px));
  margin: 0;
  padding: 5px;
  border-radius: 10px;
  border: 1px solid rgba(196, 164, 112, 0.45);
  background:
    linear-gradient(180deg, rgba(186, 214, 255, 0.08), rgba(186, 214, 255, 0) 42%),
    #122440;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(232, 238, 248, 0.16);
}

body.desk-mode .home-share-sheet[hidden] {
  display: none;
}

body.desk-mode .home-share-url {
  margin: 3px 8px 4px;
  color: #e4c24a;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.35;
  word-break: break-all;
}

body.desk-mode .home-share-opt {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 34px;
  margin: 0;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #f0f5fc;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.2;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

body.desk-mode .home-share-opt:hover,
body.desk-mode .home-share-opt:focus-visible {
  background: rgba(186, 214, 255, 0.1);
  color: #fffaf0;
}
