:root {
  --gx-color-bg-deep: #050227;
  --gx-color-bg-navy: #08162c;
  --gx-color-brand: #123a8b;
  --gx-color-brand-strong: #1f4ed8;
  --gx-color-accent: #12717c;
  --gx-color-accent-soft: rgba(18, 113, 124, 0.2);
  --gx-color-text-primary: #ffffff;
  --gx-color-text-secondary: rgba(255, 255, 255, 0.82);
  --gx-color-text-muted: rgba(255, 255, 255, 0.72);
  --gx-color-text-subtle: rgba(255, 255, 255, 0.64);
  --gx-color-border: rgba(255, 255, 255, 0.08);
  --gx-color-border-strong: rgba(255, 255, 255, 0.14);
  --gx-color-overlay: rgba(3, 9, 20, 0.72);
  --gx-color-input-bg: rgba(255, 255, 255, 0.92);
  --gx-color-input-text: #0f1d33;
  --gx-color-success-bg: rgba(18, 96, 78, 0.28);
  --gx-color-success-border: rgba(100, 222, 176, 0.18);
  --gx-color-danger-bg: rgba(122, 24, 43, 0.28);
  --gx-color-danger-border: rgba(255, 113, 145, 0.18);
  --gx-surface-panel:
    linear-gradient(180deg, rgba(18, 113, 124, 0.95), rgba(8, 22, 44, 0.97)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 42%);
  --gx-surface-card:
    linear-gradient(180deg, rgba(8, 20, 39, 0.48), rgba(6, 14, 28, 0.3)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 42%);
  --gx-surface-subtle: rgba(6, 17, 39, 0.32);
  --gx-shadow-soft: 0 12px 28px rgba(0, 0, 0, 0.22);
  --gx-shadow-panel:
    0 24px 60px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --gx-radius-md: 16px;
  --gx-radius-lg: 22px;
  --gx-radius-xl: 26px;
  --gx-radius-pill: 999px;
  --gx-transition-fast: 0.18s ease;
  --gx-focus-ring-color: rgba(102, 194, 255, 0.92);
  --gx-focus-ring-shadow:
    0 0 0 3px rgba(6, 18, 34, 0.88),
    0 0 0 6px rgba(102, 194, 255, 0.28);
}

.gx-eyebrow {
  display: inline-block;
  margin-bottom: 0.35rem;
  color: var(--gx-color-text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.gx-section-title {
  margin: 0;
  color: var(--gx-color-text-primary);
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  font-weight: 900;
  line-height: 1.05;
}

.gx-section-copy {
  margin: 0.55rem 0 0;
  color: var(--gx-color-text-secondary);
  line-height: 1.6;
}

.gx-surface-panel {
  border: 1px solid var(--gx-color-border);
  border-radius: var(--gx-radius-xl);
  background: var(--gx-surface-panel);
  box-shadow: var(--gx-shadow-panel);
  color: var(--gx-color-text-primary);
}

.gx-surface-card {
  border: 1px solid var(--gx-color-border);
  border-radius: var(--gx-radius-lg);
  background: var(--gx-surface-card);
  box-shadow: var(--gx-shadow-soft);
  color: var(--gx-color-text-primary);
}

.gx-summary-grid {
  display: grid;
  gap: 0.85rem;
}

.gx-summary-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-height: 92px;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: var(--gx-surface-subtle);
  border: 1px solid var(--gx-color-border);
}

.gx-summary-label {
  color: var(--gx-color-text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.gx-summary-value {
  color: var(--gx-color-text-primary);
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1.35;
}

.gx-label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--gx-color-text-primary);
  font-size: 0.92rem;
  font-weight: 800;
}

.gx-helper-text {
  margin: 0.45rem 0 0;
  color: var(--gx-color-text-muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.gx-required-callout {
  width: 100%;
  margin: 0.85rem 0 1rem;
  padding: 0.8rem 0.95rem;
  border-radius: 16px;
  background: rgba(122, 24, 43, 0.18);
  border: 1px solid rgba(255, 113, 145, 0.22);
  color: rgba(255, 235, 240, 0.96);
  font-size: 0.84rem;
  line-height: 1.5;
}

.gx-required-callout strong {
  color: var(--gx-color-text-primary);
}

.gx-empty-state {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 2rem 1.4rem;
  border-radius: 20px;
  background: rgba(6, 17, 39, 0.28);
  border: 1px dashed rgba(255, 255, 255, 0.16);
}

.gx-empty-state strong {
  font-size: 1rem;
}

.gx-empty-state p {
  margin: 0;
  color: var(--gx-color-text-muted);
  line-height: 1.55;
}

.gx-button,
.btn.gx-button,
.ant-btn.gx-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1.2rem;
  border: none;
  border-radius: var(--gx-radius-pill);
  font-weight: 800;
  text-decoration: none;
  transition:
    transform var(--gx-transition-fast),
    opacity var(--gx-transition-fast),
    background var(--gx-transition-fast),
    border-color var(--gx-transition-fast);
}

.gx-button:hover,
.gx-button:focus-visible,
.btn.gx-button:hover,
.btn.gx-button:focus-visible,
.ant-btn.gx-button:hover,
.ant-btn.gx-button:focus-visible {
  transform: translateY(-1px);
}

.gx-button-primary,
.btn.gx-button-primary,
.ant-btn.gx-button-primary {
  background: var(--gx-color-bg-deep);
  color: var(--gx-color-text-primary);
}

.gx-button-primary:hover,
.gx-button-primary:focus-visible,
.btn.gx-button-primary:hover,
.btn.gx-button-primary:focus-visible,
.ant-btn.gx-button-primary:hover,
.ant-btn.gx-button-primary:focus-visible {
  background: var(--gx-color-brand);
  color: var(--gx-color-text-primary);
}

.gx-button-secondary,
.btn.gx-button-secondary,
.ant-btn.gx-button-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--gx-color-text-primary);
  border: 1px solid var(--gx-color-border-strong);
}

.gx-button-secondary:hover,
.gx-button-secondary:focus-visible,
.btn.gx-button-secondary:hover,
.btn.gx-button-secondary:focus-visible,
.ant-btn.gx-button-secondary:hover,
.ant-btn.gx-button-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  color: var(--gx-color-text-primary);
}

.gx-button-ghost,
.btn.gx-button-ghost {
  background: transparent;
  color: var(--gx-color-text-primary);
  border: 1px solid var(--gx-color-border-strong);
}

.gx-button-full {
  width: 100%;
}

.gx-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.gx-skip-link {
  position: absolute;
  top: 0.9rem;
  left: 1rem;
  z-index: 1600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1rem;
  border-radius: var(--gx-radius-pill);
  background: rgba(5, 2, 39, 0.96);
  color: var(--gx-color-text-primary);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-140%);
  transition:
    transform var(--gx-transition-fast),
    opacity var(--gx-transition-fast);
}

.gx-skip-link:focus-visible {
  transform: translateY(0);
}

:where(
  a,
  button,
  input,
  select,
  textarea,
  summary,
  [role="button"],
  [tabindex]:not([tabindex="-1"])
):focus-visible {
  outline: none;
  box-shadow: var(--gx-focus-ring-shadow);
}

.ant-btn:focus-visible,
.ant-select-focused .ant-select-selector,
.ant-picker-focused,
.ant-input:focus-visible,
.ant-input-affix-wrapper-focused,
.ant-input-number-focused {
  outline: none;
  box-shadow: var(--gx-focus-ring-shadow);
  border-color: var(--gx-focus-ring-color);
}

:where(button, .ant-btn):disabled {
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
}

.gx-modal-dialog .modal-content {
  border: none;
  border-radius: var(--gx-radius-xl);
  overflow: hidden;
  background: transparent;
}

.gx-modal-surface {
  background: var(--gx-surface-panel);
  color: var(--gx-color-text-primary);
}

.gx-modal-header,
.gx-modal-footer {
  border-color: var(--gx-color-border);
}

.gx-modal-header .btn-close {
  filter: invert(1);
  opacity: 0.92;
}

.gx-modal-body {
  padding: 1.15rem 1.25rem 1rem;
}

.gx-modal-title {
  color: var(--gx-color-text-primary);
  font-size: 1.32rem;
  font-weight: 900;
}

.gx-modal-message {
  margin: 0;
  color: var(--gx-color-text-secondary);
  line-height: 1.58;
}

.gx-modal-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--gx-color-border);
  font-weight: 800;
}

.gx-modal-section {
  display: grid;
  gap: 0.55rem;
}

.gx-modal-section-title {
  margin: 0;
  color: var(--gx-color-text-primary);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gx-modal-pre {
  margin: 0;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background: rgba(8, 20, 39, 0.48);
  border: 1px solid var(--gx-color-border);
  color: var(--gx-color-text-primary);
  font-size: 0.86rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 260px;
  overflow: auto;
}

.gx-stack-md {
  display: grid;
  gap: 1rem;
}

.gx-required-field {
  transition:
    border-color var(--gx-transition-fast),
    box-shadow var(--gx-transition-fast),
    background var(--gx-transition-fast);
}

.ant-select:not(.ant-select-customize-input) .ant-select-selector {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 22, 41, 0.48);
  color: var(--gx-color-text-primary);
  box-shadow: none;
  transition:
    border-color var(--gx-transition-fast),
    box-shadow var(--gx-transition-fast),
    background var(--gx-transition-fast);
}

.ant-select-single .ant-select-selector .ant-select-selection-item,
.ant-select-single .ant-select-selector .ant-select-selection-placeholder,
.ant-select .ant-select-arrow,
.ant-select .ant-select-clear,
.ant-select-selection-search-input {
  color: var(--gx-color-text-primary);
}

.ant-select-single .ant-select-selector .ant-select-selection-placeholder {
  color: var(--gx-color-text-subtle);
}

.ant-select-multiple .ant-select-selector {
  padding: 0.35rem 0.65rem;
}

.ant-select-multiple .ant-select-selection-overflow {
  gap: 0.35rem;
}

