@import url('https://fonts.googleapis.com/css2?family=Onest:wght@100..900&display=swap');

:root {
  --font-body: "Onest", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --color-bg: #000000;
  --color-bg-soft: #070707;
  --color-surface: rgba(15, 21, 34, 0.74);
  --color-surface-strong: rgba(20, 28, 45, 0.9);
  --color-surface-hover: rgba(43, 57, 89, 0.72);
  --color-border: rgba(196, 178, 255, 0.18);
  --color-border-strong: rgba(198, 164, 255, 0.34);

  --color-text: #f7f9ff;
  --color-muted: #9aa8c7;
  --color-subtle: #65728e;

  --color-blue: #5c6de5;
  --color-accent: #8b7cf6;
  --color-accent-strong: #b779ff;
  --color-cyan: #3a54d6;
  --color-positive: #52e6b8;
  --color-positive-rgb: 82, 230, 184;
  --color-positive-soft: #9ca2ff;
  --color-positive-soft-rgb: 156, 162, 255;
  --color-warning: #c58cff;
  --color-negative: #ff6b8e;
  --color-negative-rgb: 255, 107, 142;
  --color-negative-soft: #ba8e7d;
  --color-negative-soft-rgb: 186, 142, 125;

  --gradient-page: #000000;
  --gradient-surface: linear-gradient(155deg, rgba(255, 255, 255, 0.072), rgba(155, 116, 255, 0.038), rgba(255, 255, 255, 0.018));
  --gradient-accent: linear-gradient(135deg, #7058ff 0%, #b779ff 46%, #ff7af5 100%);
  --gradient-success: linear-gradient(135deg, var(--color-cyan), var(--color-blue) 54%, var(--color-accent-strong));

  --shadow-panel: 0 24px 80px rgba(0, 0, 0, 0.42);
  --shadow-glow: 0 18px 34px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 18px 44px rgba(0, 0, 0, 0.28);

  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;

  --mobile-nav-side-offset: 14px;
  --mobile-nav-bottom-offset: 10px;
  --mobile-nav-height: 60px;
  --mobile-nav-reserved-height: calc(
    var(--mobile-nav-height) + var(--mobile-nav-bottom-offset) + env(safe-area-inset-bottom, 0px)
  );
}

@media (max-width: 560px) {
  :root {
    --mobile-nav-side-offset: 8px;
    --mobile-nav-bottom-offset: 8px;
  }
}

* {
  box-sizing: border-box;
}

html {
  background: var(--color-bg);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--color-text);
  background: var(--color-bg);
  font-family: var(--font-body);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--color-accent) 74%, white);
  outline-offset: 3px;
}

img {
  display: block;
  max-width: 100%;
}

/* Dynamic viewport height avoids gaps when mobile browser chrome expands or collapses. */

#root {
  min-height: 100dvh;
}
.app-shell {
  position: relative;
  display: grid;
  --app-sidebar-width: 280px;
  --sidebar-motion: 460ms cubic-bezier(0.2, 1, 0.22, 1);
  --button-motion: 220ms cubic-bezier(0.2, 0.9, 0.22, 1);
  --content-switch-motion: 360ms cubic-bezier(0.22, 1, 0.36, 1);
  min-height: 100dvh;
  grid-template-columns: 280px minmax(0, 1fr);
  background: #000;
  isolation: isolate;
  overflow: hidden;
  transition: grid-template-columns var(--sidebar-motion);
}

@keyframes cosmic-panel-flow {
  from {
    background-position: 0% 50%;
  }

  to {
    background-position: 180% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .workspace-view-entering,
  .workspace-view-leaving,
  :is(.chart-panel, .data-panel)::before,
  .primary-button {
    animation: none !important;
  }

  .workspace-view-entering,
  .workspace-view-leaving {
    filter: none !important;
    transform: none !important;
  }
}

.app-shell::before {
  display: none;
  content: none;
}

.app-shell::after {
  display: none;
  content: none;
}

.workspace {
  position: relative;
  isolation: isolate;
  min-width: 0;
  height: 100dvh;
  overflow-y: auto;
  padding: 24px 28px 42px;
  background: #000;
}

.workspace-stage {
  position: relative;
  z-index: 1;
  min-height: 100%;
}

.workspace-stage.is-transitioning {
  isolation: isolate;
}

.workspace-view {
  position: relative;
  min-width: 0;
  transform-origin: top center;
}

.workspace-view-entering {
  will-change: opacity, transform;
  animation: workspace-view-enter var(--content-switch-motion) both;
}

.workspace-view-leaving {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 2;
  pointer-events: none;
  will-change: opacity, transform;
  animation: workspace-view-leave var(--content-switch-motion) both;
}

.workspace::before {
  display: none;
  content: none;
}

@keyframes workspace-view-enter {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.992);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes workspace-view-leave {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateY(-14px) scale(0.996);
  }
}

.auth-screen {
  display: grid;
  min-height: 100dvh;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--color-accent) 16%, transparent), transparent 34%),
    var(--color-bg);
}

.auth-layout {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100%, 460px);
  min-width: 0;
  align-items: center;
}

.auth-panel {
  position: relative;
  isolation: isolate;
  display: grid;
  min-width: 0;
  gap: 22px;
  overflow: hidden;
  padding: 24px;
  border-radius: var(--radius-xl);
}

.auth-mode-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(157, 170, 196, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.025);
}

.auth-mode-tab {
  display: inline-flex;
  min-width: 0;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 800;
  transition:
    border-color 180ms ease,
    color 180ms ease,
    background 180ms ease;
}

.auth-mode-tab:hover,
.auth-mode-tab.is-active {
  color: var(--color-text);
  border-color: rgba(157, 170, 196, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

.auth-heading {
  display: grid;
  min-width: 0;
  justify-items: start;
  gap: 12px;
}

.auth-heading h2,
.auth-heading p,
.auth-divider small,
.auth-field-error,
.auth-submit-note {
  margin: 0;
}

.auth-heading h2 {
  color: var(--color-text);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
  letter-spacing: 0;
}

.auth-heading p {
  max-width: 520px;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.55;
}

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

.auth-social-button {
  display: inline-flex;
  min-width: 0;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid rgba(157, 170, 196, 0.16);
  border-radius: var(--radius-md);
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.035);
  font-size: 14px;
  font-weight: 800;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform var(--button-motion);
}

.auth-social-button:hover {
  border-color: rgba(198, 164, 255, 0.32);
  background: rgba(255, 255, 255, 0.065);
}

.auth-social-button:active {
  transform: scale(0.98);
}

.auth-social-button svg {
  flex: 0 0 auto;
}

.auth-divider {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  color: var(--color-subtle);
  font-size: 12px;
  font-weight: 800;
}

.auth-divider span {
  height: 1px;
  background: rgba(157, 170, 196, 0.14);
}

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

.auth-field {
  display: grid;
  min-width: 0;
  gap: 8px;
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 800;
}

.auth-field input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(157, 170, 196, 0.16);
  border-radius: var(--radius-md);
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.035);
  font: inherit;
  outline: none;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.auth-field input::placeholder {
  color: rgba(154, 168, 199, 0.56);
}

.auth-field input:hover,
.auth-field input:focus {
  border-color: rgba(198, 164, 255, 0.34);
  background: rgba(255, 255, 255, 0.055);
}

.auth-field input:focus {
  box-shadow: 0 0 0 3px rgba(139, 124, 246, 0.12);
}

.auth-field input:disabled {
  color: var(--color-subtle);
  cursor: not-allowed;
}

.auth-field-error {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  min-height: 24px;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid rgba(var(--color-negative-rgb), 0.24);
  border-radius: var(--radius-sm);
  color: var(--color-negative);
  background: rgba(var(--color-negative-rgb), 0.09);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.auth-panel .auth-submit {
  width: 100%;
  min-height: 48px;
  margin-top: 4px;
  border-color: rgba(157, 170, 196, 0.16);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
  animation: none;
}

.auth-panel .auth-submit::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 62%),
    rgba(255, 255, 255, 0.02);
}

.auth-reset {
  min-height: 48px;
}

.auth-submit-note {
  padding: 12px 14px;
  border: 1px solid rgba(var(--color-positive-rgb), 0.2);
  border-radius: var(--radius-md);
  color: var(--color-positive);
  background: rgba(var(--color-positive-rgb), 0.08);
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 640px) {
  .auth-screen {
    padding: 14px;
  }

  .auth-panel {
    gap: 16px;
    padding: 14px;
    border-radius: var(--radius-lg);
  }

  .auth-mode-tabs {
    gap: 4px;
    padding: 4px;
    border-radius: var(--radius-md);
  }

  .auth-social-grid {
    gap: 8px;
  }

  .auth-heading {
    gap: 8px;
  }

  .auth-mode-tab,
  .auth-social-button,
  .auth-field input {
    min-height: 42px;
  }

  .auth-mode-tab {
    padding: 0 6px;
    font-size: 12px;
  }

  .auth-social-button {
    gap: 8px;
    padding: 0 8px;
    font-size: 12px;
  }

  .auth-form {
    gap: 12px;
  }

  .auth-field {
    gap: 7px;
  }

  .auth-heading h2 {
    font-size: 28px;
    line-height: 1.05;
  }

  .auth-heading p {
    font-size: 13px;
    line-height: 1.45;
  }

  .auth-submit {
    min-height: 44px;
  }
}

@media (max-width: 360px) {
  .auth-screen {
    padding: 10px;
  }

  .auth-panel {
    padding: 12px;
  }

  .auth-mode-tab {
    font-size: 11px;
  }
}

.topbar,
.workspace-grid,
.empty-panel {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  margin: 0 0 22px;
}

.topbar-empty {
  margin-bottom: 18px;
}

.page-title {
  min-width: 0;
}

.page-title h1 {
  margin: 0 0 8px;
  color: var(--color-text);
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: 0;
}

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

.primary-button.muted {
  border-color: rgba(183, 121, 255, 0.16);
  background:
    linear-gradient(135deg, rgba(183, 121, 255, 0.14), rgba(255, 255, 255, 0.055)),
    rgba(255, 255, 255, 0.025);
  box-shadow: none;
}

.primary-button.compact {
  min-height: 42px;
  padding-inline: 16px;
}

.primary-button:active {
  filter: brightness(1.02);
  transform: translateY(0) scale(0.985);
}

.primary-button:hover {
  filter: brightness(1.04);
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.32);
}

.challenge-plus-icon {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  stroke-width: 2.85;
}

.primary-button > * {
  z-index: 1;
  position: relative;
}

.primary-button::before {
  position: absolute;
  inset: 1px;
  border-radius: 19px;
  content: "";
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 62%),
    radial-gradient(circle at 16% 0, rgba(255, 255, 255, 0.18), transparent 36%);
  opacity: 0.72;
}

.primary-button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  min-width: 0;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  overflow: hidden;
  border: 1px solid rgba(226, 210, 255, 0.18);
  border-radius: 20px;
  color: white;
  background: var(--gradient-accent);
  background-size: 240% 160%;
  box-shadow: var(--shadow-glow);
  font-weight: 800;
  animation: challenge-gradient-flow 8s linear infinite;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease,
    gap var(--sidebar-motion),
    padding var(--sidebar-motion),
    width var(--sidebar-motion);
}

.search-button {
  display: flex;
  min-width: 280px;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-muted);
  background: rgba(255, 255, 255, 0.05);
  text-align: left;
  transition:
    border-color 180ms ease,
    color 180ms ease,
    background 180ms ease,
    transform var(--button-motion);
}

.search-button:hover {
  color: var(--color-text);
  border-color: var(--color-border-strong);
  background: rgba(255, 255, 255, 0.075);
}

.search-button span {
  flex: 1;
}

.search-button kbd {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-subtle);
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
}

.round-action {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-muted);
  background: rgba(255, 255, 255, 0.05);
  transition:
    border-color 180ms ease,
    color 180ms ease,
    background 180ms ease,
    transform var(--button-motion);
}

.round-action.is-active,
.round-action:hover {
  color: var(--color-text);
  border-color: var(--color-border-strong);
  background: rgba(255, 255, 255, 0.075);
}

.round-action:active,
.search-button:active {
  transform: scale(0.97);
}

.pulse-dot {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--color-negative);
  box-shadow: 0 0 14px rgba(255, 107, 142, 0.8);
}

.workspace-grid {
  display: grid;
  width: 100%;
  margin: 0;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

:is(.chart-panel, .data-panel) {
  position: relative;
  isolation: isolate;
  --panel-accent-rgb: 139, 124, 246;
  --panel-fill-rgb: 8, 11, 18;
  overflow: hidden;
  border: 1px solid rgba(226, 210, 255, 0.12);
  background:
    linear-gradient(135deg, rgba(var(--panel-accent-rgb), 0.09), transparent 38%, rgba(255, 122, 245, 0.04)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018) 54%, rgba(255, 255, 255, 0.008)),
    rgba(var(--panel-fill-rgb), 0.4);
  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.48),
    inset 0 -1px 0 rgba(183, 121, 255, 0.045);
  backdrop-filter: blur(34px) saturate(132%);
  -webkit-backdrop-filter: blur(34px) saturate(132%);
}

:is(.chart-panel, .data-panel)::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  content: "";
  background:
    linear-gradient(108deg, transparent 4%, rgba(112, 88, 255, 0.016) 22%, rgba(183, 121, 255, 0.09) 38%, rgba(255, 122, 245, 0.068) 52%, rgba(58, 84, 214, 0.056) 66%, transparent 84%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.036), transparent 44%);
  background-size: 220% 100%, 100% 100%;
  opacity: 0.36;
  pointer-events: none;
  animation: cosmic-panel-flow 14s linear infinite;
}

:is(.chart-panel, .data-panel)::after {
  position: absolute;
  inset: 1px;
  z-index: 0;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: inherit;
  content: "";
  box-shadow:
    inset 0 -42px 80px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(183, 121, 255, 0.018);
  pointer-events: none;
}

:is(.chart-panel, .data-panel) > * {
  position: relative;
  z-index: 1;
}

.chart-panel,
.data-panel {
  padding: 20px;
  border-radius: var(--radius-xl);
}

.chart-panel {
  --panel-accent-rgb: 92, 109, 229;
  min-width: 0;
  border-color: rgba(92, 109, 229, 0.16);
  background:
    radial-gradient(900px 240px at 10% 0%, rgba(58, 84, 214, 0.13), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 48%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.082), rgba(255, 255, 255, 0.024) 48%, rgba(58, 84, 214, 0.028)),
    rgba(7, 10, 16, 0.4);
}

.chart-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.chart-summary p {
  margin: 0;
  color: var(--color-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chart-summary h3 {
  margin: 10px 0 0;
  color: var(--color-positive);
  font-size: 28px;
}

.chart-summary h3.is-negative {
  color: var(--color-negative);
}

.workspace-grid:not(.workspace-grid-full) .chart-summary h3.is-negative,
.workspace-grid-full .chart-summary h3.is-negative {
  color: var(--color-negative);
}

.chart-summary h3 span {
  color: var(--color-subtle);
  font-size: 14px;
  font-weight: 700;
}

.chart-summary strong {
  display: block;
  margin-top: 8px;
  color: var(--color-positive);
  font-size: 13px;
  text-align: right;
}

.chart-rule {
  height: 1px;
  margin: 24px 0 14px;
  background: rgba(255, 255, 255, 0.08);
}

.chart-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.chart-controls > span {
  color: var(--color-subtle);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
}

.chart-controls > span.is-negative {
  color: var(--color-negative);
}

.range-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.range-tabs button {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-muted);
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
  font-weight: 800;
  transition:
    border-color 180ms ease,
    color 180ms ease,
    background 180ms ease,
    transform var(--button-motion);
}

.range-tabs button.is-active {
  color: #0b1018;
  border-color: rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, #eef3fb, #becbe0);
}

.range-tabs button:hover {
  color: var(--color-text);
  border-color: var(--color-border-strong);
}

.range-tabs button:active {
  transform: scale(0.96);
}

.chart-canvas {
  position: relative;
  margin-top: 18px;
}

.chart-canvas svg {
  display: block;
  width: 100%;
  min-height: 230px;
}

.chart-grid {
  fill: none;
  stroke: rgba(255, 255, 255, 0.09);
  stroke-width: 1;
}

.chart-area {
  fill: rgba(111, 134, 255, 0.1);
}

.chart-line {
  fill: none;
  stroke: var(--color-cyan);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 5;
  filter: drop-shadow(0 0 14px rgba(58, 84, 214, 0.26));
}

.chart-dot {
  fill: var(--color-text);
  stroke: var(--color-cyan);
  stroke-width: 3;
}

.chart-labels {
  display: flex;
  justify-content: space-between;
  color: var(--color-subtle);
  font-size: 12px;
  font-weight: 700;
}

.content-stack {
  display: grid;
  min-width: 0;
  gap: 18px;
}

.empty-panel {
  width: 100%;
  min-height: 520px;
  margin: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), transparent 48%),
    var(--gradient-surface),
    rgba(22, 24, 24, 0.34);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(34px) saturate(132%);
  -webkit-backdrop-filter: blur(34px) saturate(132%);
}

.profile-layout {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  min-width: 0;
}

.profile-hero,
.profile-details-panel {
  border-radius: var(--radius-xl);
}

.profile-hero {
  display: grid;
  min-width: 0;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 24px;
}

.profile-avatar,
.profile-detail-icon {
  display: grid;
  place-items: center;
  border: 1px solid rgba(157, 170, 196, 0.18);
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.05);
}

.profile-avatar {
  width: 76px;
  height: 76px;
  border-radius: 24px;
}

.profile-main-copy {
  display: grid;
  min-width: 0;
  gap: 8px;
  justify-items: start;
}

.profile-main-copy h2,
.profile-main-copy p,
.profile-error {
  margin: 0;
}

.profile-main-copy h2 {
  color: var(--color-text);
  font-size: 42px;
  line-height: 1;
}

.profile-main-copy p,
.profile-detail-item span {
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 800;
}

.profile-logout {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.profile-logout:disabled {
  color: var(--color-subtle);
  cursor: not-allowed;
}

.profile-error {
  width: fit-content;
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(var(--color-negative-rgb), 0.24);
  border-radius: var(--radius-sm);
  color: var(--color-negative);
  background: rgba(var(--color-negative-rgb), 0.09);
  font-size: 13px;
  font-weight: 800;
}

.profile-details-panel {
  display: grid;
  gap: 18px;
  padding: 22px;
}

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

.profile-detail-item {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-md);
}

.profile-detail-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 15px;
}

.profile-detail-item div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.profile-detail-item strong {
  min-width: 0;
  overflow: hidden;
  color: var(--color-text);
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 920px) {
  .profile-hero,
  .profile-detail-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .profile-logout {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .profile-layout,
  .profile-detail-list {
    gap: 12px;
  }

  .profile-hero,
  .profile-details-panel {
    padding: 16px;
    border-radius: var(--radius-lg);
  }

  .profile-avatar {
    width: 62px;
    height: 62px;
    border-radius: 20px;
  }

  .profile-main-copy h2 {
    font-size: 32px;
  }
}

@media (max-width: 1180px) {
  .workspace-grid {
    grid-template-columns: 260px minmax(0, 1fr);
  }

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

@media (max-width: 860px) {
  .app-shell {
    --app-sidebar-width: 0px;
    display: block;
    overflow: visible;
  }

  .workspace {
    height: auto;
    min-height: 100dvh;
    padding: 18px 14px 104px;
  }

  .workspace::before {
    left: 0;
  }

  .topbar,
.workspace-grid {
    max-width: none;
  }

  .topbar {
    display: grid;
  }

  .topbar-actions {
    width: 100%;
  }

  .search-button {
    min-width: 0;
    flex: 1;
  }

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

@media (max-width: 560px) {
  .page-title h1 {
    font-size: 28px;
  }

  .panel-heading {
    display: grid;
  }

  .range-tabs {
    justify-content: flex-start;
  }

  .equity-chart-panel {
    padding: 14px 10px 12px;
  }

  .equity-chart-panel .chart-summary {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding-left: 6px;
  }

  .equity-chart-panel .chart-summary p {
    font-size: 10px;
  }

  .equity-chart-panel .chart-summary > div:last-child {
    display: none;
  }

  .equity-chart-panel .chart-summary h3 {
    margin-top: 6px;
    font-size: 22px;
  }

  .equity-chart-panel .chart-summary h3 span {
    display: inline;
    margin-top: 0;
    font-size: 12px;
    white-space: nowrap;
  }

  .equity-chart-panel .chart-summary strong {
    margin-top: 6px;
    font-size: 12px;
    text-align: left;
  }

  .equity-chart-panel .chart-rule {
    margin: 14px 0 10px;
  }

  .equity-chart-panel .chart-controls {
    align-items: flex-start;
    gap: 10px;
  }

  .equity-chart-panel .chart-controls > span {
    display: none;
  }

  .equity-chart-panel .range-tabs {
    width: 100%;
    justify-content: flex-start;
    gap: 4px;
  }

  .equity-chart-panel .range-tabs button {
    min-height: 30px;
    padding: 0 8px;
    font-size: 12px;
  }

  .equity-chart-panel .chart-canvas {
    margin: 8px var(--equity-chart-mobile-right-bleed, -10px) 0 0;
  }

  .equity-chart-panel-accounts,
  .equity-chart-panel-statistics {
    --equity-chart-mobile-right-bleed: 0;
  }

  .equity-chart-panel .apex-chart-stage {
    min-height: 200px !important;
  }
}

/* Shared component surfaces */

:where(.base-button) {
  border: 0;
  color: inherit;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
  position: relative;
  overflow: hidden;
  font-family: inherit;
  cursor: pointer;
}

:where(.base-button)::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 64%),
    linear-gradient(135deg, rgba(183, 121, 255, 0.12), rgba(139, 124, 246, 0.04));
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px) scale(0.98);
  transition:
    opacity 180ms ease,
    transform 220ms cubic-bezier(0.2, 0.9, 0.22, 1);
}

:where(.base-button):active::after {
  opacity: 0.26;
  transform: translateY(0) scale(1);
  transition-duration: 80ms;
}

:where(.base-button) > * {
  position: relative;
  z-index: 1;
}

.surface-panel {
  border: 1px solid rgba(157, 170, 196, 0.14);
  background: rgba(12, 15, 22, 0.2);
  box-shadow: none;
  backdrop-filter: blur(8px) saturate(108%);
  -webkit-backdrop-filter: blur(8px) saturate(108%);
}

.surface-panel::before,
.surface-panel::after {
  display: none;
  content: none;
}

.surface-item {
  border: 1px solid rgba(157, 170, 196, 0.14);
  background: rgba(12, 15, 22, 0.2);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.surface-control {
  border: 1px solid rgba(157, 170, 196, 0.12);
  background: rgba(255, 255, 255, 0.028);
  box-shadow: none;
}

.surface-border {
  border: 1px solid rgba(157, 170, 196, 0.14);
}

.surface-interactive:where(:hover, :focus-visible),
.surface-interactive.is-active,
.surface-interactive.is-current {
  border-color: rgba(103, 132, 190, 0.42);
  background: rgba(26, 33, 48, 0.28);
  box-shadow: none;
}

.surface-interactive.is-active::before,
.surface-interactive.is-current::after {
  display: none;
  animation: none;
}

.surface-chip {
  border: 1px solid rgba(157, 170, 196, 0.16);
  background: rgba(255, 255, 255, 0.036);
}

.surface-no-glow {
  box-shadow: none;
}

.surface-no-glow::before,
.surface-no-glow::after {
  display: none;
  content: none;
}
/* Sidebar and mobile navigation */
@property --nav-border-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
@keyframes nav-border-spin {
  to {
    --nav-border-angle: 360deg;
  }
}
@keyframes mobile-more-slide-up {
  from {
    opacity: 0;
    transform: translateY(calc(100% + 18px));
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes menu-plus-bloom {
  0%,
  100% {
    transform: rotate(0) scale(1);
    filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0));
  }

  42% {
    transform: rotate(45deg) scale(1.06);
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
  }

  72% {
    transform: rotate(30deg) scale(0.99);
  }
}
@keyframes menu-plus-vertical {
  0%,
  100% {
    transform: scaleY(1);
  }

  45% {
    transform: scaleY(1.14);
  }
}
@keyframes menu-plus-horizontal {
  0%,
  100% {
    transform: scaleX(1);
  }

  45% {
    transform: scaleX(1.14);
  }
}
@keyframes menu-accounts-wallet {
  0%,
  100% {
    transform: scale(1);
  }

  30% {
    transform: translateY(-0.2px) scale(1.01);
  }

  58% {
    transform: translateY(0.2px) scale(1);
  }
}
@keyframes menu-accounts-wallet-top {
  0%,
  100% {
    transform: translate(0, 0) rotate(0);
    opacity: 1;
  }

  45% {
    transform: translate(0.6px, -0.4px) rotate(-2deg);
    opacity: 0.9;
  }
}
@keyframes menu-accounts-wallet-body {
  0%,
  100% {
    transform: scale(1);
  }

  45% {
    transform: scale(1.012);
  }
}
@keyframes menu-accounts-wallet-pocket {
  0%,
  100% {
    transform: translateX(0) scaleX(1);
    opacity: 1;
  }

  45% {
    transform: translateX(-0.7px) scaleX(0.94);
    opacity: 0.84;
  }
}
@keyframes menu-chart-settle {
  0%,
  100% {
    transform: rotate(0) scale(1);
  }

  38% {
    transform: rotate(-4deg) scale(1.02);
  }

  66% {
    transform: rotate(1deg) scale(1);
  }
}
@keyframes menu-chart-arc {
  0% {
    stroke-dasharray: 58;
    stroke-dashoffset: 18;
  }

  64%,
  100% {
    stroke-dasharray: 58;
    stroke-dashoffset: 0;
  }
}
@keyframes menu-chart-slice {
  0%,
  100% {
    transform: translate(1.2px, 1.2px) scale(0.9);
  }

  36% {
    transform: translate(1.2px, 1.2px) scale(0.82) rotate(8deg);
  }

  68% {
    transform: translate(1.2px, 1.2px) scale(0.92) rotate(-2deg);
  }
}
@keyframes menu-candle-wick {
  0%,
  100% {
    transform: scaleY(1);
  }

  34% {
    transform: scaleY(1.1);
  }

  62% {
    transform: scaleY(0.94);
  }
}
@keyframes menu-candle-body-left {
  0%,
  100% {
    transform: translateY(0) scaleY(1);
  }

  34% {
    transform: translateY(1px) scaleY(0.9);
  }

  68% {
    transform: translateY(-1px) scaleY(1.06);
  }
}
@keyframes menu-candle-body-right {
  0%,
  100% {
    transform: translateY(0) scaleY(1);
  }

  34% {
    transform: translateY(-1px) scaleY(1.1);
  }

  68% {
    transform: translateY(1px) scaleY(0.92);
  }
}
@keyframes menu-trophy-lift {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  34% {
    transform: translateY(-2px) scale(1.03);
  }

  68% {
    transform: translateY(0) scale(1);
  }
}
@keyframes menu-trophy-handles {
  0%,
  100% {
    transform: scaleX(1);
  }

  42% {
    transform: scaleX(1.08);
  }
}
@keyframes menu-trophy-base {
  0%,
  100% {
    transform: scaleX(1);
    opacity: 1;
  }

  48% {
    transform: scaleX(1.12);
    opacity: 0.82;
  }
}
@keyframes menu-graduation-settle {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }

  34% {
    transform: translateY(-1.25px) rotate(-1.5deg);
  }

  68% {
    transform: translateY(0.35px) rotate(0.6deg);
  }
}
@keyframes menu-graduation-cap {
  0%,
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }

  28% {
    transform: translateY(-1px) scale(1.04);
    opacity: 0.92;
  }

  62% {
    transform: translateY(0.4px) scale(0.99);
  }
}
@keyframes menu-graduation-band {
  0%,
  100% {
    transform: scaleX(1);
    opacity: 1;
  }

  36% {
    transform: scaleX(0.9);
    opacity: 0.72;
  }

  66% {
    transform: scaleX(1.04);
  }
}
@keyframes menu-graduation-tassel {
  0%,
  100% {
    transform: rotate(0) translateY(0);
  }

  30% {
    transform: rotate(9deg) translateY(-0.4px);
  }

  62% {
    transform: rotate(-5deg) translateY(0.2px);
  }
}
@keyframes menu-users-gather {
  0%,
  100% {
    transform: scale(1);
  }

  36% {
    transform: scale(1.03);
  }

  70% {
    transform: scale(1);
  }
}
@keyframes menu-users-side {
  0%,
  100% {
    transform: translateX(0);
    opacity: 1;
  }

  28% {
    transform: translateX(1.5px);
    opacity: 0.84;
  }

  64% {
    transform: translateX(-0.5px);
    opacity: 1;
  }
}
@keyframes menu-file-settle {
  0%,
  100% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 0 0 rgba(180, 190, 210, 0));
  }

  34% {
    transform: translateY(-1.25px) scale(1.025);
    filter: drop-shadow(0 2px 5px rgba(180, 190, 210, 0.16));
  }

  72% {
    transform: translateY(0.25px) scale(0.995);
    filter: drop-shadow(0 0 0 rgba(180, 190, 210, 0));
  }
}
@keyframes menu-file-fold {
  0%,
  100% {
    transform: translate(0, 0) rotate(0);
    opacity: 1;
  }

  32% {
    transform: translate(0.4px, -0.4px) rotate(-5deg);
    opacity: 0.72;
  }

  68% {
    transform: translate(0, 0) rotate(1deg);
    opacity: 1;
  }
}
@keyframes menu-file-line-reveal {
  0% {
    transform: translateX(-1.5px) scaleX(0.2);
    opacity: 0;
  }

  28% {
    transform: translateX(-1px) scaleX(0.52);
    opacity: 0.38;
  }

  62%,
  100% {
    transform: translateX(0) scaleX(1);
    opacity: 1;
  }
}
@keyframes menu-headset-tune {
  0%,
  100% {
    transform: scale(1);
  }

  36% {
    transform: scale(1.03);
  }

  72% {
    transform: scale(1);
  }
}
@keyframes menu-headset-cups {
  0%,
  100% {
    transform: translateX(0) scale(1);
  }

  42% {
    transform: translateX(0.5px) scaleY(1.06);
  }
}
@keyframes menu-headset-mic {
  0%,
  100% {
    transform: translateX(0);
    opacity: 1;
  }

  42% {
    transform: translateX(1px);
    opacity: 0.84;
  }
}
@keyframes menu-bell-alert {
  0%,
  100% {
    transform: rotate(0) scale(1);
  }

  20% {
    transform: rotate(-4deg) scale(1.01);
  }

  42% {
    transform: rotate(3deg) scale(1.02);
  }

  66% {
    transform: rotate(-1deg) scale(1);
  }
}
@keyframes menu-bell-clapper {
  0%,
  100% {
    transform: translateX(0) translateY(0);
  }

  28% {
    transform: translateX(-0.75px) translateY(1px);
  }

  54% {
    transform: translateX(0.75px) translateY(1px);
  }
}
@keyframes menu-user-focus {
  0%,
  100% {
    transform: scale(1);
  }

  36% {
    transform: scale(1.03);
  }

  70% {
    transform: scale(1);
  }
}
@keyframes menu-user-shoulders {
  0%,
  100% {
    transform: translateY(0);
  }

  45% {
    transform: translateY(-1px);
  }
}
@keyframes menu-user-head {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  38% {
    transform: translateY(-1px) scale(1.04);
  }
}
@keyframes menu-user-ring {
  0% {
    stroke-dasharray: 63;
    stroke-dashoffset: 18;
  }

  72%,
  100% {
    stroke-dasharray: 63;
    stroke-dashoffset: 0;
  }
}
.app-shell.is-sidebar-collapsed {
  --app-sidebar-width: 86px;
  grid-template-columns: 86px minmax(0, 1fr);
}
.sidebar {
  position: sticky;
  top: 0;
  z-index: 2;
  isolation: isolate;
  display: flex;
  --menu-icon-motion: 560ms cubic-bezier(0.22, 0.61, 0.36, 1);
  --menu-icon-motion-long: 640ms cubic-bezier(0.22, 0.61, 0.36, 1);
  height: 100dvh;
  min-height: 0;
  flex-direction: column;
  gap: 18px;
  padding: 20px 16px;
  border-right: 1px solid rgba(196, 178, 255, 0.1);
  background: rgba(0, 0, 0, 0.92);
  box-shadow:
    20px 0 64px rgba(0, 0, 0, 0.36),
    inset 0 18px 24px -32px rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(24px);
  transform-origin: left center;
  transition:
    padding var(--sidebar-motion),
    background 280ms ease,
    box-shadow 280ms ease,
    transform var(--sidebar-motion);
}
.sidebar::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.038), rgba(255, 255, 255, 0.022) 18%, transparent 68%),
    linear-gradient(90deg, transparent, rgba(196, 178, 255, 0.024) 18%, rgba(255, 255, 255, 0.032) 50%, rgba(111, 134, 255, 0.024) 82%, transparent),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03), transparent 14% 86%, rgba(255, 255, 255, 0.032)),
    radial-gradient(ellipse at left 22%, rgba(183, 121, 255, 0.032), transparent 42%),
    radial-gradient(ellipse at right 24%, rgba(111, 134, 255, 0.03), transparent 38%);
  opacity: 0.76;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 36%, rgba(0, 0, 0, 0.58) 58%, transparent 92%);
  mask-image: linear-gradient(180deg, #000 0%, #000 36%, rgba(0, 0, 0, 0.58) 58%, transparent 92%);
  pointer-events: none;
}
.sidebar::after {
  position: absolute;
  top: 0;
  right: -1px;
  bottom: 0;
  z-index: 0;
  width: 1px;
  content: "";
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.065),
    rgba(196, 178, 255, 0.09) 18%,
    rgba(196, 178, 255, 0.052) 42%,
    transparent 78%
  );
  box-shadow: -6px 0 18px rgba(255, 255, 255, 0.018);
  pointer-events: none;
}
.sidebar > * {
  position: relative;
  z-index: 1;
}
.brand-button {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  min-height: 54px;
  padding: 8px;
  border-radius: 18px;
  text-align: left;
  transition:
    gap var(--sidebar-motion),
    grid-template-columns var(--sidebar-motion),
    padding var(--sidebar-motion),
    width var(--sidebar-motion);
}
.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: white;
  background: var(--color-bg);
  box-shadow: none;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
  overflow: hidden;
}
.brand-mark img {
  display: block;
  width: 110%;
  height: 110%;
  object-fit: cover;
}
.brand-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  max-width: 170px;
  overflow: hidden;
  opacity: 1;
  transition:
    max-width var(--sidebar-motion),
    opacity 220ms ease,
    transform var(--sidebar-motion);
}
.brand-copy span,
.profile-button strong {
  font-weight: 800;
}
.brand-copy small,
.profile-button small {
  color: var(--color-muted);
  font-size: 12px;
}
.sidebar .primary-button span {
  max-width: 170px;
  overflow: hidden;
  opacity: 1;
  white-space: nowrap;
  transition:
    max-width var(--sidebar-motion),
    opacity 220ms ease,
    transform var(--sidebar-motion);
}
.sidebar .primary-button {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(
    68deg,
    #7058ff 0%,
    #8b63ff 13%,
    #d983ff 30%,
    #a56aff 42%,
    #7058ff 50%,
    #8b63ff 63%,
    #d983ff 80%,
    #a56aff 92%,
    #7058ff 100%
  );
  background-repeat: no-repeat;
  background-size: 300% 150%;
  box-shadow:
    0 0 34px rgba(183, 121, 255, 0.34),
    0 14px 30px rgba(0, 0, 0, 0.24);
  color: white;
  animation: challenge-gradient-flow 7s linear infinite;
}
.sidebar .primary-button::before {
  inset: 0;
  padding: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 58%),
    radial-gradient(circle at 18% 0, rgba(255, 255, 255, 0.3), transparent 34%),
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.18), transparent 28%);
  opacity: 0.58;
  -webkit-mask: none;
  mask: none;
  animation: none;
}
.sidebar .primary-button:hover {
  animation-duration: 7s;
  filter: brightness(1.04);
  box-shadow:
    0 0 38px rgba(183, 121, 255, 0.28),
    0 14px 30px rgba(0, 0, 0, 0.24);
}
.sidebar .primary-button.is-active::before {
  opacity: 0.62;
}
.sidebar .primary-button.is-active:hover::before {
  opacity: 0.86;
}
.sidebar .primary-button.is-active,
.sidebar .primary-button.is-active:hover {
  background-size: 300% 150%;
}
.sidebar-toggle {
  position: absolute;
  top: 34px;
  right: -15px;
  z-index: 4;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-muted);
  background: #050505;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.42);
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}
.sidebar-toggle > svg {
  display: block;
  stroke-width: 2.6;
  transform: translateX(-1px);
}
.sidebar-toggle[aria-expanded="true"] > svg {
  transform: translateX(-2px);
}
.sidebar-toggle:hover {
  color: var(--color-text);
  border-color: var(--color-border-strong);
  background: #0b0b0b;
}
.sidebar-toggle:active {
  transform: scale(0.92);
}
.sidebar-scroll {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  gap: 22px;
  overflow-y: auto;
  padding-right: 2px;
  width: 100%;
  transition:
    gap var(--sidebar-motion),
    padding var(--sidebar-motion);
}
.sidebar-scroll::-webkit-scrollbar,
.workspace::-webkit-scrollbar {
  width: 0;
}
.nav-group {
  display: grid;
  gap: 8px;
  width: 100%;
  transition: gap var(--sidebar-motion);
}
.nav-group p {
  height: 13px;
  line-height: 1;
  overflow: hidden;
  transition:
    height var(--sidebar-motion),
    opacity 220ms ease,
    transform var(--sidebar-motion);
}
.nav-group p,
.rail-heading p,
.panel-heading p,
.metric-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-button,
.icon-line-button {
  position: relative;
  isolation: isolate;
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 9px;
  overflow: hidden;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 16px;
  color: var(--color-muted);
  text-align: left;
  transition:
    box-shadow 180ms ease,
    color 180ms ease,
    background 180ms ease,
    transform var(--button-motion),
    gap var(--sidebar-motion),
    grid-template-columns var(--sidebar-motion),
    padding var(--sidebar-motion),
    width var(--sidebar-motion);
}
.nav-button:hover,
.icon-line-button:hover {
  color: var(--color-text);
  background: rgba(183, 121, 255, 0.04);
  box-shadow: 0 0 16px rgba(183, 121, 255, 0.08);
}
.nav-button.is-active {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.038);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.025),
    0 0 18px rgba(183, 121, 255, 0.08);
}
.nav-button::before,
.icon-line-button::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  padding: 1px;
  border-radius: inherit;
  content: "";
  background: conic-gradient(
    from var(--nav-border-angle),
    rgba(98, 62, 214, 0.36),
    rgba(181, 118, 255, 0.88),
    rgba(238, 218, 255, 0.98),
    rgba(151, 94, 255, 0.82),
    rgba(98, 62, 214, 0.36)
  );
  pointer-events: none;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: nav-border-spin 7s linear infinite;
  opacity: 0;
  transition:
    opacity 180ms ease,
    padding 180ms ease;
}
.nav-button:hover::before,
.icon-line-button:hover::before {
  padding: 2px;
  opacity: 0.42;
  animation-duration: 7s;
}
.nav-button.is-active:hover::before,
.icon-line-button.is-active:hover::before {
  padding: 2.5px;
  opacity: 1;
  animation-duration: 7s;
}
.nav-button.is-active::before,
.icon-line-button.is-active::before {
  padding: 1.5px;
  opacity: 0.92;
}
.nav-button > svg,
.icon-line-button > svg {
  display: block;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-sizing: border-box;
  filter: drop-shadow(0 0 0 rgba(183, 121, 255, 0));
  transition:
    color 180ms ease,
    filter 180ms ease,
    transform var(--button-motion);
}
.nav-button > .menu-icon--graduation {
  width: 25.5px;
  height: 25.5px;
  margin-left: -2px;
  stroke-width: 1.6;
}
.nav-button > .menu-icon--users {
  width: 21px;
  height: 21px;
}
.nav-button > .menu-icon--accounts {
  width: 20px;
  height: 20px;
}
.nav-button > .menu-icon--chart {
  top: -1px;
  width: 21px;
  height: 21px;
}
.nav-button:hover > svg,
.icon-line-button:hover > svg {
  color: #d5c6f2;
  filter: drop-shadow(0 0 6px rgba(183, 121, 255, 0.18));
  transform: scale(1.025);
}
.nav-button.is-active > svg {
  color: var(--color-text);
  filter:
    drop-shadow(0 0 7px rgba(183, 121, 255, 0.22))
    drop-shadow(0 0 12px rgba(139, 124, 246, 0.1));
}
.nav-button:active,
.icon-line-button:active {
  transform: scale(0.992);
}
.nav-button:active > svg,
.icon-line-button:active > svg {
  transform: scale(0.99);
}
.nav-button span,
.icon-line-button span {
  min-width: 0;
  max-width: 170px;
  overflow: hidden;
  opacity: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
  transition:
    max-width var(--sidebar-motion),
    opacity 220ms ease,
    transform var(--sidebar-motion);
}
.sidebar-footer {
  display: grid;
  gap: 10px;
  width: 100%;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
  transition:
    gap var(--sidebar-motion),
    padding var(--sidebar-motion);
}
.icon-line-button {
  justify-content: flex-start;
}
.icon-line-button strong {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  margin-left: auto;
  border-radius: 999px;
  background: rgba(255, 107, 142, 0.18);
  color: var(--color-negative);
  font-size: 12px;
}
.profile-button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  min-height: 58px;
  padding: 9px;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: var(--gradient-surface);
  text-align: left;
  transition:
    gap var(--sidebar-motion),
    grid-template-columns var(--sidebar-motion),
    padding var(--sidebar-motion),
    width var(--sidebar-motion),
    transform var(--button-motion),
    border-color 180ms ease,
    background 180ms ease;
}
.profile-button:hover {
  border-color: rgba(198, 164, 255, 0.34);
  background:
    linear-gradient(155deg, rgba(183, 121, 255, 0.12), rgba(255, 255, 255, 0.055)),
    rgba(255, 255, 255, 0.04);
}
.profile-button:active {
  transform: scale(0.98);
}
.profile-button img {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-sm);
  object-fit: cover;
}
.profile-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 0;
  color: var(--color-muted);
  background: transparent;
  filter: drop-shadow(0 0 7px rgba(183, 121, 255, 0.16));
  transition:
    color 180ms ease,
    filter 180ms ease,
    transform var(--button-motion);
}
.profile-icon > svg {
  width: 31px;
  height: 31px;
  stroke-width: 1.7;
}
.profile-button:hover .profile-icon {
  color: var(--color-muted);
  filter: drop-shadow(0 0 8px rgba(183, 121, 255, 0.2));
  transform: scale(1.02);
}
.profile-button span {
  display: grid;
  min-width: 0;
}
.profile-copy {
  max-width: 180px;
  overflow: hidden;
  opacity: 1;
  transition:
    max-width var(--sidebar-motion),
    opacity 220ms ease,
    transform var(--sidebar-motion);
}
.profile-button strong,
.profile-button small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-shell.is-sidebar-collapsed .sidebar {
  padding-inline: 16px;
  transform: translateX(-2px);
}
.app-shell.is-sidebar-collapsed .brand-button {
  width: 100%;
  grid-template-columns: 42px 0fr;
  gap: 0;
  padding-inline: 8px;
}
.app-shell.is-sidebar-collapsed .brand-copy,
.app-shell.is-sidebar-collapsed .sidebar .primary-button span,
.app-shell.is-sidebar-collapsed .nav-group p,
.app-shell.is-sidebar-collapsed .nav-button span,
.app-shell.is-sidebar-collapsed .icon-line-button span,
.app-shell.is-sidebar-collapsed .icon-line-button strong,
.app-shell.is-sidebar-collapsed .profile-copy {
  max-width: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-10px);
}
.app-shell.is-sidebar-collapsed .nav-group p {
  height: 0;
}
.app-shell.is-sidebar-collapsed .sidebar-scroll {
  gap: 16px;
  padding-right: 0;
}
.app-shell.is-sidebar-collapsed .nav-group {
  gap: 6px;
}
.app-shell.is-sidebar-collapsed .sidebar-footer {
  gap: 8px;
  padding-top: 10px;
}
.app-shell.is-sidebar-collapsed .sidebar .primary-button {
  width: 100%;
  gap: 0;
  padding-inline: 0;
}
.app-shell.is-sidebar-collapsed .nav-button,
.app-shell.is-sidebar-collapsed .icon-line-button {
  width: 100%;
  grid-template-columns: 24px 0fr;
  gap: 0;
  justify-content: center;
  padding-inline: 9px;
}
.app-shell.is-sidebar-collapsed .profile-button {
  width: 100%;
  grid-template-columns: 38px 0fr;
  gap: 0;
  padding: 7px;
}
.app-shell.is-sidebar-collapsed .workspace::before {
  left: 86px;
}
.mobile-nav {
  position: fixed;
  right: var(--mobile-nav-side-offset);
  bottom: calc(env(safe-area-inset-bottom, 0px) + var(--mobile-nav-bottom-offset));
  left: var(--mobile-nav-side-offset);
  z-index: 20;
  isolation: isolate;
  display: none;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 3px;
  overflow: hidden;
  padding: 6px;
  border: 1px solid rgba(208, 218, 255, 0.12);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(38, 43, 58, 0.24), rgba(5, 7, 12, 0.18)), rgba(0, 0, 0, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    inset 0 -1px 0 rgba(255, 255, 255, 0.025),
    0 16px 38px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(139, 124, 246, 0.035);
  backdrop-filter: blur(12px) saturate(112%);
  -webkit-backdrop-filter: blur(12px) saturate(112%);
}
.mobile-nav::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: '';
  background:
    radial-gradient(circle at 18% 0, rgba(180, 191, 255, 0.052), transparent 34%),
    linear-gradient(90deg, rgba(92, 109, 229, 0.035), transparent 38%, rgba(183, 121, 255, 0.032));
  opacity: 0.78;
  pointer-events: none;
}
.mobile-nav > * {
  position: relative;
  z-index: 1;
}
.mobile-nav button {
  display: grid;
  min-width: 0;
  min-height: 46px;
  grid-template-rows: 21px 14px;
  align-content: center;
  justify-items: center;
  gap: 0;
  padding: 4px 3px 3px;
  border: 1px solid transparent;
  border-radius: 18px;
  color: var(--color-muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  background: transparent;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    background 180ms ease,
    transform var(--button-motion);
}
.mobile-nav button > svg {
  width: 20px;
  height: 20px;
  align-self: end;
}
.mobile-nav button span {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  align-self: start;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mobile-nav button.is-active {
  color: var(--color-text);
  border-color: rgba(213, 198, 242, 0.12);
  background:
    linear-gradient(180deg, rgba(79, 86, 116, 0.2), rgba(21, 24, 36, 0.14)),
    rgba(255, 255, 255, 0.014);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 8px 16px rgba(0, 0, 0, 0.22),
    0 0 16px rgba(139, 124, 246, 0.075);
}
.mobile-nav button:active {
  transform: scale(0.96);
}
.mobile-nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 18;
  display: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.mobile-more-sheet {
  position: fixed;
  right: var(--mobile-nav-side-offset);
  bottom: calc(var(--mobile-nav-reserved-height) + 8px);
  left: var(--mobile-nav-side-offset);
  z-index: 19;
  display: none;
  max-height: min(68dvh, 560px);
  overflow: hidden;
  padding: 10px;
  border: 1px solid rgba(226, 232, 255, 0.17);
  border-radius: 28px;
  background: rgba(10, 12, 20, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.11),
    inset 0 -1px 0 rgba(255, 255, 255, 0.035),
    0 22px 54px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(28px) saturate(132%);
  -webkit-backdrop-filter: blur(28px) saturate(132%);
  opacity: 0;
  transform: translateY(calc(100% + 18px));
  transform-origin: bottom center;
  transition: transform 180ms cubic-bezier(0.22, 0.61, 0.36, 1);
  pointer-events: none;
}
.mobile-more-sheet::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.035);
  pointer-events: none;
}
.mobile-more-sheet.is-open {
  opacity: 1;
  transform: translateY(var(--mobile-more-drag-y, 0));
  pointer-events: auto;
}
.mobile-more-sheet.is-animating {
  animation: mobile-more-slide-up 260ms cubic-bezier(0.22, 0.61, 0.36, 1);
  transition: none;
}
.mobile-more-sheet.is-dragging {
  animation: none;
  transition: none;
}
.mobile-more-handle {
  position: relative;
  display: grid;
  width: 96px;
  height: 40px;
  margin: -8px auto -10px;
  place-items: center;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.mobile-more-handle::before {
  width: 42px;
  height: 4px;
  content: "";
  border-radius: 999px;
  background: rgba(226, 232, 255, 0.3);
}
.mobile-more-sheet.is-dragging .mobile-more-handle {
  cursor: grabbing;
}
.mobile-more-head {
  display: block;
  padding: 0 2px 12px;
  border-bottom: 1px solid rgba(226, 232, 255, 0.12);
}
.mobile-more-head strong,
.mobile-more-head span {
  display: block;
}
.mobile-more-head strong {
  color: var(--color-text);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0;
}
.mobile-more-head span {
  margin-top: 3px;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 700;
}
.mobile-more-groups {
  max-height: calc(min(68dvh, 560px) - 78px);
  overflow-y: auto;
  padding: 12px 1px 18px;
}
.mobile-more-group {
  display: grid;
  gap: 8px;
}
.mobile-more-group + .mobile-more-group {
  margin-top: 14px;
}
.mobile-more-group p {
  margin: 0;
  padding: 0 2px;
  color: var(--color-subtle);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.mobile-more-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.mobile-more-item {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 48px;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border: 1px solid rgba(226, 232, 255, 0.13);
  border-radius: 18px;
  color: var(--color-muted);
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  font-weight: 850;
  text-align: left;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    background 180ms ease,
    transform var(--button-motion);
}
.mobile-more-item svg {
  width: 20px;
  height: 20px;
  justify-self: center;
}
.mobile-more-item span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mobile-more-item:hover,
.mobile-more-item.is-active {
  color: var(--color-text);
  border-color: rgba(226, 232, 255, 0.24);
  background: rgba(255, 255, 255, 0.085);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 18px rgba(0, 0, 0, 0.2);
}
.mobile-more-item:active {
  transform: scale(0.97);
}
@media (max-width: 860px) {
  .sidebar {
    display: none;
  }

  .mobile-nav {
    display: grid;
  }

  .mobile-nav-scrim {
    display: block;
  }

  .mobile-more-sheet {
    display: block;
  }
}
@media (max-width: 560px) {
  .mobile-more-sheet {
    bottom: calc(var(--mobile-nav-reserved-height) + 6px);
  }
}
@media (max-width: 390px) {
  .mobile-more-items {
    grid-template-columns: minmax(0, 1fr);
  }
}
.menu-icon,
.menu-icon .icon-part {
  transform-box: fill-box;
  transform-origin: center;
}
.menu-icon--plus.is-animating {
  animation: menu-plus-bloom var(--menu-icon-motion);
}
.menu-icon--plus.is-animating .icon-part-1 {
  animation: menu-plus-vertical var(--menu-icon-motion);
}
.menu-icon--plus.is-animating .icon-part-2 {
  animation: menu-plus-horizontal var(--menu-icon-motion);
}
.menu-icon--chart.is-animating {
  animation: menu-chart-settle var(--menu-icon-motion-long);
}
.menu-icon--chart.is-animating .icon-part-1 {
  animation: menu-chart-arc var(--menu-icon-motion-long);
}
.menu-icon--chart.is-animating .icon-part-2 {
  animation: menu-chart-slice var(--menu-icon-motion-long);
}
.menu-icon--candles.is-animating .icon-part-1,
.menu-icon--candles.is-animating .icon-part-3 {
  animation: menu-candle-wick var(--menu-icon-motion-long);
}
.menu-icon--candles.is-animating .icon-part-2 {
  animation: menu-candle-body-left var(--menu-icon-motion-long);
}
.menu-icon--candles.is-animating .icon-part-4 {
  animation: menu-candle-body-right var(--menu-icon-motion-long);
}
.menu-icon--graduation.is-animating {
  animation: menu-graduation-settle var(--menu-icon-motion-long);
}
.menu-icon--graduation.is-animating .icon-part-1 {
  animation: menu-graduation-cap var(--menu-icon-motion-long);
  transform-origin: center bottom;
}
.menu-icon--graduation.is-animating .icon-part-2 {
  animation: menu-graduation-band var(--menu-icon-motion-long);
  transform-origin: center top;
}
.menu-icon--graduation.is-animating .icon-part-3,
.menu-icon--graduation.is-animating .icon-part-4 {
  animation: menu-graduation-tassel var(--menu-icon-motion-long);
  transform-origin: top center;
}
.menu-icon--users.is-animating {
  animation: menu-users-gather var(--menu-icon-motion-long);
}
.menu-icon--users.is-animating .icon-part-3,
.menu-icon--users.is-animating .icon-part-4 {
  animation: menu-users-side var(--menu-icon-motion-long);
}
.menu-icon--file.is-animating {
  animation: menu-file-settle var(--menu-icon-motion-long);
}
.menu-icon--file.is-animating .icon-part-2 {
  animation: menu-file-fold var(--menu-icon-motion-long);
}
.menu-icon--file.is-animating .icon-part-3,
.menu-icon--file.is-animating .icon-part-4 {
  animation: menu-file-line-reveal var(--menu-icon-motion-long);
  transform-origin: left center;
}
.menu-icon--file.is-animating .icon-part-4 {
  animation-delay: 55ms;
}
.menu-icon--headset.is-animating {
  animation: menu-headset-tune var(--menu-icon-motion-long);
}
.menu-icon--headset.is-animating .icon-part-2,
.menu-icon--headset.is-animating .icon-part-3 {
  animation: menu-headset-cups var(--menu-icon-motion-long);
}
.menu-icon--headset.is-animating .icon-part-4 {
  animation: menu-headset-mic var(--menu-icon-motion-long);
}
.menu-icon--bell.is-animating {
  animation: menu-bell-alert var(--menu-icon-motion-long);
}
.menu-icon--bell.is-animating .icon-part-2 {
  animation: menu-bell-clapper var(--menu-icon-motion-long);
}
.menu-icon--user.is-animating {
  animation: menu-user-focus var(--menu-icon-motion-long);
}
.menu-icon--user.is-animating .icon-part-1 {
  animation: menu-user-shoulders var(--menu-icon-motion-long);
}
.menu-icon--user.is-animating .icon-part-2 {
  animation: menu-user-head var(--menu-icon-motion-long);
}
.menu-icon--user.is-animating .icon-part-3 {
  animation: menu-user-ring var(--menu-icon-motion-long);
}
@media (prefers-reduced-motion: reduce) {
  .menu-icon.is-animating,
.menu-icon.is-animating .icon-part {
    animation: none !important;
  }
}
/* Accounts */
.menu-icon--accounts.is-animating {
  animation: menu-accounts-wallet var(--menu-icon-motion-long);
}
.menu-icon--accounts.is-animating .icon-part-1 {
  animation: menu-accounts-wallet-top var(--menu-icon-motion-long);
}
.menu-icon--accounts.is-animating .icon-part-2 {
  animation: menu-accounts-wallet-body var(--menu-icon-motion-long);
}
.menu-icon--accounts.is-animating .icon-part-3 {
  animation: menu-accounts-wallet-pocket var(--menu-icon-motion-long);
  transform-origin: left center;
}
.menu-icon--trophy.is-animating {
  animation: menu-trophy-lift var(--menu-icon-motion-long);
}
.menu-icon--trophy.is-animating .icon-part-2,
.menu-icon--trophy.is-animating .icon-part-3 {
  animation: menu-trophy-handles var(--menu-icon-motion-long);
}
.menu-icon--trophy.is-animating .icon-part-5 {
  animation: menu-trophy-base var(--menu-icon-motion-long);
}
.workspace-page-accounts {
  --account-planet-width: min(78vw, 1010px);
  --account-divider-x: calc(280px + 28px + 260px);
  background: #000;
}
.workspace-page-accounts::after {
  position: fixed;
  top: 88px;
  left: var(--account-divider-x);
  z-index: 0;
  width: var(--account-planet-width);
  aspect-ratio: 16 / 9;
  content: "";
  background: url("/planets/accounts-planet-cutout.png") left center / contain no-repeat;
  opacity: 0.34;
  filter: saturate(1.05);
  pointer-events: none;
  transition: left var(--sidebar-motion);
}
/* --account-divider-x must stay in sync with the sidebar width + gap. */
.app-shell.is-sidebar-collapsed .workspace-page-accounts {
  --account-divider-x: calc(86px + 28px + 260px);
}
.page-title p,
.hero-panel p {
  max-width: 680px;
  margin: 0;
  color: var(--color-muted);
  line-height: 1.55;
}
.account-rail {
  position: sticky;
  top: 24px;
  z-index: 2;
  display: grid;
  --panel-accent-rgb: 183, 121, 255;
  gap: 14px;
  padding: 16px;
  overflow: visible;
  border-radius: var(--radius-xl);
}
.rail-heading {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.rail-heading strong {
  display: block;
  margin-top: 4px;
}
.rail-history {
  position: static;
  z-index: 4;
}
.rail-history > button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
  white-space: nowrap;
}
.rail-history > button > svg,
.history-button-icon {
  display: block;
  flex: 0 0 auto;
  transform: translateY(-0.5px);
}
@media (prefers-reduced-motion: reduce) {
  .history-button-icon {
    transform: translateY(-0.5px);
  }
}
.rail-heading button,
.ghost-button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-muted);
  background: rgba(255, 255, 255, 0.045);
  font-size: 13px;
  font-weight: 800;
  transition:
    border-color 180ms ease,
    color 180ms ease,
    background 180ms ease,
    transform var(--button-motion);
}
.rail-heading button:hover,
.ghost-button:hover {
  color: var(--color-text);
  border-color: var(--color-border-strong);
  background: rgba(255, 255, 255, 0.075);
}
.rail-heading button:active,
.ghost-button:active {
  transform: scale(0.97);
}
.ghost-button.small {
  min-height: 34px;
  padding-inline: 11px;
}
.account-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
}
.account-rail-sticky {
  display: grid;
  gap: 14px;
}
.account-card {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 8px;
  overflow: hidden;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.6rem;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.7)),
    radial-gradient(circle at 20% 15%, rgba(58, 84, 214, 0.6), transparent 34%),
    radial-gradient(circle at 78% 25%, rgba(92, 109, 229, 0.6), transparent 38%),
    radial-gradient(circle at 45% 90%, rgba(183, 121, 255, 0.6), transparent 46%),
    linear-gradient(135deg, rgba(183, 121, 255, 0.5), rgba(92, 109, 229, 0.5));
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  text-align: left;
  transition: all 280ms ease;
  min-height: 178px;
}
.account-card:hover {
  border-color: rgba(255, 255, 255, 0.35);
}
.account-card.is-active {
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4);
}
.account-card-demo {
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.7)),
    radial-gradient(circle at 20% 15%, rgba(156, 166, 183, 0.6), transparent 34%),
    radial-gradient(circle at 78% 25%, rgba(175, 186, 205, 0.6), transparent 38%),
    radial-gradient(circle at 45% 90%, rgba(220, 226, 236, 0.6), transparent 46%),
    linear-gradient(135deg, rgba(220, 226, 236, 0.5), rgba(175, 186, 205, 0.5));
}
.account-card-demo:hover,
.account-card-demo.is-active {
  border-color: rgba(255, 255, 255, 0.35);
}
.account-card-demo.is-active {
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4);
}
.status-row,
.account-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 800;
}
.status-pill,
.section-chip {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.status-pill {
  padding: 0 10px;
}
.status-pill-mode {
  letter-spacing: 0.08em;
}
.status-pill-live,
.status-pill-market {
  border-color: rgba(92, 109, 229, 0.4);
  color: rgba(255, 255, 255, 0.9);
  background: rgba(92, 109, 229, 0.3);
}
.status-pill-demo {
  border-color: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}
.status-pill-breached {
  border-color: rgba(var(--color-negative-rgb), 0.36);
  color: var(--color-negative);
  background: rgba(var(--color-negative-rgb), 0.1);
  box-shadow: none;
}
.status-pill-closed {
  border-color: rgba(var(--color-positive-rgb), 0.32);
  color: var(--color-positive);
  background: rgba(var(--color-positive-rgb), 0.1);
  box-shadow: none;
}
.status-pill-frozen {
  border-color: color-mix(in srgb, var(--color-warning) 36%, transparent);
  color: var(--color-warning);
  background: color-mix(in srgb, var(--color-warning) 10%, transparent);
  box-shadow: none;
}
.section-chip {
  padding: 0 10px;
}
.account-card strong {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.025em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.account-card small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}
.mini-progress,
.metric-track {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}
.mini-progress span,
.metric-track span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--gradient-success);
  box-shadow: none;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 580ms cubic-bezier(0.22, 1, 0.36, 1);
}
.rail-cta {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius-md);
  color: var(--color-text);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(183, 121, 255, 0.07)),
    rgba(255, 255, 255, 0.02);
  font-weight: 800;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform var(--button-motion);
}
.rail-cta:hover {
  border-color: var(--color-border-strong);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(183, 121, 255, 0.11)),
    rgba(255, 255, 255, 0.035);
}
.rail-cta:active {
  transform: scale(0.98);
}
.account-top-card {
  display: flex;
  --panel-accent-rgb: 92, 109, 229;
  min-height: 108px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  border-radius: var(--radius-xl);
  border-color: rgba(92, 109, 229, 0.18);
  background:
    linear-gradient(128deg, rgba(58, 84, 214, 0.16), transparent 38%, rgba(183, 121, 255, 0.12) 68%, rgba(255, 122, 245, 0.055)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.022)),
    rgba(7, 10, 16, 0.82);
}
.account-top-card-demo {
  --panel-accent-rgb: 158, 167, 185;
  border-color: rgba(158, 167, 185, 0.2);
  background:
    linear-gradient(128deg, rgba(158, 167, 185, 0.12), transparent 38%, rgba(108, 118, 136, 0.12) 68%, rgba(223, 229, 238, 0.05)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.022)),
    rgba(8, 11, 18, 0.84);
}
.account-top-title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
}
.account-title-copy {
  min-width: 0;
}
.account-title-row,
.statistics-kicker-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-wrap: wrap;
}
.account-mode-badge {
  flex: 0 0 auto;
}
.account-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(92, 109, 229, 0.2);
  border-radius: var(--radius-md);
  color: #cad1ff;
  background:
    linear-gradient(145deg, rgba(183, 121, 255, 0.13), rgba(58, 84, 214, 0.08)),
    rgba(255, 255, 255, 0.02);
  box-shadow: none;
}
.account-top-card-demo .account-icon {
  border-color: rgba(158, 167, 185, 0.24);
  color: #d6deec;
  background:
    linear-gradient(145deg, rgba(158, 167, 185, 0.14), rgba(255, 255, 255, 0.05)),
    rgba(255, 255, 255, 0.02);
}
.account-top-title h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.15;
}
.account-title-row + p {
  margin-top: 6px;
}
.account-top-title p {
  margin: 0;
  color: var(--color-subtle);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-panel {
  display: flex;
  min-height: 148px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  overflow: hidden;
  padding: 24px;
  border-radius: var(--radius-xl);
}
.hero-panel h2 {
  margin: 14px 0 8px;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: 0;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}
.hero-actions .account-hero-button {
  min-width: 150px;
  gap: 7px;
  padding: 0 14px;
  border-color: rgba(226, 232, 244, 0.12);
  color: #dce4ef;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.036);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.hero-actions .account-hero-button svg {
  flex: 0 0 auto;
}
.hero-actions .account-hero-button-payout {
  align-items: center;
  justify-content: center;
}
.hero-actions .account-hero-button-payout.is-payout-disabled {
  cursor: not-allowed;
  opacity: 0.72;
}
.account-payout-button-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.account-payout-notice {
  grid-column: 1 / -1;
  justify-self: end;
  max-width: 520px;
  margin: -2px 0 0;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  text-align: right;
}
.hero-actions .account-hero-button-trade {
  gap: 4px;
}
.hero-actions .account-hero-button::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 62%);
  opacity: 0.55;
}
.hero-actions .account-hero-button:hover {
  border-color: rgba(226, 232, 244, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.032)),
    rgba(255, 255, 255, 0.052);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.hero-actions .account-hero-button-danger {
  border-color: rgba(255, 107, 142, 0.2);
}
.hero-actions .account-hero-button-danger:hover {
  border-color: rgba(255, 107, 142, 0.3);
}
.progress-panel,
.market-strip {
  padding: 20px;
  border-radius: var(--radius-xl);
}
.progress-panel {
  --panel-accent-rgb: 111, 102, 255;
  padding: 12px 16px 10px;
  border-color: rgba(121, 111, 255, 0.18);
  background:
    radial-gradient(circle at 10% 18%, rgba(121, 111, 255, 0.17), transparent 28%),
    radial-gradient(circle at 88% 16%, rgba(58, 84, 214, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03) 54%, rgba(255, 255, 255, 0.012)),
    rgba(6, 8, 15, 0.4);
}
.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.panel-heading h3 {
  margin: 6px 0 0;
  font-size: 20px;
}
.progress-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.progress-panel .panel-heading {
  align-items: center;
  justify-content: flex-start;
}
.progress-title p {
  margin: 0;
  color: #eef3ff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-shadow: 0 10px 30px rgba(78, 98, 255, 0.22);
}
.progress-title span {
  color: var(--color-subtle);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.progress-stage-summary {
  color: rgba(178, 190, 214, 0.78);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
  white-space: nowrap;
}
.help-button {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-subtle);
  background: rgba(255, 255, 255, 0.02);
  font-size: 12px;
  font-weight: 900;
  transition:
    border-color 180ms ease,
    color 180ms ease,
    transform var(--button-motion);
}
.help-button:hover {
  color: var(--color-text);
  border-color: var(--color-border-strong);
}
.panel-heading h3 span {
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 600;
}
.panel-heading > strong {
  color: var(--color-positive);
  font-size: 24px;
}
.challenge-progress {
  display: grid;
  min-height: 76px;
  place-items: center;
  padding: 0 2px;
}
.challenge-progress svg {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0;
  overflow: visible;
  transition: opacity 120ms ease;
}
/* JS measures the SVG bounding box and adds .is-measured to reveal it. */
.challenge-progress.is-measured svg {
  opacity: 1;
}
.challenge-progress-track,
.challenge-progress-fill,
.challenge-progress-marker circle {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.challenge-progress-track {
  stroke: rgba(127, 140, 164, 0.5);
}
.challenge-progress-marker circle {
  fill: var(--color-bg-soft);
  stroke: rgba(127, 140, 164, 0.5);
  transition:
    filter 240ms ease,
    stroke 240ms ease;
}
.challenge-progress-marker use {
  fill: rgba(127, 140, 164, 0.5);
  transition:
    filter 240ms ease,
    fill 240ms ease;
}
.challenge-progress-marker.is-reached circle {
  stroke: #38bdf8;
  filter: drop-shadow(0 0 18px rgba(56, 189, 248, 0.42));
}
.challenge-progress-marker.is-reached use {
  filter: drop-shadow(0 0 16px rgba(139, 92, 246, 0.42));
}
.challenge-progress-labels {
  color: rgba(190, 201, 224, 0.58);
  font-size: 11px;
  font-weight: 700;
  text-anchor: middle;
  pointer-events: none;
}
.challenge-progress-labels text {
  fill: currentColor;
}
.challenge-progress-labels .is-current {
  color: #f4f8ff;
  font-weight: 900;
  text-shadow: 0 8px 26px rgba(86, 143, 240, 0.34);
}
.challenge-progress-clip {
  transition: width 800ms cubic-bezier(0.4, 0, 0.2, 1);
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.metric-card {
  display: grid;
  --panel-accent-rgb: 139, 124, 246;
  position: relative;
  min-height: 178px;
  contain: paint;
  align-content: space-between;
  gap: 12px;
  padding: 18px;
  overflow: hidden;
  border-radius: 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.7)),
    radial-gradient(circle at 20% 15%, rgba(var(--panel-accent-rgb), 0.6), transparent 34%),
    radial-gradient(circle at 78% 25%, rgba(var(--panel-accent-rgb), 0.4), transparent 38%),
    radial-gradient(circle at 45% 90%, rgba(var(--panel-accent-rgb), 0.2), transparent 46%),
    linear-gradient(135deg, rgba(var(--panel-accent-rgb), 0.3), rgba(var(--panel-accent-rgb), 0.1));
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  transition: all 280ms ease;
  backface-visibility: hidden;
}
.metric-card:hover {
  border-color: rgba(255, 255, 255, 0.35);
}
.metric-card.tone-warning {
  --panel-accent-rgb: 197, 140, 255;
}
.metric-card.tone-risk {
  --panel-accent-rgb: 112, 186, 148;
}
.metric-card.tone-info {
  --panel-accent-rgb: 139, 124, 246;
}
.metric-card.tone-positive {
  --panel-accent-rgb: 111, 134, 255;
}
/* Suppresses the animated cosmic-panel-flow from panel-effects.css. */
.metric-card::before {
  animation: none;
  opacity: 0.28;
}
.metric-bottom {
  display: grid;
  gap: 8px;
}
.metric-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.metric-card-top span {
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 800;
}
.metric-value {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-top: 14px;
}
.metric-card strong {
  color: #fff;
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.metric-card small {
  min-height: 36px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.45;
}
.metric-value small {
  min-height: auto;
  font-size: 14px;
  font-weight: 700;
}
.metric-value .is-negative {
  color: var(--color-negative);
}
.metric-value .is-positive {
  color: var(--color-positive);
}
.metric-percent {
  color: var(--metric-percent-color, var(--color-positive));
  font-size: 12px;
  font-weight: 900;
  text-align: right;
}
.metric-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-height: 18px;
  color: var(--color-subtle);
  font-size: 12px;
  font-weight: 800;
}
.metric-footer.is-empty {
  visibility: hidden;
}
.metric-subline {
  color: var(--color-subtle);
  font-size: 12px;
  font-weight: 700;
}
.tone-warning .metric-track span {
  background: linear-gradient(90deg, var(--color-warning), #ff7af5);
}
.tone-risk .metric-track span {
  background:
    linear-gradient(90deg, rgba(var(--color-negative-rgb), 0.52) 0%, var(--color-negative) 100%);
}
.tone-risk .metric-track-risk span {
  background-size: var(--progress-bg-size, 100% 100%);
}
.tone-info .metric-track span {
  background: var(--gradient-accent);
}
.tone-info .metric-track-balance-range span {
  width: var(--range-fill, 50%);
  background: linear-gradient(90deg, var(--color-warning), var(--color-positive));
}
.tone-info .metric-track-balance-range span[data-range-direction="loss"] {
  background: linear-gradient(90deg, var(--color-negative), var(--color-warning));
}
.tone-positive .metric-track span {
  background: var(--gradient-success);
}
.tone-neutral .metric-track span {
  background: linear-gradient(90deg, var(--color-muted), var(--color-accent));
}
.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 18px;
  align-items: stretch;
}
@media (max-width: 1180px) {

  .metric-grid,
  .market-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 860px) {

  .account-rail {
    position: static;
    overflow: visible;
  }

  .account-list {
    display: flex;
    overflow-x: auto;
    padding-bottom: 2px;
    scroll-snap-type: x mandatory;
  }

  .account-card {
    min-width: 248px;
    scroll-snap-align: start;
  }

  .hero-panel {
    display: grid;
  }
}
@media (max-width: 560px) {

  .hero-panel h2 {
    font-size: 24px;
  }

}
.workspace-grid:not(.workspace-grid-full) {
  --account-planet-width: min(72vw, 920px);
  --account-divider-x: calc(280px + 28px + 260px);
  --account-rail-start-offset: 6px;
  --account-rail-sticky-offset: 6px;
  --account-rail-stick-delay: 56px;
  --account-rail-stuck-gap: 18px;
  grid-template-columns: minmax(236px, 260px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.app-shell.is-sidebar-collapsed .workspace-grid:not(.workspace-grid-full) {
  --account-divider-x: calc(86px + 28px + 260px);
}
.workspace-grid:not(.workspace-grid-full)::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 260px;
  width: 1px;
  content: "";
  background: rgba(157, 170, 196, 0.16);
  pointer-events: none;
}
.account-rail-frame {
  align-self: stretch;
  display: grid;
  height: 100%;
  min-height: 0;
}
.workspace-grid:not(.workspace-grid-full) .account-rail,
.workspace-grid:not(.workspace-grid-full) .progress-panel,
.workspace-grid:not(.workspace-grid-full) .metric-card,
.workspace-grid:not(.workspace-grid-full) .chart-panel,
.workspace-grid:not(.workspace-grid-full) .data-panel {
  border-color: rgba(157, 170, 196, 0.14);
  background: rgba(12, 15, 22, 0.2);
  box-shadow: none;
  backdrop-filter: blur(8px) saturate(108%);
  -webkit-backdrop-filter: blur(8px) saturate(108%);
}
.workspace-grid:not(.workspace-grid-full) .account-rail {
  top: 18px;
  align-self: start;
  align-content: start;
  grid-auto-rows: max-content;
  max-height: calc(100dvh - 36px);
  padding: 26px 20px 22px 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.workspace-grid:not(.workspace-grid-full) .account-rail::-webkit-scrollbar {
  display: none;
}
/* In the workspace grid view, suppress the decorative pseudo-elements
   (animated glows and inner borders) defined in panel-effects.css. */
.workspace-grid:not(.workspace-grid-full) .account-rail::before,
.workspace-grid:not(.workspace-grid-full) .progress-panel::before,
.workspace-grid:not(.workspace-grid-full) .metric-card::before,
.workspace-grid:not(.workspace-grid-full) .chart-panel::before,
.workspace-grid:not(.workspace-grid-full) .data-panel::before {
  display: none;
}
.workspace-grid:not(.workspace-grid-full) .account-rail::after,
.workspace-grid:not(.workspace-grid-full) .progress-panel::after,
.workspace-grid:not(.workspace-grid-full) .metric-card::after,
.workspace-grid:not(.workspace-grid-full) .chart-panel::after,
.workspace-grid:not(.workspace-grid-full) .data-panel::after {
  display: none;
}
.workspace-grid:not(.workspace-grid-full) .account-rail::before,
.workspace-grid:not(.workspace-grid-full) .account-rail::after,
.workspace-grid:not(.workspace-grid-full) .account-top-card::before,
.workspace-grid:not(.workspace-grid-full) .account-top-card::after {
  display: none;
}
.workspace-grid:not(.workspace-grid-full) .account-card {
  min-height: 0;
  border-color: rgba(149, 164, 194, 0.16);
  background: rgba(16, 20, 29, 0.22);
  box-shadow: none;
  backdrop-filter: blur(8px) saturate(108%);
  -webkit-backdrop-filter: blur(8px) saturate(108%);
}
.workspace-grid:not(.workspace-grid-full) .account-card:hover,
.workspace-grid:not(.workspace-grid-full) .account-card.is-active {
  border-color: rgba(103, 132, 190, 0.42);
  background: rgba(26, 33, 48, 0.28);
  box-shadow: none;
}
.workspace-grid:not(.workspace-grid-full) .account-card.is-active {
  border-color: rgba(133, 160, 224, 0.66);
  background:
    linear-gradient(90deg, rgba(103, 132, 190, 0.14), transparent 44%),
    rgba(26, 33, 48, 0.34);
  box-shadow:
    0 0 0 1px rgba(133, 160, 224, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.workspace-grid:not(.workspace-grid-full) .status-pill,
.workspace-grid:not(.workspace-grid-full) .section-chip,
.workspace-grid:not(.workspace-grid-full) .account-mode-badge {
  letter-spacing: 0;
  text-transform: none;
}
.workspace-grid:not(.workspace-grid-full) .account-top-card {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(360px, 0.95fr) auto;
  min-height: 104px;
  align-items: center;
  padding: 18px 0 20px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.workspace-grid:not(.workspace-grid-full) .account-icon,
.workspace-grid:not(.workspace-grid-full) .help-button {
  color: #c9d5e8;
  background: rgba(255, 255, 255, 0.045);
}
.account-summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}
.account-summary-strip div {
  min-width: 0;
  padding: 2px 18px;
  border-left: 1px solid rgba(157, 170, 196, 0.16);
}
.account-summary-strip span {
  display: block;
  margin-bottom: 5px;
  color: var(--color-subtle);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}
.account-summary-strip strong {
  display: block;
  overflow: hidden;
  color: #eef3fb;
  font-size: 15px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.workspace-grid:not(.workspace-grid-full) .primary-button.muted {
  border-color: rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08)),
    rgba(64, 73, 92, 0.66);
  box-shadow: none;
}
.workspace-grid:not(.workspace-grid-full) .ghost-button,
.workspace-grid:not(.workspace-grid-full) .rail-heading button {
  border-color: rgba(157, 170, 196, 0.14);
  background: rgba(255, 255, 255, 0.036);
}
.workspace-grid:not(.workspace-grid-full) .progress-panel {
  padding: 18px 18px 16px;
}
.workspace-grid:not(.workspace-grid-full) .progress-title {
  flex-wrap: wrap;
}
.workspace-grid:not(.workspace-grid-full) .progress-title p {
  color: #f4f7fb;
  text-shadow: none;
}
.workspace-grid:not(.workspace-grid-full) .progress-title span {
  color: #7f8ca4;
  letter-spacing: 0;
  text-transform: none;
}
.workspace-grid:not(.workspace-grid-full) .metric-card {
  min-height: 156px;
  padding: 18px;
}
.workspace-grid:not(.workspace-grid-full) .metric-card strong {
  font-size: 27px;
}
.workspace-grid:not(.workspace-grid-full) .metric-card p,
.workspace-grid:not(.workspace-grid-full) .chart-summary p,
.workspace-grid:not(.workspace-grid-full) .trade-stat-card span {
  color: #8c98ad;
  letter-spacing: 0;
  text-transform: none;
}
.workspace-grid:not(.workspace-grid-full) .metric-percent,
.workspace-grid:not(.workspace-grid-full) .chart-summary h3,
.workspace-grid:not(.workspace-grid-full) .chart-summary strong {
  color: #61d6ba;
}
.workspace-grid:not(.workspace-grid-full) .metric-percent {
  color: var(--metric-percent-color, #61d6ba);
}
.workspace-grid:not(.workspace-grid-full) .metric-track,
.workspace-grid:not(.workspace-grid-full) .mini-progress {
  height: 5px;
  background: rgba(143, 156, 181, 0.16);
}
.workspace-grid:not(.workspace-grid-full) .mini-progress {
  height: 5px;
  background: rgba(143, 156, 181, 0.14);
}
.workspace-grid:not(.workspace-grid-full) .metric-track span,
.workspace-grid:not(.workspace-grid-full) .tone-info .metric-track span,
.workspace-grid:not(.workspace-grid-full) .tone-positive .metric-track span {
  background: linear-gradient(90deg, #5b7cff, #61d6ba);
}
.workspace-grid:not(.workspace-grid-full) .tone-info .metric-track-balance-range span {
  background: linear-gradient(90deg, var(--color-warning), var(--color-positive));
}
.workspace-grid:not(.workspace-grid-full) .tone-info .metric-track-balance-range span[data-range-direction="loss"] {
  background: linear-gradient(90deg, var(--color-negative), var(--color-warning));
}
.workspace-grid:not(.workspace-grid-full) .mini-progress span {
  background: #7f93d8;
  box-shadow:
    0 0 12px rgba(127, 147, 216, 0.18);
}
.workspace-grid:not(.workspace-grid-full) .tone-warning .metric-track span {
  background: linear-gradient(90deg, #c9975d, #efcf88);
}
.workspace-grid:not(.workspace-grid-full) .tone-risk .metric-track span {
  background:
    linear-gradient(90deg, rgba(var(--color-negative-rgb), 0.52) 0%, var(--color-negative) 100%);
  background-size: var(--progress-bg-size, 100% 100%);
}
.account-rail-empty {
  display: grid;
  min-height: 128px;
  align-content: center;
  gap: 6px;
  padding: 18px;
  border: 1px solid rgba(157, 170, 196, 0.14);
  border-radius: var(--radius-lg);
  color: var(--color-subtle);
  background: rgba(255, 255, 255, 0.026);
}
.account-rail-empty strong {
  color: var(--color-text);
  font-size: 15px;
}
.account-rail-empty span {
  font-size: 13px;
  line-height: 1.45;
}
.accounts-empty-state {
  display: grid;
  min-height: clamp(360px, 58vh, 620px);
  align-content: center;
  justify-items: start;
  gap: 22px;
  padding: clamp(22px, 5vw, 62px) 0;
}
.accounts-empty-copy {
  display: grid;
  max-width: 560px;
  gap: 14px;
}
.accounts-empty-copy .section-chip {
  min-height: 34px;
  padding-inline: 14px;
  border-radius: 17px;
  font-size: 14px;
}
.accounts-empty-copy h2 {
  margin: 0;
  color: var(--color-text);
  font-size: clamp(32px, 5vw, 64px);
  line-height: 0.98;
  letter-spacing: 0;
}
.accounts-empty-copy p {
  max-width: 470px;
  margin: 0;
  color: var(--color-muted);
  font-size: 16px;
  line-height: 1.55;
}
.accounts-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.accounts-empty-action {
  min-width: 190px;
  justify-content: center;
  gap: 8px;
}
.accounts-empty-actions .ghost-button {
  min-height: 42px;
  border-radius: 20px;
}
.account-close-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 24px 24px 24px calc(24px + var(--app-sidebar-width, 0px));
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(18px) saturate(108%);
  -webkit-backdrop-filter: blur(18px) saturate(108%);
}
.account-close-dialog {
  position: relative;
  display: grid;
  width: min(430px, 100%);
  gap: 22px;
  padding: 24px;
  border: 1px solid rgba(226, 232, 244, 0.13);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.026)),
    rgba(7, 10, 16, 0.96);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.52);
}
.account-close-dialog-x {
  position: absolute;
  top: 24px;
  right: 24px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: var(--color-muted);
  background: rgba(255, 255, 255, 0.045);
}
.account-close-dialog-x:hover {
  color: var(--color-text);
  border-color: rgba(255, 255, 255, 0.22);
}
.account-close-dialog-copy {
  display: grid;
  gap: 12px;
  padding-right: 44px;
}
.account-close-dialog-copy .section-chip {
  min-height: 34px;
  padding-inline: 20px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1;
}
.account-close-dialog-copy h2 {
  margin: 0;
  color: var(--color-text);
  font-size: 24px;
  line-height: 1.12;
  letter-spacing: 0;
}
.account-close-dialog-copy p {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.55;
}
.account-close-dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}
.account-close-dialog-actions > button {
  min-height: 42px;
  justify-content: center;
  border-radius: 12px;
}
.account-close-dialog-actions > .primary-button::before {
  border-radius: 11px;
}
.account-close-confirm {
  border-color: rgba(var(--color-negative-rgb), 0.24);
  background: rgba(var(--color-negative-rgb), 0.16);
  box-shadow: none;
}
.account-close-confirm::before {
  display: none;
}
@media (max-width: 560px) {
  .accounts-empty-state {
    min-height: 420px;
  }

  .account-close-modal {
    padding: 18px;
  }

  .account-close-dialog-actions {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 1680px) {
  .workspace-grid:not(.workspace-grid-full) .account-top-card {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 16px 18px;
  }

  .workspace-grid:not(.workspace-grid-full) .hero-actions {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .workspace-grid:not(.workspace-grid-full) .hero-actions > button {
    justify-content: center;
    width: 100%;
    min-width: 0;
  }
}
@media (max-width: 1280px) {
  .workspace-grid:not(.workspace-grid-full) .account-top-card {
    gap: 14px;
  }

  .workspace-grid:not(.workspace-grid-full) .hero-actions {
    gap: 8px;
  }

  .workspace-grid:not(.workspace-grid-full) .hero-actions .account-hero-button {
    gap: 5px;
    padding-inline: 10px;
  }
}
@media (max-width: 950px) {
  .workspace-grid:not(.workspace-grid-full) .hero-actions > button svg {
    display: none;
  }
}
@media (max-width: 860px) {
  .hero-actions {
    justify-content: flex-start;
  }

  .workspace-grid:not(.workspace-grid-full) {
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
  }

  .workspace-grid:not(.workspace-grid-full)::before {
    display: none;
  }

  .workspace-page-accounts::after {
    display: none;
  }

  .page-title,
  .page-title p,
  .workspace-grid,
  .content-stack {
    min-width: 0;
    max-width: 100%;
  }

  .workspace-grid:not(.workspace-grid-full) .account-top-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding-top: 0;
  }

  .account-summary-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .workspace-grid:not(.workspace-grid-full) .hero-actions {
    width: 100%;
    justify-content: stretch;
  }

  .workspace-grid:not(.workspace-grid-full) .hero-actions > button {
    flex: 1 1 0;
    justify-content: center;
    min-width: 0;
  }

  .workspace-grid:not(.workspace-grid-full) .account-rail {
    top: 0;
    max-height: 100dvh;
    padding: 0 0 18px;
    border-right: 0;
    border-bottom: 1px solid rgba(157, 170, 196, 0.16);
    width: 100%;
  }

  .workspace-grid:not(.workspace-grid-full) .account-list {
    margin-inline: -2px;
    padding-inline: 2px;
  }

  .workspace-grid:not(.workspace-grid-full) .progress-panel {
    overflow: hidden;
  }

  .workspace-grid:not(.workspace-grid-full) .progress-title {
    display: grid;
    gap: 6px;
  }

  .workspace-grid:not(.workspace-grid-full) .progress-title span {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}
@media (max-width: 560px) {
  .steps {
    gap: 6px;
  }

  .account-summary-strip {
    gap: 6px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .account-summary-strip div {
    padding-inline: 10px;
  }

  .workspace-grid:not(.workspace-grid-full) .account-top-title {
    align-items: flex-start;
  }

  .workspace-grid:not(.workspace-grid-full) .account-top-title h2 {
    font-size: 19px;
  }
}
.status-pill-live,
.status-pill-demo {
  border-color: rgba(157, 170, 196, 0.16);
  background: rgba(255, 255, 255, 0.036);
}
/* Respect user motion preferences: disable ambient panel animations. */
@media (prefers-reduced-motion: reduce) {
  .account-rail::before,
  .account-top-card::before,
  .hero-panel::before,
  .progress-panel::before,
  .metric-card::before,
  .market-strip::before {
    animation: none !important;
  }
}
.account-rail,
.account-top-card,
.hero-panel,
.progress-panel,
.metric-card,
.market-strip {
  position: relative;
  isolation: isolate;
  --panel-accent-rgb: 139, 124, 246;
  --panel-fill-rgb: 8, 11, 18;
  overflow: hidden;
  border: 1px solid rgba(226, 210, 255, 0.12);
  background:
    linear-gradient(135deg, rgba(var(--panel-accent-rgb), 0.09), transparent 38%, rgba(255, 122, 245, 0.04)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018) 54%, rgba(255, 255, 255, 0.008)),
    rgba(var(--panel-fill-rgb), 0.4);
  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.48),
    inset 0 -1px 0 rgba(183, 121, 255, 0.045);
  backdrop-filter: blur(34px) saturate(132%);
  -webkit-backdrop-filter: blur(34px) saturate(132%);
}
.account-rail::before,
.account-top-card::before,
.hero-panel::before,
.progress-panel::before,
.metric-card::before,
.market-strip::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  content: "";
  background:
    linear-gradient(108deg, transparent 4%, rgba(112, 88, 255, 0.016) 22%, rgba(183, 121, 255, 0.09) 38%, rgba(255, 122, 245, 0.068) 52%, rgba(58, 84, 214, 0.056) 66%, transparent 84%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.036), transparent 44%);
  background-size: 220% 100%, 100% 100%;
  opacity: 0.36;
  pointer-events: none;
  animation: cosmic-panel-flow 14s linear infinite;
}
.account-rail::after,
.account-top-card::after,
.hero-panel::after,
.progress-panel::after,
.metric-card::after,
.market-strip::after {
  position: absolute;
  inset: 1px;
  z-index: 0;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: inherit;
  content: "";
  box-shadow:
    inset 0 -42px 80px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(183, 121, 255, 0.018);
  pointer-events: none;
}
/* Keep all direct children above the ::before and ::after pseudo-elements. */
.account-rail > *,
.account-top-card > *,
.hero-panel > *,
.progress-panel > *,
.metric-card > *,
.market-strip > * {
  position: relative;
  z-index: 1;
}
/* Lift the rail above other panels so the dropdown can escape overflow. */
.workspace-grid:not(.workspace-grid-full) .account-rail-frame:has(.has-history-open),
.workspace-grid:not(.workspace-grid-full) .account-rail.has-history-open {
  z-index: 20;
}
.account-rail > .rail-heading {
  z-index: 12;
}
.account-rail > .account-rail-sticky {
  z-index: 1;
}
.account-rail.has-history-open,
.workspace-grid:not(.workspace-grid-full) .account-rail.has-history-open {
  overflow: visible;
}
.account-rail.has-history-open .account-dropdown-options {
  z-index: 30;
}
@media (min-width: 861px) {
  .workspace-grid:not(.workspace-grid-full) .account-rail-frame {
    padding-top: var(--account-rail-start-offset);
  }

  .workspace-grid:not(.workspace-grid-full) .account-rail {
    position: sticky;
    top: calc(var(--account-rail-sticky-offset) + var(--account-rail-stuck-gap) - var(--account-rail-stick-delay));
    max-height: calc(100dvh - var(--account-rail-sticky-offset) - var(--account-rail-stuck-gap) + var(--account-rail-stick-delay));
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
  }

  .workspace-grid:not(.workspace-grid-full) .account-rail.has-history-open {
    overflow: visible;
  }

  .workspace-grid:not(.workspace-grid-full) .account-rail::-webkit-scrollbar {
    display: none;
  }
}
@media (max-width: 860px) {
  .workspace-grid:not(.workspace-grid-full) .account-rail-frame {
    min-height: 0;
  }

  .workspace-grid:not(.workspace-grid-full) .account-rail {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .workspace-grid:not(.workspace-grid-full) .account-rail-sticky {
    position: static;
    max-height: none;
    overflow: visible;
  }
}
@media (max-width: 560px) {

  .metric-grid,
  .market-strip {
    grid-template-columns: 1fr;
  }
}
.mini-progress span,
.metric-track span {
  box-shadow: none;
}
/* Statistics */
.workspace-grid-full {
  grid-template-columns: minmax(0, 1fr);
}
.statistics-hero,
.statistics-teaser {
  --panel-accent-rgb: 92, 109, 229;
  min-height: 176px;
  gap: 24px;
  border-color: rgba(92, 109, 229, 0.18);
  background: rgba(12, 15, 22, 0.2);
}
.statistics-teaser {
  --panel-accent-rgb: 58, 84, 214;
}
.statistics-hero-copy,
.statistics-hero-side {
  display: grid;
  align-content: start;
  gap: 14px;
}
.statistics-hero-copy {
  flex: 1 1 0;
}
.statistics-hero-copy h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.04;
}
.statistics-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: var(--color-muted);
  background: rgba(255, 255, 255, 0.05);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.statistics-hero-side {
  min-width: min(100%, 420px);
  justify-items: end;
}
.statistics-badges {
  display: grid;
  width: min(100%, 420px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.statistics-badge,
.analytics-stat-card,
.trade-stat-card,
.mini-chart-shell {
  position: relative;
  isolation: isolate;
  --analytics-rgb: 139, 124, 246;
  overflow: hidden;
  border: 1px solid rgba(var(--analytics-rgb), 0.18);
  border-radius: var(--radius-md);
  background: rgba(12, 15, 22, 0.2);
  box-shadow: none;
}
.statistics-badge {
  display: grid;
  gap: 8px;
  min-height: 92px;
  padding: 16px;
}
.statistics-badge span,
.analytics-stat-card span,
.trade-stat-card span,
.mini-chart-title {
  color: var(--color-muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.statistics-badge strong,
.analytics-stat-card strong,
.trade-stat-card strong {
  font-size: 25px;
  line-height: 1.04;
}
.statistics-badge strong {
  color: var(--color-text);
}
.statistics-account-picker {
  position: relative;
  z-index: 6;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  overflow: visible;
  padding: 2px 2px 4px;
}
.statistics-account-current {
  display: grid;
  min-width: 0;
  gap: 8px;
}
.statistics-account-heading,
.statistics-account-title-row {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.statistics-account-title-row {
  gap: 10px;
}
.statistics-account-current h1,
.statistics-account-title-row strong {
  margin: 0;
  color: var(--color-text);
  font-size: 28px;
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: 0;
}
.statistics-account-current p {
  margin: 0;
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 700;
}
.statistics-account-state.is-archived {
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(218, 224, 237, 0.84);
  background: rgba(255, 255, 255, 0.05);
}
.statistics-account-menu {
  position: relative;
  flex: 0 0 auto;
}
.statistics-account-trigger {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 6px;
  padding-inline: 16px;
  border-color: rgba(111, 134, 255, 0.2);
  border-radius: 999px;
  background: rgba(12, 15, 22, 0.32);
  color: var(--color-text);
  font-weight: 900;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}
.statistics-account-trigger:hover,
.statistics-account-menu.is-open .statistics-account-trigger {
  border-color: rgba(111, 134, 255, 0.34);
  background: rgba(111, 134, 255, 0.1);
}
.statistics-account-chevron {
  display: block;
  flex: 0 0 auto;
  width: 17.6px;
  height: 17.6px;
  transition: transform 180ms ease;
}
.statistics-account-chevron.is-open {
  transform: rotate(180deg);
}
.account-dropdown-options {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 10;
  display: grid;
  width: min(420px, calc(100vw - 48px));
  max-height: min(420px, calc(100dvh - 220px));
  overflow: auto;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(24, 30, 48, 0.98), rgba(12, 15, 22, 0.98));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
}
.account-dropdown-options[data-account-dropdown-floating] {
  right: auto;
  z-index: 30;
  max-width: calc(100vw - 24px);
}
.account-dropdown-options.has-history-below::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  height: 68px;
  opacity: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(12, 15, 22, 0), rgba(12, 15, 22, 0.88) 78%, rgba(12, 15, 22, 0.98)),
    linear-gradient(90deg, transparent, rgba(205, 215, 236, 0.18), transparent);
  background-size: 100% 100%, 100% 1px;
  background-position: 0 0, 0 100%;
  background-repeat: no-repeat;
}
.account-dropdown-option-list {
  display: contents;
}
.account-dropdown-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 72px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text);
  text-align: left;
}
.account-dropdown-option:hover,
.account-dropdown-option.is-active {
  border-color: rgba(111, 134, 255, 0.28);
  background: rgba(111, 134, 255, 0.1);
}
.account-dropdown-option-copy,
.account-dropdown-option-meta {
  display: grid;
  min-width: 0;
  gap: 6px;
}
.account-dropdown-option-copy strong,
.account-dropdown-option-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-dropdown-option-copy strong {
  font-size: 14px;
}
.account-dropdown-option-copy span,
.account-dropdown-option-meta small {
  color: var(--color-muted);
  font-size: 11px;
  font-weight: 800;
}
.account-dropdown-option-meta {
  justify-items: end;
}
.account-dropdown-option-meta em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  min-height: 24px;
  padding-inline: 9px;
  border-radius: 999px;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}