.ant-select-multiple .ant-select-selection-item {
  background: rgba(5, 12, 30, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: var(--gx-color-text-primary);
}

.ant-select-disabled:not(.ant-select-customize-input) .ant-select-selector {
  background: rgba(255, 255, 255, 0.08);
  color: var(--gx-color-text-subtle);
}

.ant-select-dropdown {
  background: rgba(5, 12, 30, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
}

.ant-select-dropdown .ant-select-item,
.ant-select-dropdown .ant-select-item-option,
.ant-select-dropdown .ant-select-item-option-content,
.ant-select-dropdown .ant-select-item-option-state,
.ant-select-dropdown .ant-empty-description {
  color: var(--gx-color-text-primary);
}

.ant-select-dropdown .ant-select-item-option {
  background: transparent;
}

.ant-select-dropdown .ant-select-item-option-active:not(.ant-select-item-option-disabled) {
  background: rgba(18, 113, 124, 0.32);
}

.ant-select-dropdown .ant-select-item-option-selected:not(.ant-select-item-option-disabled) {
  background: rgba(31, 78, 216, 0.35);
  color: var(--gx-color-text-primary);
}

.gx-required-field-missing.form-control,
.gx-required-field-missing.ant-input,
.gx-required-field-missing.ant-input-affix-wrapper,
.gx-required-field-missing.ant-input-number,
.gx-required-field-missing.ant-picker,
input.gx-required-field-missing,
textarea.gx-required-field-missing,
select.gx-required-field-missing {
  border-color: rgba(255, 113, 145, 0.72);
  background: rgba(122, 24, 43, 0.14);
}

.gx-required-field-filled.form-control,
.gx-required-field-filled.ant-input,
.gx-required-field-filled.ant-input-affix-wrapper,
.gx-required-field-filled.ant-input-number,
.gx-required-field-filled.ant-picker,
input.gx-required-field-filled,
textarea.gx-required-field-filled,
select.gx-required-field-filled {
  border-color: rgba(101, 216, 175, 0.24);
}

.ant-select.gx-required-field-missing .ant-select-selector,
.gx-required-field-missing .ant-select-selector {
  border-color: rgba(255, 113, 145, 0.72);
  background: rgba(122, 24, 43, 0.14);
}

.ant-select.gx-required-field-filled .ant-select-selector,
.gx-required-field-filled .ant-select-selector {
  border-color: rgba(101, 216, 175, 0.24);
}

.gx-required-field-missing .ant-select-selection-placeholder,
.gx-required-field-missing::placeholder {
  color: rgba(255, 214, 224, 0.82);
}

.gx-table-shell {
  overflow: auto;
  border-radius: var(--gx-radius-lg);
  background: rgba(6, 14, 28, 0.2);
  border: 1px solid var(--gx-color-border);
}

.gx-feedback-success {
  background: var(--gx-color-success-bg);
  border: 1px solid var(--gx-color-success-border);
}

.gx-feedback-danger {
  background: var(--gx-color-danger-bg);
  border: 1px solid var(--gx-color-danger-border);
}

@media (max-width: 768px) {
  .gx-button,
  .btn.gx-button,
  .ant-btn.gx-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    transition-duration: 0.01ms;
    scroll-behavior: auto;
  }
}

.input-style {
  background-color: white;
  color: black;
  width: 50%;
  margin: auto;
}

.form-control {
  background-color: rgba(0, 0, 0, 0.2);
  color: white;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 15px;
  padding: 0.5rem;
}

input::placeholder {
  color: white;
}

input:focus,
.form-control:focus {
  outline: none;
  border-color: white;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.custom-form input,
.custom-form .form-control,
.custom-form .ant-select-selector {
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border-radius: 50px;
  min-height: 40px;
  padding: 0.7rem 1rem;
  line-height: normal;
  box-shadow: none;
}

.custom-form input::placeholder,
.custom-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.custom-form input:focus,
.custom-form .form-control:focus,
.custom-form .ant-select-selector:focus {
  outline: none;
  border-color: white;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.custom-form .ant-select-selector {
  display: flex;
  align-items: center;
}

.custom-radio .form-check-input {
  border-radius: 0;
  width: 10px;
  height: 10px;
  background-color: transparent;
}

.custom-radio .form-check-input:checked {
  background-color: white;
  border-color: white;
}

.custom-table {
  border-collapse: separate;
  border-spacing: 8px;
  width: 100%;
  table-layout: fixed;
  background-color: transparent;
}

.custom-table-header {
  background-color: rgba(185, 185, 185, 0.9);
  border-radius: 10px;
  padding: 6px 12px 12px;
  color: black;
  font-size: 0.9rem;
  border: none;
  text-align: center;
  width: 50%;
  margin-right: 5%;
}

.custom-table-data {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  padding: 12px 12px 6px;
  font-size: 0.9rem;
  border: none;
  color: white;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  word-wrap: break-word;
}

.custom-table-row {
  background-color: transparent;
}

.label {
  font-weight: bold;
  font-size: 1.1em;
  color: white;
  display: inline-block;
}

.table-container {
  border-color: #050227;
  border-collapse: separate;
  border-spacing: 8px;
  width: 100%;
}

.table-header {
  position: sticky;
  top: 0;
  background-color: rgba(0, 0, 0, 1);
  color: white;
  z-index: 2;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.table-header th {
  border-radius: 10px;
  padding: 12px;
  text-align: center;
}

.table-body {
  background-color: transparent;
}

.table-row {
  background-color: transparent;
}

.table-cell {
  background-color: rgba(0, 0, 0, 0.2);
  color: white;
  text-align: center;
}

.centered {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

#__react-alert__ div div div {
  width: 100%;
  height: 5vw;
}

.gif-box {
  display: flex;
  justify-content: center;
}

.gif-notification-box {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 300px;
  padding: 10px;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

html,
body {
  height: 100%;
  margin: 0;
}

.page-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.content-wrap {
  flex: 1;
}

footer {
  background: #f8f9fa;
  padding: 1rem 0;
  text-align: center;
}

.centeredGIF {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  z-index: 9999;
}

.effect-calculator-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: var(--gx-color-overlay);
  backdrop-filter: blur(6px);
}

.effect-calculator-modal-surface {
  width: min(1280px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow: auto;
  border-radius: 26px;
  border: 1px solid var(--gx-color-border);
  background: var(--gx-surface-panel);
  box-shadow: var(--gx-shadow-panel);
  color: var(--gx-color-text-primary);
}

.effect-calculator-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 1.6rem 1.1rem;
}

.effect-calculator-modal-eyebrow {
  display: inline-block;
  margin-bottom: 0.45rem;
  color: var(--gx-color-text-muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.effect-calculator-modal-title {
  margin: 0;
  font-size: clamp(1.9rem, 2.6vw, 2.5rem);
  font-weight: 900;
  line-height: 1.02;
}

.effect-calculator-modal-copy {
  max-width: 60rem;
  margin: 0.55rem 0 0;
  color: var(--gx-color-text-secondary);
  line-height: 1.6;
}

.effect-calculator-modal-close {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--gx-color-text-primary);
  font-size: 1.5rem;
  line-height: 1;
}

.effect-calculator-modal-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  padding: 0 1.6rem 1.1rem;
}

.effect-calculator-modal-summary-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-height: 92px;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: var(--gx-surface-subtle);
  border: 1px solid var(--gx-color-border);
}

.effect-calculator-modal-summary-label {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.effect-calculator-modal-summary-value {
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.3;
}

.effect-calculator-modal-content {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.55fr);
  gap: 1rem;
  padding: 0 1.6rem 1.6rem;
}

.effect-calculator-modal-sidebar,
.effect-calculator-modal-workspace {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.effect-calculator-modal-info-card,
.effect-calculator-modal-controls,
.effect-calculator-modal-table-card {
  padding: 1.1rem 1.15rem;
  border-radius: 22px;
  background: var(--gx-surface-card);
  border: 1px solid var(--gx-color-border);
}

.effect-calculator-modal-info-card h3,
.effect-calculator-modal-table-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 900;
}

.effect-calculator-modal-info-card ol,
.effect-calculator-modal-info-card ul {
  margin: 0.8rem 0 0;
  padding-left: 1.2rem;
  color: var(--gx-color-text-secondary);
  line-height: 1.6;
}

.effect-calculator-modal-controls {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(180px, 0.7fr) minmax(220px, 0.8fr);
  gap: 0.95rem;
  align-items: start;
}

.effect-calculator-modal-field {
  min-width: 0;
}

.effect-calculator-modal-field-cta {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.effect-calculator-modal-label,
.effect-calculator-modal-mini-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.92rem;
  font-weight: 800;
}

.effect-calculator-modal-helper {
  margin: 0.45rem 0 0;
  color: var(--gx-color-text-muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.effect-calculator-modal-volatility-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.effect-calculator-modal-input {
  width: 100%;
  min-height: 42px;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--gx-color-border-strong);
  border-radius: 14px;
  background: var(--gx-color-input-bg);
  color: var(--gx-color-input-text);
  font-weight: 700;
}

.effect-calculator-modal-input-small {
  min-width: 90px;
  text-align: center;
}

.effect-calculator-modal-suffix {
  color: var(--gx-color-text-secondary);
  font-weight: 800;
}

.effect-calculator-modal-recommendation {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.7rem 1rem;
  border-radius: 14px;
  background: rgba(6, 17, 39, 0.35);
  font-size: 1rem;
  font-weight: 900;
}

.effect-calculator-modal-calculate-button.ant-btn {
  min-height: 44px;
  border: none;
  border-radius: 999px;
  background: var(--gx-color-bg-deep);
  color: var(--gx-color-text-primary);
  font-weight: 800;
}

.effect-calculator-modal-calculate-button.ant-btn:hover,
.effect-calculator-modal-calculate-button.ant-btn:focus {
  background: var(--gx-color-brand);
  color: var(--gx-color-text-primary);
}

.effect-calculator-modal-popup {
  z-index: 1305;
}

.effect-calculator-modal-tables {
  display: grid;
  gap: 1rem;
}

.effect-calculator-modal-table-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.95rem;
}

.effect-calculator-modal-table-header p {
  margin: 0.35rem 0 0;
  color: var(--gx-color-text-muted);
  line-height: 1.5;
}

.effect-calculator-modal-table-input-wrap {
  min-width: 110px;
}

.effect-calculator-modal-table-shell {
  overflow-x: auto;
  border-radius: 18px;
}

.effect-calculator-modal-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

.effect-calculator-modal-table th,
.effect-calculator-modal-table td {
  padding: 0.85rem 0.7rem;
  text-align: center;
}

.effect-calculator-modal-table th {
  background: #050227;
  color: white;
  font-size: 0.84rem;
  font-weight: 800;
}

.effect-calculator-modal-table td {
  background: rgba(255, 255, 255, 0.92);
  color: #10203a;
}

.effect-calculator-modal-table td strong,
.effect-calculator-modal-table td span {
  display: block;
}

.effect-calculator-modal-table td strong {
  font-size: 1rem;
  font-weight: 900;
}

.effect-calculator-modal-table td span {
  margin-top: 0.2rem;
  color: #4a5669;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.effect-calculator-modal-table-cell-highlight {
  background: #1f7a3d;
}

@media (max-width: 1200px) {
  .effect-calculator-modal-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .effect-calculator-modal-content {
    grid-template-columns: 1fr;
  }

  .effect-calculator-modal-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .effect-calculator-modal-field-cta {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .effect-calculator-modal {
    padding: 0.6rem;
  }

  .effect-calculator-modal-surface {
    width: calc(100vw - 1.2rem);
    max-height: calc(100vh - 1.2rem);
  }

  .effect-calculator-modal-header,
  .effect-calculator-modal-summary,
  .effect-calculator-modal-content {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .effect-calculator-modal-summary,
  .effect-calculator-modal-controls {
    grid-template-columns: 1fr;
  }

  .effect-calculator-modal-field-cta {
    grid-column: auto;
  }

  .effect-calculator-modal-table-header {
    flex-direction: column;
  }

  .effect-calculator-modal-table {
    min-width: 560px;
  }
}

.spread-returns-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: var(--gx-color-overlay);
  backdrop-filter: blur(6px);
}

.spread-returns-modal-surface {
  width: min(1460px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow: auto;
  border-radius: 26px;
  border: 1px solid var(--gx-color-border);
  background: var(--gx-surface-panel);
  box-shadow: var(--gx-shadow-panel);
  color: var(--gx-color-text-primary);
}

.spread-returns-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 1.6rem 1.1rem;
}

.spread-returns-modal-eyebrow {
  display: inline-block;
  margin-bottom: 0.45rem;
  color: var(--gx-color-text-muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.spread-returns-modal-title {
  margin: 0;
  font-size: clamp(1.9rem, 2.6vw, 2.5rem);
  font-weight: 900;
  line-height: 1.02;
}

.spread-returns-modal-copy {
  margin: 0.55rem 0 0;
  color: var(--gx-color-text-secondary);
  line-height: 1.6;
}

.spread-returns-modal-close {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--gx-color-text-primary);
  font-size: 1.5rem;
  line-height: 1;
}

.spread-returns-modal-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  padding: 0 1.6rem 1rem;
}

.spread-returns-modal-summary-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-height: 92px;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: var(--gx-surface-subtle);
  border: 1px solid var(--gx-color-border);
}

.spread-returns-modal-summary-label {
  color: var(--gx-color-text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.spread-returns-modal-summary-value {
  font-size: 1.05rem;
  font-weight: 900;
}

.spread-returns-modal-controls {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.95rem;
  padding: 0 1.6rem 1rem;
}

.spread-returns-modal-field {
  min-width: 0;
}

.spread-returns-modal-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.92rem;
  font-weight: 800;
}

.spread-returns-modal-field-cta {
  display: flex;
  flex-direction: column;
}

.spread-returns-modal-button.ant-btn,
.spread-returns-modal-secondary-button {
  min-height: 44px;
  border-radius: 999px;
  font-weight: 800;
}

.spread-returns-modal-button.ant-btn {
  border: none;
  background: var(--gx-color-bg-deep);
  color: var(--gx-color-text-primary);
}

.spread-returns-modal-secondary-button {
  border: 1px solid var(--gx-color-border-strong);
  background: rgba(255, 255, 255, 0.08);
  color: var(--gx-color-text-primary);
}

.spread-returns-modal-button.ant-btn:hover,
.spread-returns-modal-button.ant-btn:focus,
.spread-returns-modal-button.ant-btn:active,
.spread-returns-modal-secondary-button:hover,
.spread-returns-modal-secondary-button:focus,
.spread-returns-modal-secondary-button:active {
  background: var(--gx-color-brand);
  color: var(--gx-color-text-primary);
}

.spread-returns-modal-popup {
  z-index: 1305;
}

.spread-returns-modal-chart-panel {
  padding: 0 1.6rem 1.6rem;
}

.spread-returns-modal-chart-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.95rem;
}

.spread-returns-modal-chart-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 900;
}

.spread-returns-modal-chart-header p {
  margin: 0.35rem 0 0;
  color: var(--gx-color-text-muted);
  line-height: 1.5;
}

.spread-returns-modal-chart-shell {
  overflow: auto;
  max-height: calc(100vh - 23rem);
  padding: 0.85rem;
  border-radius: 22px;
  background: var(--gx-surface-card);
  border: 1px solid var(--gx-color-border);
}

.spread-returns-modal-empty {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 2rem 1.4rem;
  border-radius: 20px;
  background: rgba(6, 17, 39, 0.28);
  border: 1px dashed rgba(255, 255, 255, 0.16);
}

.spread-returns-modal-empty strong {
  font-size: 1rem;
}

.spread-returns-modal-empty p {
  margin: 0;
  color: var(--gx-color-text-muted);
  line-height: 1.55;
}

@media (max-width: 1200px) {
  .spread-returns-modal-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .spread-returns-modal-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .spread-returns-modal {
    padding: 0.6rem;
  }

  .spread-returns-modal-surface {
    width: calc(100vw - 1.2rem);
    max-height: calc(100vh - 1.2rem);
  }

  .spread-returns-modal-header,
  .spread-returns-modal-summary,
  .spread-returns-modal-controls,
  .spread-returns-modal-chart-panel {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .spread-returns-modal-summary,
  .spread-returns-modal-controls {
    grid-template-columns: 1fr;
  }

  .spread-returns-modal-chart-header {
    flex-direction: column;
  }
}

.bill-message-dialog .modal-content {
  border: none;
  border-radius: 24px;
  overflow: hidden;
  background: transparent;
}

.bill-message {
  background: var(--gx-surface-panel);
  color: var(--gx-color-text-primary);
}

.bill-message-header,
.bill-message-footer {
  border-color: var(--gx-color-border);
}

.bill-message-header .btn-close {
  filter: invert(1);
}

.bill-message-eyebrow {
  display: inline-block;
  margin-bottom: 0.3rem;
  color: var(--gx-color-text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.bill-message-title {
  font-size: 1.6rem;
  font-weight: 900;
}

.bill-message-body {
  padding: 1.2rem 1.25rem 1rem;
}

.bill-message-progress-shell {
  margin-bottom: 1rem;
}

.bill-message-progress-copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 0.65rem;
}

.bill-message-progress-label {
  color: var(--gx-color-text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bill-message-progress-bar {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
}

.bill-message-progress-bar .progress-bar {
  background: var(--gx-color-bg-deep);
}

.bill-message-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 1rem;
}

.bill-message-question-card,
.bill-message-summary,
.bill-message-result-card {
  padding: 1rem 1.05rem;
  border-radius: 20px;
  background: var(--gx-surface-card);
  border: 1px solid var(--gx-color-border);
}

.bill-message-question-label {
  margin-bottom: 0.55rem;
  font-size: 1rem;
  font-weight: 800;
}

.bill-message-input {
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid var(--gx-color-border-strong);
}

.bill-message-summary h3,
.bill-message-results-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 900;
}

.bill-message-summary-grid {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.9rem;
}

.bill-message-summary-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.8rem 0.9rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
}

.bill-message-summary-card span {
  color: var(--gx-color-text-muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.bill-message-summary-card strong {
  font-size: 0.96rem;
  font-weight: 900;
}

.bill-message-results {
  display: grid;
  gap: 1rem;
}

.bill-message-results-header p {
  margin: 0.35rem 0 0;
  color: var(--gx-color-text-muted);
  line-height: 1.55;
}

.bill-message-result-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.bill-message-result-headline h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 900;
}

.bill-message-copied {
  color: #8ff0a4;
  font-size: 0.8rem;
  font-weight: 800;
}

.bill-message-result-textarea {
  min-height: 160px;
  resize: none;
  border-radius: 14px 0 0 14px;
}

.bill-message-copy-button {
  min-width: 130px;
  border-radius: 0 14px 14px 0;
  font-weight: 800;
}

.bill-message-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.7rem;
}

.bill-message-footer-button {
  min-width: 150px;
  min-height: 42px;
  border-radius: 999px;
  font-weight: 800;
}

.bill-message-footer-button-primary {
  border: none;
  background: var(--gx-color-bg-deep);
  color: var(--gx-color-text-primary);
}

@media (max-width: 768px) {
  .bill-message-workspace {
    grid-template-columns: 1fr;
  }

  .bill-message-result-headline,
  .bill-message-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .bill-message-copy-button,
  .bill-message-result-textarea {
    border-radius: 14px;
  }
}

.black-scholes {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: var(--gx-color-text-primary);
}

.black-scholes-eyebrow {
  display: inline-block;
  margin-bottom: 0.35rem;
  color: var(--gx-color-text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.black-scholes-title {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 900;
}

.black-scholes-copy {
  margin: 0.45rem 0 0;
  color: var(--gx-color-text-secondary);
  line-height: 1.6;
}

.black-scholes-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.black-scholes-summary-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-height: 92px;
  padding: 0.9rem 0.95rem;
  border-radius: 18px;
  background: var(--gx-surface-subtle);
  border: 1px solid var(--gx-color-border);
}

.black-scholes-summary-label {
  color: var(--gx-color-text-muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.black-scholes-summary-value {
  font-size: 1rem;
  font-weight: 900;
}

.black-scholes-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
}

.black-scholes-field {
  min-width: 0;
}

.black-scholes-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.92rem;
  font-weight: 800;
}

.black-scholes-input,
.black-scholes-select {
  width: 100%;
  min-height: 44px;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--gx-color-border-strong);
  border-radius: 14px;
  background: var(--gx-color-input-bg);
  color: var(--gx-color-input-text);
  font-weight: 700;
}

.black-scholes-compound-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  gap: 0.7rem;
}

.black-scholes-actions {
  display: flex;
  justify-content: flex-start;
}

.black-scholes-button {
  min-width: 180px;
  min-height: 44px;
  border: none;
  border-radius: 999px;
  background: var(--gx-color-bg-deep);
  color: var(--gx-color-text-primary);
  font-weight: 800;
}

.black-scholes-button:hover,
.black-scholes-button:focus-visible {
  background: var(--gx-color-brand);
}

.black-scholes-feedback {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid transparent;
}

.black-scholes-feedback-error {
  background: var(--gx-color-danger-bg);
  border-color: var(--gx-color-danger-border);
}

.black-scholes-feedback-success {
  background: var(--gx-color-success-bg);
  border-color: var(--gx-color-success-border);
}

.black-scholes-feedback strong {
  font-size: 1.4rem;
  font-weight: 900;
}

@media (max-width: 768px) {
  .black-scholes-summary,
  .black-scholes-form-grid,
  .black-scholes-compound-field {
    grid-template-columns: 1fr;
  }

  .black-scholes-button {
    width: 100%;
  }
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.75rem, 1.4vw, 1.1rem);
  width: min(100%, 1760px);
  margin: 0 auto;
  padding: 0.7rem clamp(0.8rem, 1.35vw, 1.5rem) 0.3rem;
  box-sizing: border-box;
}

.app-header-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex: 0 1 auto;
  min-width: 0;
}