.account-dropdown-option-meta em.is-live {
  color: var(--color-positive);
  background: rgba(var(--color-positive-rgb), 0.14);
}
.account-dropdown-option-meta em.is-demo {
  color: var(--color-muted);
  background: rgba(111, 134, 255, 0.14);
}
.account-dropdown-option-meta em.is-archived {
  color: rgba(218, 224, 237, 0.84);
  background: rgba(255, 255, 255, 0.08);
}
.analytics-summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}
.analytics-summary-grid.is-compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.analytics-stat-card {
  display: grid;
  gap: 10px;
  min-height: 132px;
  padding: 18px;
}
.analytics-stat-card-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}
.analytics-stat-artwork {
  position: absolute;
  top: 50%;
  right: -34px;
  z-index: 0;
  width: 180px;
  height: 180px;
  color: rgba(var(--analytics-rgb), 0.9);
  opacity: 0.42;
  pointer-events: none;
  mix-blend-mode: screen;
  transform: translateY(-50%) translateX(-3px) scale(1.03);
  transition:
    opacity 240ms ease,
    transform 320ms cubic-bezier(0.2, 0.9, 0.22, 1);
}
.analytics-stat-artwork * {
  transform-box: fill-box;
  transform-origin: center;
}
.analytics-summary-grid .analytics-stat-card {
  contain: layout paint;
}
.analytics-art-glow {
  filter: drop-shadow(0 0 8px rgba(var(--analytics-rgb), 0.5));
}
.analytics-tesseract-core {
  animation: analytics-tesseract-spin 35s linear infinite;
}
.analytics-tesseract-outer,
.analytics-tesseract-inner,
.analytics-tesseract-lines line,
.analytics-gravity-pulse,
.analytics-binary-ring,
.analytics-binary-path,
.analytics-blackhole-ring,
.analytics-accretion-band,
.analytics-galaxy-ring,
.analytics-pulsar-wave,
.analytics-pulsar-axis,
.analytics-astrolabe-ring,
.analytics-astrolabe-pointer-ring,
.analytics-astrolabe-pointer-line {
  stroke: currentColor;
}
.analytics-tesseract-outer {
  fill: none;
  stroke-width: 0.85;
  animation: analytics-hex-outer-pulse 5s ease-in-out infinite;
}
.analytics-tesseract-inner {
  fill: none;
  stroke-width: 0.6;
  animation: analytics-hex-inner-pulse 5s ease-in-out infinite;
}
.analytics-tesseract-lines line {
  stroke-width: 0.34;
  stroke-dasharray: 2 3;
  opacity: 0.62;
}
.analytics-tesseract-node,
.analytics-binary-star-primary,
.analytics-binary-star-secondary,
.analytics-galaxy-core,
.analytics-pulsar-core,
.analytics-astrolabe-pointer-core,
.analytics-astrolabe-pointer-head {
  fill: currentColor;
}
.analytics-tesseract-node {
  animation: analytics-core-glow 2.5s ease-in-out infinite;
}
.analytics-gravity-pulse {
  stroke-width: 0.55;
  animation: analytics-gravity-wave 6s ease-in-out infinite;
}
.analytics-binary-core {
  animation: analytics-binary-spin 20s linear infinite;
}
.analytics-binary-ring {
  stroke-width: 0.24;
  stroke-dasharray: 4 8;
}
.analytics-binary-path {
  stroke-width: 0.56;
  opacity: 0.5;
}
.analytics-binary-star-secondary {
  opacity: 0.72;
}
.analytics-blackhole-core {
  fill: #020304;
  stroke: currentColor;
  stroke-width: 1.4;
}
.analytics-blackhole-ring {
  stroke-width: 0.55;
  stroke-dasharray: 1 6;
}
.analytics-accretion-disk {
  animation: analytics-accretion-spin 15s linear infinite;
}
.analytics-accretion-disk-reverse {
  animation-duration: 8s;
  animation-direction: reverse;
}
.analytics-accretion-band-thick {
  stroke-width: 4;
  stroke-dasharray: 10 30;
  opacity: 0.3;
}
.analytics-accretion-band-medium {
  stroke-width: 1;
  stroke-dasharray: 2 12;
  opacity: 0.6;
}
.analytics-accretion-band-thin {
  stroke-width: 0.24;
  stroke-dasharray: 20 40;
}
.analytics-galaxy-arm {
  animation: analytics-galaxy-rotate 40s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
.analytics-galaxy-arm-reverse {
  animation-duration: 30s;
  animation-direction: reverse;
}
.analytics-galaxy-arm-slow {
  animation-duration: 50s;
}
.analytics-galaxy-ring-wide {
  stroke-width: 0.32;
  stroke-dasharray: 5 5 1 5;
}
.analytics-galaxy-ring-mid {
  stroke-width: 0.6;
  stroke-dasharray: 2 8;
  opacity: 0.72;
}
.analytics-galaxy-ring-cross {
  stroke-width: 0.22;
  transform: rotate(45deg);
}
.analytics-galaxy-ring-fine {
  stroke-width: 0.12;
  stroke-dasharray: 1 3;
  transform: rotate(-30deg);
}
.analytics-pulsar-wave {
  stroke-width: 0.5;
  animation: analytics-star-burst 4s cubic-bezier(0.1, 0.5, 0.9, 1) infinite;
}
.analytics-pulsar-wave-delayed {
  animation-delay: 2s;
}
.analytics-pulsar-beam {
  animation: analytics-pulsar-rays 8s ease-in-out infinite;
}
.analytics-pulsar-axis-main {
  stroke-width: 1;
  opacity: 0.6;
}
.analytics-pulsar-axis-subtle {
  stroke-width: 0.24;
  opacity: 0.85;
}
.analytics-astrolabe-gear-outer {
  transform-box: view-box;
  transform-origin: 50% 50%;
  animation: analytics-astrolabe-spin-fast 30s linear infinite;
}
.analytics-astrolabe-gear-inner {
  transform-box: view-box;
  transform-origin: 50% 50%;
  animation: analytics-astrolabe-spin-slow 45s linear infinite;
}
.analytics-astrolabe-pointer {
  transform-box: view-box;
  transform-origin: 50% 50%;
  animation: analytics-astrolabe-pointer-spin 60s ease-in-out infinite;
}
.analytics-astrolabe-ring-thick {
  stroke-width: 1.5;
  stroke-dasharray: 10 15;
  opacity: 0.4;
}
.analytics-astrolabe-ring-mid {
  stroke-width: 0.5;
  stroke-dasharray: 2 6;
}
.analytics-astrolabe-ring-fine {
  stroke-width: 0.2;
  stroke-dasharray: 1 10;
}
.analytics-astrolabe-pointer-ring {
  stroke-width: 1;
}
.analytics-astrolabe-pointer-line {
  stroke-width: 0.8;
}
@keyframes analytics-tesseract-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}
@keyframes analytics-hex-outer-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.3;
    stroke-width: 0.22;
  }

  50% {
    transform: scale(1.05);
    opacity: 0.78;
    stroke-width: 0.65;
    filter: drop-shadow(0 0 4px rgba(var(--analytics-rgb), 0.35));
  }
}
@keyframes analytics-hex-inner-pulse {
  0%,
  100% {
    transform: scale(0.9);
    opacity: 0.8;
    stroke-dasharray: 2 6;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.3;
    stroke-dasharray: 6 2;
  }
}
@keyframes analytics-core-glow {
  0%,
  100% {
    r: 2;
    opacity: 0.4;
  }

  50% {
    r: 6;
    opacity: 1;
    filter: drop-shadow(0 0 8px rgba(var(--analytics-rgb), 0.6));
  }
}
@keyframes analytics-gravity-wave {
  0%,
  100% {
    r: 40;
    opacity: 0;
  }

  50% {
    r: 70;
    opacity: 0.45;
  }
}
@keyframes analytics-binary-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}
@keyframes analytics-accretion-spin {
  from {
    transform: rotate(0deg) scale(1);
  }

  50% {
    transform: rotate(180deg) scale(1.05);
  }

  to {
    transform: rotate(360deg) scale(1);
  }
}
@keyframes analytics-galaxy-rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}
@keyframes analytics-pulsar-rays {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(0.9) rotate(0deg);
  }

  50% {
    opacity: 1;
    transform: scale(1.1) rotate(10deg);
  }
}
@keyframes analytics-star-burst {
  0% {
    r: 10;
    opacity: 1;
  }

  100% {
    r: 80;
    opacity: 0;
  }
}
@keyframes analytics-astrolabe-spin-fast {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}
@keyframes analytics-astrolabe-spin-slow {
  from {
    transform: rotate(360deg);
  }

  to {
    transform: rotate(0deg);
  }
}
@keyframes analytics-astrolabe-pointer-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .analytics-stat-artwork,
  .analytics-stat-card:hover .analytics-stat-artwork {
    transform: translateY(-50%);
  }

  .apex-chart-stage {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .analytics-tesseract-core,
  .analytics-tesseract-outer,
  .analytics-tesseract-inner,
  .analytics-tesseract-node,
  .analytics-gravity-pulse,
  .analytics-binary-core,
  .analytics-accretion-disk,
  .analytics-galaxy-arm,
  .analytics-pulsar-wave,
  .analytics-pulsar-beam,
  .analytics-astrolabe-gear-outer,
  .analytics-astrolabe-gear-inner,
  .analytics-astrolabe-pointer {
    animation: none;
  }
}
.analytics-stat-card small,
.trade-stat-card small {
  color: var(--color-subtle);
  line-height: 1.45;
}
.analytics-stat-card.tone-positive,
.trade-stat-card.tone-positive {
  --analytics-rgb: 111, 134, 255;
}
.analytics-stat-card.tone-cyan,
.trade-stat-card.tone-cyan {
  --analytics-rgb: 58, 84, 214;
}
.analytics-stat-card.tone-violet,
.trade-stat-card.tone-violet {
  --analytics-rgb: 183, 121, 255;
}
.analytics-stat-card.tone-purple {
  --analytics-rgb: 164, 135, 255;
}
.analytics-stat-card.tone-magenta {
  --analytics-rgb: 255, 122, 245;
}
.analytics-stat-card.tone-blue {
  --analytics-rgb: 111, 134, 255;
}
.trade-stat-card.tone-negative {
  --analytics-rgb: 255, 107, 142;
}
.stats-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.9fr);
  gap: 18px;
}
.stats-main-grid > .chart-panel,
.stats-main-grid > .data-panel {
  contain: layout paint style;
  content-visibility: auto;
}
.stats-main-grid > .chart-panel,
.stats-main-grid > .data-panel {
  contain-intrinsic-size: 420px;
}
.stats-main-grid > .chart-panel::before,
.stats-main-grid > .data-panel::before {
  animation: none;
  background-position: 50% 0, 0 0;
}
.stats-wide-panel {
  grid-column: 1 / -1;
}
.stats-main-grid > .equity-chart-panel-statistics {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.equity-chart-panel-statistics .chart-canvas {
  display: flex;
  flex: 1;
  min-height: 0;
}
.equity-chart-panel-statistics .apex-chart-stage {
  flex: 1;
  height: 100%;
  min-height: 0 !important;
}
.equity-chart-panel-statistics .apex-chart-stage > *,
.equity-chart-panel-statistics .apexcharts-canvas,
.equity-chart-panel-statistics .apexcharts-svg {
  height: 100% !important;
}
.account-analytics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.apex-chart-shell {
  position: relative;
  min-width: 0;
  contain: layout paint;
}
.apex-chart-stage {
  width: 100%;
  opacity: 0;
  transform: translateY(12px) scale(0.986);
  transition:
    opacity 320ms ease,
    transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
}
.apex-chart-stage.is-ready {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.apex-chart-stage > * {
  width: 100%;
}
.equity-chart-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
}
.equity-chart-loading-dots {
  display: inline-block;
  width: 1.5em;
}
.equity-chart-loading-dots::before {
  content: "";
  animation: equity-chart-loading-dots 1.2s steps(4, end) infinite;
}
@keyframes equity-chart-loading-dots {
  0% {
    content: "";
  }

  25% {
    content: ".";
  }

  50% {
    content: "..";
  }

  75%,
  100% {
    content: "...";
  }
}
.apex-chart-shell .apexcharts-canvas {
  margin: 0 auto;
}
.apex-chart-shell .apexcharts-tooltip.apexcharts-theme-dark {
  border: 1px solid rgba(183, 121, 255, 0.24);
  border-radius: 16px;
  background: rgba(9, 13, 22, 0.96);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(18px);
}
.apex-chart-shell .apexcharts-tooltip-series-group {
  background: transparent !important;
}
.apex-chart-shell .apexcharts-tooltip-text,
.apex-chart-shell .apexcharts-tooltip-title {
  color: var(--color-text) !important;
  background: transparent !important;
  border-bottom: 0 !important;
}
.apex-chart-shell .apexcharts-legend {
  padding-top: 8px !important;
}
.apex-chart-shell .apexcharts-legend-text {
  color: var(--color-muted) !important;
}
.trade-breakdown-grid .mini-chart-shell .apexcharts-legend {
  display: none !important;
}
.trade-breakdown-panel .apexcharts-datalabel-value {
  font-size: 22px !important;
}
.trade-breakdown-panel .apexcharts-datalabel-label {
  font-size: 15px !important;
}
.apex-tooltip-card {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
}
.apex-tooltip-card strong {
  color: var(--color-text);
  font-size: 13px;
}
.apex-tooltip-card span {
  color: var(--color-muted);
  font-size: 12px;
}
.heatmap-panel .apex-chart-shell {
  margin-top: 14px;
}
.heatmap-panel.is-compact .apex-chart-shell,
.trade-breakdown-panel.is-compact .apex-chart-shell {
  margin-top: 12px;
}
.trade-breakdown-panel.is-compact .mini-chart-shell {
  padding: 12px 12px 0;
}
.trade-breakdown-panel.is-compact .mini-chart-shell .apexcharts-canvas {
  margin-top: 2px;
}
.trade-breakdown-panel.is-compact .apexcharts-datalabel-value {
  font-size: 18px !important;
}
.trade-breakdown-panel.is-compact .apexcharts-datalabel-label {
  font-size: 12px !important;
}
.heatmap-panel {
  --heatmap-header-gap: 8px;
  --panel-accent-rgb: 92, 109, 229;
  --heatmap-positive-rgb: 136, 186, 152;
  --heatmap-negative-rgb: 221, 145, 160;
  --heatmap-positive-surface-top-rgb: 30, 43, 35;
  --heatmap-positive-surface-bottom-rgb: 16, 23, 19;
  --heatmap-negative-surface-top-rgb: 52, 28, 36;
  --heatmap-negative-surface-bottom-rgb: 24, 15, 19;
  border-color: rgba(156, 162, 255, 0.16);
  background: rgba(12, 15, 22, 0.2);
  box-shadow: none;
}
.heatmap-panel::before {
  display: none;
  content: none;
}
.heatmap-panel::after {
  display: none;
  content: none;
}
.heatmap-heading {
  display: grid;
  grid-template-columns: minmax(210px, auto) minmax(0, 1fr);
  align-items: center;
  gap: var(--heatmap-header-gap);
}
.heatmap-heading-copy {
  display: grid;
  flex: 0 0 auto;
  gap: 5px;
  min-width: 0;
}
.heatmap-heading-copy h3 {
  max-width: none;
  margin-top: 0;
  font-size: clamp(21px, 2vw, 26px);
  line-height: 1;
  letter-spacing: -0.05em;
}
.calendar-title-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.heatmap-heading h3 .heatmap-title-main {
  display: inline-block;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  white-space: nowrap;
}
.heatmap-heading h3 > span:not(.heatmap-title-main) {
  display: block;
  margin-top: 10px;
  color: rgba(186, 198, 233, 0.68);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.heatmap-toolbar {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  flex: 1 1 auto;
  justify-content: end;
  gap: var(--heatmap-header-gap);
  min-width: 0;
}
.heatmap-kpi {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.038), rgba(255, 255, 255, 0.014)),
    rgba(17, 20, 25, 0.34);
  box-shadow: none;
}
.heatmap-kpi small {
  color: rgba(214, 206, 197, 0.48);
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.heatmap-kpi strong {
  color: rgba(224, 233, 221, 0.94);
  font-size: 13px;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.view-toggle {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.018)),
    rgba(14, 17, 22, 0.44);
  box-shadow: none;
}
.heatmap-panel:not(.is-compact) .view-toggle {
  align-self: auto;
  min-width: 72px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.view-toggle button,
.calendar-nav-button {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  padding: 0;
}
.heatmap-panel:not(.is-compact) .view-toggle button {
  width: 30px;
  height: 30px;
}
.heatmap-panel:not(.is-compact) .view-toggle button svg {
  width: 17px;
  height: 17px;
}
.view-toggle button {
  border: 0;
  border-radius: 14px;
  color: rgba(220, 214, 205, 0.42);
  background: transparent;
  transition:
    color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    transform var(--button-motion);
}
.view-toggle button.is-active {
  color: rgba(249, 245, 239, 0.98);
  background:
    linear-gradient(145deg, rgba(197, 184, 166, 0.26), rgba(110, 119, 129, 0.18)),
    rgba(255, 255, 255, 0.04);
  box-shadow:
    0 12px 22px rgba(7, 13, 18, 0.18);
}
.calendar-nav-button {
  border: 0;
  border-radius: 999px;
  color: rgba(228, 234, 255, 0.74);
  background: rgba(92, 109, 229, 0.14);
}
.calendar-nav-button:disabled {
  cursor: default;
  opacity: 0.62;
}
.calendar-nav-button:hover:not(:disabled) {
  background: rgba(92, 109, 229, 0.22);
}
.calendar-title-nav .calendar-nav-button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  height: 28px !important;
  padding: 0 !important;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 50% !important;
}
.calendar-title-nav .calendar-nav-button:disabled {
  opacity: 0.4 !important;
}
.calendar-title-nav .calendar-nav-button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.25) !important;
}
.calendar-pnl {
  margin-top: 14px;
}
.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.calendar-weekdays span {
  color: rgba(166, 180, 224, 0.48);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-auto-rows: 68px;
  gap: 10px;
}
.calendar-cell {
  position: relative;
  display: grid;
  min-height: 68px;
  align-content: space-between;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  padding: 10px 12px;
  border-radius: 22px;
  border: 1px solid rgba(156, 162, 255, 0.12);
  background: rgba(12, 15, 22, 0.2);
  box-shadow: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}
.calendar-cell.is-empty {
  min-height: 68px;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}
.calendar-cell.is-positive,
.calendar-cell.is-negative,
.calendar-cell.is-pending {
  box-shadow:
    0 18px 30px rgba(0, 0, 0, 0.2);
}
.calendar-cell.is-positive {
  border-color: rgba(var(--heatmap-positive-rgb), 0.16);
  background: rgba(var(--heatmap-positive-surface-bottom-rgb), 0.95);
}
.calendar-cell.is-negative {
  border-color: rgba(var(--heatmap-negative-rgb), 0.16);
  background: rgba(var(--heatmap-negative-surface-bottom-rgb), 0.95);
}
.calendar-cell.is-pending {
  min-height: 68px;
  align-content: center;
  justify-items: center;
  border-color: rgba(156, 162, 255, 0.1);
  background: rgba(8, 12, 24, 0.48);
  box-shadow: none;
}
.calendar-cell.is-today {
  border-color: rgba(156, 162, 255, 0.24);
  box-shadow:
    0 0 0 1px rgba(183, 121, 255, 0.08),
    0 18px 30px rgba(0, 0, 0, 0.22);
}
.calendar-cell.is-live {
  border-color: rgba(156, 162, 255, 0.34);
}
.calendar-cell-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  min-width: 0;
  width: 100%;
}
.calendar-cell.is-today .calendar-cell-head {
  align-items: baseline;
  justify-content: space-between;
}
.calendar-day-label {
  color: rgba(231, 237, 255, 0.8);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.01em;
}
.calendar-cell small {
  color: rgba(170, 184, 224, 0.52);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.calendar-cell-value {
  display: block;
  min-width: 0;
  text-align: left;
}
.calendar-cell strong {
  color: rgba(244, 248, 255, 0.97);
  font-size: 18px;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.calendar-cell.is-positive .calendar-cell-value {
  color: rgba(var(--heatmap-positive-rgb), 0.8);
}
.calendar-cell.is-negative .calendar-cell-value {
  color: rgba(var(--heatmap-negative-rgb), 0.82);
}
.calendar-cell.is-positive .calendar-day-label {
  color: rgba(var(--heatmap-positive-rgb), 0.66);
}
.calendar-cell.is-negative .calendar-day-label {
  color: rgba(var(--heatmap-negative-rgb), 0.68);
}
.calendar-cell.is-positive small {
  color: rgba(var(--heatmap-positive-rgb), 0.48);
}
.calendar-cell.is-negative small {
  color: rgba(var(--heatmap-negative-rgb), 0.5);
}
.calendar-pending-day {
  color: rgba(173, 185, 221, 0.34);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}
.heatmap-chart-alt {
  margin-top: 18px;
}
.heatmap-panel.is-compact {
  border-radius: 32px;
}
.heatmap-panel.is-compact .heatmap-heading {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.heatmap-panel.is-compact .heatmap-heading-copy {
  gap: 5px;
}
.heatmap-panel.is-compact .heatmap-heading-copy h3 {
  max-width: none;
  font-size: clamp(21px, 5.8vw, 26px);
}
.heatmap-panel.is-compact .heatmap-heading h3 > span:not(.heatmap-title-main) {
  margin-top: 8px;
  font-size: 12px;
}
.heatmap-panel.is-compact .heatmap-heading h3 > span:not(.heatmap-title-main):first-child {
  margin-top: 0;
}
.heatmap-panel.is-compact .heatmap-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  width: 100%;
  align-items: center;
  justify-content: stretch;
  gap: var(--heatmap-header-gap);
}
.heatmap-panel.is-compact .heatmap-kpi {
  min-width: 0;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  overflow: hidden;
}
.heatmap-panel.is-compact .heatmap-kpi strong {
  display: inline;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.heatmap-panel.is-compact .view-toggle {
  justify-self: auto;
  align-self: auto;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 3px;
  border-radius: 14px;
}
.heatmap-panel.is-compact .view-toggle button {
  width: 30px;
  height: 30px;
}
.heatmap-panel.is-compact .view-toggle button svg {
  width: 16px;
  height: 16px;
}
.heatmap-panel.is-compact .calendar-weekdays {
  margin-bottom: 8px;
}
.heatmap-panel.is-compact .calendar-weekdays,
.heatmap-panel.is-compact .calendar-grid {
  gap: 6px;
}
.heatmap-panel.is-compact .calendar-grid {
  grid-auto-rows: 42px;
}
.heatmap-panel.is-compact .calendar-weekdays span {
  font-size: 9px;
  letter-spacing: 0.08em;
  color: rgba(170, 183, 224, 0.34);
}
.heatmap-panel.is-compact .calendar-cell {
  min-height: 42px;
  gap: 2px;
  padding: 4px 4px 5px;
  justify-items: center;
  border-radius: 10px;
  box-shadow: none;
}
.heatmap-panel.is-compact .calendar-cell.is-pending,
.heatmap-panel.is-compact .calendar-cell.is-empty {
  min-height: 42px;
}
.heatmap-panel.is-compact .calendar-cell::before {
  display: none;
}
.heatmap-panel.is-compact .calendar-cell.is-positive {
  border-color: rgba(var(--heatmap-positive-rgb), 0.14);
  background: rgba(var(--heatmap-positive-surface-bottom-rgb), 0.94);
  box-shadow: none;
}
.heatmap-panel.is-compact .calendar-cell.is-negative {
  border-color: rgba(var(--heatmap-negative-rgb), 0.14);
  background: rgba(var(--heatmap-negative-surface-bottom-rgb), 0.94);
  box-shadow: none;
}
.heatmap-panel.is-compact .calendar-cell.is-pending {
  align-content: center;
  justify-items: center;
  border-color: rgba(156, 162, 255, 0.08);
  background: rgba(10, 14, 27, 0.52);
  box-shadow: none;
}
.heatmap-panel.is-compact .calendar-cell.is-today {
  border-color: rgba(156, 162, 255, 0.2);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 10px 18px rgba(0, 0, 0, 0.12);
}
.heatmap-panel.is-compact .calendar-cell-head {
  gap: 4px;
  width: 100%;
  justify-content: center;
}
.heatmap-panel.is-compact .calendar-day-label {
  font-size: clamp(9px, 2.3vw, 10px);
  letter-spacing: 0.01em;
  color: rgba(218, 227, 255, 0.62);
  text-align: center;
}
.heatmap-panel.is-compact .calendar-cell-value {
  text-align: center;
}
.heatmap-panel.is-compact .calendar-cell strong {
  font-family: inherit;
  font-size: clamp(10px, 2.5vw, 12px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.heatmap-panel.is-compact .calendar-pending-day {
  display: block;
  width: 100%;
  text-align: center;
  font-size: clamp(12px, 3.25vw, 14px);
  color: rgba(173, 185, 221, 0.28);
}
.heatmap-panel.is-compact .heatmap-meta {
  margin-top: 0;
  gap: var(--heatmap-header-gap);
}
.heatmap-panel.is-compact .heatmap-meta span {
  min-height: 28px;
  padding: 0 11px;
  font-size: 9px;
  letter-spacing: 0.05em;
}
.heatmap-panel.is-compact .heatmap-legend {
  display: none;
}
.heatmap-meta,
.heatmap-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--heatmap-header-gap);
}
.heatmap-meta {
  margin-top: 0;
}
.heatmap-meta span,
.legend-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
}
.heatmap-meta span {
  justify-content: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.065);
  color: rgba(232, 226, 219, 0.76);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.014)),
    rgba(12, 15, 19, 0.28);
  box-shadow: none;
}
.heatmap-meta span::before {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  content: '';
  background: rgba(255, 255, 255, 0.3);
}
.heatmap-meta span:nth-child(1)::before {
  background: rgba(var(--heatmap-positive-rgb), 0.96);
  box-shadow: 0 0 14px rgba(var(--heatmap-positive-rgb), 0.24);
}
.heatmap-meta span:nth-child(2)::before {
  background: rgba(var(--heatmap-negative-rgb), 0.96);
  box-shadow: 0 0 14px rgba(var(--heatmap-negative-rgb), 0.22);
}
.heatmap-meta span:nth-child(3)::before {
  background: rgba(255, 255, 255, 0.34);
}
.heatmap-legend {
  margin-top: 12px;
  gap: 8px;
}
.legend-chip {
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(255, 255, 255, 0.024);
}
.legend-chip-negative {
  color: rgba(238, 227, 221, 0.86);
  background: rgba(var(--heatmap-negative-rgb), 0.14);
}
.legend-chip-flat {
  color: rgba(208, 202, 194, 0.62);
  background: rgba(255, 255, 255, 0.04);
}
.legend-chip-positive {
  color: rgba(229, 236, 228, 0.86);
  background: rgba(var(--heatmap-positive-rgb), 0.14);
}
.trade-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.mini-chart-shell {
  padding: 14px 14px 4px;
}
.mini-chart-shell .apexcharts-canvas {
  margin-top: 6px;
}
.trade-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.trade-stat-card {
  display: grid;
  gap: 8px;
  min-height: 108px;
  padding: 16px;
}
.data-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
}
.data-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.data-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: inherit;
  background: rgba(255, 255, 255, 0.045);
  text-align: left;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}