.app-header-brand-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.app-header-brand-copy {
  min-width: 0;
}

.app-header-brand-eyebrow {
  display: inline-block;
  margin-bottom: 0.1rem;
  color: var(--gx-color-text-subtle);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.app-header-brand-title {
  margin: 0;
  color: var(--gx-color-text-primary);
  font-size: clamp(1.9rem, 2.4vw, 3rem);
  font-weight: 900;
  line-height: 1;
}

.app-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: clamp(0.65rem, 1vw, 1rem);
  min-width: 0;
}

.app-header-user {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex: 0 1 clamp(150px, 16vw, 260px);
  min-width: 0;
}

.app-header-user-label {
  color: var(--gx-color-text-subtle);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.app-header-user-name {
  max-width: 100%;
  overflow: hidden;
  color: var(--gx-color-text-primary);
  font-size: clamp(1rem, 1.3vw, 1.55rem);
  font-weight: 900;
  line-height: 1.1;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-header-quick-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  flex: 0 1 auto;
  justify-content: flex-end;
}

.app-header-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--gx-color-border);
  border-radius: 999px;
  background: var(--gx-surface-card);
  color: var(--gx-color-text-primary);
  font-size: 1.15rem;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.app-header-icon-button:hover,
.app-header-icon-button:focus-visible {
  transform: translateY(-1px);
  background: linear-gradient(180deg, rgba(18, 31, 55, 0.88), rgba(9, 21, 41, 0.72));
  border-color: var(--gx-color-border-strong);
}

.app-header-icon-button-active {
  position: relative;
  background:
    linear-gradient(180deg, rgba(20, 65, 146, 0.94), rgba(10, 28, 64, 0.9)),
    radial-gradient(circle at top, rgba(255, 255, 255, 0.12), transparent 52%);
  border-color: rgba(111, 180, 255, 0.5);
  color: #f7fbff;
  box-shadow:
    0 14px 28px rgba(6, 16, 36, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 0 2px rgba(97, 227, 229, 0.18);
}

.app-header-icon-button-active::after {
  content: "";
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #61e3e5;
  box-shadow: 0 0 0 2px rgba(6, 16, 30, 0.9);
}

.app-header-icon-button-active:hover,
.app-header-icon-button-active:focus-visible {
  background:
    linear-gradient(180deg, rgba(24, 79, 175, 0.98), rgba(13, 36, 81, 0.94)),
    radial-gradient(circle at top, rgba(255, 255, 255, 0.12), transparent 52%);
  border-color: rgba(143, 200, 255, 0.62);
}

.app-header-drawer .offcanvas-header {
  border-bottom: 1px solid var(--gx-color-border);
}

.app-header-drawer .offcanvas-body {
  padding-top: 1.1rem;
}

.app-header-drawer-surface {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--gx-color-text-primary);
}

.app-header-drawer-title {
  font-size: 1.4rem;
  font-weight: 900;
}

.app-header-drawer-body {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.app-header-drawer-block {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1rem;
  border-radius: 22px;
  background: var(--gx-surface-card);
  border: 1px solid var(--gx-color-border);
  box-shadow:
    0 16px 28px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.app-header-drawer-block-header h3 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 900;
}

.app-header-drawer-block-header p {
  margin: 0.3rem 0 0;
  color: var(--gx-color-text-muted);
  line-height: 1.5;
}

.app-header-drawer-groups {
  display: grid;
  gap: 0.85rem;
}

.app-header-drawer-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.95rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--gx-color-border);
}

.app-header-drawer-card-copy h4 {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 900;
}

.app-header-drawer-card-copy p {
  margin: 0.3rem 0 0;
  color: var(--gx-color-text-muted);
  line-height: 1.45;
}

.app-header-drawer-card-actions,
.app-header-drawer-links {
  display: grid;
  gap: 0.65rem;
}

.app-header-drawer-card-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.app-header-drawer-link {
  min-height: 42px;
  padding: 0.68rem 0.95rem;
  border: none;
  border-radius: 999px;
  background: var(--gx-color-bg-deep);
  color: var(--gx-color-text-primary);
  font-weight: 800;
  transition:
    transform 0.18s ease,
    opacity 0.18s ease,
    background 0.18s ease;
}

.app-header-drawer-link-full {
  width: 100%;
}

.app-header-drawer-link:hover,
.app-header-drawer-link:focus-visible {
  transform: translateY(-1px);
  background: var(--gx-color-brand);
}

.app-header-drawer-link-active {
  background: var(--gx-color-brand-strong);
}

.app-header-drawer-footer {
  margin-top: auto;
  padding: 0.95rem 1.25rem;
  background: rgba(5, 2, 39, 0.96);
  color: var(--gx-color-text-primary);
  font-size: 0.9rem;
  font-weight: 700;
}

.app-header-modal-dialog {
  max-width: min(960px, calc(100vw - 2rem));
}

.app-header-modal-surface {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--gx-color-text-primary);
  border-radius: 18px;
  overflow: hidden;
}

.app-header-modal-surface .modal-header,
.app-header-modal-surface .modal-footer {
  border-color: var(--gx-color-border);
}

.app-header-modal-close {
  min-width: 140px;
  min-height: 42px;
  border: none;
  border-radius: 999px;
  background: #050227;
  color: white;
  font-weight: 800;
}

.app-header-modal-close:hover,
.app-header-modal-close:focus-visible,
.app-header-modal-close:active {
  background: #123a8b;
  color: white;
}

@media (max-width: 992px) {
  .app-header {
    padding: 0.7rem 0.65rem 0.3rem;
  }

  .app-header-brand-logo {
    width: 54px;
    height: 54px;
  }

  .app-header-brand-title {
    font-size: 2.2rem;
  }

  .app-header-actions {
    gap: 0.7rem;
  }
}

@media (max-width: 1320px) {
  .app-header {
    align-items: flex-start;
  }

  .app-header-actions {
    justify-content: flex-end;
  }
}

@media (max-width: 768px) {
  .app-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.7rem;
  }

  .app-header-brand,
  .app-header-actions {
    width: 100%;
  }

  .app-header-actions {
    justify-content: space-between;
  }

  .app-header-user {
    align-items: flex-start;
    flex-basis: auto;
  }

  .app-header-user-name {
    text-align: left;
  }

  .app-header-quick-actions {
    justify-content: flex-start;
  }

  .app-header-drawer-card-actions {
    grid-template-columns: 1fr;
  }
}

.app-footer {
  width: min(100%, 1760px);
  margin: auto auto 1rem;
  padding: 0 clamp(0.8rem, 1.35vw, 1.5rem);
  box-sizing: border-box;
  background: transparent;
}

.app-footer-surface {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-radius: 24px;
  background: transparent;
  border: none;
  box-shadow: none;
  color: var(--gx-color-text-primary);
}

.app-footer-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  text-align: center;
  background: transparent;
}

.app-footer-label {
  color: var(--gx-color-text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.app-footer-value {
  margin: 0;
  color: var(--gx-color-text-primary);
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  font-weight: 900;
  line-height: 1.3;
}

.app-footer-separator {
  width: min(100%, 180px);
  height: 1px;
  margin: 0;
  border: none;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.32),
    transparent
  );
}

@media (max-width: 600px) {
  .app-footer {
    margin-bottom: 0.75rem;
    padding: 0 0.6rem;
  }

  .app-footer-surface {
    padding: 0.95rem 1rem;
  }
}

.gx-breadcrumb {
  width: 100%;
  margin: 0;
  padding: 0.9rem 1rem 0.1rem;
  box-sizing: border-box;
}

.gx-breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gx-breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.gx-breadcrumb-separator {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.82rem;
  font-weight: 700;
}

.gx-breadcrumb-link,
.gx-breadcrumb-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
}

.gx-breadcrumb-link {
  background: rgba(5, 2, 39, 0.95);
  color: white;
}

.gx-breadcrumb-current {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.94);
}

@media (max-width: 768px) {
  .gx-breadcrumb {
    padding: 0.8rem 0.75rem 0;
  }

  .gx-breadcrumb-list {
    gap: 0.45rem;
  }
}

.app-shell {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow-x: clip;
}

.app-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top center, rgba(46, 166, 201, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(3, 9, 19, 0.2), rgba(3, 9, 19, 0.08));
  pointer-events: none;
}

.app-shell > * {
  position: relative;
  z-index: 1;
}

.app-shell-locked {
  height: 100vh;
  overflow-y: hidden;
}

.app-shell-content {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  padding: 0 1rem 1.5rem;
}

.app-shell-content:focus {
  outline: none;
}

.app-shell-content-start {
  align-items: flex-start;
}

.app-shell-content-center {
  align-items: center;
}

.app-shell-locked .app-shell-content {
  min-height: 0;
  overflow: hidden;
}

@media (max-width: 768px) {
  .app-shell-content {
    padding: 0 0.75rem 1rem;
  }
}

.home-page-content {
  min-height: 0;
  overflow: visible;
  padding: 0 clamp(0.75rem, 1vw, 1rem) 1rem;
}

.home-page-auth-error {
  width: min(100%, 36rem);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid rgba(125, 210, 228, 0.25);
  border-radius: 1.5rem;
  background: rgba(4, 22, 40, 0.93);
  color: #f5fbff;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.25);
}

.home-page-auth-error h1 {
  color: inherit;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.75rem;
}

.home-page-auth-error p {
  color: #c4d9e6;
  line-height: 1.6;
  margin: 0 0 1.5rem;
}