.data-row:hover {
  border-color: var(--color-border-strong);
  background: rgba(255, 255, 255, 0.08);
}
.data-row:active {
  transform: scale(0.99);
}
.data-row span {
  display: grid;
  min-width: 0;
  gap: 4px;
}
.data-row strong,
.data-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.data-row small {
  color: var(--color-muted);
}
.data-row em {
  font-style: normal;
  font-weight: 900;
}
.text-positive {
  color: var(--color-positive);
}
.text-negative {
  color: var(--color-negative);
}
.text-info {
  color: var(--color-cyan);
}
.text-neutral {
  color: var(--color-muted);
}
.market-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.market-strip button {
  display: grid;
  gap: 6px;
  min-height: 92px;
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: inherit;
  background: rgba(255, 255, 255, 0.045);
  text-align: left;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform var(--button-motion);
}
.market-strip button:hover {
  border-color: var(--color-border-strong);
  background: rgba(255, 255, 255, 0.075);
}
.market-strip button:active {
  transform: scale(0.98);
}
.market-strip span {
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 900;
}
.market-strip strong {
  font-size: 18px;
}
.market-strip small {
  font-weight: 900;
}
@media (max-width: 1180px) {

  .statistics-hero-side {
    min-width: 0;
    justify-items: start;
  }

  .statistics-badges {
    width: 100%;
  }

  .heatmap-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .heatmap-toolbar {
    width: 100%;
    justify-content: start;
  }
}
@media (max-width: 860px) {

  .statistics-account-picker {
    align-items: stretch;
    flex-direction: column;
  }

  .statistics-account-menu,
  .statistics-account-trigger {
    width: 100%;
  }

  .statistics-account-trigger {
    justify-content: space-between;
  }

  .account-dropdown-options:not([data-account-dropdown-floating]) {
    right: auto;
    left: 0;
    width: 100%;
  }

  .statistics-badges,
  .trade-breakdown-grid,
  .trade-stat-grid {
    grid-template-columns: 1fr;
  }

  .analytics-stat-artwork {
    right: -24px;
    width: 156px;
    height: 156px;
  }

  .calendar-weekdays,
  .calendar-grid {
    gap: 8px;
  }
}
@media (max-width: 560px) {

  .statistics-account-picker {
    padding: 0 0 2px;
  }

  .statistics-account-current h1,
  .statistics-account-title-row strong {
    font-size: 23px;
  }

  .statistics-account-heading {
    display: grid;
    gap: 8px;
  }

  .statistics-account-current p {
    font-size: 12px;
  }

  .account-dropdown-options {
    max-height: min(360px, calc(100dvh - 190px));
  }

  .account-dropdown-option {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .account-dropdown-option-meta {
    grid-template-columns: 1fr auto;
    align-items: center;
    justify-items: start;
  }

  .statistics-hero-copy h2,
  .statistics-teaser h2 {
    font-size: 24px;
  }

  .analytics-stat-artwork {
    right: -16px;
    width: 138px;
    height: 138px;
    opacity: 0.26;
  }

  .heatmap-heading {
    display: grid;
    align-items: start;
    gap: 12px;
    width: min(100%, calc(100vw - 70px));
  }

  .heatmap-heading-copy {
    width: 100%;
  }

  .calendar-title-nav {
    gap: 6px;
  }

  .calendar-title-nav .calendar-nav-button {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
  }

  .heatmap-toolbar {
    display: grid;
    width: min(100%, calc(100vw - 70px));
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    justify-content: stretch;
    gap: var(--heatmap-header-gap);
  }

  .heatmap-toolbar .heatmap-meta {
    display: grid;
    width: 100%;
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    gap: var(--heatmap-header-gap);
  }

  .heatmap-toolbar .heatmap-meta span:nth-child(3) {
    grid-column: auto;
  }

  .heatmap-meta span {
    min-width: 0;
    min-height: 28px;
    gap: 5px;
    padding: 0 7px;
    font-size: 9px;
    letter-spacing: 0.02em;
    white-space: nowrap;
    justify-content: center;
  }

  .heatmap-meta span::before {
    flex: 0 0 auto;
    width: 6px;
    height: 6px;
  }

  .heatmap-kpi {
    justify-self: start;
    max-width: 100%;
  }

  .view-toggle {
    justify-self: end;
  }

  .calendar-cell {
    min-height: 68px;
    padding: 9px;
    border-radius: 14px;
  }

  .calendar-cell.is-pending,
  .calendar-cell.is-empty {
    min-height: 46px;
  }

  .calendar-day-label {
    font-size: 12px;
  }

  .calendar-cell strong {
    font-size: 17px;
  }

  .calendar-pending-day {
    font-size: 16px;
  }
}
.workspace-grid-full .analytics-stat-card {
  --analytics-rgb: 117, 132, 158;
  border-color: rgba(157, 170, 196, 0.12);
}
.workspace-grid-full .analytics-stat-card::before,
.workspace-grid-full .trade-stat-card::before,
.workspace-grid-full .mini-chart-shell::before {
  display: none;
  content: none;
}
.workspace-grid-full .analytics-stat-artwork {
  opacity: 0.24;
  color: rgba(var(--analytics-rgb), 0.82);
  filter:
    drop-shadow(0 0 8px rgba(var(--analytics-rgb), 0.12))
    saturate(0.86);
}
.workspace-grid-full .analytics-art-glow,
.workspace-grid-full .analytics-tesseract-node,
.workspace-grid-full .analytics-binary-star-primary,
.workspace-grid-full .analytics-binary-star-secondary,
.workspace-grid-full .analytics-galaxy-core,
.workspace-grid-full .analytics-pulsar-core,
.workspace-grid-full .analytics-astrolabe-pointer-core,
.workspace-grid-full .analytics-astrolabe-pointer-head {
  filter: drop-shadow(0 0 6px rgba(var(--analytics-rgb), 0.18));
}
.workspace-grid-full .analytics-stat-card.tone-positive,
.workspace-grid-full .analytics-stat-card.tone-blue {
  --analytics-rgb: 99, 214, 186;
}
.workspace-grid-full .analytics-stat-card.tone-violet,
.workspace-grid-full .analytics-stat-card.tone-purple {
  --analytics-rgb: 111, 134, 255;
}
.workspace-grid-full .analytics-stat-card.tone-cyan {
  --analytics-rgb: 88, 116, 210;
}
.workspace-grid-full .analytics-stat-card.tone-magenta {
  --analytics-rgb: 190, 120, 168;
}
.workspace-grid-full .analytics-stat-card.tone-positive,
.workspace-grid-full .analytics-stat-card.tone-cyan,
.workspace-grid-full .analytics-stat-card.tone-violet,
.workspace-grid-full .analytics-stat-card.tone-purple,
.workspace-grid-full .analytics-stat-card.tone-magenta,
.workspace-grid-full .analytics-stat-card.tone-blue {
  border-color: rgba(var(--analytics-rgb), 0.14);
}
.workspace-grid-full .heatmap-panel {
  --heatmap-positive-rgb: 102, 156, 132;
  --heatmap-negative-rgb: 183, 114, 127;
  --heatmap-positive-surface-top-rgb: 22, 31, 28;
  --heatmap-positive-surface-bottom-rgb: 13, 18, 17;
  --heatmap-negative-surface-top-rgb: 34, 23, 27;
  --heatmap-negative-surface-bottom-rgb: 18, 14, 16;
}
@media (max-width: 1180px) {

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

  .stats-main-grid {
    grid-template-columns: 1fr;
  }

  .equity-chart-panel-statistics .chart-canvas,
  .equity-chart-panel-statistics .apex-chart-stage {
    min-height: 312px !important;
  }
}
@media (max-width: 560px) {

  .equity-chart-panel-statistics .chart-canvas,
  .equity-chart-panel-statistics .apex-chart-stage {
    min-height: 200px !important;
  }

  .analytics-summary-grid,
  .statistics-badges,
  .trade-breakdown-grid,
  .trade-stat-grid {
    grid-template-columns: 1fr;
  }
}
.workspace-grid-full .analytics-stat-card,
.workspace-grid-full .chart-panel,
.workspace-grid-full .data-panel {
  border-color: rgba(157, 170, 196, 0.13);
  background: rgba(12, 15, 22, 0.2);
  box-shadow: none;
}
.workspace-grid-full .chart-panel::before,
.workspace-grid-full .data-panel::before {
  display: none;
  content: none;
}
.workspace-grid-full .chart-panel::after,
.workspace-grid-full .data-panel::after {
  display: none;
  content: none;
}
.workspace-grid-full .analytics-stat-card span,
.workspace-grid-full .trade-stat-card span,
.workspace-grid-full .mini-chart-title,
.workspace-grid-full .panel-heading h3 span,
.workspace-grid-full .heatmap-heading h3 > span:not(.heatmap-title-main) {
  color: #8794aa;
}
.workspace-grid-full .chart-summary h3,
.workspace-grid-full .chart-summary strong,
.workspace-grid-full .panel-heading > strong,
.workspace-grid-full .heatmap-kpi strong {
  color: #63d6ba;
}
.workspace-grid-full .view-toggle button {
  border-color: rgba(157, 170, 196, 0.12);
  background: rgba(255, 255, 255, 0.028);
  color: #9aa6ba;
  box-shadow: none;
}
.workspace-grid-full .view-toggle button.is-active,
.workspace-grid-full .view-toggle button:hover {
  border-color: rgba(120, 145, 185, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.026)),
    rgba(35, 43, 58, 0.58);
  color: #eef3fb;
  box-shadow: none;
}
.workspace-grid-full .trade-stat-card,
.workspace-grid-full .mini-chart-shell,
.workspace-grid-full .data-row {
  border-color: rgba(157, 170, 196, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.014)),
    rgba(12, 15, 22, 0.58);
  box-shadow: none;
}
.workspace-grid-full .apex-chart-shell .apexcharts-tooltip.apexcharts-theme-dark {
  border-color: rgba(157, 170, 196, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(8, 10, 15, 0.98);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.44);
}
/* Terminal */
@property --terminal-submit-r {
  syntax: "<number>";
  inherits: false;
  initial-value: 82;
}
@property --terminal-submit-g {
  syntax: "<number>";
  inherits: false;
  initial-value: 230;
}
@property --terminal-submit-b {
  syntax: "<number>";
  inherits: false;
  initial-value: 184;
}
@property --terminal-submit-strong-r {
  syntax: "<number>";
  inherits: false;
  initial-value: 160;
}
@property --terminal-submit-strong-g {
  syntax: "<number>";
  inherits: false;
  initial-value: 245;
}
@property --terminal-submit-strong-b {
  syntax: "<number>";
  inherits: false;
  initial-value: 224;
}
@property --terminal-submit-shine-r {
  syntax: "<number>";
  inherits: false;
  initial-value: 216;
}
@property --terminal-submit-shine-g {
  syntax: "<number>";
  inherits: false;
  initial-value: 255;
}
@property --terminal-submit-shine-b {
  syntax: "<number>";
  inherits: false;
  initial-value: 244;
}
.terminal-layout {
  display: grid;
  width: 100%;
  margin: 0;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 20px;
  align-items: start;
}
.terminal-desk {
  display: grid;
  gap: 18px;
  min-width: 0;
}
.terminal-board,
.terminal-blotter,
.terminal-ticket {
  display: grid;
  min-width: 0;
  overflow: hidden;
}
.terminal-board,
.terminal-blotter {
  padding: 0;
}
.terminal-board-top {
  display: grid;
  gap: 16px;
  padding: 18px 20px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.terminal-market-headline {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 216px) auto repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: center;
}
.terminal-symbol-chip {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.026);
  text-align: left;
}
.terminal-symbol-chip-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 171, 55, 0.9), rgba(255, 129, 42, 0.8));
  color: #1c1300;
  font-size: 12px;
  font-weight: 900;
}
.terminal-symbol-chip strong {
  display: block;
  font-size: 24px;
}
.terminal-symbol-chip small,
.terminal-price-summary span,
.terminal-summary-stat span,
.terminal-board-meta span,
.terminal-ticket-account span,
.terminal-ticket-balance span,
.terminal-control-head span,
.terminal-stepper span,
.terminal-size-breakdown span,
.terminal-ticket-metrics span,
.terminal-empty-state p {
  color: var(--color-muted);
  font-size: 12px;
}
.terminal-price-summary,
.terminal-summary-stat {
  display: grid;
  gap: 6px;
}
.terminal-price-summary strong {
  color: var(--color-text);
  font-size: 34px;
  line-height: 1;
}
.terminal-summary-stat strong {
  color: var(--color-text);
  font-size: 20px;
}
.terminal-market-strip {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  padding-bottom: 2px;
}
.terminal-strip-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: var(--color-muted);
  background: rgba(255, 255, 255, 0.035);
  font-size: 13px;
  font-weight: 800;
  transition:
    border-color 180ms ease,
    color 180ms ease,
    background 180ms ease,
    transform var(--button-motion);
}
.terminal-strip-button strong {
  color: inherit;
}
.terminal-strip-button.is-active,
.terminal-strip-button:hover {
  border-color: rgba(92, 109, 229, 0.34);
  color: var(--color-text);
  background: rgba(92, 109, 229, 0.09);
}
.terminal-board-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.terminal-timeframes,
.terminal-toolbar-actions,
.terminal-ticket-types,
.terminal-blotter-tabs,
.terminal-blotter-actions,
.terminal-account-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.terminal-timeframes button,
.terminal-ticket-types button,
.terminal-blotter-tabs button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 800;
  transition:
    border-color 180ms ease,
    color 180ms ease,
    background 180ms ease,
    transform var(--button-motion);
}
.terminal-timeframes button.is-active,
.terminal-ticket-types button.is-active,
.terminal-timeframes button:hover,
.terminal-ticket-types button:hover {
  border-color: rgba(183, 121, 255, 0.24);
  color: var(--color-text);
  background: rgba(183, 121, 255, 0.1);
}
.terminal-blotter-tabs button.is-active,
.terminal-blotter-tabs button:hover {
  border-color: rgba(160, 245, 224, 0.18);
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.045);
}
.terminal-blotter-tabs button.is-active {
  box-shadow: inset 0 -2px 0 rgba(160, 245, 224, 0.92);
}
.terminal-board-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 14px 20px 0;
}
.terminal-chart-shell {
  min-width: 0;
  padding: 12px 18px 18px;
}
.terminal-chart-host,
.terminal-chart-loading {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 500px;
  overflow: hidden;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.01), transparent 14%),
    radial-gradient(circle at 18% 12%, rgba(92, 109, 229, 0.09), transparent 28%),
    radial-gradient(circle at 84% 0, rgba(183, 121, 255, 0.08), transparent 34%);
}
.terminal-chart-host::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  box-shadow: inset 0 -120px 160px rgba(0, 0, 0, 0.24);
}
.terminal-chart-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
}
.terminal-chart-loading-dots {
  display: inline-block;
  width: 1.5em;
}
.terminal-chart-loading-dots::before {
  content: "";
  animation: terminal-chart-loading-dots 1.2s steps(4, end) infinite;
}
@keyframes terminal-chart-loading-dots {
  0% {
    content: "";
  }

  25% {
    content: ".";
  }

  50% {
    content: "..";
  }

  75%,
  100% {
    content: "...";
  }
}
.terminal-blotter-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.terminal-blotter-body {
  min-width: 0;
  min-height: 320px;
  padding: 20px;
}
.terminal-table {
  --terminal-table-columns: 1fr;
  --terminal-table-min-width: 540px;
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  padding-bottom: 2px;
  scrollbar-color: rgba(157, 170, 196, 0.34) rgba(255, 255, 255, 0.04);
  scrollbar-width: thin;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
}
.terminal-table > * + * {
  margin-top: 10px;
}
.terminal-table::-webkit-scrollbar {
  height: 8px;
}
.terminal-table::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(157, 170, 196, 0.34);
}
.terminal-table::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}
.terminal-table-head,
.terminal-table-row {
  box-sizing: border-box;
  display: grid;
  width: max(100%, var(--terminal-table-min-width));
  grid-template-columns: var(--terminal-table-columns);
  gap: 10px;
  align-items: center;
}
.terminal-table--positions {
  --terminal-table-columns: 1.4fr 1.2fr 1fr 1fr 1.08fr 1.6fr 0.92fr 76px;
  --terminal-table-min-width: 920px;
}
.terminal-table--orders {
  --terminal-table-columns: 1.12fr 0.84fr 0.84fr 1.02fr 1.28fr 0.78fr;
  --terminal-table-min-width: 760px;
}
.terminal-table--orders.is-cancelable {
  --terminal-table-columns: 1.12fr 0.84fr 0.84fr 1.02fr 1.28fr 0.78fr minmax(86px, 0.66fr);
  --terminal-table-min-width: 860px;
}
.terminal-table--history {
  --terminal-table-columns:
    minmax(132px, 0.95fr) minmax(132px, 0.95fr) minmax(62px, 0.45fr)
    minmax(112px, 0.82fr) minmax(104px, 0.78fr) minmax(104px, 0.78fr)
    minmax(118px, 0.85fr) 34px;
  --terminal-table-min-width: 900px;
}
.terminal-table--history .terminal-table-head,
.terminal-table--history .terminal-table-row {
  gap: 14px;
}
.terminal-table-head {
  padding: 0 12px;
  color: var(--color-subtle);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.terminal-table-row {
  padding: 14px 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.028);
  color: var(--color-muted);
  font-size: 13px;
}
.terminal-table-row > span,
.terminal-table-row > strong,
.terminal-table-head > span {
  min-width: 0;
}
.terminal-table-row > strong,
.terminal-table-row > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.terminal-table-row strong {
  color: var(--color-text);
}
.terminal-position-symbol-cell,
.terminal-position-stack,
.terminal-history-stack {
  display: flex;
  min-width: 0;
}
.terminal-position-symbol-cell {
  align-items: center;
  gap: 7px;
}
.terminal-position-stack,
.terminal-history-stack {
  flex-direction: column;
  gap: 3px;
}
.terminal-position-primary {
  color: var(--color-text);
}
.terminal-position-secondary,
.terminal-position-leverage {
  color: var(--color-subtle);
  font-size: 11px;
  font-weight: 700;
}
.terminal-history-stack .is-positive {
  color: var(--color-positive);
}
.terminal-history-stack .is-negative {
  color: var(--color-negative);
}
.terminal-position-row {
  position: relative;
  overflow: hidden;
  padding-left: 16px;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    transform var(--button-motion);
}
.terminal-order-row {
  position: relative;
  overflow: hidden;
  padding-left: 16px;
}
.terminal-position-row::before,
.terminal-order-row::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  content: "";
}
.terminal-position-row.is-long::before,
.terminal-order-row.is-long::before {
  background: var(--color-positive);
}
.terminal-position-row.is-short::before,
.terminal-order-row.is-short::before {
  background: var(--color-negative);
}
.terminal-order-tpsl-summary {
  cursor: default;
}
.terminal-order-tpsl-summary:hover,
.terminal-order-tpsl-summary:focus-visible {
  background: transparent;
}
.terminal-position-row:hover,
.terminal-position-row:focus-visible {
  border-color: rgba(139, 124, 246, 0.24);
  background:
    linear-gradient(180deg, rgba(139, 124, 246, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(255, 255, 255, 0.032);
  box-shadow: inset 0 0 0 1px rgba(139, 124, 246, 0.06);
  outline: none;
}
.terminal-position-row:active {
  transform: scale(0.998);
}
.terminal-table-action-cell {
  display: flex;
  justify-content: flex-end;
}
.terminal-position-actions {
  gap: 6px;
}
.terminal-pnl-action,
.terminal-position-close-action {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: var(--color-muted);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.072), rgba(255, 255, 255, 0.018)),
    rgba(255, 255, 255, 0.035);
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    transform var(--button-motion);
}
.terminal-pnl-action:hover,
.terminal-pnl-action:focus-visible {
  border-color: rgba(var(--color-positive-rgb), 0.34);
  color: var(--color-positive);
  background: rgba(var(--color-positive-rgb), 0.1);
}
.terminal-pnl-action:active {
  transform: scale(0.95);
}
.terminal-position-close-action:hover,
.terminal-position-close-action:focus-visible {
  border-color: rgba(var(--color-negative-rgb), 0.34);
  color: var(--color-negative);
  background: rgba(var(--color-negative-rgb), 0.1);
}
.terminal-position-close-action {
  border-color: rgba(var(--color-negative-rgb), 0.34);
  color: var(--color-negative);
  background: rgba(var(--color-negative-rgb), 0.1);
}
.terminal-position-close-action:active {
  transform: scale(0.95);
}
.terminal-empty-state {
  display: grid;
  min-height: 240px;
  place-items: center;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.016), rgba(255, 255, 255, 0.008)),
    rgba(0, 0, 0, 0.08);
  text-align: center;
}
.terminal-position-tpsl-cell,
.terminal-position-tpsl-summary,
.terminal-position-tpsl-empty {
  min-width: 0;
}
.terminal-position-tpsl-cell {
  display: block;
}
.terminal-position-tpsl-summary,
.terminal-position-tpsl-empty {
  width: 100%;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  cursor: pointer;
}
.terminal-position-tpsl-summary {
  display: grid;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 10px;
  text-align: left;
  transition:
    background 180ms ease,
    color 180ms ease;
}
.terminal-position-tpsl-summary:hover,
.terminal-position-tpsl-summary:focus-visible {
  background: rgba(255, 255, 255, 0.055);
  outline: none;
}
.terminal-position-tpsl-empty {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 9px;
  border-radius: 10px;
  color: var(--color-muted);
  transition:
    background 180ms ease,
    color 180ms ease;
}
.terminal-position-tpsl-empty:hover,
.terminal-position-tpsl-empty:focus-visible {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.055);
  outline: none;
}
.terminal-position-tpsl-row {
  display: grid;
  grid-template-columns: 8px 26px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  line-height: 1;
}
.terminal-position-tpsl-dot {
  width: 7px;
  height: 7px;
  border: 1px solid rgba(157, 170, 196, 0.42);
  border-radius: 999px;
}
.terminal-position-tpsl-dot.is-tp.is-set {
  border-color: transparent;
  background: var(--color-positive);
}
.terminal-position-tpsl-dot.is-sl.is-set {
  border-color: transparent;
  background: var(--color-negative);
}
.terminal-position-tpsl-label {
  color: var(--color-subtle);
  font-size: 11px;
  font-weight: 700;
}
.terminal-position-tpsl-value {
  overflow: hidden;
  color: var(--color-text);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.terminal-position-tpsl-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px 24px 24px calc(24px + var(--app-sidebar-width, 0px));
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.terminal-position-tpsl-dialog {
  position: relative;
  display: grid;
  width: min(360px, 100%);
  max-height: calc(100vh - 48px);
  gap: 13px;
  overflow-y: auto;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  background: rgba(8, 11, 18, 0.96);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.42);
}
.terminal-position-tpsl-dialog header {
  display: grid;
  gap: 4px;
  padding-right: 42px;
}
.terminal-position-tpsl-dialog header span {
  color: var(--color-muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.terminal-position-tpsl-dialog header strong {
  color: var(--color-text);
  font-size: 18px;
  font-weight: 900;
}
.terminal-position-tpsl-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.03);
}
.terminal-ticket {
  position: sticky;
  top: 0;
  overflow: visible;
  gap: 16px;
  padding: 18px;
  align-self: start;
  transition:
    border-color 320ms ease,
    box-shadow 320ms ease;
}
.terminal-ticket.is-buy {
  border-color: rgba(var(--color-positive-rgb), 0.1);
  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.48),
    inset 0 -1px 0 rgba(var(--color-positive-rgb), 0.045);
}
.terminal-ticket.is-sell {
  border-color: rgba(var(--color-negative-rgb), 0.1);
  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.48),
    inset 0 -1px 0 rgba(var(--color-negative-rgb), 0.045);
}
.terminal-ticket-tone {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 420ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.terminal-ticket-tone--buy {
  background:
    radial-gradient(circle at 18% 12%, rgba(var(--color-positive-rgb), 0.12), transparent 30%),
    radial-gradient(circle at 86% 4%, rgba(var(--color-positive-soft-rgb), 0.08), transparent 24%),
    linear-gradient(180deg, rgba(var(--color-positive-rgb), 0.035), transparent 28%);
}
.terminal-ticket-tone--sell {
  background:
    radial-gradient(circle at 18% 12%, rgba(var(--color-negative-rgb), 0.12), transparent 30%),
    radial-gradient(circle at 86% 4%, rgba(183, 121, 255, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(var(--color-negative-rgb), 0.035), transparent 28%);
}
.terminal-ticket.is-buy .terminal-ticket-tone--buy,
.terminal-ticket.is-sell .terminal-ticket-tone--sell {
  opacity: 0.72;
}
.terminal-account-dropdown {
  position: relative;
  z-index: 12;
  display: grid;
}
.terminal-ticket-account {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  background:
    radial-gradient(circle at 13% 18%, rgba(255, 139, 218, 0.22), transparent 42%),
    radial-gradient(circle at 76% 18%, rgba(92, 109, 229, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(10, 13, 24, 0.22), rgba(10, 13, 24, 0.64)), rgba(8, 12, 22, 0.8);
  /* Must match the number of background layers; re-add a blend mode if an image layer returns. */
  background-blend-mode: normal, normal, normal, normal;
}
.terminal-ticket-account-trigger {
  width: 100%;
  text-align: left;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform var(--button-motion),
    box-shadow 180ms ease;
}
.terminal-ticket-account-trigger:hover,
.terminal-ticket-account-trigger.is-open {
  border-color: rgba(152, 167, 255, 0.22);
  background:
    radial-gradient(circle at 13% 18%, rgba(255, 139, 218, 0.28), transparent 44%),
    radial-gradient(circle at 76% 18%, rgba(92, 109, 229, 0.24), transparent 36%),
    linear-gradient(135deg, rgba(10, 13, 24, 0.14), rgba(10, 13, 24, 0.58)), rgba(8, 12, 22, 0.88);
  box-shadow: 0 18px 34px rgba(5, 9, 18, 0.28);
}
.terminal-ticket-account-main,
.terminal-ticket-account-side {
  display: grid;
  gap: 8px;
}
.terminal-ticket-account-side {
  justify-items: end;
}
.terminal-ticket-account strong {
  color: var(--color-text);
  font-size: 28px;
}
.terminal-ticket-account span,
.terminal-ticket-account strong,
.terminal-ticket-account small {
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.62);
}
.terminal-ticket-badge {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(160, 245, 224, 0.12);
  color: #a0f5e0;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
}
.terminal-ticket-badge.is-demo {
  background: rgba(138, 168, 255, 0.12);
  color: #b8c8ff;
}
.terminal-ticket-account-meta {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--color-muted);
  justify-content: flex-end;
}
.terminal-ticket-account-meta small {
  color: inherit;
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}
.terminal-account-chevron {
  color: rgba(255, 255, 255, 0.44);
  transition:
    transform 180ms ease,
    color 180ms ease;
}
.terminal-ticket-account-trigger:hover .terminal-account-chevron,
.terminal-ticket-account-trigger.is-open .terminal-account-chevron {
  color: var(--color-text);
}
.terminal-account-chevron.is-open {
  transform: rotate(180deg);
}
.terminal-symbol-chip:focus-visible,
.terminal-toolbar-icon-button:focus-visible,
.terminal-indicator-button:focus-visible,
.terminal-ticket-account-trigger:focus-visible,
.terminal-symbol-option:focus-visible,
.terminal-symbol-option-main:focus-visible,
.terminal-symbol-favorite-toggle:focus-visible,
.terminal-toolbar-dropdown button:focus-visible,
.terminal-indicator-option:focus-visible,
.account-dropdown-option:focus-visible,
.terminal-chart-mode-option:focus-visible,
.terminal-chart-mode-star:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 1px rgba(168, 205, 255, 0.48),
    0 0 0 4px rgba(92, 109, 229, 0.18);
}
.terminal-segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  transition:
    border-color 320ms ease,
    background 320ms ease,
    box-shadow 320ms ease;
}
.terminal-ticket.is-buy .terminal-segmented {
  border-color: rgba(var(--color-positive-rgb), 0.16);
  background: linear-gradient(
    135deg,
    rgba(var(--color-positive-rgb), 0.05),
    rgba(255, 255, 255, 0.03)
  );
}
.terminal-ticket.is-sell .terminal-segmented {
  border-color: rgba(var(--color-negative-rgb), 0.16);
  background: linear-gradient(
    135deg,
    rgba(var(--color-negative-rgb), 0.05),
    rgba(255, 255, 255, 0.03)
  );
}
.terminal-segmented button {
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    transform var(--button-motion);
}
.terminal-segmented button:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.07);
}
.terminal-segmented button.is-active {
  color: white;
  border-color: rgba(255, 255, 255, 0.12);
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
}
.terminal-segmented .is-buy.is-active {
  border-color: rgba(var(--color-positive-rgb), 0.34);
  background: linear-gradient(
    135deg,
    rgba(var(--color-positive-rgb), 0.56),
    rgba(var(--color-positive-soft-rgb), 0.26)
  );
}
.terminal-segmented .is-sell.is-active {
  border-color: rgba(var(--color-negative-rgb), 0.34);
  background: linear-gradient(
    135deg,
    rgba(var(--color-negative-rgb), 0.56),
    rgba(183, 121, 255, 0.26)
  );
}
.terminal-ticket-types {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.terminal-ticket-balance {
  display: grid;
  gap: 4px;
}
.terminal-ticket-balance strong,
.terminal-control-head strong,
.terminal-size-breakdown strong,
.terminal-ticket-metrics strong {
  color: var(--color-text);
  font-size: 18px;
}
.terminal-ticket-metrics strong {
  font-size: clamp(14px, 0.9vw + 8px, 16px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.terminal-control-card {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
  transition:
    border-color 320ms ease,
    background 320ms ease,
    box-shadow 320ms ease;
}
.terminal-ticket.is-buy .terminal-control-card,
.terminal-ticket.is-buy .terminal-size-breakdown article,
.terminal-ticket.is-buy .terminal-ticket-metrics article,
.terminal-ticket.is-buy .terminal-order-summary article,
.terminal-ticket.is-buy .terminal-ticket-account {
  border-color: rgba(var(--color-positive-rgb), 0.08);
  background:
    linear-gradient(
      135deg,
      rgba(var(--color-positive-rgb), 0.038),
      rgba(var(--color-positive-soft-rgb), 0.024) 58%,
      rgba(255, 255, 255, 0.018)
    ),
    rgba(255, 255, 255, 0.024);
}
.terminal-ticket.is-sell .terminal-control-card,
.terminal-ticket.is-sell .terminal-size-breakdown article,
.terminal-ticket.is-sell .terminal-ticket-metrics article,
.terminal-ticket.is-sell .terminal-order-summary article,
.terminal-ticket.is-sell .terminal-ticket-account {
  border-color: rgba(var(--color-negative-rgb), 0.08);
  background:
    linear-gradient(
      135deg,
      rgba(var(--color-negative-rgb), 0.038),
      rgba(183, 121, 255, 0.024) 58%,
      rgba(255, 255, 255, 0.018)
    ),
    rgba(255, 255, 255, 0.024);
}
.terminal-price-input-shell input[aria-invalid="true"] {
  border-color: rgba(var(--color-negative-rgb), 0.36);
  background: rgba(var(--color-negative-rgb), 0.06);
}
.terminal-tpsl-panel {
  display: grid;
  gap: 10px;
}
.terminal-tpsl-card {
  gap: 12px;
}
.terminal-tpsl-mode-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.terminal-tpsl-mode-row .terminal-size-toggle {
  flex: 0 0 auto;
  gap: 4px;
}
.terminal-tpsl-mode-row .terminal-size-toggle button {
  min-width: 38px;
  min-height: 30px;
  padding: 0 10px;
}
.terminal-tpsl-mode-row > span {
  min-width: 0;
  overflow: hidden;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 800;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.terminal-tpsl-range-control {
  gap: 6px;
  padding-top: 1px;
}
.terminal-tpsl-range-control .terminal-range-labels {
  height: 18px;
}
.terminal-tpsl-card .terminal-price-input-shell {
  grid-template-columns: minmax(0, 1fr);
}
.terminal-tpsl-error {
  margin: 0;
  padding: 0 2px;
  color: var(--color-negative);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.35;
}
.terminal-ticket.is-buy .terminal-ticket-account,
.terminal-ticket.is-sell .terminal-ticket-account {
  background:
    radial-gradient(circle at 13% 18%, rgba(255, 139, 218, 0.24), transparent 42%),
    radial-gradient(circle at 76% 18%, rgba(92, 109, 229, 0.2), transparent 34%),
    linear-gradient(135deg, rgba(10, 13, 24, 0.16), rgba(10, 13, 24, 0.58)), rgba(8, 12, 22, 0.82);
  /* Must match the number of background layers; re-add a blend mode if an image layer returns. */
  background-blend-mode: normal, normal, normal, normal;
}
.terminal-ticket.is-buy .terminal-ticket-account-trigger:hover,
.terminal-ticket.is-buy .terminal-ticket-account-trigger.is-open,
.terminal-ticket.is-sell .terminal-ticket-account-trigger:hover,
.terminal-ticket.is-sell .terminal-ticket-account-trigger.is-open {
  background:
    radial-gradient(circle at 13% 18%, rgba(255, 139, 218, 0.3), transparent 44%),
    radial-gradient(circle at 76% 18%, rgba(92, 109, 229, 0.26), transparent 36%),
    linear-gradient(135deg, rgba(10, 13, 24, 0.1), rgba(10, 13, 24, 0.52)), rgba(8, 12, 22, 0.88);
}
.terminal-control-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.terminal-size-toggle {
  display: flex;
  align-items: center;
  padding: 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}
.terminal-size-toggle button {
  min-width: 42px;
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--color-muted);
  font-weight: 800;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    transform var(--button-motion);
}
.terminal-size-toggle button.is-active {
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.08);
}
.terminal-stepper {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.terminal-stepper button {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.028);
  color: var(--color-muted);
  transition:
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    transform var(--button-motion);
}
.terminal-stepper button i {
  display: block;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}
.terminal-stepper button.is-active i {
  background: rgba(160, 245, 224, 0.9);
  box-shadow: 0 0 12px rgba(160, 245, 224, 0.34);
}
.terminal-stepper button.is-active,
.terminal-stepper button:hover {
  border-color: rgba(160, 245, 224, 0.22);
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text);
}
.terminal-range-control {
  --range-accent-rgb: var(--color-positive-rgb);
  --range-progress: 0%;
  --range-thumb-size: 18px;
  display: grid;
  gap: 10px;
  padding: 3px 0 0;
}
.terminal-range-control input[type='range'] {
  width: 100%;
  height: 26px;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  accent-color: rgb(var(--range-accent-rgb));
  appearance: none;
}
.terminal-range-control input[type='range']:focus {
  outline: none;
}
.terminal-range-control input[type='range']::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(var(--range-accent-rgb), 0.42) 0 var(--range-progress),
    rgba(157, 170, 196, 0.16) var(--range-progress) 100%
  );
}
.terminal-range-control input[type='range']::-webkit-slider-thumb {
  width: var(--range-thumb-size);
  height: var(--range-thumb-size);
  margin-top: calc((5px - var(--range-thumb-size)) / 2);
  border: 3px solid #141922;
  border-radius: 50%;
  background: #6f7888;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 6px 14px rgba(0, 0, 0, 0.3);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
  appearance: none;
}
.terminal-range-control input[type='range']:hover::-webkit-slider-thumb {
  transform: scale(1.06);
}
.terminal-range-control input[type='range']:focus-visible::-webkit-slider-thumb {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 0 5px rgba(157, 170, 196, 0.14),
    0 6px 14px rgba(0, 0, 0, 0.3);
}
.terminal-range-control input[type='range']::-moz-range-track {
  height: 5px;
  border-radius: 999px;
  background: rgba(157, 170, 196, 0.16);
}
.terminal-range-control input[type='range']::-moz-range-progress {
  height: 5px;
  border-radius: 999px;
  background: rgba(var(--range-accent-rgb), 0.42);
}
.terminal-range-control input[type='range']::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 3px solid #141922;
  border-radius: 50%;
  background: #6f7888;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 6px 14px rgba(0, 0, 0, 0.3);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}
.terminal-range-control input[type='range']:hover::-moz-range-thumb {
  transform: scale(1.06);
}
.terminal-range-control input[type='range']:focus-visible::-moz-range-thumb {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 0 5px rgba(157, 170, 196, 0.14),
    0 6px 14px rgba(0, 0, 0, 0.3);
}
.terminal-range-labels {
  position: relative;
  height: 24px;
  color: rgba(154, 166, 186, 0.64);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.terminal-range-labels span {
  position: absolute;
  left: var(--range-label-position);
  top: 0;
  min-width: 0;
  max-width: 64px;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  transform: translateX(-50%);
  white-space: nowrap;
  transition:
    color 180ms ease,
    opacity 180ms ease;
}
.terminal-range-labels span.is-active {
  color: rgba(247, 249, 255, 0.96);
}
.terminal-range-labels span::before {
  content: '';
  display: block;
  width: 2px;
  height: 2px;
  margin: 0 auto 6px;
  border-radius: 999px;
  background: rgba(157, 170, 196, 0.3);
}
.terminal-range-labels span.is-active::before {
  width: 12px;
  background: rgba(186, 196, 212, 0.76);
}
/* When the ticket switches to sell/short, the range track must flip to the negative accent color. */
.terminal-ticket.is-sell .terminal-range-control {
  --range-accent-rgb: var(--color-negative-rgb);
}
.terminal-size-value {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.terminal-size-value input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-text);
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  appearance: textfield;
}
.terminal-size-value input:focus {
  outline: none;
}
.terminal-size-value input::-webkit-outer-spin-button,
.terminal-size-value input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}
.terminal-size-value.is-usd input {
  font-size: clamp(25.5px, 2.85vw, 31.5px);
}
.terminal-size-value span {
  color: var(--color-text);
  font-size: 13.5px;
  font-weight: 800;
}
.terminal-price-input-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}
.terminal-price-input-shell input {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.028);
  color: var(--color-text);
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
  appearance: textfield;
}
.terminal-price-input-shell input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}
.terminal-price-input-shell input:focus {
  outline: none;
}
.terminal-price-input-shell input:focus-visible {
  border-color: rgba(160, 245, 224, 0.22);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 0 3px rgba(160, 245, 224, 0.08);
}
.terminal-price-input-shell input::-webkit-outer-spin-button,
.terminal-price-input-shell input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}
.terminal-price-input-shell button {
  min-width: 68px;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-text);
  font-weight: 700;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform var(--button-motion);
}
.terminal-price-input-shell button:hover {
  border-color: rgba(160, 245, 224, 0.22);
  background: rgba(255, 255, 255, 0.05);
}
.terminal-ticket-metrics,
.terminal-order-summary {
  display: grid;
  gap: 10px;
}
.terminal-ticket-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.terminal-order-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.terminal-size-breakdown {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.terminal-size-breakdown article,
.terminal-ticket-metrics article,
.terminal-order-summary article {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  transition:
    border-color 320ms ease,
    background 320ms ease,
    box-shadow 320ms ease;
}
.terminal-checkbox {
  position: relative;
  display: inline-grid;
  grid-template-columns: 22px minmax(0, auto);
  align-items: center;
  gap: 10px;
  color: var(--color-muted);
  cursor: pointer;
}
.terminal-checkbox input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.terminal-checkbox-mark {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: transparent;
  background: rgba(255, 255, 255, 0.03);
  transition:
    border-color 180ms ease,
    color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}
.terminal-checkbox-label {
  line-height: 1.25;
}
.terminal-checkbox:hover .terminal-checkbox-mark {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
}
.terminal-checkbox input:checked + .terminal-checkbox-mark {
  color: var(--color-text);
  border-color: transparent;
  background: linear-gradient(135deg, rgba(92, 109, 229, 0.92), rgba(183, 121, 255, 0.92));
  box-shadow: none;
}
.terminal-checkbox input:focus-visible + .terminal-checkbox-mark {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
}
.terminal-submit {
  --program-rgb: var(--terminal-submit-r), var(--terminal-submit-g), var(--terminal-submit-b);
  --program-strong-rgb: var(--terminal-submit-strong-r), var(--terminal-submit-strong-g), var(--terminal-submit-strong-b);
  --program-shine-rgb: var(--terminal-submit-shine-r), var(--terminal-submit-shine-g), var(--terminal-submit-shine-b);
  --terminal-submit-r: 82;
  --terminal-submit-g: 230;
  --terminal-submit-b: 184;
  --terminal-submit-strong-r: 160;
  --terminal-submit-strong-g: 245;
  --terminal-submit-strong-b: 224;
  --terminal-submit-shine-r: 216;
  --terminal-submit-shine-g: 255;
  --terminal-submit-shine-b: 244;
  width: 100%;
}
.terminal-submit.summary-buy.primary-button {
  min-height: 58px;
  border-color: rgba(var(--program-shine-rgb), 0.36);
  box-shadow:
    inset 0 -1px 0 rgba(var(--program-rgb), 0.24),
    0 0 0 1px rgba(var(--program-rgb), 0.18),
    0 0 34px rgba(var(--program-rgb), 0.24),
    0 18px 34px rgba(0, 0, 0, 0.34);
  transition:
    --terminal-submit-r 280ms cubic-bezier(0.22, 0.61, 0.36, 1),
    --terminal-submit-g 280ms cubic-bezier(0.22, 0.61, 0.36, 1),
    --terminal-submit-b 280ms cubic-bezier(0.22, 0.61, 0.36, 1),
    --terminal-submit-strong-r 280ms cubic-bezier(0.22, 0.61, 0.36, 1),
    --terminal-submit-strong-g 280ms cubic-bezier(0.22, 0.61, 0.36, 1),
    --terminal-submit-strong-b 280ms cubic-bezier(0.22, 0.61, 0.36, 1),
    --terminal-submit-shine-r 280ms cubic-bezier(0.22, 0.61, 0.36, 1),
    --terminal-submit-shine-g 280ms cubic-bezier(0.22, 0.61, 0.36, 1),
    --terminal-submit-shine-b 280ms cubic-bezier(0.22, 0.61, 0.36, 1),
    border-color 280ms cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 280ms cubic-bezier(0.22, 0.61, 0.36, 1),
    filter 180ms ease,
    transform var(--button-motion);
}
.terminal-submit.is-buy {
  --terminal-submit-r: 82;
  --terminal-submit-g: 230;
  --terminal-submit-b: 184;
  --terminal-submit-strong-r: 160;
  --terminal-submit-strong-g: 245;
  --terminal-submit-strong-b: 224;
  --terminal-submit-shine-r: 216;
  --terminal-submit-shine-g: 255;
  --terminal-submit-shine-b: 244;
}
.terminal-submit.is-buy.summary-buy.primary-button {
  border-color: rgba(160, 245, 224, 0.44);
}
.terminal-submit.is-buy.summary-buy.primary-button::before {
  padding: 2.1px;
  background: conic-gradient(
    from var(--plan-border-angle),
    rgba(34, 211, 159, 0.48),
    rgba(82, 230, 184, 0.94),
    rgba(216, 255, 244, 0.9),
    rgba(255, 255, 255, 0.82),
    rgba(125, 249, 216, 0.96),
    rgba(34, 211, 159, 0.82),
    rgba(34, 211, 159, 0.48)
  );
  opacity: 1;
}
.terminal-submit.is-sell {
  --terminal-submit-r: 255;
  --terminal-submit-g: 107;
  --terminal-submit-b: 142;
  --terminal-submit-strong-r: 255;
  --terminal-submit-strong-g: 141;
  --terminal-submit-strong-b: 174;
  --terminal-submit-shine-r: 255;
  --terminal-submit-shine-g: 209;
  --terminal-submit-shine-b: 220;
}
.terminal-submit.is-sell.summary-buy.primary-button {
  border-color: rgba(255, 141, 174, 0.48);
}
.terminal-submit.is-sell.summary-buy.primary-button::before {
  padding: 2.1px;
  background: conic-gradient(
    from var(--plan-border-angle),
    rgba(255, 78, 121, 0.5),
    rgba(255, 107, 142, 0.98),
    rgba(255, 209, 220, 0.92),
    rgba(255, 255, 255, 0.8),
    rgba(255, 141, 174, 1),
    rgba(255, 78, 121, 0.84),
    rgba(255, 78, 121, 0.5)
  );
  opacity: 1;
}
.terminal-submit:disabled {
  cursor: not-allowed;
  opacity: 0.56;
  transform: none;
}
.terminal-submit-error {
  color: var(--color-negative);
  font-size: 0.78rem;
  line-height: 1.35;
  margin: -4px 0 2px;
}
.terminal-layout .terminal-entry-price-card .terminal-price-input-shell input,
.terminal-layout .terminal-tpsl-card .terminal-price-input-shell input {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(4, 11, 24, 0.38);
}
.terminal-layout .terminal-entry-price-card .terminal-price-input-shell input:hover,
.terminal-layout .terminal-entry-price-card .terminal-price-input-shell input:focus-visible,
.terminal-layout .terminal-tpsl-card .terminal-price-input-shell input:hover,
.terminal-layout .terminal-tpsl-card .terminal-price-input-shell input:focus-visible {
  border-color: rgba(139, 124, 246, 0.36);
  background: rgba(7, 16, 34, 0.72);
  box-shadow: inset 0 0 0 2px rgba(139, 124, 246, 0.08);
}
.is-positive {
  color: var(--color-positive);
}
.is-negative {
  color: var(--color-negative);
}
.terminal-price-summary .is-positive,
.terminal-summary-stat .is-positive,
.terminal-board-meta .is-positive,
.terminal-table-row .is-positive,
.terminal-order-summary .is-positive {
  color: var(--color-positive);
}
.terminal-price-summary .is-negative,
.terminal-summary-stat .is-negative,
.terminal-board-meta .is-negative,
.terminal-table-row .is-negative,
.terminal-order-summary .is-negative {
  color: var(--color-negative);
}
.terminal-pnl-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px 24px 24px calc(24px + var(--app-sidebar-width, 0px));
  background:
    radial-gradient(circle at 50% 42%, rgba(183, 121, 255, 0.16), transparent 34%),
    rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(22px) saturate(120%);
  -webkit-backdrop-filter: blur(22px) saturate(120%);
  transition: padding var(--sidebar-motion);
}
.terminal-pnl-dialog {
  position: relative;
  display: grid;
  width: min(var(--pnl-dialog-width, 860px), 100%);
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)),
    rgba(7, 8, 12, 0.88);
  box-shadow: var(--shadow-panel);
  transition:
    width 160ms ease,
    border-color 220ms ease;
}
.terminal-pnl-dialog.is-profit {
  border-color: rgba(var(--color-positive-rgb), 0.32);
}
.terminal-pnl-dialog.is-loss {
  border-color: rgba(var(--color-negative-rgb), 0.34);
}
.terminal-pnl-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--color-text);
  background: rgba(0, 0, 0, 0.34);
}
.terminal-pnl-modal-close:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
}
.terminal-pnl-modal-title {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 2px 44px 0 2px;
}
.terminal-pnl-modal-title h2,
.terminal-pnl-modal-title p {
  margin: 0;
}
.terminal-pnl-modal-title h2 {
  color: var(--color-text);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 900;
  line-height: 1.08;
}
.terminal-pnl-modal-title p {
  overflow: hidden;
  color: rgba(247, 249, 255, 0.32);
  font-size: clamp(17px, 2.2vw, 23px);
  font-weight: 900;
  line-height: 1.08;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.terminal-pnl-card-stage {
  position: relative;
  display: flex;
  min-width: 0;
  justify-content: center;
}
.terminal-pnl-card {
  position: relative;
  display: block;
  overflow: hidden;
  width: min(100%, calc((100dvh - 218px) * var(--pnl-card-aspect-number, 1.7778)));
  height: auto;
  aspect-ratio: var(--pnl-card-aspect, 16 / 9);
  border-radius: 18px;
  background: var(--pnl-card-image) center / cover no-repeat;
  isolation: isolate;
  transition:
    width 160ms ease,
    aspect-ratio 160ms ease,
    border-radius 220ms ease;
}
.terminal-pnl-card::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: rgba(0, 0, 0, 0.08);
}
.terminal-pnl-card-frame {
  position: absolute;
  inset: 30px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(18px, 3vw, 34px);
  border-radius: 20px;
}
.terminal-pnl-card.is-profit .terminal-pnl-card-frame {
  color: var(--color-positive);
}
.terminal-pnl-card.is-loss .terminal-pnl-card-frame {
  color: var(--color-negative);
}
.terminal-pnl-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.terminal-pnl-brand-mark,
.terminal-pnl-card-main span,
.terminal-pnl-card-grid span {
  color: rgba(247, 249, 255, 0.7);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.terminal-pnl-brand-mark {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  color: var(--color-text);
  font-size: clamp(16px, 2.1vw, 32px);
  letter-spacing: 0;
  text-transform: none;
  filter: drop-shadow(0 10px 26px rgba(0, 0, 0, 0.42));
}
.terminal-pnl-brand-mark span:first-child {
  color: #f7f9ff;
}
.terminal-pnl-brand-mark span:last-child {
  color: transparent;
  background: linear-gradient(105deg, #52e6b8 0%, #9ff7d9 34%, #77d8ff 58%, #ff6bcb 100%);
  background-clip: text;
  -webkit-background-clip: text;
}
.terminal-pnl-card-head strong {
  max-width: 54%;
  color: var(--color-text);
  font-size: clamp(20px, 4vw, 44px);
  font-weight: 950;
  line-height: 1;
  text-align: right;
}
.terminal-pnl-card-main {
  align-self: center;
}
.terminal-pnl-card-side {
  display: inline-grid;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.26);
}
.terminal-pnl-card-main strong {
  display: block;
  color: currentColor;
  font-size: clamp(54px, 11vw, 132px);
  font-weight: 950;
  line-height: 0.88;
}
.terminal-pnl-card-main > span:last-child {
  display: block;
  margin-top: 12px;
}
.terminal-pnl-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.terminal-pnl-card-grid div {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.26);
}
.terminal-pnl-card-grid strong {
  overflow: hidden;
  color: currentColor;
  font-size: clamp(18px, 2.5vw, 30px);
  font-weight: 950;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.terminal-pnl-card-next {
  position: absolute;
  top: 50%;
  right: 14px;
  z-index: 2;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  color: var(--color-text);
  background: rgba(0, 0, 0, 0.28);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
  transform: translateY(-50%);
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform var(--button-motion);
}
.terminal-pnl-card-next:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-50%) translateX(2px);
}
.terminal-pnl-card-next:active {
  transform: translateY(-50%) scale(0.96);
}
.terminal-pnl-card-next svg {
  transform: translateX(1px);
}
.terminal-pnl-share-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.terminal-pnl-share-button {
  display: inline-flex;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  color: var(--color-text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.026)),
    rgba(255, 255, 255, 0.04);
  font-size: 13px;
  font-weight: 900;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform var(--button-motion);
}
.terminal-pnl-share-button:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.09);
}
.terminal-pnl-share-button:active {
  transform: scale(0.98);
}
.terminal-pnl-share-copy-icon {
  transform: translateY(-1px);
}
.terminal-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 24px 24px 24px calc(24px + var(--app-sidebar-width, 0px));
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.terminal-confirm-dialog {
  position: relative;
  display: grid;
  width: min(380px, 100%);
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  background: rgba(8, 11, 18, 0.98);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.42);
}
.terminal-position-details-dialog {
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}
.terminal-confirm-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  color: var(--color-muted);
  background: transparent;
}
.terminal-confirm-close:hover {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.1);
}
.terminal-confirm-header {
  display: grid;
  gap: 6px;
  padding-right: 34px;
}
.terminal-confirm-header h2,
.terminal-confirm-header p {
  margin: 0;
}
.terminal-confirm-header h2 {
  color: var(--color-text);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.12;
}
.terminal-confirm-header p {
  margin-top: 5px;
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 700;
}
.terminal-confirm-details span {
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 700;
}
.terminal-confirm-details {
  display: grid;
  overflow: hidden;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}