.home-page-auth-error button {
  border: 1px solid rgba(126, 218, 231, 0.4);
  border-radius: 0.75rem;
  background: linear-gradient(110deg, #16468d, #176371);
  color: #fff;
  padding: 0.8rem 1.2rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.home-page-auth-error button:focus-visible {
  outline: 3px solid #8ae5f1;
  outline-offset: 4px;
}

.historic-table-page {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.historic-table-page-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  max-width: 100%;
  box-sizing: border-box;
}

.historic-table {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0 1rem 1.5rem;
  box-sizing: border-box;
}

.historic-table-header {
  margin-bottom: 0.8rem;
  text-align: center;
}

.historic-table-title {
  margin: 0;
  color: white;
  font-weight: 700;
}

.historic-table-subtitle {
  margin: 0.45rem auto 0;
  max-width: 820px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.98rem;
}

.historic-table-card {
  width: 100%;
  border: none;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(58, 115, 191, 0.32), rgba(25, 54, 97, 0.24)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 36%);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
}

.historic-table-card-body {
  padding: 1.5rem;
}

.historic-table-table-layout {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.historic-table-toolbar {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1rem;
}

.historic-table-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.historic-table-metric {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  justify-content: center;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: rgba(6, 18, 34, 0.34);
}

.historic-table-metric-compact {
  max-width: 240px;
}

.historic-table-search-panel {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background: rgba(6, 18, 34, 0.34);
}

.historic-table-search-label {
  margin-bottom: 0.4rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.historic-table-search-input {
  min-height: 44px;
  border-radius: 12px;
}

.historic-table-search-hint {
  margin-top: 0.45rem;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.88rem;
}

.historic-table-metric-label {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.historic-table-metric-value {
  color: white;
  font-size: 1.75rem;
  line-height: 1.05;
}

.historic-table-metric-caption {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.88rem;
}

.historic-table-table-shell {
  width: 100%;
  padding: 0.85rem;
  border-radius: 24px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(6, 16, 30, 0.88), rgba(4, 11, 21, 0.94)),
    radial-gradient(circle at top, rgba(255, 255, 255, 0.06), transparent 46%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 24px 42px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.historic-table-table-scroll {
  overflow: auto;
}

.historic-table-table {
  min-width: 1080px;
  margin-bottom: 0;
  color: white;
  border-collapse: separate;
  border-spacing: 0 0.72rem;
}

.historic-table-table-head th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 0 0.95rem 0.55rem;
  background: transparent;
  border: none;
  vertical-align: top;
}

.historic-table-table-header-cell {
  min-width: 140px;
}

.historic-table-table-header-cell--checklist,
.historic-table-data-cell--checklist {
  width: 34%;
}

.historic-table-heading {
  display: block;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.historic-table-filter-slot {
  margin-top: 0.7rem;
}

.historic-table-filter-input {
  min-height: 40px;
  border-radius: 12px;
}

.historic-table-data-cell,
.historic-table-table-body td {
  padding: 1rem 0.95rem;
  background:
    linear-gradient(180deg, rgba(8, 21, 40, 0.92), rgba(5, 12, 24, 0.9)),
    radial-gradient(circle at top, rgba(255, 255, 255, 0.04), transparent 48%);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.92);
  vertical-align: middle;
}

.historic-table-table-body tr td:first-child {
  border-left: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px 0 0 20px;
}

.historic-table-table-body tr td:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 0 20px 20px 0;
}

.historic-table-table-body tr:hover td {
  background:
    linear-gradient(180deg, rgba(10, 29, 54, 0.98), rgba(7, 17, 33, 0.95)),
    radial-gradient(circle at top, rgba(255, 255, 255, 0.05), transparent 48%);
}

.historic-table-user-pill,
.historic-table-date-badge,
.historic-table-time-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  padding: 0.55rem 0.82rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
}

.historic-table-user-pill {
  background: rgba(19, 87, 181, 0.18);
  border-color: rgba(79, 156, 255, 0.28);
  color: #d9edff;
}

.historic-table-date-badge,
.historic-table-time-pill {
  background: rgba(255, 255, 255, 0.08);
  color: #f5f8fc;
}

.historic-table-product-cell,
.historic-table-summary-cell {
  display: grid;
  gap: 0.25rem;
}

.historic-table-product-kicker,
.historic-table-summary-kicker {
  color: rgba(97, 227, 229, 0.76);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.historic-table-product-value {
  color: white;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.25;
}

.historic-table-summary-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.historic-table-empty-row {
  padding: 2rem;
  text-align: center;
  font-weight: 700;
}

.historic-table-download-button {
  width: 100%;
  min-width: 148px;
  border: none;
  border-radius: 999px;
  background-color: #050227;
  color: white;
  font-weight: 700;
}

.historic-table-download-button--ready {
  background:
    linear-gradient(180deg, rgba(10, 31, 68, 0.98), rgba(5, 2, 39, 0.98));
  border: 1px solid rgba(79, 156, 255, 0.2);
}

.historic-table-download-button--disabled {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.historic-table-download-button:hover,
.historic-table-download-button:focus {
  color: white;
}

.historic-table-download-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.historic-table-pagination {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.historic-table-pagination-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.historic-table-pagination-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
}

.historic-table-pagination-button {
  min-width: 42px;
  min-height: 42px;
  border: none;
  border-radius: 12px;
  background: rgba(237, 236, 236, 0.95);
  color: #0f1e34;
  font-weight: 700;
}

.historic-table-pagination-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.historic-table-page-input,
.historic-table-page-size {
  min-height: 42px;
  border-radius: 12px;
}

.historic-table-page-input {
  width: 88px;
  text-align: center;
}

.historic-table-page-size {
  width: auto;
  min-width: 140px;
}

@media (max-width: 992px) {
  .historic-table-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .historic-table-toolbar {
    flex-direction: column;
  }

  .historic-table-metric-compact {
    max-width: none;
  }
}

@media (max-width: 768px) {
  .historic-table-page-content {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .historic-table {
    padding-left: 0;
    padding-right: 0;
  }

  .historic-table-card-body {
    padding: 1.15rem;
  }

  .historic-table-summary-grid {
    grid-template-columns: 1fr;
  }

  .historic-table-pagination {
    flex-direction: column;
    align-items: stretch;
  }

  .historic-table-pagination-group {
    flex-wrap: wrap;
  }
}

.correlation-study-page {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.correlation-study-page-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  max-width: 100%;
  box-sizing: border-box;
}

.correlation-study {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0 1rem 1.5rem;
  box-sizing: border-box;
}

.correlation-study-header {
  text-align: center;
  color: white;
  margin-bottom: 0.95rem;
}

.correlation-study-title {
  margin: 0;
  color: white;
  font-size: clamp(2rem, 2.6vw, 2.55rem);
  font-weight: 800;
}

.correlation-study-description {
  width: min(920px, 100%);
  margin: 0.55rem auto 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.65;
}

.correlation-study-switcher {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.correlation-study-switch-button {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: flex-start;
  width: 100%;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(58, 115, 191, 0.22), rgba(25, 54, 97, 0.18)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 40%);
  color: white;
  text-align: left;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.correlation-study-switch-button:hover,
.correlation-study-switch-button-active {
  transform: translateY(-1px);
  border-color: rgba(120, 198, 255, 0.34);
  background:
    linear-gradient(180deg, rgba(58, 115, 191, 0.34), rgba(25, 54, 97, 0.22)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 40%);
}

.correlation-study-switch-title {
  font-size: 1rem;
  font-weight: 700;
}

.correlation-study-switch-copy {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.5;
}

.correlation-study-section {
  width: 100%;
}

.correlation-study-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.35fr);
  gap: 1rem;
  align-items: start;
}

.correlation-study-layout-pair {
  grid-template-columns: minmax(320px, 0.86fr) minmax(0, 1.41fr);
}

.correlation-study-card {
  border: none;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(0, 139, 139, 0.7), rgba(4, 19, 38, 0.82)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 32%);
  box-shadow:
    0 24px 46px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.correlation-study-card-body {
  padding: 1.35rem;
}

.correlation-study-card-body-results {
  min-height: 720px;
}

.correlation-study-section-header {
  margin-bottom: 1rem;
}

.correlation-study-section-title {
  margin: 0;
  color: white;
  font-size: 1.4rem;
  font-weight: 800;
}

.correlation-study-section-copy {
  margin: 0.45rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}

.correlation-study-field + .correlation-study-field {
  margin-top: 0.9rem;
}

.correlation-study-label {
  display: block;
  margin-bottom: 0.45rem;
  color: white;
  font-weight: 700;
}

.correlation-study-select {
  width: 100%;
}

.correlation-study-select .ant-select-selector,
.correlation-study-input.ant-input,
.correlation-study-date-input {
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 22, 41, 0.48);
  color: white;
  box-shadow: none;
}

.correlation-study-select .ant-select-selection-placeholder,
.correlation-study-select .ant-select-arrow,
.correlation-study-select .ant-select-selection-item,
.correlation-study-select .ant-select-selection-search-input,
.correlation-study-input.ant-input::placeholder,
.correlation-study-date-input {
  color: white;
}

.correlation-study-helper {
  margin: 0.38rem 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.82rem;
}

.correlation-study-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.correlation-study-stat-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: rgba(6, 18, 34, 0.34);
}

.correlation-study-stat-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.correlation-study-stat-value {
  color: white;
  font-size: 0.96rem;
  line-height: 1.45;
}

.correlation-study-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.correlation-study-primary-button.btn,
.correlation-study-ghost-button.btn {
  border: none;
  border-radius: 999px;
  font-weight: 700;
}

.correlation-study-primary-button.btn {
  min-width: 190px;
  background: #050227;
  color: white;
}

.correlation-study-primary-button.btn:hover,
.correlation-study-primary-button.btn:focus {
  background: #0f0a4d;
  color: white;
}

.correlation-study-ghost-button.btn {
  min-width: 160px;
  background: rgba(255, 255, 255, 0.14);
  color: white;
}

.correlation-study-ghost-button.btn:hover,
.correlation-study-ghost-button.btn:focus {
  background: rgba(255, 255, 255, 0.22);
  color: white;
}

.correlation-study-results-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.correlation-study-results-title {
  margin: 0;
  color: white;
  font-size: 1.15rem;
  font-weight: 700;
}

.correlation-study-results-copy {
  margin: 0.35rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

.correlation-study-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.correlation-study-chip {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
}

.correlation-study-table-shell {
  overflow: hidden;
  border-radius: 18px;
  background: rgba(6, 18, 34, 0.34);
}

.correlation-study-table-scroll {
  overflow: auto;
  max-height: 640px;
}

.correlation-study-table {
  width: 100%;
  min-width: 720px;
  border-collapse: separate;
  border-spacing: 0;
}

.correlation-study-table th,
.correlation-study-table td {
  padding: 0.72rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.correlation-study-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #031830;
  color: white;
}

.correlation-study-table tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
  background: #031830;
  color: white;
}

.correlation-study-plot-shell {
  min-height: 640px;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(6, 18, 34, 0.34);
}

.correlation-study-empty-state {
  min-height: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.5rem;
  border-radius: 18px;
  background: rgba(6, 18, 34, 0.34);
  text-align: center;
  color: rgba(255, 255, 255, 0.78);
}

.correlation-study-empty-state strong {
  color: white;
  font-size: 1.02rem;
}

.correlation-study-pdf-preview {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 20px;
  background: rgba(6, 18, 34, 0.34);
}

.correlation-study-pdf-preview-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.95rem;
}

.correlation-study-pdf-preview-title {
  margin: 0;
  color: white;
  font-size: 1.05rem;
  font-weight: 700;
}

.correlation-study-pdf-preview-copy {
  margin: 0.35rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

.correlation-study-pdf-preview-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  min-height: 42px;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  background: #050227;
  color: white;
  text-decoration: none;
  font-weight: 700;
}

.correlation-study-pdf-preview-link:hover,
.correlation-study-pdf-preview-link:focus {
  background: #0f0a4d;
  color: white;
  text-decoration: none;
}

.correlation-study-pdf-preview-shell {
  overflow: hidden;
  min-height: 420px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(10, 23, 40, 0.96), rgba(5, 14, 28, 0.88)),
    radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 46%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.correlation-study-pdf-preview-frame {
  width: 100%;
  height: 420px;
  border: none;
  background: white;
}

.correlation-study-pdf-preview-empty {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 1.5rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.78);
}

.correlation-study-pdf-preview-empty strong {
  color: white;
  font-size: 1.02rem;
}

@media (max-width: 1120px) {
  .correlation-study-layout,
  .correlation-study-layout-pair {
    grid-template-columns: 1fr;
  }

  .correlation-study-card-body-results,
  .correlation-study-plot-shell,
  .correlation-study-empty-state {
    min-height: 520px;
  }
}

@media (max-width: 860px) {
  .correlation-study-switcher,
  .correlation-study-stats-grid {
    grid-template-columns: 1fr;
  }

  .correlation-study-actions,
  .correlation-study-results-toolbar,
  .correlation-study-pdf-preview-header {
    flex-direction: column;
  }

  .correlation-study-primary-button.btn,
  .correlation-study-ghost-button.btn,
  .correlation-study-pdf-preview-link {
    width: 100%;
  }

  .correlation-study-table {
    min-width: 640px;
  }

  .correlation-study-pdf-preview-shell,
  .correlation-study-pdf-preview-frame,
  .correlation-study-pdf-preview-empty {
    min-height: 360px;
    height: 360px;
  }
}

.position-register-page {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.position-register-page-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  max-width: 100%;
  box-sizing: border-box;
}

.position-register {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0 1rem 1.5rem;
  box-sizing: border-box;
}

.position-register-section + .position-register-section {
  margin-top: 1.25rem;
}

.position-register-header {
  text-align: center;
  margin-bottom: 0.65rem;
}

.position-register-header-secondary {
  margin-top: 0.5rem;
}

.position-register-title {
  margin: 0;
  color: white;
  font-weight: 700;
}

.position-register-card {
  border: none;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(58, 115, 191, 0.32), rgba(25, 54, 97, 0.24)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 36%);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
}

.position-register-card-body {
  padding: 1.7rem;
}

.position-register-card-body-table {
  padding-top: 1.25rem;
}

.position-register-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.position-register-field {
  min-width: 0;
}

.position-register-label {
  display: block;
  margin-bottom: 0.45rem;
  color: white;
  font-weight: 700;
}

.position-register-select {
  width: 100%;
}

.position-register-input {
  min-height: 40px;
}

.position-register-radio-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  min-height: 40px;
  padding: 0.45rem 0;
}

.position-register-radio label,
.position-register-radio input {
  cursor: pointer;
}

.position-register-radio {
  color: white;
}

.position-register-feedback {
  margin-top: 1rem;
}

.position-register-feedback-message {
  margin: 0;
  text-align: center;
  font-weight: 700;
}

.position-register-feedback-message-error {
  color: #ffd1d1;
}

.position-register-feedback-message-success {
  color: #d7ffe4;
}

.position-register-submit {
  display: flex;
  justify-content: center;
  margin-top: 1.1rem;
}

.position-register-submit-button {
  width: min(320px, 100%);
  padding: 0.8rem 1.25rem;
  border: none;
  border-radius: 999px;
  background-color: #050227;
  color: white;
  font-weight: 700;
}

.position-register-submit-button:hover,
.position-register-submit-button:focus {
  color: white;
}

.position-register-table-shell {
  padding: 0.85rem;
  border-radius: 24px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(6, 16, 30, 0.88), rgba(4, 11, 21, 0.94)),
    radial-gradient(circle at top, rgba(255, 255, 255, 0.06), transparent 46%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 24px 42px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.position-register-table-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.position-register-table-search {
  flex: 1 1 auto;
}

.position-register-table-count {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  min-width: 160px;
  padding: 0.7rem 0.9rem;
  border-radius: 14px;
  background: rgba(6, 18, 34, 0.34);
}

.position-register-table-toolbar-label {
  display: block;
  margin-bottom: 0.35rem;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.position-register-table-search-input {
  min-height: 44px;
}

.position-register-table-count-value {
  color: white;
  font-size: 1.65rem;
  line-height: 1;
}

.position-register-table-count-caption {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
}

.position-register-table-scroll {
  max-height: 320px;
  overflow-y: auto;
}

.position-register-table {
  min-width: 1120px;
  margin-bottom: 0;
  color: white;
  border-collapse: separate;
  border-spacing: 0 0.72rem;
}

.position-register-table-head th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.position-register-table-heading {
  padding: 0 0.95rem 0.55rem;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.84);
  cursor: pointer;
  white-space: nowrap;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.position-register-table-body td,
.position-register-table-cell {
  padding: 1rem 0.95rem;
  background:
    linear-gradient(180deg, rgba(8, 21, 40, 0.92), rgba(5, 12, 24, 0.9)),
    radial-gradient(circle at top, rgba(255, 255, 255, 0.04), transparent 48%);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.92);
  vertical-align: middle;
}

.position-register-table-body tr td:first-child {
  border-left: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px 0 0 20px;
}

.position-register-table-body tr td:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 0 20px 20px 0;
}

.position-register-table-body tr:hover td {
  background:
    linear-gradient(180deg, rgba(10, 29, 54, 0.98), rgba(7, 17, 33, 0.95)),
    radial-gradient(circle at top, rgba(255, 255, 255, 0.05), transparent 48%);
}

.position-register-date-badge,
.position-register-identity-pill,
.position-register-muted-pill,
.position-register-term-badge,
.position-register-position-pill,
.position-register-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  padding: 0.55rem 0.82rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
}

.position-register-date-badge,
.position-register-term-badge,
.position-register-muted-pill {
  background: rgba(255, 255, 255, 0.08);
  color: #f5f8fc;
}

.position-register-identity-pill {
  background: rgba(19, 87, 181, 0.18);
  border-color: rgba(79, 156, 255, 0.28);
  color: #d9edff;
}

.position-register-position-pill {
  background: rgba(18, 113, 124, 0.2);
  border-color: rgba(97, 227, 229, 0.18);
  color: #d6ffff;
}

.position-register-product-cell,
.position-register-amount-chip {
  display: grid;
  gap: 0.2rem;
}

.position-register-product-kicker,
.position-register-amount-label {
  color: rgba(97, 227, 229, 0.76);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.position-register-product-value,
.position-register-amount-value {
  color: white;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.25;
}

.position-register-amount-chip {
  min-width: 144px;
  padding: 0.6rem 0.75rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.position-register-status-pill--success {
  background: rgba(33, 160, 106, 0.18);
  border-color: rgba(89, 223, 149, 0.24);
  color: #cbffe3;
}

.position-register-status-pill--danger {
  background: rgba(196, 61, 61, 0.18);
  border-color: rgba(255, 124, 103, 0.24);
  color: #ffd7d0;
}

.position-register-status-pill--neutral {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f3f7fb;
}

.position-register-empty-row {
  padding: 2rem;
  text-align: center;
  font-weight: 700;
}

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

@media (max-width: 768px) {
  .position-register-page-content {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .position-register {
    padding-left: 0;
    padding-right: 0;
  }

  .position-register-card-body {
    padding: 1.2rem;
  }

  .position-register-table-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .position-register-table-count {
    align-items: flex-start;
    width: 100%;
  }

  .position-register-grid {
    grid-template-columns: 1fr;
  }

  .position-register-radio-group {
    gap: 0.75rem;
  }
}

.faqs-page {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.faqs-page-content {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0 1rem 1.5rem;
  max-width: 100%;
  box-sizing: border-box;
}

.global-report-page {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.global-report-page-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  max-width: 100%;
  box-sizing: border-box;
}

.global-report {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0 1rem 1.5rem;
  box-sizing: border-box;
}

.global-report-header {
  text-align: center;
  color: white;
  margin-bottom: 0.9rem;
}

.global-report-eyebrow {
  margin: 0 0 0.35rem;
  color: rgba(255, 255, 255, 0.72);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.72rem;
  font-weight: 700;
}

.global-report-title {
  margin: 0;
  color: white;
  font-size: clamp(2rem, 2.6vw, 2.55rem);
  font-weight: 800;
}

.global-report-description {
  width: min(920px, 100%);
  margin: 0.55rem auto 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1rem;
  line-height: 1.65;
}

.global-report-main {
  min-width: 0;
}

.global-report-form {
  border: none;
  border-radius: 24px;
  padding: 1.45rem 1.45rem 1.35rem;
  background:
    linear-gradient(180deg, rgba(0, 139, 139, 0.7), rgba(4, 19, 38, 0.82)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 32%);
  box-shadow:
    0 24px 46px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.global-report-form-header {
  margin-bottom: 1.15rem;
}

.global-report-form-title {
  margin: 0;
  color: white;
  font-size: 1.55rem;
  font-weight: 800;
}

.global-report-form-description {
  margin: 0.55rem 0 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

.global-report-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem 1rem;
}

.global-report-form-field {
  min-width: 0;
}

.global-report-form-field-full {
  grid-column: 1 / -1;
}

.global-report-form-label {
  display: block;
  margin-bottom: 0.45rem;
  color: white;
  font-weight: 700;
}

.global-report-form-select {
  width: 100%;
}

.global-report-form-select .ant-select-selector {
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 22, 41, 0.48);
  color: white;
  box-shadow: none;
}

.global-report-form-select .ant-select-selection-placeholder,
.global-report-form-select .ant-select-arrow,
.global-report-form-select .ant-select-selection-item,
.global-report-form-select .ant-select-selection-search-input {
  color: white;
}

.global-report-form-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.global-report-form-row-split > * {
  flex: 1 1 0;
}

.global-report-form-input {
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 22, 41, 0.48);
  color: white;
}

.global-report-form-input:focus {
  color: white;
  background: rgba(7, 22, 41, 0.58);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: none;
}

.global-report-form-date-input {
  cursor: pointer;
}

.global-report-form-date-input:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.global-report-form-secondary-button,
.global-report-form-primary-button.btn,
.global-report-form-ghost-button.btn {
  border: none;
  border-radius: 999px;
  font-weight: 700;
}

.global-report-form-secondary-button {
  min-width: 170px;
  min-height: 42px;
  padding: 0.72rem 1rem;
  background: #050227;
  color: white;
}

.global-report-form-secondary-button:disabled {
  opacity: 0.68;
}

.global-report-form-helper {
  margin: 0.38rem 0 0;
  color: rgba(255, 221, 221, 0.92);
  font-size: 0.82rem;
}

.global-report-form-helper-neutral {
  color: rgba(255, 255, 255, 0.78);
}

.global-report-form-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.1rem;
}

.global-report-form-status-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(6, 18, 34, 0.34);
}

.global-report-form-status-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.global-report-form-status-value {
  color: white;
  font-size: 0.96rem;
  line-height: 1.45;
}

.global-report-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.global-report-form-preview {
  margin-top: 1.35rem;
  padding: 1rem;
  border-radius: 20px;
  background: rgba(6, 18, 34, 0.34);
}

.global-report-form-preview-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.95rem;
}