.terminal-confirm-details article {
  display: flex;
  min-height: 41px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-width: 0 0 1px;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.065);
  border-radius: 0;
  background: transparent;
}
.terminal-confirm-details article:last-child {
  border-bottom: 0;
}
.terminal-confirm-details strong {
  min-width: 0;
  color: var(--color-text);
  font-family: "SFMono-Regular", "SF Mono", Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
  text-align: right;
}
.terminal-confirm-details strong.is-positive {
  color: var(--color-positive);
}
.terminal-confirm-details strong.is-negative {
  color: var(--color-negative);
}
.terminal-confirm-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 12px;
}
.terminal-confirm-actions button {
  min-height: 38px;
  border-radius: 10px;
  font-weight: 900;
}
.terminal-confirm-secondary,
.terminal-confirm-primary.primary-button {
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: none;
  filter: none;
}
.terminal-confirm-secondary {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.045);
}
.terminal-confirm-secondary:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}
.terminal-confirm-primary.is-buy.primary-button {
  border-color: rgba(var(--color-positive-rgb), 0.36);
  background: rgba(var(--color-positive-rgb), 0.16);
  color: var(--color-positive);
}
.terminal-confirm-primary.is-sell.primary-button {
  border-color: rgba(var(--color-negative-rgb), 0.36);
  background: rgba(var(--color-negative-rgb), 0.16);
  color: var(--color-negative);
}
.terminal-confirm-primary.is-danger.primary-button {
  border-color: rgba(var(--color-negative-rgb), 0.36);
  background: rgba(var(--color-negative-rgb), 0.16);
  color: var(--color-negative);
}
.terminal-confirm-primary.primary-button::before,
.terminal-confirm-primary.primary-button::after {
  display: none;
  content: none;
}
.terminal-layout .terminal-confirm-primary.primary-button,
.terminal-layout .terminal-confirm-primary.primary-button:hover {
  min-height: 38px;
  border-radius: 10px;
  box-shadow: none;
  filter: none;
}
.terminal-layout .terminal-confirm-primary.is-buy.primary-button,
.terminal-layout .terminal-confirm-primary.is-buy.primary-button:hover {
  border-color: rgba(99, 214, 186, 0.2);
  background: rgba(99, 214, 186, 0.12);
  color: var(--color-positive);
}
.terminal-layout .terminal-confirm-primary.is-sell.primary-button,
.terminal-layout .terminal-confirm-primary.is-sell.primary-button:hover {
  border-color: rgba(226, 133, 147, 0.22);
  background: rgba(226, 133, 147, 0.12);
  color: var(--color-negative);
}
.terminal-layout .terminal-confirm-primary.is-danger.primary-button,
.terminal-layout .terminal-confirm-primary.is-danger.primary-button:hover {
  border-color: rgba(226, 133, 147, 0.22);
  background: rgba(226, 133, 147, 0.12);
  color: var(--color-negative);
}
.terminal-layout .terminal-confirm-primary.primary-button::before,
.terminal-layout .terminal-confirm-primary.primary-button::after,
.terminal-layout .terminal-confirm-primary.primary-button:hover::before,
.terminal-layout .terminal-confirm-primary.primary-button:hover::after {
  display: none;
  content: none;
}
@media (max-width: 860px) {
  .terminal-confirm-modal {
    padding: 14px;
  }

  .terminal-position-details-dialog {
    max-height: calc(100vh - 28px);
  }

  .terminal-confirm-actions {
    grid-template-columns: 1fr;
  }

  .terminal-confirm-details article {
    border-right: 0;
  }
}
@media (max-width: 1180px) {

  .terminal-layout {
    grid-template-columns: 1fr;
  }

  .terminal-ticket {
    position: static;
  }
}
@media (max-width: 860px) {

  .terminal-market-headline {
    grid-template-columns: 1fr 1fr;
  }

  .terminal-size-breakdown,
  .terminal-ticket-metrics,
  .terminal-order-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .terminal-board-toolbar,
  .terminal-blotter-top {
    display: grid;
  }

  .terminal-table-action-cell {
    justify-content: flex-start;
  }

  .terminal-pnl-modal {
    align-items: center;
    padding: 14px 14px calc(14px + var(--mobile-nav-reserved-height));
  }

  .terminal-pnl-dialog {
    max-height: calc(100dvh - var(--mobile-nav-reserved-height) - 28px);
    overflow-y: auto;
    padding: 12px;
  }

  .terminal-pnl-card {
    width: min(100%, calc((100dvh - 196px) * var(--pnl-card-aspect-number, 1.7778)));
  }

  .terminal-pnl-card-frame {
    inset: 16px;
    padding: 16px;
    border-radius: 16px;
  }

  .terminal-pnl-card-head strong {
    max-width: 62%;
  }

  .terminal-pnl-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .terminal-pnl-card-grid div {
    padding: 8px;
  }

  .terminal-pnl-share-actions {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {

  .terminal-market-headline {
    grid-template-columns: 1fr;
  }

  .terminal-chart-shell {
    padding: 8px 0 12px;
  }

  .terminal-chart-stack {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
    gap: 10px;
  }

  .terminal-chart-host {
    min-height: 320px;
  }

  .terminal-chart-host--main {
    border-radius: 18px;
  }

  .terminal-indicator-legend {
    padding: 0 14px;
  }

  .terminal-indicator-pane {
    margin-right: 14px;
    margin-left: 14px;
    padding: 12px;
    border-radius: 18px;
  }

  .terminal-chart-host--pane {
    min-height: 104px;
    border-radius: 14px;
  }

  .terminal-price-input-shell {
    grid-template-columns: 1fr;
  }

  .terminal-price-summary strong {
    font-size: 26px;
  }

  .terminal-pnl-card {
    border-radius: 14px;
  }

  .terminal-pnl-card-next {
    right: 8px;
    width: 36px;
    height: 36px;
  }

  .terminal-pnl-card-frame {
    inset: 12px;
    gap: 6px;
    padding: 12px;
  }

  .terminal-pnl-card-head strong {
    font-size: 18px;
  }

  .terminal-pnl-card-main strong {
    font-size: 44px;
  }

  .terminal-pnl-card-side {
    margin-bottom: 6px;
    padding: 5px 8px;
  }

  .terminal-pnl-card-main > span:last-child {
    margin-top: 5px;
  }

  .terminal-pnl-card-grid strong {
    font-size: 14px;
  }
}
.terminal-board-top {
  position: relative;
  z-index: 9;
  overflow: visible;
  gap: 0;
  padding: 18px 20px 10px;
}
.terminal-market-headline {
  grid-template-columns: minmax(0, 225px) minmax(0, auto) minmax(120px, 0.8fr) minmax(190px, 1fr) auto;
}
.terminal-symbol-anchor {
  position: relative;
  z-index: 20;
}
.terminal-dropdown-trigger {
  position: relative;
  z-index: 2;
}
.terminal-dropdown-panel {
  overflow: hidden;
  isolation: isolate;
  pointer-events: auto;
}
.terminal-symbol-chip {
  width: 100%;
  padding: 10px 12px;
  border-color: rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.018);
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform var(--button-motion);
}
.terminal-symbol-chip:hover,
.terminal-symbol-chip[aria-expanded="true"] {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
}
.terminal-symbol-chip-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}
.terminal-symbol-chip-mark.has-token-icon,
.terminal-symbol-menu-mark.has-token-icon {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.08);
}
.terminal-symbol-chip-mark img,
.terminal-symbol-menu-mark img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}
.terminal-symbol-chip strong {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-size: 22px;
  line-height: 1;
}
.terminal-symbol-chevron {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.42);
  transition: transform 180ms ease;
}
.terminal-symbol-chevron.is-open {
  transform: rotate(180deg);
}
.terminal-symbol-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  z-index: 3;
  display: grid;
  width: min(330px, calc(100vw - 48px));
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)),
    rgba(8, 11, 18, 0.985);
  background-color: rgba(8, 11, 18, 0.985);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.terminal-symbol-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.44);
}
.terminal-symbol-search:focus-within {
  border-color: rgba(152, 167, 255, 0.3);
  background: rgba(152, 167, 255, 0.07);
  color: rgba(255, 255, 255, 0.7);
}
.terminal-symbol-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--color-text);
  font: inherit;
  font-size: 13px;
}
.terminal-symbol-search input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}
.terminal-symbol-tabs {
  display: flex;
  min-width: 0;
  gap: 12px;
  overflow-x: auto;
  padding: 1px 2px 9px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  scrollbar-width: none;
}
.terminal-symbol-tabs::-webkit-scrollbar {
  display: none;
}
.terminal-symbol-tabs button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 26px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  transition:
    color 180ms ease,
    opacity 180ms ease;
}
.terminal-symbol-tabs button:hover,
.terminal-symbol-tabs button.is-active {
  color: var(--color-text);
  background: transparent;
}
.terminal-symbol-tabs button:disabled {
  cursor: not-allowed;
  opacity: 0.34;
}
.terminal-symbol-list {
  display: grid;
  gap: 2px;
  max-height: min(460px, calc(100vh - 240px));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1px 2px 2px 0;
}
.terminal-symbol-option {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 66px;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  text-align: left;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform var(--button-motion);
}
.terminal-symbol-option-main {
  display: grid;
  grid-template-columns: 45px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: left;
}
.terminal-symbol-menu-mark {
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.02)),
    rgba(13, 17, 24, 0.9);
  color: var(--color-text);
  font-size: 16px;
  font-weight: 900;
  box-shadow: inset 0 -8px 16px rgba(0, 0, 0, 0.16);
}
.terminal-symbol-favorite-toggle {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.36);
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}
.terminal-symbol-favorite-toggle:hover,
.terminal-symbol-favorite-toggle.is-active {
  border-color: rgba(255, 190, 92, 0.24);
  color: #ffc56b;
  background: rgba(255, 197, 107, 0.08);
}
.terminal-symbol-option:hover,
.terminal-symbol-option.is-active {
  border-color: rgba(152, 167, 255, 0.18);
  background: rgba(152, 167, 255, 0.07);
}
.terminal-symbol-option-copy,
.terminal-symbol-option-price {
  display: grid;
  min-width: 0;
  gap: 3px;
}
.terminal-symbol-option strong {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: var(--color-text);
  font-size: 15px;
  line-height: 1.1;
}
.terminal-symbol-option strong span {
  color: rgba(255, 255, 255, 0.42);
  font-size: 13px;
}
.terminal-symbol-option small {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  color: var(--color-muted);
  font-size: 11px;
  line-height: 1.2;
}
.terminal-symbol-option-copy small span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.terminal-symbol-option-price {
  justify-items: end;
}
.terminal-symbol-option-price strong {
  justify-content: end;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.terminal-symbol-option-price small {
  justify-content: end;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}
.terminal-symbol-empty {
  padding: 18px 12px 20px;
  color: var(--color-muted);
  font-size: 13px;
  text-align: center;
}
.terminal-summary-stat-wide {
  min-width: 0;
}
.terminal-summary-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
}
.terminal-summary-inline em {
  color: var(--color-text);
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
}
.terminal-favorite-button {
  display: inline-grid;
  grid-column: -2 / -1;
  justify-self: end;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.018);
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    transform var(--button-motion);
}
.terminal-favorite-button:hover,
.terminal-favorite-button.is-active {
  border-color: rgba(255, 190, 92, 0.28);
  color: #ffc56b;
  background: rgba(255, 197, 107, 0.08);
}
.terminal-board-toolbar {
  position: relative;
  z-index: 7;
  overflow: visible;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  padding: 12px 16px;
}
.terminal-toolbar-main {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.terminal-toolbar-cluster {
  position: relative;
  min-width: 0;
  align-items: center;
}
.terminal-toolbar-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.08);
}
.terminal-toolbar-menu {
  position: relative;
  z-index: 12;
}
.terminal-toolbar-icon-button {
  display: inline-grid;
  min-width: 38px;
  min-height: 38px;
  place-items: center;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.022);
  color: rgba(255, 255, 255, 0.52);
  transition:
    border-color 180ms ease,
    color 180ms ease,
    background 180ms ease,
    transform var(--button-motion);
}
.terminal-toolbar-icon-button:hover,
.terminal-toolbar-icon-button.is-active {
  border-color: rgba(160, 245, 224, 0.22);
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.06);
}
.terminal-toolbar-icon-button:disabled {
  opacity: 0.38;
  cursor: default;
  transform: none;
}
.terminal-toolbar-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 3;
  display: grid;
  gap: 6px;
  min-width: 88px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(7, 9, 16, 0.96);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.4);
}
.terminal-toolbar-dropdown button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.018);
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 800;
  transition:
    border-color 180ms ease,
    color 180ms ease,
    background 180ms ease;
}
.terminal-toolbar-dropdown button:hover,
.terminal-toolbar-dropdown button.is-active {
  border-color: rgba(160, 245, 224, 0.22);
  color: var(--color-text);
  background: rgba(160, 245, 224, 0.08);
}
.terminal-indicator-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.022);
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 700;
  transition:
    border-color 180ms ease,
    color 180ms ease,
    background 180ms ease,
    transform var(--button-motion);
}
.terminal-indicator-button:hover,
.terminal-indicator-button.is-active {
  border-color: rgba(160, 245, 224, 0.2);
  color: #c8fff4;
  background: rgba(160, 245, 224, 0.08);
}
.terminal-indicator-button-count {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(160, 245, 224, 0.14);
  color: #d9fff7;
  font-size: 10px;
  font-weight: 900;
}
.terminal-indicator-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 3;
  display: grid;
  gap: 4px;
  width: min(240px, calc(100vw - 32px));
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    rgba(8, 10, 17, 0.98);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}
.terminal-indicator-option {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 32px;
  padding: 4px 6px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  transition:
    border-color 180ms ease,
    background 180ms ease;
}
.terminal-indicator-option:hover {
  border-color: rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.035);
}
.terminal-indicator-option.is-active {
  border-color: rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.05);
}
.terminal-board-toolbar .terminal-timeframes,
.terminal-board-toolbar .terminal-toolbar-actions {
  gap: 8px;
}
.terminal-chart-type-shortcuts {
  flex-wrap: nowrap;
}
.terminal-chart-menu-trigger {
  min-width: 46px;
}
.terminal-chart-mode-menu {
  position: relative;
}
.terminal-board-meta {
  position: relative;
  z-index: 2;
}
.terminal-chart-shell,
.terminal-chart-host {
  position: relative;
  z-index: 1;
}
.terminal-chart-stack {
  display: grid;
  gap: 14px;
}
.terminal-chart-main-frame {
  position: relative;
  min-width: 0;
}
.terminal-chart-tradingview-link {
  position: absolute;
  bottom: 14px;
  left: 14px;
  z-index: 2;
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  text-decoration: none;
  transition:
    opacity 180ms ease,
    transform var(--button-motion);
}
.terminal-chart-tradingview-link:hover,
.terminal-chart-tradingview-link:focus-visible {
  opacity: 0.86;
  transform: translateY(-1px);
}
.terminal-chart-tradingview-link img {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
}
.terminal-indicator-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 4px;
}
.terminal-indicator-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(160, 245, 224, 0.16);
  border-radius: 999px;
  background: rgba(160, 245, 224, 0.07);
  color: #cffff5;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.terminal-indicator-pane {
  display: grid;
  gap: 10px;
  padding: 14px 16px 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.01)),
    rgba(6, 10, 18, 0.74);
}
.terminal-indicator-pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 2px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.terminal-indicator-pane-head strong {
  color: var(--color-text);
  font-size: 14px;
  letter-spacing: 0;
}
.terminal-board.chart-panel,
.terminal-board {
  overflow: visible;
}
.terminal-symbol-menu,
.terminal-toolbar-dropdown,
.terminal-chart-mode-dropdown,
.terminal-indicator-dropdown,
.terminal-account-menu {
  z-index: 3;
  pointer-events: auto;
}
.terminal-chart-mode-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  display: grid;
  gap: 4px;
  width: min(240px, calc(100vw - 32px));
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    rgba(8, 10, 17, 0.98);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.42);
  transform: translateX(-50%);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}
.terminal-chart-mode-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  transition:
    border-color 180ms ease,
    background 180ms ease;
}
.terminal-chart-mode-row:hover {
  border-color: rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.035);
}
.terminal-chart-mode-row.is-active {
  border-color: rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.05);
}
.terminal-chart-mode-option {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  min-height: 32px;
  padding: 0;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}