.global-report-form-preview-title {
  margin: 0;
  color: white;
  font-size: 1.05rem;
  font-weight: 700;
}

.global-report-form-preview-description {
  margin: 0.35rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

.global-report-form-preview-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  min-height: 42px;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  background: #050227;
  color: white;
  text-decoration: none;
  font-weight: 700;
}

.global-report-form-preview-link:hover,
.global-report-form-preview-link:focus {
  color: white;
  text-decoration: none;
  background: #0f0a4d;
}

.global-report-form-preview-shell {
  overflow: hidden;
  min-height: 520px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(10, 23, 40, 0.96), rgba(5, 14, 28, 0.88)),
    radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 46%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.global-report-form-preview-frame {
  width: 100%;
  height: 520px;
  border: none;
  background: white;
}

.global-report-form-preview-empty {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 1.5rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.78);
}

.global-report-form-preview-empty strong {
  color: white;
  font-size: 1.02rem;
}

.global-report-form-primary-button.btn {
  min-width: 210px;
  padding: 0.78rem 1.2rem;
  background: #050227;
  color: white;
}

.global-report-form-primary-button.btn:hover,
.global-report-form-primary-button.btn:focus {
  background: #0f0a4d;
  color: white;
}

.global-report-form-ghost-button.btn {
  min-width: 150px;
  padding: 0.78rem 1.2rem;
  background: rgba(255, 255, 255, 0.14);
  color: white;
}

.global-report-form-ghost-button.btn:hover,
.global-report-form-ghost-button.btn:focus {
  background: rgba(255, 255, 255, 0.22);
  color: white;
}

.global-report-form-modal-code {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.84rem;
}

.global-report-form-modal-meta {
  margin-bottom: 0.75rem;
  color: #495057;
  font-weight: 700;
}

@media (max-width: 860px) {
  .global-report-form-grid,
  .global-report-form-status-grid {
    grid-template-columns: 1fr;
  }

  .global-report-form-row {
    flex-direction: column;
    align-items: stretch;
  }

  .global-report-form-secondary-button,
  .global-report-form-primary-button.btn,
  .global-report-form-ghost-button.btn {
    width: 100%;
  }

  .global-report-form-actions {
    flex-direction: column;
  }

  .global-report-form-preview-header {
    flex-direction: column;
  }

  .global-report-form-preview-link {
    width: 100%;
  }

  .global-report-form-preview-shell,
  .global-report-form-preview-frame,
  .global-report-form-preview-empty {
    min-height: 420px;
    height: 420px;
  }
}

.trading-rules-page {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.trading-rules-page-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  max-width: 100%;
  box-sizing: border-box;
}

.trading-rules {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0 1rem 1.5rem;
  box-sizing: border-box;
}

.trading-rules-header {
  margin-bottom: 0.8rem;
  text-align: center;
}

.trading-rules-title {
  margin: 0;
  color: white;
  font-weight: 700;
}

.trading-rules-subtitle {
  margin: 0.45rem auto 0;
  max-width: 920px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.98rem;
}

.trading-rules-shell {
  position: relative;
  overflow: hidden;
  border: none;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(58, 115, 191, 0.32), rgba(25, 54, 97, 0.24)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 36%);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
}

.trading-rules-shell .ant-card-body {
  position: relative;
}