.terminal-chart-mode-option span {
  white-space: nowrap;
}
.terminal-chart-mode-star {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.34);
  cursor: pointer;
  transition:
    color 180ms ease,
    background 180ms ease,
    transform var(--button-motion);
}
.terminal-chart-mode-star:hover,
.terminal-chart-mode-star.is-active {
  color: #fff2a3;
  background: rgba(255, 242, 163, 0.08);
}
.terminal-account-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 3;
}
.terminal-chart-host--pane {
  min-height: 138px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.01), transparent 18%),
    radial-gradient(circle at 14% 20%, rgba(92, 109, 229, 0.07), transparent 34%),
    rgba(5, 9, 15, 0.82);
}
.terminal-dropdown-backdrop,
.terminal-dropdown-modal-head,
.terminal-dropdown-mobile-layer {
  display: none;
}
.terminal-dropdown-content {
  display: contents;
}
@media (max-width: 860px) {
  .terminal-market-headline {
    grid-template-columns: 1fr 1fr;
  }

  .terminal-favorite-button {
    justify-self: end;
  }

  .terminal-chart-mode-dropdown {
    left: 0;
    width: min(240px, calc(100vw - 48px));
    transform: none;
  }

  .terminal-indicator-dropdown {
    width: min(240px, calc(100vw - 48px));
  }

  .terminal-board-toolbar {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px 12px;
  }

  .terminal-toolbar-main {
    display: grid;
    gap: 10px;
  }

  .terminal-toolbar-divider {
    display: block;
    width: min(210px, 48vw);
    height: 1px;
    margin: 1px 0;
    background: linear-gradient(90deg, rgba(157, 170, 196, 0.18), rgba(157, 170, 196, 0.04));
  }

  .terminal-board-toolbar .terminal-timeframes,
  .terminal-board-toolbar .terminal-toolbar-actions {
    flex-wrap: wrap;
    gap: 6px;
    overflow: visible;
    max-width: 100%;
    padding-bottom: 0;
  }

  .terminal-board-toolbar .terminal-timeframes button,
  .terminal-board-toolbar .terminal-toolbar-icon-button {
    flex: 0 1 auto;
    min-width: 44px;
    min-height: 36px;
    border-radius: 12px;
  }

  .terminal-indicator-button {
    flex: 0 1 auto;
    max-width: 100%;
    min-height: 36px;
    padding: 0 12px;
    white-space: nowrap;
  }

  .terminal-dropdown-panel--inline {
    display: none !important;
  }

  .terminal-dropdown-mobile-layer {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: block;
    isolation: isolate;
    pointer-events: none;
  }

  .terminal-dropdown-backdrop {
    position: fixed;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100vw;
    height: 100dvh;
    border: 0;
    border-radius: 0;
    background: rgba(0, 0, 0, 0.52);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: auto;
  }

  .terminal-dropdown-panel--mobile,
  .terminal-symbol-menu,
  .terminal-toolbar-dropdown,
  .terminal-chart-mode-dropdown,
  .terminal-indicator-dropdown,
  .terminal-account-menu {
    position: fixed;
    top: auto;
    right: 10px;
    bottom: 10px;
    left: 10px;
    z-index: 1;
    display: grid;
    width: auto;
    max-width: none;
    max-height: min(78dvh, 640px);
    gap: 10px;
    overflow: hidden;
    padding: 12px;
    border-radius: 24px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.58);
    transform: none;
    pointer-events: auto;
  }

  .terminal-dropdown-modal-head {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 2px 2px 8px;
  }

  .terminal-dropdown-modal-head strong {
    min-width: 0;
    overflow: hidden;
    color: var(--color-text);
    font-size: 15px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .terminal-dropdown-modal-close {
    display: inline-grid;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(157, 170, 196, 0.14);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--color-muted);
  }

  .terminal-dropdown-content {
    display: grid;
    gap: inherit;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 1px;
  }

  .terminal-symbol-list {
    max-height: none;
  }

  .terminal-toolbar-dropdown {
    grid-auto-rows: minmax(44px, auto);
  }

  .terminal-chart-mode-row {
    padding: 4px 6px;
    border-radius: 12px;
  }

  .terminal-indicator-option {
    min-height: 32px;
    padding: 4px 6px;
    border-radius: 12px;
    font-size: 14px;
  }

}
@media (max-width: 560px) {
  .terminal-market-headline {
    grid-template-columns: 1fr;
  }

  .terminal-board-toolbar {
    grid-template-columns: 1fr;
  }

  .terminal-toolbar-divider {
    display: none;
  }

  .terminal-toolbar-actions,
  .terminal-timeframes {
    display: flex;
  }

  .terminal-chart-type-shortcuts {
    flex-wrap: wrap;
  }

  .terminal-chart-mode-dropdown {
    right: 0;
    left: auto;
    width: min(240px, calc(100vw - 32px));
  }

  .terminal-chart-mode-option {
    font-size: 14px;
  }

  .terminal-indicator-dropdown {
    left: auto;
    right: 0;
    width: min(240px, calc(100vw - 32px));
  }

  .terminal-indicator-option {
    min-height: 32px;
    padding: 4px 6px;
    font-size: 14px;
  }
}
.terminal-layout .terminal-board-top,
.terminal-layout .terminal-board-toolbar,
.terminal-layout .terminal-blotter-top {
  border-color: rgba(157, 170, 196, 0.08);
}
.terminal-layout .terminal-symbol-chip {
  border-color: rgba(157, 170, 196, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018)),
    rgba(13, 17, 24, 0.78);
}
.terminal-layout .terminal-symbol-chip-mark {
  background: linear-gradient(180deg, #b99155, #8e6530);
  color: #171109;
}
.terminal-layout .terminal-price-summary strong {
  color: #f0f4f9;
  text-shadow: none;
}
.terminal-layout .terminal-chart-host,
.terminal-layout .terminal-chart-host--pane {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.008), transparent 16%),
    rgba(6, 9, 14, 0.86);
}
.terminal-layout .terminal-chart-host::after {
  box-shadow:
    inset 0 -120px 160px rgba(0, 0, 0, 0.18);
}
.terminal-layout .terminal-ticket.is-buy,
.terminal-layout .terminal-ticket.is-sell {
  border-color: rgba(157, 170, 196, 0.13);
  box-shadow:
    0 24px 58px rgba(0, 0, 0, 0.36);
}
.terminal-layout .terminal-ticket.is-buy {
  border-color: rgba(99, 214, 186, 0.18);
  background:
    radial-gradient(520px 420px at 20% 4%, rgba(99, 214, 186, 0.105), transparent 58%),
    radial-gradient(420px 360px at 92% 14%, rgba(91, 124, 255, 0.07), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.042), rgba(255, 255, 255, 0.016) 44%, rgba(255, 255, 255, 0.008)),
    rgba(12, 15, 22, 0.92);
}
.terminal-layout .terminal-ticket.is-sell {
  border-color: rgba(226, 133, 147, 0.18);
  background:
    radial-gradient(520px 420px at 20% 4%, rgba(226, 133, 147, 0.11), transparent 58%),
    radial-gradient(420px 360px at 92% 14%, rgba(115, 124, 154, 0.055), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.042), rgba(255, 255, 255, 0.016) 44%, rgba(255, 255, 255, 0.008)),
    rgba(12, 15, 22, 0.92);
}
.terminal-layout .terminal-ticket-tone {
  opacity: 0.5 !important;
  filter: saturate(0.72);
}
.terminal-layout .terminal-ticket-tone--buy {
  background:
    linear-gradient(180deg, rgba(99, 214, 186, 0.045), transparent 34%),
    radial-gradient(circle at 18% 10%, rgba(99, 214, 186, 0.09), transparent 35%);
}
.terminal-layout .terminal-ticket-tone--sell {
  background:
    linear-gradient(180deg, rgba(226, 133, 147, 0.05), transparent 34%),
    radial-gradient(circle at 18% 10%, rgba(226, 133, 147, 0.095), transparent 35%);
}
.terminal-layout .terminal-ticket-badge,
.terminal-layout .terminal-ticket-badge.is-demo {
  background: rgba(131, 145, 170, 0.16);
  color: #c7d0df;
}
.terminal-layout .terminal-segmented {
  border-color: rgba(157, 170, 196, 0.12);
  background: rgba(255, 255, 255, 0.028);
  box-shadow: none;
}
.terminal-layout .terminal-ticket.is-buy .terminal-segmented,
.terminal-layout .terminal-ticket.is-sell .terminal-segmented {
  border-color: rgba(157, 170, 196, 0.12);
  background: rgba(255, 255, 255, 0.028);
  box-shadow: none;
}
.terminal-layout .terminal-segmented button {
  border-color: transparent;
  background: transparent;
  color: #9aa6ba;
  box-shadow: none;
}
.terminal-layout .terminal-segmented button:hover,
.terminal-layout .terminal-segmented button.is-active,
.terminal-layout .terminal-segmented .is-buy.is-active,
.terminal-layout .terminal-segmented .is-sell.is-active {
  border-color: rgba(157, 170, 196, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.086), rgba(255, 255, 255, 0.034)),
    rgba(41, 49, 64, 0.72);
  color: #f3f6fb;
  box-shadow: none;
}
.terminal-layout .terminal-ticket.is-buy .terminal-control-card,
.terminal-layout .terminal-ticket.is-buy .terminal-size-breakdown article,
.terminal-layout .terminal-ticket.is-buy .terminal-ticket-metrics article,
.terminal-layout .terminal-ticket.is-buy .terminal-order-summary article {
  border-color: rgba(99, 214, 186, 0.12);
  background:
    linear-gradient(180deg, rgba(99, 214, 186, 0.038), rgba(255, 255, 255, 0.012)),
    rgba(12, 15, 22, 0.58);
}
.terminal-layout .terminal-ticket.is-sell .terminal-control-card,
.terminal-layout .terminal-ticket.is-sell .terminal-size-breakdown article,
.terminal-layout .terminal-ticket.is-sell .terminal-ticket-metrics article,
.terminal-layout .terminal-ticket.is-sell .terminal-order-summary article {
  border-color: rgba(226, 133, 147, 0.12);
  background:
    linear-gradient(180deg, rgba(226, 133, 147, 0.04), rgba(255, 255, 255, 0.012)),
    rgba(12, 15, 22, 0.58);
}
.terminal-layout .terminal-ticket.is-buy .terminal-segmented .is-buy.is-active {
  border-color: rgba(99, 214, 186, 0.2);
  background:
    linear-gradient(180deg, rgba(99, 214, 186, 0.18), rgba(99, 214, 186, 0.07)),
    rgba(41, 49, 64, 0.72);
}
.terminal-layout .terminal-ticket.is-sell .terminal-segmented .is-sell.is-active {
  border-color: rgba(226, 133, 147, 0.2);
  background:
    linear-gradient(180deg, rgba(226, 133, 147, 0.18), rgba(226, 133, 147, 0.07)),
    rgba(41, 49, 64, 0.72);
}
.terminal-layout .terminal-stepper button i {
  background: rgba(137, 149, 171, 0.26);
}
.terminal-layout .terminal-stepper button.is-active i {
  background: rgba(99, 214, 186, 0.78);
  box-shadow: none;
}
.terminal-layout .terminal-ticket.is-sell .terminal-stepper button.is-active i {
  background: rgba(226, 133, 147, 0.78);
}
.terminal-layout .terminal-size-toggle {
  background: rgba(255, 255, 255, 0.026);
}
.terminal-layout .terminal-checkbox input:checked + .terminal-checkbox-mark {
  background: linear-gradient(180deg, rgba(116, 136, 176, 0.42), rgba(63, 76, 102, 0.34));
  border-color: rgba(157, 170, 196, 0.18);
  box-shadow: none;
}
.terminal-layout {
  position: relative;
  z-index: 1;
}
@media (max-width: 560px) {

  .terminal-blotter-body {
    padding: 14px;
  }

  .terminal-table {
    width: calc(100% + 14px);
    max-width: calc(100% + 14px);
    margin-right: -14px;
    padding-right: 14px;
  }

  .terminal-table-action-cell {
    justify-content: flex-end;
  }

  .terminal-order-summary,
  .terminal-size-breakdown {
    grid-template-columns: 1fr;
  }

  .terminal-account-dropdown,
.terminal-timeframes,
.terminal-toolbar-actions,
.terminal-ticket-types {
    display: grid;
  }

  .terminal-pnl-brand-mark,
.terminal-pnl-card-main span,
.terminal-pnl-card-grid span {
    font-size: 9px;
  }

  .terminal-pnl-brand-mark {
    font-size: 14px;
  }
}
.terminal-layout .chart-panel,
.terminal-layout .data-panel {
  border-color: rgba(157, 170, 196, 0.13);
  background: rgba(12, 15, 22, 0.2);
  box-shadow: none;
}
.terminal-layout .chart-panel::before,
.terminal-layout .data-panel::before {
  display: none;
  content: none;
}
.terminal-layout .chart-panel::after,
.terminal-layout .data-panel::after {
  display: none;
  content: none;
}
.terminal-layout .terminal-board-meta span,
.terminal-layout .terminal-ticket-account span,
.terminal-layout .terminal-ticket-balance span,
.terminal-layout .terminal-control-head span,
.terminal-layout .terminal-stepper span,
.terminal-layout .terminal-size-breakdown span,
.terminal-layout .terminal-ticket-metrics span,
.terminal-layout .terminal-table-row span {
  color: #8794aa;
}
.terminal-layout .is-positive,
.terminal-layout .terminal-price-summary .is-positive,
.terminal-layout .terminal-summary-stat .is-positive,
.terminal-layout .terminal-board-meta .is-positive,
.terminal-layout .terminal-table-row .is-positive,
.terminal-layout .terminal-order-summary .is-positive {
  color: #63d6ba;
}
.terminal-layout .is-negative,
.terminal-layout .terminal-price-summary .is-negative,
.terminal-layout .terminal-summary-stat .is-negative,
.terminal-layout .terminal-board-meta .is-negative,
.terminal-layout .terminal-table-row .is-negative,
.terminal-layout .terminal-order-summary .is-negative {
  color: #e28593;
}
.terminal-layout .terminal-timeframes button,
.terminal-layout .terminal-ticket-types button,
.terminal-layout .terminal-blotter-tabs button,
.terminal-layout .terminal-toolbar-icon-button,
.terminal-layout .terminal-indicator-button,
.terminal-layout .terminal-strip-button,
.terminal-layout .terminal-size-toggle button,
.terminal-layout .terminal-stepper button,
.terminal-layout .terminal-price-input-shell button,
.terminal-layout .terminal-chart-mode-star {
  border-color: rgba(157, 170, 196, 0.12);
  background: rgba(255, 255, 255, 0.028);
  color: #9aa6ba;
  box-shadow: none;
}
.terminal-layout .terminal-timeframes button.is-active,
.terminal-layout .terminal-timeframes button:hover,
.terminal-layout .terminal-ticket-types button.is-active,
.terminal-layout .terminal-ticket-types button:hover,
.terminal-layout .terminal-blotter-tabs button.is-active,
.terminal-layout .terminal-blotter-tabs button:hover,
.terminal-layout .terminal-toolbar-icon-button.is-active,
.terminal-layout .terminal-toolbar-icon-button:hover,
.terminal-layout .terminal-indicator-button.is-active,
.terminal-layout .terminal-indicator-button:hover,
.terminal-layout .terminal-strip-button.is-active,
.terminal-layout .terminal-strip-button:hover,
.terminal-layout .terminal-size-toggle button.is-active,
.terminal-layout .terminal-size-toggle button:hover,
.terminal-layout .terminal-stepper button.is-active,
.terminal-layout .terminal-stepper button:hover,
.terminal-layout .terminal-price-input-shell button:hover,
.terminal-layout .terminal-chart-mode-star.is-active,
.terminal-layout .terminal-chart-mode-star:hover {
  border-color: rgba(120, 145, 185, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.026)),
    rgba(35, 43, 58, 0.58);
  color: #eef3fb;
  box-shadow: none;
}
.terminal-layout .terminal-table-row,
.terminal-layout .terminal-control-card,
.terminal-layout .terminal-size-breakdown article,
.terminal-layout .terminal-ticket-metrics article,
.terminal-layout .terminal-order-summary article,
.terminal-layout .terminal-price-input-shell input {
  border-color: rgba(157, 170, 196, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.014)),
    rgba(12, 15, 22, 0.58);
  box-shadow: none;
}
.workspace-grid-full .calendar-cell.is-positive,
.workspace-grid-full .calendar-cell.is-negative {
  filter: saturate(0.78) brightness(0.92);
}
.terminal-layout .terminal-chart-mode-dropdown,
.terminal-layout .terminal-indicator-dropdown {
  border-color: rgba(157, 170, 196, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(8, 10, 15, 0.98);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.44);
}
.terminal-layout .terminal-ticket-account,
.terminal-layout .terminal-ticket.is-buy .terminal-ticket-account,
.terminal-layout .terminal-ticket.is-sell .terminal-ticket-account,
.terminal-layout .terminal-ticket-account-trigger:hover,
.terminal-layout .terminal-ticket-account-trigger.is-open,
.terminal-layout .terminal-ticket.is-buy .terminal-ticket-account-trigger:hover,
.terminal-layout .terminal-ticket.is-buy .terminal-ticket-account-trigger.is-open,
.terminal-layout .terminal-ticket.is-sell .terminal-ticket-account-trigger:hover,
.terminal-layout .terminal-ticket.is-sell .terminal-ticket-account-trigger.is-open {
  border-color: rgba(157, 170, 196, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.016)),
    rgba(13, 17, 24, 0.86);
  background-blend-mode: normal;
  box-shadow: none;
}
.terminal-layout .terminal-ticket-account span,
.terminal-layout .terminal-ticket-account strong,
.terminal-layout .terminal-ticket-account small {
  text-shadow: none;
}
.terminal-layout .terminal-ticket.is-buy .terminal-control-card,
.terminal-layout .terminal-ticket.is-buy .terminal-size-breakdown article,
.terminal-layout .terminal-ticket.is-buy .terminal-ticket-metrics article,
.terminal-layout .terminal-ticket.is-buy .terminal-order-summary article,
.terminal-layout .terminal-ticket.is-buy .terminal-ticket-account,
.terminal-layout .terminal-ticket.is-sell .terminal-control-card,
.terminal-layout .terminal-ticket.is-sell .terminal-size-breakdown article,
.terminal-layout .terminal-ticket.is-sell .terminal-ticket-metrics article,
.terminal-layout .terminal-ticket.is-sell .terminal-order-summary article,
.terminal-layout .terminal-ticket.is-sell .terminal-ticket-account {
  border-color: rgba(157, 170, 196, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.014)),
    rgba(12, 15, 22, 0.58);
  box-shadow: none;
}
.terminal-layout .terminal-ticket.is-buy .terminal-ticket-account {
  border-color: rgba(99, 214, 186, 0.13);
  background:
    linear-gradient(180deg, rgba(99, 214, 186, 0.045), rgba(255, 255, 255, 0.012)),
    rgba(13, 17, 24, 0.86);
}
.terminal-layout .terminal-ticket.is-sell .terminal-ticket-account {
  border-color: rgba(226, 133, 147, 0.13);
  background:
    linear-gradient(180deg, rgba(226, 133, 147, 0.045), rgba(255, 255, 255, 0.012)),
    rgba(13, 17, 24, 0.86);
}
/* Challenge */
@property --plan-border-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
@property --option-border-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
@keyframes plan-border-spin {
  to {
    --plan-border-angle: 360deg;
  }
}
@keyframes option-border-spin {
  to {
    --option-border-angle: 360deg;
  }
}
@keyframes challenge-gradient-flow {
  from {
    background-position: 0% 50%;
  }

  to {
    background-position: 75% 50%;
  }
}
@keyframes plan-diamond-field-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  45% {
    opacity: 1.16;
    transform: scale(1.045);
  }
}
@keyframes challenge-panel-pulse {
  0%,
  100% {
    opacity: 0.36;
  }

  45% {
    opacity: 0.58;
  }
}
.challenge-layout {
  display: grid;
  --program-rgb: 65, 124, 255;
  --program-strong-rgb: 75, 142, 255;
  --program-shine-rgb: 105, 220, 255;
  --program-text: #5f8fff;
  width: 100%;
  margin: 0;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  align-items: start;
}
.challenge-tone-basic {
  --program-rgb: 65, 124, 255;
  --program-strong-rgb: 75, 142, 255;
  --program-shine-rgb: 105, 220, 255;
  --program-text: #5f8fff;
}
.challenge-tone-fast {
  --program-rgb: 139, 124, 246;
  --program-strong-rgb: 183, 121, 255;
  --program-shine-rgb: 238, 218, 255;
  --program-text: var(--color-accent-strong);
}
.challenge-tone-turbo {
  --program-rgb: 238, 66, 76;
  --program-strong-rgb: 242, 105, 98;
  --program-shine-rgb: 255, 176, 120;
  --program-text: #f26a73;
}
.challenge-layout .challenge-rules,
.challenge-layout .summary-card,
.challenge-layout .starter-panel {
  --panel-accent-rgb: var(--program-rgb);
  border-color: rgba(157, 170, 196, 0.14);
  background: rgba(12, 15, 22, 0.2);
  box-shadow: none;
  backdrop-filter: blur(8px) saturate(108%);
  -webkit-backdrop-filter: blur(8px) saturate(108%);
  transition:
    border-color 180ms ease,
    background 180ms ease;
}
.challenge-layout .challenge-rules::before,
.challenge-layout .summary-card::before,
.challenge-layout .starter-panel::before {
  display: none;
  content: none;
}
.challenge-layout.is-pattern-pulsing .challenge-rules::before,
.challenge-layout.is-pattern-pulsing .summary-card::before,
.challenge-layout.is-pattern-pulsing .starter-panel::before {
  animation: challenge-panel-pulse 640ms ease-out;
}
.challenge-layout .challenge-rules::after,
.challenge-layout .summary-card::after,
.challenge-layout .starter-panel::after {
  display: none;
  content: none;
}
.challenge-layout .option-tabs:not(.option-tabs--toned) {
  --panel-accent-rgb: 210, 216, 226;
  border-color: rgba(157, 170, 196, 0.14);
  background: rgba(12, 15, 22, 0.2);
}
.challenge-layout .option-tabs:not(.option-tabs--toned)::before {
  display: none;
  content: none;
}
.challenge-layout .option-tabs:not(.option-tabs--toned)::after {
  box-shadow:
    inset 0 -42px 80px rgba(0, 0, 0, 0.24),
    inset 0 0 0 1px rgba(255, 255, 255, 0.014);
}
.challenge-main {
  display: grid;
  min-width: 0;
  gap: 16px;
}
.option-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  border-color: rgba(157, 170, 196, 0.14);
  border-radius: var(--radius-xl);
  background: rgba(12, 15, 22, 0.2);
}
.option-tabs button {
  position: relative;
  isolation: isolate;
  display: grid;
  --tab-border-rgb: 166, 174, 190;
  --tab-border-strong-rgb: 247, 249, 255;
  --tab-border-glow-rgb: 204, 211, 224;
  min-height: 76px;
  align-content: center;
  gap: 7px;
  overflow: hidden;
  padding: 14px;
  border: 1px solid rgba(157, 170, 196, 0.12);
  border-radius: var(--radius-lg);
  color: var(--color-muted);
  background: rgba(255, 255, 255, 0.028);
  text-align: left;
  transition:
    border-color 180ms ease,
    color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    transform var(--button-motion);
}
.option-tabs button::before {
  display: none;
  content: "";
}
.option-tabs button > * {
  position: relative;
  z-index: 3;
}
.option-tabs button:hover {
  color: var(--color-text);
  border-color: rgba(157, 170, 196, 0.2);
  background: rgba(255, 255, 255, 0.05);
}
.option-tabs--toned button.tone-basic {
  --tab-tone-rgb: 65, 124, 255;
  --tab-tone-strong-rgb: 75, 142, 255;
  --tab-tone-text: #5f8fff;
  --tab-border-rgb: var(--tab-tone-rgb);
  --tab-border-strong-rgb: var(--tab-tone-strong-rgb);
  --tab-border-glow-rgb: 183, 121, 255;
}
.option-tabs--toned button.tone-fast {
  --tab-tone-rgb: 139, 124, 246;
  --tab-tone-strong-rgb: 183, 121, 255;
  --tab-tone-text: var(--color-accent-strong);
  --tab-border-rgb: var(--tab-tone-rgb);
  --tab-border-strong-rgb: var(--tab-tone-strong-rgb);
  --tab-border-glow-rgb: 238, 218, 255;
}
.option-tabs--toned button.tone-turbo {
  --tab-tone-rgb: 238, 66, 76;
  --tab-tone-strong-rgb: 242, 105, 98;
  --tab-tone-text: #f26a73;
  --tab-border-rgb: var(--tab-tone-rgb);
  --tab-border-strong-rgb: var(--tab-tone-strong-rgb);
  --tab-border-glow-rgb: 255, 176, 120;
}
.option-tabs--toned button:hover {
  border-color: rgba(157, 170, 196, 0.2);
  background: rgba(255, 255, 255, 0.05);
}
.option-tabs button.is-active {
  color: var(--color-text);
  border-color: rgba(103, 132, 190, 0.42);
  background: rgba(26, 33, 48, 0.28);
  box-shadow: none;
}
.option-tabs button.is-active::before {
  display: none;
  animation: none;
}
.option-tabs--toned button.is-active {
  color: var(--color-text);
  border-color: rgba(103, 132, 190, 0.42);
  background: rgba(26, 33, 48, 0.28);
  box-shadow: none;
}
.option-tabs--toned button.is-active strong {
  color: var(--tab-tone-text);
}
.option-tabs--toned button.is-active span {
  color: rgba(247, 249, 255, 0.68);
}
.challenge-layout .option-tabs:not(.option-tabs--toned) button.is-active {
  border-color: rgba(103, 132, 190, 0.42);
  background: rgba(26, 33, 48, 0.28);
  box-shadow: none;
}
.challenge-layout .option-tabs:not(.option-tabs--toned) button.is-active strong {
  color: var(--color-text);
}
.option-tabs strong {
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.2;
}
.option-tabs span {
  color: var(--color-subtle);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.25;
}
.challenge-rules,
.starter-panel {
  padding: 20px;
  border-radius: var(--radius-xl);
}
.challenge-rules {
  border-color: rgba(157, 170, 196, 0.14);
  background: rgba(12, 15, 22, 0.2);
  box-shadow: none;
  transition:
    border-color 520ms ease,
    background 520ms ease,
    box-shadow 520ms ease;
}
.challenge-rules .section-chip {
  color: var(--color-text);
  border-color: rgba(157, 170, 196, 0.16);
  background: rgba(255, 255, 255, 0.036);
}
.challenge-rules .panel-heading p {
  color: var(--color-muted);
}
.rules-table {
  display: grid;
  gap: 0;
  margin-top: 18px;
}
.rules-row {
  display: grid;
  grid-template-columns: 1.05fr repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 10px;
  min-height: 54px;
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid rgba(157, 170, 196, 0.14);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  opacity: 1;
  transform: translateY(0) scale(1);
  transition:
    background 520ms ease,
    opacity 260ms ease,
    transform 260ms ease;
}
.rules-row--three-values {
  grid-template-columns: 1.05fr repeat(3, minmax(0, 1fr));
}
.rules-head {
  min-height: auto;
  margin-top: 0;
  padding-block: 4px;
  color: var(--color-muted);
  background: transparent;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.rules-row strong {
  color: var(--program-text);
  font-size: 13px;
}
.rules-row span {
  min-width: 0;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}
.rules-row span:first-child,
.rules-row strong:first-child {
  text-align: left;
}
.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.plan-card {
  position: relative;
  display: grid;
  --plan-pattern-opacity: 0.22;
  --plan-pattern-size: 44px 44px;
  grid-template-columns: minmax(104px, 1fr) minmax(82px, auto);
  grid-template-rows: auto 1fr auto;
  grid-template-areas:
    "kicker kicker"
    "heading cost"
    "meta meta";
  min-height: 184px;
  align-content: stretch;
  align-items: end;
  gap: 14px 10px;
  overflow: hidden;
  padding: 16px;
  border: 1px solid rgba(157, 170, 196, 0.14);
  border-radius: var(--radius-xl);
  color: inherit;
  background: rgba(12, 15, 22, 0.2);
  box-shadow: none;
  backdrop-filter: blur(30px) saturate(128%);
  -webkit-backdrop-filter: blur(30px) saturate(128%);
  text-align: left;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    transform var(--button-motion);
}
.plan-card::before {
  display: none;
  content: none;
}
.plan-card > * {
  position: relative;
  z-index: 2;
}
.plan-card > .plan-diamonds {
  z-index: 1;
}
.plan-diamonds {
  position: absolute;
  inset: -20px;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse at center, black 0 26%, rgba(0, 0, 0, 0.58) 42%, transparent 68%);
  mask-image: radial-gradient(ellipse at center, black 0 26%, rgba(0, 0, 0, 0.58) 42%, transparent 68%);
  transform-origin: center;
  will-change: transform, opacity;
}
.plan-diamonds span {
  position: absolute;
  top: var(--diamond-y);
  left: var(--diamond-x);
  width: 21px;
  height: 21px;
  background: rgba(var(--program-strong-rgb), 0.26);
  opacity: calc(var(--plan-pattern-opacity) * var(--diamond-alpha));
  transform: translate(-50%, -50%) rotate(45deg) scale(var(--diamond-scale));
  transform-origin: center;
}
.plan-card:nth-child(2n) {
  --plan-pattern-opacity: 0.2;
}
.plan-card:hover {
  border-color: rgba(157, 170, 196, 0.2);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: none;
}
.plan-card:hover {
  --plan-pattern-opacity: 0.34;
}
.plan-card.is-active {
  border-color: rgba(103, 132, 190, 0.42);
  background: rgba(26, 33, 48, 0.28);
  box-shadow: none;
}
.plan-card.is-active::before {
  display: none;
  animation: none;
}
.plan-card.is-active {
  --plan-pattern-opacity: 0.31;
}
.challenge-layout.is-pattern-pulsing .plan-diamonds {
  animation: plan-diamond-field-pulse 640ms ease-out;
}
.plan-kicker {
  display: flex;
  grid-area: kicker;
  min-width: 0;
  align-self: start;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--color-muted);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.plan-kicker > span:not(.plan-badge) {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border-radius: var(--radius-sm);
  color: rgba(237, 242, 255, 0.7);
}
.plan-badge {
  display: inline-flex;
  max-width: 100%;
  min-height: 26px;
  align-items: center;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.06);
  background-size: 220% 160%;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  animation: none;
}
.plan-heading {
  display: grid;
  grid-area: heading;
  min-width: 0;
  gap: 8px;
}
.plan-name {
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.12;
}
.plan-card strong {
  color: var(--color-text);
  font-size: 31px;
  line-height: 1;
}
.plan-card.is-active strong {
  color: var(--program-text);
}
.plan-price,
.summary-total strong,
.price-stack strong {
  color: var(--program-text);
}
.plan-cost {
  display: grid;
  grid-area: cost;
  justify-items: end;
  gap: 4px;
  padding-bottom: 1px;
  white-space: nowrap;
}
.plan-old-price {
  color: var(--color-subtle);
  font-size: 13px;
  font-weight: 800;
  text-decoration: line-through;
}
.plan-price {
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}
.plan-meta {
  display: grid;
  grid-area: meta;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.plan-meta > span {
  display: grid;
  min-width: 0;
  min-height: 42px;
  align-content: center;
  gap: 3px;
  padding: 7px 9px;
  border: 1px solid rgba(157, 170, 196, 0.14);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.plan-card small {
  color: var(--color-muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}
.plan-meta b {
  min-width: 0;
  overflow: hidden;
  color: var(--color-text);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.challenge-summary {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 16px;
}
.summary-card {
  display: grid;
  --panel-accent-rgb: var(--program-rgb);
  gap: 18px;
  padding: 20px;
  border-color: rgba(var(--program-rgb), 0.18);
  border-radius: var(--radius-xl);
}
.summary-card h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.1;
}
.summary-intro,
.summary-total > div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.summary-intro {
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.summary-intro p {
  max-width: 180px;
  margin: 0;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.45;
}
.price-stack {
  display: grid;
  flex: 0 0 auto;
  justify-items: end;
  gap: 3px;
  text-align: right;
}
.price-stack span {
  color: var(--color-subtle);
  font-size: 13px;
  font-weight: 800;
  text-decoration: line-through;
}
.price-stack strong {
  font-size: 20px;
  line-height: 1;
}
.price-stack.is-small span {
  font-size: 11px;
}
.price-stack.is-small strong {
  font-size: 14px;
}
.addon-list {
  display: grid;
  gap: 10px;
}
.addon-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(157, 170, 196, 0.14);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
}
.addon-control {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  cursor: pointer;
}
.addon-control input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.addon-check {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: transparent;
  background: rgba(255, 255, 255, 0.03);
  transition:
    border-color 180ms ease,
    color 180ms ease,
    background 180ms ease;
}
.addon-control input:checked + .addon-check {
  color: #090202;
  border-color: transparent;
  background: var(--program-text);
}
.addon-control strong {
  display: block;
  color: var(--color-text);
  font-size: 14px;
  line-height: 1.35;
}
.addon-control small {
  display: block;
  margin-top: 5px;
  color: var(--color-subtle);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}
.summary-total {
  display: grid;
  gap: 8px;
  padding-top: 2px;
}
.summary-total span {
  color: var(--color-text);
  font-size: 20px;
  font-weight: 900;
}
.summary-total strong {
  font-size: 28px;
  line-height: 1;
}
.summary-total p {
  margin: 0;
  color: var(--program-text);
  font-size: 13px;
  font-weight: 850;
  text-align: right;
}
.summary-actions {
  display: grid;
  gap: 10px;
}
.summary-promo,
.summary-buy {
  width: 100%;
  text-transform: uppercase;
}
.summary-buy.primary-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border: 1px solid rgba(226, 232, 244, 0.12);
  border-radius: 18px;
  color: var(--color-text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.036);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  text-align: center;
  text-transform: none;
  animation: none;
}
.summary-buy.primary-button::before {
  display: none;
  content: none;
  animation: none;
}
.summary-buy.primary-button::after {
  display: none;
  content: "";
}
.summary-buy.primary-button > * {
  z-index: 2;
}
.summary-buy-copy {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}
.summary-buy-label {
  color: rgba(237, 242, 255, 0.8);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.07em;
  line-height: 1;
  text-transform: uppercase;
  transform: translateY(1px);
}
.summary-buy-amount {
  color: var(--color-text);
  background: none;
  font-size: 20px;
  font-weight: 820;
  letter-spacing: 0;
  line-height: 1;
  text-shadow: none;
  -webkit-text-fill-color: currentColor;
}
.summary-buy.primary-button:hover {
  border-color: rgba(226, 232, 244, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.032)),
    rgba(255, 255, 255, 0.052);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  filter: none;
}
.summary-buy.primary-button:hover::before {
  display: none;
}
.summary-buy.primary-button:disabled {
  cursor: wait;
  filter: saturate(0.78);
  opacity: 0.76;
}
.summary-buy-error {
  margin: 0;
  color: var(--color-negative);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}
.summary-promo.ghost-button {
  border-color: rgba(var(--program-rgb), 0.18);
  background: rgba(var(--program-rgb), 0.055);
}
.summary-promo.ghost-button:hover {
  border-color: rgba(var(--program-rgb), 0.34);
  background: rgba(var(--program-rgb), 0.095);
}
.starter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}
.challenge-summary .starter-grid {
  grid-template-columns: 1fr;
}
.challenge-summary .starter-card {
  min-height: 118px;
}
.starter-card {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 150px;
  align-content: start;
  gap: 9px;
  overflow: hidden;
  padding: 16px;
  border: 1px solid rgba(157, 170, 196, 0.14);
  border-radius: var(--radius-lg);
  color: inherit;
  background: rgba(255, 255, 255, 0.03);
  text-align: left;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform var(--button-motion);
}
.challenge-layout .starter-card {
  border-color: rgba(157, 170, 196, 0.14);
  background: rgba(255, 255, 255, 0.03);
}
.challenge-layout .starter-card:hover {
  border-color: rgba(157, 170, 196, 0.2);
  background: rgba(255, 255, 255, 0.05);
}
.starter-card:hover {
  border-color: rgba(157, 170, 196, 0.2);
  background: rgba(255, 255, 255, 0.05);
}
.starter-card > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: var(--radius-md);
}
.starter-card.tone-cyan > span {
  color: var(--color-cyan);
  background: rgba(58, 84, 214, 0.14);
}
.starter-card.tone-purple > span {
  color: var(--color-accent-strong);
  background: rgba(183, 121, 255, 0.1);
}
.starter-card.tone-violet > span {
  color: var(--color-warning);
  background: rgba(197, 140, 255, 0.12);
}
.challenge-layout .starter-card > span {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.055);
}
.starter-card strong {
  color: var(--color-text);
  font-size: 15px;
  line-height: 1.2;
}
.starter-card small {
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}
@media (max-width: 1180px) {

  .challenge-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
}
@media (max-width: 860px) {

  .challenge-layout {
    grid-template-columns: 1fr;
  }

  .challenge-summary {
    position: static;
  }

  .starter-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {

  .rules-table {
    gap: 0;
  }

  .rules-head {
    display: none;
  }

  .rules-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
  }

  .rules-row strong {
    grid-column: 1 / -1;
  }

  .rules-row span {
    text-align: left;
  }

  .plan-card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
      "kicker"
      "heading"
      "meta";
    min-height: 164px;
    gap: 12px;
  }

  .plan-heading {
    padding-right: 104px;
  }

  .plan-card strong {
    font-size: 30px;
  }

  .plan-cost {
    position: absolute;
    top: 72px;
    right: 16px;
    gap: 3px;
    padding-bottom: 0;
  }

  .plan-old-price {
    font-size: 12px;
  }

  .plan-price {
    font-size: 20px;
  }

  .plan-meta > span {
    min-height: 38px;
    padding: 6px 8px;
  }
}
.challenge-layout.is-pattern-pulsing .challenge-rules::before,
.challenge-layout.is-pattern-pulsing .summary-card::before,
.challenge-layout.is-pattern-pulsing .starter-panel::before,
.challenge-layout.is-pattern-pulsing .plan-diamonds,
.plan-badge,
.primary-button,
.summary-buy.primary-button {
  animation: none;
}
@media (prefers-reduced-motion: reduce) {
  .option-tabs::before,
.challenge-rules::before,
.summary-card::before,
.starter-panel::before,
.option-tabs button.is-active::before,
.plan-card.is-active::before,
.summary-buy.primary-button::before,
.plan-badge,
.challenge-layout.is-pattern-pulsing .plan-diamonds,
.challenge-layout.is-pattern-pulsing .challenge-rules::before,
.challenge-layout.is-pattern-pulsing .summary-card::before,
.challenge-layout.is-pattern-pulsing .starter-panel::before {
    animation: none !important;
  }
}
.challenge-layout {
  position: relative;
  z-index: 1;
}
.option-tabs,
.challenge-rules,
.summary-card,
.starter-panel {
  position: relative;
  isolation: isolate;
  --panel-accent-rgb: 139, 124, 246;
  --panel-fill-rgb: 8, 11, 18;
  overflow: hidden;
  border: 1px solid rgba(157, 170, 196, 0.14);
  background: rgba(12, 15, 22, 0.2);
  box-shadow: none;
  backdrop-filter: blur(8px) saturate(108%);
  -webkit-backdrop-filter: blur(8px) saturate(108%);
}
.option-tabs::before,
.challenge-rules::before,
.summary-card::before,
.starter-panel::before {
  display: none;
  content: "";
}
.option-tabs::after,
.challenge-rules::after,
.summary-card::after,
.starter-panel::after {
  display: none;
  content: "";
}
.option-tabs > *,
.challenge-rules > *,
.summary-card > *,
.starter-panel > * {
  position: relative;
  z-index: 1;
}
@media (max-width: 560px) {

  .option-tabs,
  .plan-grid {
    grid-template-columns: 1fr;
  }
}
.plan-diamonds {
  display: none;
}
.plan-badge,
.summary-buy {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}
.summary-buy:hover {
  background: rgba(255, 255, 255, 0.052);
  box-shadow: none;
}
.workspace-page-tournaments {
  background: #000;
}

.tournaments-page,
.tournament-detail {
  display: grid;
  gap: 22px;
  width: 100%;
}

.tournaments-hero,
.tournament-detail-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 324px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.48fr);
  gap: 28px;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(157, 170, 196, 0.14);
  border-radius: var(--radius-xl);
  background: rgba(12, 15, 22, 0.2);
  box-shadow: none;
}

.tournament-detail-hero {
  grid-template-columns: minmax(360px, 0.96fr) minmax(560px, 1.04fr);
}

.tournaments-hero::before,
.tournament-detail-hero::before,
.tournament-card::before,
.tournament-rank-card::before {
  display: none;
  content: none;
}

.tournaments-hero > *,
.tournament-detail-hero > *,
.tournament-card > *,
.tournament-rank-card > * {
  position: relative;
  z-index: 1;
}

.tournaments-hero-copy,
.tournament-detail-copy {
  display: grid;
  align-content: center;
  justify-items: start;
  min-width: 0;
}

.tournaments-hero-copy {
  z-index: 3;
}

.tournaments-hero h1,
.tournament-detail h1 {
  max-width: 760px;
  margin: 18px 0 10px;
  color: #f7f9ff;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 0.98;
  letter-spacing: 0;
}

.tournaments-hero p,
.tournament-detail-copy p {
  max-width: 640px;
  margin: 0;
  color: #9aa8c7;
  font-size: 15px;
  line-height: 1.55;
}

.tournament-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: #b9c4d9;
  font-size: 13px;
  font-weight: 750;
}

.tournament-meta-row span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.tournaments-hero-meta {
  margin-top: 18px;
}

.tournament-status {
  display: inline-flex;
  justify-self: start;
  min-height: 24px;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  border: 1px solid rgba(157, 170, 196, 0.16);
  border-radius: 999px;
  color: #dfe6f6;
  background: rgba(255, 255, 255, 0.036);
  font-size: 12px;
  line-height: 1;
}

.tournament-status > span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 16px currentColor;
}

.tournament-status-positive {
  color: #61d6ba;
}

.tournament-status-warning {
  color: #efcf88;
}

.tournament-status-ended {
  color: #ff8ba5;
}

.tournaments-hero-dates {
  display: grid;
  width: min(100%, 680px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.tournaments-hero-dates div {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid rgba(157, 170, 196, 0.13);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
}

.tournaments-hero-dates span,
.tournament-rank-card span,
.tournament-prize-row span {
  display: block;
  color: #7f8ca4;
  font-size: 12px;
  font-weight: 800;
}

.tournaments-hero-dates strong {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: #eef3fb;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tournaments-hero-actions {
  margin-top: 24px;
}

.tournaments-hero-actions .tournament-action-button,
.tournament-detail .hero-actions .tournament-action-button,
.tournament-rank-card .tournament-action-button {
  min-width: 150px;
  gap: 6px;
  padding: 0 16px;
  border-color: rgba(226, 232, 244, 0.12);
  color: #dce4ef;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.036);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

@media (min-width: 1181px) {
  .tournaments-hero {
    grid-template-columns: minmax(0, 0.92fr) minmax(420px, 0.72fr);
  }
}

.tournament-artwork {
  position: relative;
  z-index: 0;
  display: grid;
  min-width: 0;
  min-height: 260px;
  place-items: center;
  align-self: stretch;
  overflow: visible;
  pointer-events: none;
}

.tournament-artwork.is-compact {
  min-height: 178px;
}

.tournament-artwork-space {
  position: absolute;
  inset: -16% -14% -14% 4%;
  z-index: 0;
}

.tournament-artwork-floater {
  position: absolute;
  width: calc(var(--floater-size) * var(--floater-scale, 1));
  height: auto;
  max-width: none;
  opacity: 0;
  filter: blur(calc(var(--floater-blur, 0px) + 18px)) drop-shadow(0 18px 26px rgba(0, 0, 0, 0.32));
  transform-origin: center;
  animation: tournament-trophy-materialize 0.92s cubic-bezier(0.18, 0.86, 0.28, 1) both;
  animation-delay: var(--reveal-delay, 0ms);
  will-change: transform, opacity, filter;
}

.tournament-artwork-floater-image {
  display: block;
  width: 100%;
  height: auto;
  animation: tournament-trophy-float var(--floater-speed) ease-in-out infinite;
  animation-delay: var(--floater-delay);
  will-change: transform, opacity;
}

.tournament-artwork-floater-mini {
  --floater-scale: 0.78;
}

.tournament-artwork-floater-1 {
  --floater-size: 144px;
  --floater-speed: 27s;
  --floater-delay: -1.8s;
  --floater-opacity: 0.82;
  --floater-blur: 1px;
  left: 4%;
  top: 0%;
}

.tournament-artwork-floater-2 {
  --floater-size: 116px;
  --floater-mirror: -1;
  --floater-speed: 32.4s;
  --floater-delay: -7.1s;
  --floater-opacity: 0.68;
  --floater-blur: 3px;
  left: 62%;
  top: 2%;
}

.tournament-artwork-floater-3 {
  --floater-size: 184px;
  --floater-speed: 36s;
  --floater-delay: -10.4s;
  --floater-opacity: 0.9;
  --floater-blur: 0px;
  left: 38%;
  top: 33%;
}

.tournament-artwork-floater-4 {
  --floater-size: 132px;
  --floater-mirror: -1;
  --floater-speed: 29.6s;
  --floater-delay: -4.6s;
  --floater-opacity: 0.72;
  --floater-blur: 2px;
  left: 76%;
  top: 50%;
}

.tournament-artwork-floater-5 {
  --floater-size: 96px;
  --floater-speed: 40s;
  --floater-delay: -12.6s;
  --floater-opacity: 0.62;
  --floater-blur: 5px;
  left: 8%;
  top: 70%;
}

.tournament-artwork-floater-6 {
  --floater-size: 124px;
  --floater-mirror: -1;
  --floater-speed: 34.8s;
  --floater-delay: -15.2s;
  --floater-opacity: 0.66;
  --floater-blur: 3px;
  left: 50%;
  top: 72%;
}

.tournament-artwork-floater-7 {
  --floater-size: 108px;
  --floater-speed: 38.6s;
  --floater-delay: -19.4s;
  --floater-opacity: 0.58;
  --floater-blur: 4px;
  left: 26%;
  top: 14%;
}

.tournament-artwork-floater-8 {
  --floater-size: 136px;
  --floater-mirror: -1;
  --floater-speed: 31.2s;
  --floater-delay: -22.8s;
  --floater-opacity: 0.7;
  --floater-blur: 2px;
  left: 88%;
  top: 24%;
}

.tournament-artwork-floater-1 .tournament-artwork-floater-image,
.tournament-artwork-floater-4 .tournament-artwork-floater-image,
.tournament-artwork-floater-6 .tournament-artwork-floater-image,
.tournament-artwork-floater-8 .tournament-artwork-floater-image {
  animation-name: tournament-trophy-float-alt;
}

@keyframes tournament-trophy-materialize {
  0% {
    opacity: 0;
    filter: blur(18px) drop-shadow(0 18px 26px rgba(0, 0, 0, 0.32));
    transform: scale(0.72);
  }
  48% {
    opacity: 0.78;
    filter: blur(8px) drop-shadow(0 18px 26px rgba(0, 0, 0, 0.32));
    transform: scale(1.04);
  }
  100% {
    opacity: 1;
    filter: blur(var(--floater-blur, 0px)) drop-shadow(0 18px 26px rgba(0, 0, 0, 0.32));
    transform: scale(1);
  }
}

@keyframes tournament-trophy-float {
  0% {
    opacity: 0.68;
    transform: translate(-8px, 5px) rotate(-7deg) scale(0.92) scaleX(var(--floater-mirror, 1));
  }
  26% {
    opacity: var(--floater-opacity);
    transform: translate(20px, -14px) rotate(8deg) scale(1.04) scaleX(var(--floater-mirror, 1));
  }
  54% {
    opacity: 0.58;
    transform: translate(34px, 16px) rotate(-10deg) scale(0.94) scaleX(var(--floater-mirror, 1));
  }
  78% {
    opacity: var(--floater-opacity);
    transform: translate(-18px, -12px) rotate(6deg) scale(1) scaleX(var(--floater-mirror, 1));
  }
  100% {
    opacity: 0.68;
    transform: translate(-8px, 5px) rotate(-7deg) scale(0.92) scaleX(var(--floater-mirror, 1));
  }
}

@keyframes tournament-trophy-float-alt {
  0% {
    opacity: 0.66;
    transform: translate(14px, -12px) rotate(10deg) scale(1.02) scaleX(var(--floater-mirror, 1));
  }
  24% {
    opacity: 0.56;
    transform: translate(36px, 14px) rotate(-9deg) scale(0.94) scaleX(var(--floater-mirror, 1));
  }
  52% {
    opacity: var(--floater-opacity);
    transform: translate(-22px, 24px) rotate(12deg) scale(1.06) scaleX(var(--floater-mirror, 1));
  }
  76% {
    opacity: 0.72;
    transform: translate(10px, -24px) rotate(-14deg) scale(0.98) scaleX(var(--floater-mirror, 1));
  }
  100% {
    opacity: 0.66;
    transform: translate(14px, -12px) rotate(10deg) scale(1.02) scaleX(var(--floater-mirror, 1));
  }
}

@media (prefers-reduced-motion: reduce) {
  .tournament-artwork-floater,
  .tournament-artwork-floater-image {
    animation: none;
  }

  .tournament-artwork-floater {
    opacity: 1;
    filter: blur(0) drop-shadow(0 18px 26px rgba(0, 0, 0, 0.32));
  }
}

.tournament-tabs {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 2px 14px;
  border-bottom: 1px solid rgba(157, 170, 196, 0.16);
}

.tournament-tabs button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: #9aa8c7;
  font-size: 13px;
  font-weight: 850;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    transform var(--button-motion);
}

.tournament-tabs button:hover,
.tournament-tabs button.is-active {
  color: #f7f9ff;
  border-color: rgba(103, 132, 190, 0.42);
  background: rgba(26, 33, 48, 0.28);
}

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

.tournament-card {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 196px;
  align-content: space-between;
  gap: 16px;
  overflow: hidden;
  padding: 20px;
  border-radius: var(--radius-xl);
  background: rgba(12, 15, 22, 0.2);
  box-shadow: none;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 220ms ease;
}

.tournament-card:hover {
  border-color: rgba(103, 132, 190, 0.42);
  background: rgba(26, 33, 48, 0.28);
  transform: translateY(-2px);
}

.tournament-card-top,
.tournament-card-footer,
.tournament-card-summary,
.tournament-card-open {
  display: flex;
  align-items: center;
}

.tournament-card-top,
.tournament-card-footer {
  justify-content: space-between;
  gap: 10px;
}

.tournament-card-top .tournament-status {
  margin-left: auto;
}

.tournament-card-timer {
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #dfe7f7;
  background: rgba(255, 255, 255, 0.07);
  font-size: 13px;
  font-weight: 850;
}

.tournament-card h3 {
  margin: 0;
  color: #f7f9ff;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: 0;
}

.tournament-card-footer {
  padding-top: 14px;
  border-top: 1px solid rgba(157, 170, 196, 0.11);
}

.tournament-card-summary {
  min-width: 0;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: #aeb9ce;
  font-size: 12px;
  font-weight: 800;
}

.tournament-card-summary span {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.tournament-card-summary svg {
  flex: 0 0 auto;
  color: #8d9ab2;
}

.tournament-card-open {
  flex: 0 0 auto;
  min-height: 34px;
  gap: 4px;
  padding: 0 10px 0 12px;
  border: 1px solid rgba(157, 170, 196, 0.14);
  border-radius: var(--radius-sm);
  color: #b9c4d9;
  background: rgba(255, 255, 255, 0.032);
  font-size: 13px;
  font-weight: 850;
  box-shadow: none;
}

.tournament-card-open:hover {
  color: #f7f9ff;
  border-color: rgba(103, 132, 190, 0.36);
  background: rgba(26, 33, 48, 0.3);
}

.tournament-back {
  justify-self: start;
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid rgba(157, 170, 196, 0.14);
  border-radius: var(--radius-sm);
  color: #9aa8c7;
  background: rgba(255, 255, 255, 0.028);
  font-weight: 800;
}

.tournament-back:hover {
  color: #f7f9ff;
  border-color: rgba(103, 132, 190, 0.42);
  background: rgba(26, 33, 48, 0.28);
}

.tournament-countdown {
  display: flex;
  gap: 12px;
  margin: 28px 0 26px;
}

.tournament-countdown div {
  display: grid;
  min-width: 78px;
  min-height: 86px;
  place-items: center;
  padding: 10px;
  border: 1px solid rgba(157, 170, 196, 0.14);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.032);
}

.tournament-countdown strong {
  color: #f7f9ff;
  font-size: 25px;
  line-height: 1;
}

.tournament-countdown span {
  color: #9aa8c7;
  font-size: 13px;
}

.tournament-podium {
  display: flex;
  align-self: center;
  align-items: end;
  justify-content: center;
  gap: 14px;
  min-width: 0;
  padding-top: 8px;
}

.tournament-podium-card {
  --podium-accent-rgb: 96, 165, 250;
  --podium-accent-strong: #bfdbfe;
  display: flex;
  width: 155px;
  min-width: 0;
  flex: 0 0 155px;
  flex-direction: column;
  align-items: center;
  animation: tournament-podium-rise 0.45s ease both;
  animation-delay: var(--podium-delay);
  text-align: center;
}

.tournament-podium-card-1 {
  width: 171px;
  flex-basis: 171px;
}

.tournament-podium-accent-gold {
  --podium-accent-rgb: 250, 204, 21;
  --podium-accent-strong: #fef08a;
}

.tournament-podium-accent-violet {
  --podium-accent-rgb: 167, 139, 250;
  --podium-accent-strong: #ddd6fe;
}

.tournament-podium-card-head {
  display: grid;
  justify-items: center;
  min-width: 0;
  margin-bottom: 14px;
}

.tournament-podium-card h3 {
  width: 100%;
  overflow: hidden;
  margin: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 760;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tournament-podium-card p {
  margin: 4px 0 0;
  color: #7f8ca4;
  font-size: 13px;
  line-height: 1.35;
}

.tournament-podium-block {
  position: relative;
  display: flex;
  width: 100%;
  height: 236px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 35%),
    linear-gradient(
      180deg,
      rgba(var(--podium-accent-rgb), 0.15),
      rgba(var(--podium-accent-rgb), 0.04)
    );
  box-shadow: 0 24px 54px rgba(var(--podium-accent-rgb), 0.1);
}

.tournament-podium-card-1 .tournament-podium-block {
  height: 294px;
}

.tournament-podium-card-3 .tournament-podium-block {
  height: 212px;
}

.tournament-podium-shine {
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(var(--podium-accent-rgb), 0.58),
    transparent
  );
}

.tournament-podium-main {
  position: relative;
  display: grid;
  flex: 1;
  place-items: center;
  align-content: center;
}

.tournament-podium-number {
  color: var(--podium-accent-strong);
  font-size: 64px;
  font-weight: 820;
  line-height: 1;
}

.tournament-podium-gain {
  margin-top: 14px;
  padding: 8px 13px;
  border: 1px solid rgba(var(--podium-accent-rgb), 0.2);
  border-radius: 999px;
  color: var(--podium-accent-strong);
  background: rgba(var(--podium-accent-rgb), 0.1);
  font-size: 13px;
  font-weight: 760;
}

.tournament-podium-foot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #7f8ca4;
  font-size: 9px;
  font-weight: 560;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.tournament-podium-foot strong {
  overflow: hidden;
  color: #dfe7f7;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: none;
}

@keyframes tournament-podium-rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tournament-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.48fr);
  gap: 20px;
  align-items: start;
}

.tournament-main,
.tournament-side,
.tournament-rules {
  display: grid;
}

.tournament-main {
  min-width: 0;
  gap: 20px;
}

.tournament-side {
  gap: 14px;
}

.tournament-leaderboard {
  min-width: 0;
}

.tournament-leaderboard.data-panel,
.tournament-info-card.data-panel,
.tournament-prizes.data-panel,
.tournament-rules.data-panel {
  border-color: rgba(157, 170, 196, 0.14);
  background: rgba(12, 15, 22, 0.2);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.tournament-leaderboard.data-panel::before,
.tournament-info-card.data-panel::before,
.tournament-prizes.data-panel::before,
.tournament-rules.data-panel::before,
.tournament-leaderboard.data-panel::after,
.tournament-info-card.data-panel::after,
.tournament-prizes.data-panel::after,
.tournament-rules.data-panel::after {
  display: none;
  content: none;
}

.tournament-table {
  display: grid;
  gap: 0;
  margin-top: 18px;
}

.tournament-table-row {
  display: grid;
  grid-template-columns: 70px minmax(190px, 1.2fr) 100px 110px minmax(140px, 1fr) 100px;
  gap: 12px;
  align-items: center;
  min-height: 70px;
  border-bottom: 1px solid rgba(157, 170, 196, 0.14);
  color: #dfe7f7;
  font-size: 14px;
}

.tournament-table-row:last-child {
  border-bottom: 0;
}

.tournament-table-head {
  min-height: 44px;
  color: #7f8ca4;
  font-size: 12px;
  font-weight: 850;
}

.tournament-rank {
  color: #f7f9ff;
  font-weight: 900;
}

.tournament-player {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  font-weight: 850;
}

.tournament-medal {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(157, 170, 196, 0.16);
  border-radius: 12px;
  color: #dfe7f7;
  background: rgba(255, 255, 255, 0.036);
}

.tournament-medal-1 {
  color: #fff1bd;
  background: rgba(239, 207, 136, 0.14);
}

.tournament-medal-2,
.tournament-medal-3 {
  color: #cbd8ff;
  background: rgba(92, 109, 229, 0.12);
}

.tournament-detail .is-positive {
  color: #61d6ba;
}

.tournament-rank-card {
  position: relative;
  isolation: isolate;
  display: grid;
  justify-items: center;
  gap: 10px;
  overflow: hidden;
  padding: 18px 20px 20px;
  border: 1px solid rgba(226, 210, 255, 0.13);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(145deg, rgba(183, 121, 255, 0.11), rgba(255, 122, 245, 0.045)),
    rgba(12, 15, 22, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  text-align: center;
}

.tournament-rank-card::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  content: '';
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 46%);
  opacity: 0.72;
  pointer-events: none;
}

.tournament-rank-card span {
  color: #aeb9ce;
}

.tournament-rank-card > strong {
  color: #fff;
  font-size: 34px;
  line-height: 1;
  letter-spacing: 0;
}

.tournament-rank-card .primary-button {
  min-height: 38px;
  margin-top: 4px;
}

.tournament-info-card dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 14px;
  margin: 0;
}

.tournament-info-card div {
  min-width: 0;
}

.tournament-info-card dt {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #9aa8c7;
  font-size: 13px;
}

.tournament-info-card dd {
  margin: 7px 0 0 3px;
  color: #eef3fb;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.35;
}

.tournament-prizes,
.tournament-rules {
  scroll-margin-top: 24px;
}

.tournament-prizes h3,
.tournament-rules h3 {
  margin: 0 0 14px;
  color: #f7f9ff;
  font-size: 18px;
}

.tournament-prizes.is-panel-highlighted,
.tournament-rules.is-panel-highlighted {
  animation: tournament-panel-flash 0.78s ease-out;
}

@keyframes tournament-panel-flash {
  0%,
  100% {
    border-color: rgba(157, 170, 196, 0.14);
    background: rgba(12, 15, 22, 0.2);
    box-shadow: none;
  }
  10%,
  33%,
  56% {
    border-color: rgba(188, 126, 255, 0.78);
    background: rgba(137, 84, 255, 0.18);
    box-shadow:
      0 0 0 1px rgba(188, 126, 255, 0.34),
      0 0 34px rgba(137, 84, 255, 0.2);
  }
  22%,
  45%,
  86% {
    border-color: rgba(188, 126, 255, 0.36);
    background: rgba(137, 84, 255, 0.1);
    box-shadow:
      0 0 0 1px rgba(188, 126, 255, 0.16),
      0 0 22px rgba(137, 84, 255, 0.12);
  }
  70% {
    border-color: rgba(188, 126, 255, 0.5);
    background: rgba(137, 84, 255, 0.13);
    box-shadow:
      0 0 0 1px rgba(188, 126, 255, 0.22),
      0 0 26px rgba(137, 84, 255, 0.15);
  }
}

.tournament-prize-row {
  display: grid;
  grid-template-columns: 82px minmax(80px, 1fr);
  gap: 4px 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(157, 170, 196, 0.12);
}

.tournament-prize-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.tournament-prize-row strong {
  color: #61d6ba;
  text-align: right;
}

.tournament-prize-row small {
  grid-column: 1 / -1;
  color: #9aa8c7;
}

.tournament-rules {
  gap: 10px;
}

.tournament-rules p {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: #dfe7f7;
  font-size: 14px;
}

.tournament-rules svg {
  flex: 0 0 auto;
  color: #61d6ba;
}

@media (prefers-reduced-motion: reduce) {
  .tournament-podium-card,
  .tournament-prizes.is-panel-highlighted,
  .tournament-rules.is-panel-highlighted {
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tournament-card:hover {
    transform: none;
  }
}

@media (max-width: 1180px) {
  .tournaments-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tournament-detail-hero,
  .tournament-detail-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 860px) {
  .workspace-page-tournaments {
    padding-bottom: 92px;
  }

  .tournaments-hero,
  .tournament-detail-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 22px;
  }

  .tournaments-hero h1,
  .tournament-detail h1 {
    font-size: 34px;
  }

  .tournament-artwork {
    min-height: 230px;
  }

  .tournaments-hero .tournament-artwork {
    position: absolute;
    inset: 0;
    min-height: 0;
  }

  .tournaments-hero::after {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
    content: '';
    background: rgba(8, 10, 15, 0.16);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    pointer-events: none;
  }

  .tournament-artwork-space {
    inset: -8%;
  }

  .tournament-artwork-floater {
    width: calc(var(--floater-size) * var(--floater-scale, 1) * 1.28);
  }

  .tournaments-hero-dates div {
    border-color: rgba(157, 170, 196, 0.24);
    background: rgba(12, 15, 22, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .tournament-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none;
  }

  .tournament-tabs::-webkit-scrollbar {
    display: none;
  }

  .tournament-tabs button {
    flex: 0 0 auto;
  }

  .tournaments-grid,
  .tournament-side {
    grid-template-columns: 1fr;
  }

  .tournament-info-card dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tournament-table {
    display: block;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .tournament-table-row {
    min-width: 720px;
  }
}

@media (max-width: 560px) {
  .tournaments-page,
  .tournament-detail {
    gap: 16px;
  }

  .tournaments-hero,
  .tournament-detail-hero,
  .tournament-card,
  .tournament-leaderboard,
  .tournament-info-card,
  .tournament-prizes,
  .tournament-rules,
  .tournament-rank-card {
    border-radius: var(--radius-lg);
  }

  .tournaments-hero,
  .tournament-detail-hero {
    padding: 18px;
  }

  .tournaments-hero h1,
  .tournament-detail h1 {
    margin-top: 14px;
    font-size: 29px;
  }

  .tournaments-hero-dates,
  .tournament-info-card dl {
    grid-template-columns: 1fr;
  }

  .tournaments-hero-actions,
  .tournament-detail .hero-actions {
    width: 100%;
  }

  .tournaments-hero-actions .primary-button,
  .tournament-detail .hero-actions .primary-button {
    flex: 1 1 100%;
    justify-content: center;
  }

  .tournament-card {
    min-height: 0;
    padding: 18px;
  }

  .tournament-card-footer {
    display: grid;
  }

  .tournament-card-summary {
    justify-content: center;
  }

  .tournament-card-open {
    width: 100%;
    justify-content: center;
  }

  .tournament-countdown {
    width: 100%;
    gap: 8px;
  }

  .tournament-countdown div {
    min-width: 0;
    flex: 1;
  }

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

  .tournament-podium-card,
  .tournament-podium-card-1 {
    width: 100%;
    flex: 0 0 auto;
  }

  .tournament-podium-card {
    display: grid;
    grid-template-columns: minmax(0, 0.56fr) minmax(120px, 1fr);
    gap: 12px;
    align-items: end;
    text-align: left;
  }

  .tournament-podium-card-head {
    justify-items: start;
    margin-bottom: 0;
  }

  .tournament-podium-block,
  .tournament-podium-card-1 .tournament-podium-block,
  .tournament-podium-card-3 .tournament-podium-block {
    height: 156px;
  }
}
/* Referrals */
.referrals-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 18px;
  align-items: start;
  min-width: 0;
}
.referrals-hero,
.referral-share-panel,
.referral-tier-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-width: 0;
  border: 1px solid rgba(157, 170, 196, 0.14);
  border-radius: var(--radius-xl);
  background: rgba(12, 15, 22, 0.2);
  box-shadow: none;
  backdrop-filter: blur(34px) saturate(132%);
  -webkit-backdrop-filter: blur(34px) saturate(132%);
}
.referrals-hero::before,
.referral-share-panel::before,
.referral-tier-panel::before {
  display: none;
  content: "";
}
.referrals-hero::after,
.referral-share-panel::after,
.referral-tier-panel::after {
  display: none;
  content: "";
}
.referral-share-panel > *,
.referral-tier-panel > * {
  position: relative;
  z-index: 1;
}
.referrals-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(330px, 0.68fr);
  align-self: stretch;
  min-height: 360px;
  align-items: center;
  gap: 22px;
  padding: 28px;
}
.referrals-hero > * {
  position: relative;
  z-index: 1;
}
.referrals-hero-copy {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 18px;
  min-width: 0;
}
.referrals-hero-copy .section-chip {
  width: fit-content;
}
.referrals-hero-copy h2 {
  max-width: 620px;
  margin: 0;
  color: var(--color-text);
  font-size: clamp(32px, 4vw, 56px);
  line-height: 0.98;
  letter-spacing: 0;
}
.referrals-hero-copy p {
  max-width: 560px;
  margin: 0;
  color: var(--color-muted);
  font-size: 15px;
  line-height: 1.55;
}
.referral-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.referral-hero-actions .primary-button,
.referral-hero-actions .ghost-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.referral-artwork {
  position: relative;
  z-index: 0;
  display: grid;
  min-width: 0;
  min-height: 304px;
  align-self: stretch;
  overflow: visible;
  place-items: center;
  pointer-events: none;
}
.referral-artwork-space {
  position: absolute;
  inset: -18% -16% -24% -12%;
  z-index: 0;
}
.referral-artwork-floater {
  position: absolute;
  width: calc(var(--floater-size) * var(--floater-scale, 1));
  height: auto;
  max-width: none;
  opacity: 0;
  filter: blur(calc(var(--floater-blur, 0px) + 18px)) drop-shadow(0 20px 28px rgba(0, 0, 0, 0.34));
  transform-origin: center;
  animation: referral-astronaut-materialize 0.92s cubic-bezier(0.18, 0.86, 0.28, 1) both;
  animation-delay: var(--reveal-delay, 0ms);
  will-change: transform, opacity, filter;
}
.referral-artwork-floater-image {
  display: block;
  width: 100%;
  height: auto;
  animation: referral-astronaut-float var(--floater-speed) ease-in-out infinite;
  animation-delay: var(--floater-delay);
  will-change: transform, opacity;
}
.referral-artwork-floater-medium {
  --floater-scale: 0.82;
}
.referral-artwork-floater-1 {
  --floater-size: 192px;
  --floater-speed: 31s;
  --floater-delay: -4.2s;
  --floater-opacity: 0.78;
  --floater-blur: 1px;
  top: 0%;
  left: 4%;
}
.referral-artwork-floater-2 {
  --floater-size: 174px;
  --floater-mirror: -1;
  --floater-speed: 35s;
  --floater-delay: -11.6s;
  --floater-opacity: 0.62;
  --floater-blur: 4px;
  top: 6%;
  left: 58%;
}
.referral-artwork-floater-3 {
  --floater-size: 208px;
  --floater-speed: 38s;
  --floater-delay: -17.8s;
  --floater-opacity: 0.86;
  --floater-blur: 2px;
  top: 32%;
  left: 28%;
}
.referral-artwork-floater-4 {
  --floater-size: 178px;
  --floater-mirror: -1;
  --floater-speed: 33s;
  --floater-delay: -24.4s;
  --floater-opacity: 0.68;
  --floater-blur: 3px;
  top: 48%;
  left: 76%;
}
.referral-artwork-floater-2 .referral-artwork-floater-image,
.referral-artwork-floater-4 .referral-artwork-floater-image {
  animation-name: referral-astronaut-float-alt;
}
@keyframes referral-astronaut-materialize {
  0% {
    opacity: 0;
    filter: blur(18px) drop-shadow(0 20px 28px rgba(0, 0, 0, 0.34));
    transform: scale(0.72);
  }

  48% {
    opacity: 0.74;
    filter: blur(8px) drop-shadow(0 20px 28px rgba(0, 0, 0, 0.34));
    transform: scale(1.04);
  }

  100% {
    opacity: 1;
    filter: blur(var(--floater-blur, 0px)) drop-shadow(0 20px 28px rgba(0, 0, 0, 0.34));
    transform: scale(1);
  }
}
@keyframes referral-astronaut-float {
  0%,
  100% {
    opacity: 0.64;
    transform: translate(-8px, 8px) rotate(-8deg) scale(0.94) scaleX(var(--floater-mirror, 1));
  }

  28% {
    opacity: var(--floater-opacity);
    transform: translate(18px, -18px) rotate(7deg) scale(1.04) scaleX(var(--floater-mirror, 1));
  }

  56% {
    opacity: 0.58;
    transform: translate(32px, 15px) rotate(-10deg) scale(0.96) scaleX(var(--floater-mirror, 1));
  }

  78% {
    opacity: var(--floater-opacity);
    transform: translate(-18px, -10px) rotate(5deg) scale(1) scaleX(var(--floater-mirror, 1));
  }
}
@keyframes referral-astronaut-float-alt {
  0%,
  100% {
    opacity: 0.62;
    transform: translate(12px, -12px) rotate(9deg) scale(1.02) scaleX(var(--floater-mirror, 1));
  }

  24% {
    opacity: 0.54;
    transform: translate(34px, 16px) rotate(-8deg) scale(0.95) scaleX(var(--floater-mirror, 1));
  }

  52% {
    opacity: var(--floater-opacity);
    transform: translate(-20px, 22px) rotate(11deg) scale(1.06) scaleX(var(--floater-mirror, 1));
  }

  76% {
    opacity: 0.7;
    transform: translate(9px, -24px) rotate(-13deg) scale(0.98) scaleX(var(--floater-mirror, 1));
  }
}
.referral-share-panel {
  display: grid;
  gap: 16px;
  padding: 20px;
}
.referral-share-panel .section-chip {
  color: var(--color-muted);
  border-color: rgba(157, 170, 196, 0.14);
  background: rgba(255, 255, 255, 0.036);
}
.referral-share-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(157, 170, 196, 0.13);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
}
.referral-share-tabs button {
  min-height: 42px;
  border: 0;
  border-radius: var(--radius-md);
  color: var(--color-muted);
  background: transparent;
  font-size: 13px;
  font-weight: 900;
  transition:
    color 180ms ease,
    background 180ms ease,
    transform var(--button-motion);
}
.referral-share-tabs button:hover,
.referral-share-tabs button.is-active {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.075);
}
.referral-share-tabs button:active {
  transform: scale(0.98);
}
.referral-share-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  column-gap: 10px;
  row-gap: 4px;
  align-items: center;
  min-height: 86px;
  padding: 14px;
  border: 1px solid rgba(157, 170, 196, 0.13);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
}
.referral-share-box span,
.referral-money-card span,
.referral-next-payout span,
.referral-tier-progress span {
  color: var(--color-muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.referral-share-box strong {
  min-width: 0;
  overflow: hidden;
  color: var(--color-text);
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.referral-share-box .round-action {
  grid-row: 1 / span 2;
  grid-column: 2;
  border-radius: var(--radius-md);
}
.referral-share-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.referral-money-card,
.referral-payout-button {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(157, 170, 196, 0.13);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
}
.referral-money-card {
  grid-template-columns: 54px minmax(0, 1fr);
  column-gap: 14px;
  align-items: center;
}
.referral-money-card svg {
  grid-row: 1 / span 2;
  width: 54px;
  height: 54px;
  padding: 13px;
  border: 1px solid rgba(157, 170, 196, 0.12);
  border-radius: 15px;
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.028);
}
.referral-money-card strong,
.referral-payout-button strong {
  color: var(--color-text);
  font-size: 20px;
}
.referral-payout-button {
  width: 100%;
  min-height: 58px;
  padding-top: 18px;
  border-color: rgba(226, 232, 244, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.036);
  color: var(--color-text);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}
.referral-payout-button:hover {
  border-color: rgba(226, 232, 244, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.032)),
    rgba(255, 255, 255, 0.052);
}
.referral-payout-button:active {
  transform: translateY(0);
}
.referral-payout-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}
.referral-payout-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(16px);
}
.referral-payout-dialog {
  width: min(100%, 440px);
  display: grid;
  gap: 14px;
  padding: 18px;
}
.referral-payout-field {
  display: grid;
  gap: 7px;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.referral-payout-field input,
.referral-payout-field textarea {
  width: 100%;
  border: 1px solid rgba(157, 170, 196, 0.14);
  border-radius: var(--radius-sm);
  padding: 12px 13px;
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.045);
  font: inherit;
  font-weight: 700;
  outline: none;
}
.referral-payout-field textarea {
  resize: vertical;
}
.referral-payout-error {
  margin: 0;
  color: var(--color-negative);
  font-size: 13px;
  font-weight: 800;
}
.referral-tier-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 16px;
  padding: 20px;
}
.referral-tier-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.referral-tier-card {
  position: relative;
  display: grid;
  min-height: 154px;
  align-content: space-between;
  gap: 8px;
  overflow: hidden;
  padding: 16px;
  border: 1px solid rgba(157, 170, 196, 0.13);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
}
.referral-tier-card::before {
  display: none;
  content: "";
}
.referral-tier-card.tone-slate {
  --tier-rgb: 166, 174, 190;
}
.referral-tier-card.tone-blue {
  --tier-rgb: 92, 109, 229;
}
.referral-tier-card.tone-violet {
  --tier-rgb: 183, 121, 255;
}
.referral-tier-card.tone-mint {
  --tier-rgb: 64, 142, 255;
}
.referral-tier-card.is-reached {
  border-color: rgba(157, 170, 196, 0.2);
}
.referral-tier-card.is-current {
  border-color: rgba(226, 232, 244, 0.2);
  background: rgba(255, 255, 255, 0.052);
  box-shadow: none;
}
.referral-tier-card.is-current::after {
  display: none;
  content: "";
}
.referral-tier-card span,
.referral-tier-card small {
  color: var(--color-muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.referral-tier-card strong {
  color: var(--color-text);
  font-size: 20px;
}
.referral-tier-card b {
  color: rgb(var(--tier-rgb));
  font-size: 38px;
  line-height: 1;
}
.referral-tier-progress {
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(157, 170, 196, 0.13);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
}
.referral-tier-progress div {
  display: grid;
  gap: 5px;
}
.referral-tier-progress strong {
  color: var(--color-text);
  font-size: 14px;
}
.referral-progress-track {
  display: block;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}
.referral-progress-track span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--color-accent);
  transform-origin: left center;
  transition: transform 580ms cubic-bezier(0.22, 1, 0.36, 1);
}
@media (max-width: 1180px) {

  .referrals-layout {
    grid-template-columns: 1fr;
  }

  .referrals-hero {
    grid-template-columns: 1fr;
  }

  .referral-artwork {
    position: absolute;
    inset: 0;
    z-index: 1;
    min-height: 0;
  }

  .referrals-hero::after {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
    content: "";
    background: rgba(8, 10, 15, 0.22);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    pointer-events: none;
  }

  .referrals-hero-copy {
    z-index: 3;
  }

  .referral-artwork-space {
    inset: -12% -6% -20%;
  }

  .referral-artwork-floater {
    width: calc(var(--floater-size) * var(--floater-scale, 1) * 1.14);
  }

  .referral-share-panel {
    position: static;
  }

  .referral-tier-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 860px) {

  .referrals-layout {
    grid-template-columns: 1fr;
  }

  .referral-share-panel {
    position: static;
  }
}
@media (max-width: 560px) {

  .workspace-page-referrals {
    overflow-x: hidden;
  }

  .workspace-page-referrals .topbar,
  .workspace-page-referrals .page-title {
    min-width: 0;
  }

  .workspace-page-referrals .page-title p {
    width: 100%;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .referrals-hero {
    min-height: auto;
    padding: 20px;
  }

  .referral-artwork-space {
    inset: -4% -26% -18% -18%;
  }

  .referral-artwork-floater {
    width: calc(var(--floater-size) * var(--floater-scale, 1) * 0.68);
  }

  .referrals-hero-copy h2 {
    max-width: 300px;
    font-size: 34px;
  }

  .referral-hero-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
  }

  .referral-hero-actions .primary-button,
  .referral-hero-actions .ghost-button {
    flex: 1 1 0;
    min-width: 0;
    padding-inline: 10px;
    justify-content: center;
    font-size: 13px;
    white-space: nowrap;
  }

  .referral-tier-progress {
    grid-template-columns: 1fr;
  }

  .referral-share-panel .panel-heading,
  .referral-tier-panel .panel-heading {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
    gap: 10px;
  }

  .referral-share-panel .section-chip,
  .referral-tier-panel .section-chip {
    justify-self: start;
    max-width: 100%;
  }
}
@media (max-width: 560px) {

  .referral-tier-grid {
    grid-template-columns: 1fr;
  }
}
.referral-progress-track span {
  box-shadow: none;
}
@media (prefers-reduced-motion: reduce) {

  .referral-artwork-floater,
  .referral-artwork-floater-image {
    animation: none;
  }

  .referral-artwork-floater {
    opacity: var(--floater-opacity, 0.72);
    filter: blur(var(--floater-blur, 0px)) drop-shadow(0 20px 28px rgba(0, 0, 0, 0.34));
  }
}
.certificate-layout {
  display: flex;
  min-height: calc(100dvh - 52px);
  justify-content: center;
  padding: clamp(18px, 3vw, 34px);
}

.certificate-shell {
  display: grid;
  width: min(100%, 1180px);
  align-content: start;
  gap: 18px;
}

.certificate-picker {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.certificate-picker-button {
  display: grid;
  min-width: 132px;
  min-height: 46px;
  align-content: center;
  gap: 2px;
  padding: 7px 13px;
  border: 1px solid rgba(232, 221, 255, 0.1);
  border-radius: 10px;
  color: rgba(247, 249, 255, 0.58);
  background: rgba(255, 255, 255, 0.035);
  text-align: left;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.certificate-picker-button:hover,
.certificate-picker-button:focus-visible {
  color: rgba(247, 249, 255, 0.82);
  border-color: rgba(232, 221, 255, 0.2);
  background: rgba(255, 255, 255, 0.055);
  transform: translateY(-1px);
}

.certificate-picker-button.is-active {
  color: rgba(255, 255, 255, 0.92);
  border-color: rgba(232, 221, 255, 0.24);
  background: rgba(255, 255, 255, 0.085);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.certificate-picker-title {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.1;
}

.certificate-picker-meta {
  color: rgba(226, 214, 246, 0.46);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

.certificate-stage {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 0;
  aspect-ratio: var(--certificate-aspect, 1400 / 992);
  place-items: center;
}

.certificate-canvas {
  display: block;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(230, 214, 255, 0.13);
  border-radius: 22px;
  box-shadow:
    0 34px 92px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.04);
}

.certificate-nav-button {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(233, 220, 255, 0.16);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(12, 7, 20, 0.72);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
  transform: translateY(-50%);
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
  backdrop-filter: blur(18px);
}

.certificate-nav-button:hover,
.certificate-nav-button:focus-visible {
  border-color: rgba(190, 136, 255, 0.46);
  background: rgba(52, 28, 88, 0.76);
  transform: translateY(-50%) scale(1.04);
}

.certificate-nav-button:active {
  transform: translateY(-50%) scale(0.98);
}

.certificate-nav-button:disabled {
  opacity: 0;
  pointer-events: none;
}

.certificate-nav-button-prev {
  left: 18px;
}

.certificate-nav-button-next {
  right: 18px;
}

.certificate-template-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.certificate-template-dot {
  width: 9px;
  height: 9px;
  border: 1px solid rgba(231, 219, 255, 0.3);
  border-radius: 999px;
  background: rgba(231, 219, 255, 0.16);
  transition:
    width 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.certificate-template-dot.is-active {
  width: 28px;
  border-color: rgba(196, 144, 255, 0.64);
  background: var(--gradient-accent);
}

.certificate-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.certificate-share-button {
  display: inline-flex;
  min-width: 146px;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 15px;
  border: 1px solid rgba(232, 221, 255, 0.14);
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.86);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(13, 8, 22, 0.72);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  transition:
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.certificate-share-button:hover,
.certificate-share-button:focus-visible {
  color: #ffffff;
  border-color: rgba(199, 150, 255, 0.5);
  transform: translateY(-1px);
}

.certificate-share-button:active {
  transform: translateY(0);
}

.certificate-empty-state {
  display: grid;
  width: min(100%, 520px);
  align-self: center;
  justify-items: center;
  gap: 14px;
  padding: clamp(30px, 7vw, 56px);
  border: 1px solid rgba(232, 221, 255, 0.14);
  border-radius: 22px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.07), rgba(139, 124, 246, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(13, 8, 22, 0.72);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  text-align: center;
}

.certificate-empty-icon {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 1px solid rgba(139, 220, 255, 0.22);
  border-radius: 18px;
  color: #eaf8ff;
  background: rgba(139, 220, 255, 0.1);
}

.certificate-empty-state h2 {
  margin: 2px 0 0;
  color: #ffffff;
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.08;
}

.certificate-empty-state p {
  max-width: 390px;
  margin: 0;
  color: rgba(226, 214, 246, 0.68);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
}

@media (max-width: 780px) {
  .certificate-layout {
    min-height: calc(100dvh - 88px);
    padding: 12px 12px 100px;
  }

  .certificate-shell {
    gap: 14px;
  }

  .certificate-picker {
    justify-content: stretch;
  }

  .certificate-picker-button {
    flex: 1 1 148px;
    min-width: 0;
  }

  .certificate-canvas {
    border-radius: 16px;
  }

  .certificate-nav-button {
    width: 40px;
    height: 40px;
  }

  .certificate-nav-button-prev {
    left: 8px;
  }

  .certificate-nav-button-next {
    right: 8px;
  }

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

  .certificate-share-button {
    min-width: 0;
    min-height: 42px;
    padding: 0 8px;
    font-size: 12px;
  }
}

@media (max-width: 520px) {
  .certificate-stage {
    width: 100%;
    overflow: visible;
  }

  .certificate-actions {
    grid-template-columns: 1fr;
  }

  .certificate-share-button {
    font-size: 13px;
  }
}
.notifications-layout {
  display: grid;
  width: min(920px, 100%);
  margin: 0 auto;
}

.notifications-list {
  display: grid;
  gap: 12px;
}

.notification-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: var(--radius-lg);
}

.notification-card.is-unread {
  border-color: rgba(var(--color-positive-rgb), 0.32);
  background:
    linear-gradient(135deg, rgba(var(--color-positive-rgb), 0.08), transparent 42%),
    rgba(12, 15, 22, 0.28);
}

.notification-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 16px;
  color: var(--color-text);
  background: rgba(183, 121, 255, 0.12);
}

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

.notification-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--color-subtle);
  font-size: 12px;
  font-weight: 800;
}

.notification-copy h2,
.notification-copy p {
  margin: 0;
}

.notification-copy h2 {
  color: var(--color-text);
  font-size: 18px;
}

.notification-copy p {
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.5;
}

.notification-action {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-weight: 800;
}

.notification-menu-badge {
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  margin-left: auto;
  padding: 0 6px;
  border-radius: 999px;
  color: #080b12;
  background: var(--color-positive);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.sidebar .nav-button:has(.notification-menu-badge-sidebar) {
  grid-template-columns: 24px minmax(0, 1fr) max-content;
}

.sidebar .notification-menu-badge-sidebar {
  grid-column: 3;
  min-width: 18px;
  height: 18px;
  margin-left: 0;
  padding: 0 5px;
  border: 1px solid rgba(196, 178, 255, 0.2);
  color: var(--color-text);
  background: rgba(139, 124, 246, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
  font-size: 10px;
}

.app-shell.is-sidebar-collapsed .sidebar .notification-menu-badge-sidebar {
  position: absolute;
  top: 5px;
  right: 7px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  font-size: 9px;
}

.mobile-more-item .notification-menu-badge,
.mobile-nav .notification-menu-badge {
  position: absolute;
  top: 6px;
  right: 8px;
  margin: 0;
}

@media (max-width: 640px) {
  .notification-card {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .notification-icon {
    width: 42px;
    height: 42px;
  }

  .notification-action {
    grid-column: 2;
    justify-content: center;
  }
}
.support-layout {
  display: grid;
  min-height: calc(100dvh - 66px);
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 18px;
}

.support-chat-list-panel,
.support-chat-panel {
  display: grid;
  min-height: 0;
  border-radius: var(--radius-xl);
}

.support-chat-list-panel {
  align-content: start;
  gap: 12px;
  padding: 14px;
}

.support-chat-list-head,
.support-chat-head,
.support-compose-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.support-chat-list-head {
  justify-content: space-between;
}

.support-chat-list-head h2,
.support-chat-head h2,
.support-category-panel h3,
.support-message-bubble p {
  margin: 0;
}

.support-chat-list {
  display: grid;
  gap: 8px;
}

.support-chat-item {
  display: grid;
  min-height: 66px;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  color: var(--color-muted);
  text-align: left;
}

.support-chat-item.is-active,
.support-chat-item:hover {
  border-color: var(--color-border);
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.04);
}

.support-avatar {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  overflow: hidden;
  border-radius: 999px;
  color: var(--color-text);
  background: rgba(183, 121, 255, 0.18);
  font-weight: 900;
}

.support-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.support-chat-item span {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.support-chat-item small,
.support-chat-item time,
.support-chat-head p {
  color: var(--color-subtle);
  font-size: 12px;
}

.support-chat-panel {
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.support-chat-head {
  padding: 16px;
  border-bottom: 1px solid var(--color-border);
}

.support-chat-head div {
  min-width: 0;
  flex: 1;
}

.support-chat-head > span {
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--color-positive);
  background: rgba(var(--color-positive-rgb), 0.12);
  font-size: 12px;
  font-weight: 900;
}

.support-messages,
.support-category-panel {
  display: grid;
  align-content: end;
  gap: 12px;
  min-height: 360px;
  overflow-y: auto;
  padding: 16px;
}

.support-category-panel {
  align-content: center;
}

.support-category-grid {
  display: grid;
  gap: 8px;
}

.support-category-option {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.035);
  font-weight: 800;
}

.support-message {
  display: flex;
}

.support-message.is-user {
  justify-content: flex-end;
}

.support-message-bubble {
  max-width: min(620px, 82%);
  padding: 12px 14px;
  border-radius: 18px;
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.07);
}

.support-message.is-user .support-message-bubble {
  background: rgba(139, 124, 246, 0.22);
}

.support-message-bubble time,
.support-empty-chat {
  display: block;
  margin-top: 7px;
  color: var(--color-subtle);
  font-size: 12px;
}

.support-message-images,
.support-image-preview-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.support-message-images img,
.support-image-preview img {
  width: 96px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
}

.support-typing {
  display: flex;
  gap: 4px;
  padding: 12px;
}

.support-typing span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--color-muted);
}

.support-composer {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--color-border);
}

.support-compose-row input[type="file"] {
  display: none;
}

.support-icon-button,
.support-send-button {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 14px;
}

.support-icon-button {
  border: 1px solid var(--color-border);
  color: var(--color-muted);
}

.support-compose-row textarea {
  min-height: 42px;
  max-height: 132px;
  flex: 1;
  resize: vertical;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 11px 12px;
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.035);
  font: inherit;
}

.support-image-preview {
  position: relative;
  margin: 0;
}

.support-image-preview figcaption {
  max-width: 96px;
  overflow: hidden;
  color: var(--color-subtle);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-image-preview button {
  position: absolute;
  top: 4px;
  right: 4px;
  color: var(--color-text);
  background: rgba(0, 0, 0, 0.48);
}

.support-image-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.72);
}

.support-image-lightbox {
  position: relative;
  width: min(920px, 92vw);
}

.support-image-lightbox > img {
  display: block;
  max-width: 100%;
  max-height: 82dvh;
  margin: auto;
  border-radius: var(--radius-lg);
}

.support-image-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  color: var(--color-text);
  background: rgba(0, 0, 0, 0.48);
}

@media (max-width: 860px) {
  .support-layout {
    min-height: 0;
    grid-template-columns: 1fr;
  }
}