.trading-rules-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.trading-rules-status-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 112px;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background: rgba(6, 18, 34, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow:
    0 16px 30px rgba(2, 8, 20, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.trading-rules-status-card-connected {
  box-shadow: inset 0 0 0 1px rgba(82, 196, 26, 0.28);
}

.trading-rules-status-card-pending {
  box-shadow: inset 0 0 0 1px rgba(250, 173, 20, 0.28);
}

.trading-rules-status-label {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trading-rules-status-value {
  color: white;
  font-size: 1.45rem;
  line-height: 1.05;
}

.trading-rules-status-caption {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.88rem;
}

.trading-rules-controls {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(7, 24, 45, 0.42), rgba(7, 24, 45, 0.22));
}

.trading-rules-toggle-row,
.trading-rules-button-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.trading-rules-button-row-end {
  justify-content: flex-end;
}

.trading-rules-toggle-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0.75rem 0.95rem;
  border-radius: 14px;
  background: rgba(6, 18, 34, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.trading-rules-toggle-label {
  color: white;
  font-weight: 700;
}

.trading-rules-action-button.ant-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 1.15rem;
  border: none;
  border-radius: 999px;
  background:
    linear-gradient(135deg, #08152e, #10355f);
  border: 1px solid rgba(129, 204, 255, 0.24);
  color: #f5fbff;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
  box-shadow:
    0 10px 22px rgba(2, 8, 20, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.trading-rules-action-button.ant-btn > span {
  color: inherit;
}

.trading-rules-action-button.ant-btn:hover,
.trading-rules-action-button.ant-btn:focus,
.trading-rules-action-button.ant-btn:focus-visible {
  color: #ffffff;
  border-color: transparent;
  background:
    linear-gradient(135deg, #0d1f45, #15508a);
}

.trading-rules-action-button.ant-btn:disabled,
.trading-rules-action-button.ant-btn[disabled] {
  background: rgba(12, 26, 46, 0.42);
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.52);
  box-shadow: none;
}

.trading-rules-action-button.ant-btn:disabled > span,
.trading-rules-action-button.ant-btn[disabled] > span {
  color: inherit;
}

.trading-rules-action-button-secondary.ant-btn {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border-color: rgba(255, 255, 255, 0.12);
}

.trading-rules-phase-card {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(7, 24, 45, 0.28), rgba(7, 24, 45, 0.12));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.trading-rules-phase-card .ant-card-body {
  padding: 1rem 1rem 0.6rem;
}

.trading-rules-form {
  width: 100%;
}

.trading-rules-form-stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
}

.trading-rules-form-title {
  margin: 0;
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
}

.trading-rules-helper-copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  text-align: center;
}

.trading-rules-phase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.trading-rules-section-card {
  width: 100%;
  border: none;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(0, 139, 139, 0.9), rgba(0, 0, 0, 0.05));
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(6px);
}

.trading-rules-section-card .ant-card-head {
  min-height: auto;
  padding: 0 16px;
  border-bottom: none;
}

.trading-rules-section-card .ant-card-head-title {
  padding: 14px 0 0;
  white-space: normal;
}

.trading-rules-section-card .ant-card-body {
  padding-top: 12px;
}

.trading-rules-section-card-title {
  color: white;
}

.trading-rules-section-card-title-text,
.trading-rules-split-card-title-text {
  font-weight: 700;
}

.trading-rules-split-card-title {
  color: white;
}

.trading-rules-split-card-title-separator {
  opacity: 0.78;
}

.trading-rules-section-title {
  margin: 0 0 0.75rem;
  color: white;
  font-size: 1rem;
}

.trading-rules-field-label {
  color: white;
}

.trading-rules-form .ant-form-item-label > label {
  color: white;
}

.trading-rules-form .ant-picker,
.trading-rules-form .ant-select {
  width: 100%;
}

.trading-rules-required-field-missing .ant-form-item-label > label {
  color: #ffd6d6;
}

.trading-rules-required-field-missing .ant-input,
.trading-rules-required-field-missing .ant-input-affix-wrapper,
.trading-rules-required-field-missing .ant-picker,
.trading-rules-required-field-missing .ant-select:not(.ant-select-customize-input) .ant-select-selector {
  background: rgba(120, 28, 28, 0.16);
  border-color: rgba(255, 140, 140, 0.72);
  box-shadow: 0 0 0 1px rgba(255, 140, 140, 0.12);
}

.trading-rules-required-field-missing .ant-select-selection-placeholder,
.trading-rules-required-field-missing .ant-picker-input > input::placeholder,
.trading-rules-required-field-missing .ant-input::placeholder {
  color: rgba(255, 215, 215, 0.74);
}

.trading-rules-required-field-filled .ant-input,
.trading-rules-required-field-filled .ant-input-affix-wrapper,
.trading-rules-required-field-filled .ant-picker,
.trading-rules-required-field-filled .ant-select:not(.ant-select-customize-input) .ant-select-selector {
  border-color: rgba(129, 204, 255, 0.3);
  box-shadow: 0 0 0 1px rgba(129, 204, 255, 0.06);
}

.trading-rules-check-item {
  margin-bottom: 12px;
}

.trading-rules-check-row {
  gap: 1rem;
}

.trading-rules-check-label {
  color: white;
  font-size: 1rem;
  font-weight: 500;
}

.trading-rules-phase-feedback {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.trading-rules-phase-feedback-text-success {
  color: #8bffb0;
}

.trading-rules-phase-feedback-text-pending {
  color: rgba(255, 255, 255, 0.78);
}

.trading-rules-results-card {
  border: none;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(58, 115, 191, 0.28), rgba(25, 54, 97, 0.2)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 36%);
  box-shadow:
    0 16px 32px rgba(2, 8, 20, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.trading-rules-results-card .ant-card-body {
  padding: 1.25rem;
}

.trading-rules-results-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.trading-rules-results-title,
.trading-rules-chat-title {
  margin: 0;
  color: white;
}

.trading-rules-results-subtitle {
  margin: 0.35rem 0 0;
  color: rgba(255, 255, 255, 0.76);
}

.trading-rules-chat-panel {
  margin-top: 1rem;
}

.trading-rules-chat-input {
  margin-top: 0.8rem;
}

.trading-rules-follow-up-actions {
  margin-top: 0.75rem;
}

.trading-rules-continue-response {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 14px;
  background: rgba(6, 18, 34, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.trading-rules-continue-text {
  margin: 0;
  color: white;
  white-space: pre-wrap;
}

.trading-rules-results-card .ant-collapse {
  background: transparent;
}

.trading-rules-results-card .ant-collapse-item {
  overflow: hidden;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  background: rgba(6, 18, 34, 0.24);
}

.trading-rules-results-card .ant-collapse-content {
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.trading-rules-results-card .ant-collapse-content-box {
  padding-top: 0.85rem;
}

.trading-rules-collapse-label {
  color: white;
  font-size: 1.05rem;
  font-weight: 700;
}

.trading-rules-results-table .ant-table,
.trading-rules-results-table .ant-table-container,
.trading-rules-results-table .ant-table-content,
.trading-rules-results-table .ant-table-tbody > tr > td {
  background: transparent;
}

.trading-rules-results-table .ant-table-tbody > tr > td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.trading-rules-table-text {
  color: white;
  font-size: 1rem;
  white-space: pre-wrap;
}

.trading-rules-rules-section {
  margin-top: 0.75rem;
}

.trading-rules-rule-block + .trading-rules-rule-block {
  margin-top: 1rem;
}

.trading-rules-rule-title {
  margin-bottom: 0.6rem;
  color: white;
}

.trading-rules-empty-state {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-style: italic;
}

.trading-rules-divider {
  margin: 0.25rem 0 0.15rem;
  border-color: rgba(255, 255, 255, 0.12);
}

@media (max-width: 1200px) {
  .trading-rules-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .trading-rules-page-content {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .trading-rules {
    padding-left: 0;
    padding-right: 0;
  }

  .trading-rules-status-grid {
    grid-template-columns: 1fr;
  }

  .trading-rules-phase-grid {
    grid-template-columns: 1fr;
  }

  .trading-rules-results-header {
    flex-direction: column;
  }
}

.wallet-performance-page {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.wallet-performance-page-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  max-width: 100%;
  box-sizing: border-box;
}

.wallet-performance {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0 1rem 1.5rem;
  box-sizing: border-box;
}

.wallet-performance-header {
  text-align: center;
  color: white;
  margin-bottom: 0.95rem;
}

.wallet-performance-title {
  margin: 0;
  color: white;
  font-size: clamp(2rem, 2.6vw, 2.55rem);
  font-weight: 800;
}

.wallet-performance-description {
  width: min(920px, 100%);
  margin: 0.55rem auto 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.65;
}

.wallet-performance-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.86fr) minmax(0, 1.34fr);
  gap: 1.2rem;
  align-items: start;
}

.wallet-performance-card {
  border: none;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(0, 139, 139, 0.7), rgba(4, 19, 38, 0.82)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 32%);
  box-shadow:
    0 24px 46px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.wallet-performance-card + .wallet-performance-card {
  margin-top: 1rem;
}

.wallet-performance-card-results {
  margin-top: 1.2rem;
}

.wallet-performance-card-body {
  padding: 1.35rem;
}

.wallet-performance-section-header,
.wallet-performance-results-header {
  margin-bottom: 1rem;
}

.wallet-performance-section-title {
  margin: 0;
  color: white;
  font-size: 1.35rem;
  font-weight: 800;
}

.wallet-performance-section-copy {
  margin: 0.45rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}

.wallet-performance-field + .wallet-performance-field {
  margin-top: 0.9rem;
}

.wallet-performance-label {
  display: block;
  margin-bottom: 0.45rem;
  color: white;
  font-weight: 700;
}

.wallet-performance-select {
  width: 100%;
}

.wallet-performance-select .ant-select-selector,
.wallet-performance-number-input.ant-input-number,
.wallet-performance-percentage-input.form-control {
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 22, 41, 0.48);
  color: white;
  box-shadow: none;
}

.wallet-performance-select .ant-select-selection-placeholder,
.wallet-performance-select .ant-select-arrow,
.wallet-performance-select .ant-select-selection-item,
.wallet-performance-select .ant-select-selection-search-input,
.wallet-performance-number-input .ant-input-number-input {
  color: white;
}

.wallet-performance-number-input {
  width: 100%;
}

.wallet-performance-number-input.gx-required-field-missing.ant-input-number {
  border-color: rgba(255, 113, 145, 0.72);
  background: rgba(122, 24, 43, 0.14);
  box-shadow:
    inset 0 0 0 1px rgba(255, 113, 145, 0.18),
    0 0 0 1px rgba(255, 113, 145, 0.12);
}

.wallet-performance-number-input.gx-required-field-filled.ant-input-number {
  border-color: rgba(101, 216, 175, 0.24);
}

.wallet-performance-number-input.gx-required-field-missing .ant-input-number-input {
  background: transparent;
}

.wallet-performance-stats-grid,
.wallet-performance-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.wallet-performance-stats-grid {
  margin-top: 1rem;
}

.wallet-performance-stat-card,
.wallet-performance-summary-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: rgba(6, 18, 34, 0.34);
}

.wallet-performance-stat-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.wallet-performance-stat-value {
  color: white;
  font-size: 0.96rem;
  line-height: 1.45;
}

.wallet-performance-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.wallet-performance-primary-button.btn {
  min-width: 210px;
  border: none;
  border-radius: 999px;
  background: #050227;
  color: white;
  font-weight: 700;
}

.wallet-performance-primary-button.btn:hover,
.wallet-performance-primary-button.btn:focus {
  background: #0f0a4d;
  color: white;
}

.wallet-performance-primary-button.btn:disabled {
  background: rgba(5, 2, 39, 0.58);
  color: rgba(255, 255, 255, 0.7);
  opacity: 1;
}

.wallet-performance-button-spinner {
  margin-right: 0.55rem;
  vertical-align: -0.12em;
}

.wallet-performance-calculating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 0 0 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(111, 219, 224, 0.24);
  border-radius: 14px;
  background: rgba(0, 208, 255, 0.07);
  color: #d8f7f8;
  font-weight: 700;
}

.wallet-performance-calculating .spinner-border {
  width: 1.15rem;
  height: 1.15rem;
  color: #75e0e2;
}

.wallet-performance-table-shell {
  overflow: hidden;
  border-radius: 18px;
  background: rgba(6, 18, 34, 0.34);
}

.wallet-performance-table-scroll {
  overflow: auto;
}

.wallet-performance-table {
  width: 100%;
  min-width: 720px;
  border-collapse: separate;
  border-spacing: 0;
  color: white;
}

.wallet-performance-table th,
.wallet-performance-table td {
  padding: 0.78rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.wallet-performance-table thead th,
.wallet-performance-table tfoot th,
.wallet-performance-table tfoot td {
  background: #031830;
  color: white;
}

.wallet-performance-bar-track {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
}

.wallet-performance-bar-fill {
  height: 100%;
  border-radius: inherit;
}

.wallet-performance-bar-fill--objetivo {
  background: #00d0ff;
}

.wallet-performance-bar-fill--secundario {
  background: #79daff;
}

.wallet-performance-bar-fill--cobertura {
  background: #ffae00;
}

.wallet-performance-bar-fill-total-ok {
  background: #00ff99;
}

.wallet-performance-bar-fill-total-bad {
  background: #ff5a67;
}

.wallet-performance-warning {
  margin: 0.65rem 0 0;
  color: #ffd1d1;
  font-weight: 700;
}

.wallet-performance-results-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 1.2rem;
  align-items: start;
}

.wallet-performance-insight-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.wallet-performance-interpretation {
  padding: 1rem;
  border-radius: 20px;
  background: rgba(6, 18, 34, 0.34);
}

.wallet-performance-interpretation-header {
  margin-bottom: 0.85rem;
}

.wallet-performance-interpretation-title {
  margin: 0;
  color: white;
  font-size: 1.02rem;
  font-weight: 800;
}

.wallet-performance-interpretation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.wallet-performance-interpretation-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(2, 10, 22, 0.52);
}

.wallet-performance-interpretation-card--positive {
  box-shadow: inset 0 0 0 1px rgba(0, 255, 153, 0.1);
}

.wallet-performance-interpretation-card--warning {
  box-shadow: inset 0 0 0 1px rgba(255, 174, 0, 0.12);
}

.wallet-performance-interpretation-card--negative {
  box-shadow: inset 0 0 0 1px rgba(255, 90, 103, 0.14);
}

.wallet-performance-interpretation-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.wallet-performance-interpretation-badge {
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.wallet-performance-interpretation-value {
  color: white;
  font-size: 1.2rem;
  line-height: 1.2;
}

.wallet-performance-interpretation-copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

.wallet-performance-interpretation-summary {
  margin-top: 0.9rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background: rgba(0, 208, 255, 0.08);
  color: white;
  font-weight: 600;
  line-height: 1.6;
}

.wallet-performance-chart-shell {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 20px;
  background: rgba(6, 18, 34, 0.34);
}

.wallet-performance-chart-image {
  width: 100%;
  display: block;
  border-radius: 18px;
}

.wallet-performance-empty-state {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.5rem;
  border-radius: 18px;
  background: rgba(6, 18, 34, 0.34);
  text-align: center;
  color: rgba(255, 255, 255, 0.78);
}

.wallet-performance-empty-state-results,
.wallet-performance-empty-state-chart {
  min-height: 320px;
}

.wallet-performance-empty-state strong {
  color: white;
  font-size: 1.02rem;
}

@media (max-width: 1120px) {
  .wallet-performance-layout,
  .wallet-performance-results-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .wallet-performance-stats-grid,
  .wallet-performance-summary-grid,
  .wallet-performance-interpretation-grid {
    grid-template-columns: 1fr;
  }

  .wallet-performance-actions {
    flex-direction: column;
  }

  .wallet-performance-primary-button.btn {
    width: 100%;
  }

  .wallet-performance-table {
    min-width: 640px;
  }
}

.gif-notification-rotator {
  --gif-notification-width: 400px;
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.95rem;
  width: min(var(--gif-notification-width), calc(100vw - 24px));
  min-height: 110px;
  padding: 0.95rem 1rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(8, 15, 28, 0.92), rgba(6, 14, 26, 0.8)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 40%);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
}

.gif-notification-rotator-media {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gif-notification-rotator-body {
  min-width: 0;
  flex: 1 1 auto;
}

.gif-notification-rotator-text {
  margin: 0;
  color: white;
  font-size: 0.9rem;
  line-height: 1.45;
}

.gif-notification-rotator-close {
  position: absolute;
  top: 0.45rem;
  right: 0.55rem;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.gif-notification-rotator-close:hover {
  color: white;
}

.gif-notification-rotator-close:focus-visible {
  border-radius: 999px;
}

@media (max-width: 576px) {
  .gif-notification-rotator {
    right: 12px;
    bottom: 12px;
    gap: 0.75rem;
    padding: 0.85rem 0.9rem 0.85rem;
  }

  .gif-notification-rotator-text {
    font-size: 0.84rem;
  }
}

