:root {
  --font-sans-default: Aptos, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-sans-inter: "Inter", Aptos, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Aptos Mono", "Cascadia Code", "Segoe UI Mono", Consolas, monospace;
  --bg: #ffffff;
  --panel: #ffffff;
  --panel-strong: #f6f8fb;
  --border: #d8dfeb;
  --surface-border-soft: rgba(13, 91, 215, 0.1);
  --surface-border-strong: rgba(13, 91, 215, 0.12);
  --text: #162033;
  --muted: #627086;
  --accent: #0d5bd7;
  --accent-soft: #bfd6fb;
  --success: #12724a;
  --warning: #a06a12;
  --error: #9c2f2f;
  --shadow: 0 18px 36px rgba(18, 32, 61, 0.08);
  --surface-shadow-soft: 0 12px 24px rgba(18, 32, 61, 0.05);
  --surface-shadow-medium: 0 14px 28px rgba(18, 32, 61, 0.05);
  --surface-shadow-panel: 0 14px 30px rgba(18, 32, 61, 0.06);
  --workspace-card-radius: 12px;
  --workspace-card-radius-compact: 10px;
  --workspace-card-shadow: 0 14px 28px rgba(18, 32, 61, 0.05);
  --workspace-card-shadow-flat: 0 10px 22px rgba(18, 32, 61, 0.04);
  --control-border: rgba(13, 91, 215, 0.14);
  --control-border-strong: rgba(13, 91, 215, 0.18);
  --control-bg-soft: #f7f9fc;
  --control-bg-panel: #fffefb;
  --control-height: 44px;
  --control-radius: 12px;
  --control-focus-ring: 0 0 0 3px rgba(13, 91, 215, 0.12);
  --panel-contrast: #16284a;
  --panel-contrast-soft: #edf3ff;
  --page-max-width: 1440px;
  --workspace-sidebar-width: 252px;
  --header-height: 72px;
}

* {
  box-sizing: border-box;
}

.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;
}

html {
  scrollbar-color: rgba(100, 116, 139, 0.34) rgba(226, 232, 240, 0.48);
  scrollbar-width: auto;
}

html:hover {
  scrollbar-color: rgba(71, 85, 105, 0.56) rgba(226, 232, 240, 0.48);
}

html::-webkit-scrollbar {
  width: 13px;
}

html::-webkit-scrollbar-track {
  background: rgba(226, 232, 240, 0.48);
}

html::-webkit-scrollbar-thumb {
  border: 4px solid rgba(226, 232, 240, 0.48);
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.34);
}

html::-webkit-scrollbar-thumb:hover {
  background: rgba(71, 85, 105, 0.56);
}

body {
  margin: 0;
  font-family: var(--font-sans-default);
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(13, 91, 215, 0.04) 0%, transparent 12%),
    linear-gradient(180deg, var(--bg) 0%, #fbfcfe 100%);
}

.app-shell {
  min-height: 100vh;
}

.app-shell--workspace {
  background:
    radial-gradient(circle at top left, rgba(13, 91, 215, 0.08), transparent 24%),
    linear-gradient(180deg, #f5f8fd 0%, #fbfcfe 42%, #f5f8fd 100%);
}

.app-shell--public {
  background:
    linear-gradient(180deg, #ffffff 0%, #f6f8fb 54%, #ffffff 100%);
}

body.public-page--landing {
  position: relative;
  background:
    linear-gradient(180deg, #f4f9ff 0%, #eaf3fe 30%, #e2eefc 62%, #edf5ff 100%);
  background-attachment: fixed;
}

body.landing-font-test-page,
body.landing-inter-page,
body.login-inter-page,
body.pricing-inter-page,
body.faq-inter-page,
body.market-data-inter-page,
body.help-center-inter-page,
body.strategy-library-inter-page,
body.strategy-detail-inter-page,
body.account-settings-inter-page,
body.dashboard-inter-page,
body.result-history-inter-page,
body.single-result-review-inter-page {
  font-family: var(--font-sans-inter);
  font-optical-sizing: auto;
}

body.login-inter-page,
body.pricing-inter-page,
body.faq-inter-page,
body.market-data-inter-page,
body.help-center-inter-page,
body.strategy-library-inter-page,
body.strategy-detail-inter-page,
body.account-settings-inter-page,
body.dashboard-inter-page,
body.result-history-inter-page,
body.single-result-review-inter-page,
body.landing-font-test-page {
  background: #f4f8fd;
}

body.login-inter-page,
body.pricing-inter-page,
body.faq-inter-page,
body.market-data-inter-page,
body.help-center-inter-page,
body.strategy-library-inter-page,
body.strategy-detail-inter-page,
body.landing-font-test-page {
  background: #f7f9fc;
}

body.faq-inter-page {
  background: #f7f9fc;
}

body.dashboard-inter-page .app-shell--workspace,
body.result-history-inter-page .app-shell--workspace,
body.single-result-review-inter-page .app-shell--workspace,
body.account-settings-inter-page .app-shell--workspace {
  background: linear-gradient(180deg, #f5f9fe 0%, #eef4fb 46%, #f7fafe 100%);
}

body.landing-font-test-page .brand-mark-copy strong,
body.landing-inter-page .brand-mark-copy strong,
body.login-inter-page .brand-mark-copy strong,
body.pricing-inter-page .brand-mark-copy strong,
body.faq-inter-page .brand-mark-copy strong,
body.market-data-inter-page .brand-mark-copy strong,
body.help-center-inter-page .brand-mark-copy strong,
body.strategy-library-inter-page .brand-mark-copy strong,
body.strategy-detail-inter-page .brand-mark-copy strong,
body.account-settings-inter-page .brand-mark-copy strong,
body.landing-font-test-page .app-nav--public a,
body.landing-inter-page .app-nav--public a,
body.login-inter-page .app-nav--public a,
body.pricing-inter-page .app-nav--public a,
body.faq-inter-page .app-nav--public a,
body.market-data-inter-page .app-nav--public a,
body.help-center-inter-page .app-nav--public a,
body.support-verification-inter-page .app-nav--public a,
body.strategy-library-inter-page .app-nav--public a,
body.strategy-detail-inter-page .app-nav--public a,
body.landing-font-test-page .site-auth-link,
body.landing-inter-page .site-auth-link,
body.login-inter-page .site-auth-link,
body.pricing-inter-page .site-auth-link,
body.faq-inter-page .site-auth-link,
body.market-data-inter-page .site-auth-link,
body.help-center-inter-page .site-auth-link,
body.support-verification-inter-page .site-auth-link,
body.strategy-library-inter-page .site-auth-link,
body.strategy-detail-inter-page .site-auth-link,
body.dashboard-inter-page .brand-mark-copy strong,
body.account-settings-inter-page .app-nav a,
body.account-settings-inter-page .workspace-sidebar-nav a,
body.account-settings-inter-page .profile-trigger-copy strong,
body.account-settings-inter-page .profile-trigger-copy small,
body.account-settings-inter-page .profile-trigger-caret,
body.account-settings-inter-page .workspace-sidebar-head h2,
body.dashboard-inter-page .app-nav a,
body.dashboard-inter-page .workspace-sidebar-nav a,
body.dashboard-inter-page .profile-trigger-copy strong,
body.dashboard-inter-page .profile-trigger-copy small,
body.dashboard-inter-page .profile-trigger-caret,
body.dashboard-inter-page .workspace-sidebar-head h2,
body.result-history-inter-page .brand-mark-copy strong,
body.result-history-inter-page .app-nav a,
body.result-history-inter-page .workspace-sidebar-nav a,
body.result-history-inter-page .profile-trigger-copy strong,
body.result-history-inter-page .profile-trigger-copy small,
body.result-history-inter-page .profile-trigger-caret,
body.result-history-inter-page .workspace-sidebar-head h2,
body.single-result-review-inter-page .brand-mark-copy strong,
body.single-result-review-inter-page .app-nav a,
body.single-result-review-inter-page .workspace-sidebar-nav a,
body.single-result-review-inter-page .profile-trigger-copy strong,
body.single-result-review-inter-page .profile-trigger-copy small,
body.single-result-review-inter-page .profile-trigger-caret,
body.single-result-review-inter-page .workspace-sidebar-head h2,
body.landing-font-test-page .header-chip,
body.landing-inter-page .header-chip,
body.login-inter-page .header-chip,
body.pricing-inter-page .header-chip,
body.faq-inter-page .header-chip,
body.market-data-inter-page .header-chip,
body.help-center-inter-page .header-chip,
body.support-verification-inter-page .header-chip,
body.strategy-library-inter-page .header-chip,
body.strategy-detail-inter-page .header-chip,
body.single-result-review-inter-page .header-chip {
  font-weight: 500;
}

body.landing-font-test-page .load-button,
body.landing-inter-page .load-button,
body.landing-font-test-page .button-secondary,
body.landing-inter-page .button-secondary,
body.login-inter-page .load-button,
body.login-inter-page .button-secondary,
body.pricing-inter-page .load-button,
body.pricing-inter-page .button-secondary,
body.faq-inter-page .load-button,
body.faq-inter-page .button-secondary,
body.market-data-inter-page .load-button,
body.market-data-inter-page .button-secondary,
body.help-center-inter-page .load-button,
body.help-center-inter-page .button-secondary,
body.support-verification-inter-page .support-verification-primary,
body.support-verification-inter-page .support-verification-secondary,
body.strategy-library-inter-page .load-button,
body.strategy-library-inter-page .button-secondary,
body.strategy-detail-inter-page .load-button,
body.strategy-detail-inter-page .button-secondary,
body.dashboard-inter-page .button-secondary,
body.account-settings-inter-page .button-secondary,
body.result-history-inter-page .button-secondary,
body.single-result-review-inter-page .button-secondary,
body.account-settings-inter-page .account-inline-action {
  font-weight: 560;
}

body.dashboard-inter-page .dashboard-welcome-row h1,
body.dashboard-inter-page .workspace-table-card-head h2,
body.dashboard-inter-page .dashboard-action-card h2 {
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

body.dashboard-inter-page .dashboard-stat-card .metric-card-head {
  align-items: center;
}

body.dashboard-inter-page .workspace-page-copy,
body.dashboard-inter-page .dashboard-stat-card small,
body.dashboard-inter-page .dashboard-action-card p,
body.dashboard-inter-page .dashboard-results-strategy small,
body.dashboard-inter-page .dashboard-results-outcome,
body.dashboard-inter-page .dashboard-saved-item small,
body.dashboard-inter-page .dashboard-mix-ring small,
body.dashboard-inter-page .dashboard-help-link span,
body.dashboard-inter-page .workspace-table-card-head p {
  font-weight: 400;
  line-height: 1.6;
}

body.dashboard-inter-page .workspace-page-copy,
body.dashboard-inter-page .dashboard-action-card p,
body.dashboard-inter-page .dashboard-saved-item small,
body.dashboard-inter-page .dashboard-mix-ring small,
body.dashboard-inter-page .dashboard-help-link span,
body.dashboard-inter-page .workspace-table-card-head p,
body.dashboard-inter-page .dashboard-results-strategy small {
  color: #58697f;
}

body.dashboard-inter-page .dashboard-stat-label,
body.dashboard-inter-page .dashboard-action-kicker,
body.dashboard-inter-page .dashboard-results-row--head,
body.dashboard-inter-page .dashboard-plan-pill .pill,
body.dashboard-inter-page .status-badge,
body.dashboard-inter-page .button-secondary,
body.dashboard-inter-page .inline-link,
body.dashboard-inter-page .dashboard-saved-item strong,
body.dashboard-inter-page .dashboard-help-link strong,
body.dashboard-inter-page .dashboard-mix-label span:last-child {
  font-weight: 500;
}

body.dashboard-inter-page .dashboard-stat-label,
body.dashboard-inter-page .dashboard-action-kicker {
  letter-spacing: 0.1em;
}

body.dashboard-inter-page .dashboard-stat-label {
  font-size: 0.79rem;
  line-height: 1.18;
}

body.dashboard-inter-page .metric-card-value,
body.dashboard-inter-page .dashboard-mix-ring span,
body.dashboard-inter-page .dashboard-mix-stat strong {
  font-weight: 560;
  letter-spacing: -0.03em;
}

body.dashboard-inter-page .dashboard-stat-title,
body.dashboard-inter-page .dashboard-results-strategy strong,
body.dashboard-inter-page .workspace-table-card-head .inline-link,
body.dashboard-inter-page .dashboard-results-table .inline-link {
  font-weight: 500;
  letter-spacing: -0.014em;
}

body.dashboard-inter-page .dashboard-help-link strong,
body.dashboard-inter-page .dashboard-saved-item strong {
  letter-spacing: -0.015em;
}

body.dashboard-inter-page .dashboard-saved-card .workspace-table-card-head h2,
body.dashboard-inter-page .dashboard-mix-card .workspace-table-card-head h2 {
  font-size: 1.24rem;
}

body.account-settings-inter-page .workspace-page-header h1,
body.account-settings-inter-page .workspace-table-card-head h2,
body.account-settings-inter-page .account-identity-row h2 {
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

body.account-settings-inter-page .workspace-page-copy,
body.account-settings-inter-page .account-field small,
body.account-settings-inter-page .account-helper-copy,
body.account-settings-inter-page .account-toggle-row p,
body.account-settings-inter-page .account-info-row span,
body.account-settings-inter-page .account-credits-block small {
  font-weight: 400;
  line-height: 1.62;
}

body.account-settings-inter-page .workspace-page-header .eyebrow,
body.account-settings-inter-page .account-field span,
body.account-settings-inter-page .account-toggle-row strong,
body.account-settings-inter-page .account-info-row strong,
body.account-settings-inter-page .account-info-label span:last-child,
body.account-settings-inter-page .pill {
  font-weight: 500;
}

body.account-settings-inter-page .workspace-page-header .eyebrow {
  letter-spacing: 0.12em;
}

body.account-settings-inter-page .account-field span {
  font-size: 0.83rem;
  color: #40546f;
}

body.account-settings-inter-page .account-field input,
body.account-settings-inter-page .account-field select {
  font-weight: 400;
}

body.account-settings-inter-page .account-toggle-row strong,
body.account-settings-inter-page .account-info-row strong,
body.account-settings-inter-page .account-inline-action {
  letter-spacing: -0.012em;
}

body.account-settings-inter-page .workspace-table-card-head h2 {
  font-size: 1.14rem;
}

body.account-settings-inter-page .account-inline-action {
  background: linear-gradient(180deg, #2f63d6 0%, #1f4faa 100%);
  border-color: rgba(24, 67, 150, 0.34);
  color: #fdfefe;
  box-shadow: 0 14px 26px -18px rgba(31, 79, 170, 0.72);
}

body.account-settings-inter-page .account-inline-action:hover,
body.account-settings-inter-page .account-inline-action:focus-visible {
  background: linear-gradient(180deg, #376dde 0%, #2456b4 100%);
  border-color: rgba(24, 67, 150, 0.38);
  color: #ffffff;
  box-shadow: 0 18px 30px -18px rgba(31, 79, 170, 0.66);
}

body.account-settings-inter-page .account-plan-badge {
  background: #dcfce7;
  border: 1px solid rgba(22, 101, 52, 0.12);
  color: #166534;
  font-size: 0.72rem;
  line-height: 1.1;
  padding: 4px 9px;
}

body.result-history-inter-page .workspace-page-header h1,
body.result-history-inter-page .workspace-table-card-head h2 {
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

body.result-history-inter-page .workspace-page-copy,
body.result-history-inter-page .result-stat-card small,
body.result-history-inter-page .workspace-table-card-head p,
body.result-history-inter-page .result-history-strategy small,
body.result-history-inter-page .result-history-outcome,
body.result-history-inter-page .result-history-mark small {
  font-weight: 400;
  line-height: 1.58;
}

body.result-history-inter-page .workspace-page-copy,
body.result-history-inter-page .workspace-table-card-head p,
body.result-history-inter-page .result-history-strategy small,
body.result-history-inter-page .result-history-mark small {
  color: #58697f;
}

body.result-history-inter-page .result-stat-label,
body.result-history-inter-page .result-history-row--head,
body.result-history-inter-page .result-history-sort span,
body.result-history-inter-page .result-filter-chip,
body.result-history-inter-page .status-badge,
body.result-history-inter-page .inline-link,
body.result-history-inter-page .pagination-page {
  font-weight: 500;
}

body.result-history-inter-page .result-stat-label,
body.result-history-inter-page .result-history-row--head,
body.result-history-inter-page .result-history-sort span {
  letter-spacing: 0.05em;
}

body.result-history-inter-page .result-stat-label {
  font-size: 0.79rem;
  line-height: 1.18;
}

body.result-history-inter-page .metric-card-value {
  font-weight: 560;
  letter-spacing: -0.03em;
}

body.result-history-inter-page .result-stat-card {
  position: relative;
  overflow: hidden;
}

body.result-history-inter-page .result-stat-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: #2563eb;
}

body.result-history-inter-page .result-stat-card--completed::after {
  background: #16a34a;
}

body.result-history-inter-page .result-stat-card--no-trades::after {
  background: #ea8a18;
}

body.result-history-inter-page .result-stat-card--danger::after {
  background: #ef4444;
}

body.result-history-inter-page .result-stat-card--total .result-stat-label,
body.result-history-inter-page .result-stat-card--total .metric-card-icon {
  color: #2563eb;
}

body.result-history-inter-page .result-stat-card--completed .result-stat-label,
body.result-history-inter-page .result-stat-card--completed .metric-card-icon {
  color: #159947;
}

body.result-history-inter-page .result-stat-card--no-trades .result-stat-label,
body.result-history-inter-page .result-stat-card--no-trades .metric-card-icon {
  color: #d97706;
}

body.result-history-inter-page .result-stat-card--danger .result-stat-label,
body.result-history-inter-page .result-stat-card--danger .metric-card-icon {
  color: #dc2626;
}

body.result-history-inter-page .result-history-sort,
body.result-history-inter-page .result-history-sort span,
body.result-history-inter-page .result-history-sort select {
  color: #40546f;
  font-size: 0.9rem;
  font-weight: 500;
}

body.result-history-inter-page .result-history-row:not(.result-history-row--head),
body.result-history-inter-page .result-history-row:not(.result-history-row--head) .result-history-dataset {
  font-weight: 400;
}

body.result-history-inter-page .page-shell--result-history,
body.result-history-inter-page .workspace-table-card {
  min-width: 0;
}

body.result-history-inter-page .workspace-page-header {
  margin-bottom: 0;
}

body.result-history-inter-page .workspace-page-copy {
  max-width: 60ch;
  margin-top: 10px;
}

body.result-history-inter-page .result-stat-card {
  min-height: 136px;
  padding: 18px;
  gap: 8px;
  align-content: start;
}

body.result-history-inter-page .metric-card-head {
  margin-bottom: 0;
}

body.result-history-inter-page .workspace-table-card {
  padding: 22px 20px 18px;
}

body.result-history-inter-page .workspace-table-card-head p {
  max-width: 56ch;
}

body.result-history-inter-page .result-history-strategy strong,
body.result-history-inter-page .workspace-table-card-head .inline-link,
body.result-history-inter-page .result-history-action .inline-link {
  font-weight: 500;
  letter-spacing: -0.014em;
}

body.result-history-inter-page .result-history-status,
body.result-history-inter-page .result-history-outcome,
body.result-history-inter-page .result-history-mark,
body.result-history-inter-page .pagination-strip {
  line-height: 1.4;
}

body.single-result-review-inter-page .header-title-stack h2,
body.single-result-review-inter-page .review-visual-title,
body.single-result-review-inter-page .review-config-card h3,
body.single-result-review-inter-page .section-card h3 {
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.03em;
}

body.single-result-review-inter-page .review-breadcrumb,
body.single-result-review-inter-page .header-context-label,
body.single-result-review-inter-page .summary-card-unit,
body.single-result-review-inter-page .section-copy,
body.single-result-review-inter-page .details-grid dt {
  font-weight: 400;
  line-height: 1.56;
}

body.single-result-review-inter-page .review-breadcrumb,
body.single-result-review-inter-page .header-context-label,
body.single-result-review-inter-page .summary-card-unit,
body.single-result-review-inter-page .section-copy,
body.single-result-review-inter-page .details-grid dt {
  color: #58697f;
}

body.single-result-review-inter-page .status-badge,
body.single-result-review-inter-page .pill,
body.single-result-review-inter-page .review-chart-tab,
body.single-result-review-inter-page .summary-card-label,
body.single-result-review-inter-page .review-trade-row--head,
body.single-result-review-inter-page .details-grid dd,
body.single-result-review-inter-page .inline-link,
body.single-result-review-inter-page .review-download-button,
body.single-result-review-inter-page .review-secondary-action {
  font-weight: 500;
}

body.single-result-review-inter-page .summary-card-label,
body.single-result-review-inter-page .review-trade-row--head,
body.single-result-review-inter-page .header-context-label {
  letter-spacing: 0.06em;
}

body.single-result-review-inter-page .summary-card-label {
  font-size: 0.79rem;
  letter-spacing: 0.05em;
}

body.single-result-review-inter-page .summary-card-value,
body.single-result-review-inter-page .review-trade-pnl {
  font-weight: 560;
  letter-spacing: -0.03em;
}

body.single-result-review-inter-page .review-trade-row:not(.review-trade-row--head) {
  font-weight: 400;
}

body.single-result-review-inter-page .header-context-value,
body.single-result-review-inter-page .workspace-table-card-head .inline-link {
  font-weight: 500;
  letter-spacing: -0.014em;
}

body.strategy-library-inter-page .library-title-block h1,
body.strategy-library-inter-page .library-panel-head h2,
body.strategy-library-inter-page .library-empty-state h3,
body.strategy-library-inter-page .landing-section-header h2,
body.strategy-library-inter-page .library-guidance-card h3 {
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

body.strategy-library-inter-page .library-title-copy,
body.strategy-library-inter-page .library-folder-copy small,
body.strategy-library-inter-page .library-strategy-card-body p,
body.strategy-library-inter-page .library-empty-state p,
body.strategy-library-inter-page .library-guidance-card p,
body.strategy-library-inter-page .app-footer-copy p {
  font-weight: 400;
  line-height: 1.68;
}

body.strategy-library-inter-page .library-rail-home,
body.strategy-library-inter-page .library-rail-links a,
body.strategy-library-inter-page .library-saved-button,
body.strategy-library-inter-page .library-sort select,
body.strategy-library-inter-page .library-strategy-card .button-secondary,
body.strategy-library-inter-page .library-rail-section h3,
body.strategy-library-inter-page .library-sort span,
body.strategy-library-inter-page .library-folder-copy strong,
body.strategy-library-inter-page .library-strategy-card-body h3,
body.strategy-library-inter-page .page-shell--strategy-library .pill {
  font-weight: 500;
}

body.strategy-library-inter-page .library-folder-copy strong {
  font-size: 1.38rem;
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 600;
  white-space: nowrap;
}

body.strategy-library-inter-page .library-folder-copy small {
  font-size: 0.84rem;
}

body.strategy-library-inter-page .library-folder-count {
  font-weight: 500;
}

body.strategy-library-inter-page .library-strategy-card-body h3 {
  font-weight: 620;
  line-height: 1.16;
  letter-spacing: -0.022em;
}

body.strategy-library-inter-page .page-shell--strategy-library .pill {
  font-size: 0.79rem;
}

body.strategy-library-inter-page .library-guidance-card h3 {
  font-size: 1.04rem;
  font-weight: 640;
  line-height: 1.22;
}

body.strategy-detail-inter-page .strategy-detail-title-block h1,
body.strategy-detail-inter-page .strategy-rules-section h2,
body.strategy-detail-inter-page .strategy-config-section h2,
body.strategy-detail-inter-page .strategy-recent-tests-head h2,
body.strategy-detail-inter-page .strategy-config-head h2,
body.strategy-detail-inter-page .strategy-config-intro-title,
body.strategy-detail-inter-page .strategy-visual-head h3 {
  font-weight: 500;
  letter-spacing: -0.03em;
}

body.strategy-detail-inter-page .strategy-browser-back,
body.strategy-detail-inter-page .strategy-browser-inline-link,
body.strategy-detail-inter-page .strategy-browser-link,
body.strategy-detail-inter-page .strategy-test-tab,
body.strategy-detail-inter-page .strategy-config-back,
body.strategy-detail-inter-page .strategy-config-continue,
body.strategy-detail-inter-page .strategy-config-learn-more,
body.strategy-detail-inter-page .strategy-dataset-trigger,
body.strategy-detail-inter-page .strategy-run-button,
body.strategy-detail-inter-page .inline-link,
body.strategy-detail-inter-page .status-badge,
body.strategy-detail-inter-page .pill,
body.strategy-detail-inter-page .strategy-field span,
body.strategy-detail-inter-page .strategy-step-item h3,
body.strategy-detail-inter-page .strategy-logic-card h3,
body.strategy-detail-inter-page .strategy-dataset-selected strong,
body.strategy-detail-inter-page .strategy-modal-selected-value strong,
body.strategy-detail-inter-page .strategy-recent-dataset-copy strong,
body.strategy-detail-inter-page .strategy-dataset-modal-head h3,
body.strategy-detail-inter-page .strategy-dataset-modal-column h4,
body.strategy-detail-inter-page .strategy-upload-dropzone strong,
body.strategy-detail-inter-page .strategy-browser-section h3,
body.strategy-detail-inter-page .strategy-recent-tests-row--head,
body.strategy-detail-inter-page .strategy-costs-accordion summary strong {
  font-weight: 500;
}

body.strategy-detail-inter-page .strategy-step-item h3,
body.strategy-detail-inter-page .strategy-logic-card h3,
body.strategy-detail-inter-page .strategy-dataset-selected strong,
body.strategy-detail-inter-page .strategy-modal-selected-value strong,
body.strategy-detail-inter-page .strategy-recent-dataset-copy strong,
body.strategy-detail-inter-page .strategy-dataset-modal-head h3,
body.strategy-detail-inter-page .strategy-dataset-modal-column h4,
body.strategy-detail-inter-page .strategy-upload-dropzone strong {
  letter-spacing: -0.018em;
}

body.strategy-detail-inter-page .strategy-rules-section p,
body.strategy-detail-inter-page .strategy-step-item p,
body.strategy-detail-inter-page .strategy-logic-card p,
body.strategy-detail-inter-page .strategy-config-intro-copy,
body.strategy-detail-inter-page .strategy-config-section-head p,
body.strategy-detail-inter-page .strategy-dataset-helper,
body.strategy-detail-inter-page .strategy-run-feedback,
body.strategy-detail-inter-page .strategy-costs-accordion summary small,
body.strategy-detail-inter-page .strategy-recent-tests-row:not(.strategy-recent-tests-row--head),
body.strategy-detail-inter-page .strategy-modal-selected-label,
body.strategy-detail-inter-page .strategy-upload-dropzone p,
body.strategy-detail-inter-page .strategy-dataset-modal-head p {
  font-weight: 400;
  line-height: 1.64;
}

body.strategy-detail-inter-page .strategy-rules-section p {
  color: #223247;
}

body.strategy-detail-inter-page .strategy-step-item p,
body.strategy-detail-inter-page .strategy-logic-card p,
body.strategy-detail-inter-page .strategy-config-intro-copy,
body.strategy-detail-inter-page .strategy-config-section-head p,
body.strategy-detail-inter-page .strategy-dataset-helper,
body.strategy-detail-inter-page .strategy-costs-accordion summary small,
body.strategy-detail-inter-page .strategy-dataset-modal-head p {
  color: #55677e;
}

body.strategy-detail-inter-page .strategy-config-head h2 {
  color: #0f172a;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

body.strategy-detail-inter-page .strategy-config-section-head h2,
body.strategy-detail-inter-page .strategy-costs-accordion summary strong {
  color: #163050;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.2;
}

body.strategy-detail-inter-page .strategy-config-section-head h2 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

body.strategy-detail-inter-page .strategy-config-section-head p {
  margin-top: 8px;
  color: #55677e;
  font-size: 0.875rem;
  line-height: 1.48;
}

body.strategy-detail-inter-page .strategy-field span {
  color: #5b6b7f;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.25;
}

body.strategy-detail-inter-page .strategy-field input,
body.strategy-detail-inter-page .strategy-field select {
  color: #12263f;
  font-size: 1rem;
  font-weight: 500;
}

body.strategy-detail-inter-page .strategy-dataset-selected strong,
body.strategy-detail-inter-page .strategy-dataset-summary-copy,
body.strategy-detail-inter-page .strategy-dataset-summary-meta,
body.strategy-detail-inter-page .strategy-dataset-summary-feedback {
  font-weight: 400;
}

body.pricing-inter-page .pricing-hero-copy h1,
body.faq-inter-page .faq-hero-copy h1,
body.market-data-inter-page .market-data-hero-copy h1 {
  font-weight: 470;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

body.pricing-inter-page .pricing-hero-copy p:last-child,
body.faq-inter-page .faq-hero-copy p:last-child,
body.market-data-inter-page .market-data-hero-copy p,
body.market-data-inter-page .landing-section-header p,
body.market-data-inter-page .market-data-source-card p,
body.market-data-inter-page .market-data-step-card p,
body.market-data-inter-page .market-data-helper-line,
body.market-data-inter-page .market-data-format-cta p,
body.market-data-inter-page .market-data-final-cta-card p,
body.pricing-inter-page .pricing-card-head p,
body.pricing-inter-page .pricing-card-meta,
body.pricing-inter-page .pricing-feature-list li,
body.pricing-inter-page .pricing-card-note,
body.pricing-inter-page .pricing-credit-note p,
body.pricing-inter-page .pricing-request-modal-head p,
body.faq-inter-page .faq-item p,
body.faq-inter-page .faq-support-card p {
  font-weight: 400;
  line-height: 1.72;
}

body.market-data-inter-page .landing-section-header h2,
body.market-data-inter-page .market-data-format-cta h2,
body.market-data-inter-page .market-data-example-head h3,
body.market-data-inter-page .market-data-step-copy h3,
body.market-data-inter-page .market-data-final-cta-card h2,
body.market-data-inter-page .market-data-source-card h3,
body.pricing-inter-page .pricing-card-head h2,
body.pricing-inter-page .pricing-request-modal-head h2,
body.faq-inter-page .faq-group-head h2,
body.faq-inter-page .faq-support-card h2 {
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.03em;
}

body.pricing-inter-page .pricing-card-price,
body.pricing-inter-page .pricing-price-amount {
  font-weight: 500;
  letter-spacing: -0.035em;
}

body.pricing-inter-page .pricing-offer-text,
body.pricing-inter-page .pricing-currency-button,
body.pricing-inter-page .pricing-plan-badge,
body.market-data-inter-page .market-data-example-valid,
body.faq-inter-page .faq-topic-nav a {
  font-weight: 500;
}

body.faq-inter-page .faq-item summary {
  font-weight: 500;
  letter-spacing: -0.012em;
}

body.help-center-inter-page .help-center-hero-copy h1,
body.help-center-inter-page .landing-section-header h2,
body.help-center-inter-page .help-center-support-card h2,
body.help-center-inter-page .help-center-kb-category-title,
body.help-center-inter-page .help-center-kb-article-heading h3,
body.help-center-inter-page .help-center-kb-article-body h3 {
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

body.help-center-inter-page .help-center-hero-copy p:last-child,
body.help-center-inter-page .help-center-topic-card-copy span,
body.help-center-inter-page .help-center-kb-article-body p,
body.help-center-inter-page .help-center-support-card p,
body.help-center-inter-page .help-center-search-result-copy small,
body.help-center-inter-page .help-center-kb-row-copy small,
body.help-center-inter-page .help-center-kb-feedback-form p,
body.help-center-inter-page .help-center-kb-feedback-thanks {
  font-weight: 400;
  line-height: 1.72;
}

body.help-center-inter-page .help-center-search-shell input,
body.help-center-inter-page .help-center-search-shell input::placeholder,
body.help-center-inter-page .help-center-kb-crumb-link,
body.help-center-inter-page .help-center-kb-back,
body.help-center-inter-page .help-center-topic-count,
body.help-center-inter-page .help-center-search-result-type,
body.help-center-inter-page .help-center-kb-feedback span,
body.help-center-inter-page .help-center-kb-feedback-form label,
body.help-center-inter-page .help-center-popular-row span:first-child {
  font-weight: 500;
}

body.help-center-inter-page .help-center-topic-card-copy strong,
body.help-center-inter-page .help-center-kb-row-copy strong,
body.help-center-inter-page .help-center-search-result-copy strong {
  font-weight: 500;
  letter-spacing: -0.015em;
}

body.help-center-inter-page .help-center-topic-card-copy {
  width: 100%;
  max-width: 18.5rem;
  margin-inline: auto;
  justify-items: center;
  text-align: center;
}

body.help-center-inter-page .help-center-topic-card-copy strong {
  font-size: 1.24rem;
  line-height: 1.2;
  font-weight: 600;
}

body.help-center-inter-page .help-center-topic-card-copy span {
  font-size: 0.97rem;
  line-height: 1.62;
  max-width: 17.5rem;
  margin-inline: auto;
  text-align: center;
}

body.landing-font-test-page .landing-aura-hero-copy h1,
body.landing-inter-page .landing-aura-hero-copy h1 {
  font-weight: 460;
  line-height: 0.99;
  letter-spacing: -0.058em;
}

body.landing-font-test-page .landing-aura-headline-accent,
body.landing-inter-page .landing-aura-headline-accent {
  font-weight: 480;
}

body.landing-font-test-page .page-shell--landing .hero-copy,
body.landing-inter-page .page-shell--landing .hero-copy,
body.landing-font-test-page .landing-aura-feature-copy p,
body.landing-inter-page .landing-aura-feature-copy p,
body.landing-font-test-page .landing-aura-walkforward-copy p,
body.landing-inter-page .landing-aura-walkforward-copy p,
body.landing-font-test-page .landing-section-header--workflow > p:not(.landing-section-kicker),
body.landing-inter-page .landing-section-header--workflow > p:not(.landing-section-kicker) {
  font-weight: 400;
  line-height: 1.76;
}

body.landing-font-test-page .landing-aura-feature-copy h2,
body.landing-inter-page .landing-aura-feature-copy h2,
body.landing-font-test-page .landing-aura-walkforward-copy h2,
body.landing-inter-page .landing-aura-walkforward-copy h2,
body.landing-font-test-page .landing-section-header--workflow h2,
body.landing-inter-page .landing-section-header--workflow h2 {
  font-weight: 470;
  line-height: 1.04;
  letter-spacing: -0.038em;
}

body.landing-font-test-page .landing-aura-get-started-title,
body.landing-inter-page .landing-aura-get-started-title,
body.landing-font-test-page .landing-final-cta-card--aura h2,
body.landing-inter-page .landing-final-cta-card--aura h2 {
  font-weight: 500;
  line-height: 1.03;
  letter-spacing: -0.04em;
}

body.landing-font-test-page .landing-aura-feature-copy h2,
body.landing-inter-page .landing-aura-feature-copy h2,
body.landing-font-test-page .landing-aura-walkforward-copy h2,
body.landing-inter-page .landing-aura-walkforward-copy h2 {
  font-size: clamp(2.15rem, 3.4vw, 3.25rem);
  font-weight: 470;
  line-height: 1.04;
  letter-spacing: -0.038em;
}

body.landing-font-test-page .landing-aura-feature--backtest .landing-aura-backtest-title,
body.landing-inter-page .landing-aura-feature--backtest .landing-aura-backtest-title {
  display: block;
  max-width: 11ch;
  font-size: clamp(2.58rem, 4.08vw, 3.72rem);
  font-weight: 470;
  line-height: 1.02;
  letter-spacing: -0.042em;
}

body.landing-font-test-page .landing-aura-feature--backtest .landing-aura-feature-copy > p:not(.landing-section-kicker),
body.landing-inter-page .landing-aura-feature--backtest .landing-aura-feature-copy > p:not(.landing-section-kicker),
body.landing-font-test-page .landing-aura-feature--sweep .landing-aura-feature-copy > p:not(.landing-section-kicker),
body.landing-inter-page .landing-aura-feature--sweep .landing-aura-feature-copy > p:not(.landing-section-kicker),
body.landing-font-test-page .landing-aura-walkforward-copy > p:not(.landing-section-kicker),
body.landing-inter-page .landing-aura-walkforward-copy > p:not(.landing-section-kicker),
body.landing-font-test-page .landing-feature-lower-copy > .landing-feature-description,
body.landing-inter-page .landing-feature-lower-copy > .landing-feature-description {
  max-width: 46ch;
  margin-top: 20px;
  font-size: 1.12rem;
  font-weight: 400;
  line-height: 1.6;
  color: #5d6d83;
}

body.landing-font-test-page .landing-aura-feature .landing-section-kicker,
body.landing-inter-page .landing-aura-feature .landing-section-kicker,
body.landing-font-test-page .landing-aura-walkforward .landing-section-kicker,
body.landing-inter-page .landing-aura-walkforward .landing-section-kicker {
  color: #2f63d6;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.12em;
}

body.landing-font-test-page .landing-aura-pill-row--backtest .landing-aura-backtest-chip,
body.landing-inter-page .landing-aura-pill-row--backtest .landing-aura-backtest-chip,
body.landing-font-test-page .landing-aura-pill-row--dark span,
body.landing-inter-page .landing-aura-pill-row--dark span {
  font-size: 0.88rem;
  font-weight: 450;
  line-height: 1.25;
  color: #66758a;
}

body.landing-font-test-page .landing-aura-pill-row--dark,
body.landing-inter-page .landing-aura-pill-row--dark {
  gap: 8px;
}

body.landing-font-test-page .landing-aura-pill-row--dark span,
body.landing-inter-page .landing-aura-pill-row--dark span {
  gap: 5px;
  padding: 0 11px;
  font-size: 0.8rem;
  white-space: nowrap;
}

body.landing-font-test-page .landing-aura-point-grid--sweep strong,
body.landing-inter-page .landing-aura-point-grid--sweep strong {
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

body.landing-font-test-page .landing-aura-point-grid--sweep p,
body.landing-inter-page .landing-aura-point-grid--sweep p {
  font-size: 0.84rem;
  font-weight: 400;
  line-height: 1.5;
  color: #6f7c90;
}

body.landing-font-test-page .page-shell--landing .landing-workflow-card h3,
body.landing-inter-page .page-shell--landing .landing-workflow-card h3 {
  font-size: 1.28rem;
  line-height: 1.15;
  font-weight: 500;
}

@media (max-width: 980px) {
  body.landing-font-test-page .landing-aura-pill-row--dark span,
  body.landing-inter-page .landing-aura-pill-row--dark span {
    white-space: normal;
  }
}

body.public-page--landing .app-shell--public {
  background: transparent;
}

body.landing-visual-test-page {
  background:
    linear-gradient(180deg, #f4f9ff 0%, #eaf3fe 30%, #e2eefc 62%, #edf5ff 100%);
  background-attachment: fixed;
}

body.landing-visual-test-page .app-shell--public {
  position: relative;
  z-index: 1;
  background: transparent;
}

body.landing-visual-test-page .app-shell--public::before {
  content: none;
}

.landing-visual-test-aura {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  opacity: 0.78;
  isolation: isolate;
}

.landing-visual-test-aura::after {
  content: none;
}

.landing-visual-test-aura-stage {
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 0;
  filter: saturate(1.08) brightness(0.95);
  transform: none;
  transform-origin: center;
}

.landing-visual-test-aura-stage > div[data-us-project] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: transparent !important;
}

.landing-visual-test-aura-stage > div[data-us-project] * {
  background-color: transparent !important;
}

.landing-visual-test-aura-stage canvas,
.landing-visual-test-aura-stage iframe {
  background: transparent !important;
  pointer-events: none !important;
}

body.landing-visual-test-page .landing-aura-hero-visual::before,
body.landing-visual-test-page .landing-aura-hero-visual::after,
body.landing-visual-test-page .landing-aura-workflow-shell::before,
body.landing-visual-test-page .landing-aura-workflow-shell::after,
body.landing-visual-test-page .landing-final-cta-card--aura::before,
body.landing-visual-test-page .landing-final-cta-card--aura::after {
  content: none;
}

body.public-page--landing .landing-aura-feature-media--backtest {
  box-shadow: 0 12px 28px -18px rgba(100, 116, 139, 0.16);
}

body.public-page--landing .app-header {
  border-bottom-color: transparent;
}

body.public-page--landing .app-header--public {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(246, 250, 255, 0.48) 100%);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 10px 26px rgba(18, 32, 61, 0.025),
    inset 0 1px 0 rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(18px);
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: var(--header-height);
  padding: 10px max(20px, calc((100% - var(--page-max-width)) / 2 + 16px));
  border-bottom: 1px solid rgba(13, 91, 215, 0.1);
  background: #ffffff;
}

.app-header--public {
  border-bottom: 1px solid rgba(13, 91, 215, 0.08);
  box-shadow: 0 8px 18px rgba(18, 32, 61, 0.03);
}

.app-header--workspace {
  box-shadow: 0 10px 22px rgba(18, 32, 61, 0.05);
}

.app-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex: 1;
  flex-wrap: wrap;
}

.app-nav a {
  position: relative;
  color: #334155;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.app-nav a[aria-current="page"] {
  color: #0f172a;
  font-weight: 700;
}

.app-nav a:hover {
  color: #163f78;
}

body.workspace-page .app-nav a[aria-current="page"] {
  color: #0d5bd7;
  font-weight: 600;
}

body.workspace-page .app-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: -10px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0d5bd7 0%, #4c7fd0 100%);
}

body.public-page .app-nav--public a[aria-current="page"] {
  color: #0d5bd7;
  font-weight: 600;
}

body.public-page .app-nav--public a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: -10px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0d5bd7 0%, #4c7fd0 100%);
}

.app-header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.app-nav--public {
  gap: 18px;
}

.header-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(13, 91, 215, 0.14);
  background: rgba(237, 243, 255, 0.96);
  color: var(--accent);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}

.header-chip:hover {
  background: #dfeafb;
}

.header-chip:focus-visible {
  outline: 2px solid rgba(13, 91, 215, 0.5);
  outline-offset: 3px;
}

.header-chip--solid {
  background: #16284a;
  border-color: #16284a;
  color: #f5f8ff;
}

.header-chip--solid:hover {
  background: #10386f;
}

.profile-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 230px;
  max-width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 5px 10px;
  border: 1px solid rgba(13, 91, 215, 0.12);
  border-radius: 14px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  box-shadow: 0 8px 18px rgba(18, 32, 61, 0.04);
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.app-header-actions {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  position: relative;
}

.app-header-actions > .workspace-profile-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  flex: none;
}

.profile-trigger:hover,
.profile-trigger[aria-expanded="true"] {
  border-color: rgba(13, 91, 215, 0.3);
  background: #f8fbff;
}

.profile-trigger:focus-visible {
  outline: 2px solid rgba(13, 91, 215, 0.5);
  outline-offset: 3px;
}

.profile-trigger-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #16284a 0%, #0d5bd7 100%);
  color: #f5f8ff;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.profile-trigger-copy {
  display: grid;
  min-width: 0;
  flex: 1 1 auto;
  gap: 1px;
  text-align: left;
}

.profile-trigger-copy strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  font-weight: 500;
  font-size: 0.88rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-trigger-copy small {
  color: var(--muted);
  font-size: 0.72rem;
}

.profile-trigger-caret {
  color: var(--muted);
  font-size: 0.72rem;
  transition: transform 0.18s ease;
}

.profile-trigger[aria-expanded="true"] .profile-trigger-caret {
  transform: rotate(180deg);
}

.workspace-profile-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 80;
  display: grid;
  width: min(230px, calc(100vw - 24px));
  padding: 6px;
  border: 1px solid rgba(13, 91, 215, 0.14);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(18, 32, 61, 0.16);
}

.workspace-profile-menu[hidden] {
  display: none;
}

.workspace-profile-menu-identity {
  display: grid;
  gap: 2px;
  padding: 9px 10px 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.workspace-profile-menu-identity strong {
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.workspace-profile-menu-identity small {
  color: var(--muted);
  font-size: 0.74rem;
  overflow-wrap: anywhere;
}

body.workspace-page .mobile-shell-menu-links a[href="./account-settings.html"],
body.strategy-detail-inter-page .mobile-shell-menu-links a[href="./account-settings.html"],
body.public-page .public-mobile-menu-actions a[href="./account-settings.html"] {
  min-width: 0;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.workspace-profile-menu-item {
  display: grid;
  gap: 2px;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.84rem;
  line-height: 1.25;
  text-align: left;
  text-decoration: none;
}

.workspace-profile-menu-item:hover,
.workspace-profile-menu-item:focus-visible {
  background: #edf5ff;
  color: #0d5bd7;
  outline: none;
}

.workspace-profile-menu-item--disabled {
  margin-top: 4px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 0 0 8px 8px;
  color: #7c889a;
  cursor: not-allowed;
}

.workspace-profile-menu-item--disabled:hover,
.workspace-profile-menu-item--disabled:focus-visible {
  background: transparent;
  color: #7c889a;
}

.workspace-profile-menu-item small {
  color: #8a96a8;
  font-size: 0.7rem;
}

.brand-mark-copy--public small {
  display: none;
}

.brand-mark-badge--public {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 0.82rem;
}

.public-auth-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  position: relative;
}

.public-auth-links.is-authenticated {
  gap: 18px;
  flex-wrap: nowrap;
}

.public-auth-links .header-chip--solid {
  gap: 8px;
  background: #2f63d6;
  border-color: #2f63d6;
  color: #fdfefe;
  box-shadow: 0 8px 18px -14px rgba(47, 99, 214, 0.42);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.public-auth-links .header-chip--solid::after {
  content: "";
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  background: currentColor;
  mask-image: url("./assets/icons/lucide/arrow-left.svg");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-image: url("./assets/icons/lucide/arrow-left.svg");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  transform: scaleX(-1);
  transition: transform 180ms ease;
}

.public-auth-links .header-chip--solid:hover,
.public-auth-links .header-chip--solid:focus-visible {
  background: #2456c4;
  border-color: #2456c4;
  box-shadow: 0 12px 24px -16px rgba(36, 86, 196, 0.48);
}

.public-auth-links .header-chip--solid:hover::after,
.public-auth-links .header-chip--solid:focus-visible::after {
  transform: translateX(2px) scaleX(-1);
}

.site-auth-link {
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
}

.site-auth-link:hover {
  color: var(--accent);
}

.workspace-shell {
  width: min(var(--page-max-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 32px;
  display: grid;
  grid-template-columns: var(--workspace-sidebar-width) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.workspace-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-self: start;
  height: calc(100vh - var(--header-height) - 40px);
  max-height: calc(100vh - var(--header-height) - 40px);
  min-height: max(560px, calc(100vh - var(--header-height) - 52px));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px 16px;
  border: 1px solid rgba(13, 91, 215, 0.12);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 251, 255, 0.94) 100%);
  box-shadow: 0 18px 36px rgba(18, 32, 61, 0.08);
}

.workspace-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 4px 14px;
  text-align: center;
  border-bottom: 1px solid rgba(13, 91, 215, 0.08);
}

.workspace-sidebar-head h2 {
  margin: 0;
  font-size: 1.12rem;
}

.workspace-sidebar-nav {
  display: grid;
  gap: 6px;
}

.workspace-sidebar-nav--secondary {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(13, 91, 215, 0.08);
}

.workspace-sidebar-nav a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 14px;
  border: 1px solid transparent;
  color: var(--text);
  text-decoration: none;
  background: transparent;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.workspace-sidebar-nav a[aria-current="page"] {
  background: linear-gradient(180deg, #edf3ff 0%, #f5f9ff 100%);
  border-color: rgba(13, 91, 215, 0.14);
  color: var(--accent);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.workspace-sidebar-nav a:hover {
  background: rgba(237, 243, 255, 0.8);
}

.workspace-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: #edf3ff;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}

.workspace-nav-icon::before {
  content: "";
  width: 14px;
  height: 14px;
  background-color: currentColor;
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
}

.workspace-nav-icon svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.workspace-nav-icon--dashboard::before {
  -webkit-mask-image: url("./assets/icons/lucide/layout-dashboard.svg");
  mask-image: url("./assets/icons/lucide/layout-dashboard.svg");
}

.workspace-nav-icon--strategies::before {
  -webkit-mask-image: url("./assets/icons/lucide/folder.svg");
  mask-image: url("./assets/icons/lucide/folder.svg");
}

.workspace-nav-icon--result-history::before {
  -webkit-mask-image: url("./assets/icons/lucide/file-box.svg");
  mask-image: url("./assets/icons/lucide/file-box.svg");
}

.workspace-nav-icon--help-center::before {
  -webkit-mask-image: url("./assets/icons/lucide/help-center.svg");
  mask-image: url("./assets/icons/lucide/help-center.svg");
}

.workspace-nav-icon--account::before {
  -webkit-mask-image: url("./assets/icons/lucide/user.svg");
  mask-image: url("./assets/icons/lucide/user.svg");
}

.workspace-sidebar-nav a[aria-current="page"] .workspace-nav-icon {
  background: #ffffff;
  color: #16284a;
}

.workspace-nav-label {
  min-width: 0;
}

.workspace-content {
  width: 100%;
  margin: 0;
  padding: 4px 0 0;
}

.workspace-sidebar--shell {
  gap: 14px;
  min-height: 0;
  padding: 10px 18px 10px 0;
  border: 0;
  border-right: 1px solid rgba(13, 91, 215, 0.1);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.workspace-sidebar--shell .workspace-sidebar-head {
  justify-content: flex-start;
  padding: 6px 18px 14px 0;
  text-align: left;
  border-bottom: 1px solid rgba(13, 91, 215, 0.08);
}

.workspace-sidebar--shell .workspace-sidebar-head h2 {
  font-size: 1.05rem;
}

.workspace-sidebar--shell .workspace-sidebar-nav {
  padding-right: 14px;
}

.workspace-sidebar--shell .workspace-sidebar-nav a {
  position: relative;
}

.workspace-sidebar--shell .workspace-sidebar-nav--secondary {
  margin-top: 10px;
  padding-top: 14px;
}

.workspace-sidebar--shell .workspace-sidebar-nav a[aria-current="page"] {
  background: linear-gradient(180deg, #ebf3ff 0%, #f4f8ff 100%);
  border-color: rgba(13, 91, 215, 0.14);
  box-shadow:
    inset 3px 0 0 #0d5bd7,
    inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.workspace-sidebar--shell .workspace-sidebar-nav a {
  min-height: 38px;
  padding: 0 10px 0 8px;
  border-radius: 12px;
}

.workspace-sidebar--shell .workspace-nav-icon {
  width: 22px;
  height: 22px;
  border-radius: 7px;
}

.workspace-sidebar--shell .workspace-nav-icon::before {
  width: 13px;
  height: 13px;
}

.workspace-sidebar--shell .workspace-nav-icon svg {
  width: 13px;
  height: 13px;
}

.workspace-page-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.workspace-page-header h1 {
  margin: 6px 0 0;
  font-size: clamp(2.1rem, 4vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

.workspace-page-copy {
  max-width: 64ch;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.page-shell--result-history {
  display: grid;
  gap: 20px;
}

.page-shell--dashboard {
  display: grid;
  gap: 22px;
}

.dashboard-welcome-row {
  display: flex;
  justify-content: flex-start;
  gap: 18px 40px;
  align-items: center;
  flex-wrap: wrap;
  padding-bottom: 2px;
}

.dashboard-welcome-row h1 {
  margin: 6px 0 0;
  font-size: clamp(2.1rem, 4vw, 2.85rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

.dashboard-plan-pill {
  display: inline-flex;
  gap: 0;
  align-items: center;
  flex-wrap: wrap;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
  margin-left: 2px;
}

.dashboard-plan-tier {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  padding: 8px 11px;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background:
    linear-gradient(135deg, #ffffff 0%, #f8fafc 10%, #eff6ff 45%, #dbeafe 100%);
  color: #0f2f68;
  box-shadow:
    0 8px 18px rgba(18, 32, 61, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.dashboard-plan-tier-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: linear-gradient(145deg, #0f2f68 0%, #1554c0 100%);
  box-shadow:
    0 4px 10px rgba(13, 91, 215, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.dashboard-plan-tier-icon img {
  width: 14px;
  height: 14px;
  display: block;
  filter: brightness(0) saturate(100%) invert(83%) sepia(75%) saturate(1232%) hue-rotate(346deg) brightness(101%) contrast(97%);
}

.dashboard-plan-tier--basic .dashboard-plan-tier-icon img,
body.dashboard-empty-inter-page .dashboard-plan-tier-icon--basic img {
  filter: brightness(0) saturate(100%) invert(100%) brightness(106%);
}

.dashboard-top-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-stat-card,
.dashboard-action-card,
.result-stat-card,
.workspace-table-card,
.strategy-rules-panel,
.strategy-config-card,
.strategy-dataset-modal-card {
  border: 1px solid var(--surface-border-strong);
  background: rgba(255, 255, 255, 0.96);
}

.dashboard-stat-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: var(--workspace-card-radius);
  box-shadow: var(--workspace-card-shadow-flat);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.dashboard-stat-card--detail {
  align-content: start;
  gap: 8px;
}

.dashboard-stat-card--detail .dashboard-stat-label {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.dashboard-stat-card--detail .dashboard-stat-title {
  margin-top: -2px;
}

.dashboard-stat-card--detail small {
  margin-top: -1px;
}

.metric-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.metric-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(180deg, #eef4fb 0%, #e7f0ff 100%);
  border: 1px solid rgba(13, 91, 215, 0.08);
  color: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  flex: 0 0 34px;
}

body.dashboard-inter-page .dashboard-stat-icon--saved,
body.dashboard-empty-inter-page .dashboard-stat-icon--saved {
  background: linear-gradient(180deg, #f8fbff 0%, #f1f6ff 100%);
}

body.dashboard-inter-page .dashboard-stat-icon--runs,
body.dashboard-empty-inter-page .dashboard-stat-icon--runs {
  background: linear-gradient(180deg, #eef4ff 0%, #e6f0ff 100%);
}

body.dashboard-inter-page .dashboard-stat-icon--marked,
body.dashboard-empty-inter-page .dashboard-stat-icon--marked {
  background: linear-gradient(180deg, #f4f0ff 0%, #ede7ff 100%);
}

body.dashboard-inter-page .dashboard-stat-icon--last-run,
body.dashboard-empty-inter-page .dashboard-stat-icon--last-run {
  background: linear-gradient(180deg, #eff8f1 0%, #e7f4eb 100%);
}

.metric-card-icon svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.metric-card-value {
  font-size: 1.85rem;
  line-height: 1;
  letter-spacing: -0.03em;
}

.dashboard-stat-title {
  font-size: 1rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.dashboard-stat-card small {
  color: var(--muted);
  line-height: 1.4;
  font-size: 0.8rem;
}

.dashboard-stat-label {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.7rem;
  font-weight: 700;
}

.dashboard-stat-kicker {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.dashboard-stat-link {
  font-size: 0.9rem;
  margin-top: auto;
}

.dashboard-stat-card:hover,
.result-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(18, 32, 61, 0.09);
  border-color: rgba(13, 91, 215, 0.16);
}

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

.dashboard-action-card {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border-radius: var(--workspace-card-radius);
  box-shadow: var(--workspace-card-shadow);
  color: var(--text);
  text-decoration: none;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.dashboard-action-card > div,
.dashboard-action-copy {
  display: grid;
  gap: 8px;
  flex: 1;
  min-width: 0;
  align-content: center;
}

.dashboard-action-copy {
  padding-right: 4px;
}

.dashboard-action-card--primary {
  background: linear-gradient(145deg, #16284a 0%, #0d5bd7 100%);
  color: #f5f8ff;
}

.dashboard-action-card--primary p,
.dashboard-action-card--primary .dashboard-action-kicker {
  color: rgba(245, 248, 255, 0.78);
}

body.dashboard-inter-page .dashboard-action-card--primary .dashboard-action-copy p {
  max-width: 446px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
}

.dashboard-action-card--primary .dashboard-action-icon {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 18px rgba(13, 34, 74, 0.18);
  color: #16284a;
}

.dashboard-action-card--primary .dashboard-action-icon img,
.dashboard-action-card--primary .dashboard-action-arrow img {
  filter: brightness(0) saturate(100%) invert(13%) sepia(27%) saturate(1581%) hue-rotate(191deg) brightness(93%) contrast(96%);
}

.dashboard-action-card--primary .dashboard-action-arrow {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 18px rgba(13, 34, 74, 0.18);
  color: #16284a;
}

.dashboard-action-card h2 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.2;
}

.dashboard-action-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.42;
  font-size: 0.9rem;
}

.dashboard-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 16px;
  border: 1px solid rgba(13, 91, 215, 0.1);
  background: linear-gradient(180deg, rgba(244, 248, 255, 0.98) 0%, rgba(233, 241, 255, 0.94) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 1px 2px rgba(18, 32, 61, 0.04);
  color: #0d5bd7;
}

.dashboard-action-icon img {
  width: 24px;
  height: 24px;
  display: block;
}

.dashboard-action-icon--soft {
  background: #eff6ff;
  border-color: #dbeafe;
  color: #1554c0;
}

.dashboard-action-icon--soft img,
.dashboard-action-arrow--soft img {
  filter: brightness(0) saturate(100%) invert(25%) sepia(95%) saturate(2002%) hue-rotate(212deg) brightness(95%) contrast(91%);
}

.dashboard-action-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  flex: 0 0 36px;
  align-self: center;
  color: var(--accent);
}

.dashboard-action-arrow--soft {
  color: #1554c0;
  background: #eff6ff;
  border: 1px solid #dbeafe;
}

.dashboard-action-arrow img {
  width: 18px;
  height: 18px;
  display: block;
  transform: rotate(180deg);
}

.dashboard-action-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(18, 32, 61, 0.09);
}

.dashboard-main-grid {
  display: grid;
  gap: 0;
}

.dashboard-secondary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr);
  gap: 14px;
  align-items: stretch;
  margin-top: 14px;
}

.dashboard-secondary-grid > .workspace-table-card {
  height: 100%;
}

.dashboard-saved-card,
.dashboard-mix-card {
  display: flex;
  flex-direction: column;
}

.dashboard-results-table {
  margin-top: 16px;
  border: 1px solid rgba(13, 91, 215, 0.1);
  border-radius: var(--workspace-card-radius-compact);
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.dashboard-results-table,
.result-history-table,
.strategy-recent-tests-table,
.review-trade-table,
.market-data-example-table-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
}

.dashboard-results-row {
  display: grid;
  min-width: 820px;
  grid-template-columns: 1.22fr 0.92fr 0.86fr 0.9fr 1fr 0.42fr 0.72fr;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  border-top: 1px solid rgba(13, 91, 215, 0.08);
  transition: background 0.18s ease;
}

.dashboard-results-row,
.result-history-row,
.strategy-recent-tests-row,
.review-trade-row {
  font-size: 0.9rem;
}

.dashboard-results-row > span:not(:first-child) {
  text-align: center;
  justify-self: center;
}

.dashboard-results-row > span:nth-child(5),
.dashboard-results-row--head > span:nth-child(5) {
  padding-left: 8px;
  text-align: left;
  justify-self: stretch;
}

.dashboard-results-row--head {
  background: rgba(238, 244, 253, 0.96);
  border-top: 0;
  color: #425a7a;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dashboard-results-row:not(.dashboard-results-row--head):hover {
  background: rgba(246, 249, 255, 0.9);
}

.dashboard-results-row--head,
.result-history-row--head,
.strategy-recent-tests-row--head,
.review-trade-row--head,
.market-data-example-table thead th {
  background: #f4f7fb;
  color: #425a7a;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
}

.dashboard-results-table .inline-link,
.result-history-table .inline-link,
.strategy-recent-tests-table .inline-link {
  white-space: nowrap;
}

.strategy-recent-tests-row--state {
  grid-template-columns: 1fr;
}

.strategy-recent-tests-row--state > span {
  grid-column: 1 / -1;
  color: var(--color-text-muted);
}

.strategy-recent-tests-row--state > small {
  grid-column: 1 / -1;
  color: var(--color-text-muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.dashboard-results-row:not(.dashboard-results-row--head) > span:last-child,
.strategy-recent-tests-row:not(.strategy-recent-tests-row--head) > span:last-child {
  display: flex;
  align-items: center;
}

.dashboard-results-row:not(.dashboard-results-row--head) > span:nth-child(2),
.dashboard-results-row:not(.dashboard-results-row--head) > span:nth-child(6) {
  display: grid;
  justify-items: center;
  text-align: center;
}

.dashboard-results-strategy {
  display: grid;
  gap: 4px;
}

.dashboard-results-dataset {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-results-mark .result-history-mark-button {
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  border-color: rgba(13, 91, 215, 0.1);
  background: rgba(248, 251, 255, 0.95);
  box-shadow: none;
  cursor: default;
}

.dashboard-results-mark .result-history-mark-button:hover,
.dashboard-results-mark .result-history-mark-button:focus-visible {
  transform: none;
  box-shadow: none;
}

@media (max-width: 1250px) and (min-width: 821px) {
  .dashboard-results-row {
    min-width: 840px;
  }

  .dashboard-results-row > span:nth-child(5),
  .dashboard-results-row--head > span:nth-child(5) {
    padding-left: 10px;
  }
}

.dashboard-results-strategy small,
.dashboard-results-outcome {
  color: var(--muted);
}

.dashboard-results-outcome {
  display: block;
  margin-top: 4px;
  color: var(--warning);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}

.dashboard-results-card .workspace-table-card-head,
.dashboard-saved-card .workspace-table-card-head,
.dashboard-mix-card .workspace-table-card-head {
  align-items: center;
}

body.dashboard-empty-inter-page .dashboard-results-card,
body.dashboard-empty-inter-page .dashboard-saved-card,
body.dashboard-empty-inter-page .dashboard-mix-card {
  display: flex;
  flex-direction: column;
}

body.dashboard-empty-inter-page .dashboard-empty-state {
  display: grid;
  gap: 10px;
  align-content: center;
  justify-items: start;
  min-height: 188px;
  margin-top: 18px;
  padding: 22px;
  border: 1px dashed rgba(13, 91, 215, 0.14);
  border-radius: var(--workspace-card-radius-compact);
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.92) 0%, rgba(255, 255, 255, 0.98) 100%);
}

body.dashboard-empty-inter-page .dashboard-empty-state strong {
  font-size: 1rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

body.dashboard-empty-inter-page .dashboard-empty-state p {
  margin: 0;
  max-width: 42ch;
  color: var(--muted);
  line-height: 1.5;
}

body.dashboard-empty-inter-page .dashboard-empty-state .button-primary,
body.dashboard-empty-inter-page .dashboard-empty-state .button-secondary {
  min-height: 36px;
  padding: 0 14px;
}

body.dashboard-empty-inter-page .dashboard-empty-state--results {
  min-height: 208px;
}

body.dashboard-empty-inter-page .dashboard-empty-state--saved,
body.dashboard-empty-inter-page .dashboard-empty-state--mix {
  flex: 1;
}

.dashboard-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: none;
  color: var(--accent);
  text-decoration: none;
}

.dashboard-card-link:hover,
.dashboard-card-link:focus-visible {
  background: none;
  text-decoration: none;
}

.dashboard-card-link-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  background-color: currentColor;
  mask: center / contain no-repeat url("./assets/icons/lucide/external-link.svg");
  -webkit-mask: center / contain no-repeat url("./assets/icons/lucide/external-link.svg");
}

.dashboard-results-table .inline-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 10px;
  background: rgba(237, 243, 255, 0.82);
  text-decoration: none;
}

.dashboard-results-table .inline-link:hover {
  background: #e7f0ff;
  text-decoration: none;
}

.dashboard-results-table .result-row-action {
  min-height: 28px;
  padding: 0;
  border-radius: 0;
  background: none;
}

.dashboard-results-table .result-row-action:hover,
.dashboard-results-table .result-row-action:focus-visible {
  background: none;
}

.dashboard-saved-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  flex: 1;
  align-content: start;
}

.dashboard-saved-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(13, 91, 215, 0.1);
  border-radius: var(--workspace-card-radius-compact);
  background: #ffffff;
}

.dashboard-saved-item small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

.dashboard-saved-item .button-secondary {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(244, 248, 255, 0.98) 0%, rgba(233, 241, 255, 0.96) 100%);
  border-color: rgba(13, 91, 215, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 1px 2px rgba(18, 32, 61, 0.04);
}

.dashboard-saved-item .button-secondary:hover {
  background: linear-gradient(180deg, rgba(239, 245, 255, 0.98) 0%, rgba(227, 237, 255, 0.98) 100%);
}

.dashboard-mix-shell {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  margin-top: 18px;
  flex: 1;
}

.dashboard-mix-shell--empty {
  display: block;
  width: 100%;
  flex: 0;
  margin-top: 16px;
}

.dashboard-mix-shell--empty .dashboard-empty-state {
  display: grid;
  width: 100%;
  min-width: 0;
  gap: 10px;
  align-content: start;
  justify-items: start;
  min-height: 0;
  margin-top: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-sizing: border-box;
}

.dashboard-mix-shell--empty .dashboard-empty-state strong {
  white-space: nowrap;
  font-size: 1rem;
  line-height: 1.3;
}

.dashboard-mix-shell--empty .dashboard-empty-state p {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.dashboard-mix-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
}

.dashboard-mix-dot--backtest {
  background: #16284a;
}

.dashboard-mix-dot--sweep {
  background: #4c7fd0;
}

.dashboard-mix-dot--walkforward {
  background: #9ec2fb;
}

.dashboard-mix-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.dashboard-mix-ring {
  position: relative;
  width: 124px;
  height: 124px;
  border-radius: 999px;
  background:
    conic-gradient(#16284a 0 44%, #4c7fd0 44% 77%, #9ec2fb 77% 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.dashboard-mix-ring::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: inherit;
  background: #ffffff;
}

.dashboard-mix-ring span,
.dashboard-mix-ring small {
  position: relative;
  z-index: 1;
}

.dashboard-mix-ring span {
  display: block;
  text-align: center;
  font-size: 1.98rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
}

.dashboard-mix-ring small {
  display: block;
  text-align: center;
  color: #7c8798;
  margin-top: 2px;
  font-size: 0.82rem;
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.dashboard-mix-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-content: center;
  padding-left: 16px;
  border-left: 1px solid rgba(13, 91, 215, 0.08);
}

.dashboard-mix-stat {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  min-height: 49px;
  padding: 12px 20px 12px 12px;
  border-radius: var(--workspace-card-radius-compact);
  background: rgba(237, 243, 255, 0.82);
}

.dashboard-mix-stat span {
  color: var(--muted);
}

.dashboard-mix-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dashboard-mix-stat strong {
  font-size: 1.08rem;
}

.dashboard-help-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.dashboard-help-link {
  display: grid;
  gap: 6px;
  min-height: 104px;
  padding: 13px 13px 11px;
  border: 1px solid rgba(13, 91, 215, 0.1);
  border-radius: var(--workspace-card-radius-compact);
  background: #ffffff;
  color: var(--text);
  text-decoration: none;
  line-height: 1.4;
}

.page-shell--dashboard,
.dashboard-top-stats > *,
.dashboard-quick-actions > *,
.dashboard-main-grid > *,
.dashboard-secondary-grid > *,
.dashboard-help-grid > *,
.dashboard-results-card,
.dashboard-saved-card,
.dashboard-mix-card,
.dashboard-help-card {
  min-width: 0;
}

.dashboard-help-link:hover {
  background: #f6f9ff;
}

.dashboard-help-link strong {
  font-size: 0.9rem;
}

.dashboard-help-link span {
  color: var(--muted);
  font-size: 0.82rem;
}

.page-shell--account {
  gap: 24px;
}

.account-identity-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: -2px;
  margin-bottom: 14px;
  padding: 2px 0 0;
}

.account-overview-card {
  padding: 6px 2px 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.account-overview-head {
  display: flex;
  justify-content: flex-start;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.account-overview-profile {
  display: flex;
  align-items: center;
  gap: 14px;
}

.account-overview-copy {
  display: grid;
  gap: 4px;
}

.account-overview-profile h2,
.account-identity-row h2 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.15;
}

.account-overview-profile p,
.account-identity-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.81rem;
  line-height: 1.25;
}

.account-avatar {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #16284a 0%, #0d5bd7 100%);
  color: #ffffff;
  font-weight: 700;
}

.account-settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.82fr);
  gap: 24px;
  align-items: start;
}

.account-settings-layout--single {
  grid-template-columns: minmax(0, 1fr);
}

.account-settings-main,
.account-settings-side {
  display: grid;
  gap: 24px;
}

.account-settings-side {
  align-self: start;
}

.account-card {
  padding: 22px;
  border-radius: var(--workspace-card-radius);
  border-color: var(--surface-border-strong);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--workspace-card-shadow-flat);
}

.account-card--side {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  padding: 20px;
}

.account-section-title {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.account-section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(180deg, #f4f8ff 0%, #edf4ff 100%);
  border: 1px solid rgba(13, 91, 215, 0.08);
  color: #0d5bd7;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.account-section-icon::before {
  content: "";
  width: 18px;
  height: 18px;
  background-color: currentColor;
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
}

.account-section-icon--profile::before {
  -webkit-mask-image: url("./assets/icons/lucide/user.svg");
  mask-image: url("./assets/icons/lucide/user.svg");
}

.account-section-icon--preferences::before {
  -webkit-mask-image: url("./assets/icons/lucide/settings-2.svg");
  mask-image: url("./assets/icons/lucide/settings-2.svg");
}

.account-section-icon--plan::before {
  -webkit-mask-image: url("./assets/icons/lucide/crown.svg");
  mask-image: url("./assets/icons/lucide/crown.svg");
}

.account-section-icon--plan {
  background: linear-gradient(180deg, #fff7ed 0%, #fffbeb 100%);
  border-color: rgba(217, 119, 6, 0.12);
  color: #d97706;
}

.account-section-icon--security::before {
  -webkit-mask-image: url("./assets/icons/lucide/shield.svg");
  mask-image: url("./assets/icons/lucide/shield.svg");
}

.account-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 16px;
  margin-top: 18px;
}

.account-field--full {
  grid-column: 1 / -1;
}

.account-field {
  display: grid;
  gap: 7px;
}

.account-field span {
  font-size: 0.84rem;
  font-weight: 600;
  color: #3f5270;
}

.account-field input,
.account-field select,
.auth-field input,
.strategy-field input,
.strategy-field select,
.field input,
.field select {
  width: 100%;
  color: var(--text);
  font: inherit;
  border: 1px solid var(--control-border);
  outline: 0;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.account-field input,
.account-field select,
.auth-field input,
.strategy-field input,
.strategy-field select,
.field select {
  min-height: var(--control-height);
  padding: 0 14px;
  border-radius: var(--control-radius);
}

.account-field input,
.account-field select {
  background: #fbfdff;
  color: #233552;
  border-color: rgba(148, 163, 184, 0.28);
  border-radius: 9px;
  padding: 10px 12px;
}

.account-field input:disabled,
.account-field select:disabled {
  opacity: 1;
  cursor: not-allowed;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  color: #6b7b91;
  border-color: rgba(148, 163, 184, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.account-field input:focus-visible,
.account-field select:focus-visible,
.auth-field input:focus-visible,
.strategy-field input:focus-visible,
.strategy-field select:focus-visible,
.field input:focus-visible,
.field select:focus-visible {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.account-field small,
.account-helper-copy {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.account-credits-block small {
  color: var(--muted);
  font-size: 0.8rem;
}

.account-card-actions {
  margin-top: 16px;
}

.account-save-button.is-active {
  background: #16284a;
  border-color: #16284a;
  color: #ffffff;
  cursor: pointer;
}

.account-save-button.is-active:hover {
  background: #1d3764;
  border-color: #1d3764;
}

.account-card-actions .button-secondary[disabled] {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-color: rgba(148, 163, 184, 0.2);
  color: #8a94a6;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
  cursor: not-allowed;
  opacity: 1;
}

.account-toggle-list {
  margin-top: 16px;
}

.account-toggle-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  min-height: 58px;
  padding: 15px 16px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  background: transparent;
  transition: background 0.18s ease;
}

.account-toggle-row:hover {
  background: transparent;
}

.account-toggle-row strong {
  display: block;
  font-size: 0.96rem;
}

.account-toggle-row p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.toggle-shell {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  cursor: pointer;
  user-select: none;
}

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

.toggle-shell-track {
  position: relative;
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: #d7e0ee;
  box-shadow: inset 0 0 0 1px rgba(13, 91, 215, 0.08);
}

.toggle-shell-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(16, 32, 61, 0.14);
}

.toggle-shell-input:checked + .toggle-shell-track {
  background: #0d5bd7;
}

.toggle-shell-input:checked + .toggle-shell-track::after {
  left: 20px;
}

.toggle-shell-input:focus-visible + .toggle-shell-track {
  box-shadow:
    inset 0 0 0 1px rgba(13, 91, 215, 0.08),
    0 0 0 3px rgba(59, 130, 246, 0.12);
}

.toggle-shell-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: #233552;
}

.account-info-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.account-info-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
  padding: 15px 16px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  background: #ffffff;
}

body.account-settings-inter-page .account-card-actions .button-secondary {
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 8px;
}

body.account-settings-inter-page [data-account-plan-action][hidden],
body.account-settings-inter-page [data-account-request-status][hidden] {
  display: none;
}

.account-info-row span {
  color: var(--muted);
  font-size: 0.88rem;
}

.account-info-row strong {
  text-align: right;
  font-size: 0.92rem;
  line-height: 1.4;
}

.account-info-row--stacked {
  align-items: center;
}

.account-info-row--plan {
  align-items: center;
}

.account-info-row--managed {
  background: linear-gradient(180deg, #fbfcfe 0%, #f7f9fc 100%);
}

.account-info-row--credits {
  align-items: stretch;
}

.account-credits-block {
  display: grid;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.account-access-block {
  display: grid;
  gap: 6px;
  width: 100%;
  min-width: 0;
}

.account-access-block strong {
  text-align: left;
}

.account-credits-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.account-credits-head > span {
  color: var(--muted);
  font-size: 0.88rem;
}

.account-credits-head strong {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  text-align: right;
  color: #22395f;
  font-size: 0.96rem;
  font-weight: 600;
}

body.account-settings-inter-page .account-info-row .account-credits-available {
  color: #16284a;
  font-size: 1.05rem;
  font-weight: 700;
}

body.account-settings-inter-page .account-info-row .account-credits-total {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.account-progress {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
}

.account-progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0d5bd7 0%, #4f8fff 100%);
}

.account-plan-value {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.account-plan-value--inline {
  width: 100%;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: nowrap;
}

.account-plan-badge {
  font-size: 0.72rem;
  padding: 4px 9px;
}

.account-card--side .account-info-list {
  gap: 10px;
  margin-top: 14px;
}

.account-card--side .account-info-row {
  padding: 13px 14px;
}

.account-card--side .account-credits-block {
  gap: 8px;
}

.account-card--side .account-helper-copy {
  margin-top: 2px;
}

.account-card--side .account-card-actions {
  margin-top: 12px;
}

.account-inline-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(13, 91, 215, 0.08);
  border: 1px solid rgba(13, 91, 215, 0.12);
  color: var(--accent);
  font: inherit;
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.account-inline-action:hover {
  background: rgba(13, 91, 215, 0.12);
  color: #0b4bb0;
}

.account-inline-action:disabled {
  cursor: wait;
  opacity: 0.72;
}

.account-info-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.account-info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex: 0 0 18px;
}

.account-info-icon svg {
  width: 18px;
  height: 18px;
}

.account-info-icon:not(.account-info-icon--google) svg {
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.account-info-brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.account-info-brand-icon svg {
  display: block;
  width: 20px;
  height: 20px;
  min-width: 20px;
  max-width: 20px;
  min-height: 20px;
  max-height: 20px;
}

.account-info-icon--lock::before {
  content: "";
  width: 18px;
  height: 18px;
  background-color: currentColor;
  -webkit-mask: center / contain no-repeat url("./assets/icons/lucide/lock-keyhole.svg");
  mask: center / contain no-repeat url("./assets/icons/lucide/lock-keyhole.svg");
}

.result-history-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.result-stat-card,
.workspace-table-card {
  border-radius: var(--workspace-card-radius);
  box-shadow: var(--workspace-card-shadow-flat);
}

.result-stat-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.result-stat-card small {
  color: var(--muted);
  line-height: 1.3;
  font-size: 0.8rem;
}

.result-stat-card--success .metric-card-icon {
  background: linear-gradient(180deg, #eef9f1 0%, #e5f5ea 100%);
  border-color: rgba(35, 138, 77, 0.12);
  color: #2f7c4f;
}

.result-stat-card--completed .metric-card-icon {
  background: linear-gradient(180deg, #eefaf2 0%, #e4f6ea 100%);
  border-color: rgba(21, 153, 71, 0.12);
}

.result-stat-card--no-trades .metric-card-icon {
  background: linear-gradient(180deg, #fff6ea 0%, #fff0dc 100%);
  border-color: rgba(217, 119, 6, 0.12);
}

.result-stat-card--warning .metric-card-icon {
  background: linear-gradient(180deg, #fff4ec 0%, #feeadd 100%);
  border-color: rgba(181, 94, 33, 0.14);
  color: #ad5923;
}

.result-stat-card--danger .metric-card-icon {
  background: linear-gradient(180deg, #fff0f0 0%, #ffe5e5 100%);
  border-color: rgba(220, 38, 38, 0.12);
}

.result-stat-label {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.74rem;
  font-weight: 700;
}

.workspace-table-card {
  padding: 20px;
}

.workspace-table-card-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.workspace-table-card-head h2 {
  margin: 0;
  font-size: 1.16rem;
}

.workspace-table-card-head p,
.pricing-card-head p,
.auth-card-head p,
.strategy-dataset-modal-head p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.result-history-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.result-history-header-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.result-history-control-button,
.result-history-sort {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  height: 40px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(13, 91, 215, 0.14);
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.result-history-control-button {
  color: #40546f;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.result-history-control-button:hover,
.result-history-control-button:focus-visible {
  border-color: rgba(13, 91, 215, 0.24);
  background: #f8fbff;
  color: #0f4fb7;
  outline: none;
}

.result-history-sort select {
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
}

.result-history-control-icon {
  display: inline-block;
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  background: currentColor;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
}

.result-history-control-icon--filters {
  mask-image: url("./assets/icons/lucide/list-filter.svg");
  -webkit-mask-image: url("./assets/icons/lucide/list-filter.svg");
}

.result-history-control-icon--sort {
  mask-image: url("./assets/icons/lucide/arrow-down-up.svg");
  -webkit-mask-image: url("./assets/icons/lucide/arrow-down-up.svg");
}

.result-history-control-icon--clear {
  width: 14px;
  height: 14px;
  flex-basis: 14px;
  color: #64748b;
  mask-image: url("./assets/icons/lucide/trash-2.svg");
  -webkit-mask-image: url("./assets/icons/lucide/trash-2.svg");
}

.result-history-chip-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.result-history-filter-caret {
  color: #6b7d94;
  font-size: 0.78rem;
}

.result-filter-chip {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(13, 91, 215, 0.18);
  border-radius: 8px;
  background: #ffffff;
  color: #40546f;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.result-filter-chip.is-active {
  border-color: rgba(13, 91, 215, 0.28);
  background: #eef4ff;
  color: var(--accent);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.74);
}

.result-filter-chip:hover {
  border-color: rgba(13, 91, 215, 0.26);
  background: #f8fbff;
  color: #0f4fb7;
}

.result-filter-chip:focus-visible {
  outline: 2px solid rgba(13, 91, 215, 0.5);
  outline-offset: 3px;
}

.result-filter-chip.is-active:hover {
  border-color: rgba(13, 91, 215, 0.34);
  background: #e6efff;
}

.result-history-table {
  margin-top: 20px;
  width: 100%;
  max-width: 100%;
  border: 1px solid rgba(13, 91, 215, 0.1);
  border-radius: var(--workspace-card-radius-compact);
  background: #ffffff;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(83, 112, 150, 0.35) transparent;
}

.result-history-empty-state {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px dashed rgba(13, 91, 215, 0.16);
  border-radius: 10px;
  background: rgba(247, 250, 254, 0.88);
  color: #58697f;
  font-size: 0.92rem;
}

.result-history-row {
  display: grid;
  min-width: 980px;
  grid-template-columns: minmax(210px, 1.34fr) 104px 102px 104px minmax(180px, 1.12fr) 48px 104px;
  gap: 10px;
  align-items: center;
  padding: 14px 16px;
  border-top: 1px solid rgba(13, 91, 215, 0.08);
  transition: background-color 0.16s ease;
}

.result-history-row--head {
  border-top: 0;
  font-size: 0.83rem;
  background: rgba(241, 246, 252, 0.96);
}

.result-history-row > span {
  min-width: 0;
  text-align: left;
  justify-self: stretch;
}

.result-history-strategy {
  justify-self: stretch;
  text-align: left;
}

.result-history-row--head > span {
  white-space: nowrap;
  text-align: left;
}

.result-history-row > span:nth-child(2),
.result-history-row > span:nth-child(3),
.result-history-row > span:nth-child(4),
.result-history-row--head > span:nth-child(2),
.result-history-row--head > span:nth-child(3),
.result-history-row--head > span:nth-child(4) {
  justify-self: center;
  text-align: center;
}

.result-history-row > span:nth-child(5),
.result-history-row--head > span:nth-child(5) {
  padding-left: 8px;
}

.result-history-strategy,
.result-history-status,
.result-history-action,
.result-history-mark {
  display: grid;
  gap: 4px;
}

.result-history-status,
.result-history-mark {
  justify-items: center;
  align-content: center;
}

.result-history-mark,
.result-history-row--head > span:nth-child(6) {
  justify-self: center;
  text-align: center;
}

.result-history-action {
  justify-items: center;
  align-content: center;
}

.result-history-row:not(.result-history-row--head):hover {
  background: rgba(245, 249, 255, 0.94);
}

.result-history-strategy strong {
  font-size: 0.95rem;
}

.result-history-strategy small,
.result-history-mark small {
  color: var(--muted);
  line-height: 1.35;
}

.result-history-outcome {
  display: block;
  margin-top: 4px;
  color: var(--warning);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}

.result-history-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  white-space: nowrap;
}

.result-history-mark-button {
  position: relative;
  width: 34px;
  min-height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #334155;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  transition:
    transform 0.16s ease,
    filter 0.16s ease,
    box-shadow 0.16s ease;
}

.result-history-mark-button:hover {
  transform: scale(1.05);
  filter: brightness(1.03);
}

.result-history-mark-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.tooltip-trigger {
  position: relative;
}

.tooltip-trigger[data-tooltip]::after {
  display: none;
  content: none;
}

.tooltip-trigger > .tooltip-trigger-arrow {
  display: none;
}

.tooltip-overlay {
  position: fixed;
  top: var(--tooltip-y, 0);
  left: var(--tooltip-x, 0);
  z-index: 10000;
  width: max-content;
  max-width: min(220px, calc(100vw - 24px));
  padding: 7px 9px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
  color: #163050;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transform: translate(-50%, -100%);
  transition: opacity 140ms ease;
  white-space: nowrap;
}

.tooltip-overlay[data-tooltip-open="true"] {
  opacity: 1;
  transform: translate(-50%, -100%);
}

.tooltip-overlay::after {
  position: absolute;
  top: 100%;
  left: var(--tooltip-arrow-x, 50%);
  display: block;
  width: 10px;
  height: 6px;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  content: "";
  pointer-events: none;
  transform: translateX(-50%);
}

.tooltip-overlay[data-tooltip-dismissed="true"] {
  opacity: 0;
  transition: none;
}

.mobile-experience-notice {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding: 12px;
  border: 1px solid rgba(13, 91, 215, 0.14);
  border-radius: var(--workspace-card-radius-compact);
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.98) 0%, rgba(248, 251, 255, 0.98) 100%);
  color: #17375d;
  box-shadow: 0 10px 24px rgba(18, 32, 61, 0.05);
}

.mobile-experience-notice[hidden] {
  display: none;
}

.mobile-experience-notice__title {
  margin: 0;
  color: #0f2f56;
  font-size: 0.98rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.mobile-experience-notice__copy,
.mobile-experience-notice__help {
  margin: 0;
  color: #4f6681;
  font-size: 0.86rem;
  line-height: 1.45;
}

.mobile-experience-notice__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.mobile-experience-notice__button,
.mobile-experience-notice__link {
  min-height: 40px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}

.mobile-experience-notice__button {
  padding: 0 14px;
  border: 1px solid rgba(13, 91, 215, 0.18);
  background: #0d5bd7;
  color: #ffffff;
}

.mobile-experience-notice__link {
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: #0d5bd7;
}

.mobile-experience-notice__help {
  padding-top: 2px;
}

.mobile-shell-header,
.mobile-inline-back,
.strategy-mobile-section-switch {
  display: none;
}

.library-strategy-card {
  position: relative;
}

.library-strategy-card.is-tooltip-open {
  z-index: 30;
}

.result-history-dataset {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-history-mark-empty {
  color: #cbd5e1;
  display: inline-flex;
  width: 16px;
  justify-content: center;
  font-size: 1.16rem;
  line-height: 1;
}

.result-history-mark-dot {
  display: inline-block;
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, var(--mark-dot-highlight, #d1d5db) 0%, var(--mark-dot-base, #9ca3af) 70%, var(--mark-dot-shadow, #7c8797) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.52),
    0 0 0 1px rgba(15, 23, 42, 0.06);
}

.result-history-mark-button--red,
.result-history-mark-dot--red {
  color: #ef4444;
  --mark-dot-highlight: #fca5a5;
  --mark-dot-base: #ef4444;
  --mark-dot-shadow: #dc2626;
}

.result-history-mark-button--blue,
.result-history-mark-dot--blue {
  color: #3b82f6;
  --mark-dot-highlight: #93c5fd;
  --mark-dot-base: #3b82f6;
  --mark-dot-shadow: #2563eb;
}

.result-history-mark-button--green,
.result-history-mark-dot--green {
  color: #22c55e;
  --mark-dot-highlight: #86efac;
  --mark-dot-base: #22c55e;
  --mark-dot-shadow: #16a34a;
}

.result-history-mark-button--amber,
.result-history-mark-dot--amber {
  color: #f59e0b;
  --mark-dot-highlight: #fcd34d;
  --mark-dot-base: #f59e0b;
  --mark-dot-shadow: #d97706;
}

.result-history-mark-button--purple,
.result-history-mark-dot--purple {
  color: #a855f7;
  --mark-dot-highlight: #d8b4fe;
  --mark-dot-base: #a855f7;
  --mark-dot-shadow: #9333ea;
}

.result-history-mark-button--low,
.result-history-mark-dot--low {
  color: #9ca3af;
  --mark-dot-highlight: #e2e8f0;
  --mark-dot-base: #9ca3af;
  --mark-dot-shadow: #94a3b8;
}

.result-history-mark-button--empty {
  color: #cbd5e1;
}

.result-history-action,
.result-history-row--head > span:last-child {
  justify-self: center;
  text-align: center;
}

@media (max-width: 1250px) and (min-width: 821px) {
  .result-history-row {
    min-width: 760px;
    grid-template-columns: minmax(168px, 1.08fr) 84px 80px 84px minmax(100px, 0.66fr) 36px 88px;
    gap: 8px;
    padding-left: 12px;
    padding-right: 12px;
  }
}

.result-history-mark-popover {
  position: fixed;
  z-index: 20;
  width: 228px;
  padding: 8px;
  border: 1px solid rgba(13, 91, 215, 0.12);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(18, 32, 61, 0.16);
}

.result-history-filters-popover {
  position: fixed;
  z-index: 20;
  width: min(332px, calc(100vw - 24px));
  max-height: min(640px, calc(100vh - 24px));
  overflow: auto;
  padding: 10px;
  border: 1px solid rgba(13, 91, 215, 0.12);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(18, 32, 61, 0.16);
}

.result-history-mark-popover[hidden],
.result-history-filters-popover[hidden] {
  display: none;
}

.result-history-mark-popover-title,
.result-history-filters-title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 10px;
  color: #16284a;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.result-history-filter-section {
  padding: 10px 4px;
  border-top: 1px solid rgba(13, 91, 215, 0.08);
}

.result-history-filters-title + .result-history-filter-section {
  border-top: 0;
  padding-top: 2px;
}

.result-history-filter-section-title {
  margin-bottom: 8px;
  padding: 0 4px;
  color: #5c6f89;
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.result-history-filter-option-row,
.result-history-filter-mark-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.result-history-filter-option {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(13, 91, 215, 0.13);
  border-radius: 8px;
  background: #ffffff;
  color: #40546f;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.result-history-filter-option:hover,
.result-history-filter-option:focus-visible {
  border-color: rgba(13, 91, 215, 0.24);
  background: #f8fbff;
  color: #0f4fb7;
  outline: none;
}

.result-history-filter-option.is-selected {
  border-color: rgba(13, 91, 215, 0.3);
  background: #eef4ff;
  color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.result-history-filter-option--text {
  min-width: 48px;
}

.result-history-filter-mark-row .result-history-mark-swatch {
  width: 32px;
  height: 32px;
}

.result-history-filter-mark-row .result-history-mark-swatch--empty .result-history-mark-empty {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 999px;
  color: transparent;
  font-size: 0;
}

.result-history-mark-swatch-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 4px 2px;
}

.result-history-mark-swatch {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background-color 0.16s ease;
}

.result-history-mark-swatch .result-history-mark-dot {
  width: 14px;
  height: 14px;
  flex-basis: 14px;
}

.result-history-mark-swatch:hover,
.result-history-mark-swatch:focus-visible {
  transform: scale(1.08);
  background: rgba(226, 238, 255, 0.52);
  box-shadow: 0 0 0 1px rgba(13, 91, 215, 0.1);
  outline: none;
}

.result-history-mark-swatch--empty {
  color: #cbd5e1;
}

.result-history-mark-swatch--empty .result-history-mark-empty {
  font-size: 1.08rem;
}

.result-history-mark-swatch.is-selected {
  background: rgba(226, 238, 255, 0.9);
  box-shadow:
    0 0 0 1px rgba(13, 91, 215, 0.14),
    inset 0 0 0 1px rgba(255, 255, 255, 0.75);
}

.result-history-mark-clear {
  display: flex;
  width: 100%;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #334155;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}

.result-history-mark-clear:hover,
.result-history-mark-clear:focus-visible {
  background: #f5f9ff;
  outline: none;
}

.result-history-mark-popover-divider {
  height: 1px;
  margin: 6px 4px;
  background: rgba(13, 91, 215, 0.1);
}

.pagination-strip {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(150px, 1fr);
  gap: 16px;
  align-items: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(13, 91, 215, 0.08);
}

.pagination-range {
  margin: 0;
  color: #40546f;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.35;
}

.pagination-control-group {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  justify-self: center;
}

.pagination-pages {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  transform: translateX(0);
  will-change: transform, opacity;
}

.pagination-pages[data-slide-direction="next"] {
  --pagination-slide-distance: 8px;
}

.pagination-pages[data-slide-direction="previous"] {
  --pagination-slide-distance: -8px;
}

.pagination-pages.is-sliding {
  animation: paginationSequenceSlide 180ms ease-out;
}

.pagination-page,
.pagination-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(13, 91, 215, 0.12);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.pagination-arrow {
  color: #40546f;
}

.pagination-page:hover,
.pagination-page:focus-visible,
.pagination-arrow:hover,
.pagination-arrow:focus-visible {
  border-color: rgba(13, 91, 215, 0.24);
  background: #f8fbff;
  color: #0f4fb7;
  outline: none;
}

.pagination-page:focus-visible,
.pagination-arrow:focus-visible,
.pagination-size select:focus-visible {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.pagination-page.is-active {
  border-color: #16284a;
  background: #16284a;
  color: #f5f8ff;
}

.pagination-arrow:disabled {
  border-color: rgba(148, 163, 184, 0.16);
  background: #f8fafc;
  color: #a6b1c0;
  cursor: not-allowed;
  box-shadow: none;
}

.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 34px;
  color: #7a8ca5;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
}

.pagination-size {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  position: relative;
}

.pagination-size::after {
  position: absolute;
  right: 12px;
  width: 12px;
  height: 12px;
  background: currentColor;
  color: #5d6f86;
  content: "";
  pointer-events: none;
  mask-image: url("./assets/icons/lucide/chevron-down.svg");
  -webkit-mask-image: url("./assets/icons/lucide/chevron-down.svg");
  mask-position: center;
  -webkit-mask-position: center;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-size: contain;
}

.pagination-size select {
  min-width: 132px;
  height: 40px;
  padding: 0 34px 0 13px;
  border: 1px solid rgba(13, 91, 215, 0.14);
  border-radius: 10px;
  background: #ffffff;
  color: #16284a;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.pagination-size select:hover {
  border-color: rgba(13, 91, 215, 0.24);
  background: #f8fbff;
}

@keyframes paginationSequenceSlide {
  0% {
    opacity: 0.58;
    transform: translateX(var(--pagination-slide-distance, 8px));
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pagination-pages.is-sliding {
    animation: none;
  }
}

.page-shell--public {
  padding-top: 32px;
}

.landing-public-hero {
  padding: 28px 0 18px;
  text-align: center;
}

.landing-public-hero-copy {
  max-width: 880px;
  margin: 0 auto;
}

.landing-public-hero h1 {
  margin: 0;
  font-size: clamp(3rem, 7vw, 4.75rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.landing-public-hero .hero-copy {
  max-width: 64ch;
  margin: 18px auto 0;
  font-size: 1.05rem;
}

.landing-public-hero-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

.landing-public-hero-actions--centered {
  margin-top: 22px;
}

.landing-hero-preview,
.landing-workflow-section,
.landing-get-started-section,
.landing-final-cta {
  padding: 24px 0;
}

.landing-preview-card {
  padding: 22px;
  border: 1px solid var(--surface-border-soft);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 20px 46px rgba(18, 32, 61, 0.08);
}

.landing-preview-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.landing-preview-card-head h2 {
  margin: 6px 0 0;
  font-size: 1.25rem;
  line-height: 1.2;
}

.landing-section-kicker {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
}

.landing-section-kicker::before {
  content: "";
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  background: currentColor;
  opacity: 0.92;
  mask-image: url("./assets/icons/lucide/sparkles.svg");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-image: url("./assets/icons/lucide/sparkles.svg");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
}

.landing-preview-media-slot {
  min-height: 360px;
  border-radius: 22px;
  background:
    radial-gradient(circle at center, rgba(159, 104, 34, 0.18) 0%, rgba(19, 19, 22, 0.94) 58%),
    linear-gradient(180deg, #15171d 0%, #0f1115 100%);
  overflow: hidden;
  padding: 18px;
}

.preview-browser-bar {
  display: flex;
  gap: 8px;
}

.preview-browser-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.preview-chart-stage {
  position: relative;
  min-height: 290px;
  margin-top: 14px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0) 100%);
}

.preview-chart-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 100% 58px, 72px 100%;
}

.preview-chart-line {
  position: absolute;
  left: 7%;
  right: 7%;
  height: 140px;
  border-bottom: 2px solid rgba(213, 148, 72, 0.48);
  border-radius: 50%;
  opacity: 0.95;
}

.preview-chart-line--primary {
  bottom: 48px;
  transform: skewX(-18deg) scaleY(0.74);
}

.preview-chart-line--secondary {
  bottom: 92px;
  border-color: rgba(255, 255, 255, 0.16);
  transform: skewX(22deg) scaleY(0.34);
}

.preview-summary-tile {
  position: absolute;
  bottom: 20px;
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #f5f8ff;
  backdrop-filter: blur(8px);
}

.preview-summary-tile strong {
  font-size: 0.92rem;
}

.preview-summary-tile small {
  color: rgba(245, 248, 255, 0.72);
}

.preview-summary-tile--left {
  left: 18px;
}

.preview-summary-tile--right {
  right: 18px;
}

.landing-section-header {
  margin-bottom: 20px;
}

.landing-section-header--centered {
  max-width: 760px;
  margin: 0 auto 24px;
  text-align: center;
}

.landing-section-header h2 {
  margin: 8px 0 0;
  font-size: 2rem;
  line-height: 1.06;
}

.landing-section-header p {
  margin: 10px 0 0;
  color: var(--muted);
}

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

.landing-workflow-card,
.landing-start-step {
  position: relative;
  padding: 18px 16px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--surface-shadow-soft);
}

.landing-workflow-card h3,
.landing-start-step h3 {
  margin: 0;
  font-size: 1rem;
}

.landing-workflow-card p,
.landing-start-step p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.landing-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: #16284a;
  color: #f5f8ff;
  font-size: 0.82rem;
  font-weight: 700;
}

.landing-feature-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 30px;
  align-items: center;
  padding: 34px 0;
}

.landing-feature-section--reverse {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}

.landing-feature-copy h2 {
  margin: 8px 0 0;
  font-size: 2rem;
  line-height: 1.08;
}

.landing-feature-copy p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.landing-feature-points {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.landing-feature-points li {
  position: relative;
  padding-left: 18px;
  color: var(--text);
}

.landing-feature-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #14a058;
}

.landing-feature-media {
  min-height: 280px;
}

.feature-visual-card {
  position: relative;
  min-height: 280px;
  border: 1px solid rgba(13, 91, 215, 0.08);
  border-radius: 22px;
  background: linear-gradient(180deg, #f9fbff 0%, #eef3fb 100%);
  overflow: hidden;
}

.feature-visual-card--backtest::before {
  content: "";
  position: absolute;
  inset: 28% -4% auto;
  height: 120px;
  border-top: 4px solid rgba(90, 142, 221, 0.28);
  border-radius: 50%;
}

.feature-visual-band {
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(180deg, rgba(90, 142, 221, 0.06) 0%, rgba(90, 142, 221, 0.16) 100%);
}

.feature-metric-pop,
.sweep-popover {
  position: absolute;
  left: 24px;
  bottom: 26px;
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 28px rgba(18, 32, 61, 0.1);
}

.feature-metric-pop strong {
  color: #14a058;
  font-size: 1.5rem;
}

.feature-metric-pop small,
.sweep-popover small {
  color: var(--muted);
}

.feature-visual-card--sweep {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.7), transparent 32%),
    linear-gradient(145deg, #d3d7df 0%, #eef1f5 100%);
}

.sweep-grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(128, 134, 146, 0.32) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.7;
}

.sweep-popover {
  right: 24px;
  left: auto;
}

.feature-visual-card--walkforward {
  padding: 28px;
}

.walkforward-rows {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.walkforward-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 8px;
  background: #d9e0ea;
  color: #59708f;
  font-size: 0.8rem;
  font-weight: 600;
}

.walkforward-chip--accent {
  background: #aecaef;
  color: #265ea6;
}

.walkforward-bars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-content: center;
  min-height: 180px;
}

.walkforward-bars span {
  display: block;
  height: 26px;
  border-radius: 6px;
  background: #bfd0ea;
}

.walkforward-bars span:nth-child(2) {
  margin-top: 20px;
}

.walkforward-bars span:nth-child(3) {
  margin-top: 4px;
}

.walkforward-bars span:nth-child(4) {
  width: 72%;
  margin-left: auto;
}

.walkforward-bars span:nth-child(5) {
  grid-column: span 2;
  width: 78%;
}

.landing-get-started-section {
  margin-top: 8px;
  padding: 36px 18px 34px;
  border-radius: 26px;
  background: linear-gradient(180deg, #f4f7fb 0%, #f7f9fc 100%);
}

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

.landing-start-step-number {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.landing-final-cta-card {
  max-width: 760px;
  margin: 0 auto;
  padding: 34px 28px;
  border: 1px solid var(--surface-border-soft);
  border-radius: 24px;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  text-align: center;
  box-shadow: var(--surface-shadow-medium);
}

.landing-final-cta-card h2 {
  margin: 0;
  font-size: 2rem;
}

.landing-final-cta-card p {
  margin: 12px auto 0;
  max-width: 58ch;
  color: var(--muted);
}

.page-shell--strategy-library {
  padding-top: 12px;
  padding-bottom: 28px;
}

body.market-data-inter-page .page-shell--market-data {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-top: 0;
  padding-bottom: 32px;
}

.market-data-hero-band {
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
  padding: 36px 0 38px;
  background: linear-gradient(135deg, #eef5ff 0%, #e1edff 46%, #d5e5fd 100%);
  border-top: 1px solid rgba(13, 91, 215, 0.08);
  border-bottom: 1px solid rgba(13, 91, 215, 0.08);
}

.market-data-hero-band::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    112deg,
    rgba(255, 255, 255, 0.68) 0%,
    rgba(255, 255, 255, 0.22) 28%,
    rgba(255, 255, 255, 0) 60%
  );
}

.market-data-hero-band::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.34;
  background-image: radial-gradient(circle, rgba(79, 119, 185, 0.18) 1.2px, transparent 1.7px);
  background-size: 20px 20px;
  background-repeat: repeat;
  -webkit-mask-image:
    linear-gradient(90deg, #000 0%, #000 16%, transparent 34%),
    linear-gradient(180deg, transparent 0%, #000 20%, #000 76%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, #000 0%, #000 16%, transparent 34%),
    linear-gradient(180deg, transparent 0%, #000 20%, #000 76%, transparent 100%);
  mask-composite: intersect;
}

.market-data-hero-shell {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 112px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 500px);
  align-items: center;
  gap: clamp(36px, 5vw, 86px);
}

.market-data-container {
  width: min(1240px, calc(100% - 112px));
  margin: 0 auto;
}

.market-data-hero-copy {
  position: relative;
  max-width: 720px;
  margin: 0;
  text-align: left;
}

.market-data-hero-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: #1c58cc;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.market-data-hero-label-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  background: currentColor;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-image: url("./assets/icons/lucide/database-zap.svg");
  -webkit-mask-image: url("./assets/icons/lucide/database-zap.svg");
}

.market-data-hero-copy h1 {
  margin: 0;
  max-width: none;
  white-space: nowrap;
  font-size: clamp(3.15rem, 4.8vw, 4rem);
  font-weight: 520;
  line-height: 0.98;
  letter-spacing: -0.048em;
  color: #16284a;
}

.market-data-hero-copy p:last-child {
  margin: 16px 0 0;
  color: #516881;
  max-width: 60ch;
  font-size: 1.06rem;
  line-height: 1.68;
}

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

body.market-data-inter-page .market-data-hero-cta {
  gap: 12px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(21, 79, 186, 0.14);
  color: #1a4fc3;
  box-shadow: 0 12px 28px rgba(18, 32, 61, 0.05);
}

body.market-data-inter-page .market-data-hero-cta:hover,
body.market-data-inter-page .market-data-hero-cta:focus-visible {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(21, 79, 186, 0.22);
}

.market-data-hero-cta-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  flex: 0 0 auto;
  background: currentColor;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-image: url("./assets/icons/lucide/arrow-right.svg");
  -webkit-mask-image: url("./assets/icons/lucide/arrow-right.svg");
}

.market-data-hero-visual {
  position: relative;
  min-height: 306px;
  margin-top: 34px;
}

.market-data-hero-visual::before {
  content: none;
}

.market-data-hero-connectors {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.market-data-hero-connectors path {
  fill: none;
  stroke: rgba(86, 138, 230, 0.36);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 5 7;
}

.market-data-hero-utility {
  position: absolute;
  left: 10px;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(13, 91, 215, 0.12);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow:
    0 7px 14px rgba(18, 32, 61, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.market-data-hero-utility::before {
  content: "";
  position: absolute;
  inset: 15px;
  background: #2b66de;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
}

.market-data-hero-utility::after {
  content: none;
}

.market-data-hero-utility--chart {
  top: 20px;
}

.market-data-hero-utility--chart::before {
  mask-image: url("./assets/icons/lucide/file-chart-line.svg");
  -webkit-mask-image: url("./assets/icons/lucide/file-chart-line.svg");
}

.market-data-hero-utility--upload {
  top: 100px;
}

.market-data-hero-utility--upload::before {
  mask-image: url("./assets/icons/lucide/upload.svg");
  -webkit-mask-image: url("./assets/icons/lucide/upload.svg");
}

.market-data-hero-utility--sheet {
  top: 180px;
}

.market-data-hero-utility--sheet::before {
  mask-image: url("./assets/icons/lucide/file-spreadsheet.svg");
  -webkit-mask-image: url("./assets/icons/lucide/file-spreadsheet.svg");
}

.market-data-hero-board {
  position: absolute;
  top: 0;
  right: 26px;
  width: 320px;
  padding: 0 16px 14px;
  border: 1px solid rgba(13, 91, 215, 0.12);
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(244, 249, 255, 0.96) 100%);
  box-shadow: 0 8px 18px rgba(18, 32, 61, 0.07);
}

.market-data-hero-board-top {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 0 12px;
}

.market-data-hero-board-top span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #c2d6fa;
}

.market-data-hero-chart {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  align-items: end;
  gap: 8px;
  height: 118px;
  padding: 16px 14px 10px;
  border: 1px solid rgba(13, 91, 215, 0.08);
  border-radius: 9px;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.96) 0%, rgba(241, 247, 255, 0.92) 100%);
}

.market-data-hero-chart span {
  position: relative;
  display: block;
  height: 100%;
}

.market-data-hero-chart span::before {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(50% - var(--body-height) / 2 - 14px);
  width: 2px;
  height: calc(var(--body-height) + 28px);
  transform: translateX(-50%);
  background: rgba(105, 149, 230, 0.6);
  border-radius: 0;
}

.market-data-hero-chart span::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(50% - var(--body-height) / 2);
  width: 10px;
  height: var(--body-height);
  transform: translateX(-50%);
  border-radius: 1px;
  background: var(--candle-color);
}

.market-data-hero-chart .short {
  --body-height: 24px;
}

.market-data-hero-chart .medium {
  --body-height: 34px;
}

.market-data-hero-chart .tall {
  --body-height: 46px;
}

.market-data-hero-chart .is-up {
  --candle-color: #84abf3;
}

.market-data-hero-chart .is-down {
  --candle-color: #c3d7fb;
}

.market-data-hero-table {
  display: grid;
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid rgba(13, 91, 215, 0.1);
  border-radius: 8px;
  background: rgba(248, 251, 255, 0.84);
}

.market-data-hero-table-head,
.market-data-hero-table-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.market-data-hero-table-head {
  background: rgba(224, 235, 253, 0.62);
}

.market-data-hero-table-head span,
.market-data-hero-table-row span {
  min-width: 0;
  padding: 5px 6px;
  border-right: 1px solid rgba(13, 91, 215, 0.09);
  color: #5b708b;
  font-size: 0.62rem;
  line-height: 1.1;
  text-align: left;
  white-space: nowrap;
}

.market-data-hero-table-head span {
  color: #2d5ea8;
  font-weight: 700;
}

.market-data-hero-table-row + .market-data-hero-table-row {
  border-top: 1px solid rgba(13, 91, 215, 0.08);
}

.market-data-hero-table-head span:last-child,
.market-data-hero-table-row span:last-child {
  border-right: 0;
}

@media (max-width: 1080px) {
  .market-data-hero-shell {
    width: min(1240px, calc(100% - 64px));
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .market-data-hero-copy {
    max-width: 760px;
  }

  .market-data-hero-copy h1 {
    max-width: none;
    white-space: normal;
  }

  .market-data-hero-visual {
    width: min(500px, 100%);
    margin-left: auto;
    margin-top: 24px;
  }
}

@media (max-width: 768px) {
  .market-data-hero-band {
    padding: 24px 0 28px;
  }

  .market-data-hero-band::after {
    opacity: 0.2;
    -webkit-mask-image:
      linear-gradient(90deg, #000 0%, #000 22%, transparent 42%),
      linear-gradient(180deg, transparent 0%, #000 16%, #000 78%, transparent 100%);
    mask-image:
      linear-gradient(90deg, #000 0%, #000 22%, transparent 42%),
      linear-gradient(180deg, transparent 0%, #000 16%, #000 78%, transparent 100%);
  }

  .market-data-hero-shell {
    width: min(1240px, calc(100% - 32px));
    gap: 18px;
  }

  .market-data-hero-copy p:last-child {
    max-width: 100%;
    font-size: 1rem;
  }

  .market-data-hero-cta {
    width: 100%;
    justify-content: space-between;
  }

  .market-data-hero-visual {
    width: 100%;
    min-height: 270px;
    margin: 14px 0 0;
  }

  .market-data-hero-board {
    right: 34px;
    width: min(268px, calc(100% - 104px));
  }
}

@media (max-width: 560px) {
  .market-data-hero-label {
    margin-bottom: 14px;
    font-size: 0.84rem;
  }

  .market-data-hero-copy h1 {
    font-size: clamp(2.55rem, 12vw, 3.3rem);
    line-height: 0.98;
  }

  .market-data-hero-actions {
    margin-top: 22px;
  }

  .market-data-hero-visual {
    min-height: 238px;
  }

  .market-data-hero-utility {
    width: 50px;
    height: 50px;
    border-radius: 15px;
  }

  .market-data-hero-utility::before {
    inset: 14px;
  }

  .market-data-hero-utility::after {
    width: 58px;
  }

  .market-data-hero-utility--chart {
    top: 22px;
  }

  .market-data-hero-utility--upload {
    top: 98px;
  }

  .market-data-hero-utility--sheet {
    top: 174px;
  }

  .market-data-hero-board {
    right: 24px;
    width: min(238px, calc(100% - 92px));
    padding: 0 12px 12px;
  }

  .market-data-hero-chart {
    gap: 6px;
    height: 96px;
    padding: 16px 10px 10px;
  }

}

.market-data-section {
  padding: 24px 0;
}

.market-data-section--compact {
  padding: 0;
}

.market-data-source-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.market-data-source-card,
.market-data-step-card,
.market-data-checklist-card,
.market-data-validation-card,
.market-data-spec-card {
  border: 1px solid rgba(13, 91, 215, 0.11);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(18, 32, 61, 0.045);
}

.market-data-source-card,
.market-data-step-card,
.market-data-validation-card {
  padding: 16px;
}

.market-data-source-card {
  display: flex;
  flex-direction: column;
  min-height: 274px;
  padding: 22px 20px 20px;
  border-color: rgba(13, 91, 215, 0.12);
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.market-data-source-card:hover,
.market-data-source-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(47, 99, 214, 0.18);
  box-shadow: 0 18px 34px rgba(18, 32, 61, 0.075);
}

.market-data-source-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
  border: 1px solid rgba(13, 91, 215, 0.12);
  border-radius: 14px;
  background: linear-gradient(180deg, #f7faff 0%, #edf4ff 100%);
  color: #154fba;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.market-data-source-icon::before {
  content: "";
  display: block;
  width: 22px;
  height: 22px;
  background-color: currentColor;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
}

.market-data-source-icon--trading-platforms::before {
  mask-image: url("./assets/icons/lucide/file-down.svg");
  -webkit-mask-image: url("./assets/icons/lucide/file-down.svg");
}

.market-data-source-icon--brokers::before {
  mask-image: url("./assets/icons/lucide/landmark.svg");
  -webkit-mask-image: url("./assets/icons/lucide/landmark.svg");
}

.market-data-source-icon--public-data::before {
  mask-image: url("./assets/icons/lucide/globe.svg");
  -webkit-mask-image: url("./assets/icons/lucide/globe.svg");
}

.market-data-source-icon--vendors::before {
  mask-image: url("./assets/icons/lucide/database-zap.svg");
  -webkit-mask-image: url("./assets/icons/lucide/database-zap.svg");
}

.market-data-source-card h3,
.market-data-step-card h3,
.market-data-spec-card h3,
.market-data-validation-card strong {
  margin: 0 0 6px;
  font-size: 1.2rem;
}

.market-data-source-card p,
.market-data-step-card p,
.market-data-validation-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.market-data-source-card .inline-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 20px;
  font-weight: 600;
}

.market-data-source-link-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  background: currentColor;
  mask-image: url("./assets/icons/lucide/learn-more.svg");
  -webkit-mask-image: url("./assets/icons/lucide/learn-more.svg");
  mask-position: center;
  -webkit-mask-position: center;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-size: contain;
}

.market-data-helper-line {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.market-data-format-cta {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 56px 0 58px;
  padding: 24px 30px;
  border: 1px solid rgba(13, 91, 215, 0.12);
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(60, 107, 183, 0.08), transparent 30%),
    linear-gradient(145deg, #0b1830 0%, #102444 50%, #17355f 100%);
  color: #f5f8ff;
  box-shadow: 0 20px 40px rgba(18, 32, 61, 0.14);
}

.market-data-format-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 24, 48, 0.12) 0%, rgba(11, 24, 48, 0.12) 48%, rgba(11, 24, 48, 0.22) 66%, rgba(8, 18, 36, 0.4) 100%);
  z-index: 0;
  pointer-events: none;
}

.market-data-format-cta::after {
  content: "";
  position: absolute;
  inset: 0 0 0 36%;
  background:
    linear-gradient(90deg, rgba(10, 22, 43, 1) 0%, rgba(10, 22, 43, 0.95) 16%, rgba(10, 22, 43, 0.66) 38%, rgba(10, 22, 43, 0.22) 62%, rgba(10, 22, 43, 0.05) 100%),
    url("./assets/market-data/market_data_banner_full_background_01.jpg") left center / 100% 100% no-repeat;
  opacity: 0.92;
  z-index: 0;
  pointer-events: none;
}

.market-data-format-copy {
  position: relative;
  z-index: 2;
  flex: 1;
  max-width: 780px;
}

.market-data-format-cta p {
  margin: 10px 0 0;
  max-width: 74ch;
  color: rgba(245, 248, 255, 0.84);
  line-height: 1.65;
}

.market-data-format-cta h2 {
  margin: 0;
  font-size: 1.9rem;
}

.market-data-format-cta .header-chip {
  position: relative;
  z-index: 2;
  align-self: flex-end;
  margin-top: 10px;
}

.market-data-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
  margin: 0 0 56px;
}

.market-data-format-section {
  margin: 0 0 58px;
  scroll-margin-top: calc(var(--header-height) + 22px);
}

.market-data-quickstart-section {
  margin: 0 0 58px;
}

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

.market-data-step-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  column-gap: 14px;
  row-gap: 0;
  align-content: start;
  padding: 16px;
  border-color: rgba(13, 91, 215, 0.09);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 255, 0.92) 100%);
  box-shadow: 0 8px 18px rgba(18, 32, 61, 0.035);
}

.market-data-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  color: #f5f8ff;
  background: linear-gradient(180deg, #2d5ca7 0%, #17396b 100%);
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 0 0 4px rgba(45, 92, 167, 0.08),
    0 8px 16px rgba(23, 57, 107, 0.14);
}

.market-data-step-copy {
  padding-top: 2px;
}

.market-data-step-copy h3 {
  margin: 0;
}

.market-data-step-copy p {
  margin: 8px 0 0;
}

.market-data-spec-card {
  padding: 18px;
  border-color: rgba(13, 91, 215, 0.1);
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.market-data-checklist code,
.market-data-validation-card code {
  font-size: 0.88em;
}

.market-data-example-stack {
  display: grid;
  gap: 0;
}

.market-data-example-block {
  display: grid;
  gap: 14px;
  padding: 4px 0 0;
}

.market-data-example-block + .market-data-example-block {
  margin-top: 18px;
  padding-top: 20px;
  border-top: 1px solid rgba(13, 91, 215, 0.1);
}

.market-data-example-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.market-data-example-head h3 {
  margin: 0;
  font-size: 1rem;
}

.market-data-example-valid {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 10px 0 9px;
  border-radius: 999px;
  background: #f3fcf7;
  color: #027a48;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.market-data-example-valid::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: currentColor;
  flex: 0 0 12px;
  clip-path: polygon(16% 54%, 27% 43%, 45% 61%, 73% 29%, 84% 40%, 45% 79%);
}

.market-data-example-table-wrap {
  border: 1px solid rgba(13, 91, 215, 0.1);
  border-radius: 4px;
  overflow-x: auto;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(18, 32, 61, 0.035);
}

.market-data-example-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: #ffffff;
}

.market-data-example-table th,
.market-data-example-table td {
  padding: 11px 13px;
  border-top: 1px solid rgba(13, 91, 215, 0.08);
  border-right: 1px solid rgba(13, 91, 215, 0.08);
  text-align: left;
  font-size: 0.9rem;
}

.market-data-example-table th:last-child,
.market-data-example-table td:last-child {
  border-right: 0;
}

.market-data-example-table thead th {
  border-top: 0;
  border-bottom: 1px solid rgba(13, 91, 215, 0.08);
  font-size: 0.8rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 700;
}

.market-data-media-slot,
.market-data-validation-media-slot {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(13, 91, 215, 0.11);
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 254, 0.96) 100%);
  box-shadow: 0 12px 24px rgba(18, 32, 61, 0.045);
}

.market-data-media-slot > img,
.market-data-validation-media-slot > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 10px;
  box-sizing: border-box;
  display: block;
}

.market-data-checks-media-slot > img {
  object-fit: cover;
  padding: 0;
  transform: scale(1.03);
  transform-origin: center;
}

.market-data-final-cta {
  padding: 8px 0 0;
}

.market-data-final-cta-card {
  max-width: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 28px;
  border: 1px solid rgba(148, 183, 242, 0.18);
  border-radius: 16px;
  background: linear-gradient(145deg, #16284a 0%, #102444 52%, #0f1e36 100%);
  color: #f5f8ff;
  text-align: left;
  box-shadow: 0 16px 30px rgba(18, 32, 61, 0.11);
}

.market-data-final-cta-copy {
  flex: 1 1 620px;
  max-width: 640px;
}

.market-data-final-cta-card h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.15rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.market-data-final-cta-card p {
  margin: 12px 0 0;
  max-width: 56ch;
  color: rgba(245, 248, 255, 0.8);
  line-height: 1.6;
}

.market-data-final-cta-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  align-self: center;
  justify-content: flex-end;
  margin-top: 0;
}

.market-data-final-cta-actions .load-button {
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  background: #ffffff;
  color: #16284a;
  box-shadow: 0 12px 24px rgba(5, 15, 32, 0.2);
}

.market-data-final-cta-actions .load-button:hover,
.market-data-final-cta-actions .load-button:focus-visible {
  background: #f7f9fc;
  color: #102444;
}

.page-shell.page-shell--faq {
  padding-top: 0;
  padding-bottom: 36px;
}

.faq-hero {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 0 0 4px;
  border-bottom: 1px solid rgba(13, 91, 215, 0.06);
  background:
    radial-gradient(circle at 17% 22%, rgba(190, 220, 255, 0.24) 0%, rgba(190, 220, 255, 0) 28%),
    linear-gradient(180deg, #f3f8ff 0%, #edf4ff 56%, #f8fbff 100%);
}

.faq-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr);
  align-items: center;
  gap: 20px;
  width: min(100%, 1060px);
  margin: 0 auto;
  padding: 28px 24px 10px;
}

.faq-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: 0;
  text-align: left;
}

.faq-hero-copy h1 {
  margin: 0;
  font-size: clamp(2.05rem, 4vw, 3rem);
  line-height: 1.02;
}

.faq-hero-copy p:last-child {
  margin: 16px 0 0;
  max-width: 52ch;
  color: var(--muted);
  line-height: 1.6;
}

.faq-hero-copy::after {
  display: none;
}

.faq-search-shell {
  width: min(100%, 480px);
  margin: 20px 0 0;
}

.faq-search-input {
  width: 100%;
  height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(13, 91, 215, 0.12);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 22px rgba(18, 32, 61, 0.04);
  color: var(--text);
  font: inherit;
}

.faq-search-input::placeholder {
  color: #7a889b;
}

.faq-search-input:focus {
  outline: none;
  border-color: rgba(13, 91, 215, 0.24);
  box-shadow: var(--control-focus-ring);
}

.faq-hero-visual {
  position: relative;
  min-height: 214px;
}

@media (max-width: 1023px) {
  body.faq-inter-page .faq-hero-panel {
    grid-template-columns: 1fr;
    padding: 28px 22px 24px;
    gap: 18px;
  }

  body.faq-inter-page .faq-hero-visual {
    display: none;
  }
}

.faq-hero-orb {
  position: absolute;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(225, 236, 255, 0.82) 100%);
  box-shadow:
    0 18px 36px rgba(83, 126, 211, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.faq-hero-orb--large {
  top: 6px;
  right: 48px;
  width: 170px;
  height: 136px;
  border-radius: 48% 48% 46% 46%;
}

.faq-hero-orb--small {
  right: 0;
  top: 34px;
  width: 78px;
  height: 124px;
  opacity: 0.46;
}

.faq-hero-dots {
  position: absolute;
  top: 30px;
  right: 110px;
  width: 124px;
  height: 88px;
  opacity: 0.3;
  background-image: radial-gradient(circle, rgba(76, 127, 208, 0.36) 1.2px, transparent 1.2px);
  background-size: 12px 12px;
}

.faq-hero-badge {
  position: absolute;
  right: 56px;
  bottom: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border-radius: 999px;
  background: linear-gradient(180deg, #4d95ff 0%, #2f74df 60%, #255fca 100%);
  box-shadow:
    0 16px 32px rgba(47, 116, 223, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
  color: #ffffff;
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1;
}

.faq-layout {
  position: relative;
  display: grid;
  grid-template-columns: 248px minmax(0, 780px);
  justify-content: center;
  gap: 32px;
  align-items: start;
  padding-top: 18px;
}

.faq-layout::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 266px);
  width: 1px;
  background: rgba(13, 91, 215, 0.08);
  pointer-events: none;
}

.faq-topic-nav {
  position: sticky;
  top: calc(var(--header-height) + 30px);
  display: grid;
  gap: 6px;
  padding: 4px 18px 4px 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.faq-topic-nav-head {
  padding: 0 2px 10px;
}

.faq-topic-nav-head h2 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: #16263b;
}

.faq-topic-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #4d617b;
  text-decoration: none;
  font-weight: 600;
  transition:
    color 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.faq-topic-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  background-color: #5f7390;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.faq-topic-icon--product {
  -webkit-mask-image: url("./assets/icons/lucide/info-icon.svg");
  mask-image: url("./assets/icons/lucide/info-icon.svg");
}

.faq-topic-icon--strategy {
  -webkit-mask-image: url("./assets/icons/lucide/activity.svg");
  mask-image: url("./assets/icons/lucide/activity.svg");
}

.faq-topic-icon--market {
  -webkit-mask-image: url("./assets/icons/lucide/file-spreadsheet.svg");
  mask-image: url("./assets/icons/lucide/file-spreadsheet.svg");
}

.faq-topic-icon--results {
  -webkit-mask-image: url("./assets/icons/lucide/file-box.svg");
  mask-image: url("./assets/icons/lucide/file-box.svg");
}

.faq-topic-icon--credits {
  -webkit-mask-image: url("./assets/icons/lucide/coins.svg");
  mask-image: url("./assets/icons/lucide/coins.svg");
}

.faq-topic-icon--account {
  -webkit-mask-image: url("./assets/icons/lucide/help-center.svg");
  mask-image: url("./assets/icons/lucide/help-center.svg");
}

.faq-topic-nav a:hover {
  background: rgba(237, 243, 255, 0.78);
  border-color: rgba(47, 111, 238, 0.12);
  color: #16499d;
}

.faq-topic-nav a:hover .faq-topic-icon {
  background-color: #16499d;
}

.faq-topic-nav a.is-active {
  border-color: rgba(47, 111, 238, 0.18);
  color: #123e82;
  background: rgba(229, 239, 255, 0.9);
  font-weight: 700;
  box-shadow:
    inset 0 0 0 1px rgba(47, 111, 238, 0.08),
    0 6px 16px rgba(28, 83, 176, 0.06);
}

.faq-topic-nav a.is-active .faq-topic-icon,
.faq-group-title .faq-topic-icon {
  background-color: #1c56ba;
}

.faq-content {
  display: grid;
  gap: 20px;
  max-width: 780px;
  padding-left: 20px;
}

.faq-search-empty-state {
  display: grid;
  justify-items: start;
  gap: 10px;
  padding: 24px;
  border: 1px solid rgba(13, 91, 215, 0.09);
  border-radius: var(--workspace-card-radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 250, 255, 0.94) 100%);
  box-shadow: 0 12px 24px rgba(18, 32, 61, 0.04);
}

.faq-search-empty-state.is-hidden {
  display: none !important;
}

.faq-search-empty-state h2 {
  margin: 0;
  font-size: 1.08rem;
  color: #16263b;
}

.faq-search-empty-state p {
  margin: 0;
  color: #58677b;
  line-height: 1.6;
}

.faq-search-highlight {
  display: inline;
  margin: 0;
  padding: 0 1px;
  border-radius: 3px;
  background: #dbeafe;
  color: #163f78;
  line-height: inherit;
}

.faq-group {
  padding: 0;
  border: 1px solid rgba(13, 91, 215, 0.09);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(18, 32, 61, 0.04);
  overflow: hidden;
}

.faq-group-head {
  margin: 0;
  padding: 18px 20px 12px;
  border-bottom: 1px solid rgba(13, 91, 215, 0.06);
  background: rgba(255, 255, 255, 0.98);
}

.faq-group {
  scroll-margin-top: calc(var(--header-height) + 34px);
}

.faq-group-head h2 {
  margin: 0;
  font-size: 1.16rem;
  color: #16263b;
}

.faq-group-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.faq-item {
  margin: 0 16px;
  border-top: 1px solid rgba(13, 91, 215, 0.08);
  transition:
    background 0.18s ease,
    color 0.18s ease;
}

.faq-item:first-of-type {
  border-top: 0;
  margin-top: 12px;
}

.faq-item:last-of-type {
  margin-bottom: 14px;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 17px 2px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition:
    color 0.18s ease,
    background 0.18s ease;
}

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

.faq-item summary,
.strategy-costs-accordion summary {
  transition: color 0.18s ease;
}

.faq-item summary::after {
  content: "+";
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1;
  flex-shrink: 0;
  margin-left: auto;
}

.faq-item:hover summary {
  color: #123e82;
}

.faq-item[open] {
  background: transparent;
}

.faq-item[open] summary {
  color: #123e82;
}

.faq-item[open] summary::after {
  content: "-";
  color: #1f58d9;
}

.faq-item p {
  margin: 0;
  padding: 0 30px 20px 2px;
  color: #58677b;
  line-height: 1.68;
  max-width: 680px;
}

.faq-support-cta {
  padding: 24px 0 0;
  display: grid;
  grid-template-columns: 248px minmax(0, 780px);
  justify-content: center;
  gap: 32px;
}

.faq-support-card {
  grid-column: 2;
  width: 100%;
  max-width: 780px;
  margin: 0;
  padding: 24px;
  border: 1px solid rgba(13, 91, 215, 0.09);
  border-radius: var(--workspace-card-radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 250, 255, 0.94) 100%);
  box-shadow: 0 14px 28px rgba(18, 32, 61, 0.05);
}

.faq-support-card .load-button,
.faq-support-card .button-secondary {
  border-radius: var(--control-radius);
}

.faq-support-card h2 {
  font-size: 1.45rem;
}

.faq-support-card p {
  margin-top: 8px;
  max-width: 48ch;
}

body.pricing-inter-page .page-shell--pricing {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: none;
  margin: 0;
  padding-top: 20px;
  padding-bottom: 34px;
  overflow: hidden;
  background: linear-gradient(135deg, #e8f2ff 0%, #d8e8ff 42%, #cfe1fb 100%);
}

body.pricing-inter-page .page-shell--pricing::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.58) 0%, rgba(255, 255, 255, 0.2) 26%, rgba(255, 255, 255, 0) 58%);
}

body.pricing-inter-page .page-shell--pricing::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.48;
  background-image: radial-gradient(circle, rgba(79, 119, 185, 0.18) 1.35px, transparent 1.85px);
  background-size: 22px 22px;
  background-repeat: repeat;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, #000 7%, #000 24%, transparent 37%, transparent 63%, #000 76%, #000 93%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 16%, #000 76%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0%, #000 7%, #000 24%, transparent 37%, transparent 63%, #000 76%, #000 93%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 16%, #000 76%, transparent 100%);
  mask-composite: intersect;
}

body.pricing-inter-page .page-shell--pricing > * {
  position: relative;
  z-index: 1;
}

.pricing-hero {
  padding: 14px 0 8px;
  width: min(var(--page-max-width), calc(100% - 32px));
  margin: 0 auto;
}

.pricing-hero-copy {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.pricing-hero-copy h1 {
  margin: 0;
  font-size: clamp(2.65rem, 4.6vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.pricing-hero-copy > p {
  margin: 12px auto 0;
  max-width: 56ch;
  color: #5f728d;
  font-size: 1rem;
  line-height: 1.6;
}

.pricing-plans {
  width: min(920px, calc(100% - 32px));
  max-width: none;
  margin: 18px auto 0;
}

.pricing-currency-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 42px;
  flex-wrap: wrap;
}

.pricing-currency-label {
  color: #435870;
  font-size: 0.86rem;
  font-weight: 700;
}

.pricing-currency-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  gap: 8px;
  margin: 0;
  padding: 5px;
  border: 1px solid rgba(13, 91, 215, 0.12);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.98) 0%, rgba(242, 247, 255, 0.92) 100%);
  box-shadow: 0 10px 24px rgba(18, 32, 61, 0.04);
}

.pricing-currency-button {
  min-width: 58px;
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #4c6180;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.pricing-currency-button:hover,
.pricing-currency-button:focus-visible {
  outline: none;
  color: #163d7b;
  background: rgba(13, 91, 215, 0.08);
}

.pricing-currency-button.is-active {
  background: linear-gradient(180deg, #2d67ea 0%, #1f58d9 100%);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(31, 88, 217, 0.18);
}

.pricing-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: none;
  margin: 0;
  gap: 18px;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 48px 44px auto 1fr;
  gap: 12px;
  padding: 24px;
  align-content: start;
  border: 1px solid rgba(13, 91, 215, 0.12);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(250, 252, 255, 0.98) 100%);
  box-shadow: 0 18px 42px rgba(18, 32, 61, 0.065);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.pricing-card--featured {
  border-color: rgba(37, 99, 235, 0.55);
  background: linear-gradient(180deg, rgba(252, 253, 255, 1) 0%, rgba(246, 250, 255, 0.98) 100%);
  box-shadow:
    0 22px 48px rgba(37, 99, 235, 0.13),
    0 0 0 1px rgba(37, 99, 235, 0.16);
}

.pricing-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 40px rgba(18, 32, 61, 0.09);
  border-color: rgba(47, 99, 214, 0.26);
}

.pricing-card--featured:hover {
  border-color: rgba(37, 99, 235, 0.68);
  box-shadow:
    0 24px 44px rgba(18, 32, 61, 0.12),
    0 0 0 1px rgba(110, 164, 255, 0.22);
}

.pricing-card-head {
  display: grid;
  grid-template-rows: 28px 54px 42px;
  gap: 9px;
  align-content: start;
  position: relative;
}

.pricing-card-head h2 {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.34rem;
  letter-spacing: 0;
}

.pricing-card-title-icon {
  width: 21px;
  height: 21px;
  display: inline-block;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  color: #1d4f95;
}

.pricing-card-title-icon--basic {
  -webkit-mask-image: url("./assets/icons/lucide/shield.svg");
  mask-image: url("./assets/icons/lucide/shield.svg");
}

.pricing-card-title-icon--pro {
  -webkit-mask-image: url("./assets/icons/lucide/crown.svg");
  mask-image: url("./assets/icons/lucide/crown.svg");
  width: 23px;
  height: 23px;
}

.pricing-card-head p {
  margin: 0;
  max-width: 42ch;
  line-height: 1.58;
}

.pricing-card-price {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 2.24rem;
  line-height: 1;
  letter-spacing: 0;
  align-self: center;
}

.pricing-card-price--promo {
  color: #2563eb;
}

.pricing-card-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  align-self: center;
  width: 100%;
}

.pricing-price-support {
  display: grid;
  gap: 4px;
  min-height: 48px;
  align-content: center;
}

.pricing-price-amount {
  font-size: 1em;
  font-weight: 700;
}

.pricing-price-unit {
  font-size: 0.48em;
  font-weight: 500;
  color: #6c7d94;
  letter-spacing: 0;
}

.pricing-card-price s {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: #22395b;
  text-decoration-thickness: 1.5px;
  text-decoration-color: rgba(34, 57, 91, 0.45);
}

.pricing-offer-text {
  margin: 0;
  color: #1d4f95;
  font-size: 0.87rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.pricing-price-regular {
  margin: 0;
  color: #516881;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.45;
}

.pricing-card-meta {
  margin: 0;
  color: #4a607c;
  font-size: 0.86rem;
  line-height: 1.45;
  min-height: 48px;
  align-content: center;
}

.pricing-feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 11px;
}

.pricing-feature-list li {
  position: relative;
  padding-left: 20px;
  line-height: 1.5;
  color: #314760;
}

.pricing-feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  display: block;
  border-radius: 999px;
  background: #2d67ea;
  box-shadow: 0 0 0 4px rgba(45, 103, 234, 0.08);
}

.pricing-card-cta {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  height: 44px;
  border-radius: 8px;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
}

.pricing-card-divider {
  height: 1px;
  background: rgba(13, 91, 215, 0.12);
}

.pricing-card-note {
  margin: 2px 0 0;
  color: #6a7c95;
  font-size: 0.8rem;
}

.pricing-card-features {
  display: grid;
  gap: 12px;
  padding: 16px 18px 15px;
  border: 1px solid rgba(13, 91, 215, 0.08);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(250, 252, 255, 0.9) 0%, rgba(246, 249, 255, 0.74) 100%);
}

.pricing-card-badge {
  position: static;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 0 12px;
  border: 1px solid rgba(180, 120, 28, 0.18);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 250, 237, 0.98) 0%, rgba(255, 244, 221, 0.94) 100%);
  color: #8a5b12;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 10px 20px rgba(138, 91, 18, 0.12);
  flex: 0 0 auto;
}

.pricing-card-badge-icon {
  width: 14px;
  height: 14px;
  display: inline-block;
  flex: 0 0 auto;
  background: currentColor;
  opacity: 0.78;
  -webkit-mask-image: url("./assets/icons/lucide/credit-card.svg");
  mask-image: url("./assets/icons/lucide/credit-card.svg");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.pricing-card .pricing-card-cta--primary {
  border-color: #1d57d8;
  border-radius: 8px;
  background: linear-gradient(180deg, #2d67ea 0%, #1f58d9 100%);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(31, 88, 217, 0.18);
}

.pricing-card .pricing-card-cta--primary:hover,
.pricing-card .pricing-card-cta--primary:focus-visible {
  background: linear-gradient(180deg, #235fdc 0%, #184cc0 100%);
  border-color: #184cc0;
  color: #ffffff;
}

.pricing-card .pricing-card-cta--secondary {
  border-color: rgba(47, 99, 214, 0.28);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(239, 246, 255, 0.98) 100%);
  color: #1c53c8;
  box-shadow:
    0 10px 20px rgba(18, 32, 61, 0.045),
    0 0 0 1px rgba(47, 99, 214, 0.04);
}

.pricing-card .pricing-card-cta--secondary:hover,
.pricing-card .pricing-card-cta--secondary:focus-visible {
  border-color: rgba(47, 99, 214, 0.38);
  background: linear-gradient(180deg, rgba(248, 251, 255, 1) 0%, rgba(230, 240, 255, 0.98) 100%);
  color: #184cc0;
  transform: translateY(-1px);
  box-shadow:
    0 12px 22px rgba(18, 32, 61, 0.055),
    0 0 0 1px rgba(47, 99, 214, 0.06);
}

.pricing-credit-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 920px;
  margin: 24px auto 0;
  padding: 14px 18px;
  border: 1px solid rgba(13, 91, 215, 0.1);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(249, 252, 255, 0.96) 0%, rgba(244, 248, 255, 0.9) 100%);
  box-shadow: 0 10px 24px rgba(18, 32, 61, 0.035);
  text-align: left;
}

.pricing-credit-note-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(47, 99, 214, 0.18);
  border-radius: 999px;
  background: rgba(47, 99, 214, 0.08);
  color: #2d67ea;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
}

.pricing-credit-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.pricing-support-prompt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 14px 0 0;
  padding: 18px 20px;
  border: 1px solid rgba(13, 91, 215, 0.12);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 250, 255, 0.9) 100%);
  box-shadow: 0 16px 36px rgba(18, 32, 61, 0.055);
}

.pricing-support-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.pricing-support-copy h2 {
  margin: 0;
  color: #13243f;
  font-size: 1.06rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.pricing-support-copy p {
  margin: 5px 0 0;
  color: #5f728d;
  font-size: 0.88rem;
  line-height: 1.48;
}

.pricing-support-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.pricing-support-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(47, 99, 214, 0.16);
  border-radius: 8px;
  background: rgba(248, 251, 255, 0.86);
  color: #1f58d9;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
  transform 0.18s ease;
}

.pricing-support-link:hover,
.pricing-support-link:focus-visible {
  outline: none;
  border-color: rgba(47, 99, 214, 0.26);
  background: rgba(239, 246, 255, 0.96);
  color: #184cc0;
  transform: translateY(-1px);
}

.pricing-inter-page {
  scrollbar-gutter: stable both-edges;
}

.pricing-request-modal-shell {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  min-height: 100dvh;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vw, 24px);
  overflow-y: auto;
}

.pricing-request-modal-shell.is-hidden {
  display: none;
}

.pricing-request-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
}

.pricing-request-modal-card {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: calc(100dvh - 32px);
  display: grid;
  gap: 18px;
  padding: 24px;
  overflow-y: auto;
  border: 1px solid rgba(13, 91, 215, 0.12);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 28px 56px rgba(15, 23, 42, 0.18);
}

.pricing-request-modal-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.pricing-request-modal-head h2 {
  margin: 0;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.pricing-request-modal-head p {
  margin: 8px 0 0;
  color: #55657b;
  line-height: 1.55;
}

.pricing-request-modal-close {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(13, 91, 215, 0.14);
  border-radius: 8px;
  background: #ffffff;
  color: #385171;
  font: inherit;
  font-size: 1rem;
  cursor: pointer;
}

.pricing-request-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.pricing-request-modal-actions .load-button,
.pricing-request-modal-actions .button-secondary {
  min-height: 40px;
  border-radius: 8px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
}

.pricing-request-modal-actions .load-button {
  border-color: #1d57d8;
  background: linear-gradient(180deg, #2d67ea 0%, #1f58d9 100%);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(31, 88, 217, 0.18);
}

.pricing-request-modal-actions .load-button:hover,
.pricing-request-modal-actions .load-button:focus-visible {
  background: linear-gradient(180deg, #235fdc 0%, #184cc0 100%);
}

.pricing-request-modal-actions .button-secondary {
  border-color: rgba(47, 99, 214, 0.22);
  background: rgba(248, 251, 255, 0.92);
  color: #1c53c8;
  box-shadow: none;
}

.pricing-request-modal-actions .button-secondary:hover,
.pricing-request-modal-actions .button-secondary:focus-visible {
  background: rgba(239, 246, 255, 0.98);
  border-color: rgba(47, 99, 214, 0.32);
  color: #184cc0;
}

.pricing-request-modal-actions.is-hidden {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .pricing-card {
    transition: none;
  }

  .pricing-card:hover {
    transform: none;
  }
}

@media (max-width: 768px) {
  body.pricing-inter-page .pricing-card {
    gap: 14px;
  }

  body.pricing-inter-page .pricing-card-head {
    gap: 12px;
  }

  body.pricing-inter-page .pricing-card-head h2 {
    align-items: flex-start;
  }

  body.pricing-inter-page .pricing-card-head p {
    max-width: none;
  }

  body.pricing-inter-page .pricing-card-price {
    align-self: flex-start;
  }

  body.pricing-inter-page .pricing-card-price-row {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 6px;
  }

  body.pricing-inter-page .pricing-price-support {
    gap: 2px;
  }

  body.pricing-inter-page .pricing-card-badge {
    align-self: flex-start;
  }

  body.pricing-inter-page .pricing-card-features {
    padding: 14px 16px 13px;
  }

  body.pricing-inter-page .page-shell--pricing::after {
    opacity: 0.22;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 74%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 74%, transparent 100%);
    -webkit-mask-composite: source-over;
    mask-composite: add;
  }
}

.page-shell--help-center {
  width: 100%;
  max-width: none;
  padding-top: 16px;
  padding-bottom: 28px;
}

.help-center-container {
  width: min(1120px, calc(100% - 144px));
  margin: 0 auto;
}

.help-center-hero {
  padding: 10px 0 10px;
}

.help-center-hero-copy {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.help-center-hero-copy h1 {
  margin: 2px 0 0;
  font-size: clamp(2.75rem, 6vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.help-center-hero-copy p:last-child {
  margin: 10px auto 0;
  max-width: 68ch;
  color: var(--muted);
  line-height: 1.6;
}

.help-center-search-shell {
  position: relative;
  max-width: 760px;
  margin: 16px auto 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  min-height: 50px;
  border: 1px solid rgba(13, 91, 215, 0.1);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(18, 32, 61, 0.05);
}

.help-center-search-icon {
  color: var(--muted);
  font-size: 1rem;
}

.help-center-search-shell input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
}

.help-center-search-shell input::placeholder {
  color: #7c8ca2;
}

.help-center-search-shell:focus-within {
  border-color: rgba(47, 99, 214, 0.2);
  box-shadow: 0 16px 32px rgba(18, 32, 61, 0.08);
}

.help-center-search-suggestions {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 10;
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(226, 232, 240, 0.96);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 44px rgba(18, 32, 61, 0.12);
  backdrop-filter: blur(10px);
}

.help-center-search-suggestions[hidden] {
  display: none !important;
}

.help-center-search-result {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #162033;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}

.help-center-search-result:hover,
.help-center-search-result:focus-visible {
  border-color: rgba(47, 99, 214, 0.16);
  background: #f7faff;
}

.help-center-search-result:hover .help-center-search-result-copy strong,
.help-center-search-result:focus-visible .help-center-search-result-copy strong,
.help-center-search-result:hover .help-center-search-result-type,
.help-center-search-result:focus-visible .help-center-search-result-type {
  color: #2f63d6;
}

.help-center-search-result-copy {
  display: grid;
  gap: 3px;
}

.help-center-search-result-copy strong {
  font-size: 0.95rem;
  font-weight: 400;
  color: inherit;
}

.help-center-search-result-copy small {
  color: #6a7d97;
  font-size: 0.8rem;
  line-height: 1.45;
}

.help-center-search-result-type {
  flex: 0 0 auto;
  padding-top: 2px;
  color: #2f63d6;
  font-size: 0.78rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.help-center-search-empty {
  padding: 13px 14px;
  border-radius: 10px;
  background: #f8fbff;
  color: #61738d;
  font-size: 0.9rem;
  line-height: 1.5;
}

.help-center-section {
  padding: 16px 0;
}

.help-center-section--compact {
  padding: 0;
}

.help-center-kb > .landing-section-header h2,
.help-center-bottom-grid .landing-section-header h2 {
  font-weight: 600;
}

.help-center-topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.help-center-topic-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
  width: 100%;
  padding: 22px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(18, 32, 61, 0.04);
  justify-items: center;
  text-align: center;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.help-center-topic-card:hover,
.help-center-topic-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(47, 99, 214, 0.16);
  box-shadow: 0 18px 34px rgba(18, 32, 61, 0.08);
}

.help-center-topic-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2f63d6;
}

.help-center-topic-icon::before,
.help-center-kb-category-icon::before {
  content: "";
  display: block;
  background-color: currentColor;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
}

.help-center-topic-icon {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: #eef4ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
  transition:
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.help-center-topic-icon::before {
  width: 22px;
  height: 22px;
}

.help-center-topic-icon--getting-started::before {
  mask-image: url("./assets/icons/lucide/circle-play.svg");
  -webkit-mask-image: url("./assets/icons/lucide/circle-play.svg");
}

.help-center-topic-icon--market-data::before {
  mask-image: url("./assets/icons/lucide/file-spreadsheet.svg");
  -webkit-mask-image: url("./assets/icons/lucide/file-spreadsheet.svg");
}

.help-center-topic-icon--strategy-testing::before {
  mask-image: url("./assets/icons/lucide/route.svg");
  -webkit-mask-image: url("./assets/icons/lucide/route.svg");
}

.help-center-topic-icon--understanding-results::before {
  mask-image: url("./assets/icons/lucide/file-chart-line.svg");
  -webkit-mask-image: url("./assets/icons/lucide/file-chart-line.svg");
}

.help-center-topic-icon--account-billing::before {
  mask-image: url("./assets/icons/lucide/user.svg");
  -webkit-mask-image: url("./assets/icons/lucide/user.svg");
}

.help-center-topic-icon--troubleshooting::before {
  mask-image: url("./assets/icons/lucide/triangle-alert.svg");
  -webkit-mask-image: url("./assets/icons/lucide/triangle-alert.svg");
}

.help-center-topic-card:hover .help-center-topic-icon,
.help-center-topic-card:focus-visible .help-center-topic-icon {
  background: #2f63d6;
  color: #ffffff;
  box-shadow: 0 10px 20px -12px rgba(47, 99, 214, 0.6);
}

.help-center-topic-card-copy {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.help-center-topic-card-copy strong {
  margin: 0;
  color: #162033;
  font-size: 1.04rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 600;
}

.help-center-topic-card-copy span {
  color: #61738d;
  line-height: 1.55;
}

.help-center-topic-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 2px;
}

.help-center-topic-count {
  color: #2f63d6;
  font-size: 0.82rem;
  font-weight: 500;
}

.help-center-topic-arrow {
  color: #2f63d6;
  font-size: 0.92rem;
  opacity: 0.72;
}

.help-center-kb-detail {
  display: grid;
  gap: 18px;
  width: min(760px, 100%);
  margin: 0 auto;
}

.help-center-kb-detail[hidden],
.help-center-kb-landing[hidden],
.help-center-kb-category-view[hidden],
.help-center-kb-article-view[hidden],
[data-help-center-landing-block][hidden] {
  display: none !important;
}

.help-center-kb-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 24px 0 0;
  width: 100%;
  margin-bottom: 12px;
}

.help-center-kb-breadcrumb--article {
  padding-top: 0;
  margin-bottom: 16px;
}

.help-center-kb-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: #2f63d6;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.help-center-kb-back:hover {
  color: #0a4bb3;
}

.help-center-kb-crumbs {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  margin: 0;
  color: #6e7e96;
  font-size: 0.78rem;
}

.help-center-kb-crumb-link {
  padding: 0;
  border: 0;
  background: none;
  color: #2f63d6;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

.help-center-kb-crumb-link:hover,
.help-center-kb-crumb-link:focus-visible {
  color: #0a4bb3;
}

.help-center-search-shell--detail {
  width: min(430px, 100%);
  max-width: 430px;
  margin: -2px auto 0;
  min-height: 42px;
  padding: 0 9px;
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(18, 32, 61, 0.04);
}

.help-center-kb-head {
  display: grid;
  gap: 8px;
  padding: 24px;
  border: 1px solid rgba(13, 91, 215, 0.1);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: var(--surface-shadow-soft);
}

.help-center-kb-head h3 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.help-center-kb-head p:last-child {
  margin: 0;
  color: #5f738d;
  line-height: 1.6;
}

.help-center-kb-list {
  display: grid;
  border: 1px solid rgba(13, 91, 215, 0.08);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(18, 32, 61, 0.04);
}

.help-center-kb-method-selector {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.help-center-kb-method-selector[hidden] {
  display: none !important;
}

.help-center-kb-method-label {
  color: #5f738d;
  font-size: 0.82rem;
  font-weight: 600;
}

.help-center-kb-method-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.help-center-kb-method-tab {
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid rgba(13, 91, 215, 0.18);
  border-radius: 10px;
  background: #ffffff;
  color: #31506f;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.help-center-kb-method-tab[aria-selected="true"] {
  border-color: #0a4bb3;
  background: #0a4bb3;
  color: #ffffff;
}

.help-center-kb-method-tab:hover,
.help-center-kb-method-tab:focus-visible {
  border-color: #2f63d6;
  color: #0a4bb3;
}

.help-center-kb-method-tab[aria-selected="true"]:hover,
.help-center-kb-method-tab[aria-selected="true"]:focus-visible {
  color: #ffffff;
}

.help-center-kb-category-heading {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding-top: 6px;
  margin-bottom: 18px;
}

.help-center-kb-category-icon {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #162033;
  box-shadow: none;
}

.help-center-kb-category-icon::before {
  width: 21px;
  height: 21px;
}

.help-center-kb-category-icon--getting-started::before {
  mask-image: url("./assets/icons/lucide/circle-play.svg");
  -webkit-mask-image: url("./assets/icons/lucide/circle-play.svg");
}

.help-center-kb-category-icon--market-data::before {
  mask-image: url("./assets/icons/lucide/file-spreadsheet.svg");
  -webkit-mask-image: url("./assets/icons/lucide/file-spreadsheet.svg");
}

.help-center-kb-category-icon--strategy-testing::before {
  mask-image: url("./assets/icons/lucide/route.svg");
  -webkit-mask-image: url("./assets/icons/lucide/route.svg");
}

.help-center-kb-category-icon--understanding-results::before {
  mask-image: url("./assets/icons/lucide/file-chart-line.svg");
  -webkit-mask-image: url("./assets/icons/lucide/file-chart-line.svg");
}

.help-center-kb-category-icon--account-billing::before {
  mask-image: url("./assets/icons/lucide/user.svg");
  -webkit-mask-image: url("./assets/icons/lucide/user.svg");
}

.help-center-kb-category-icon--troubleshooting::before {
  mask-image: url("./assets/icons/lucide/triangle-alert.svg");
  -webkit-mask-image: url("./assets/icons/lucide/triangle-alert.svg");
}

.help-center-kb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 16px 18px;
  border: 0;
  border-bottom: 1px solid rgba(13, 91, 215, 0.08);
  border-radius: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition:
      background 0.18s ease,
      color 0.18s ease;
  }

.help-center-kb-row:last-child {
  border-bottom: 0;
}

.help-center-kb-row:hover,
.help-center-kb-row:focus-visible {
  transform: none;
  border-color: transparent;
  box-shadow: none;
  background: #f8fbff;
}

.help-center-kb-row:hover .help-center-kb-row-copy strong,
.help-center-kb-row:focus-visible .help-center-kb-row-copy strong,
.help-center-kb-row:hover .help-center-kb-row-arrow,
.help-center-kb-row:focus-visible .help-center-kb-row-arrow {
  color: #2f63d6;
}

.help-center-kb-row-copy {
  display: grid;
  gap: 4px;
}

.help-center-kb-row-copy strong {
  color: #162033;
  font-size: 0.96rem;
  font-weight: 500;
  transition: color 0.18s ease;
}

.help-center-kb-row-copy small {
  color: #7c8ca2;
  font-size: 0.78rem;
}

.help-center-kb-row-arrow {
  color: #2f63d6;
  font-size: 0.95rem;
  transition: color 0.18s ease;
}

.help-center-kb-category-title {
  margin: 0;
  font-size: clamp(1.55rem, 2.2vw, 1.9rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: #162033;
}

.help-center-kb-category-heading .help-center-kb-category-icon {
  align-self: center;
  margin-left: 2px;
}

.help-center-kb-footer-back {
  display: flex;
  justify-content: center;
  padding-top: 18px;
}

.help-center-kb-back--centered {
  justify-content: center;
}

.help-center-kb-article-view {
  display: grid;
  gap: 18px;
}

.help-center-kb-article-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.help-center-kb-title-back {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: none;
  color: #2f63d6;
  cursor: pointer;
}

.help-center-kb-title-back-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: currentColor;
}

.help-center-kb-title-back-icon::before {
  content: "";
  display: block;
  width: 22px;
  height: 22px;
  background-color: currentColor;
  mask: url("./assets/icons/lucide/chevron-left.svg") center / contain no-repeat;
  -webkit-mask: url("./assets/icons/lucide/chevron-left.svg") center / contain no-repeat;
}

.help-center-kb-title-back:hover,
.help-center-kb-title-back:focus-visible {
  color: #0a4bb3;
}

.help-center-kb-article-heading h3 {
  margin: 0;
  font-size: clamp(1.55rem, 2.2vw, 1.9rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: #162033;
}

.help-center-kb-article-body {
  padding: 24px;
  border: 1px solid rgba(13, 91, 215, 0.08);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--surface-shadow-soft);
}

.help-center-kb-article-body p {
  margin: 0;
  color: #1f2937;
  line-height: 1.75;
}

.help-center-kb-article-body > [data-help-center-article-body] {
  display: grid;
  gap: 0;
}

.help-center-kb-article-body p + p {
  margin-top: 14px;
}

.help-center-kb-article-body h4 {
  margin: 28px 0 10px;
  color: #162033;
  font-size: 1.08rem;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.help-center-kb-article-body h4:first-child {
  margin-top: 0;
}

.help-center-kb-article-body p + h4,
.help-center-kb-article-body ul + h4,
.help-center-kb-article-body ol + h4,
.help-center-kb-article-choice + h4,
.help-center-kb-article-question + h4,
.help-center-kb-article-path + h4,
.help-center-kb-article-sequence + h4,
.help-center-kb-article-process + h4 {
  margin-top: 30px;
}

.help-center-kb-article-list {
  display: grid;
  gap: 7px;
  margin: 10px 0 0;
  padding-left: 1.35rem;
  color: #1f2937;
  line-height: 1.65;
}

.help-center-kb-article-list li {
  padding-left: 4px;
}

.help-center-kb-article-choice,
.help-center-kb-article-question {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  padding: 12px 14px;
  border-left: 3px solid rgba(47, 99, 214, 0.42);
  border-radius: 6px;
  background: #f7faff;
}

.help-center-kb-article-choice strong,
.help-center-kb-article-question strong {
  color: #162033;
  font-size: 0.96rem;
  font-weight: 600;
}

.help-center-kb-article-choice p,
.help-center-kb-article-question p {
  margin: 0;
}

.help-center-kb-article-path {
  margin-top: 10px;
  padding: 13px 16px;
  border: 1px solid rgba(47, 99, 214, 0.16);
  border-radius: 8px;
  background: #f7faff;
  color: #0a4bb3;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
}

.help-center-kb-article-sequence {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.help-center-kb-article-segment,
.help-center-kb-article-process {
  display: grid;
  gap: 5px;
  padding: 13px 14px;
  border: 1px solid rgba(47, 99, 214, 0.16);
  border-radius: 8px;
  background: #f7faff;
}

.help-center-kb-article-segment strong,
.help-center-kb-article-process strong {
  color: #162033;
  font-size: 0.96rem;
  font-weight: 600;
}

.help-center-kb-article-segment p {
  margin: 0;
  color: #1f2937;
}

.help-center-kb-article-segment p span {
  color: #0a4bb3;
  font-weight: 600;
}

.help-center-kb-article-process {
  margin-top: 12px;
}

.help-center-kb-article-process ol {
  display: grid;
  gap: 5px;
  margin: 3px 0 0;
  padding-left: 1.25rem;
  color: #1f2937;
  line-height: 1.55;
}

.help-center-kb-article-related {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 12px;
}

.help-center-kb-inline-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid rgba(47, 99, 214, 0.2);
  border-radius: 7px;
  background: #ffffff;
  color: #0a4bb3;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  cursor: pointer;
}

.help-center-kb-inline-link:hover,
.help-center-kb-inline-link:focus-visible {
  border-color: rgba(47, 99, 214, 0.5);
  background: #f7faff;
  color: #063b8d;
}

.help-center-kb-feedback {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-top: 34px;
  padding: 0;
}

.help-center-kb-feedback-prompt {
  display: grid;
  justify-items: center;
  gap: 14px;
}

.help-center-kb-feedback-prompt[hidden],
.help-center-kb-feedback-form[hidden],
.help-center-kb-feedback-thanks[hidden] {
  display: none !important;
}

.help-center-kb-feedback-divider {
  width: min(62%, 320px);
  height: 1px;
  margin: 28px auto 0;
  background: rgba(13, 91, 215, 0.2);
}

.help-center-kb-feedback span {
  color: #5f738d;
  font-size: 0.88rem;
  font-weight: 500;
  text-align: center;
}

.help-center-kb-feedback-form {
  display: grid;
  gap: 10px;
  justify-items: center;
  width: min(320px, 100%);
}

.help-center-kb-feedback-form p {
  margin: 0 0 2px;
  color: #334867;
  font-size: 0.92rem;
  font-weight: 500;
  text-align: center;
}

.help-center-kb-feedback-form label {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #334867;
  font-size: 0.88rem;
  line-height: 1.4;
  cursor: pointer;
}

.help-center-kb-feedback-form input[type="radio"] {
  margin: 0;
  accent-color: #2f63d6;
}

.help-center-kb-feedback-form .load-button {
  min-height: 36px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 500;
  margin-top: 4px;
  cursor: pointer;
}

.help-center-kb-feedback-form .load-button[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.help-center-kb-feedback-thanks {
  color: #2f63d6;
  font-size: 0.92rem;
  font-weight: 500;
  text-align: center;
}

.help-center-kb-feedback-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.help-center-kb-feedback-actions .button-secondary {
  min-width: 78px;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 400;
  background: #ffffff;
  border-color: rgba(13, 91, 215, 0.12);
  color: #1f2937;
  cursor: pointer;
}

.help-center-kb-feedback-actions .button-secondary:hover,
.help-center-kb-feedback-actions .button-secondary:focus-visible {
  background: #ffffff;
  border-color: rgba(13, 91, 215, 0.22);
  color: #0f172a;
}

.help-center-kb-feedback-actions .button-secondary svg {
  width: 15px;
  height: 15px;
  min-width: 15px;
  max-width: 15px;
  min-height: 15px;
  max-height: 15px;
  flex: 0 0 15px;
  display: block;
}

.help-center-kb-feedback-actions .button-secondary:first-child svg {
  color: #1f9d55;
}

.help-center-kb-feedback-actions .button-secondary:last-child svg {
  color: #dc2626;
}

.help-center-bottom-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
  padding-top: 12px;
}

.help-center-popular-list {
  display: grid;
  gap: 10px;
}

.help-center-popular-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--surface-border-soft);
  border-radius: 12px;
  background: #ffffff;
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--surface-shadow-soft);
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    color 0.18s ease;
}

.help-center-popular-row span:first-child {
  font-weight: 500;
  transition: color 0.18s ease;
}

.help-center-popular-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: #7c8ca2;
  transition: color 0.18s ease;
}

.help-center-popular-arrow::before {
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  background-color: currentColor;
  mask: url("./assets/icons/lucide/arrow-right.svg") center / contain no-repeat;
  -webkit-mask: url("./assets/icons/lucide/arrow-right.svg") center / contain no-repeat;
}

.help-center-popular-row:hover {
  background: #f7faff;
  border-color: rgba(47, 99, 214, 0.14);
  box-shadow: 0 12px 24px rgba(18, 32, 61, 0.06);
}

.help-center-popular-row:hover span:first-child,
.help-center-popular-row:hover .help-center-popular-arrow {
  color: #2f63d6;
}

.help-center-support-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 28px;
  border: 1px solid rgba(148, 183, 242, 0.18);
  border-radius: 16px;
  background: linear-gradient(145deg, #16284a 0%, #102444 52%, #0f1e36 100%);
  color: #f5f8ff;
  box-shadow: 0 16px 30px rgba(18, 32, 61, 0.11);
}

.help-center-support-card p {
  color: rgba(245, 248, 255, 0.8);
}

.help-center-support-copy {
  flex: 1 1 auto;
}

.help-center-support-form {
  display: grid;
  flex: 1 1 420px;
  gap: 12px;
  min-width: min(100%, 320px);
}

.help-center-support-form label {
  display: grid;
  gap: 6px;
  color: rgba(245, 248, 255, 0.92);
  font-size: 0.82rem;
  font-weight: 600;
}

.help-center-support-form input,
.help-center-support-form select,
.help-center-support-form textarea {
  width: 100%;
  border: 1px solid rgba(204, 222, 255, 0.28);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font: inherit;
  box-sizing: border-box;
}

.help-center-support-form select option {
  color: #16284a;
}

.help-center-support-form input::placeholder,
.help-center-support-form textarea::placeholder {
  color: rgba(245, 248, 255, 0.65);
}

.help-center-support-form input:read-only {
  background: rgba(255, 255, 255, 0.18);
}

.help-center-support-form textarea {
  min-height: 118px;
  resize: vertical;
}

.support-turnstile,
.auth-turnstile {
  min-height: 0;
}

.support-turnstile:not(:empty),
.auth-turnstile:not(:empty) {
  min-height: 65px;
  display: flex;
  align-items: center;
}

.help-center-support-status {
  margin: 0 !important;
  font-size: 0.86rem;
}

.help-center-support-status[data-state="error"] {
  color: #ffd2d2;
}

.help-center-support-status[data-state="success"] {
  color: #d5f6df;
}

.help-center-support-card h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.15rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.help-center-support-card p {
  margin: 12px 0 0;
  max-width: 56ch;
  line-height: 1.6;
}

.help-center-support-card .load-button {
  margin-top: 0;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  background: #ffffff;
  color: #16284a;
  box-shadow: 0 12px 24px rgba(5, 15, 32, 0.2);
  flex: 0 0 auto;
  align-self: center;
}

.help-center-support-card .load-button:hover {
  background: #f7f9fc;
  color: #102444;
}

.page-shell--auth {
  position: relative;
  width: 100%;
  margin: 0;
  padding-top: 22px;
  padding-bottom: 28px;
  min-height: calc(100vh - 118px);
  overflow: clip;
  background: linear-gradient(180deg, #f4f9ff 0%, #eaf3fe 30%, #e2eefc 62%, #edf5ff 100%);
  background-attachment: fixed;
}

body.login-inter-page .page-shell--auth {
  isolation: isolate;
  background: linear-gradient(180deg, #e5f1ff 0%, #d3e6fb 30%, #c6dcf6 62%, #d6e8fb 100%);
  background-attachment: scroll;
}

body.login-aura-shade-test-page .page-shell--auth {
  isolation: isolate;
  background: linear-gradient(135deg, #e8f2ff 0%, #d8e8ff 42%, #cfe1fb 100%);
  background-attachment: scroll;
}

body.login-aura-shade-test-page .page-shell--auth::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.58) 0%, rgba(255, 255, 255, 0.2) 26%, rgba(255, 255, 255, 0) 58%);
}

body.login-aura-shade-test-page .page-shell--auth::after {
  content: "";
  position: absolute;
  top: 17%;
  left: 42%;
  z-index: 0;
  width: min(320px, 24vw);
  height: 380px;
  pointer-events: none;
  opacity: 0.52;
  background-image: radial-gradient(circle, rgba(79, 119, 185, 0.18) 1.35px, transparent 1.85px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 76%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 76%, transparent 100%);
}

body.login-aura-shade-test-page .auth-side-message {
  position: relative;
  top: auto;
  left: auto;
  max-width: 590px;
  transform: none;
  color: #1c3158;
}

body.login-aura-shade-test-page .auth-side-message p {
  text-shadow: none;
}

body.login-aura-shade-test-page .auth-card {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 12px;
  background: #ffffff;
  padding: 24px 28px 25px;
  box-shadow:
    0 24px 42px -30px rgba(18, 32, 61, 0.24),
    0 10px 20px -18px rgba(38, 86, 168, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

body.login-aura-shade-test-page .auth-card-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 520px;
  justify-content: flex-end;
  align-self: start;
  padding: 8px 0 0;
}

body.login-aura-shade-test-page .auth-card-shell::before {
  content: none;
}

body.login-aura-shade-test-page .auth-card {
  position: relative;
  z-index: 1;
}

body.login-aura-shade-test-page .auth-layout-shell {
  width: min(1320px, calc(100% - 32px));
}

body.login-aura-shade-test-page .auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(410px, 500px);
  align-items: start;
  justify-content: space-between;
  gap: clamp(34px, 5.6vw, 86px);
  min-height: calc(100vh - 136px);
  padding: 14px clamp(20px, 4.8vw, 56px) 26px;
}

body.login-aura-shade-test-page .auth-reference-copy {
  margin-top: 0;
}

body.login-aura-shade-test-page .auth-reference-intro {
  margin: 0 0 12px;
  color: #637998;
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 600;
}

body.login-aura-shade-test-page .auth-reference-copy h1 {
  margin: 0;
  max-width: 12ch;
  color: #172a4f;
  font-size: clamp(2.48rem, 4.8vw, 3.78rem);
  line-height: 0.98;
  letter-spacing: 0;
  font-weight: 650;
}

body.login-aura-shade-test-page .auth-reference-copy h1 span {
  display: block;
  color: #2a63de;
  white-space: nowrap;
}

body.login-aura-shade-test-page .auth-reference-copy p:not(.auth-reference-intro) {
  margin: 20px 0 0;
  max-width: 46ch;
  color: #526780;
  font-size: 1.08rem;
  line-height: 1.56;
  font-weight: 460;
}

body.login-aura-shade-test-page .auth-reference-feature-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

body.login-aura-shade-test-page .auth-reference-feature {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
}

body.login-aura-shade-test-page .auth-reference-feature-icon {
  width: 46px;
  height: 46px;
  display: inline-block;
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(236, 243, 255, 0.7) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  position: relative;
}

body.login-aura-shade-test-page .auth-reference-feature-icon::before {
  content: "";
  position: absolute;
  inset: 12px;
  background: #2d67ea;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

body.login-aura-shade-test-page .auth-reference-feature-icon--backtest::before {
  -webkit-mask-image: url("./assets/icons/lucide/chart-network.svg");
  mask-image: url("./assets/icons/lucide/chart-network.svg");
}

body.login-aura-shade-test-page .auth-reference-feature-icon--sweep::before {
  -webkit-mask-image: url("./assets/icons/lucide/boxes.svg");
  mask-image: url("./assets/icons/lucide/boxes.svg");
}

body.login-aura-shade-test-page .auth-reference-feature-icon--walkforward::before {
  -webkit-mask-image: url("./assets/icons/lucide/route.svg");
  mask-image: url("./assets/icons/lucide/route.svg");
}

body.login-aura-shade-test-page .auth-reference-feature-icon--reports::before {
  -webkit-mask-image: url("./assets/icons/lucide/file-chart-line.svg");
  mask-image: url("./assets/icons/lucide/file-chart-line.svg");
}

body.login-aura-shade-test-page .auth-reference-feature strong {
  display: block;
  color: #172a4f;
  font-size: 0.99rem;
  line-height: 1.25;
}

body.login-aura-shade-test-page .auth-reference-feature p {
  margin: 3px 0 0;
  color: #5b708b;
  font-size: 0.93rem;
  line-height: 1.42;
}

body.login-aura-shade-test-page .auth-reference-under-trust {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

body.login-aura-shade-test-page .auth-reference-under-trust > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(42, 99, 222, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(63, 88, 121, 0.72);
  font-size: 0.85rem;
  font-weight: 540;
}

body.login-aura-shade-test-page .auth-reference-inline-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  flex: 0 0 auto;
  background: #2a63de;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

body.login-aura-shade-test-page .auth-reference-inline-icon--lock {
  -webkit-mask-image: url("./assets/icons/lucide/lock-keyhole.svg");
  mask-image: url("./assets/icons/lucide/lock-keyhole.svg");
}

body.login-aura-shade-test-page .auth-reference-inline-icon--card {
  -webkit-mask-image: url("./assets/icons/lucide/credit-card.svg");
  mask-image: url("./assets/icons/lucide/credit-card.svg");
}

body.login-aura-shade-test-page .auth-reference-card-stack {
  display: grid;
  gap: 18px;
  width: 100%;
}

body.login-aura-shade-test-page .auth-reference-under-trust {
  justify-content: center;
}

body.login-aura-shade-test-page .auth-card-shell[data-auth-view="default"] .auth-reference-under-trust {
  display: flex;
}

body.login-aura-shade-test-page .auth-card-shell[data-auth-view^="recovery"] {
  align-self: center;
  padding-top: 0;
}

body.login-aura-shade-test-page .auth-panel,
body.login-aura-shade-test-page .auth-recovery-panel {
  gap: 13px;
}

body.login-aura-shade-test-page .auth-panel-head {
  gap: 8px;
}

body.login-aura-shade-test-page .auth-panel-head h2 {
  font-size: 1.62rem;
  line-height: 1.05;
  font-weight: 560;
  letter-spacing: 0;
}

body.login-aura-shade-test-page .auth-panel-head p,
body.login-aura-shade-test-page .auth-card-helper,
body.login-aura-shade-test-page .auth-recovery-copy,
body.login-aura-shade-test-page .auth-password-hint {
  color: #627795;
  font-size: 0.94rem;
}

body.login-aura-shade-test-page .auth-card-helper {
  margin: 1px 0 2px;
  line-height: 1.45;
  font-weight: 560;
}

body.login-aura-shade-test-page .auth-recovery-state-mark {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 2px auto 4px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(234, 242, 255, 0.86) 100%);
  border: 1px solid rgba(42, 99, 222, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 8px 18px -16px rgba(42, 99, 222, 0.34);
}

body.login-aura-shade-test-page .auth-recovery-state-mark::before {
  content: "";
  width: 19px;
  height: 19px;
  background: #2a63de;
  -webkit-mask-image: url("./assets/icons/lucide/mail.svg");
  mask-image: url("./assets/icons/lucide/mail.svg");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

body.login-aura-shade-test-page .auth-field span {
  color: #1c3158;
  font-size: 0.9rem;
  font-weight: 650;
}

body.login-aura-shade-test-page .auth-field input {
  min-height: 50px;
  border: 1px solid rgba(118, 148, 195, 0.22);
  border-radius: 9px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(18, 32, 61, 0.035);
  color: #1c3158;
}

body.login-aura-shade-test-page .auth-field input::placeholder {
  color: #8090a9;
}

body.login-aura-shade-test-page .auth-field input:focus {
  border-color: rgba(45, 103, 234, 0.34);
  box-shadow: 0 0 0 4px rgba(45, 103, 234, 0.08);
}

body.login-aura-shade-test-page .auth-google-button {
  width: 100%;
  min-height: 56px;
  justify-content: center;
  gap: 12px;
  border-radius: 9px;
  border: 1px solid rgba(93, 134, 206, 0.24);
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  box-shadow: 0 3px 10px rgba(18, 32, 61, 0.03);
}

body.login-aura-shade-test-page .auth-google-button > span:last-child {
  color: #2156c8;
  font-size: 0.98rem;
  font-weight: 650;
}

body.login-aura-shade-test-page .auth-google-button:hover {
  background: linear-gradient(180deg, #fbfdff 0%, #eef5ff 100%);
  box-shadow: 0 6px 14px rgba(18, 32, 61, 0.045);
}

body.login-aura-shade-test-page .auth-divider {
  margin: 0;
}

body.login-aura-shade-test-page .auth-divider::before,
body.login-aura-shade-test-page .auth-divider::after {
  background: rgba(142, 168, 209, 0.3);
}

body.login-aura-shade-test-page .auth-divider span {
  color: #7285a0;
}

body.login-aura-shade-test-page .auth-meta-row {
  margin-top: 2px;
}

body.login-aura-shade-test-page .auth-submit-button {
  width: 100%;
  min-height: 50px;
  border-radius: 9px;
  font-size: 1rem;
  font-weight: 650;
  box-shadow: 0 6px 14px -10px rgba(47, 99, 214, 0.28);
}

body.login-aura-shade-test-page .auth-submit-button:hover {
  box-shadow: 0 8px 18px -12px rgba(47, 99, 214, 0.32);
}

body.login-aura-shade-test-page .auth-dev-tools {
  display: none;
  justify-content: center;
  margin-top: 8px;
}

body.login-aura-shade-test-page .auth-card-shell[data-auth-view="recovery-check"] .auth-dev-tools {
  display: flex;
}

body.login-aura-shade-test-page .auth-dev-link {
  padding: 0;
  border: 0;
  background: none;
  color: rgba(85, 107, 136, 0.72);
  font-size: 0.78rem;
  font-weight: 520;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

body.login-aura-shade-test-page .auth-dev-link:hover {
  color: rgba(47, 99, 214, 0.82);
}

body.login-aura-shade-test-page .auth-recovery-panel--check {
  justify-items: center;
  text-align: center;
}

body.login-aura-shade-test-page .auth-recovery-panel--check .auth-panel-head,
body.login-aura-shade-test-page .auth-recovery-panel--check .auth-recovery-copy {
  text-align: center;
}

body.login-aura-shade-test-page .auth-recovery-panel--check .auth-recovery-actions {
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 6px;
}

body.login-aura-shade-test-page .auth-recovery-panel--check .auth-resend-link {
  font-size: 0.82rem;
  font-weight: 520;
}

body.login-aura-shade-test-page .auth-recovery-panel--check .auth-back-link {
  font-weight: 580;
}

body.login-aura-shade-test-page .auth-switch-copy--center {
  justify-content: center;
  margin: 2px 0 0;
  text-align: center;
}

body.login-aura-shade-test-page .auth-switch-copy,
body.login-aura-shade-test-page .auth-remember,
body.login-aura-shade-test-page .auth-inline-link,
body.login-aura-shade-test-page .auth-back-link,
body.login-aura-shade-test-page .auth-resend-link,
body.login-aura-shade-test-page .auth-preview-link {
  color: #556b88;
}

.auth-layout-shell {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100% - 24px));
  min-height: calc(100vh - 118px);
  margin: 0 auto;
}

.auth-layout {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  min-height: calc(100vh - 168px);
  padding: 28px clamp(14px, 4vw, 44px);
}

.auth-side-message {
  position: absolute;
  top: 50%;
  left: clamp(14px, 4vw, 44px);
  z-index: 1;
  max-width: 318px;
  transform: translateY(-50%);
  color: rgba(17, 24, 39, 0.82);
}

.auth-side-message p {
  margin: 0;
  font-size: clamp(1rem, 0.9vw + 0.8rem, 1.18rem);
  line-height: 1.6;
  font-weight: 500;
}

body.login-inter-page .auth-side-message p {
  font-weight: 480;
  letter-spacing: -0.01em;
}

.auth-aura-background {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.74;
}

body.login-aura-shade-test-page .auth-aura-background {
  position: fixed;
  inset: 0;
  opacity: 0.72;
  filter: saturate(1.08) brightness(0.95);
}

.auth-aura-background-stage {
  position: absolute;
  inset: 0;
  background: transparent;
}

.auth-aura-background-stage > div[data-us-project] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: transparent !important;
}

.auth-aura-background-stage canvas,
.auth-aura-background-stage iframe {
  background: transparent !important;
}

.auth-visual-panel {
  position: relative;
  min-height: 680px;
  padding: 28px;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(13, 91, 215, 0.18), transparent 32%),
    linear-gradient(180deg, #11161f 0%, #0d1117 100%);
  box-shadow: 0 24px 44px rgba(18, 32, 61, 0.14);
}

.auth-visual-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.35;
}

.auth-visual-card {
  position: absolute;
  display: grid;
  gap: 6px;
  min-width: 160px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(11, 16, 25, 0.78);
  color: #f5f8ff;
  backdrop-filter: blur(10px);
}

.auth-visual-card small {
  color: rgba(245, 248, 255, 0.72);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auth-visual-card strong {
  font-size: 1.35rem;
  line-height: 1.1;
}

.auth-visual-card--headline {
  top: 34px;
  left: 34px;
}

.auth-visual-card--metric {
  top: 158px;
  left: 72px;
}

.auth-visual-card--secondary {
  top: 280px;
  right: 56px;
}

.auth-visual-card--tertiary {
  bottom: 106px;
  left: 44px;
}

.auth-visual-bars {
  position: absolute;
  right: 48px;
  bottom: 42px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 170px;
}

.auth-visual-bars span {
  width: 22px;
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(180deg, #67a2ff 0%, #0d5bd7 100%);
  box-shadow: 0 8px 18px rgba(13, 91, 215, 0.18);
}

.auth-visual-bars span:nth-child(1) { height: 58px; }
.auth-visual-bars span:nth-child(2) { height: 108px; }
.auth-visual-bars span:nth-child(3) { height: 86px; }
.auth-visual-bars span:nth-child(4) { height: 136px; }
.auth-visual-bars span:nth-child(5) { height: 94px; }
.auth-visual-bars span:nth-child(6) { height: 152px; }

.auth-card-shell {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: min(100%, 520px);
  margin: 0 auto;
  padding: 16px 0;
}

.auth-card {
  width: min(100%, 452px);
  padding: 28px 32px 30px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 28px;
  background: #ffffff;
  box-shadow:
    0 18px 34px -22px rgba(18, 32, 61, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
}

@media (max-width: 980px) {
  .auth-layout {
    flex-direction: column;
    align-items: center;
    gap: 22px;
  }

  .auth-side-message {
    position: static;
    max-width: 420px;
    transform: none;
    text-align: center;
  }

  .auth-card-shell {
    margin: 0 auto;
  }
}

@media (max-width: 1040px) {
  body.login-aura-shade-test-page .auth-layout {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 20px;
    padding-bottom: 36px;
  }

  body.login-aura-shade-test-page .auth-card-shell {
    order: -1;
    max-width: 520px;
    justify-content: center;
    margin: 0 auto;
  }

  body.login-aura-shade-test-page .auth-side-message {
    max-width: 620px;
    margin: 0 auto;
  }

  body.login-aura-shade-test-page .auth-reference-copy,
  body.login-aura-shade-test-page .auth-reference-feature-list {
    width: min(100%, 620px);
    margin-right: auto;
    margin-left: auto;
  }

  body.login-aura-shade-test-page .auth-reference-feature-list {
    gap: 12px;
    margin-top: 24px;
    text-align: left;
  }

  body.login-aura-shade-test-page .auth-reference-feature {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
  }

  body.login-aura-shade-test-page .auth-reference-feature-icon {
    width: 42px;
    height: 42px;
  }

  body.login-aura-shade-test-page .auth-reference-feature-icon::before {
    inset: 11px;
  }

  body.login-aura-shade-test-page .auth-reference-feature strong,
  body.login-aura-shade-test-page .auth-reference-feature p {
    text-align: left;
  }
}

@media (max-width: 640px) {
  body.login-aura-shade-test-page .auth-layout-shell {
    width: min(100%, calc(100% - 20px));
  }

  body.login-aura-shade-test-page .auth-layout {
    padding-inline: 10px;
  }

  body.login-aura-shade-test-page .auth-reference-copy h1 {
    max-width: none;
    font-size: clamp(2.25rem, 10.5vw, 3.25rem);
  }

  body.login-aura-shade-test-page .auth-reference-copy p:not(.auth-reference-intro) {
    max-width: none;
    font-size: 1rem;
  }

  body.login-aura-shade-test-page .auth-reference-copy {
    width: 100%;
  }

  body.login-aura-shade-test-page .auth-reference-feature-list {
    width: 100%;
    margin-top: 22px;
  }

  body.login-aura-shade-test-page .auth-card {
    padding: 24px 20px 22px;
  }

  body.login-aura-shade-test-page .auth-google-button,
  body.login-aura-shade-test-page .auth-submit-button,
  body.login-aura-shade-test-page .auth-field input {
    min-height: 52px;
  }

  body.login-aura-shade-test-page .auth-reference-under-trust {
    justify-content: center;
  }
}

.auth-tab,
.strategy-test-tab,
.review-chart-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  white-space: nowrap;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.auth-panel {
  display: none;
  max-width: none;
  margin: 0 auto;
  gap: 18px;
}

.auth-callback-panel {
  display: grid;
}

#auth-login:checked ~ .auth-card .auth-panel--login,
#auth-register:checked ~ .auth-card .auth-panel--register,
#auth-login:checked ~ .auth-reference-card-stack .auth-card .auth-panel--login,
#auth-register:checked ~ .auth-reference-card-stack .auth-card .auth-panel--register {
  display: grid;
}

.auth-card-shell[data-auth-view^="recovery"] .auth-panel {
  display: none !important;
}

.auth-recovery-panel {
  display: none;
  max-width: none;
  margin: 0 auto;
  gap: 18px;
}

.auth-card-shell[data-auth-view="recovery-request"] .auth-recovery-panel--request,
.auth-card-shell[data-auth-view="recovery-check"] .auth-recovery-panel--check,
.auth-card-shell[data-auth-view="recovery-set"] .auth-recovery-panel--set,
.auth-card-shell[data-auth-view="recovery-updated"] .auth-recovery-panel--updated {
  display: grid;
}

.auth-panel-head {
  display: grid;
  gap: 6px;
}

.auth-panel-head h2 {
  margin: 0;
  color: #111827;
  font-size: 1.12rem;
  line-height: 1.32;
  font-weight: 600;
  letter-spacing: -0.01em;
}

body.login-inter-page .auth-panel-head h2 {
  font-weight: 500;
  letter-spacing: -0.02em;
}

.auth-panel-head p {
  margin: 0;
  color: #66788f;
  font-size: 0.92rem;
  line-height: 1.55;
}

body.login-inter-page .auth-panel-head p,
body.login-inter-page .auth-recovery-copy,
body.login-inter-page .auth-password-hint {
  font-weight: 400;
}

.auth-state-link {
  color: #2f63d6;
  font-weight: 700;
  cursor: pointer;
}

body.login-inter-page .auth-state-link {
  font-weight: 600;
}

.auth-state-link:hover {
  color: #0a4bb3;
}

.auth-field {
  display: grid;
  gap: 8px;
  margin-bottom: 0;
}

.auth-field span {
  font-size: 0.84rem;
  font-weight: 600;
  color: #42536f;
  letter-spacing: 0.01em;
}

body.login-inter-page .auth-field span {
  font-weight: 500;
  letter-spacing: 0;
}

.auth-field input {
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  background: #ffffff;
  color: #0f172a;
  font-size: 0.96rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

body.login-inter-page .auth-field input {
  font-weight: 400;
}

.auth-field input::placeholder {
  color: #8ca0bb;
}

.auth-field input:focus {
  border-color: rgba(47, 99, 214, 0.42);
  box-shadow:
    0 0 0 4px rgba(47, 99, 214, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.auth-inline-link {
  margin: 0 0 0 auto;
  font-size: 0.81rem;
  font-weight: 400;
  color: #2f63d6;
  letter-spacing: 0;
}

body.login-inter-page .auth-inline-link,
body.login-inter-page .auth-switch-copy,
body.login-inter-page .auth-remember,
body.login-inter-page .auth-back-link,
body.login-inter-page .auth-resend-link,
body.login-inter-page .auth-preview-link {
  font-weight: 500;
}

.auth-inline-button,
.auth-back-link,
.auth-resend-link,
.auth-preview-link {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.auth-submit-button,
.auth-google-button {
  width: 100%;
  justify-content: center;
  min-height: 52px;
  border-radius: 14px;
  font-weight: 600;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

body.login-inter-page .auth-submit-button,
body.login-inter-page .auth-google-button {
  font-weight: 560;
}

.auth-submit-button--inline {
  width: auto;
  min-width: 132px;
  padding-left: 26px;
  padding-right: 26px;
}

.auth-submit-button {
  background: linear-gradient(180deg, #4686ff 0%, #2f63d6 100%);
  color: #ffffff;
  box-shadow: 0 18px 30px -22px rgba(47, 99, 214, 0.78);
}

.auth-submit-button:hover {
  background: linear-gradient(180deg, #4f8cff 0%, #3468dc 100%);
  transform: translateY(-2px);
  box-shadow: 0 22px 34px -22px rgba(47, 99, 214, 0.72);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 2px 0 0;
  color: #7a8ba3;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(13, 91, 215, 0.12);
}

.auth-divider span {
  display: inline-block;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.96);
  line-height: 1;
}

.auth-google-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.auth-google-icon svg {
  display: block;
  width: 20px;
  height: 20px;
  min-width: 20px;
  max-width: 20px;
  min-height: 20px;
  max-height: 20px;
}

.auth-google-button {
  gap: 10px;
  border: 1px solid #dadce0;
  background: #ffffff;
  color: #202124;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 6px 16px -18px rgba(15, 23, 42, 0.28);
}

.auth-google-button > span:last-child {
  font-size: 0.93rem;
  font-weight: 600;
}

body.login-inter-page .auth-google-button > span:last-child {
  font-weight: 560;
}

.auth-google-button:hover {
  background: #ffffff;
  border-color: #c6cad0;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -18px rgba(15, 23, 42, 0.28);
}

.auth-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.auth-remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #66788f;
  font-size: 0.88rem;
}

.auth-remember input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent);
}

.auth-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 4px;
}

.auth-switch-copy {
  margin: 0;
  color: #24354f;
  font-size: 0.82rem;
  line-height: 1.45;
}

body.login-aura-shade-test-page .auth-panel > .auth-status-message:empty {
  display: none;
}

body.login-aura-shade-test-page .auth-panel--login > .auth-switch-copy,
body.login-aura-shade-test-page .auth-panel--register > .auth-switch-copy {
  margin-top: -6px;
}

.auth-recovery-copy {
  margin: -2px 0 0;
  color: #6e7e96;
  font-size: 0.92rem;
  line-height: 1.55;
}

.auth-recovery-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.auth-back-link,
.auth-resend-link,
.auth-preview-link {
  color: #2f63d6;
  font-size: 0.88rem;
  font-weight: 600;
}

.auth-back-link:hover,
.auth-resend-link:hover,
.auth-preview-link:hover,
.auth-inline-button:hover {
  color: #0a4bb3;
}

.auth-resend-link[disabled] {
  color: #8ca0bb;
  cursor: default;
}

.auth-password-hint {
  margin: -4px 0 0;
  color: #7a8ba3;
  font-size: 0.84rem;
  line-height: 1.45;
}

@media (prefers-reduced-motion: reduce) {
  .auth-submit-button:hover,
  .auth-google-button:hover {
    transform: none;
  }
}

.library-title-block {
  padding: 6px 0 20px;
}

.library-title-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}

.library-title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 0;
  background: transparent;
  border: 0;
  color: #103d84;
  box-shadow: none;
}

.library-title-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.library-title-block h1 {
  margin: 0;
  font-size: clamp(2.25rem, 4.6vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

.library-title-copy {
  max-width: 72ch;
  margin: 12px 0 0;
  color: #2e4668;
  font-size: 1rem;
  line-height: 1.5;
}

.library-browser {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
  padding-bottom: 38px;
  border-bottom: 1px solid rgba(13, 91, 215, 0.08);
}

.library-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 12px);
  align-self: start;
  display: grid;
  gap: 14px;
  height: fit-content;
  max-height: calc(100vh - var(--header-height) - 12px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 10px 18px 10px 0;
  border-right: 1px solid rgba(13, 91, 215, 0.12);
}

.library-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  padding: 6px 18px 12px 0;
  margin: 0;
  border-bottom: 1px solid rgba(13, 91, 215, 0.12);
}

.library-rail-home {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  padding: 9px 10px 9px 14px;
  border: 1px solid #dce5f0;
  border-radius: 6px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  color: #0f172a;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: none;
}

.library-rail-home::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 999px;
  background: #2563eb;
}

.library-rail-home:hover {
  background: #f8fafc;
  color: #0f172a;
}

body.strategy-library-inter-page .library-rail-home {
  color: #0f172a;
  font-weight: 600;
}

.library-rail-home-icon,
.library-rail-section-icon {
  position: relative;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: #5a6f8b;
}

.library-rail-home .library-rail-home-icon {
  color: currentColor;
}

.library-rail-home-icon svg,
.library-rail-section-icon svg,
.library-rail-external-icon {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.library-rail-home-icon::before,
.library-rail-home-icon::after,
.library-rail-section-icon::before,
.library-rail-section-icon::after {
  content: none;
}

.library-rail-home-icon::before {
  content: "";
  position: absolute;
  inset: 2px 3px 3px;
  border: 1.6px solid currentColor;
  border-top: 0;
  border-radius: 2px;
}

.library-rail-home-icon::after {
  content: "";
  position: absolute;
  left: 1px;
  right: 1px;
  top: 1px;
  height: 8px;
  clip-path: polygon(50% 0, 100% 48%, 86% 48%, 86% 100%, 14% 100%, 14% 48%, 0 48%);
  background: currentColor;
}

.library-rail-section {
  display: grid;
  gap: 9px;
  padding-top: 15px;
  margin-top: 15px;
  border-top: 1px solid rgba(13, 91, 215, 0.1);
}

.library-rail-section[hidden] {
  display: none;
}

.library-rail-section:first-of-type {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

.library-rail-section h3 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 1px;
  color: #7c8da6;
  font-size: 0.74rem;
  font-weight: 760;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.library-rail-section-icon--recent::before,
.library-rail-section-icon--help::before {
  content: "";
  position: absolute;
}

.library-rail-section-icon--recent::before {
  inset: 2px;
  border: 1.6px solid currentColor;
  border-radius: 50%;
}

.library-rail-section-icon--recent::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 4px;
  width: 1.6px;
  height: 5px;
  background: currentColor;
  box-shadow: 3px 3px 0 0 currentColor;
  transform-origin: bottom center;
}

.library-rail-section-icon--help::before {
  inset: 1px;
  border: 1.6px solid currentColor;
  border-radius: 50%;
}

.library-rail-section-icon--help::after {
  content: "?";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.library-rail-home-icon::before,
.library-rail-home-icon::after,
.library-rail-section-icon::before,
.library-rail-section-icon::after {
  content: none;
}

.library-rail-links {
  display: grid;
  gap: 5px;
}

.library-rail-links a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  min-width: 0;
  padding: 8px 11px 8px 18px;
  border-radius: 11px;
  color: #304763;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

.library-rail-links--recent a::before {
  content: "";
  position: absolute;
  left: 8px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(13, 91, 215, 0.34);
}

.library-rail-links--recent a {
  gap: 3px;
  padding: 9px 10px 9px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #64748b;
  font-weight: 400;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.library-rail-links a span,
.library-rail-links a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.library-rail-links a span {
  min-width: 0;
}

.library-rail-external-icon {
  flex: 0 0 13px;
  width: 13px;
  height: 13px;
  margin-left: auto;
  color: #91a4bc;
  opacity: 0.6;
  transition:
    color 0.18s ease,
    opacity 0.18s ease,
    transform 0.18s ease;
}

.library-rail-links--recent .library-rail-external-icon {
  color: #94a3b8;
  opacity: 0.56;
}

.library-rail-links a:hover {
  background: #f8fafc;
  color: #475569;
  transform: none;
}

.library-rail-links--recent a:hover::before {
  background: rgba(13, 91, 215, 0.52);
}

.library-rail-links--recent a:hover {
  background: #f8fafc;
  color: #475569;
  transform: none;
}

.library-rail-links--support a:hover {
  background: #f8fafc;
  color: #475569;
  transform: none;
}

.library-rail-links a:hover .library-rail-section-icon {
  color: currentColor;
}

.library-rail-links a:hover .library-rail-external-icon {
  color: #64748b;
  opacity: 0.88;
  transform: none;
}

.library-rail-links--recent a:hover .library-rail-external-icon {
  color: #64748b;
  opacity: 0.88;
  transform: none;
}

body.strategy-library-inter-page .library-rail-links--recent a:not(.is-active) {
  color: #64748b;
  font-weight: 400;
}

body.strategy-library-inter-page .library-rail-links--recent a:not(.is-active):hover {
  color: #475569;
  font-weight: 400;
}

.library-catalog-top {
  position: sticky;
  top: calc(var(--header-height) + 8px);
  z-index: 12;
  margin-top: 14px;
  margin-bottom: 34px;
  padding-top: 10px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(71, 85, 105, 0.18);
  background: rgba(255, 255, 255, 0.98);
  scroll-margin-top: calc(var(--header-height) + 18px);
}

.library-folder-grid {
  display: grid;
  width: 100%;
  margin: 0;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  justify-content: start;
  align-items: start;
}

.library-all-folders-control {
  align-self: center;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  color: #2f4d73;
  text-decoration: none;
  text-underline-offset: 6px;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 760;
  line-height: 1.1;
  transition:
    color 0.18s ease,
    transform 0.18s ease,
    opacity 0.18s ease;
}

.library-all-folders-control:hover {
  color: #103d84;
  transform: translateY(-1px);
}

.library-all-folders-control:focus-visible {
  outline: 2px solid rgba(13, 91, 215, 0.35);
  outline-offset: 4px;
  border-radius: 999px;
}

.library-all-folders-text {
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
}

.library-folder-card {
  --library-folder-accent: #2563eb;
  --library-folder-tint: #eff6ff;
  --library-folder-surface: linear-gradient(135deg, #ffffff 0%, #f5f9ff 55%, #eef4ff 100%);
  --library-folder-selected-surface: linear-gradient(135deg, #ffffff 0%, #eff6ff 48%, #e4eeff 100%);
  --library-folder-border: rgba(37, 99, 235, 0.22);
  --library-folder-selected-border: #4f7eff;
  --library-folder-selected-shadow: rgba(79, 126, 255, 0.1);
  position: relative;
  display: grid;
  gap: 17px;
  align-content: start;
  min-height: 126px;
  margin-top: 0;
  padding: 24px;
  border: 0;
  border-radius: 20px;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  isolation: isolate;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.library-folder-card[data-category="indicator"] {
  --library-folder-accent: #2563eb;
  --library-folder-tint: #eaf2ff;
  --library-folder-surface: linear-gradient(135deg, #ffffff 0%, #f5f9ff 55%, #eef4ff 100%);
  --library-folder-selected-surface: linear-gradient(135deg, #ffffff 0%, #eef5ff 48%, #e5efff 100%);
  --library-folder-border: rgba(37, 99, 235, 0.34);
  --library-folder-selected-border: #4f7eff;
  --library-folder-selected-shadow: rgba(79, 126, 255, 0.1);
}

.library-folder-card[data-category="price-action"] {
  --library-folder-accent: #7c3aed;
  --library-folder-tint: #f3efff;
  --library-folder-surface: linear-gradient(135deg, #ffffff 0%, #faf7ff 55%, #f3edff 100%);
  --library-folder-selected-surface: linear-gradient(135deg, #ffffff 0%, #f7f1ff 48%, #ede4ff 100%);
  --library-folder-border: rgba(124, 58, 237, 0.32);
  --library-folder-selected-border: #8b5cf6;
  --library-folder-selected-shadow: rgba(139, 92, 246, 0.1);
}

.library-folder-card[data-category="time-based"] {
  --library-folder-accent: #d97706;
  --library-folder-tint: #fef6e8;
  --library-folder-surface: linear-gradient(135deg, #ffffff 0%, #fffbf5 58%, #fef6e8 100%);
  --library-folder-selected-surface: linear-gradient(135deg, #ffffff 0%, #fff8ed 50%, #fdefd8 100%);
  --library-folder-border: rgba(217, 119, 6, 0.24);
  --library-folder-selected-border: #e8a34a;
  --library-folder-selected-shadow: rgba(229, 154, 50, 0.075);
}

.library-folder-card[data-category="multi-signal"] {
  --library-folder-accent: #16a34a;
  --library-folder-tint: #e9f9ef;
  --library-folder-surface: linear-gradient(135deg, #ffffff 0%, #f4fbf7 55%, #eaf8ef 100%);
  --library-folder-selected-surface: linear-gradient(135deg, #ffffff 0%, #eef9f2 48%, #ddf2e5 100%);
  --library-folder-border: rgba(22, 163, 74, 0.32);
  --library-folder-selected-border: #3abf69;
  --library-folder-selected-shadow: rgba(58, 191, 105, 0.1);
}

.library-folder-card[data-category="saved"] {
  --library-folder-accent: #64748b;
  --library-folder-tint: #f1f5f9;
  --library-folder-surface: linear-gradient(135deg, #ffffff 0%, #f8fafc 55%, #eef2f7 100%);
  --library-folder-selected-surface: linear-gradient(135deg, #ffffff 0%, #f3f6fa 48%, #e8edf4 100%);
  --library-folder-border: rgba(100, 116, 139, 0.3);
  --library-folder-selected-border: #8795a8;
  --library-folder-selected-shadow: rgba(100, 116, 139, 0.1);
}

.library-folder-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 20px;
  background: var(--library-folder-surface);
  opacity: 1;
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    background 0.18s ease,
    filter 0.18s ease;
}

.library-folder-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(248, 250, 252, 0.1) 100%);
  pointer-events: none;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.055);
  transition:
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.library-folder-card:hover {
  transform: translateY(-4px);
}

.library-folder-card:hover::after {
  border-color: var(--library-folder-border);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

.library-folder-card:hover .library-folder-copy strong {
  color: #0f172a;
}

.library-folder-card:hover .library-folder-count {
  color: #64748b;
}

.library-folder-card:focus-visible {
  outline: none;
}

.library-folder-card:focus-visible::after {
  border-color: rgba(17, 24, 39, 0.58);
  box-shadow:
    0 0 0 2px rgba(17, 24, 39, 0.2),
    0 14px 26px rgba(18, 32, 61, 0.1);
}

.library-folder-icon {
  position: relative;
  z-index: 2;
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  width: 42px;
  height: 42px;
  color: var(--library-folder-accent);
  transition:
    color 0.18s ease,
    transform 0.18s ease,
    opacity 0.18s ease;
}

.library-folder-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.library-folder-icon-glyph {
  display: block;
  width: 100%;
  height: 100%;
  background: currentColor;
}

.library-folder-icon-glyph--clock {
  -webkit-mask: url("./assets/icons/lucide/clock.svg") center / contain no-repeat;
  mask: url("./assets/icons/lucide/clock.svg") center / contain no-repeat;
}

.library-folder-card[data-category="indicator"] .library-folder-icon {
  color: #2563eb;
}

.library-folder-card[data-category="price-action"] .library-folder-icon {
  color: #7c3aed;
}

.library-folder-card[data-category="time-based"] .library-folder-icon {
  color: #d97706;
}

.library-folder-card[data-category="multi-signal"] .library-folder-icon {
  color: #16a34a;
}

.library-folder-card--saved .library-folder-icon {
  color: #64748b;
}

.library-folder-card:hover .library-folder-icon {
  opacity: 1;
  transform: translateY(-1px);
}

.library-folder-card[data-category="indicator"]:hover .library-folder-icon {
  color: #1f62b0;
}

.library-folder-card[data-category="price-action"]:hover .library-folder-icon {
  color: #6d4bb0;
}

.library-folder-card[data-category="time-based"]:hover .library-folder-icon {
  color: #b45309;
}

.library-folder-card[data-category="multi-signal"]:hover .library-folder-icon {
  color: #15803d;
}

.library-folder-card--saved:hover .library-folder-icon {
  color: #475569;
}

.library-folder-copy {
  position: relative;
  z-index: 2;
  grid-column: 1;
  grid-row: 2;
  display: grid;
  gap: 9px;
  min-width: 0;
  min-height: 0;
  padding: 0;
  align-content: center;
}

.library-folder-copy strong {
  font-size: 1.05rem;
  color: #0f172a;
  line-height: 1.15;
  font-weight: 600;
  white-space: nowrap;
}

.library-folder-copy small {
  color: #5a6f8b;
  font-size: 0.8rem;
  line-height: 1.35;
  display: none;
}

.library-folder-count {
  position: static;
  color: #64748b;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0;
}

.library-saved-button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(13, 91, 215, 0.12);
  border-radius: 12px;
  background: #f8fafc;
  color: var(--text);
  box-shadow: 0 8px 18px rgba(18, 32, 61, 0.04);
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 600;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.library-saved-button:hover {
  transform: none;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  color: var(--text);
  box-shadow: 0 8px 18px rgba(18, 32, 61, 0.04);
  border-color: rgba(13, 91, 215, 0.12);
}

.library-bookmark-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: currentColor;
  background: transparent;
  clip-path: none;
}

.library-bookmark-icon svg {
  display: block;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.library-content {
  min-width: 0;
  padding-left: 2px;
}

.library-panel {
  display: none;
}

.library-panel.is-leaving {
  display: block;
  pointer-events: none;
}

.library-panel.is-leaving .library-panel-head,
.library-panel.is-leaving .library-empty-state,
.library-panel.is-leaving .library-strategy-card {
  animation: libraryCategorySectionLeave 200ms ease forwards;
}

.library-panel.is-entering .library-panel-head,
.library-panel.is-entering .library-empty-state,
.library-panel.is-entering .library-strategy-card {
  animation: libraryCategorySectionEnter 380ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.library-panel.is-leaving .library-strategy-card:nth-child(even) {
  animation-delay: 50ms;
}

.library-panel.is-entering .library-strategy-card:nth-child(even) {
  animation-delay: 60ms;
}

@keyframes libraryCategorySectionLeave {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(10px);
  }
}

@keyframes libraryCategorySectionEnter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

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

.library-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-top: 0;
  margin-bottom: 16px;
}

.library-panel-head h2 {
  margin: 0;
  font-size: 1.78rem;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.library-toolbar {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: flex-end;
  align-self: center;
}

.library-count {
  color: #5f7290;
  font-size: 0.82rem;
  font-weight: 600;
}

.library-sort {
  display: grid;
  gap: 6px;
  justify-items: end;
  align-self: center;
}

.library-sort span {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.library-sort select {
  min-width: 96px;
  padding: 8px 12px;
  border: 1px solid rgba(13, 91, 215, 0.14);
  border-radius: 10px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
}

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

.library-pagination {
  margin-top: 18px;
}

.library-pagination [hidden],
.library-empty-state[hidden],
.library-strategy-grid[hidden] {
  display: none;
}

.library-pagination [data-library-controls-hidden="true"] {
  visibility: hidden;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .library-panel.is-leaving .library-panel-head,
  .library-panel.is-leaving .library-empty-state,
  .library-panel.is-leaving .library-strategy-card,
  .library-panel.is-entering .library-panel-head,
  .library-panel.is-entering .library-empty-state,
  .library-panel.is-entering .library-strategy-card {
    animation: none;
  }
}

.library-strategy-card {
  display: grid;
  grid-template-columns: clamp(96px, 22%, 124px) minmax(0, 1fr);
  gap: 13px;
  align-items: start;
  min-height: 100%;
  padding: 14px;
  border: 1px solid rgba(13, 91, 215, 0.12);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(18, 32, 61, 0.04);
  overflow: hidden;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.library-strategy-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(18, 32, 61, 0.075);
  border-color: rgba(13, 91, 215, 0.18);
}

.library-strategy-visual {
  display: grid;
  grid-template-rows: auto auto;
  gap: 8px;
  align-content: start;
  min-width: 0;
}

.library-strategy-card-body {
  display: grid;
  gap: 10px;
  min-width: 0;
  min-height: 100%;
  padding: 3px 2px 3px 0;
}

.library-strategy-card-body h3 {
  margin: 0;
  color: #122338;
  font-size: 1.12rem;
  font-weight: 620;
  line-height: 1.16;
  letter-spacing: -0.02em;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.library-strategy-card-body p {
  margin: 0;
  color: #4a607c;
  line-height: 1.42;
  font-size: 0.92rem;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.library-strategy-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.library-strategy-card-header h3 {
  flex: 1 1 auto;
  min-width: 0;
}

.library-strategy-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 2px;
  min-width: 0;
}

.library-strategy-media {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  min-height: 0;
  background:
    radial-gradient(circle at 28% 22%, rgba(78, 126, 212, 0.24) 0%, rgba(78, 126, 212, 0) 34%),
    linear-gradient(135deg, #0f141d 0%, #171d27 48%, #0d1118 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  overflow: hidden;
}

.library-strategy-media::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 14px;
  border: 1px solid rgba(127, 165, 235, 0.12);
  background:
    linear-gradient(135deg, rgba(102, 153, 237, 0.08) 0%, rgba(102, 153, 237, 0) 58%),
    transparent;
}

.library-strategy-media::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 20px;
  height: 44px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(88, 136, 221, 0.02) 0%, rgba(88, 136, 221, 0.12) 100%),
    linear-gradient(90deg, rgba(167, 196, 255, 0.28) 0%, rgba(167, 196, 255, 0.03) 100%);
  opacity: 0.9;
}

.library-strategy-media-badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: inline-block;
  min-width: 0;
  height: auto;
  padding: 0;
  color: rgba(229, 239, 255, 0.9);
  font-size: 1.42rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-shadow: 0 1px 0 rgba(10, 15, 24, 0.2);
}

.library-strategy-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  min-width: 0;
  flex: 1 1 auto;
}

.library-strategy-tags .pill {
  white-space: nowrap;
}

.page-shell--strategy-library .pill {
  padding: 5px 9px;
  border: 0;
  font-size: 0.78rem;
  font-weight: 760;
  line-height: 1.15;
}

body.strategy-library-inter-page .library-strategy-tags .pill {
  padding: 4px 7px;
  font-size: 0.72rem;
  line-height: 1.1;
}

.page-shell--strategy-library .pill--indicator {
  background: #eff6ff;
  color: #2563eb;
}

.page-shell--strategy-library .pill--price-action {
  background: #f5f3ff;
  color: #7c3aed;
}

.page-shell--strategy-library .pill--time-based {
  background: #fff7ed;
  color: #c2410c;
}

.page-shell--strategy-library .pill--reversal {
  background: #fef2f2;
  color: #dc2626;
}

.page-shell--strategy-library .pill--momentum {
  background: #ecfdf5;
  color: #059669;
}

.page-shell--strategy-library .pill--pattern {
  background: #faf5ff;
  color: #9333ea;
}

.page-shell--strategy-library .pill--session {
  background: #f0fdfa;
  color: #0f766e;
}

.page-shell--strategy-library .pill--sequence {
  background: #eef2f7;
  color: #334155;
}

.page-shell--strategy-library .pill--neutral {
  background: #f8fafc;
  color: #475569;
}

.page-shell--strategy-library .button-secondary {
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 11px;
  font-size: 0.88rem;
  font-weight: 600;
}

.library-strategy-card .button-secondary {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 7px 10px;
  font-size: 0.84rem;
  white-space: nowrap;
  border-color: rgba(37, 99, 235, 0.18);
  background: linear-gradient(180deg, #f7fbff 0%, #edf5ff 100%);
  color: #1d4ed8;
  box-shadow: 0 6px 12px rgba(18, 32, 61, 0.045);
}

.library-strategy-card .button-secondary:hover,
.library-strategy-card .button-secondary:focus-visible {
  background: linear-gradient(180deg, #edf6ff 0%, #deecff 100%);
  border-color: rgba(37, 99, 235, 0.34);
  color: #16499d;
  box-shadow: 0 8px 14px rgba(18, 32, 61, 0.06);
}

@media (max-width: 1200px) and (min-width: 821px) {
  .library-strategy-card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .library-strategy-tags {
    width: 100%;
    flex-wrap: nowrap;
  }
}

.library-save-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #71839b;
  cursor: pointer;
  position: relative;
  isolation: isolate;
  flex: 0 0 30px;
  max-width: 30px;
  transition:
    transform 0.18s ease,
    color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.library-save-button::before {
  position: absolute;
  inset: 3px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(234, 179, 8, 0.18) 0%, rgba(234, 179, 8, 0.08) 55%, rgba(234, 179, 8, 0) 100%);
  box-shadow: 0 4px 10px rgba(183, 121, 31, 0.12);
  content: "";
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  z-index: 0;
}

.library-save-button:hover {
  transform: translateY(-1px) scale(1.08);
  background: transparent;
  color: #3b4f68;
}

.library-save-button:disabled {
  color: #94a3b8;
  cursor: not-allowed;
  opacity: 0.72;
}

.library-save-button:disabled:hover {
  transform: none;
  color: #94a3b8;
}

.library-save-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
}

.library-save-button svg {
  position: relative;
  z-index: 1;
  display: block;
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: fill 0.18s ease, stroke 0.18s ease;
}

.library-save-button.is-saved,
.library-save-button[aria-pressed="true"] {
  background: transparent;
  color: #b7791f;
}

.library-save-button.is-saved::before,
.library-save-button[aria-pressed="true"]::before {
  opacity: 1;
  transform: scale(1);
}

.library-save-button.is-saved svg,
.library-save-button[aria-pressed="true"] svg {
  fill: currentColor;
}

.library-empty-state {
  padding: 24px 22px;
  border: 1px dashed rgba(13, 91, 215, 0.18);
  border-radius: 18px;
  background: rgba(249, 251, 255, 0.8);
}

.library-empty-state h3 {
  margin: 0;
  font-size: 1rem;
}

.library-empty-state p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

#category-all:checked ~ .library-content .library-catalog-top .library-folder-card[for="category-indicator"],
#category-price-action:checked ~ .library-content .library-catalog-top .library-folder-card[for="category-price-action"],
#category-time-based:checked ~ .library-content .library-catalog-top .library-folder-card[for="category-time-based"],
#category-multi-signal:checked ~ .library-content .library-catalog-top .library-folder-card[for="category-multi-signal"],
#category-saved:checked ~ .library-content .library-catalog-top .library-folder-card[for="category-saved"],
#category-indicator:checked ~ .library-content .library-catalog-top .library-folder-card[for="category-indicator"] {
  background: transparent;
  transform: translateY(-2px);
}

#category-all:checked ~ .library-content .library-catalog-top .library-folder-card[for="category-indicator"]::before,
#category-price-action:checked ~ .library-content .library-catalog-top .library-folder-card[for="category-price-action"]::before,
#category-time-based:checked ~ .library-content .library-catalog-top .library-folder-card[for="category-time-based"]::before,
#category-multi-signal:checked ~ .library-content .library-catalog-top .library-folder-card[for="category-multi-signal"]::before,
#category-saved:checked ~ .library-content .library-catalog-top .library-folder-card[for="category-saved"]::before,
#category-indicator:checked ~ .library-content .library-catalog-top .library-folder-card[for="category-indicator"]::before {
  opacity: 1;
  background: var(--library-folder-selected-surface);
}

#category-all:checked ~ .library-content .library-catalog-top .library-folder-card[for="category-indicator"]::after,
#category-price-action:checked ~ .library-content .library-catalog-top .library-folder-card[for="category-price-action"]::after,
#category-time-based:checked ~ .library-content .library-catalog-top .library-folder-card[for="category-time-based"]::after,
#category-multi-signal:checked ~ .library-content .library-catalog-top .library-folder-card[for="category-multi-signal"]::after,
#category-saved:checked ~ .library-content .library-catalog-top .library-folder-card[for="category-saved"]::after,
#category-indicator:checked ~ .library-content .library-catalog-top .library-folder-card[for="category-indicator"]::after {
  border-color: var(--library-folder-selected-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.38) 0%, rgba(248, 250, 252, 0.14) 100%);
  box-shadow:
    0 10px 30px var(--library-folder-selected-shadow),
    0 18px 34px rgba(15, 23, 42, 0.075),
    inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

#category-all:checked ~ .library-content .library-catalog-top .library-folder-card[for="category-indicator"] .library-folder-icon,
#category-price-action:checked ~ .library-content .library-catalog-top .library-folder-card[for="category-price-action"] .library-folder-icon,
#category-time-based:checked ~ .library-content .library-catalog-top .library-folder-card[for="category-time-based"] .library-folder-icon,
#category-multi-signal:checked ~ .library-content .library-catalog-top .library-folder-card[for="category-multi-signal"] .library-folder-icon,
#category-saved:checked ~ .library-content .library-catalog-top .library-folder-card[for="category-saved"] .library-folder-icon,
#category-indicator:checked ~ .library-content .library-catalog-top .library-folder-card[for="category-indicator"] .library-folder-icon {
  opacity: 1;
}

#category-all:checked ~ .library-content .library-catalog-top .library-folder-card[for="category-indicator"] .library-folder-copy strong,
#category-price-action:checked ~ .library-content .library-catalog-top .library-folder-card[for="category-price-action"] .library-folder-copy strong,
#category-time-based:checked ~ .library-content .library-catalog-top .library-folder-card[for="category-time-based"] .library-folder-copy strong,
#category-multi-signal:checked ~ .library-content .library-catalog-top .library-folder-card[for="category-multi-signal"] .library-folder-copy strong,
#category-saved:checked ~ .library-content .library-catalog-top .library-folder-card[for="category-saved"] .library-folder-copy strong,
#category-indicator:checked ~ .library-content .library-catalog-top .library-folder-card[for="category-indicator"] .library-folder-copy strong {
  color: #0f172a;
}

#category-all:checked ~ .library-content .library-catalog-top .library-folder-card[for="category-indicator"] .library-folder-count,
#category-price-action:checked ~ .library-content .library-catalog-top .library-folder-card[for="category-price-action"] .library-folder-count,
#category-time-based:checked ~ .library-content .library-catalog-top .library-folder-card[for="category-time-based"] .library-folder-count,
#category-multi-signal:checked ~ .library-content .library-catalog-top .library-folder-card[for="category-multi-signal"] .library-folder-count,
#category-saved:checked ~ .library-content .library-catalog-top .library-folder-card[for="category-saved"] .library-folder-count,
#category-indicator:checked ~ .library-content .library-catalog-top .library-folder-card[for="category-indicator"] .library-folder-count {
  color: var(--library-folder-accent);
  font-weight: 600;
}

#category-all:checked ~ .library-content .library-panel[data-panel="all"],
#category-indicator:checked ~ .library-content .library-panel[data-panel="indicator"],
#category-price-action:checked ~ .library-content .library-panel[data-panel="price-action"],
#category-time-based:checked ~ .library-content .library-panel[data-panel="time-based"],
#category-multi-signal:checked ~ .library-content .library-panel[data-panel="multi-signal"],
#category-saved:checked ~ .library-content .library-panel[data-panel="saved"] {
  display: block;
}

.library-guidance-section {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid rgba(13, 91, 215, 0.08);
}

.library-guidance-section.is-pending-reveal {
  opacity: 0;
  transform: translateY(12px);
}

.library-guidance-section.is-visible {
  animation: libraryGuidanceRise 520ms ease-out both;
}

.library-guidance-section .landing-section-header--centered {
  max-width: none;
  margin: 0 0 18px;
  text-align: left;
}

.library-guidance-section .landing-section-header h2 {
  margin: 0;
  color: #122338;
  font-size: clamp(1.65rem, 3vw, 2rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.library-guidance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.library-guidance-card {
  display: grid;
  align-content: start;
  justify-items: start;
  min-height: 100%;
  padding: 20px 18px 18px;
  border: 1px solid rgba(13, 91, 215, 0.1);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 12px 24px rgba(18, 32, 61, 0.035);
  text-align: left;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.library-guidance-card:hover {
  transform: translateY(-2px);
  border-color: rgba(13, 91, 215, 0.14);
  box-shadow: 0 16px 28px rgba(18, 32, 61, 0.065);
}

.library-guidance-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 13px;
  border: 1px solid rgba(13, 91, 215, 0.1);
  border-radius: 12px;
  background: #f5f9ff;
  color: #2d5faa;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.library-guidance-icon svg {
  display: block;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.library-guidance-card h3 {
  margin: 0;
  color: #122338;
  font-size: 1.04rem;
  font-weight: 640;
  line-height: 1.22;
  letter-spacing: -0.018em;
}

.library-guidance-card p {
  margin: 9px 0 0;
  color: #4a607c;
  line-height: 1.58;
  font-size: 0.92rem;
}

.library-carousel-dots,
.library-mobile-help {
  display: none;
}

@media (max-width: 1199px) {
  body.strategy-library-inter-page .library-browser {
    display: block;
  }

  body.strategy-library-inter-page .library-sidebar {
    display: none;
  }

  body.strategy-library-inter-page .library-content {
    padding-left: 0;
  }

  body.strategy-library-inter-page .library-title-block {
    padding: 0 0 18px;
  }

  body.strategy-library-inter-page .library-title-heading {
    align-items: flex-start;
    gap: 12px;
  }

  body.strategy-library-inter-page .library-title-block h1 {
    font-size: clamp(1.95rem, 9vw, 2.45rem);
  }

  body.strategy-library-inter-page .library-title-copy {
    max-width: 48ch;
    margin-top: 10px;
    font-size: 0.96rem;
    line-height: 1.52;
  }

  body.strategy-library-inter-page .library-catalog-top {
    position: static;
    margin-top: 10px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    overflow: visible;
  }

  body.strategy-library-inter-page .library-folder-grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 10px;
    margin: -10px -16px 0;
    padding: 10px 16px 12px;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
  }

  body.strategy-library-inter-page .library-folder-grid::-webkit-scrollbar {
    display: none;
  }

  body.strategy-library-inter-page .library-folder-card {
    flex: 0 0 clamp(232px, 68vw, 288px);
    scroll-snap-align: start;
    scroll-snap-stop: always;
    min-height: 126px;
    padding: 21px 18px 18px;
    gap: 14px;
  }

  body.strategy-library-inter-page .library-carousel-dots {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
  }

  body.strategy-library-inter-page .library-catalog-top.has-category-overflow .library-carousel-dots {
    display: flex;
  }

  body.strategy-library-inter-page .library-carousel-dots[hidden] {
    display: none;
  }

  body.strategy-library-inter-page .library-carousel-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 12px;
    height: 12px;
    padding: 0;
    border: 1.5px solid #8fa0b7;
    border-radius: 999px;
    background: transparent;
    color: transparent;
    cursor: pointer;
  }

  body.strategy-library-inter-page .library-carousel-dot.is-active {
    border-color: #1d4ed8;
    background: #1d4ed8;
  }

  body.strategy-library-inter-page .library-carousel-dot:focus-visible {
    outline: 2px solid rgba(13, 91, 215, 0.45);
    outline-offset: 3px;
  }

  body.strategy-library-inter-page .library-panel-head {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
  }

  body.strategy-library-inter-page .library-panel-head h2 {
    font-size: clamp(1.5rem, 6.8vw, 2rem);
  }

  body.strategy-library-inter-page .library-toolbar {
    margin-left: auto;
  }

  body.strategy-library-inter-page .library-sort {
    gap: 0;
    justify-items: end;
  }

  body.strategy-library-inter-page .library-sort span {
    display: none;
  }

  body.strategy-library-inter-page .library-sort select {
    min-width: 90px;
    padding: 8px 10px;
  }

  body.strategy-library-inter-page .library-strategy-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  body.strategy-library-inter-page .library-strategy-card {
    position: relative;
    grid-template-columns: 68px minmax(0, 1fr);
    grid-template-areas:
      "media title"
      "description description"
      "footer footer";
    gap: 10px 12px;
    padding: 12px;
    overflow: visible;
  }

  body.strategy-library-inter-page .library-strategy-visual {
    grid-area: media;
    align-content: start;
    width: 68px;
    height: 68px;
  }

  body.strategy-library-inter-page .library-strategy-media {
    width: 68px;
    height: 68px;
    border-radius: 14px;
  }

  body.strategy-library-inter-page .library-strategy-card-body {
    display: contents;
  }

  body.strategy-library-inter-page .library-strategy-card-header {
    grid-area: title;
    display: block;
    min-height: 68px;
    padding: 31px 36px 0 0;
  }

  body.strategy-library-inter-page .library-strategy-card-header h3 {
    font-size: 1rem;
    line-height: 1.24;
  }

  body.strategy-library-inter-page .library-save-button {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    max-width: 30px;
  }

  body.strategy-library-inter-page .library-strategy-card-body p {
    grid-area: description;
    width: 100%;
    margin-top: 0;
    font-size: 0.9rem;
    line-height: 1.45;
    -webkit-line-clamp: 3;
  }

  body.strategy-library-inter-page .library-strategy-card-footer {
    grid-area: footer;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 0;
    padding: 0;
  }

  body.strategy-library-inter-page .library-strategy-tags {
    width: 100%;
    flex-wrap: wrap;
  }

  body.strategy-library-inter-page .library-mobile-help {
    display: grid;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(13, 91, 215, 0.08);
  }

  body.strategy-library-inter-page .library-mobile-help a {
    min-height: 44px;
    padding: 8px 12px;
  }

  body.strategy-library-inter-page .library-guidance-section {
    display: none;
  }

  body.strategy-library-inter-page .page-shell--strategy-library {
    padding-bottom: 24px;
  }

  body.strategy-library-inter-page .app-footer--public {
    align-items: center;
    margin-top: 0;
    text-align: center;
  }

  body.strategy-library-inter-page .app-footer--public .app-footer-copy {
    max-width: none;
  }

  body.strategy-library-inter-page .app-footer-links {
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  body.strategy-library-inter-page .library-title-block {
    padding-bottom: 20px;
  }

  body.strategy-library-inter-page .library-title-block h1 {
    font-size: clamp(2.35rem, 6vw, 3rem);
  }

  body.strategy-library-inter-page .library-title-copy {
    max-width: 64ch;
  }

  body.strategy-library-inter-page .library-catalog-top {
    margin-bottom: 22px;
  }

  body.strategy-library-inter-page .library-folder-grid {
    margin-left: 0;
    margin-right: 0;
    padding-left: 2px;
    padding-right: 2px;
    scroll-padding-inline: 2px;
  }

  body.strategy-library-inter-page .library-folder-card {
    flex-basis: clamp(176px, 22vw, 210px);
  }

  body.strategy-library-inter-page .library-strategy-card {
    min-height: 100%;
  }

  body.strategy-library-inter-page .library-pagination {
    margin-top: 22px;
  }
}

@media (min-width: 900px) and (max-width: 1199px) {
  body.strategy-library-inter-page .library-strategy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }
}

@media (max-width: 1199px) and (max-height: 500px) {
  body.strategy-library-inter-page .page-shell--strategy-library {
    padding-top: 16px;
  }

  body.strategy-library-inter-page .library-title-block {
    padding-bottom: 12px;
  }

  body.strategy-library-inter-page .library-title-block h1 {
    font-size: clamp(2rem, 5.5vw, 2.55rem);
  }

  body.strategy-library-inter-page .library-title-copy {
    margin-top: 8px;
    font-size: 0.94rem;
    line-height: 1.45;
  }

  body.strategy-library-inter-page .library-catalog-top {
    margin-top: 6px;
    margin-bottom: 14px;
  }

  body.strategy-library-inter-page .library-folder-card {
    flex-basis: clamp(152px, 20vw, 180px);
    min-height: 112px;
    padding: 16px 15px 14px;
  }

  body.strategy-library-inter-page .library-folder-icon {
    width: 36px;
    height: 36px;
  }

  body.strategy-library-inter-page .library-panel-head {
    margin-bottom: 10px;
  }
}

@keyframes libraryGuidanceRise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

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

@media (prefers-reduced-motion: reduce) {
  .library-guidance-section,
  .library-guidance-section.is-pending-reveal,
  .library-guidance-section.is-visible {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .library-guidance-card {
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
  }

  .library-guidance-card:hover {
    transform: none;
  }
}

.page-shell--strategy-detail {
  padding-top: 12px;
  margin-top: 0;
  padding-bottom: 36px;
}

.strategy-detail-layout {
  position: relative;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.strategy-detail-layout::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 240px;
  width: 1px;
  background: rgba(13, 91, 215, 0.12);
  content: "";
  pointer-events: none;
}

.strategy-detail-main {
  min-width: 0;
}

.strategy-browser-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 12px);
  align-self: start;
  display: grid;
  gap: 14px;
  height: fit-content;
  max-height: calc(100vh - var(--header-height) - 12px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1px 18px 10px 0;
  border-right: 0;
}

.strategy-browser-card {
  display: block;
  min-height: auto;
  max-height: inherit;
  align-content: start;
  overflow: hidden;
  padding: 0;
  border-right: 0;
  background: transparent;
  box-shadow: none;
}

.strategy-browser-panel-viewport {
  width: 100%;
  overflow: hidden;
}

.strategy-browser-panel-track {
  display: flex;
  width: 100%;
  align-items: flex-start;
  transition: transform 220ms ease;
  will-change: transform;
}

.strategy-browser-panel-track.is-default {
  transform: translateX(0);
}

.strategy-browser-panel-track.is-recent {
  transform: translateX(-100%);
}

.strategy-browser-panel-track.is-saved {
  transform: translateX(-200%);
}

.strategy-browser-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: auto;
  padding: 6px 18px 10px 0;
  border-bottom: 1px solid rgba(13, 91, 215, 0.12);
}

.strategy-browser-head--focused {
  justify-content: flex-start;
}

.strategy-browser-back,
.strategy-browser-inline-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 40px;
  min-width: 0;
  padding: 8px 11px 8px 18px;
  border-radius: 11px;
  color: #304763;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

button.strategy-browser-inline-link {
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.strategy-browser-back {
  width: auto;
  min-height: 30px;
  padding: 0;
  border-radius: 0;
  color: #1d5db6;
  font-weight: 700;
}

button.strategy-browser-back {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: normal;
  color: #1d5db6;
  letter-spacing: normal;
  text-align: left;
}

.strategy-browser-back:hover {
  background: transparent;
  color: #123e82;
  text-decoration: underline;
  text-underline-offset: 3px;
  transform: none;
}

.strategy-browser-inline-link:hover {
  background: #f8fafc;
  color: #0f172a;
  transform: none;
}

.strategy-browser-section {
  display: grid;
  gap: 9px;
  padding-top: 15px;
  padding-right: 14px;
  margin-top: 15px;
  border-top: 1px solid rgba(13, 91, 215, 0.1);
}

.strategy-browser-section--primary {
  gap: 10px;
  padding-top: 0;
  padding-right: 14px;
  margin-top: 0;
  border-top: 0;
}

.strategy-browser-section--primary.library-rail-section {
  padding-top: 15px;
  padding-right: 0;
  margin-top: 18px;
  border-top: 1px solid rgba(13, 91, 215, 0.1);
}

.strategy-browser-section--destinations {
  gap: 9px;
}

.strategy-browser-section--tool,
.strategy-browser-section--utility {
  padding-right: 0;
}

.strategy-browser-view {
  display: grid;
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  gap: 14px;
}

.strategy-browser-view[data-sidebar-view="default"] {
  gap: 0;
}

.strategy-browser-view[data-sidebar-view="recent"],
.strategy-browser-view[data-sidebar-view="saved"] {
  gap: 0;
}

.strategy-browser-selector {
  justify-content: flex-start;
}

.strategy-browser-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  margin-left: auto;
  border-radius: 6px;
  background: transparent;
  color: #91a4bc;
  opacity: 0.78;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    opacity 0.18s ease;
}

.strategy-browser-chevron::before {
  width: 14px;
  height: 14px;
  background: currentColor;
  content: "";
  transform: rotate(-90deg);
  mask-image: url("./assets/icons/lucide/chevron-down.svg");
  -webkit-mask-image: url("./assets/icons/lucide/chevron-down.svg");
  mask-position: center;
  -webkit-mask-position: center;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-size: contain;
}

.strategy-browser-destination {
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px 10px 10px 12px;
  border: 1px solid transparent;
  background: transparent;
  color: #334155;
}

.strategy-browser-destination:hover,
.strategy-browser-destination:focus-visible {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #0f172a;
  box-shadow: 0 10px 22px -20px rgba(15, 23, 42, 0.35);
}

.strategy-browser-destination-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  line-height: 1.2;
}

.strategy-browser-destination-label {
  color: #334155;
  font-size: 0.9rem;
  font-weight: 650;
}

.strategy-browser-destination-meta {
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 500;
}

.strategy-browser-destination:hover .strategy-browser-destination-label,
.strategy-browser-destination:focus-visible .strategy-browser-destination-label {
  color: #0f172a;
}

.strategy-browser-destination .strategy-browser-chevron {
  color: #94a3b8;
}

.strategy-browser-destination:hover .strategy-browser-chevron,
.strategy-browser-destination:focus-visible .strategy-browser-chevron {
  background: #e2e8f0;
  color: #64748b;
  opacity: 1;
}

.strategy-browser-tool-link {
  color: #334155;
  font-weight: 600;
}

.strategy-browser-heading-icon--saved::before {
  display: block;
  width: 15px;
  height: 15px;
  background: currentColor;
  content: "";
  mask-image: url("./assets/icons/lucide/bookmark.svg");
  -webkit-mask-image: url("./assets/icons/lucide/bookmark.svg");
  mask-position: center;
  -webkit-mask-position: center;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-size: contain;
}

.strategy-browser-focus-head {
  display: grid;
  gap: 0;
  justify-items: center;
  margin-bottom: 22px;
}

.strategy-browser-focus-head h3 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
  color: #152338;
  font-size: 1.08rem;
  font-weight: 500;
  line-height: normal;
  letter-spacing: -0.03em;
  text-transform: none;
}

.strategy-browser-view > .strategy-browser-list {
  padding-right: 0;
}

.strategy-browser-section h3 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 1px;
  color: #7c8da6;
  font-size: 0.74rem;
  font-weight: 760;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.strategy-browser-section.strategy-browser-focus-head h3 {
  justify-content: center;
  width: 100%;
  margin: 0;
  color: #152338;
  font-size: 1.08rem;
  font-weight: 500;
  line-height: normal;
  letter-spacing: -0.03em;
  text-transform: none;
}

body.strategy-detail-inter-page .strategy-browser-section.strategy-browser-focus-head h3 {
  color: #152338;
  font-size: 1.08rem;
  font-weight: 500;
  line-height: normal;
  letter-spacing: -0.03em;
}

.strategy-browser-heading-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: #5a6f8b;
}

.strategy-browser-heading-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.strategy-browser-heading-icon--recent {
  background: currentColor;
  mask-image: url("./assets/icons/lucide/recent.svg");
  -webkit-mask-image: url("./assets/icons/lucide/recent.svg");
  mask-position: center;
  -webkit-mask-position: center;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-size: contain;
}

.strategy-browser-list {
  display: grid;
  gap: 6px;
}

.strategy-browser-empty-copy {
  margin: 4px 0 0;
  padding: 12px 14px;
  border: 1px dashed rgba(100, 116, 139, 0.28);
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.82);
  color: #64748b;
  font-size: 0.84rem;
  line-height: 1.5;
}

.strategy-browser-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 3px;
  min-height: 40px;
  min-width: 0;
  padding: 9px 10px 9px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #334155;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.strategy-browser-link-label,
.strategy-browser-link {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.strategy-browser-link-label {
  min-width: 0;
}

.strategy-browser-list--recent .strategy-browser-link:not(.is-active)::before {
  content: none;
}

.strategy-browser-link:hover {
  background: #f8fafc;
  color: #475569;
  transform: none;
}

.strategy-browser-link.is-active {
  border-color: #dce5f0;
  background: #f8fafc;
  color: #152338;
  font-weight: 500;
  line-height: 1.42;
  box-shadow: none;
  transform: none;
}

.strategy-browser-link.is-active::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 0;
  width: 3px;
  border-radius: 999px;
  background: #2563eb;
}

.strategy-browser-link.is-active:hover {
  background: #f8fafc;
  color: #0f172a;
  transform: none;
}

.strategy-browser-link.is-active .strategy-browser-link-icon {
  width: 18px;
  height: 22px;
  flex-basis: 18px;
  background: transparent;
  color: #64748b;
  transform: translateX(-2px);
}

.strategy-browser-link.is-active .strategy-browser-link-icon svg {
  width: 14px;
  height: 14px;
}

body.strategy-detail-inter-page .strategy-browser-link:not(.is-active) {
  color: #64748b;
  font-weight: 400;
}

body.strategy-detail-inter-page .strategy-browser-link:not(.is-active):hover {
  background: #f8fafc;
  color: #475569;
}

body.strategy-detail-inter-page .strategy-browser-link.is-active {
  color: #152338;
  font-weight: 500;
  line-height: 1.42;
}

.strategy-browser-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
  width: 18px;
  height: 22px;
  color: currentColor;
}

.strategy-browser-link-icon--empty {
  position: relative;
  color: #cbd5e1;
  transform: translateX(-2px);
}

.strategy-browser-link-icon--empty::before {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.strategy-browser-link-icon svg,
.strategy-browser-inline-icon svg,
.strategy-browser-external-icon {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.strategy-browser-external-icon {
  flex: 0 0 13px;
  width: 13px;
  height: 13px;
  margin-left: auto;
  color: #91a4bc;
  opacity: 0.6;
  transition:
    color 0.18s ease,
    opacity 0.18s ease,
    transform 0.18s ease;
}

.strategy-browser-link:hover .strategy-browser-external-icon {
  color: #123e82;
  opacity: 1;
  transform: translate(1px, -1px);
}

.strategy-browser-inline-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  color: currentColor;
}

.strategy-browser-inline-icon--recent::before,
.strategy-browser-inline-icon--saved::before,
.strategy-browser-inline-icon--history::before {
  display: block;
  width: 16px;
  height: 16px;
  background: currentColor;
  content: "";
  mask-position: center;
  -webkit-mask-position: center;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-size: contain;
}

.strategy-browser-inline-icon--recent::before {
  mask-image: url("./assets/icons/lucide/recent.svg");
  -webkit-mask-image: url("./assets/icons/lucide/recent.svg");
}

.strategy-browser-inline-icon--saved::before {
  mask-image: url("./assets/icons/lucide/bookmark.svg");
  -webkit-mask-image: url("./assets/icons/lucide/bookmark.svg");
}

.strategy-browser-inline-icon--history::before {
  mask-image: url("./assets/icons/lucide/file-box.svg");
  -webkit-mask-image: url("./assets/icons/lucide/file-box.svg");
}

.strategy-browser-inline-link span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.strategy-browser-support {
  display: grid;
  gap: 5px;
}

.strategy-detail-header {
  padding: 0 0 18px;
}

.strategy-detail-hero {
  display: block;
  margin-top: 0;
  padding: 0 0 22px;
  border-bottom: 1px solid rgba(71, 85, 105, 0.18);
  background: transparent;
  box-shadow: none;
}

.strategy-detail-title-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.strategy-detail-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  justify-content: flex-start;
}

.strategy-detail-title-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 0;
}

.strategy-detail-title-block h1 {
  margin: 0;
  margin-right: 4px;
  color: #102033;
  font-size: clamp(1.68rem, 1.9vw, 1.82rem);
  font-weight: 650;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-shadow: none;
}

.strategy-save-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  min-width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #6b7c94;
  font: inherit;
  padding: 0;
  position: relative;
  isolation: isolate;
  cursor: pointer;
  transition: transform 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.strategy-save-button::before {
  position: absolute;
  inset: 4px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(234, 179, 8, 0.18) 0%, rgba(234, 179, 8, 0.08) 58%, rgba(234, 179, 8, 0) 100%);
  box-shadow: 0 5px 12px rgba(183, 121, 31, 0.12);
  content: "";
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  z-index: 0;
}

.strategy-save-button:hover {
  background: transparent;
  color: #3b4f68;
  transform: translateY(-1px) scale(1.08);
}

.strategy-save-button:disabled {
  color: #94a3b8;
  cursor: not-allowed;
  opacity: 0.72;
}

.strategy-save-button:disabled:hover {
  transform: none;
  color: #94a3b8;
}

.strategy-save-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
}

.strategy-save-button.is-saved,
.strategy-save-button[aria-pressed="true"] {
  background: transparent;
  color: #b7791f;
}

.strategy-save-button.is-saved::before,
.strategy-save-button[aria-pressed="true"]::before {
  opacity: 1;
  transform: scale(1);
}

.strategy-save-button.is-saved .strategy-save-button-icon svg,
.strategy-save-button[aria-pressed="true"] .strategy-save-button-icon svg {
  fill: currentColor;
}

.strategy-save-button-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  z-index: 1;
}

.strategy-save-button-icon::before {
  position: absolute;
  inset: 0;
  background: currentColor;
  content: "";
  mask-image: url("./assets/icons/lucide/bookmark.svg");
  -webkit-mask-image: url("./assets/icons/lucide/bookmark.svg");
  mask-position: center;
  -webkit-mask-position: center;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-size: contain;
  opacity: 0;
  transition: opacity 0.16s ease;
}

.strategy-save-button.is-saved .strategy-save-button-icon::before,
.strategy-save-button[aria-pressed="true"] .strategy-save-button-icon::before {
  opacity: 1;
}

.strategy-save-button-icon svg {
  position: relative;
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.strategy-detail-title-meta .pill {
  padding: 5px 9px;
  border: 0;
  font-size: 0.78rem;
  font-weight: 760;
  line-height: 1.15;
}

.strategy-detail-title-meta .pill--indicator {
  background: #eff6ff;
  color: #2563eb;
}

.strategy-detail-title-meta .pill--reversal {
  background: #fef2f2;
  color: #dc2626;
}

.strategy-detail-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(340px, 0.84fr);
  gap: 16px;
  align-items: start;
  margin-top: 0;
}

.strategy-rules-panel,
.strategy-config-card {
  border-radius: 10px;
  box-shadow: 0 12px 26px rgba(18, 32, 61, 0.05);
}

.strategy-rules-panel {
  height: auto;
  min-height: 0;
  max-height: none;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(252, 253, 255, 0.98) 100%);
  box-shadow: 0 10px 24px rgba(18, 32, 61, 0.045);
  overflow: visible;
  padding: 16px 20px 18px;
  display: grid;
  gap: 20px;
}

.strategy-panel-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
}

.strategy-panel-title h2,
.strategy-config-head h2 {
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.strategy-panel-title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(34, 75, 138, 0.08);
  color: #224b8a;
}

.strategy-panel-title-icon svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.strategy-primary-visual {
  display: grid;
  gap: 0;
  margin-top: 12px;
  padding-inline: 8px;
}

.strategy-overview-copy {
  max-width: 760px;
  margin: 16px 8px 0;
  color: #1f3048;
  font-size: 1rem;
  line-height: 1.68;
}

.strategy-visual-media--placeholder {
  display: grid;
  place-items: center;
}

.strategy-visual-placeholder {
  display: grid;
  gap: 10px;
  width: min(560px, calc(100% - 40px));
  padding: 24px;
  border: 1px dashed rgba(34, 75, 138, 0.26);
  border-radius: 12px;
  background: rgba(239, 246, 255, 0.68);
  color: #274665;
  text-align: center;
}

.strategy-visual-placeholder-label {
  color: #40658d;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.strategy-visual-placeholder strong {
  font-size: 1rem;
  line-height: 1.45;
}

.strategy-visual-placeholder p {
  margin: 0;
  color: #526b87;
  font-size: 0.86rem;
  line-height: 1.45;
}

.strategy-section-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1.2;
  color: #374151;
}

.strategy-section-title span:last-child {
  font-size: 1.14rem;
  font-weight: 580;
  letter-spacing: -0.015em;
}

.strategy-section-title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: rgba(34, 75, 138, 0.08);
  color: #224b8a;
}

.strategy-section-title-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.strategy-heading-lucide,
.strategy-browser-back-icon,
.strategy-config-back-icon {
  display: inline-block;
  flex: 0 0 auto;
  background: currentColor;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
}

.strategy-heading-lucide {
  width: 16px;
  height: 16px;
}

.strategy-section-title .strategy-heading-lucide--overview {
  width: 17px;
  height: 17px;
}

.strategy-browser-back-icon {
  width: 15px;
  height: 15px;
  mask-image: url("./assets/icons/lucide/arrow-left.svg");
  -webkit-mask-image: url("./assets/icons/lucide/arrow-left.svg");
}

.strategy-config-back-icon {
  width: 17px;
  height: 17px;
  mask-image: url("./assets/icons/lucide/arrow-left.svg");
  -webkit-mask-image: url("./assets/icons/lucide/arrow-left.svg");
}

.strategy-heading-lucide--overview {
  mask-image: url("./assets/icons/lucide/strategy-overview.svg");
  -webkit-mask-image: url("./assets/icons/lucide/strategy-overview.svg");
}

.strategy-heading-lucide--configure {
  mask-image: url("./assets/icons/lucide/configure.svg");
  -webkit-mask-image: url("./assets/icons/lucide/configure.svg");
}

.strategy-rules-section h2,
.strategy-config-section h2,
.strategy-recent-tests-head h2 {
  margin: 0;
  font-size: 1.08rem;
  color: #152338;
}

.strategy-rules-section--summary h2,
.strategy-config-head h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

body.strategy-detail-inter-page .strategy-config-head h2 {
  color: #0f172a;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.strategy-rules-section p {
  margin: 8px 0 0;
  color: #162235;
  font-size: 1rem;
  line-height: 1.72;
}

.strategy-rules-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.strategy-steps-list {
  display: grid;
  gap: 12px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.strategy-step-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid rgba(152, 129, 84, 0.14);
}

.strategy-step-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.strategy-step-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(180deg, #274165 0%, #365c94 100%);
  color: #f8fbff;
  font-size: 0.9rem;
  font-weight: 700;
}

.strategy-step-item h3 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.42;
  color: #152338;
}

.strategy-step-item p {
  margin: 6px 0 0;
  color: #1f3048;
  font-size: 0.97rem;
  line-height: 1.62;
}

.strategy-logic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.strategy-logic-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px 15px;
  border: 1px solid rgba(152, 129, 84, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
}

.strategy-logic-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(34, 75, 138, 0.08);
  color: #224b8a;
}

.strategy-logic-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.strategy-logic-icon--exit::before {
  display: block;
  width: 18px;
  height: 18px;
  background: currentColor;
  content: "";
  opacity: 0.82;
  mask-image: url("./assets/icons/lucide/exit.svg");
  -webkit-mask-image: url("./assets/icons/lucide/exit.svg");
  mask-position: center;
  -webkit-mask-position: center;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-size: contain;
}

.strategy-logic-card h3 {
  margin: 0;
  font-size: 0.98rem;
  color: #152338;
}

.strategy-logic-card p {
  margin: 6px 0 0;
  color: #1f3048;
  font-size: 0.94rem;
  line-height: 1.56;
}

.strategy-visual-stack {
  display: grid;
  gap: 14px;
  margin-top: 0;
}

.strategy-visual-card {
  display: grid;
  gap: 10px;
}

.strategy-visual-head {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  align-items: center;
}

.strategy-visual-head h3 {
  margin: 0;
  font-size: 1rem;
  color: #152338;
}

.strategy-setup-examples {
  display: grid;
  gap: 12px;
}

.strategy-guidance-intro,
.strategy-guidance-note {
  max-width: 760px;
}

.strategy-research-option-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: #274665;
  font-size: 0.9rem;
  line-height: 1.45;
}
.strategy-timed-majority-note p {
  margin-top: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

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

.strategy-example-caption {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(152, 129, 84, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
}

.strategy-example-caption h3 {
  margin: 0;
  color: #1f3048;
  font-size: 0.92rem;
  line-height: 1.35;
}

.strategy-example-caption p {
  margin: 6px 0 0;
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.5;
}

.strategy-guidance-section {
  display: grid;
  gap: 12px;
}

.strategy-guidance-section > h2 {
  margin-bottom: 0;
}

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

.strategy-research-option {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(152, 129, 84, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
}

.strategy-research-option h3 {
  margin: 0;
  color: #152338;
  font-size: 0.96rem;
  line-height: 1.35;
}

.strategy-research-option p {
  margin: 0;
  color: #1f3048;
  font-size: 0.9rem;
  line-height: 1.5;
}

.strategy-research-option-list {
  margin-top: -1px;
  padding-left: 18px;
  color: #1f3048;
  list-style-position: outside;
  text-align: left;
}

.strategy-practical-tip-card {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border: 1px solid rgba(34, 75, 138, 0.16);
  border-radius: 10px;
  background: rgba(239, 246, 255, 0.72);
}

.strategy-practical-tip-card p {
  margin: 0;
  color: #1f3048;
  font-size: 0.96rem;
  line-height: 1.58;
}

.strategy-guidance-section--learn-more {
  border-top: 1px solid rgba(152, 129, 84, 0.14);
  padding-top: 16px;
}

.strategy-guidance-section--learn-more p {
  margin-top: 0;
}

.strategy-guidance-parameter-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.strategy-guidance-parameter-list > div {
  display: grid;
  grid-template-columns: minmax(150px, 0.34fr) minmax(0, 1fr);
  gap: 18px;
  padding: 12px 0;
  border-top: 1px solid rgba(152, 129, 84, 0.14);
}

.strategy-guidance-parameter-list > div:first-child {
  border-top: 0;
  padding-top: 0;
}

.strategy-guidance-parameter-list dt {
  color: #152338;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.45;
}

.strategy-guidance-parameter-list dd {
  margin: 0;
  color: #1f3048;
  font-size: 0.96rem;
  line-height: 1.55;
}

.strategy-guidance-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 20px;
  color: #1f3048;
  font-size: 0.96rem;
  line-height: 1.55;
}

.strategy-guidance-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.strategy-guidance-links a {
  color: #1d5db6;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}

.strategy-guidance-links a:hover,
.strategy-guidance-links a:focus-visible {
  color: #123f7f;
  text-decoration: underline;
}

/* Shared educational hierarchy below the Strategy Overview title. */
.strategy-content-root {
  --strategy-education-section-gap: 28px;
  --strategy-education-heading-gap: 12px;
  --strategy-education-internal-gap: 10px;
  display: grid;
  gap: var(--strategy-education-section-gap);
  min-width: 0;
}

.strategy-content-root > .strategy-rules-section {
  min-width: 0;
}

.strategy-content-root > .strategy-rules-section:not(.strategy-rules-section--summary) {
  display: grid;
  align-content: start;
  gap: var(--strategy-education-heading-gap);
}

.strategy-content-root > .strategy-rules-section:not(.strategy-rules-section--summary) > h2,
.strategy-content-root > .strategy-rules-section:not(.strategy-rules-section--summary) > .strategy-rules-section-head h2 {
  color: #152338;
  font-size: 1.12rem;
  font-weight: 620;
  letter-spacing: -0.018em;
  line-height: 1.32;
}

body.strategy-detail-inter-page .strategy-content-root .strategy-step-item h3 {
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.4;
}

.strategy-content-root .strategy-guidance-parameter-list dt,
.strategy-content-root .strategy-research-option h3 {
  font-size: 0.96rem;
  font-weight: 620;
  line-height: 1.42;
}

.strategy-content-root .strategy-steps-list,
.strategy-content-root > .strategy-rules-section:not(.strategy-rules-section--summary) > p {
  margin-top: 0;
}

.strategy-content-root .strategy-guidance-section--learn-more {
  gap: var(--strategy-education-internal-gap);
  padding-top: var(--strategy-education-heading-gap);
}

.strategy-content-root .strategy-research-option-list {
  min-width: 0;
  overflow-wrap: anywhere;
}

.strategy-content-root .strategy-research-option-list li {
  min-width: 0;
}

.strategy-example-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.strategy-example-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  background: #ffffff;
  color: #64748b;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.strategy-example-tab:hover {
  background: #f8fafc;
  border-color: #dce5f0;
  color: #334155;
}

.strategy-example-viewer {
  display: block;
}

.strategy-example-panel {
  display: none;
}

#setup-example-long:checked ~ .strategy-example-tabs label[for="setup-example-long"],
#setup-example-short:checked ~ .strategy-example-tabs label[for="setup-example-short"],
#setup-example-failed:checked ~ .strategy-example-tabs label[for="setup-example-failed"],
#setup-example-notes:checked ~ .strategy-example-tabs label[for="setup-example-notes"] {
  border-color: #274f83;
  background: #eff6ff;
  color: #173d70;
  font-weight: 600;
  box-shadow: 0 10px 22px -18px rgba(23, 61, 112, 0.38);
}

#setup-example-long:checked ~ .strategy-example-viewer .strategy-example-panel--long,
#setup-example-short:checked ~ .strategy-example-viewer .strategy-example-panel--short,
#setup-example-failed:checked ~ .strategy-example-viewer .strategy-example-panel--failed,
#setup-example-notes:checked ~ .strategy-example-viewer .strategy-example-panel--notes {
  display: block;
}

.strategy-visual-media {
  aspect-ratio: 16 / 9;
  min-height: 232px;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.98) 100%),
    #ffffff;
  box-shadow: none;
  position: relative;
}

.strategy-visual-media::before,
.strategy-visual-media::after {
  content: "";
  position: absolute;
  inset: auto 8% 18% 8%;
  height: 42%;
  border-top: 2px solid rgba(71, 85, 105, 0.2);
  border-radius: 50%;
}

.strategy-visual-media::after {
  inset: auto 12% 30% 12%;
  border-top-color: rgba(59, 130, 246, 0.18);
}

.strategy-visual-media--short {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.98) 100%),
    #ffffff;
}

.strategy-visual-media--long,
.strategy-visual-media--short,
.strategy-visual-media--example {
  aspect-ratio: 16 / 9;
  min-height: 0;
}

.strategy-visual-media--failed,
.strategy-visual-media--notes {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.98) 100%),
    #ffffff;
}

.strategy-visual-media--primary {
  aspect-ratio: 16 / 9;
  min-height: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.98) 100%),
    #ffffff;
}

.strategy-visual-media--image img {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.strategy-visual-media--image::before,
.strategy-visual-media--image::after {
  display: none;
}

.strategy-media-expand {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  color: #334155;
  box-shadow: 0 12px 24px -20px rgba(15, 23, 42, 0.45);
  cursor: pointer;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.strategy-media-expand:hover,
.strategy-media-expand:focus-visible {
  border-color: #cbd5e1;
  background: #f1f5f9;
  color: #0f172a;
  box-shadow: 0 14px 28px -22px rgba(15, 23, 42, 0.5);
}

.strategy-media-expand span {
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: url("./assets/icons/lucide/expand.svg") center / contain no-repeat;
  mask: url("./assets/icons/lucide/expand.svg") center / contain no-repeat;
}

.strategy-example-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.86);
  color: #475569;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1;
  box-shadow: 0 10px 24px -20px rgba(15, 23, 42, 0.34);
}

.strategy-example-notes-card {
  position: absolute;
  inset: 22px;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 34px -28px rgba(15, 23, 42, 0.34);
}

.strategy-example-notes-card h3 {
  margin: 0;
  color: #152338;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.2;
}

.strategy-example-notes-card p {
  margin: 0;
  max-width: 520px;
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.55;
}

.strategy-visual-media--primary::before {
  inset: auto 6% 16% 6%;
  height: 42%;
  border-top-color: rgba(71, 85, 105, 0.2);
}

.strategy-visual-media--primary::after {
  inset: auto 11% 34% 11%;
  border-top-color: rgba(59, 130, 246, 0.18);
}

.strategy-media-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 32px;
}

.strategy-media-lightbox.is-hidden {
  display: none;
}

.strategy-media-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(3px);
}

.strategy-media-lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100vw - 64px));
  max-height: calc(100vh - 64px);
}

.strategy-media-lightbox-preview {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(226, 232, 240, 0.76);
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 26px 70px -34px rgba(15, 23, 42, 0.58);
}

.strategy-media-lightbox-preview .strategy-visual-media {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.strategy-media-lightbox-preview .strategy-visual-media--image img {
  object-fit: contain;
  background: #ffffff;
}

.strategy-media-lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  background: #ffffff;
  color: #334155;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 14px 34px -24px rgba(15, 23, 42, 0.5);
}

.strategy-media-lightbox-close:hover,
.strategy-media-lightbox-close:focus-visible {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
}

.strategy-config-panel {
  position: static;
  align-self: start;
}

.strategy-config-panel.is-preview-sticky {
  position: sticky;
  top: calc(var(--header-height) + 18px);
  z-index: 2;
}

.strategy-config-panel.is-form-open {
  position: sticky;
  top: calc(var(--header-height) + 18px);
  z-index: 2;
  height: calc(100vh - var(--header-height) - 36px);
  max-height: calc(100vh - var(--header-height) - 36px);
  overflow: hidden;
}

.strategy-config-panel.is-form-open .strategy-config-card {
  height: 100%;
  max-height: none;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.strategy-config-card {
  display: grid;
  align-content: start;
  height: auto;
  min-height: 0;
  max-height: none;
  border: 1px solid rgba(47, 111, 238, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 249, 255, 0.98) 100%);
  box-shadow:
    0 18px 42px rgba(18, 32, 61, 0.1),
    0 0 0 1px rgba(47, 111, 238, 0.04);
  padding: 0 0 18px;
  overflow: visible;
  overscroll-behavior: auto;
}

.strategy-config-head {
  display: flex;
  align-items: flex-start;
  gap: 0;
  padding: 16px 20px 14px;
  border-bottom: 1px solid rgba(13, 91, 215, 0.1);
  justify-content: flex-start;
  text-align: left;
}

.strategy-config-head h2 {
  margin: 0;
}

.strategy-config-title-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  justify-content: space-between;
  width: 100%;
}

.strategy-config-title {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.strategy-config-head-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: #224b8a;
  flex: 0 0 auto;
  margin-top: 1px;
}

.strategy-config-head-icon .strategy-heading-lucide--configure {
  width: 21px;
  height: 21px;
}

.strategy-config-head-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.strategy-config-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  min-width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #64748b;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
}

.strategy-config-back[hidden] {
  display: none;
}

.strategy-config-back:hover {
  background: rgba(13, 91, 215, 0.06);
  color: #1e4f90;
}

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

.strategy-test-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0 16px;
  padding: 3px;
  border: 1px solid rgba(13, 91, 215, 0.12);
  border-radius: 10px;
  background: linear-gradient(180deg, #f5f8fd 0%, #eef4fb 100%);
}

.strategy-test-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 34px;
  max-width: 100%;
  padding: 0 4px;
  font-size: 0.88rem;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: 8px;
  border: 1px solid transparent;
  color: #64748b;
  font-weight: 500;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.strategy-test-tab:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(29, 59, 110, 0.1);
}

.strategy-config-intro {
  display: grid;
  gap: 12px;
  margin: 16px 20px 0;
  padding: 18px 18px 16px;
  border: 1px solid rgba(13, 91, 215, 0.12);
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fbff 0%, #f2f7fd 100%);
}

.strategy-config-intro[hidden] {
  display: none;
}

.strategy-config-intro-title {
  margin: 0;
  color: #163050;
  font-size: 1rem;
  font-weight: 700;
}

.strategy-config-intro-copy {
  margin: 0;
  color: #415a79;
  font-size: 0.92rem;
  line-height: 1.55;
}

.strategy-config-intro-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.strategy-config-continue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, #375f96 0%, #274f83 100%);
  color: #f6f9ff;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

body.strategy-detail-inter-page .strategy-config-continue {
  font-weight: 500;
}

.strategy-config-continue:hover {
  background: linear-gradient(180deg, #1d3556 0%, #163050 100%);
  box-shadow: 0 10px 18px rgba(22, 48, 80, 0.16);
}

.strategy-config-learn-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #355b91;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}

.strategy-config-learn-more-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  background: currentColor;
  mask-image: url("./assets/icons/lucide/learn-more.svg");
  -webkit-mask-image: url("./assets/icons/lucide/learn-more.svg");
  mask-position: center;
  -webkit-mask-position: center;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-size: contain;
}

.strategy-config-section,
.strategy-costs-accordion,
.strategy-run-button {
  margin-left: 20px;
  margin-right: 20px;
}

#test-backtest:checked ~ .strategy-test-tabs label[for="test-backtest"],
#test-sweep:checked ~ .strategy-test-tabs label[for="test-sweep"],
#test-walkforward:checked ~ .strategy-test-tabs label[for="test-walkforward"] {
  color: #f7fbff;
  font-weight: 600;
  background: linear-gradient(180deg, #27589a 0%, #173d70 100%);
  box-shadow:
    0 6px 14px rgba(23, 61, 112, 0.2),
    0 0 0 1px rgba(122, 171, 255, 0.08);
  border: 1px solid rgba(16, 48, 92, 0.34);
}

.strategy-config-section {
  margin-top: 20px;
}

.strategy-sweep-section {
  position: relative;
  z-index: 2;
  overflow: visible;
}

.strategy-config-section + .strategy-config-section,
.strategy-config-section + .strategy-costs-accordion {
  margin-top: 18px;
}

.strategy-config-section-head {
  margin-bottom: 8px;
}

.strategy-config-section-head h2,
.strategy-costs-accordion summary strong {
  color: #1f2937;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.22;
}

.strategy-config-section-head h2 {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.strategy-config-info {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  color: #7386a0;
  cursor: help;
}

.strategy-config-info::before {
  display: block;
  width: 14px;
  height: 14px;
  background: currentColor;
  content: "";
  mask-image: url("./assets/icons/lucide/info-icon.svg");
  -webkit-mask-image: url("./assets/icons/lucide/info-icon.svg");
  mask-position: center;
  -webkit-mask-position: center;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-size: contain;
}

.strategy-config-info::after {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 40;
  width: max-content;
  max-width: 248px;
  padding: 8px 10px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: #0f172a;
  color: #f8fafc;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.16);
  content: attr(data-tooltip);
  font-size: 0.76rem;
  font-weight: 400;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
  white-space: normal;
}

body.strategy-detail-inter-page .strategy-config-info::after {
  display: none;
}

.strategy-config-info[data-tooltip-placement="down-right"]::after {
  top: calc(100% + 8px);
  bottom: auto;
  left: 0;
  right: auto;
  transform: translate(0, 4px);
}

.strategy-config-info[data-tooltip-placement="down-left"]::after {
  top: calc(100% + 8px);
  bottom: auto;
  left: auto;
  right: 0;
  transform: translate(0, 4px);
}

.strategy-config-info:hover,
.strategy-config-info:focus,
.strategy-config-info:focus-visible {
  color: #1d4f91;
  outline: none;
}

.strategy-config-info:hover::after,
.strategy-config-info:focus::after,
.strategy-config-info:focus-visible::after {
  display: block;
  opacity: 1;
  transform: translate(-50%, 0);
}

body.strategy-detail-inter-page .strategy-config-info:hover::after,
body.strategy-detail-inter-page .strategy-config-info:focus::after,
body.strategy-detail-inter-page .strategy-config-info:focus-visible::after {
  display: block;
}

.strategy-config-section-head p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 0.84rem;
  font-weight: 400;
  line-height: 1.45;
}

.strategy-config-step {
  display: grid;
}

.strategy-config-step > [data-walkforward-setup-section] {
  order: 1;
}

.strategy-config-step > [data-sweep-preset-section] {
  order: 2;
}

.strategy-config-step > [data-sweep-parameter-ranges-section] {
  order: 3;
}

.strategy-config-step > [data-sweep-fixed-settings-section] {
  order: 4;
}

.strategy-config-step > [data-config-dataset-section] {
  order: 5;
}

.strategy-config-step > [data-walkforward-periods-section] {
  order: 6;
}

.strategy-config-step > [data-config-trading-costs-section] {
  order: 7;
}

.strategy-config-step > [data-config-run-section] {
  order: 8;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(13, 91, 215, 0.08);
}

.strategy-config-step[hidden] {
  display: none;
}

.strategy-config-step [hidden] {
  display: none !important;
}

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

.strategy-form-grid--strategy-parameters .strategy-field--full {
  grid-column: 1 / -1;
}

.strategy-form-grid--sweep-ranges {
  grid-template-columns: 1fr;
  gap: 12px;
}

.strategy-field {
  display: grid;
  gap: 5px;
  color: var(--text);
  font-size: 0.9rem;
}

.strategy-field span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.25;
}

body.strategy-detail-inter-page .strategy-config-section-head h2,
body.strategy-detail-inter-page .strategy-costs-accordion summary strong {
  color: #163050;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.2;
}

body.strategy-detail-inter-page .strategy-field span {
  color: #5b6b7f;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.25;
}

body.strategy-detail-inter-page .strategy-config-section-head p,
body.strategy-detail-inter-page .strategy-costs-accordion summary small {
  color: #55677e;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.48;
}

.strategy-field input,
.strategy-field select {
  min-height: 38px;
  padding: 0 12px;
  background: #ffffff;
  border-radius: 8px;
  font-size: 0.88rem;
}

.strategy-sweep-preset-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
}

.strategy-sweep-preset-card {
  position: relative;
  display: grid;
  gap: 8px;
  min-width: 0;
  min-height: 100%;
  overflow: visible;
  z-index: 0;
  padding: 12px 9px 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: none;
  color: var(--text);
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.16s ease;
}

.strategy-sweep-preset-card-head {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding-right: 18px;
}

.strategy-sweep-preset-card:hover {
  transform: none;
  border-color: rgba(13, 91, 215, 0.18);
  box-shadow: none;
  z-index: 3;
}

.strategy-sweep-preset-card:focus-within {
  z-index: 3;
}

.strategy-sweep-preset-card-category {
  display: block;
  color: #6b7c92;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.015em;
  line-height: 1.15;
  text-transform: none;
}

.strategy-sweep-preset-card-radio {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border: 1.25px solid #9ba8bb;
  border-radius: 999px;
  background: #ffffff;
}

.strategy-sweep-preset-card-radio::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: transparent;
  transform: scale(0.7);
  transition: background 0.16s ease, transform 0.16s ease;
}

.strategy-sweep-preset-card-info {
  position: absolute;
  top: 11px;
  right: 8px;
  z-index: 4;
  flex: 0 0 auto;
}

.strategy-sweep-preset-card-info:hover::after,
.strategy-sweep-preset-card-info:focus::after,
.strategy-sweep-preset-card-info:focus-visible::after {
  transform: translate(0, 0);
}

.strategy-sweep-preset-card-info::after {
  bottom: auto;
}

.strategy-sweep-preset-card-title {
  display: block;
  padding-right: 0;
  color: #163050;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.2;
}

.strategy-sweep-preset-card-title-pair {
  position: relative;
  display: grid;
  gap: 4px;
  width: 100%;
  min-width: 0;
  padding-right: 8px;
}

.strategy-sweep-preset-card-title-line {
  display: block;
  min-width: 0;
  width: 100%;
  text-align: left;
  line-height: 1.18;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
}

.strategy-sweep-preset-card-title-separator {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  color: #6b7c92;
  font-size: 0.7875rem;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  pointer-events: none;
}

.visually-hidden-input:focus-visible + .strategy-sweep-preset-card {
  box-shadow:
    0 0 0 2px rgba(37, 99, 235, 0.14),
    0 10px 20px rgba(18, 32, 61, 0.05);
}

.visually-hidden-input:checked + .strategy-sweep-preset-card {
  border-color: rgba(37, 99, 235, 0.28);
  background: linear-gradient(180deg, #f4f8ff 0%, #eef4ff 100%);
  box-shadow:
    inset 0 0 0 1px rgba(37, 99, 235, 0.12);
  z-index: 1;
}

.visually-hidden-input:checked + .strategy-sweep-preset-card .strategy-sweep-preset-card-radio {
  border-color: rgba(37, 99, 235, 0.62);
  background: #eff6ff;
}

.visually-hidden-input:checked + .strategy-sweep-preset-card .strategy-sweep-preset-card-radio::after {
  background: #2563eb;
  transform: scale(1);
}

.strategy-sweep-range-group {
  display: grid;
  gap: 12px;
}

.strategy-sweep-range-group-summary {
  display: grid;
  gap: 2px;
}

.strategy-sweep-range-group-label {
  color: #6b7c92;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.015em;
  line-height: 1.2;
}

.strategy-sweep-range-group-value {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  color: #1f2937;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.25;
}

.strategy-sweep-range-group-value-part {
  white-space: nowrap;
}

.strategy-sweep-range-group-value-separator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0.7rem;
  color: #6b7c92;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1;
}

@media (max-width: 1320px) {
  .strategy-sweep-preset-grid {
    grid-template-columns: 1fr;
  }
}

.strategy-sweep-range-field {
  gap: 4px;
}

.strategy-sweep-range-field > span {
  font-size: 0.78rem;
}

.strategy-sweep-range-inputs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.strategy-walkforward-range-grid.strategy-sweep-range-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.strategy-sweep-range-grid .strategy-sweep-range-inputs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.strategy-sweep-range-card {
  min-width: 0;
  overflow: hidden;
  padding: 12px 14px 12px;
  border-color: rgba(13, 91, 215, 0.08);
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  box-shadow: 0 4px 10px rgba(18, 32, 61, 0.02);
}

.strategy-sweep-section .strategy-config-section-head {
  margin-bottom: 8px;
}

.strategy-sweep-section .strategy-config-section-head h2 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.22;
}

.strategy-sweep-section .strategy-config-section-head p {
  margin-top: 5px;
  font-size: 0.84rem;
  line-height: 1.45;
}

[data-sweep-preset-section] + [data-sweep-parameter-ranges-section] {
  margin-top: 24px;
}

.strategy-form-grid--sweep-ranges {
  gap: 12px;
}

.strategy-sweep-section + .strategy-config-section,
.strategy-sweep-section + .strategy-costs-accordion {
  margin-top: 22px;
}

.strategy-sweep-fixed-settings-section .strategy-form-grid {
  gap: 12px;
}

.strategy-field input:disabled,
.strategy-field select:disabled {
  opacity: 1;
  cursor: not-allowed;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  color: #6b7b91;
  border-color: rgba(148, 163, 184, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.field-help {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(13, 91, 215, 0.18);
  border-radius: 999px;
  background: #f2f6fc;
  color: var(--accent);
  font-size: 0.75rem;
  line-height: 1;
}

.strategy-costs-accordion {
  margin-top: 14px;
  border: 1px solid rgba(13, 91, 215, 0.12);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 5px 12px rgba(18, 32, 61, 0.028);
}

.strategy-costs-accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.strategy-costs-accordion summary::-webkit-details-marker {
  display: none;
}

.strategy-costs-accordion summary span {
  display: grid;
  gap: 4px;
}

.strategy-costs-accordion summary small {
  color: var(--muted);
}

.strategy-costs-accordion summary::after {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  background: currentColor;
  color: #64748b;
  content: "";
  mask-image: url("./assets/icons/lucide/chevron-down.svg");
  -webkit-mask-image: url("./assets/icons/lucide/chevron-down.svg");
  mask-position: center;
  -webkit-mask-position: center;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-size: contain;
  transition: transform 0.18s ease, color 0.18s ease;
}

.strategy-costs-accordion[open] summary::after {
  transform: rotate(180deg);
}

.strategy-form-grid--costs {
  padding: 0 16px 10px;
}

.strategy-form-grid--walkforward-periods {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.strategy-form-grid--walkforward-periods > .walkforward-period-error {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 1.4em;
  margin: 0;
  overflow-wrap: anywhere;
}

.strategy-field-error--reserved {
  min-height: 2.5em;
  margin-bottom: 0;
}

.strategy-walkforward-section.is-disabled .strategy-field {
  color: #758399;
}

.strategy-walkforward-section.is-disabled .strategy-field > span {
  color: #758399;
}

.strategy-form-grid--walkforward-periods .strategy-field input {
  height: 38px;
}

.strategy-form-grid--walkforward-periods .strategy-field input:disabled {
  background: #f4f7fb;
  border-color: rgba(148, 163, 184, 0.28);
  box-shadow: none;
  color: #7c889a;
  cursor: not-allowed;
}

.strategy-form-grid--walkforward-periods .strategy-field input:not(:disabled) {
  background: #ffffff;
  color: #16284a;
}

.strategy-form-grid--walkforward-periods [data-walkforward-period-label] {
  white-space: nowrap;
}

.strategy-form-grid--walkforward-ranges {
  grid-template-columns: 1fr;
  gap: 12px;
}

.strategy-walkforward-section {
  gap: 12px;
}

.strategy-walkforward-section .strategy-config-section-head p {
  margin-top: 5px;
}

.strategy-walkforward-stack {
  display: grid;
  gap: 18px;
}

.strategy-walkforward-choice-group {
  display: grid;
  gap: 8px;
}

.strategy-walkforward-choice-head {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.strategy-walkforward-choice-label {
  color: #163050;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
}

.strategy-walkforward-workflow-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.strategy-walkforward-workflow-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  min-height: 100%;
  padding: 12px 14px 12px;
  border: 1px solid rgba(13, 91, 215, 0.1);
  border-radius: 10px;
  background: #fcfdff;
  color: #16284a;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.16s ease;
}

.strategy-walkforward-workflow-card:hover {
  border-color: rgba(47, 111, 238, 0.18);
  box-shadow: 0 4px 10px rgba(18, 32, 61, 0.02);
}

.strategy-walkforward-workflow-card-head {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.strategy-walkforward-workflow-radio,
.strategy-walkforward-method-radio {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border: 1.25px solid #9ba8bb;
  border-radius: 999px;
  background: #ffffff;
}

.strategy-walkforward-workflow-radio::after,
.strategy-walkforward-method-radio::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: transparent;
  transform: scale(0.7);
  transition: background 0.16s ease, transform 0.16s ease;
}

.strategy-walkforward-workflow-card-title,
.strategy-walkforward-method-card-title {
  color: #163050;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.2;
}

.strategy-walkforward-workflow-card-copy,
.strategy-walkforward-method-card-copy {
  margin-left: 22px;
  color: #5f728a;
  font-size: 0.78rem;
  line-height: 1.42;
}

.strategy-walkforward-method-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
}

.strategy-walkforward-method-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 2px 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #4d607a;
  cursor: pointer;
  transition: color 0.16s ease, background 0.16s ease;
}

.strategy-walkforward-method-card:hover {
  color: #1d4f91;
}

.strategy-walkforward-method-card-head {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.strategy-walkforward-method-detail {
  display: grid;
  gap: 8px;
  margin-top: 4px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #5f728a;
}

.strategy-walkforward-method-copy {
  margin: 0;
  color: #5f728a;
  font-size: 0.78rem;
  line-height: 1.45;
}

.visually-hidden-input:focus-visible + .strategy-walkforward-workflow-card {
  outline: 0;
  box-shadow:
    0 0 0 2px rgba(37, 99, 235, 0.1),
    inset 0 0 0 1px rgba(13, 91, 215, 0.08);
}

.visually-hidden-input:focus-visible + .strategy-walkforward-method-card {
  outline: 0;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.08);
  border-radius: 6px;
}

.visually-hidden-input:checked + .strategy-walkforward-workflow-card {
  color: #174e9b;
  font-weight: 600;
  background: linear-gradient(180deg, #eef4ff 0%, #e9f1ff 100%);
  border-color: rgba(47, 111, 238, 0.24);
  box-shadow:
    inset 0 0 0 1px rgba(37, 99, 235, 0.16);
}

.visually-hidden-input:checked + .strategy-walkforward-method-card {
  color: #174e9b;
  font-weight: 600;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.visually-hidden-input:checked + .strategy-walkforward-workflow-card .strategy-walkforward-workflow-radio,
.visually-hidden-input:checked + .strategy-walkforward-method-card .strategy-walkforward-method-radio {
  border-color: rgba(37, 99, 235, 0.62);
  background: #eff6ff;
}

.visually-hidden-input:checked + .strategy-walkforward-workflow-card .strategy-walkforward-workflow-radio::after,
.visually-hidden-input:checked + .strategy-walkforward-method-card .strategy-walkforward-method-radio::after {
  background: #2563eb;
  transform: scale(1);
}

.strategy-walkforward-topn-field {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  width: 100%;
  max-width: none;
}

.strategy-walkforward-topn-field > span,
.strategy-walkforward-topn-field .strategy-field-help,
.strategy-walkforward-topn-field .strategy-field-error {
  min-width: 0;
}

.strategy-walkforward-topn-field > span {
  flex: 1 1 100%;
  color: #6b7c92;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.015em;
  line-height: 1.2;
}

.strategy-walkforward-topn-field input {
  flex: 0 0 104px;
  width: 104px;
  min-width: 104px;
  max-width: 104px;
  min-height: 36px;
  padding: 0 10px;
}

.strategy-walkforward-topn-field .strategy-field-help {
  flex: 1 1 220px;
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.35;
}

.strategy-field-help {
  margin: 0;
  color: #64748b;
  font-size: 0.74rem;
  line-height: 1.4;
}

.strategy-field-error {
  margin: -6px 0 0;
  color: #b91c1c;
  font-size: 0.78rem;
  line-height: 1.4;
}

.strategy-walkforward-range-card {
  display: grid;
  gap: 8px;
  padding: 12px 14px 12px;
  border: 1px solid rgba(13, 91, 215, 0.12);
  border-radius: 10px;
  background: linear-gradient(180deg, #fbfdff 0%, #f8fbff 100%);
  box-shadow: 0 4px 10px rgba(18, 32, 61, 0.02);
}

.strategy-walkforward-range-head {
  color: #163050;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.2;
}

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

.strategy-walkforward-range-grid .strategy-field {
  gap: 4px;
}

.strategy-walkforward-range-grid .strategy-field span {
  font-size: 0.78rem;
}

.strategy-walkforward-range-grid .strategy-field input,
.strategy-walkforward-range-grid .strategy-field select {
  min-width: 0;
}

.strategy-walkforward-range-summary {
  margin-top: 2px;
  margin-bottom: 14px;
}

.strategy-walkforward-period-info {
  flex: 0 0 auto;
}

.strategy-walkforward-period-info::before {
  width: 13px;
  height: 13px;
}

.strategy-walkforward-period-info::after {
  max-width: 240px;
}

.strategy-costs-note {
  display: none;
}

.strategy-dataset-compact-card {
  position: relative;
  padding: 13px 14px;
  border: 1px solid rgba(13, 91, 215, 0.12);
  border-radius: 10px;
  background: linear-gradient(180deg, #f8fbff 0%, #f1f6fd 100%);
  box-shadow: 0 5px 12px rgba(18, 32, 61, 0.028);
}

.strategy-dataset-selection-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.strategy-dataset-selection-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.strategy-dataset-selected {
  display: grid;
  grid-template-rows: 38px auto;
  gap: 5px;
  min-width: 0;
  justify-items: start;
}

.strategy-dataset-selected .status-badge svg {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
}

.strategy-dataset-selected .status-badge {
  gap: 5px;
  padding: 4px 9px;
  background: #ecfdf3;
  color: #027a48;
  font-size: 0.78rem;
  font-weight: 560;
  line-height: 1.15;
}

.strategy-dataset-selected .status-badge[data-tone="neutral"] {
  background: transparent;
  border: 1px solid rgba(100, 116, 139, 0.18);
  color: #667085;
  box-shadow: none;
  font-weight: 500;
}

.strategy-dataset-selected strong {
  display: block;
  align-self: center;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.96rem;
  font-weight: 400;
  color: #24364d;
}

.strategy-recent-dataset-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.strategy-recent-dataset-copy small {
  color: #5b6c82;
  font-size: 0.78rem;
  line-height: 1.3;
}

.strategy-dataset-action {
  display: grid;
  gap: 7px;
  justify-items: end;
}

.strategy-dataset-compact-card.is-invalid {
  border-color: rgba(220, 38, 38, 0.42);
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.08);
}

.strategy-dataset-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(13, 91, 215, 0.14);
  border-radius: 9px;
  background: #ffffff;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.strategy-dataset-trigger:hover,
.strategy-dataset-trigger:focus-visible {
  border-color: rgba(13, 91, 215, 0.22);
  background: #f8fbff;
}

.strategy-dataset-trigger-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: #355b91;
}

.strategy-dataset-trigger-icon--upload::before {
  display: block;
  width: 16px;
  height: 16px;
  background: currentColor;
  content: "";
  mask-image: url("./assets/icons/lucide/upload.svg");
  -webkit-mask-image: url("./assets/icons/lucide/upload.svg");
  mask-position: center;
  -webkit-mask-position: center;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-size: contain;
}

.strategy-dataset-trigger-icon svg {
  width: 16px;
  height: 16px;
}

.strategy-dataset-helper {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
  text-align: right;
  white-space: nowrap;
}

.strategy-run-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, #dbe5f3 0%, #d1dceb 100%);
  color: #516882;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 20px rgba(17, 34, 61, 0.08);
  cursor: pointer;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background 0.18s ease,
    color 0.18s ease;
}

.strategy-run-button-label {
  display: block;
  text-align: center;
}

.strategy-run-button-content {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-block;
  transform: translate(-50%, -50%);
}

.strategy-run-button-icon {
  position: absolute;
  right: calc(100% + 8px);
  top: 50%;
  display: inline-block;
  width: 16px;
  height: 16px;
  background: currentColor;
  content: "";
  opacity: 0.82;
  mask-image: url("./assets/icons/lucide/circle-play.svg");
  -webkit-mask-image: url("./assets/icons/lucide/circle-play.svg");
  mask-position: center;
  -webkit-mask-position: center;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-size: contain;
  transform: translateY(-50%);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.strategy-run-button.is-ready {
  background: linear-gradient(180deg, #1d3556 0%, #163050 100%);
  color: #f6f9ff;
  box-shadow: 0 14px 28px rgba(17, 34, 61, 0.18);
}

.strategy-run-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(17, 34, 61, 0.12);
}

.strategy-run-button.is-ready:hover {
  box-shadow: 0 18px 30px rgba(17, 34, 61, 0.2);
}

.strategy-run-button:hover .strategy-run-button-icon,
.strategy-run-button:focus-visible .strategy-run-button-icon {
  opacity: 1;
  transform: translateY(-50%) scale(1.06);
}

body.pre-run-modal-open .strategy-run-button {
  opacity: 0.42;
  filter: saturate(0.68);
  box-shadow: none;
}

.strategy-run-feedback {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  margin: 8px 20px 0;
  padding: 9px 11px;
  border: 1px solid rgba(156, 47, 47, 0.14);
  border-radius: 10px;
  background: rgba(156, 47, 47, 0.06);
  color: #a53c3c;
  font-size: 0.88rem;
  line-height: 1.45;
}

.strategy-run-feedback[hidden] {
  display: none;
}

.strategy-run-feedback-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border-radius: 999px;
  background: rgba(156, 47, 47, 0.12);
  color: currentColor;
  margin-top: 1px;
}

.strategy-run-feedback-icon::before {
  display: block;
  width: 16px;
  height: 16px;
  background: currentColor;
  content: "";
  mask-image: url("./assets/icons/lucide/info-icon.svg");
  -webkit-mask-image: url("./assets/icons/lucide/info-icon.svg");
  mask-position: center;
  -webkit-mask-position: center;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-size: contain;
}

.strategy-field input.is-invalid,
.strategy-field select.is-invalid {
  border-color: rgba(220, 38, 38, 0.72);
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.08);
}

.strategy-pre-run-modal-card {
  width: min(760px, calc(100vw - 32px));
  max-height: min(560px, calc(100vh - 132px));
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
  animation: strategyPreRunModalIn 180ms ease-out;
}

.strategy-pre-run-modal-shell {
  align-items: center;
  padding-top: max(84px, env(safe-area-inset-top));
  padding-bottom: 32px;
}

.strategy-pre-run-content {
  display: grid;
  gap: 16px;
  width: 100%;
  margin: 0;
  padding: 18px 28px 8px;
}

.strategy-pre-run-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.strategy-pre-run-title-icon {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  background: currentColor;
  color: #2563eb;
  opacity: 0.8;
  mask-position: center;
  -webkit-mask-position: center;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-size: contain;
}

.strategy-pre-run-modal-shell[data-state="review"] .strategy-pre-run-title-icon {
  mask-image: url("./assets/icons/lucide/eye-view.svg");
  -webkit-mask-image: url("./assets/icons/lucide/eye-view.svg");
}

.strategy-pre-run-modal-shell[data-state="running"] .strategy-pre-run-title-icon {
  mask-image: url("./assets/icons/lucide/rocket.svg");
  -webkit-mask-image: url("./assets/icons/lucide/rocket.svg");
}

.strategy-pre-run-modal-shell[data-state="success"] .strategy-pre-run-title-icon {
  display: none;
}

.strategy-pre-run-primary {
  padding: 0;
  border: 1px solid rgba(13, 91, 215, 0.2);
  border-radius: 12px;
  background: linear-gradient(180deg, #fbfdff 0%, #f8fbff 100%);
}

.strategy-pre-run-secondary {
  display: flex;
  justify-content: center;
  padding: 0;
}

.strategy-pre-run-summary {
  margin: 0;
}

.strategy-pre-run-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
}

.strategy-pre-run-row + .strategy-pre-run-row {
  border-top: 1px solid rgba(100, 116, 139, 0.12);
}

.strategy-pre-run-summary dt {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin: 0;
  color: #4b5563;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
}

.strategy-pre-run-summary dd {
  margin: 0;
  min-width: 0;
  color: #172033;
  font-size: 0.93rem;
  font-weight: 650;
  line-height: 1.35;
  text-align: right;
}

.strategy-pre-run-meta-list {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-width: 0;
  padding: 2px 0 0;
}

.strategy-pre-run-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #66758a;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.35;
}

.strategy-pre-run-meta-item strong {
  color: #1f2a44;
  font-size: 0.9rem;
  font-weight: 680;
}

.strategy-pre-run-meta-separator {
  width: 4px;
  height: 4px;
  flex: 0 0 4px;
  border-radius: 999px;
  background: #9aa8ba;
}

.strategy-pre-run-meta-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  background: currentColor;
  color: #7c8da6;
  opacity: 0.82;
  mask-position: center;
  -webkit-mask-position: center;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-size: contain;
}

.strategy-pre-run-meta-icon--rows {
  mask-image: url("./assets/icons/lucide/rows-3.svg");
  -webkit-mask-image: url("./assets/icons/lucide/rows-3.svg");
}

.strategy-pre-run-meta-icon--coins {
  mask-image: url("./assets/icons/lucide/coins.svg");
  -webkit-mask-image: url("./assets/icons/lucide/coins.svg");
}

.strategy-pre-run-icon {
  position: relative;
  display: inline-flex;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #edf4ff;
  color: #2563eb;
  opacity: 1;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.08);
  mask-image: none;
  -webkit-mask-image: none;
}

.strategy-pre-run-icon::before {
  content: "";
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  background: currentColor;
  opacity: 0.86;
  mask-position: center;
  -webkit-mask-position: center;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-size: contain;
}

.strategy-pre-run-row--strategy .strategy-pre-run-icon {
  color: #2563eb;
}

.strategy-pre-run-row--strategy .strategy-pre-run-icon::before {
  mask-image: url("./assets/icons/lucide/crosshair-aim.svg");
  -webkit-mask-image: url("./assets/icons/lucide/crosshair-aim.svg");
}

.strategy-pre-run-row--test .strategy-pre-run-icon::before {
  mask-image: url("./assets/icons/lucide/configure.svg");
  -webkit-mask-image: url("./assets/icons/lucide/configure.svg");
}

.strategy-pre-run-row--dataset .strategy-pre-run-icon::before {
  mask-image: url("./assets/icons/lucide/upload.svg");
  -webkit-mask-image: url("./assets/icons/lucide/upload.svg");
}

.strategy-pre-run-row--timeframe .strategy-pre-run-icon::before {
  mask-image: url("./assets/icons/lucide/recent.svg");
  -webkit-mask-image: url("./assets/icons/lucide/recent.svg");
}

.strategy-pre-run-state {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-height: 112px;
  padding: 14px 0 6px;
  text-align: center;
}

.strategy-pre-run-state[hidden] {
  display: none;
}

.strategy-pre-run-running-layout {
  display: grid;
  gap: 8px;
  width: min(330px, 100%);
  min-width: 0;
}

.strategy-pre-run-progress-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  align-items: center;
  gap: 10px;
}

.strategy-pre-run-running-layout p {
  margin: 0;
  color: #1e3a8a;
  font-size: 0.9rem;
  font-weight: 620;
  line-height: 1.35;
  text-align: left;
}

.strategy-pre-run-state--running:not([hidden]) .strategy-pre-run-running-layout p {
  color: transparent;
  background: linear-gradient(
    100deg,
    #1e3a8a 0%,
    #1e3a8a 34%,
    #60a5fa 45%,
    #dbeafe 50%,
    #3b82f6 55%,
    #1e3a8a 66%,
    #1e3a8a 100%
  );
  background-size: 260% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: strategyPreRunStatusShimmer 2.45s ease-in-out infinite;
}

.strategy-pre-run-progress-bar {
  width: 100%;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
}

.strategy-pre-run-progress-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb 0%, #1d4ed8 100%);
  transition: width 460ms ease;
}

.strategy-pre-run-progress-percent {
  color: #475569;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  font-weight: 620;
  line-height: 1;
  text-align: right;
}

.strategy-pre-run-success-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(5, 150, 105, 0.12);
  color: #047857;
  font-size: 1.12rem;
  font-weight: 700;
}

.strategy-pre-run-success-mark svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.strategy-pre-run-state--success:not([hidden]) .strategy-pre-run-success-mark {
  animation: strategyPreRunSuccessMarkIn 720ms ease-out both;
}

.strategy-pre-run-state--success p {
  margin: 0;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.45;
}

.strategy-pre-run-state--success {
  gap: 5px;
  min-height: 104px;
  padding-top: 10px;
}

.strategy-pre-run-result-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.strategy-pre-run-result-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  background: currentColor;
  mask-image: url("./assets/icons/lucide/eye.svg");
  -webkit-mask-image: url("./assets/icons/lucide/eye.svg");
  mask-position: center;
  -webkit-mask-position: center;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-size: contain;
}

.strategy-pre-run-modal-card .strategy-dataset-modal-actions {
  justify-content: space-between;
  align-items: center;
}

.strategy-pre-run-modal-card .load-button {
  border-radius: 10px;
  background: linear-gradient(180deg, #1d3556 0%, #163050 100%);
  color: #f6f9ff;
}

.strategy-pre-run-action-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.strategy-pre-run-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  color: currentColor;
  transition: transform 0.18s ease;
}

.strategy-pre-run-action-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition:
    fill 0.18s ease,
    stroke 0.18s ease;
}

.strategy-pre-run-action-button:hover .strategy-pre-run-action-icon,
.strategy-pre-run-action-button:focus-visible .strategy-pre-run-action-icon {
  transform: scale(1.04);
}

.strategy-pre-run-action-button:hover .strategy-pre-run-action-icon svg,
.strategy-pre-run-action-button:focus-visible .strategy-pre-run-action-icon svg {
  fill: #ffffff;
  stroke: #ffffff;
}

.strategy-pre-run-modal-card .button-secondary {
  border-color: rgba(100, 116, 139, 0.26);
  border-radius: 10px;
  background: #f6f8fb;
  color: #475569;
  box-shadow: none;
}

.strategy-pre-run-modal-card .button-secondary:hover,
.strategy-pre-run-modal-card .button-secondary:focus-visible {
  border-color: rgba(37, 99, 235, 0.22);
  background: #eef6ff;
  color: #1d4f95;
}

.strategy-pre-run-modal-card .load-button[disabled] {
  cursor: wait;
  opacity: 0.78;
}

.strategy-pre-run-modal-card [hidden],
.strategy-pre-run-modal-card .load-button[hidden],
.strategy-pre-run-modal-card .button-secondary[hidden] {
  display: none !important;
}

.strategy-pre-run-modal-card .load-button:hover,
.strategy-pre-run-modal-card .load-button:focus-visible {
  background: linear-gradient(180deg, #173050 0%, #102741 100%);
}

@keyframes strategyPreRunModalIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes strategyPreRunSuccessMarkIn {
  from {
    opacity: 0;
    transform: scale(0.82);
  }
  70% {
    opacity: 1;
    transform: scale(1.04);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes strategyPreRunStatusShimmer {
  from {
    background-position: 140% 50%;
  }

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

@media (prefers-reduced-motion: reduce) {
  .strategy-pre-run-modal-card {
    animation: none;
  }

  .strategy-pre-run-state--success:not([hidden]) .strategy-pre-run-success-mark {
    animation: none;
  }

  .strategy-pre-run-state--running:not([hidden]) .strategy-pre-run-running-layout p {
    animation: none;
    color: #1e3a8a;
    background: none;
    -webkit-text-fill-color: currentColor;
  }
}

@media (max-width: 760px) {
  .strategy-pre-run-modal-card {
    width: min(760px, calc(100vw - 20px));
  }

  .strategy-pre-run-content {
    padding-right: 18px;
    padding-left: 18px;
  }

  .strategy-pre-run-row {
    grid-template-columns: 1fr;
    gap: 6px;
    align-items: flex-start;
  }

  .strategy-pre-run-summary dd {
    text-align: left;
  }

  .strategy-pre-run-meta-list {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

.strategy-recent-tests-section {
  scroll-margin-top: 96px;
  margin-top: 26px;
  padding: 18px 20px;
  border: 1px solid rgba(13, 91, 215, 0.1);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(18, 32, 61, 0.04);
}

.strategy-recent-tests-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 12px;
}

.strategy-recent-tests-view-all {
  flex: 0 0 auto;
  font-size: 0.88rem;
  white-space: nowrap;
}

.strategy-recent-tests-head h2 {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.strategy-recent-tests-title-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background: currentColor;
  color: #5b88d8;
  opacity: 0.84;
  mask-image: url("./assets/icons/lucide/file-box.svg");
  -webkit-mask-image: url("./assets/icons/lucide/file-box.svg");
  mask-position: center;
  -webkit-mask-position: center;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-size: contain;
}

.strategy-recent-tests-head p {
  margin: 3px 0 0;
  color: #667990;
  font-size: 0.9rem;
  line-height: 1.4;
}

.strategy-recent-tests-table {
  display: block;
  min-width: 0;
  max-width: 100%;
  border: 1px solid rgba(13, 91, 215, 0.08);
  border-radius: 10px;
  background: #ffffff;
  contain: paint;
  overflow-x: auto;
  overflow-y: hidden;
}

.strategy-recent-tests-row {
  display: grid;
  grid-template-columns:
    minmax(150px, 1.1fr)
    minmax(190px, 1.35fr)
    minmax(95px, 0.7fr)
    minmax(120px, 0.85fr)
    minmax(230px, 1.65fr)
    minmax(115px, 0.8fr)
    minmax(120px, 0.8fr);
  gap: 8px;
  align-items: center;
  min-width: 1100px;
  padding: 12px 14px;
  border-top: 1px solid rgba(13, 91, 215, 0.08);
  font-size: 0.93rem;
  transition: background-color 0.16s ease;
}

.strategy-recent-tests-row:not(.strategy-recent-tests-row--head) {
  padding-top: 17px;
  padding-bottom: 17px;
}

.strategy-recent-tests-row:not(.strategy-recent-tests-row--head):hover {
  background: #fafbfc;
}

.strategy-recent-tests-row--head {
  border-top: 0;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.strategy-recent-tests-row > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.strategy-recent-tests-row--head > span {
  align-self: center;
}

.strategy-recent-tests-row--head > span:nth-child(6),
.strategy-recent-tests-row--head > span:nth-child(7),
.strategy-recent-tests-row > span:nth-child(6),
.strategy-recent-tests-row > span:nth-child(7) {
  justify-self: center;
  text-align: center;
}

.strategy-recent-tests-row--head > span:nth-child(1),
.strategy-recent-tests-row--head > span:nth-child(2),
.strategy-recent-tests-row--head > span:nth-child(3),
.strategy-recent-tests-row--head > span:nth-child(4),
.strategy-recent-tests-row--head > span:nth-child(5),
.strategy-recent-tests-row > span:nth-child(1),
.strategy-recent-tests-row > span:nth-child(2),
.strategy-recent-tests-row > span:nth-child(3),
.strategy-recent-tests-row > span:nth-child(4),
.strategy-recent-tests-row > span:nth-child(5) {
  justify-self: start;
  text-align: left;
}

.strategy-recent-tests-type {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #1f2937;
}

.strategy-recent-tests-type > span:last-child {
  font-weight: 600;
  white-space: nowrap;
}

.strategy-recent-tests-row:not(.strategy-recent-tests-row--head) > span:nth-child(2) {
  color: #334155;
  font-weight: 500;
}

.strategy-recent-tests-type-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.strategy-recent-tests-type-icon::before {
  content: "";
  width: 15px;
  height: 15px;
  background: currentColor;
  mask-position: center;
  -webkit-mask-position: center;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-size: contain;
}

.strategy-recent-tests-type-icon--backtest::before {
  mask-image: url("./assets/icons/lucide/box.svg");
  -webkit-mask-image: url("./assets/icons/lucide/box.svg");
}

.strategy-recent-tests-type-icon--backtest {
  background: #eff6ff;
  color: #2563eb;
}

.strategy-recent-tests-type-icon--sweep::before {
  mask-image: url("./assets/icons/lucide/boxes.svg");
  -webkit-mask-image: url("./assets/icons/lucide/boxes.svg");
}

.strategy-recent-tests-type-icon--sweep {
  background: #f5f3ff;
  color: #6d5bd0;
}

.strategy-recent-tests-type-icon--walkforward::before {
  mask-image: url("./assets/icons/lucide/blocks.svg");
  -webkit-mask-image: url("./assets/icons/lucide/blocks.svg");
}

.strategy-recent-tests-type-icon--walkforward {
  background: #fffbeb;
  color: #b7791f;
}

.strategy-recent-tests-summary {
  display: grid;
  gap: 1px;
  min-width: 0;
  color: #475569;
}

.strategy-recent-tests-summary strong {
  color: #0f172a;
  font-size: 0.92rem;
  font-weight: 670;
  line-height: 1.3;
}

.strategy-recent-tests-summary small {
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.25;
}

.strategy-recent-tests-table .status-badge[data-tone="success"] {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 0;
  background: #f3fcf7;
  color: #027a48;
  font-size: 0.8rem;
  font-weight: 650;
  box-shadow: none;
}

.strategy-recent-tests-table .status-badge[data-tone="success"]::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 999px;
  background: currentColor;
}

.strategy-recent-tests-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 28px;
  color: #1d4ed8;
  font-size: 0.84rem;
  font-weight: 640;
  text-decoration: none;
  transition:
    color 0.16s ease,
    transform 0.16s ease;
}

.strategy-recent-tests-action:hover,
.strategy-recent-tests-action:focus-visible {
  color: #163ea7;
  transform: translateX(1px);
}

.strategy-recent-tests-action {
  letter-spacing: 0;
}

.modal-open {
  overflow: hidden;
}

html:has(body.strategy-detail-inter-page.modal-open) {
  overflow-x: clip;
}

.strategy-media-preview-open {
  overflow: hidden;
}

.strategy-upload-dropzone {
  margin-top: 0;
  display: grid;
  place-items: center;
  gap: 9px;
  min-height: 158px;
  padding: 18px 16px 15px;
  border: 2px dashed rgba(29, 93, 182, 0.48);
  border-radius: 8px;
  background: #f8fbff;
  text-align: center;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.strategy-upload-dropzone:hover,
.strategy-upload-dropzone:focus-within {
  border-color: rgba(13, 91, 215, 0.66);
  background: #f3f8ff;
  box-shadow:
    0 0 0 3px rgba(37, 99, 235, 0.07),
    inset 0 0 0 1px rgba(13, 91, 215, 0.08);
}

.strategy-upload-dropzone.is-dragover {
  border-color: rgba(13, 91, 215, 0.72);
  background: #eef5ff;
  box-shadow:
    0 0 0 3px rgba(37, 99, 235, 0.09),
    inset 0 0 0 1px rgba(13, 91, 215, 0.1);
  transform: translateY(-1px);
}

.strategy-upload-dropzone-icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ffffff;
  color: #1d5db6;
  box-shadow: inset 0 0 0 1px rgba(13, 91, 215, 0.08);
}

.strategy-upload-dropzone-icon::before {
  content: "";
  width: 25px;
  height: 25px;
  background: currentColor;
  mask-image: url("./assets/icons/lucide/upload.svg");
  -webkit-mask-image: url("./assets/icons/lucide/upload.svg");
  mask-position: center;
  -webkit-mask-position: center;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-size: contain;
}

.strategy-upload-dropzone strong {
  display: block;
  font-size: 1.14rem;
  font-weight: 760;
  letter-spacing: -0.01em;
  color: #0f172a;
}

.strategy-upload-dropzone p {
  max-width: 28ch;
  margin: 0 0 6px;
  color: #55657b;
  font-size: 0.84rem;
  line-height: 1.45;
}

body.strategy-detail-inter-page .strategy-upload-dropzone strong {
  font-weight: 760;
}

.strategy-upload-dropzone .button-secondary {
  min-height: 28px;
  padding: 0 12px;
  font-size: 0.76rem;
}

.strategy-upload-browse-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #64748b;
  font-size: 0.74rem;
  line-height: 1;
}

.strategy-upload-support-line {
  color: #64748b;
  font-size: 0.72rem;
  line-height: 1.35;
}

.strategy-dataset-modal-shell {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

#dataset-modal.strategy-dataset-modal-shell {
  padding: max(86px, env(safe-area-inset-top)) 32px 32px;
}

.strategy-dataset-modal-shell.is-hidden {
  display: none;
}

.strategy-dataset-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.38);
}

.strategy-dataset-modal-card {
  position: relative;
  z-index: 1;
  width: min(780px, 100%);
  max-height: min(600px, calc(100vh - 64px));
  overflow: auto;
  display: grid;
  gap: 0;
  padding: 18px 20px 0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 22px 46px rgba(18, 32, 61, 0.16);
}

#dataset-modal .strategy-dataset-modal-card {
  width: min(760px, calc(100vw - 64px));
  max-height: calc(100vh - 118px);
  overflow: hidden;
  padding: 15px 18px 0;
}

.strategy-dataset-modal-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(13, 91, 215, 0.1);
}

#dataset-modal .strategy-dataset-modal-head {
  align-items: center;
  padding-bottom: 10px;
}

.strategy-dataset-modal-head h3,
.strategy-dataset-modal-column h4 {
  margin: 0;
}

.strategy-dataset-modal-head p {
  margin: 6px 0 0;
  font-size: 0.86rem;
  color: #55657b;
}

.strategy-dataset-modal-close {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(13, 91, 215, 0.14);
  border-radius: 10px;
  background: #f8fbff;
  color: #425a7a;
  font: inherit;
  font-size: 1.05rem;
  line-height: 1;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.strategy-dataset-modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) 1px minmax(0, 0.96fr);
  gap: 0;
  align-items: start;
  padding: 8px 0 0;
}

.strategy-dataset-modal-column {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

.strategy-dataset-modal-column--upload {
  padding-right: 16px;
}

.strategy-dataset-modal-column--recent {
  padding-left: 16px;
}

.strategy-dataset-modal-column h4 {
  font-size: 0.9rem;
  font-weight: 650;
  color: #0f172a;
}

.strategy-dataset-modal-column--upload h4 {
  font-size: 0.96rem;
  font-weight: 700;
}

.strategy-dataset-modal-column--recent h4 {
  color: #475569;
  font-size: 0.84rem;
  font-weight: 620;
}

.strategy-dataset-modal-divider {
  align-self: stretch;
  width: 1px;
  background: linear-gradient(180deg, rgba(13, 91, 215, 0) 0%, rgba(13, 91, 215, 0.16) 8%, rgba(13, 91, 215, 0.16) 92%, rgba(13, 91, 215, 0) 100%);
}

.strategy-dataset-helper {
  margin: 0;
  color: #55657b;
  font-size: 0.8rem;
}

.strategy-dataset-summary {
  display: grid;
  gap: 3px;
  margin-top: 10px;
}

.strategy-dataset-summary-copy {
  margin: 0;
  color: #1f3a60;
  font-size: 0.84rem;
  font-weight: 400;
  line-height: 1.45;
}

.strategy-dataset-summary-meta,
.strategy-dataset-summary-feedback {
  margin: 0;
  color: #5b6c82;
  font-size: 0.8rem;
  line-height: 1.4;
}

.strategy-dataset-summary-feedback {
  color: #8a4a12;
}

.strategy-dataset-error {
  margin: 8px 0 0;
  padding: 7px 10px;
  border: 1px solid rgba(220, 38, 38, 0.18);
  border-radius: 8px;
  background: #fff5f5;
  color: #b42318;
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.35;
}

.strategy-upload-progress-shell {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  color: #425a7a;
  font-size: 0.82rem;
}

.strategy-upload-progress-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.strategy-upload-progress-label span:first-child {
  min-width: 0;
  overflow: hidden;
  color: #20344d;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.strategy-upload-progress-label span:last-child {
  flex: 0 0 auto;
  color: #1d5db6;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.strategy-upload-progress-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #0d7a43;
  font-weight: 600;
}

.strategy-upload-progress-status svg {
  width: 16px;
  height: 16px;
}

.strategy-upload-progress-bar {
  height: 6px;
  border-radius: 999px;
  background: #e5edf7;
  overflow: hidden;
}

.strategy-recent-datasets-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px 50px;
  gap: 6px;
  align-items: center;
  margin-bottom: -8px;
  padding: 6px 7px;
  border: 1px solid rgba(100, 116, 139, 0.14);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: #f3f6fa;
  color: #6b7a90;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.strategy-upload-progress-bar span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1d5db6 0%, #4a8ae6 100%);
}

.strategy-modal-selected-dataset {
  display: grid;
  gap: 5px;
  margin-top: 4px;
  padding: 9px 10px;
  border: 1px solid rgba(13, 91, 215, 0.08);
  border-radius: 8px;
  background: #fbfcfe;
}

.strategy-modal-selected-label {
  color: #74849a;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.strategy-modal-selected-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.strategy-modal-selected-value strong {
  font-size: 0.88rem;
  font-weight: 600;
  color: #20344d;
}

.strategy-recent-datasets {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(13, 91, 215, 0.08);
  border-radius: 0 0 8px 8px;
  background: #ffffff;
}

.strategy-recent-datasets li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px 50px;
  gap: 6px;
  align-items: center;
  padding: 5px 7px;
  border-bottom: 1px solid rgba(13, 91, 215, 0.08);
  background: transparent;
}

.strategy-recent-datasets li:last-child {
  border-bottom: 0;
}

.strategy-recent-datasets li.is-current {
  background: transparent;
}

.strategy-recent-datasets li.is-disabled {
  background: #fbfcfe;
}

.strategy-recent-datasets li.is-disabled .strategy-recent-dataset-copy strong {
  color: #7c8da6;
}

.strategy-recent-dataset-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.strategy-recent-dataset-copy strong {
  color: #0f172a;
  font-size: 0.78rem;
  font-weight: 500;
}

.strategy-recent-dataset-actions {
  display: grid;
  grid-template-columns: 36px 50px 28px;
  align-items: center;
  gap: 6px;
  grid-column: 2 / 4;
}

.strategy-recent-dataset-menu-wrap {
  position: relative;
  justify-self: center;
}

.strategy-recent-dataset-menu-button {
  width: 28px;
  height: 24px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: #52657d;
  cursor: pointer;
  font-size: 1.05rem;
  line-height: 1;
}

.strategy-recent-dataset-menu-button:hover,
.strategy-recent-dataset-menu-button:focus-visible {
  border-color: rgba(13, 91, 215, 0.2);
  background: #f2f6fc;
  color: #163f79;
}

.strategy-recent-dataset-menu {
  position: absolute;
  z-index: 5;
  top: calc(100% + 4px);
  right: 0;
  min-width: 132px;
  padding: 4px;
  border: 1px solid rgba(100, 116, 139, 0.2);
  border-radius: 7px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}

.strategy-recent-dataset-menu[hidden] {
  display: none;
}

.strategy-recent-dataset-menu button {
  width: 100%;
  padding: 7px 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #9f2f39;
  cursor: pointer;
  text-align: left;
  font-size: 0.72rem;
}

.strategy-recent-dataset-menu button:hover,
.strategy-recent-dataset-menu button:focus-visible {
  background: #fff1f2;
}

.strategy-dataset-delete-modal-card {
  max-width: 430px;
}

.strategy-dataset-delete-feedback {
  margin: 12px 20px 0;
  color: #9f2f39;
  font-size: 0.78rem;
}

.button-danger {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid #a8323e;
  border-radius: 6px;
  background: #a8323e;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
}

.button-danger:hover,
.button-danger:focus-visible {
  background: #8f2934;
}

.button-danger:disabled {
  opacity: 0.55;
  cursor: wait;
}

.strategy-recent-datasets li.is-current .strategy-recent-dataset-copy strong {
  color: #10386f;
}

.strategy-recent-status-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  align-self: center;
  border-radius: 50%;
}

.strategy-recent-status-icon--success {
  color: #0d7a43;
}

.strategy-recent-status-icon--success svg {
  width: 15px;
  height: 15px;
}

.strategy-recent-status-icon--error {
  color: #9f2f39;
}

.strategy-status-info {
  width: 17px;
  height: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(188, 52, 63, 0.12);
  color: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

.button-secondary--inline {
  min-height: 18px;
  padding: 0 5px;
  font-size: 0.62rem;
  line-height: 1;
  justify-self: center;
}

.strategy-recent-datasets .button-secondary--inline {
  height: 20px;
  min-height: 20px;
  padding: 0 6px;
  border-radius: 4px;
  font-size: 0.62rem;
  line-height: 1;
  box-shadow: none;
}

.strategy-recent-datasets li.is-current .button-secondary--inline:not([disabled]) {
  border-color: rgba(29, 93, 182, 0.18);
  background: rgba(29, 93, 182, 0.1);
  color: #1d4f95;
}

.button-secondary--inline[disabled] {
  opacity: 0.44;
  cursor: not-allowed;
}

.strategy-dataset-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 14px -20px 0;
  padding: 12px 20px;
  border-top: 1px solid rgba(13, 91, 215, 0.1);
  background: #f6f8fb;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

#dataset-modal .strategy-dataset-modal-actions {
  margin: 12px -18px 0;
  padding: 11px 18px;
}

#dataset-modal.strategy-dataset-modal-shell {
  padding: max(62px, env(safe-area-inset-top)) 32px 28px;
}

#dataset-modal .strategy-dataset-modal-card {
  width: min(930px, calc(100vw - 64px));
  max-height: calc(100vh - 90px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  border-radius: 10px;
}

#dataset-modal .strategy-dataset-modal-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding: 14px 20px 12px;
  border-bottom: 1px solid rgba(100, 116, 139, 0.18);
}

.strategy-dataset-modal-title-icon {
  width: 23px;
  height: 23px;
  margin-top: 2px;
  color: #1d5db6;
  background: currentColor;
  mask-image: url("./assets/icons/lucide/folder.svg");
  -webkit-mask-image: url("./assets/icons/lucide/folder.svg");
  mask-position: center;
  -webkit-mask-position: center;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-size: contain;
}

.strategy-dataset-modal-title-copy {
  min-width: 0;
}

#dataset-modal .strategy-dataset-modal-head h3 {
  font-size: 1.2rem;
  line-height: 1.2;
}

#dataset-modal .strategy-dataset-modal-head p {
  margin: 6px 0 0;
  color: #425a7a;
  font-size: 0.86rem;
  line-height: 1.35;
}

#dataset-modal .strategy-dataset-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.strategy-dataset-modal-body {
  display: grid;
  gap: 10px;
  min-height: 0;
  padding: 14px 20px 0;
}

#dataset-modal .strategy-dataset-modal-grid {
  grid-template-columns: minmax(0, 1.24fr) 1px minmax(0, 0.82fr);
  gap: 16px;
  padding: 0;
}

#dataset-modal .strategy-dataset-modal-column {
  gap: 8px;
}

#dataset-modal .strategy-dataset-modal-column--upload,
#dataset-modal .strategy-dataset-modal-column--recent {
  padding: 0;
}

#dataset-modal .strategy-dataset-modal-column h4 {
  color: #0f172a;
  font-size: 0.92rem;
  font-weight: 760;
  line-height: 1.2;
}

#dataset-modal .strategy-dataset-modal-divider {
  background: linear-gradient(
    180deg,
    rgba(13, 91, 215, 0) 0%,
    rgba(13, 91, 215, 0.14) 12%,
    rgba(13, 91, 215, 0.14) 88%,
    rgba(13, 91, 215, 0) 100%
  );
}

#dataset-modal .strategy-upload-dropzone {
  min-height: 148px;
  margin-top: 0;
  gap: 9px;
  padding: 16px 18px 14px;
  border: 2px dashed rgba(37, 99, 235, 0.62);
  border-radius: 8px;
  background: linear-gradient(180deg, #fbfdff 0%, #f6faff 100%);
}

#dataset-modal .strategy-upload-dropzone:hover,
#dataset-modal .strategy-upload-dropzone:focus-within {
  border-color: rgba(13, 91, 215, 0.82);
  background: #f5f9ff;
  box-shadow:
    0 0 0 4px rgba(37, 99, 235, 0.08),
    inset 0 0 0 1px rgba(37, 99, 235, 0.08);
}

#dataset-modal .strategy-upload-dropzone-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(180deg, #eef5ff 0%, #dfeaff 100%);
  color: #1d5db6;
  box-shadow:
    inset 0 0 0 1px rgba(29, 93, 182, 0.12),
    0 16px 28px -22px rgba(29, 93, 182, 0.8);
}

#dataset-modal .strategy-upload-dropzone-icon::before {
  width: 26px;
  height: 26px;
}

#dataset-modal .strategy-upload-dropzone strong {
  font-size: 1rem;
  font-weight: 780;
}

.strategy-upload-main-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.2;
}

#dataset-modal .strategy-upload-dropzone .button-secondary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 6px;
  background: #ffffff;
  font-size: 0.78rem;
  cursor: pointer;
  transition:
    color 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

#dataset-modal .strategy-upload-dropzone .button-secondary:hover,
#dataset-modal .strategy-upload-dropzone .button-secondary:focus-visible {
  color: #124c9f;
  border-color: rgba(29, 93, 182, 0.24);
  background: #f8fbff;
  box-shadow: 0 8px 18px -16px rgba(29, 93, 182, 0.45);
  transform: translateY(-1px);
}

.strategy-upload-browse-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  color: currentColor;
  background: currentColor;
  mask-image: url("./assets/icons/lucide/folder-browse.svg");
  -webkit-mask-image: url("./assets/icons/lucide/folder-browse.svg");
  mask-position: center;
  -webkit-mask-position: center;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-size: contain;
}

#dataset-modal .strategy-upload-support-line {
  color: #425a7a;
  font-size: 0.76rem;
}

#dataset-modal .strategy-upload-progress-shell {
  gap: 6px;
  margin-top: 0;
  margin-bottom: 4px;
  color: #425a7a;
}

.strategy-upload-progress-state {
  display: grid;
  gap: 6px;
}

#dataset-modal .strategy-upload-progress-state {
  justify-items: center;
  text-align: center;
}

#dataset-modal .strategy-upload-progress-state[hidden],
#dataset-modal .strategy-upload-validation-message[hidden] {
  display: none !important;
}

.strategy-upload-complete-copy {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 7px;
  align-items: start;
}

#dataset-modal .strategy-upload-complete-copy {
  grid-template-columns: auto;
  justify-items: center;
}

.strategy-upload-complete-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #16a34a;
  color: #ffffff;
}

.strategy-upload-complete-icon svg {
  width: 13px;
  height: 13px;
}

.strategy-upload-complete-copy strong {
  display: block;
  color: #0f172a;
  font-size: 0.9rem;
  font-weight: 720;
  line-height: 1.2;
}

.strategy-upload-complete-copy p {
  margin: 2px 0 0;
  color: #425a7a;
  font-size: 0.78rem;
  line-height: 1.35;
}

.strategy-upload-validation-message {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 8px;
  background: #fffaf0;
}

#dataset-modal .strategy-upload-validation-message {
  grid-template-columns: auto;
  justify-items: center;
}

.strategy-upload-validation-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.16);
  color: #b45309;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
}

.strategy-upload-validation-message p {
  margin: 0;
  color: #7c4a03;
  font-size: 0.76rem;
  line-height: 1.35;
}

#dataset-modal .strategy-upload-progress-label {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  justify-self: center;
  gap: 6px 12px;
  font-size: 0.82rem;
  text-align: center;
}

#dataset-modal .strategy-upload-progress-label span:last-child {
  font-weight: 500;
}

#dataset-modal .strategy-upload-progress-bar {
  height: 6px;
  background: #dfe8f4;
}

#dataset-modal .strategy-upload-progress-bar span {
  background: #16a34a;
}

#dataset-modal .strategy-recent-datasets-head,
#dataset-modal .strategy-recent-datasets li {
  grid-template-columns: minmax(0, 1fr) 64px;
  gap: 12px;
}

#dataset-modal .strategy-recent-datasets-head {
  margin-bottom: 0;
  padding: 7px 10px;
  border-color: rgba(100, 116, 139, 0.18);
  border-radius: 8px 8px 0 0;
  background: #f6f8fb;
  color: #5d6d83;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

#dataset-modal .strategy-recent-datasets-head span:last-child {
  text-align: center;
}

#dataset-modal .strategy-recent-datasets {
  border-color: rgba(100, 116, 139, 0.16);
}

#dataset-modal .strategy-recent-datasets li {
  min-height: 44px;
  padding: 6px 10px;
  border-color: rgba(100, 116, 139, 0.12);
}

#dataset-modal .strategy-recent-datasets li.is-current {
  position: relative;
  background: #f8fbff;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.42);
}

#dataset-modal .strategy-recent-dataset-copy {
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

#dataset-modal .strategy-recent-dataset-copy strong {
  overflow: hidden;
  color: #0f172a;
  font-size: 0.8rem;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#dataset-modal .strategy-recent-dataset-actions {
  display: grid;
  grid-column: 2 / 4;
  grid-template-columns: 64px 32px;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

#dataset-modal .strategy-recent-dataset-primary-action {
  width: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#dataset-modal .strategy-recent-dataset-primary-action > .strategy-recent-action-check {
  width: 20px;
  min-width: 20px;
  height: 20px;
  flex: 0 0 20px;
  aspect-ratio: 1;
  border-radius: 50%;
}

#dataset-modal .strategy-recent-dataset-primary-action > .button-secondary--inline {
  width: 64px;
  min-width: 64px;
  justify-content: center;
}

#dataset-modal .strategy-recent-dataset-menu-wrap {
  display: flex;
  flex: 0 0 32px;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  z-index: 2;
}

#dataset-modal .strategy-recent-datasets li.is-menu-open {
  position: relative;
  z-index: 10;
}

#dataset-modal .strategy-recent-dataset-menu-button {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

#dataset-modal .strategy-recent-datasets .button-secondary--inline {
  height: 24px;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 6px;
  background: #ffffff;
  font-size: 0.72rem;
  cursor: pointer;
}

.strategy-recent-action-check {
  width: 20px;
  height: 20px;
  display: none;
  align-items: center;
  justify-content: center;
  justify-self: center;
  border-radius: 50%;
  background: #1d5db6;
  color: #ffffff;
}

.strategy-recent-action-check svg {
  width: 12px;
  height: 12px;
}

#dataset-modal .strategy-recent-datasets li.is-current .strategy-recent-action-check {
  display: inline-flex;
}

#dataset-modal .strategy-recent-datasets li.is-current .button-secondary--inline:not([disabled]) {
  display: none;
}

#dataset-modal .strategy-modal-selected-dataset {
  gap: 7px;
  margin-top: 0;
  padding: 10px 14px;
  border: 1px solid rgba(22, 163, 74, 0.34);
  border-radius: 8px;
  background: linear-gradient(180deg, #f6fff9 0%, #effbf4 100%);
}

#dataset-modal .strategy-modal-selected-label {
  color: #0f7a45;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

#dataset-modal .strategy-modal-selected-value {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.strategy-modal-selected-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(22, 163, 74, 0.18) 0%, rgba(22, 163, 74, 0.1) 100%);
  position: relative;
}

.strategy-modal-selected-icon::before {
  content: "";
  width: 18px;
  height: 18px;
  position: absolute;
  inset: 7px;
  color: #16a34a;
  background: currentColor;
  mask-image: url("./assets/icons/lucide/file-spreadsheet.svg");
  -webkit-mask-image: url("./assets/icons/lucide/file-spreadsheet.svg");
  mask-position: center;
  -webkit-mask-position: center;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-size: contain;
}

.strategy-modal-selected-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

#dataset-modal .strategy-modal-selected-copy strong {
  display: block;
  overflow: hidden;
  color: #0f172a;
  font-size: 0.94rem;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#dataset-modal [data-modal-selected-dataset-name] {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.strategy-modal-selected-copy span,
.strategy-modal-selected-meta span {
  color: #425a7a;
  font-size: 0.78rem;
  line-height: 1.25;
}

.strategy-modal-selected-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

#dataset-modal .strategy-dataset-modal-actions {
  justify-content: space-between;
  margin: 14px 0 0;
  padding: 10px 20px;
  border-top-color: rgba(100, 116, 139, 0.16);
}

#dataset-modal .strategy-dataset-modal-actions .button-secondary,
#dataset-modal .strategy-dataset-modal-actions .load-button {
  min-height: 34px;
  border-radius: 7px;
  padding: 0 18px;
}

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

.visually-hidden-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.app-footer {
  width: min(var(--page-max-width), calc(100% - 32px));
  margin: 0 auto 28px;
  padding: 24px;
  border: 1px solid rgba(13, 91, 215, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 36px rgba(18, 32, 61, 0.06);
}

.app-footer--workspace {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.app-footer--public {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  background: transparent;
  border: 0;
  box-shadow: none;
  margin-top: 12px;
  padding-top: 6px;
}

.app-footer--public .app-footer-copy {
  max-width: 52ch;
}

.app-footer--public .app-footer-links {
  align-items: center;
}

.app-footer-copy h2 {
  margin: 0;
  font-size: 1.35rem;
}

.app-footer-copy p {
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 72ch;
}

.app-footer-copy .app-footer-meta {
  margin-top: 8px;
  font-size: 0.82rem;
  line-height: 1.55;
  color: #7a8799;
}

.app-footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.app-footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
}

.app-footer-links a:hover {
  color: var(--accent);
}

.page-shell {
  width: min(var(--page-max-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 56px;
}

.page-shell--landing {
  width: min(1240px, calc(100% - 40px));
  padding-top: 10px;
}

.site-header {
  position: sticky;
  top: 12px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  margin-bottom: 24px;
  border: 1px solid rgba(13, 91, 215, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 36px rgba(18, 32, 61, 0.06);
  backdrop-filter: blur(16px);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -14px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(22, 40, 74, 0.88) 0%,
    rgba(13, 91, 215, 0.42) 50%,
    rgba(22, 40, 74, 0.88) 100%
  );
}

.brand-mark {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--text);
  text-decoration: none;
}

.brand-mark-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, #16284a 0%, #0d5bd7 100%);
  color: #f5f8ff;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
}

.brand-mark-copy {
  display: grid;
  gap: 1px;
}

.brand-mark-copy strong {
  font-size: 0.93rem;
}

.brand-mark-copy small {
  color: var(--muted);
  font-size: 0.75rem;
}

.site-nav {
  display: flex;
  gap: 18px;
  align-items: center;
}

.site-nav a,
.site-footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
}

.site-nav a:hover,
.site-footer-links a:hover {
  color: var(--accent);
}

.site-header-actions,
.landing-hero-actions,
.landing-cta-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 20px;
  align-items: stretch;
  margin-bottom: 18px;
}

.landing-hero-copy,
.landing-hero-media,
.landing-section,
.landing-cta,
.site-footer {
  background: #ffffff;
  border: 1px solid var(--surface-border-soft);
  border-radius: 24px;
  box-shadow: 0 18px 36px rgba(18, 32, 61, 0.06);
}

.landing-hero-copy {
  padding: 32px;
}

.landing-hero-copy h1 {
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  line-height: 0.94;
  max-width: 10ch;
}

.landing-hero-copy .hero-copy {
  max-width: 56ch;
  margin-top: 16px;
  font-size: 1.06rem;
}

.landing-hero-media {
  padding: 20px;
  background:
    radial-gradient(circle at top left, rgba(13, 91, 215, 0.1), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.media-placeholder {
  height: 100%;
  min-height: 360px;
  padding: 24px;
  border-radius: 22px;
  background: linear-gradient(145deg, #16284a 0%, #10386f 100%);
  color: #f5f8ff;
  display: grid;
  gap: 16px;
}

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

.media-placeholder .eyebrow {
  color: rgba(245, 248, 255, 0.75);
}

.media-placeholder h2 {
  margin: 0;
  font-size: 1.4rem;
  max-width: 16ch;
}

.media-placeholder p {
  margin: 0;
  color: rgba(245, 248, 255, 0.82);
  max-width: 48ch;
}

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

.media-placeholder-grid div {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 6px;
}

.media-placeholder-grid span {
  color: rgba(245, 248, 255, 0.62);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.landing-section,
.landing-cta,
.site-footer {
  padding: 24px;
  margin-bottom: 18px;
}

.section-intro {
  margin-bottom: 18px;
}

.section-intro h2,
.landing-side-card h2,
.landing-cta h2 {
  margin: 0;
  font-size: 1.9rem;
  line-height: 1.05;
}

.landing-value-grid,
.trust-grid,
.pathway-grid,
.landing-section--utility {
  display: grid;
  gap: 14px;
}

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

.landing-value-card,
.trust-card,
.pathway-step,
.landing-side-card {
  padding: 20px;
  border: 1px solid var(--surface-border-soft);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  box-shadow: var(--surface-shadow-soft);
}

.landing-value-card--contrast,
.landing-side-card--contrast {
  background: linear-gradient(145deg, #16284a 0%, #10386f 100%);
  color: #f5f8ff;
  border-color: rgba(16, 56, 111, 0.24);
}

.landing-value-card--contrast p,
.landing-side-card--contrast p,
.landing-value-card--contrast .landing-card-kicker,
.landing-side-card--contrast .landing-card-kicker {
  color: rgba(245, 248, 255, 0.8);
}

.landing-card-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
}

.landing-value-card h3,
.trust-card h3,
.pathway-step h3 {
  margin: 0;
  font-size: 1.1rem;
}

.landing-value-card p,
.trust-card p,
.pathway-step p,
.landing-side-card p,
.landing-cta .panel-copy,
.site-footer p {
  margin: 10px 0 0;
  color: var(--muted);
}

.landing-section--pathway {
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}

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

.pathway-step {
  position: relative;
  overflow: hidden;
}

.pathway-step-number {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
}

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

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

.utility-card {
  padding: 18px 20px;
  border: 1px solid rgba(13, 91, 215, 0.1);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.utility-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.utility-card p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
}

.landing-section--split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.landing-side-card .load-button,
.landing-value-card .load-button {
  margin-top: 16px;
}

.landing-cta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  background: linear-gradient(145deg, #ffffff 0%, #f7faff 100%);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 0;
}

.site-footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero {
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--accent);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 0.95;
}

.hero-copy {
  max-width: 62ch;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.fetch-panel,
.status-panel,
.empty-panel,
.section-card,
.surface-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.fetch-panel {
  padding: 20px;
  margin-bottom: 18px;
}

.fetch-panel--workspace {
  border-color: rgba(13, 91, 215, 0.14);
  box-shadow: 0 24px 48px rgba(18, 32, 61, 0.08);
}

.research-config-shell {
  display: grid;
  gap: 16px;
}

.research-config-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.08fr);
  gap: 14px;
  align-items: start;
}

.config-work-card {
  padding: 14px;
  border: 1px solid rgba(13, 91, 215, 0.12);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  display: grid;
  gap: 10px;
  box-shadow: 0 14px 30px rgba(18, 32, 61, 0.06);
}

.config-work-header h3,
.config-work-header h4 {
  margin: 0;
  font-size: 1.05rem;
}

.config-work-header--inline h4 {
  font-size: 0.98rem;
}

.config-work-header .panel-copy {
  margin-top: 8px;
}

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

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

.config-form--controls {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.82fr) minmax(210px, 0.85fr);
}

.config-form--dataset {
  grid-template-columns: minmax(0, 1fr);
}

.config-form--action {
  grid-template-columns: 1fr;
}

.field--compact {
  align-self: end;
}

.slippage-control {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel-strong);
}

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

.slippage-display {
  font-size: 0.98rem;
  color: var(--text);
}

.slippage-editor.hidden {
  display: none;
}

.slippage-editor input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fffefb;
  color: var(--text);
  font: inherit;
}

.upload-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.dataset-workflow-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
  gap: 18px;
  align-items: start;
}

.dataset-step-card {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.72);
}

.dataset-step-header {
  margin-bottom: 14px;
}

.dataset-step-header h3 {
  margin: 0;
  font-size: 1.05rem;
}

.dataset-step-header .panel-copy {
  margin-top: 8px;
}

.dataset-step-header--compact {
  margin-bottom: 12px;
}

.config-action {
  display: flex;
  align-items: end;
}

.config-action--primary {
  justify-content: flex-end;
}

.config-action-bar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(13, 91, 215, 0.14);
  border-radius: 18px;
  background: linear-gradient(135deg, #16284a 0%, #10386f 100%);
  color: #f5f8ff;
  box-shadow: 0 18px 38px rgba(16, 56, 111, 0.18);
}

.config-action-copy strong {
  display: block;
  font-size: 1.02rem;
}

.config-action-copy p {
  margin: 6px 0 0;
  color: rgba(245, 248, 255, 0.82);
}

.config-action-bar .config-ready-kicker {
  color: rgba(245, 248, 255, 0.7);
}

.config-inline-divider {
  border-top: 1px solid rgba(215, 205, 182, 0.7);
  margin-top: 0;
  padding-top: 12px;
}

.field select {
  padding: 0 14px;
  border-radius: 14px;
  background: var(--panel-strong);
}

.config-status-panel {
  display: none;
  margin-bottom: 14px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 253, 248, 0.7);
  color: var(--muted);
}

.config-status-panel[data-state="loading"],
.config-status-panel[data-state="success"],
.config-status-panel[data-state="error"] {
  display: block;
}

.config-status-panel[data-state="loading"] {
  border-color: var(--accent-soft);
  color: var(--warning);
}

.config-status-panel[data-state="success"] {
  border-color: rgba(31, 106, 66, 0.25);
  color: var(--success);
}

.config-status-panel[data-state="error"] {
  border-color: rgba(156, 47, 47, 0.25);
  color: var(--error);
}

.config-status-panel p {
  margin: 8px 0 0;
}

.status-guidance {
  font-size: 0.92rem;
}

.progression-panel {
  margin-bottom: 8px;
}

.progression-card {
  padding: 14px;
  border: 1px solid rgba(13, 91, 215, 0.12);
  border-radius: 18px;
  background: linear-gradient(180deg, #f9fbff 0%, #ffffff 100%);
}

.progression-head h3 {
  margin: 0;
  font-size: 1.05rem;
}

.progression-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.progression-stage {
  border: 1px solid rgba(13, 91, 215, 0.1);
  border-radius: 14px;
  padding: 9px 10px;
  background: #ffffff;
  display: grid;
  gap: 4px;
}

.progression-stage[data-state="complete"] {
  border-color: rgba(18, 114, 74, 0.2);
  background: rgba(241, 248, 244, 0.96);
}

.progression-stage[data-state="active"] {
  border-color: rgba(13, 91, 215, 0.22);
  background: rgba(237, 243, 255, 0.96);
}

.progression-stage-label {
  color: var(--muted);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.progression-stage-value {
  font-size: 0.95rem;
}

.progression-helper {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

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

.config-preview h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.config-preview p {
  margin: 8px 0 0;
  color: var(--muted);
}

.config-preview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) repeat(2, minmax(0, 0.9fr));
  gap: 12px;
  margin-bottom: 12px;
}

.config-preview-card {
  padding: 14px 16px;
  border: 1px solid rgba(13, 91, 215, 0.12);
  border-radius: 18px;
  background: #ffffff;
  display: grid;
  gap: 10px;
  box-shadow: 0 14px 30px rgba(18, 32, 61, 0.06);
}

.config-preview-card h3 {
  margin: 0;
  font-size: 1.02rem;
}

.config-preview-card--hero {
  background: linear-gradient(135deg, #16284a 0%, #10386f 100%);
  color: #f5f8ff;
  border-color: rgba(16, 56, 111, 0.28);
}

.config-preview-card--hero .config-ready-kicker,
.config-preview-card--hero .config-ready-copy,
.config-preview-card--hero dt {
  color: rgba(245, 248, 255, 0.74);
}

.config-preview-card--hero dd {
  color: #f5f8ff;
}

.config-preview-card--support {
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.config-preview-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.config-preview-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.config-inline-note {
  padding-top: 10px;
  border-top: 1px solid rgba(215, 205, 182, 0.7);
}

.config-inline-note p {
  margin-top: 6px;
}

.config-ready-card {
  margin-bottom: 8px;
  padding: 14px 16px;
  border: 1px solid rgba(13, 91, 215, 0.14);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  box-shadow: 0 14px 28px rgba(18, 32, 61, 0.06);
}

.config-ready-card--dashboard {
  display: grid;
  gap: 10px;
}

.config-ready-kicker {
  margin: 0 0 6px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}

.config-ready-title {
  display: block;
  font-size: 1rem;
  line-height: 1.35;
}

.config-ready-copy {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.config-readiness-card {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(215, 205, 182, 0.7);
}

.config-readiness-card h4 {
  margin: 0 0 10px;
  font-size: 0.95rem;
}

.config-preview dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 12px;
  margin: 0;
}

.config-readiness-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 12px;
  margin: 0;
}

.config-preview dt {
  color: var(--muted);
}

.config-readiness-grid dt {
  color: var(--muted);
}

.config-preview dd {
  margin: 0;
  text-align: right;
}

.config-readiness-grid dd {
  margin: 0;
  text-align: right;
}

.created-test-panel {
  margin-top: 18px;
}

.created-test-card {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(241, 246, 238, 0.78);
}

.created-test-card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.created-test-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.created-test-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.created-test-card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 12px;
  margin: 0;
}

.created-test-card dt {
  color: var(--muted);
}

.created-test-card dd {
  margin: 0;
  text-align: right;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 18px;
  margin-bottom: 18px;
}

.panel-title {
  margin: 0;
  font-size: 1.35rem;
}

.panel-copy {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 58ch;
}

.fetch-form {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 14px;
  align-items: end;
}

.field {
  display: grid;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--muted);
}

.field input {
  min-height: var(--control-height);
  padding: 12px 14px;
  border-radius: var(--control-radius);
  background: #fffefb;
}

.field input[type="file"] {
  padding: 10px 12px;
  background: #fffefb;
}

.load-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  padding: 11px 16px;
  background: var(--accent);
  color: #fffaf2;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(13, 91, 215, 0.2);
  transition: background 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.load-button:hover {
  background: #0a4bb3;
}

.load-button:focus-visible {
  outline: 2px solid rgba(13, 91, 215, 0.5);
  outline-offset: 3px;
}

.load-button--secondary {
  background: var(--panel-contrast-soft);
  color: var(--accent);
  box-shadow: none;
}

.load-button--secondary:hover {
  background: #dfeafb;
}

.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 11px 16px;
  border-radius: 14px;
  font-weight: 600;
  text-decoration: none;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.button-primary {
  border: 0;
  background: var(--accent);
  color: #fffaf2;
  box-shadow: 0 10px 22px rgba(13, 91, 215, 0.2);
}

.button-primary:focus-visible,
.button-secondary:focus-visible {
  outline: 2px solid rgba(13, 91, 215, 0.5);
  outline-offset: 3px;
}

.button-secondary {
  border: 1px solid rgba(13, 91, 215, 0.14);
  background: var(--panel-contrast-soft);
  color: var(--accent);
}

.button-secondary:hover {
  background: #eef4fb;
}

.panel-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.results-list-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.strategy-browse-panel {
  display: grid;
  gap: 12px;
}

.strategy-library {
  display: grid;
  gap: 10px;
}

.strategy-category-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.strategy-category-chip {
  border: 1px solid rgba(13, 91, 215, 0.12);
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--panel-strong);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.strategy-category-chip[data-selected="true"] {
  border-color: var(--accent);
  background: rgba(237, 243, 255, 0.96);
  color: var(--accent);
}

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

.strategy-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(13, 91, 215, 0.12);
  border-radius: 16px;
  background: #ffffff;
  padding: 12px 14px;
}

.strategy-row[data-selected="true"] {
  border-color: var(--accent);
  background: #f5f9ff;
  box-shadow: 0 12px 24px rgba(13, 91, 215, 0.1);
}

.strategy-row-name,
.strategy-row-copy {
  margin: 0;
}

.strategy-row-name {
  font-size: 0.98rem;
}

.strategy-row-copy {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
}

.strategy-row-meta,
.strategy-preview-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.strategy-row-actions {
  display: flex;
  justify-content: flex-end;
}

.strategy-preview-panel {
  margin-top: 12px;
}

.strategy-preview-card {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(247, 250, 255, 0.96);
  display: grid;
  gap: 10px;
}

.strategy-preview-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.strategy-preview-kicker {
  margin: 0 0 6px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
}

.strategy-preview-card h3 {
  margin: 0;
  font-size: 1.02rem;
}

.strategy-preview-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.dataset-browse-panel {
  display: grid;
  gap: 12px;
  max-height: 220px;
  overflow: auto;
  padding-right: 4px;
}

.dataset-support-row .panel-note {
  margin: 0;
}

.inline-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  text-underline-offset: 0.14em;
}

.inline-link:hover {
  text-decoration: underline;
}

.inline-link:focus-visible {
  outline: 2px solid rgba(13, 91, 215, 0.5);
  outline-offset: 3px;
  border-radius: 4px;
  text-decoration: underline;
}

.result-row-action,
.strategy-recent-tests-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 28px;
  padding: 0;
  color: #1d4ed8;
  font-size: 0.84rem;
  font-weight: 640;
  text-decoration: none;
  background: none;
  border-radius: 0;
  transition:
    color 0.16s ease,
    transform 0.16s ease;
}

.result-row-action:hover,
.result-row-action:focus-visible,
.strategy-recent-tests-action:hover,
.strategy-recent-tests-action:focus-visible {
  color: #163ea7;
  text-decoration: none;
  transform: translateX(1px);
}

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

.dataset-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto auto;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(13, 91, 215, 0.12);
  border-radius: 16px;
  background: #ffffff;
  padding: 12px 14px;
}

.dataset-row[data-selected="true"] {
  border-color: var(--accent);
  background: #f5f9ff;
  box-shadow: 0 12px 24px rgba(13, 91, 215, 0.12);
}

.dataset-row-name,
.dataset-row-copy {
  margin: 0;
}

.dataset-row-name {
  font-size: 0.97rem;
}

.dataset-row-copy {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.88rem;
}

.dataset-row-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dataset-row-actions {
  display: flex;
  justify-content: flex-end;
}

.dataset-preview-card {
  padding: 12px 14px;
  border: 1px solid rgba(13, 91, 215, 0.12);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  display: grid;
  gap: 8px;
}

.dataset-preview-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.dataset-preview-kicker {
  margin: 0 0 6px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
}

.dataset-preview-card h3 {
  margin: 0;
  font-size: 1rem;
}

.dataset-preview-copy {
  margin: 0;
  color: var(--muted);
}

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

.dataset-preview-stat {
  display: grid;
  gap: 4px;
  padding: 9px 10px;
  border-radius: 12px;
  background: rgba(237, 243, 255, 0.78);
}

.dataset-preview-stat span {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.dataset-preview-stat strong {
  font-size: 0.93rem;
}

.results-list-empty {
  margin: 0;
  padding: 14px 16px;
  border: 1px dashed var(--border);
  border-radius: 14px;
  background: rgba(249, 251, 255, 0.8);
  color: var(--muted);
}

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

.result-list-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.92);
  padding: 16px;
  display: grid;
  gap: 12px;
}

.result-list-card[data-selected="true"] {
  border-color: var(--accent);
  background: #fff6e8;
  box-shadow: 0 12px 28px rgba(140, 79, 43, 0.12);
}

.result-list-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.result-list-id {
  margin: 0;
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.result-list-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 12px;
  margin: 0;
}

.result-list-meta dt {
  color: var(--muted);
}

.result-list-meta dd {
  margin: 0;
  text-align: right;
}

.result-list-actions {
  display: flex;
  justify-content: flex-end;
}

.status-panel {
  display: none;
  padding: 14px 18px;
  margin-bottom: 18px;
  color: var(--muted);
}

.status-panel[data-state="loading"] {
  display: block;
  border-color: var(--accent-soft);
  color: var(--warning);
}

.status-panel[data-state="error"] {
  display: block;
  border-color: rgba(156, 47, 47, 0.25);
  color: var(--error);
}

.empty-panel {
  padding: 28px;
  text-align: center;
}

.empty-panel h2 {
  margin-top: 0;
}

.result-view.hidden,
.empty-panel.hidden {
  display: none;
}

.result-view {
  display: grid;
  gap: 16px;
}

.result-view--single {
  gap: 20px;
}

.result-header {
  display: grid;
  gap: 12px;
  grid-template-columns: 2fr 1fr;
}

.result-header--single {
  grid-template-columns: 1fr;
}

.header-main,
.header-meta {
  background: var(--panel-strong);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
}

.header-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}

.header-main h2 {
  margin: 0;
  font-size: 1.8rem;
}

.header-main--single {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
}

.result-view--single .header-main--single {
  gap: 14px;
  padding: 4px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.header-title-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.header-title-stack {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.header-status-row,
.header-status-inline {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.header-status-inline h2 {
  margin: 0;
}

.result-view--single .header-status-inline {
  gap: 12px;
}

.result-view--single .header-status-inline h2 {
  font-size: clamp(1.55rem, 2.3vw, 2rem);
  line-height: 1.12;
}

.result-view--single {
  margin-top: -12px;
  padding-top: 0;
  min-width: 0;
  max-width: 100%;
}

body.single-result-review-inter-page .workspace-content,
.result-view--single > * {
  min-width: 0;
  max-width: 100%;
}

body.single-result-review-inter-page,
body.single-result-review-inter-page .app-shell--workspace,
body.single-result-review-inter-page .workspace-shell,
body.single-result-review-inter-page .workspace-content,
.result-view--single {
  overflow-x: clip;
}

[data-result-variant][hidden] {
  display: none !important;
}

.result-view--single .header-title-row {
  align-items: flex-start;
  padding-bottom: 6px;
}

.result-view--single .header-status-inline .status-badge {
  min-height: 27px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.76rem;
  line-height: 1;
}

.result-view--single .header-status-inline .status-badge[data-tone="success"] {
  background: #effcf5;
  border-color: rgba(16, 122, 67, 0.14);
  color: #047643;
}

.result-view--single .header-status-inline .status-badge[data-tone="success"]::before {
  content: "\2713";
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}

.result-view--single .review-breadcrumb-row {
  margin-top: -4px;
  margin-bottom: -6px;
}

.review-result-type-row {
  margin-top: 8px;
}

.review-result-type-pill {
  padding: 7px 12px;
  background: rgba(13, 91, 215, 0.12);
  color: #0f4fb7;
  border: 1px solid rgba(13, 91, 215, 0.16);
}

.review-download-button {
  gap: 8px;
  white-space: nowrap;
}

.result-artifact-control {
  position: relative;
  display: inline-flex;
  min-width: 0;
}

.result-artifact-overlay-root {
  position: fixed;
  inset: 0;
  z-index: 110;
  pointer-events: none;
}

.result-artifact-overlay-root .result-artifact-menu {
  pointer-events: auto;
}

.result-artifact-trigger {
  cursor: pointer;
}

.result-artifact-trigger-caret {
  width: 7px;
  height: 7px;
  margin-left: 2px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.result-artifact-menu {
  position: absolute;
  z-index: 60;
  isolation: isolate;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  box-sizing: border-box;
  width: min(320px, calc(100vw - 24px));
  min-width: 0;
  max-width: calc(100vw - 24px);
  gap: 4px;
  padding: 8px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 12px;
  background-color: #ffffff;
  background-image: none;
  opacity: 1;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
}

.result-artifact-menu[hidden] {
  display: none;
}

.result-artifact-menu.is-align-left {
  right: auto;
  left: 0;
}

.result-artifact-menu.is-portal {
  position: fixed;
  right: auto;
}

.result-artifact-item,
.result-artifact-subitem {
  width: 100%;
  min-width: 0;
  border: 0;
  border-radius: 8px;
  background-color: #ffffff;
  color: #16284a;
  text-align: left;
  cursor: pointer;
}

.result-artifact-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 10px 14px;
}

.result-artifact-item-copy,
.result-artifact-group-heading {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.result-artifact-item-copy {
  flex: 1 1 auto;
}

.result-artifact-item-copy strong,
.result-artifact-group-heading strong {
  font-size: 0.82rem;
  font-weight: 700;
}

.result-artifact-item-copy small,
.result-artifact-group-heading small {
  color: #64748b;
  font-size: 0.7rem;
  line-height: 1.35;
}

.result-artifact-item:hover,
.result-artifact-item:focus-visible,
.result-artifact-subitem:hover,
.result-artifact-subitem:focus-visible {
  background: #eff6ff;
  outline: none;
}

.result-artifact-item.is-locked {
  color: #475569;
}

.result-artifact-item.is-locked:hover,
.result-artifact-item.is-locked:focus-visible {
  background: #f8fafc;
}

.result-artifact-pro-badge {
  flex: 0 0 auto;
  margin-left: 8px;
  padding: 3px 7px;
  border: 1px solid rgba(47, 99, 214, 0.22);
  border-radius: 999px;
  color: #2456c4;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.result-artifact-group {
  display: grid;
  gap: 3px;
  padding: 7px 7px 5px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  background-color: #ffffff;
}

.result-artifact-group-heading {
  padding: 0 4px 4px;
}

.result-artifact-subitem {
  padding: 7px 8px;
  color: #334155;
  font-size: 0.76rem;
}

.result-artifact-feedback {
  margin: 3px 4px 1px;
  color: #475569;
  font-size: 0.72rem;
  line-height: 1.35;
}

.result-artifact-control[data-artifact-state="failed"] .result-artifact-feedback,
.result-artifact-control[data-artifact-state="artifact_rate_limited"] .result-artifact-feedback,
.result-artifact-control[data-artifact-state="upgrade_required"] .result-artifact-feedback {
  color: #9f1239;
}

.result-artifact-control[data-artifact-state="ready"] .result-artifact-feedback {
  color: #166534;
}

.review-heading-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.result-view--single .review-heading-actions {
  gap: 12px;
  align-self: flex-start;
  padding-top: 0;
  transform: translateY(-5px);
}

.review-secondary-action {
  min-height: 40px;
}

.result-view--single .review-secondary-action,
.result-view--single .review-download-button {
  height: 42px;
  min-height: 42px;
  padding-block: 0;
  padding-inline: 16px;
  border-radius: 999px;
}

.result-view--single .review-download-button {
  gap: 10px;
  padding-inline: 12px 18px;
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.16);
}

.result-view--single .review-secondary-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-inline: 14px 16px;
  line-height: 1;
}

.review-action-icon,
.review-action-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.review-action-icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #2f6ef4;
  color: #f5f8ff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.review-action-arrow {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.result-view--single .review-secondary-action .review-action-arrow {
  width: 15px;
  height: 15px;
  background-color: currentColor;
  color: inherit;
  mask: url("./assets/icons/lucide/external-link.svg") center / 15px 15px no-repeat;
  -webkit-mask: url("./assets/icons/lucide/external-link.svg") center / 15px 15px no-repeat;
}

.review-action-icon svg,
.review-action-arrow svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.review-action-arrow img {
  width: 15px;
  height: 15px;
  display: block;
}

.header-copy {
  margin: 10px 0 0;
  color: var(--muted);
}

.header-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.header-context {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(215, 205, 182, 0.7);
}

.header-context--single {
  margin-top: 0;
}

.result-view--single .header-context--single {
  grid-template-columns:
    minmax(96px, 0.78fr)
    minmax(0, 1.28fr)
    minmax(150px, 1.18fr)
    minmax(84px, 0.72fr)
    minmax(118px, 0.9fr);
  gap: 12px 22px;
  padding-top: 10px;
  padding-bottom: 16px;
  margin-bottom: 8px;
  align-items: center;
  border-top: 0;
  border-bottom: 1px solid rgba(13, 91, 215, 0.14);
}

.header-context-item {
  display: grid;
  gap: 4px;
}

.result-view--single .header-context-item {
  position: relative;
  gap: 4px;
  padding-right: 20px;
  min-width: 0;
}

.result-view--single .header-context-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 0;
  width: 1px;
  height: 28px;
  background: rgba(13, 91, 215, 0.07);
}

.header-context-label {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.result-view--single .header-context-label {
  font-size: 0.69rem;
  letter-spacing: 0.09em;
}

.header-context-value {
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.result-view--single .header-context-value {
  font-size: 0.95rem;
  line-height: 1.24;
  font-weight: 500;
}

.result-view--single .header-context-item--dataset .header-context-value {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-meta dl,
.details-grid dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 12px;
  margin: 0;
}

.header-meta dt,
.details-grid dt {
  color: var(--muted);
}

.header-meta dd,
.details-grid dd {
  margin: 0;
  text-align: right;
}

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

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

.result-view--single .summary-strip--single {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.result-view--single .section-card.performance-snapshot {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 28px;
  width: 100%;
  min-height: 58px;
  padding: 13px 18px;
  border-radius: var(--workspace-card-radius-compact);
  border-color: rgba(13, 91, 215, 0.1);
  background: rgba(239, 246, 255, 0.78);
  box-shadow: none;
  text-align: left;
}

.performance-snapshot-head {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  min-width: 0;
  white-space: nowrap;
}

.performance-snapshot-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #ffffff;
  color: #0d5bd7;
  border: 1px solid rgba(13, 91, 215, 0.12);
}

.performance-snapshot-icon::before {
  content: "";
  width: 14px;
  height: 14px;
  background-color: currentColor;
  mask: url("./assets/icons/lucide/sparkles.svg") center / 14px 14px no-repeat;
  -webkit-mask: url("./assets/icons/lucide/sparkles.svg") center / 14px 14px no-repeat;
}

.performance-snapshot-label {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #24364d;
}

.performance-snapshot-copy {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: wrap;
}

.performance-snapshot-copy span {
  font-size: 0.92rem;
  line-height: 1.42;
  color: #31445b;
}

.performance-snapshot-separator {
  flex: 0 0 auto;
  margin-inline: 2px;
  color: #4c6280;
}

.summary-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 12px 11px;
  box-shadow: var(--shadow);
}

.summary-card-label {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.summary-card-value {
  margin: 0;
  font-size: clamp(1.06rem, 1.65vw, 1.4rem);
  line-height: 1;
}

.result-view--single .summary-card {
  min-height: 112px;
  padding: 16px 12px 13px;
  border-radius: var(--workspace-card-radius-compact);
  border-color: var(--surface-border-strong);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--workspace-card-shadow-flat);
  display: flex;
  flex-direction: column;
  justify-content: center;
  justify-items: center;
  text-align: center;
  position: relative;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.result-view--single .summary-card:hover {
  transform: translateY(-2px);
  border-color: rgba(13, 91, 215, 0.18);
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.08);
}

.result-view--single .summary-card-label {
  margin-bottom: 8px;
  font-size: 0.68rem;
  letter-spacing: 0.09em;
}

.result-view--single .summary-card-value {
  margin-top: 0;
  font-size: clamp(1rem, 1.2vw, 1.28rem);
  line-height: 1.1;
  font-weight: 700;
}

.summary-card-unit {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 500;
  line-height: 1.1;
}

.result-view--single .summary-card-unit {
  margin-top: 2px;
}

.summary-card-unit--empty {
  visibility: hidden;
}

.summary-card-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  position: absolute;
  top: 10px;
  right: 10px;
  border-radius: 999px;
  border: 1px solid rgba(13, 91, 215, 0.14);
  background: rgba(13, 91, 215, 0.08);
  color: var(--accent);
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1;
  cursor: help;
}

.result-view--single .summary-card--review[data-tone="positive"] .summary-card-value {
  font-size: clamp(1.12rem, 1.35vw, 1.46rem);
  color: var(--success);
}

.result-view--single .summary-card--review[data-tone="negative"] .summary-card-value {
  font-size: clamp(1.12rem, 1.35vw, 1.46rem);
  color: var(--error);
}

.result-body {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 18px;
}

.result-body--single {
  grid-template-columns: minmax(0, 1.38fr) minmax(280px, 0.62fr);
  align-items: start;
}

.result-view--single .result-body--single {
  grid-template-columns: minmax(0, 1.48fr) minmax(300px, 0.52fr);
  gap: 16px;
  align-items: stretch;
}

.primary-panels,
.detail-sections {
  display: grid;
  gap: 18px;
}

.visual-card {
  background: linear-gradient(160deg, #fff8ec 0%, #f3e6ce 100%);
  border: 1px solid var(--border);
}

.result-view--single .visual-card {
  background:
    linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  border-color: var(--surface-border-strong);
  box-shadow: var(--workspace-card-shadow-flat);
  min-height: 0;
  height: 100%;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  padding-bottom: 16px;
}

.result-view--single .section-card--wide.visual-card {
  min-height: 0;
}

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

.review-visual-title {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
}

.review-visual-title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 11px;
  background: linear-gradient(180deg, #f4f8ff 0%, #edf4ff 100%);
  color: var(--accent);
  border: 1px solid rgba(13, 91, 215, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.review-visual-title-icon::before {
  content: "";
  width: 18px;
  height: 18px;
  background-color: currentColor;
  -webkit-mask: url("./assets/icons/lucide/chart-network.svg") center / contain no-repeat;
  mask: url("./assets/icons/lucide/chart-network.svg") center / contain no-repeat;
}

.review-visual-title-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.visual-copy {
  margin: 8px 0 0;
  color: var(--muted);
}

.result-view--backtest .visual-header > div {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.result-view--backtest.result-view--single .visual-header {
  flex-direction: row;
  align-items: flex-start;
}

.result-view--backtest.result-view--single .review-chart-tabs {
  display: flex !important;
  flex: 0 0 auto;
  width: auto;
  max-width: 100%;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center;
  justify-content: flex-end;
  align-self: flex-start;
  overflow-x: auto;
  overflow-y: hidden;
}

.result-view--backtest .visual-copy {
  margin-top: 0;
  font-size: 0.9rem;
  line-height: 1.35;
  white-space: nowrap;
}

.visual-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.visual-metric {
  background: rgba(255, 253, 248, 0.72);
  border: 1px solid rgba(140, 79, 43, 0.12);
  border-radius: 14px;
  padding: 14px;
}

.visual-metric-label {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.visual-metric-value {
  font-size: 1.8rem;
  line-height: 1;
}

.comparison-track {
  display: grid;
  gap: 12px;
}

.comparison-bar {
  display: grid;
  gap: 8px;
}

.comparison-bar-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.92rem;
}

.comparison-rail {
  position: relative;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(140, 79, 43, 0.12);
}

.comparison-fill {
  height: 100%;
  border-radius: 999px;
}

.comparison-fill[data-tone="primary"] {
  background: linear-gradient(90deg, #8c4f2b 0%, #d1984b 100%);
}

.comparison-fill[data-tone="secondary"] {
  background: linear-gradient(90deg, #2d6d57 0%, #86b89f 100%);
}

.empty-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.review-breadcrumb-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.review-breadcrumb {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.result-view--single .review-breadcrumb-row {
  align-items: flex-start;
}

.result-view--single .review-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  letter-spacing: normal;
  text-transform: none;
}

.result-view--single .review-breadcrumb .inline-link {
  font-weight: 500;
}

.result-view--single .review-breadcrumb span:last-child {
  color: #58697f;
}

.review-chart-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  min-width: 0;
}

.result-view--single .review-chart-tabs {
  gap: 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.result-view--single :is(
  button:not([disabled]),
  .button-secondary:not([disabled]),
  .load-button:not([disabled]),
  .review-download-button,
  .result-detail-export-button:not([disabled]),
  .review-chart-tab,
  .sweep-metric-selector select,
  .sweep-ranking-selector select,
  .walkforward-timeline-mode-button,
  .walkforward-net-pnl-mode-button,
  .sweep-ranking-row:not(.sweep-ranking-row--head):not(.is-selected)
) {
  cursor: pointer;
}

.result-view--single :is(
  button[disabled],
  .button-secondary[disabled],
  .load-button[disabled],
  .review-chart-tab[disabled],
  select:disabled
) {
  cursor: not-allowed;
}

.review-chart-tab {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(140, 79, 43, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  white-space: nowrap;
}

.result-view--single .review-chart-tab {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid transparent;
  background: transparent;
  color: #4b607e;
  font-size: 0.85rem;
  border-radius: 999px;
  transition:
    color 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}

.result-view--single .review-chart-tab:focus-visible {
  outline: 2px solid rgba(13, 91, 215, 0.22);
  outline-offset: 2px;
}

.review-chart-tab.is-active {
  background: linear-gradient(180deg, #e8f2ff 0%, #f3f8ff 100%);
  border-color: rgba(13, 91, 215, 0.24);
  color: #0d5bd7;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.review-chart-stage {
  margin-top: 8px;
}

.result-view--single .review-chart-stage {
  margin-top: 12px;
  flex: 1 1 auto;
  display: flex;
  min-height: 0;
}

.review-chart-surface,
.review-mini-chart {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(140, 79, 43, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.36) 0%, rgba(255, 255, 255, 0.05) 100%),
    linear-gradient(145deg, #f7ecd8 0%, #f2e4c7 100%);
}

.review-chart-surface {
  min-height: 300px;
}

.result-view--single .review-chart-surface {
  min-height: 236px;
  flex: 1 1 auto;
  border-color: rgba(13, 91, 215, 0.06);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34) 0%, rgba(244, 248, 254, 0.64) 100%),
    linear-gradient(145deg, rgba(246, 249, 254, 0.72) 0%, rgba(235, 242, 251, 0.78) 100%);
}

.review-chart-surface::before,
.review-mini-chart::before {
  content: "";
  position: absolute;
  inset: 10px 8px 8px;
  border-radius: 10px;
  background-image:
    linear-gradient(rgba(22, 40, 74, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 40, 74, 0.06) 1px, transparent 1px);
  background-size: 100% 54px, 62px 100%;
}

.review-chart-surface--equity::after {
  content: "";
  position: absolute;
  inset: auto 9% 11% 9%;
  height: 37%;
  border-top: 4px solid rgba(22, 114, 74, 0.48);
  border-radius: 50%;
  transform: skewX(-18deg) scaleY(0.78);
}

.review-chart-surface--drawdown::after {
  content: "";
  position: absolute;
  inset: auto 11% 15% 11%;
  height: 28%;
  border-top: 4px solid rgba(181, 66, 66, 0.42);
  border-radius: 50%;
  transform: skewX(16deg) scaleY(0.68);
}

.review-chart-surface--distribution::after {
  content: "";
  position: absolute;
  left: 11%;
  right: 11%;
  bottom: 13%;
  height: 38%;
  background:
    linear-gradient(
      90deg,
      rgba(13, 91, 215, 0.16) 0 12%,
      transparent 12% 18%,
      rgba(13, 91, 215, 0.22) 18% 30%,
      transparent 30% 36%,
      rgba(13, 91, 215, 0.28) 36% 52%,
      transparent 52% 58%,
      rgba(13, 91, 215, 0.21) 58% 72%,
      transparent 72% 78%,
      rgba(13, 91, 215, 0.14) 78% 90%,
      transparent 90% 100%
    );
  border-radius: 12px 12px 6px 6px;
}

.review-chart-surface--live::after {
  display: none;
}

.review-chart-surface--live svg {
  position: absolute;
  z-index: 1;
  inset: 16px;
  width: calc(100% - 32px);
  height: calc(100% - 32px);
  color: #16724a;
}

.review-chart-surface--live.review-chart-surface--drawdown svg {
  color: #b54242;
}

.review-chart-label {
  position: absolute;
  left: 16px;
  bottom: 8px;
  z-index: 1;
  display: inline-flex;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--muted);
  font-size: 0.84rem;
}

.review-trade-table {
  margin-top: 14px;
  border: 1px solid rgba(13, 91, 215, 0.1);
  border-radius: var(--workspace-card-radius-compact);
  background: #ffffff;
}

.result-view--single .review-trade-table {
  margin-top: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  border-color: rgba(13, 91, 215, 0.12);
}

.review-trade-row {
  display: grid;
  min-width: 980px;
  grid-template-columns: 1.1fr 1.1fr 0.7fr 0.8fr 0.8fr 0.8fr 0.95fr;
  gap: 12px;
  align-items: center;
  padding: 13px 16px;
  border-top: 1px solid rgba(13, 91, 215, 0.08);
}

.result-view--single .review-trade-row {
  min-width: 940px;
  grid-template-columns: 1.16fr 1.16fr 0.72fr 0.82fr 0.82fr 0.78fr 0.98fr;
  padding: 14px 18px;
}

.result-view--single .review-trade-row > span:nth-child(n + 3) {
  text-align: center;
  justify-self: center;
}

.review-trade-pnl {
  font-weight: 700;
}

.review-trade-pnl--positive {
  color: var(--success);
}

.review-trade-pnl--negative {
  color: var(--error);
}

.review-trade-row--head {
  border-top: 0;
  font-size: 0.83rem;
}

.result-view--single .review-trade-row--head {
  font-size: 0.8rem;
}

.review-table-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.review-table-actions--trade-preview {
  margin-top: 0;
}

.review-trade-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.review-trade-footer-count {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.review-trade-footer .review-table-actions {
  margin-top: 0;
}

.review-research-note {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(13, 91, 215, 0.1);
  border-radius: var(--workspace-card-radius-compact);
  background: linear-gradient(180deg, rgba(247, 250, 255, 0.98) 0%, rgba(251, 253, 255, 0.98) 100%);
}

.review-research-note p {
  margin: 0;
  color: #5d6f86;
  font-size: 0.86rem;
  line-height: 1.5;
}

.section-card {
  padding: 20px;
}

.section-card--wide {
  min-height: 100%;
}

.section-card h3 {
  margin: 0 0 16px;
  font-size: 1.2rem;
}

.section-copy {
  margin: -4px 0 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.review-config-card {
  align-self: start;
  max-width: 360px;
  justify-self: end;
  padding: 16px;
}

.review-config-card h3 {
  margin-bottom: 6px;
}

.review-config-card h3 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.result-view--single .review-config-card h3 {
  display: block;
}

.review-config-title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #edf3ff;
  color: var(--accent);
}

.review-config-title-icon::before {
  content: "";
  width: 15px;
  height: 15px;
  background-color: currentColor;
  -webkit-mask: url("./assets/icons/lucide/settings-2.svg") center / contain no-repeat;
  mask: url("./assets/icons/lucide/settings-2.svg") center / contain no-repeat;
}

.review-config-title-icon svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.result-view--single .review-config-card {
  width: 100%;
  max-width: none;
  justify-self: stretch;
  padding: 18px;
  border-color: var(--surface-border-strong);
  border-radius: var(--workspace-card-radius);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--workspace-card-shadow-flat);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.result-view--single .section-card {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  border-color: var(--surface-border-strong);
  border-radius: var(--workspace-card-radius);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--workspace-card-shadow-flat);
}

.review-config-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}

.review-config-grid {
  display: grid;
  gap: 12px;
  align-content: start;
}

.review-config-group {
  display: grid;
  gap: 0;
}

.review-config-panel {
  display: grid;
  align-content: start;
  padding: 0 16px;
  border: 1px solid rgba(13, 91, 215, 0.08);
  border-radius: var(--workspace-card-radius-compact);
  background: #fbfcfe;
}

.review-config-panel--compact {
  padding-top: 2px;
  padding-bottom: 2px;
}

.review-config-list {
  display: grid;
  grid-template-columns: 1fr;
}

.review-config-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding: 0;
  border-bottom: 1px solid rgba(13, 91, 215, 0.08);
}

.review-config-list .review-config-item:last-child,
.review-config-panel > .review-config-item:last-child {
  border-bottom: 0;
}

.review-config-item-label {
  color: #5f728a;
  font-size: 0.89rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.4;
}

.review-config-item-value {
  color: #16284a;
  font-size: 0.93rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: right;
  white-space: nowrap;
}

.review-config-costs {
  display: grid;
  gap: 9px;
  margin-top: 2px;
}

.review-config-group-label {
  margin: 0;
  color: #5a6f8e;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.3;
}

.review-config-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(13, 91, 215, 0.08);
}

.review-config-note {
  margin: 0;
  color: #6a7b91;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.45;
}

.review-config-card > .review-config-note {
  margin-bottom: 14px;
}

.result-section-heading-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.result-section-heading-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 11px;
  background: linear-gradient(180deg, #f4f8ff 0%, #edf4ff 100%);
  color: var(--accent);
  border: 1px solid rgba(13, 91, 215, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.result-section-heading-icon::before {
  content: "";
  width: 18px;
  height: 18px;
  background-color: currentColor;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.result-section-heading-icon--trades::before {
  -webkit-mask-image: url("./assets/icons/lucide/file-spreadsheet.svg");
  mask-image: url("./assets/icons/lucide/file-spreadsheet.svg");
}

.result-view--parameter-sweep .header-context--single {
  grid-template-columns:
    minmax(96px, 0.78fr)
    minmax(0, 1.28fr)
    minmax(150px, 1.18fr)
    minmax(84px, 0.72fr)
    minmax(118px, 0.9fr);
}

.result-view--walkforward .header-context--single {
  grid-template-columns:
    minmax(96px, 0.78fr)
    minmax(0, 1.06fr)
    minmax(214px, 1.42fr)
    minmax(84px, 0.66fr)
    minmax(118px, 0.88fr);
}

.result-view--walkforward .header-context-item--data-range .header-context-value {
  display: block;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-view--parameter-sweep .summary-strip--single.sweep-summary-strip {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.result-view--walkforward .summary-strip--single.walkforward-summary-strip {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.sweep-summary-section {
  display: grid;
  gap: 12px;
}

.result-view--parameter-sweep .sweep-summary-card--primary {
  border-color: rgba(13, 91, 215, 0.26);
}

.result-view--walkforward .sweep-summary-card--primary {
  border-color: rgba(13, 91, 215, 0.26);
}

.sweep-section-heading h3 {
  margin: 0;
  font-size: 1.08rem;
}

.sweep-analysis-grid {
  display: grid;
  gap: 16px;
  align-items: stretch;
}

.sweep-analysis-grid {
  grid-template-columns: minmax(0, 1.48fr) minmax(300px, 0.52fr);
}

.sweep-result-panel,
.sweep-heatmap-panel,
.sweep-ranking-panel,
.sweep-snapshot-panel {
  min-width: 0;
}

.sweep-heatmap-panel,
.sweep-ranking-panel {
  padding: 20px;
  box-shadow: var(--workspace-card-shadow-flat);
}

.sweep-snapshot-panel,
.sweep-support-panel {
  padding: 16px;
  border-color: rgba(13, 91, 215, 0.1);
  box-shadow: none;
}

.sweep-snapshot-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100%;
}

.sweep-panel-heading,
.sweep-table-heading {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.sweep-panel-heading {
  margin-bottom: 14px;
}

.sweep-panel-heading h3,
.sweep-table-heading h3 {
  margin-bottom: 0;
}

.sweep-snapshot-heading {
  margin-bottom: 14px;
}

.sweep-heading-title {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.sweep-heading-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 11px;
  background: linear-gradient(180deg, #f4f8ff 0%, #edf4ff 100%);
  color: var(--accent);
  border: 1px solid rgba(13, 91, 215, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.sweep-heading-icon::before {
  content: "";
  width: 18px;
  height: 18px;
  background-color: currentColor;
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
}

.sweep-heading-icon--top::before {
  -webkit-mask-image: url("./assets/icons/lucide/rows-3.svg");
  mask-image: url("./assets/icons/lucide/rows-3.svg");
}

.sweep-heading-icon--range::before {
  -webkit-mask-image: url("./assets/icons/lucide/settings-2.svg");
  mask-image: url("./assets/icons/lucide/settings-2.svg");
}

.sweep-heading-icon--segments::before {
  -webkit-mask-image: url("./assets/icons/lucide/rows-3.svg");
  mask-image: url("./assets/icons/lucide/rows-3.svg");
}

.sweep-heading-icon--parameters::before {
  -webkit-mask-image: url("./assets/icons/lucide/settings-2.svg");
  mask-image: url("./assets/icons/lucide/settings-2.svg");
}

.sweep-heading-icon--consistency::before {
  -webkit-mask-image: url("./assets/icons/lucide/activity.svg");
  mask-image: url("./assets/icons/lucide/activity.svg");
}

.review-visual-title-icon--timeline::before {
  -webkit-mask-image: url("./assets/icons/lucide/route.svg");
  mask-image: url("./assets/icons/lucide/route.svg");
}

.sweep-panel-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(13, 91, 215, 0.14);
  border-radius: 999px;
  background: rgba(13, 91, 215, 0.07);
  color: #0f4fb7;
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
}

.sweep-snapshot-panel .review-config-item-label {
  color: #637895;
  font-size: 0.8rem;
  font-weight: 600;
}

.sweep-snapshot-panel .review-config-item-value {
  color: #16284a;
  font-size: 0.9rem;
  line-height: 1.25;
}

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

.sweep-metric-item {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(13, 91, 215, 0.08);
  border-radius: 12px;
  background: #fbfcfe;
}

.sweep-metric-item span {
  color: #5f728a;
  font-size: 0.78rem;
  font-weight: 600;
}

.sweep-metric-item strong {
  color: #16284a;
  font-size: 1rem;
  line-height: 1.1;
}

.sweep-snapshot-groups {
  display: grid;
  gap: 12px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-color: rgba(13, 91, 215, 0.24) transparent;
  scrollbar-width: thin;
}

.sweep-snapshot-groups::-webkit-scrollbar {
  width: 6px;
}

.sweep-snapshot-groups::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(13, 91, 215, 0.22);
}

.sweep-snapshot-note {
  margin: 5px 0 0;
  color: #6f8095;
  font-size: 0.78rem;
  line-height: 1.4;
}

.result-view--walkforward .walkforward-snapshot-panel .sweep-snapshot-note {
  white-space: nowrap;
}

.result-view--walkforward .walkforward-snapshot-panel .sweep-snapshot-legacy-note {
  margin: 4px 0 0;
  color: #8c6d47;
  font-size: 0.73rem;
  line-height: 1.35;
}

.sweep-snapshot-group {
  padding: 11px 12px;
  border-color: rgba(13, 91, 215, 0.08);
}

.sweep-snapshot-group--settings {
  background: rgba(13, 91, 215, 0.045);
}

.sweep-snapshot-group--parameters {
  background: rgba(104, 84, 191, 0.055);
}

.sweep-snapshot-group--costs {
  border-color: rgba(211, 146, 34, 0.1);
  background: rgba(211, 146, 34, 0.04);
}

.sweep-snapshot-group--size {
  background: rgba(25, 132, 128, 0.06);
}

.sweep-snapshot-group-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.sweep-snapshot-group-head .review-config-group-label {
  margin-bottom: 0;
}

.sweep-snapshot-group-icon {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.sweep-snapshot-group-icon::before {
  content: "";
  width: 15px;
  height: 15px;
  background-color: currentColor;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 15px 15px;
  mask-size: 15px 15px;
}

.sweep-snapshot-group-icon--settings::before,
.result-view--single .sweep-snapshot-group-icon--parameters::before,
.sweep-snapshot-group-icon--costs::before {
  -webkit-mask-image: url("assets/icons/lucide/settings-2.svg");
  mask-image: url("assets/icons/lucide/settings-2.svg");
}

.result-view--parameter-sweep .sweep-snapshot-group-icon--parameters::before,
.sweep-snapshot-group-icon--size::before {
  -webkit-mask-image: url("assets/icons/lucide/boxes.svg");
  mask-image: url("assets/icons/lucide/boxes.svg");
}

.sweep-snapshot-group-icon--settings {
  background: rgba(13, 91, 215, 0.1);
  color: #0d5bd7;
}

.sweep-snapshot-group-icon--parameters {
  background: rgba(104, 84, 191, 0.1);
  color: #6854bf;
}

.sweep-snapshot-group-icon--costs {
  background: rgba(211, 146, 34, 0.13);
  color: #b7791f;
}

.sweep-snapshot-group-icon--size {
  background: rgba(25, 132, 128, 0.12);
  color: #198480;
}

.sweep-snapshot-parameter-groups {
  display: grid;
  gap: 9px;
}

.sweep-snapshot-parameter-group {
  display: grid;
  gap: 1px;
}

.sweep-snapshot-parameter-divider {
  height: 1px;
  background: rgba(13, 91, 215, 0.1);
}

.sweep-snapshot-parameter-row {
  min-height: 24px;
  padding: 0;
  border-bottom: 0;
}

.sweep-snapshot-parameter-row--step {
  min-height: 22px;
}

.sweep-snapshot-parameter-row--step .review-config-item-label,
.sweep-snapshot-parameter-row--step .review-config-item-value {
  color: #71849a;
  font-size: 0.76rem;
  font-weight: 600;
}

.sweep-visual-header {
  align-items: flex-start;
}

.result-view--parameter-sweep .sweep-heatmap-panel .visual-header {
  flex-direction: row;
  align-items: flex-start;
}

.result-view--parameter-sweep .sweep-heatmap-panel .visual-header > div {
  flex: 1 1 auto;
  min-width: 0;
}

.result-view--parameter-sweep .sweep-heatmap-panel .sweep-metric-selector {
  flex: 0 0 auto;
}

.result-view--parameter-sweep .sweep-heatmap-panel .review-visual-title {
  font-weight: 600;
  margin-bottom: 0;
}

.result-view--parameter-sweep .sweep-heatmap-panel .visual-copy {
  margin-top: 6px;
  font-size: 0.86rem;
  line-height: 1.42;
}

.sweep-metric-selector {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0;
  white-space: nowrap;
}

.sweep-metric-selector span {
  color: #6b7d94;
  font-size: 0.78rem;
  font-weight: 600;
}

.sweep-metric-selector select {
  min-height: 32px;
  padding: 0 30px 0 10px;
  border: 1px solid rgba(13, 91, 215, 0.16);
  border-radius: 8px;
  background: #ffffff;
  color: #0d5bd7;
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(18, 32, 61, 0.05);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.sweep-metric-selector select:hover {
  border-color: rgba(13, 91, 215, 0.34);
}

.sweep-metric-selector:focus-within select,
.sweep-metric-selector select:focus,
.sweep-metric-selector select:focus-visible {
  outline: 0;
  border-color: #0d5bd7;
  box-shadow: 0 0 0 3px rgba(13, 91, 215, 0.16);
}

.sweep-ranking-selector {
  align-self: flex-start;
}

.sweep-heatmap-wrap {
  display: grid;
  grid-template-columns: auto minmax(420px, 1fr);
  gap: 10px;
  align-items: center;
  margin-top: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.sweep-heatmap-wrap:has(.sweep-heatmap--dense) {
  max-height: 560px;
  overflow: auto;
  overscroll-behavior: contain;
}

.sweep-heatmap--dense .sweep-heatmap-cell {
  min-height: 36px;
}

.sweep-heatmap--dense .sweep-axis-label {
  min-height: 24px;
  font-size: 0.7rem;
}

.sweep-heatmap {
  display: grid;
  grid-template-columns: 44px repeat(5, minmax(58px, 1fr));
  gap: 1px;
  min-width: 420px;
  padding: 1px;
  border: 1px solid rgba(18, 32, 61, 0.08);
  border-radius: 8px;
  background: #f8fafc;
  overflow: hidden;
}

.sweep-heatmap-y-label,
.sweep-heatmap-x-label {
  color: #637895;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sweep-heatmap-y-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  justify-self: center;
}

.sweep-heatmap-x-label {
  grid-column: 2;
  justify-self: center;
}

.sweep-heatmap-corner,
.sweep-axis-label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  background: #ffffff;
  color: #637895;
  font-size: 0.78rem;
  font-weight: 700;
}

.sweep-heatmap-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  border: 0;
  border-radius: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  position: relative;
}

.result-view--parameter-sweep .sweep-heatmap-cell.is-top-ranked {
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.94),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.sweep-heatmap-cell.is-top-ranked::after {
  content: "\2605";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 50%;
  background: rgba(22, 40, 74, 0.45);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(22, 40, 74, 0.48);
  box-shadow: 0 3px 8px rgba(22, 40, 74, 0.18);
}

.sweep-heatmap-legend {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
  color: #637895;
  font-size: 0.78rem;
  font-weight: 600;
}

.sweep-legend-track {
  width: min(180px, 36vw);
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d96b5f 0%, #e89445 25%, #e3c84f 50%, #76b86f 75%, #168b7a 100%);
  box-shadow: inset 0 0 0 1px rgba(22, 40, 74, 0.08);
}

.sweep-top-marker-legend {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  color: #425a78;
}

.sweep-table-heading {
  align-items: flex-start;
  margin-bottom: 14px;
}

.sweep-table-heading .section-copy {
  margin: 8px 0 0;
}

.sweep-ranking-table {
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid rgba(13, 91, 215, 0.1);
  border-radius: var(--workspace-card-radius-compact);
  background: #ffffff;
  -webkit-overflow-scrolling: touch;
}

.sweep-ranking-row {
  display: grid;
  grid-template-columns:
    minmax(44px, 0.5fr)
    minmax(86px, 0.85fr)
    minmax(76px, 0.78fr)
    minmax(92px, 0.95fr)
    minmax(82px, 0.85fr)
    minmax(76px, 0.82fr)
    minmax(64px, 0.65fr)
    minmax(92px, 0.88fr)
    minmax(64px, 0.65fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  min-width: 840px;
  min-height: 46px;
  padding: 0 14px;
  border: 0;
  border-top: 1px solid rgba(13, 91, 215, 0.08);
  background: #ffffff;
  color: #16284a;
  font: inherit;
  font-size: 0.86rem;
  text-align: left;
  transition: background-color 140ms ease;
}

.sweep-ranking-row:first-child {
  border-top: 0;
}

.sweep-ranking-row--head {
  min-height: 43px;
  background: #f4f7fb;
  color: #425a7a;
  font-size: 0.76rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sweep-ranking-row:not(.sweep-ranking-row--head):not(.is-selected):hover,
.sweep-ranking-row:not(.sweep-ranking-row--head):not(.is-selected):focus-visible {
  background: #f8fbff;
  cursor: pointer;
  outline: 0;
}

.sweep-ranking-row:not(.sweep-ranking-row--head):focus-visible {
  box-shadow:
    inset 0 0 0 2px rgba(13, 91, 215, 0.18),
    inset 3px 0 0 #0d5bd7;
}

.sweep-ranking-row.is-selected {
  background: #edf5ff;
  box-shadow: inset 3px 0 0 #0d5bd7;
}

.sweep-ranking-row.is-selected span:first-child {
  color: #0d5bd7;
  font-weight: 800;
}

.sweep-ranking-row span:first-child {
  text-align: center;
}

.sweep-ranking-row span:nth-child(n + 2) {
  text-align: center;
}

.sweep-ranking-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  color: #637895;
  font-size: 0.82rem;
  font-weight: 600;
}

.result-view--walkforward {
  --walkforward-heading-description-gap: 6px;
}

.walkforward-timeline-panel {
  display: flex;
  flex-direction: column;
}

.walkforward-timeline-panel .review-visual-title,
.walkforward-net-pnl-panel .sweep-heading-title {
  display: flex;
}

.walkforward-timeline-panel .visual-copy {
  margin: calc(var(--walkforward-heading-description-gap) - 15px) 0 0;
}

.walkforward-analysis-grid {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1.46fr) minmax(300px, 0.54fr);
  gap: 16px;
}

.walkforward-performance-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.46fr) minmax(300px, 0.54fr);
  gap: 16px;
  align-items: start;
  margin-top: 0;
}

.walkforward-analysis-left,
.walkforward-analysis-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.result-view--walkforward .walkforward-oos-panel {
  align-self: start;
  height: auto;
}

.walkforward-oos-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  justify-content: stretch;
  width: 100%;
}

.walkforward-oos-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  width: 100%;
  justify-self: stretch;
}

.walkforward-oos-header-main {
  flex: 1 1 auto;
  min-width: 0;
}

.walkforward-oos-header-row .review-visual-title {
  margin: 0;
}

.walkforward-oos-header-row .review-chart-tabs {
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-left: auto;
  flex: 0 0 auto;
}

.walkforward-oos-description {
  margin: 0;
  width: 100%;
}

.result-view--walkforward .walkforward-oos-panel .review-chart-stage {
  margin-top: 6px;
  flex: 0 0 auto;
}

.result-view--walkforward .walkforward-oos-panel .review-chart-surface {
  min-height: 168px;
}

.result-view--walkforward .walkforward-oos-panel .walkforward-chart-svg {
  height: 304px;
}

.result-view--walkforward .sweep-parameter-insight .performance-snapshot-copy {
  white-space: nowrap;
}

.walkforward-timeline-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 2px 0 12px;
  color: #637895;
  font-size: 0.82rem;
  font-weight: 600;
}

.walkforward-timeline-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.walkforward-legend-key {
  width: 24px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(13, 91, 215, 0.1);
}

.walkforward-legend-key--is {
  background: rgba(13, 91, 215, 0.14);
}

.walkforward-legend-key--oos {
  background: rgba(22, 163, 74, 0.16);
}

.walkforward-timeline-header {
  align-items: flex-start;
  position: relative;
  padding-right: 176px;
}

.walkforward-timeline-mode-toggle {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid rgba(13, 91, 215, 0.12);
  border-radius: 999px;
  background: #f7fbff;
}

.walkforward-timeline-mode-button {
  min-height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #526781;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
}

.walkforward-timeline-mode-button.is-active {
  background: #ffffff;
  color: #0d5bd7;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.1);
}

@media (max-width: 1050px) {
  .walkforward-timeline-header {
    padding-right: 0;
  }

  .walkforward-timeline-mode-toggle {
    position: static;
    margin-top: 8px;
  }
}

.walkforward-calendar-timeline {
  margin-top: 2px;
  min-width: 0;
  min-height: 314px;
}

.walkforward-calendar-viewport {
  display: none;
}

.walkforward-calendar-viewport.is-active {
  display: block;
}

.walkforward-calendar-plot {
  position: relative;
  display: grid;
  grid-template-rows: 274px 40px;
  height: 314px;
}

.walkforward-calendar-scroll {
  position: relative;
  height: 274px;
  overflow-x: hidden;
  overflow-y: hidden;
  scrollbar-width: thin;
}

.walkforward-calendar-scroll--detailed {
  overflow-y: auto;
}

.walkforward-calendar-axis-wrap {
  position: relative;
  height: 40px;
  overflow: hidden;
}

.walkforward-calendar-svg {
  display: block;
  width: 100%;
  height: auto;
}

.walkforward-calendar-svg--rows {
  min-height: 274px;
  height: 100%;
}

.walkforward-calendar-axis-svg {
  display: block;
  width: 100%;
  height: 40px;
}

.walkforward-calendar-row-label-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.walkforward-calendar-axis-label-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.walkforward-calendar-axis-line,
.walkforward-calendar-axis-tick line {
  stroke: rgba(13, 91, 215, 0.12);
  stroke-width: 1;
}

.walkforward-calendar-guide {
  stroke: rgba(13, 91, 215, 0.09);
  stroke-width: 1;
}

.walkforward-calendar-axis-tick text {
  fill: #6a7d95;
  font-size: 18px;
  font-weight: 700;
}

.walkforward-calendar-shared-label {
  position: absolute;
  z-index: 2;
  display: inline-block;
  left: 1.1%;
  color: #8191a6;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transform: translate(-50%, -50%) rotate(-90deg);
  transform-origin: center;
  pointer-events: none;
  white-space: nowrap;
}

.walkforward-calendar-segment-number {
  position: absolute;
  z-index: 2;
  display: inline-block;
  color: #526781;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  white-space: nowrap;
}

.walkforward-calendar-segment-number--overview {
  font-size: 0.68rem;
}

.walkforward-calendar-axis-label {
  position: absolute;
  display: inline-block;
  color: #6a7d95;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.walkforward-calendar-axis-label--wrapped {
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.04;
  white-space: normal;
}

.walkforward-calendar-axis-label--wrapped.walkforward-calendar-axis-label--start {
  align-items: flex-start;
  text-align: left;
}

.walkforward-calendar-axis-label--wrapped.walkforward-calendar-axis-label--middle {
  align-items: center;
  text-align: center;
}

.walkforward-calendar-axis-label--wrapped.walkforward-calendar-axis-label--end {
  align-items: flex-end;
  text-align: right;
}

.walkforward-calendar-axis-label--start {
  transform: translateX(0);
}

.walkforward-calendar-axis-label--middle {
  transform: translateX(-50%);
}

.walkforward-calendar-axis-label--end {
  transform: translateX(-100%);
}

.walkforward-calendar-bar {
  cursor: help;
  outline: none;
}

.walkforward-calendar-bar:focus-visible {
  stroke: #0d5bd7;
  stroke-width: 3;
}

.walkforward-calendar-bar--is {
  fill: rgba(13, 91, 215, 0.2);
  stroke: rgba(13, 91, 215, 0.2);
}

.walkforward-calendar-bar--oos {
  fill: rgba(22, 163, 74, 0.22);
  stroke: rgba(22, 163, 74, 0.24);
}

.walkforward-calendar-boundary {
  stroke: rgba(22, 40, 74, 0.2);
  stroke-width: 1.4;
  stroke-dasharray: 3 3;
}

.walkforward-calendar-missing {
  display: grid;
  gap: 6px;
  min-height: 314px;
  padding: 14px;
  border: 1px solid rgba(13, 91, 215, 0.1);
  border-radius: 12px;
  background: #f8fbff;
  align-content: center;
}

.walkforward-calendar-missing strong {
  color: #16284a;
  font-size: 0.92rem;
}

.walkforward-calendar-missing p {
  margin: 0;
  color: #637895;
  font-size: 0.84rem;
  line-height: 1.45;
}

.walkforward-net-pnl-panel {
  display: grid;
  gap: 12px;
}

.walkforward-net-pnl-panel .section-copy {
  margin: calc(var(--walkforward-heading-description-gap) - 11px) 0 0;
}

.walkforward-net-pnl-panel .sweep-heading-title,
.walkforward-consistency-panel .sweep-heading-title {
  align-items: center;
}

.walkforward-net-pnl-panel .sweep-heading-title h3,
.walkforward-consistency-panel .sweep-heading-title h3 {
  margin: 0;
  line-height: 1;
}

.walkforward-net-pnl-mode-toggle {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid rgba(13, 91, 215, 0.12);
  border-radius: 999px;
  background: #f7fbff;
}

.walkforward-net-pnl-mode-button {
  min-height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #526781;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
}

.walkforward-net-pnl-mode-button.is-active {
  background: #ffffff;
  color: #0d5bd7;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.1);
}

.walkforward-net-pnl-view {
  display: none;
  gap: 7px;
}

.walkforward-net-pnl-view.is-active {
  display: grid;
}

.walkforward-net-pnl-chart--scrollable .walkforward-net-pnl-view--detailed.is-active {
  max-height: 420px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
}

.walkforward-net-pnl-chart--overview .walkforward-net-pnl-view--overview.is-active {
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
}

.walkforward-net-pnl-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 58px;
  gap: 10px;
  align-items: center;
  min-height: 28px;
  color: #40546f;
  font-size: 0.82rem;
  font-weight: 700;
}

.walkforward-net-pnl-row--compact {
  min-height: 18px;
  font-size: 0.74rem;
}

.walkforward-net-pnl-segment {
  text-align: right;
}

.walkforward-net-pnl-track {
  position: relative;
  height: 14px;
  border-radius: 0;
  background: #f6f9fd;
  outline: none;
}

.walkforward-net-pnl-row--compact .walkforward-net-pnl-track {
  height: 8px;
}

.walkforward-net-pnl-track:focus-visible {
  box-shadow: 0 0 0 3px rgba(13, 91, 215, 0.16);
}

.walkforward-net-pnl-zero {
  position: absolute;
  top: -4px;
  bottom: -4px;
  left: 50%;
  width: 1px;
  background: rgba(22, 40, 74, 0.28);
}

.walkforward-net-pnl-bar {
  position: absolute;
  top: 0;
  bottom: 0;
}

.walkforward-net-pnl-bar--positive {
  background: rgba(22, 163, 74, 0.42);
}

.walkforward-net-pnl-bar--negative {
  background: rgba(181, 66, 66, 0.4);
}

.walkforward-net-pnl-bar--neutral {
  min-width: 2px;
  background: rgba(99, 120, 149, 0.36);
}

.walkforward-net-pnl-value {
  color: #16284a;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.walkforward-timeline {
  display: grid;
  gap: 12px;
  margin-top: 4px;
}

.walkforward-timeline-row {
  display: grid;
  grid-template-columns: minmax(88px, 0.24fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.walkforward-segment-label {
  color: #40546f;
  font-size: 0.84rem;
  font-weight: 700;
}

.walkforward-window-track {
  display: grid;
  grid-template-columns: 2fr 1fr;
  min-height: 42px;
  overflow: hidden;
  border: 1px solid rgba(13, 91, 215, 0.08);
  border-radius: 12px;
  background: #f8fbff;
}

.walkforward-window {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  color: #31445b;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}

.walkforward-window--is {
  background: rgba(13, 91, 215, 0.12);
  border-right: 1px solid rgba(13, 91, 215, 0.1);
}

.walkforward-window--oos {
  background: rgba(22, 163, 74, 0.14);
  color: #166534;
}

.walkforward-segment-table {
  --walkforward-segment-columns:
    minmax(82px, 0.62fr)
    minmax(116px, 0.9fr)
    minmax(116px, 0.9fr)
    minmax(116px, 0.9fr)
    minmax(116px, 0.9fr)
    minmax(86px, 0.66fr)
    minmax(86px, 0.66fr)
    minmax(86px, 0.64fr)
    minmax(106px, 0.78fr);
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid rgba(13, 91, 215, 0.1);
  border-radius: var(--workspace-card-radius-compact);
  background: #ffffff;
  -webkit-overflow-scrolling: touch;
}

.walkforward-segment-header {
  display: grid;
  grid-template-columns: var(--walkforward-segment-columns);
  grid-template-rows: auto auto;
  gap: 4px 10px;
  align-items: center;
  min-width: 1020px;
  padding: 13px 14px 11px;
  border-bottom: 1px solid rgba(13, 91, 215, 0.08);
  background: #f4f7fb;
  color: #425a7a;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.walkforward-segment-header-cell {
  display: flex;
  align-items: center;
  min-height: 20px;
  line-height: 1.2;
  white-space: nowrap;
}

.walkforward-segment-header-cell--spanned {
  justify-content: center;
  text-align: center;
}

.walkforward-segment-header-cell--group {
  justify-content: center;
  text-align: center;
}

.walkforward-segment-header-cell--child {
  justify-content: center;
  text-align: center;
  letter-spacing: 0;
  border-radius: 8px;
  background: #f4f8ff;
}

.walkforward-segment-header > span:nth-child(8) {
  justify-content: flex-end;
  text-align: right;
}

.walkforward-segment-row {
  display: grid;
  gap: 10px;
  align-items: center;
  min-height: 52px;
  padding: 13px 14px;
  border-top: 1px solid rgba(13, 91, 215, 0.08);
  color: #16284a;
  font-size: 0.84rem;
}

.walkforward-segment-row {
  grid-template-columns: var(--walkforward-segment-columns);
  min-width: 1020px;
}

.walkforward-segment-row > span:first-child {
  text-align: center;
  justify-self: center;
}

.walkforward-segment-index {
  display: grid;
  justify-items: center;
  gap: 2px;
}

.walkforward-segment-failed-label {
  color: #b42318;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.1;
}

.walkforward-segment-row[data-walkforward-segment-state="failed"] {
  background: #fffafa;
}

.walkforward-segment-date {
  justify-self: center;
  text-align: center;
}

.walkforward-segment-parameters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.walkforward-parameter-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(13, 91, 215, 0.12);
  border-radius: 999px;
  background: #f7fbff;
  color: #35516f;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

.walkforward-parameter-chip-label {
  color: #0d5bd7;
}

.walkforward-parameter-chip-value {
  color: #35516f;
  font-weight: 600;
}

.walkforward-segment-row:first-child {
  border-top: 0;
}

.walkforward-segment-row--head {
  min-height: 43px;
  background: #f4f7fb;
  color: #425a7a;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.walkforward-segment-row--head span {
  white-space: nowrap;
}

.walkforward-segment-row span:nth-child(n + 6) {
  text-align: center;
  justify-self: center;
}

.walkforward-segment-row span:last-child {
  justify-self: stretch;
  text-align: right;
}

.walkforward-parameter-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 8px;
  border-radius: 8px;
  background: #f4f8ff;
  color: #40546f;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.42;
}

.walkforward-segment-date {
  white-space: nowrap;
}

.walkforward-outcome {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
}

.walkforward-outcome--profit {
  background: #effcf5;
  color: #047643;
}

.walkforward-outcome--loss {
  background: #fff7f6;
  color: #b42318;
}

.review-trade-pnl--neutral {
  color: #526781;
}

.walkforward-trade-table .review-trade-row {
  min-width: 860px;
  grid-template-columns: 1.08fr 1.08fr 0.66fr 0.78fr 0.78fr 0.72fr 1.12fr;
}

.walkforward-chart-surface::after {
  content: "";
  position: absolute;
  z-index: 0;
}

.walkforward-chart-surface--equity::after {
  inset: auto 8% 17% 8%;
  height: 42%;
  border-top: 4px solid rgba(22, 163, 74, 0.5);
  border-radius: 50%;
  transform: skewX(-14deg) scaleY(0.78);
}

.walkforward-chart-surface--drawdown::after {
  inset: auto 9% 16% 9%;
  height: 30%;
  border-top: 4px solid rgba(181, 66, 66, 0.44);
  border-radius: 50%;
  transform: skewX(18deg) scaleY(0.7);
}

.walkforward-consistency-panel {
  min-width: 0;
}

.walkforward-setup-mode-group {
  display: grid;
  gap: 0;
  margin: -1px 0 2px;
}

.walkforward-setup-mode-item {
  border-bottom: 0;
  min-height: 36px;
}

.walkforward-setup-topn-item {
  min-height: 36px;
}

.walkforward-consistency-panel .sweep-heading-title {
  margin-bottom: 12px;
}

.walkforward-consistency-list {
  display: grid;
  gap: 10px;
}

.walkforward-consistency-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(13, 91, 215, 0.08);
  border-radius: 10px;
  background: #fbfcfe;
}

.walkforward-consistency-list span {
  color: #637895;
  font-size: 0.82rem;
  font-weight: 600;
}

.walkforward-consistency-list strong {
  color: #16284a;
  font-size: 0.9rem;
  text-align: right;
}

.walkforward-state {
  display: grid;
  gap: 8px;
  align-content: center;
  justify-items: start;
  min-height: 180px;
  padding: 22px 20px;
}

.walkforward-state strong {
  color: #16284a;
  font-size: 1rem;
}

.walkforward-state p {
  margin: 0;
  color: #637895;
  font-size: 0.92rem;
  line-height: 1.55;
  max-width: 48rem;
}

.walkforward-state--error {
  border-color: rgba(181, 66, 66, 0.16);
  background: #fff8f8;
}

.walkforward-chart-empty {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  align-content: center;
  justify-items: center;
  min-height: 100%;
  padding: 30px;
  text-align: center;
  color: #637895;
}

.walkforward-chart-empty strong {
  color: #16284a;
  font-size: 1rem;
}

.walkforward-chart-empty p {
  margin: 0;
  max-width: 32rem;
}

.walkforward-chart-svg {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
}

.walkforward-trade-table .walkforward-trade-row--hidden {
  display: none;
}

.walkforward-trade-table.is-expanded .walkforward-trade-row--hidden {
  display: grid;
}

.walkforward-empty-trades {
  margin-top: 12px;
}

.walkforward-trade-panel .walkforward-trade-table {
  margin-top: 4px;
}

.walkforward-trade-actions {
  margin-top: 14px;
}

.result-detail-export-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  border-radius: 8px;
}

.result-view--walkforward .result-detail-export-button:disabled {
  border-color: rgba(148, 163, 184, 0.24);
  background: #f8fafc;
  color: #8a94a6;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 1;
}

.result-view--parameter-sweep .section-card.performance-snapshot.sweep-parameter-insight {
  margin-top: 0;
  padding: 13px 16px;
  border-color: rgba(13, 91, 215, 0.1);
  background: rgba(239, 246, 255, 0.78);
  box-shadow: none;
}

.sweep-parameter-insight .performance-snapshot-icon::before {
  width: 16px;
  height: 16px;
  mask-size: 16px 16px;
  -webkit-mask-size: 16px 16px;
}

.result-view--parameter-sweep .review-research-note {
  padding: 13px 16px;
  box-shadow: none;
}

@media (max-width: 1250px) and (min-width: 821px) {
  body.single-result-review-inter-page .workspace-content {
    width: 100%;
    max-width: 100%;
  }

  .result-view--single .summary-strip--single {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .result-view--parameter-sweep .summary-strip--single.sweep-summary-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .result-view--walkforward .summary-strip--single.walkforward-summary-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .walkforward-analysis-grid {
    grid-template-columns: minmax(0, 1.48fr) minmax(300px, 0.52fr);
  }

  .result-view--single .section-card.performance-snapshot {
    align-items: center;
  }

  .result-view--single .visual-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .result-view--single .review-chart-tabs {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 3px;
    scrollbar-width: thin;
  }

  .result-view--backtest .visual-header > div {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .result-view--backtest .visual-copy {
    margin-top: 0;
    font-size: 0.9rem;
    line-height: 1.35;
    white-space: nowrap;
  }

  .result-view--single .review-chart-surface {
    min-height: 300px;
  }

  .result-view--walkforward .sweep-parameter-insight .performance-snapshot-copy {
    white-space: normal;
  }

  .result-view--walkforward .walkforward-oos-panel .review-chart-surface {
    min-height: 140px;
  }

  .walkforward-oos-header-row .review-chart-tabs {
    width: auto;
    justify-content: flex-end;
    overflow: visible;
    padding-bottom: 0;
  }
}

@media (max-width: 1050px) and (min-width: 821px) {
  .result-view--single .header-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .result-view--single .review-heading-actions {
    justify-content: flex-start;
    transform: none;
  }

  .result-view--single .header-context--single {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .result-view--single .header-context-item::after {
    display: none;
  }

  .result-view--single .result-body--single {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .result-view--single .visual-card {
    height: auto;
  }

  .result-view--single .review-config-card {
    align-self: start;
    min-height: auto;
  }

  .sweep-analysis-grid {
    grid-template-columns: 1fr;
  }

  .walkforward-oos-header-row {
    flex-direction: column;
    align-items: stretch;
  }

  .walkforward-oos-header-row .review-chart-tabs {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  body.single-result-review-inter-page .result-view--single .header-context--single {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 14px;
  }

  body.single-result-review-inter-page .result-view--single .header-context-item:nth-child(1),
  body.single-result-review-inter-page .result-view--single .header-context-item:nth-child(2),
  body.single-result-review-inter-page .result-view--single .header-context-item:nth-child(3),
  body.single-result-review-inter-page .result-view--single .header-context-item:nth-child(4),
  body.single-result-review-inter-page .result-view--single .header-context-item:nth-child(5) {
    order: initial;
    grid-column: auto;
  }

  body.single-result-review-inter-page .result-view--single .summary-strip--single {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  body.single-result-review-inter-page .result-view--single .summary-card--review {
    min-height: 124px;
  }

  body.single-result-review-inter-page .result-view--parameter-sweep .sweep-summary-strip,
  body.single-result-review-inter-page .result-view--walkforward .walkforward-summary-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.single-result-review-inter-page .walkforward-oos-header-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    justify-content: stretch;
  }

  body.single-result-review-inter-page .walkforward-oos-header-main {
    min-width: 0;
  }

  body.single-result-review-inter-page .walkforward-oos-header-row .review-chart-tabs {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    overflow: visible;
    padding-bottom: 0;
  }

  body.single-result-review-inter-page .result-view--single .review-heading-actions {
    align-self: stretch;
    width: 100%;
    justify-content: stretch;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    transform: none;
  }

  body.single-result-review-inter-page .result-view--single .review-heading-actions .review-secondary-action,
  body.single-result-review-inter-page .result-view--single .review-heading-actions .review-download-button {
    width: 100%;
    min-width: 0;
    justify-content: center;
    white-space: nowrap;
  }
}

@media (max-width: 820px) {
  .result-view--walkforward .sweep-parameter-insight .performance-snapshot-copy {
    white-space: normal;
  }
}

.section-compact {
  display: grid;
  gap: 12px;
}

.section-compact-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(215, 205, 182, 0.7);
}

.section-compact-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.section-compact-label {
  color: var(--muted);
}

.section-compact-value {
  text-align: right;
}

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

.details-grid {
  display: grid;
  gap: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(140, 79, 43, 0.08);
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.pill[data-tone="success"] {
  background: rgba(31, 106, 66, 0.1);
  color: var(--success);
}

.pill[data-tone="warning"] {
  background: rgba(146, 97, 30, 0.1);
  color: var(--warning);
}

.pill[data-tone="neutral"] {
  background: rgba(22, 40, 74, 0.06);
  color: var(--text);
}

body.dashboard-inter-page .dashboard-plan-tier {
  padding: 8px 11px;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background:
    linear-gradient(135deg, #ffffff 0%, #f8fafc 10%, #eff6ff 45%, #dbeafe 100%);
  color: #0f2f68;
  box-shadow:
    0 8px 18px rgba(18, 32, 61, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(22, 40, 74, 0.06);
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.status-badge[data-tone="success"] {
  background: rgba(31, 106, 66, 0.1);
  color: var(--success);
}

.status-badge[data-tone="warning"] {
  background: rgba(146, 97, 30, 0.1);
  color: var(--warning);
}

.status-badge[data-tone="error"] {
  background: rgba(156, 47, 47, 0.1);
  color: var(--error);
}

.status-badge[data-tone="neutral"] {
  background: rgba(22, 40, 74, 0.06);
  color: var(--text);
}

.status-badge.status-chip--completed {
  background: #f3fcf7;
  color: #027a48;
}

.status-badge.status-chip--no-trades {
  background: rgba(22, 40, 74, 0.045);
  color: #475467;
}

.status-badge.status-chip--failed {
  background: #fff7f6;
  color: #b42318;
}

.status-badge.status-chip--cancelled {
  background: #fffaf5;
  color: #b45309;
}

.page-shell--landing {
  position: relative;
  padding-top: 28px;
  padding-bottom: 34px;
  overflow: hidden;
  background: transparent;
  /* Landing major section spacing system */
  --landing-workflow-gap-after: 64px;
  --landing-feature-gap-before: 82px;
  --landing-feature-gap-after: 24px;
  --landing-feature-gap-before-loose: 96px;
  --landing-feature-gap-after-loose: 56px;
  --landing-walkforward-gap-before: 96px;
  --landing-walkforward-gap-after: 32px;
  --landing-get-started-gap-before: 96px;
  --landing-get-started-gap-after: 40px;
  --landing-final-cta-gap-before: 40px;
}

.page-shell--landing::before,
.page-shell--landing::after {
  content: none;
}

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

.page-shell--landing .landing-section-kicker,
.page-shell--landing .landing-aura-final-eyebrow,
.page-shell--landing .landing-aura-mini-chip {
    font-family: var(--font-mono);
}

.landing-aura-hero,
.landing-aura-feature,
.landing-aura-get-started,
.landing-final-cta {
  width: min(1280px, calc(100% - 24px));
  margin: 0 auto;
}

.landing-aura-hero {
  display: grid;
  grid-template-columns: minmax(520px, 1.06fr) minmax(360px, 0.88fr);
  gap: 44px;
  align-items: center;
  padding: 12px 0 36px;
}

.landing-aura-hero-copy {
  max-width: 700px;
  position: relative;
  top: -30px;
}

.landing-aura-mini-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.76);
  box-shadow:
    0 14px 30px -24px rgba(15, 23, 42, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  color: #59708f;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transform: translateY(-8px);
}

.landing-aura-mini-chip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  min-width: 26px;
  max-width: 26px;
  min-height: 26px;
  max-height: 26px;
  flex: 0 0 26px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
  border: 1px solid rgba(13, 91, 215, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 1);
}

.landing-aura-mini-chip-icon::before {
  content: "";
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  background: #2d72df;
  mask-image: url("./assets/icons/lucide/sparkles.svg");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-image: url("./assets/icons/lucide/sparkles.svg");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
}

.landing-aura-mini-chip > span {
  display: inline-flex;
  align-items: center;
}

.landing-aura-hero-copy h1 {
  margin: 18px 0 0;
  line-height: 0.95;
  letter-spacing: -0.06em;
  font-weight: 400;
}

.landing-aura-headline-line {
  display: block;
  white-space: nowrap;
  width: fit-content;
  max-width: 100%;
  font-size: clamp(3.9rem, 6.15vw, 5.2rem);
}

.landing-aura-headline-accent {
  font-size: clamp(3rem, 4.72vw, 3.96rem);
  line-height: 1;
  color: #ffffff;
}

.landing-aura-headline-accent {
  position: relative;
  display: inline-block;
  margin-top: 16px;
  width: fit-content;
  padding: 10px 16px 13px;
}

.landing-aura-headline-accent::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 24px;
  background:
    linear-gradient(180deg, #4f96ff 0%, #2d72df 58%, #225fcc 100%);
  box-shadow:
    0 22px 40px -24px rgba(45, 114, 223, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 -1px 0 rgba(20, 72, 168, 0.34);
}

.landing-aura-headline-accent {
  position: relative;
  z-index: 0;
}

.page-shell--landing .hero-copy {
  max-width: 67ch;
  margin: 20px 0 0;
  color: #5d6d83;
  font-size: 1.06rem;
  line-height: 1.8;
}

.page-shell--landing .hero-copy .landing-copy-line {
  display: block;
}

.landing-aura-hero-chips {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 18px;
  color: #5f7188;
  font-size: 0.8rem;
}

.landing-aura-hero-chips span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.landing-aura-hero-chips svg {
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
  min-width: 19px;
  max-width: 19px;
  min-height: 19px;
  max-height: 19px;
  color: #2b6fd7;
  filter: drop-shadow(0 5px 10px rgba(43, 111, 215, 0.14));
}

.landing-aura-hero-chips span > span {
  display: inline;
}

/* Hero button, chip, and floating card polish */
.landing-aura-hero .landing-public-hero-actions {
  justify-content: flex-start;
  margin-top: 22px;
  margin-left: 0;
  margin-right: auto;
}

.landing-aura-hero .landing-public-hero-actions .load-button,
.landing-aura-hero .landing-public-hero-actions .button-secondary {
  border-radius: 999px;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.landing-aura-hero .landing-public-hero-actions .load-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.landing-aura-hero .landing-public-hero-actions .load-button:hover,
.landing-aura-hero .landing-public-hero-actions .load-button:focus-visible,
.landing-aura-hero .landing-public-hero-actions .button-secondary:hover,
.landing-aura-hero .landing-public-hero-actions .button-secondary:focus-visible {
  transform: translateY(-3px);
}

.landing-aura-hero .landing-public-hero-actions .load-button:hover,
.landing-aura-hero .landing-public-hero-actions .load-button:focus-visible {
  box-shadow:
    0 18px 34px -20px rgba(15, 23, 42, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.landing-aura-hero .landing-public-hero-actions .button-secondary:hover,
.landing-aura-hero .landing-public-hero-actions .button-secondary:focus-visible {
  box-shadow: 0 16px 28px -22px rgba(15, 23, 42, 0.2);
}

.landing-aura-hero .landing-public-hero-actions .load-button svg {
  width: 14px;
  height: 14px;
  min-width: 14px;
  max-width: 14px;
  min-height: 14px;
  max-height: 14px;
  flex: 0 0 14px;
  display: block;
}

@media (min-width: 1400px) {
  body.public-page--landing .landing-aura-hero .landing-public-hero-actions--desktop {
    flex-wrap: nowrap;
  }

  body.public-page--landing .landing-aura-walkforward .landing-aura-pill-row--dark {
    align-items: flex-start;
    gap: 10px;
  }

  body.public-page--landing .landing-aura-walkforward .landing-aura-pill-row--dark > span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding: 0 14px;
    color: #66758a;
    font-size: 0.8rem;
    font-weight: 450;
    line-height: 1;
    white-space: nowrap;
  }

  body.public-page--landing .landing-aura-walkforward .landing-aura-pill-row--dark > span::before {
    content: "";
    width: 6px;
    height: 6px;
    min-width: 6px;
    max-width: 6px;
    min-height: 6px;
    max-height: 6px;
    flex: 0 0 6px;
    align-self: center;
    border-radius: 999px;
    background: #4a84ef;
  }

  body.public-page--landing .landing-aura-walkforward .landing-aura-pill-row--dark > span > svg {
    display: none;
  }

  body.public-page--landing .landing-aura-walkforward .landing-aura-pill-row--dark > span > span {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    color: inherit;
    font: inherit;
    line-height: 1;
    white-space: nowrap;
  }

  body.public-page--landing .landing-aura-walkforward .landing-aura-pill-row--dark > span > span::before {
    content: none;
  }

  body.public-page--landing .landing-mobile-feature-title-line,
  body.public-page--landing .landing-mobile-feature-description-line {
    display: none;
  }

  body.public-page--landing .landing-feature-title-line--desktop,
  body.public-page--landing .landing-feature-description-line--desktop,
  body.public-page--landing .landing-aura-feature--backtest .landing-aura-backtest-title.landing-feature-title-line--desktop {
    display: inline;
  }
}

.landing-aura-hero-visual {
  position: relative;
  min-height: 556px;
  max-width: 560px;
  margin-left: auto;
}

.landing-aura-hero-visual::before,
.landing-aura-hero-visual::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(76px);
  pointer-events: none;
}

.landing-aura-hero-visual::before {
  top: 70px;
  left: 12px;
  width: 240px;
  height: 240px;
  background: rgba(188, 225, 255, 0.28);
}

.landing-aura-hero-visual::after {
  right: -26px;
  bottom: 82px;
  width: 236px;
  height: 236px;
  background: rgba(175, 217, 255, 0.14);
}

.landing-aura-dashboard-shell {
  position: relative;
  z-index: 1;
  max-width: 526px;
  margin: 8px 18px 0 auto;
  padding: 16px;
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(247, 251, 255, 0.94) 100%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 28px 72px -48px rgba(48, 90, 154, 0.2),
    inset 0 2px 0 rgba(255, 255, 255, 0.92);
}

.landing-aura-dashboard-shell::before {
  content: "";
  position: absolute;
  inset: 36px -40px 64px auto;
  width: 196px;
  border-radius: 999px;
  background: rgba(168, 214, 255, 0.15);
  filter: blur(48px);
  pointer-events: none;
  z-index: -1;
}

.landing-aura-dashboard-window {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f7fafe 100%);
  border: 1px solid rgba(228, 237, 248, 0.82);
  border-right-color: rgba(228, 237, 248, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 1);
}

.landing-aura-dashboard-window::after {
  content: "";
  position: absolute;
  top: 18px;
  right: -22px;
  bottom: 18px;
  width: 54px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(247, 250, 254, 0) 0%, rgba(229, 238, 249, 0.42) 100%);
  filter: blur(14px);
  pointer-events: none;
}

.landing-aura-window-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(216, 223, 235, 0.8);
}

.landing-aura-window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #d5dce8;
}

.landing-aura-window-bar span:first-child {
  background: #ffb7b2;
}

.landing-aura-window-bar span:nth-child(2) {
  background: #ffe199;
}

.landing-aura-window-bar span:nth-child(3) {
  background: #b6efb8;
}

.landing-aura-window-bar small {
  position: absolute;
  left: 50%;
  margin-left: 0;
  transform: translateX(-50%);
  white-space: nowrap;
  color: #8b97aa;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.landing-aura-dashboard-body {
  padding: 18px 18px 16px;
}

.landing-aura-dashboard-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.landing-aura-dashboard-head p,
.landing-aura-chart-head p,
.landing-aura-parameter-card p,
.landing-aura-heatmap-card p,
.landing-aura-feature-card-head p,
.landing-aura-backtest-chart p,
.landing-aura-summary-card p,
.landing-aura-sweep-controls p,
.landing-aura-sweep-grid-card p {
  margin: 0;
  color: #8c98ab;
  font-size: 0.77rem;
}

.landing-aura-dashboard-head h2,
.landing-aura-feature-card-head h3 {
  margin: 6px 0 0;
  font-size: 1.74rem;
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 500;
}

.landing-aura-dashboard-head h2 {
  font-size: 1.08rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.landing-aura-badge,
.landing-aura-corner-pill,
.landing-aura-chart-head span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #edf4ff;
  border: 1px solid rgba(13, 91, 215, 0.1);
  color: #3775d2;
  font-size: 0.76rem;
  font-weight: 700;
}

.landing-aura-metric-grid,
.landing-aura-feature-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.landing-aura-feature-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.landing-aura-metric-grid article,
.landing-aura-feature-metrics article {
  padding: 13px;
  border-radius: 18px;
  border: 1px solid rgba(216, 223, 235, 0.86);
  background: rgba(255, 255, 255, 0.9);
}

.landing-aura-metric-grid article.is-accent,
.landing-aura-feature-metrics article.is-accent {
  background: #edf4ff;
  border-color: rgba(112, 174, 255, 0.28);
}

.landing-aura-metric-grid small,
.landing-aura-feature-metrics small,
.landing-aura-sweep-total small {
  color: #7c8ba0;
  font-size: 0.73rem;
}

.landing-aura-metric-grid strong,
.landing-aura-feature-metrics strong,
.landing-aura-sweep-total strong {
  display: block;
  margin-top: 8px;
  font-size: 1.58rem;
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 400;
}

.landing-aura-metric-grid strong.metric-positive {
  color: #17824f;
}

.landing-aura-metric-grid strong.metric-negative {
  color: #be3b3b;
}

.landing-aura-chart-card {
  margin-top: 12px;
  padding: 13px;
  border-radius: 20px;
  border: 1px solid rgba(216, 223, 235, 0.86);
  background: rgba(255, 255, 255, 0.9);
}

.landing-aura-chart-head,
.landing-aura-feature-card-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.landing-aura-chart-stage,
.landing-aura-mini-chart {
  position: relative;
  overflow: hidden;
  margin-top: 14px;
  border-radius: 18px;
  min-height: 124px;
  background: linear-gradient(180deg, rgba(232, 242, 255, 0.9) 0%, rgba(255, 255, 255, 1) 100%);
  border: 1px solid rgba(190, 214, 248, 0.8);
}

.landing-aura-chart-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.landing-aura-chart-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(146, 163, 184, 0.24) 1px, transparent 1px),
    linear-gradient(90deg, rgba(146, 163, 184, 0.18) 1px, transparent 1px);
  background-size: 100% 44px, 64px 100%;
}

.landing-aura-chart-stage svg,
.landing-aura-mini-chart svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.landing-aura-chart-stage path,
.landing-aura-mini-chart path {
  fill: none;
  stroke: #3b82f6;
  stroke-width: 4;
  stroke-linecap: round;
}

.landing-aura-mini-chart path.is-muted {
  stroke: rgba(148, 163, 184, 0.8);
  stroke-width: 3;
}

.landing-aura-dashboard-lower {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  gap: 10px;
  margin-top: 10px;
}

.landing-aura-parameter-card,
.landing-aura-heatmap-card,
.landing-aura-sweep-controls,
.landing-aura-sweep-grid-card,
.landing-aura-backtest-chart,
.landing-aura-summary-card {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(216, 223, 235, 0.86);
  background: rgba(255, 255, 255, 0.92);
}

.landing-aura-heatmap-card {
  background: linear-gradient(180deg, #f5f9ff 0%, #edf4ff 100%);
}

.landing-aura-parameter-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  color: #627086;
  font-size: 0.82rem;
}

.landing-aura-parameter-row strong {
  color: #162033;
  font-size: 0.84rem;
}

.landing-aura-parameter-bar {
  height: 8px;
  margin-top: 8px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(216, 223, 235, 0.86);
  overflow: hidden;
}

.landing-aura-parameter-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4a8cff 0%, #2788ff 100%);
}

.landing-aura-heatmap {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 5px;
  margin-top: 14px;
}

.landing-aura-heatmap span,
.landing-aura-sweep-grid span {
  height: 22px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.34);
}

.landing-aura-heatmap span {
  background: linear-gradient(180deg, #edf5ff 0%, #dbe9ff 100%);
  border: 1px solid rgba(53, 110, 211, 0.18);
}

.landing-aura-sweep-grid span:nth-child(7n),
.landing-aura-sweep-grid span:nth-child(8n) {
  background: rgba(255, 255, 255, 0.62);
}

.landing-aura-sweep-grid span:nth-child(14n),
.landing-aura-sweep-grid span:nth-child(15n) {
  background: rgba(255, 255, 255, 0.82);
}

.landing-aura-heatmap span:nth-child(3n + 1) {
  background: linear-gradient(180deg, #e2efff 0%, #c8ddff 100%);
}

.landing-aura-heatmap span:nth-child(3n + 2) {
  background: linear-gradient(180deg, #cddfff 0%, #a8c9fb 100%);
}

.landing-aura-heatmap span:nth-child(3n) {
  background: linear-gradient(180deg, #a9c8f8 0%, #7ca7ec 100%);
}

.landing-aura-heatmap span:nth-child(10) {
  background: linear-gradient(180deg, #8fb7f1 0%, #5d8fe0 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.72),
    0 8px 14px -12px rgba(53, 110, 211, 0.42);
}

.landing-aura-heatmap-card small {
  display: block;
  margin-top: 12px;
  color: #5f7188;
}

.landing-aura-workflow {
  width: min(1280px, calc(100% - 24px));
  margin: 0 auto;
  padding: 58px 0 var(--landing-workflow-gap-after);
}

.page-shell--landing .landing-section-header--centered {
  max-width: 760px;
  margin-bottom: 34px;
}

.page-shell--landing .landing-section-header--workflow {
  max-width: 1080px;
  margin: 0 0 34px 8px;
  text-align: left;
}

.page-shell--landing .landing-workflow-title-line {
  display: block;
}

.page-shell--landing .landing-section-header h2 {
  margin-top: 10px;
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 400;
}

.page-shell--landing .landing-section-header--workflow h2 {
  font-size: clamp(2.18rem, 4.05vw, 3.5rem);
  line-height: 1.04;
}

.page-shell--landing .landing-section-header p {
  max-width: 62ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.page-shell--landing .landing-section-header--workflow > .landing-section-kicker {
  color: #2f63d6;
  margin-left: 0;
  margin-right: 0;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.page-shell--landing .landing-section-header--workflow > p:not(.landing-section-kicker) {
  max-width: 62ch;
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

.landing-aura-workflow-shell {
  --landing-workflow-panel-inline-padding: 36px;
  position: relative;
  overflow: hidden;
  padding: 34px var(--landing-workflow-panel-inline-padding) 36px;
  border-radius: 44px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 36px 80px -52px rgba(15, 23, 42, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.landing-aura-workflow-shell::before,
.landing-aura-workflow-shell::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(84px);
  pointer-events: none;
}

.landing-aura-workflow-shell::before {
  top: -180px;
  left: 8%;
  width: 320px;
  height: 320px;
  background: rgba(171, 214, 255, 0.32);
}

.landing-aura-workflow-shell::after {
  right: 5%;
  bottom: -200px;
  width: 320px;
  height: 320px;
  background: rgba(210, 236, 255, 0.26);
}

.landing-aura-workflow-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  gap: 28px;
  margin: -6px 0 18px;
}

.landing-aura-workflow-line-window {
  position: absolute;
  left: calc(-1 * var(--landing-workflow-panel-inline-padding) + 2px);
  right: calc(-1 * var(--landing-workflow-panel-inline-padding) + 2px);
  top: 24px;
  height: 4px;
  overflow: hidden;
  pointer-events: none;
}

.landing-aura-workflow-connector,
.landing-aura-workflow-connector-glow {
  position: absolute;
  inset-inline-start: 0;
  pointer-events: none;
}

.landing-aura-workflow-connector {
  inset-inline: 0;
  top: 1.5px;
  height: 1px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(166, 196, 233, 0.18) 0 2px,
      rgba(166, 196, 233, 0.03) 2px 9px
    );
  opacity: 0.22;
}

.landing-aura-workflow-connector-glow {
  top: 0.5px;
  width: 60%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(92, 161, 251, 0) 0%,
    rgba(112, 176, 255, 0.04) 14%,
    rgba(120, 184, 255, 0.18) 30%,
    rgba(132, 191, 255, 0.52) 46%,
    rgba(77, 149, 255, 0.96) 50%,
    rgba(132, 191, 255, 0.52) 54%,
    rgba(120, 184, 255, 0.18) 70%,
    rgba(112, 176, 255, 0.04) 86%,
    rgba(92, 161, 251, 0) 100%
  );
  box-shadow:
    0 0 8px rgba(92, 161, 251, 0.16),
    0 0 14px rgba(92, 161, 251, 0.06);
  transform: translateX(-98%);
  opacity: 0;
  will-change: transform, opacity;
}

.landing-aura-workflow-node {
  position: relative;
  z-index: 1;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: linear-gradient(180deg, #4d95ff 0%, #2f74df 60%, #255fca 100%);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    0 18px 32px -22px rgba(45, 114, 223, 0.65),
    0 0 0 1px rgba(95, 150, 228, 0.2);
  color: #ffffff;
    font-family: var(--font-mono);
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.page-shell--landing .landing-workflow-grid {
  position: relative;
  gap: 28px;
}

.page-shell--landing .landing-workflow-card,
.page-shell--landing .landing-start-step {
  min-height: 238px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 22px 22px;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(246, 250, 255, 0.68) 100%);
  box-shadow:
    0 22px 42px -30px rgba(15, 23, 42, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  text-align: center;
}

.page-shell--landing .landing-workflow-card {
  transition:
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 220ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 220ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, box-shadow;
}

.page-shell--landing .landing-workflow-card:hover {
  transform: translateY(-6px);
  border-color: rgba(180, 214, 255, 0.98);
  box-shadow:
    0 30px 56px -32px rgba(15, 23, 42, 0.34),
    0 0 0 1px rgba(121, 178, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.page-shell--landing .landing-workflow-card:focus-within {
  transform: translateY(-6px);
  border-color: rgba(180, 214, 255, 0.98);
  box-shadow:
    0 30px 56px -32px rgba(15, 23, 42, 0.34),
    0 0 0 1px rgba(121, 178, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.page-shell--landing .landing-workflow-card::before,
.page-shell--landing .landing-start-step::before {
  content: none;
}

.landing-aura-workflow-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: 0 auto 20px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(244, 248, 255, 0.98) 0%, rgba(233, 241, 255, 0.94) 100%);
  border: 1px solid rgba(175, 206, 246, 0.56);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 14px 24px -20px rgba(59, 130, 246, 0.32);
  color: #3573d3;
}

.landing-aura-workflow-icon svg {
  width: 25px;
  height: 25px;
}

.page-shell--landing .landing-workflow-card h3,
.page-shell--landing .landing-start-step h3 {
  font-size: 1.18rem;
  letter-spacing: -0.02em;
  font-weight: 500;
}

.page-shell--landing .landing-workflow-card p,
.page-shell--landing .landing-start-step p {
  margin-top: 12px;
  font-size: 0.95rem;
  line-height: 1.75;
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
}

.landing-aura-workflow-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  min-block-size: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(175, 206, 246, 0.42);
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.96) 0%, rgba(239, 246, 255, 0.88) 100%);
  color: #2f74df;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 12px 24px -20px rgba(57, 111, 184, 0.34);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.landing-aura-workflow-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, #6faeff 0%, #2f74df 100%);
  box-shadow: 0 0 0 4px rgba(111, 174, 255, 0.12);
}

.page-shell--landing .landing-workflow-card p + .landing-aura-workflow-chip {
  margin-top: 26px;
}

@media (prefers-reduced-motion: reduce) {
  .page-shell--landing .landing-workflow-card {
    transition: none;
    will-change: auto;
  }

  .page-shell--landing .landing-workflow-card:hover,
  .page-shell--landing .landing-workflow-card:focus-within {
    transform: none;
  }
}

@keyframes landingWorkflowPulse {
  0% {
    transform: translateX(0%);
    opacity: 0.28;
  }

  8% {
    opacity: 1;
  }

  24% {
    transform: translateX(118%);
    opacity: 0.9;
  }

  33% {
    transform: translateX(118%);
    opacity: 0.12;
  }

  50% {
    transform: translateX(236%);
    opacity: 0.96;
  }

  59% {
    transform: translateX(236%);
    opacity: 0.12;
  }

  76% {
    transform: translateX(354%);
    opacity: 0.96;
  }

  100% {
    transform: translateX(354%);
    opacity: 0.1;
  }
}


@media (max-width: 980px) {
  .landing-aura-workflow-track {
    display: none;
  }

  .page-shell--landing .landing-workflow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (max-width: 640px) {
  .page-shell--landing .landing-workflow-grid {
    grid-template-columns: 1fr;
  }
}

.landing-aura-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 42px;
  align-items: center;
  padding: var(--landing-feature-gap-before) 0 var(--landing-feature-gap-after);
}

.landing-aura-feature--reverse {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}

.landing-aura-feature--backtest {
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  gap: 34px;
  align-items: center;
}

/* Landing research-mode section spacing */
.landing-aura-feature--backtest {
  padding-bottom: var(--landing-feature-gap-after-loose);
}

.landing-aura-feature--reverse {
  padding-top: var(--landing-feature-gap-before-loose);
  padding-bottom: var(--landing-feature-gap-after-loose);
}

/* Landing research-mode label consistency */
.landing-aura-feature--backtest .landing-section-kicker {
  color: #2f63d6;
}

.landing-aura-feature--sweep .landing-section-kicker {
  color: #2f63d6;
}

.landing-aura-walkforward .landing-section-kicker {
  color: #2f63d6;
}

/* Parameter Sweep title wrapping polish */
.landing-aura-sweep-title span {
  display: block;
  white-space: nowrap;
}

.landing-aura-feature-copy h2,
.landing-aura-walkforward-copy h2 {
  margin: 10px 0 0;
  font-size: clamp(2.8rem, 5vw, 4.35rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  font-weight: 400;
}

.landing-aura-feature--sweep .landing-aura-sweep-title {
  font-size: clamp(2.15rem, 3.4vw, 3.25rem);
  max-width: none;
}

/* Walkforward title wrapping polish */
.landing-aura-walkforward-copy h2.landing-aura-walkforward-title {
  font-size: clamp(2.15rem, 3.4vw, 3.25rem);
}

.landing-aura-feature-copy p,
.landing-aura-walkforward-copy p {
  margin: 22px 0 0;
  color: #5d6d83;
  line-height: 1.8;
  font-size: 1rem;
}

.scroll-reveal-enabled .landing-reveal {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition:
    opacity 720ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 720ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.scroll-reveal-enabled .landing-reveal--left {
  transform: translate3d(-32px, 18px, 0);
}

.scroll-reveal-enabled .landing-reveal--right {
  transform: translate3d(32px, 18px, 0);
}

.scroll-reveal-enabled .landing-reveal--up {
  transform: translate3d(0, 34px, 0);
}

.scroll-reveal-enabled .landing-reveal--delayed {
  transition-delay: 90ms;
}

.scroll-reveal-enabled .landing-reveal--delay-1 {
  transition-delay: 80ms;
}

.scroll-reveal-enabled .landing-reveal--delay-2 {
  transition-delay: 140ms;
}

.scroll-reveal-enabled .landing-reveal--delay-3 {
  transition-delay: 200ms;
}

.scroll-reveal-enabled .landing-reveal--delay-4 {
  transition-delay: 260ms;
}

.scroll-reveal-enabled .landing-reveal--delay-5 {
  transition-delay: 320ms;
}

.scroll-reveal-enabled .landing-reveal--zoom-title {
  transform: translate3d(0, 10px, 0) scale(1.08);
  transform-origin: center center;
}

.scroll-reveal-enabled .landing-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
  .scroll-reveal-enabled .landing-reveal,
  .scroll-reveal-enabled .landing-reveal--left,
  .scroll-reveal-enabled .landing-reveal--right,
  .scroll-reveal-enabled .landing-reveal--up,
  .scroll-reveal-enabled .landing-reveal--zoom-title,
  .scroll-reveal-enabled .landing-reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }
}

.landing-aura-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.landing-aura-pill-row > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.74);
  color: #627086;
  font-size: 0.82rem;
  box-shadow:
    0 10px 24px -18px rgba(15, 23, 42, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* Backtesting chips visual polish */
.landing-aura-pill-row--backtest {
  gap: 16px 18px;
  margin-top: 28px;
}

.landing-aura-pill-row--backtest .landing-aura-backtest-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 0 17px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.72);
  color: #66758a;
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1;
  vertical-align: top;
  box-shadow:
    0 10px 22px -18px rgba(15, 23, 42, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.landing-aura-pill-row--backtest .landing-aura-backtest-chip svg {
  width: 16px;
  height: 16px;
  min-width: 16px;
  max-width: 16px;
  min-height: 16px;
  max-height: 16px;
  flex: 0 0 16px;
  color: #4a84ef;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.landing-aura-pill-row--backtest .landing-aura-backtest-chip > span {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  white-space: nowrap;
}

.landing-aura-backtest-title {
  color: #111827;
}

.landing-aura-feature--backtest .landing-aura-feature-copy > p:not(.landing-section-kicker),
.landing-aura-feature--backtest .landing-feature-lower-copy > .landing-feature-description {
  max-width: 46ch;
  font-size: 1.12rem;
  line-height: 1.6;
  margin-top: 20px;
}

.landing-aura-feature-media {
  position: relative;
}

/* Landing research-mode dashboard style alignment */
.landing-aura-feature-media--sweep,
.landing-aura-walkforward-media {
  width: min(100%, 580px);
  max-width: 580px;
  padding: 18px;
  border-radius: 36px;
  background:
    linear-gradient(180deg, rgba(247, 250, 255, 0.98) 0%, rgba(229, 239, 255, 0.94) 54%, rgba(214, 230, 255, 0.9) 100%);
  border: 1px solid transparent;
  box-shadow: 0 10px 24px -18px rgba(100, 116, 139, 0.14);
}

.landing-aura-feature-media--sweep {
  justify-self: start;
}

.landing-aura-walkforward-media {
  justify-self: end;
}

.landing-aura-feature-media--backtest {
  width: min(100%, 580px);
  max-width: 580px;
  justify-self: end;
  padding: 18px;
  border-radius: 36px;
  /* Backtesting dashboard shadow polish */
  background:
    linear-gradient(180deg, rgba(236, 243, 252, 0.98) 0%, rgba(225, 236, 250, 0.95) 34%, rgba(214, 230, 255, 0.92) 100%);
  border: 1px solid transparent;
  box-shadow: 0 10px 24px -18px rgba(100, 116, 139, 0.14);
}

.landing-aura-feature-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-radius: 40px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(246, 250, 255, 0.78) 100%);
  border: 1px solid rgba(255, 255, 255, 0.94);
  box-shadow:
    0 10px 24px -16px rgba(15, 23, 42, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.landing-aura-feature-card--sweep,
.landing-aura-walkforward-card {
  width: 100%;
  max-width: none;
  padding: 0;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(249, 251, 255, 0.92) 100%);
  border: 1px solid rgba(255, 255, 255, 0.94);
  box-shadow:
    0 8px 20px -16px rgba(15, 23, 42, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.landing-aura-feature-card--sweep {
  padding: 0;
}

.landing-aura-walkforward-card {
  padding: 0;
}

.landing-aura-feature-card--backtest {
  width: 100%;
  max-width: none;
  margin-left: auto;
  padding: 0;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(249, 251, 255, 0.92) 100%);
  border-color: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 8px 20px -16px rgba(15, 23, 42, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* Backtesting 1:1 feature media */

.landing-aura-backtest-media-slot {
  position: relative;
  aspect-ratio: auto;
  border-radius: inherit;
  overflow: hidden;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.landing-aura-backtest-media-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

/* Parameter Sweep 1:1 feature media */

.landing-aura-sweep-media-slot {
  position: relative;
  aspect-ratio: auto;
  border-radius: inherit;
  overflow: hidden;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.landing-aura-sweep-media-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

/* Walkforward 1:1 feature media */

.landing-aura-walkforward-media-slot {
  position: relative;
  aspect-ratio: auto;
  border-radius: inherit;
  overflow: hidden;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.landing-aura-walkforward-media-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.landing-aura-feature-card::before {
  content: none;
}

.landing-aura-backtest-lower,
.landing-aura-sweep-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.26fr) minmax(220px, 0.74fr);
  gap: 16px;
  margin-top: 16px;
}

.landing-aura-feature-card--backtest .landing-aura-feature-card-head {
  gap: 12px;
}

.landing-aura-feature-card--backtest .landing-aura-feature-metrics {
  gap: 10px;
  margin-bottom: 14px;
}

.landing-aura-feature-card--backtest .landing-aura-feature-metrics article {
  padding: 11px 12px;
}

.landing-aura-feature-card--backtest .landing-aura-backtest-lower {
  grid-template-columns: minmax(0, 1.18fr) minmax(188px, 0.82fr);
  gap: 14px;
  margin-top: 14px;
}

.landing-aura-feature-card--backtest .landing-aura-mini-chart {
  min-height: 108px;
}

.landing-aura-feature-card--backtest .landing-aura-summary-card strong {
  font-size: 1.18rem;
}

.landing-aura-feature-card--backtest .landing-aura-summary-card ul {
  margin-top: 14px;
  gap: 8px;
}

.landing-aura-summary-card {
  background: linear-gradient(180deg, #4691ff 0%, #2e7cff 100%);
  border-color: rgba(35, 119, 255, 0.36);
  color: #f5f8ff;
  box-shadow:
    0 20px 36px -26px rgba(35, 119, 255, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.landing-aura-summary-card p,
.landing-aura-summary-card strong,
.landing-aura-summary-card li {
  color: inherit;
}

.landing-aura-summary-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.36rem;
  line-height: 1.3;
  font-weight: 500;
}

.landing-aura-summary-card ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.landing-aura-summary-card li {
  position: relative;
  padding-left: 16px;
  font-size: 0.82rem;
  line-height: 1.5;
}

.landing-aura-summary-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
}

.landing-aura-sweep-total {
  margin-top: 14px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(216, 223, 235, 0.86);
  background: rgba(255, 255, 255, 0.9);
}

.landing-aura-sweep-grid-card {
  background: rgba(255, 255, 255, 0.92);
}

.landing-aura-sweep-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 6px;
  margin-top: 16px;
}

.landing-aura-sweep-grid span {
  height: 30px;
  border: 1px solid rgba(179, 211, 255, 0.8);
  background: #edf4ff;
}

.landing-aura-sweep-grid span:nth-child(13),
.landing-aura-sweep-grid span:nth-child(14),
.landing-aura-sweep-grid span:nth-child(15),
.landing-aura-sweep-grid span:nth-child(24) {
  background: #4691ff;
  border-color: #4691ff;
}

.landing-aura-sweep-grid span:nth-child(3),
.landing-aura-sweep-grid span:nth-child(4),
.landing-aura-sweep-grid span:nth-child(5),
.landing-aura-sweep-grid span:nth-child(16),
.landing-aura-sweep-grid span:nth-child(17),
.landing-aura-sweep-grid span:nth-child(18),
.landing-aura-sweep-grid span:nth-child(25),
.landing-aura-sweep-grid span:nth-child(26),
.landing-aura-sweep-grid span:nth-child(27) {
  background: #8fc0ff;
  border-color: #8fc0ff;
}

.landing-aura-sweep-note {
  margin-top: 16px;
  padding: 14px;
  border-radius: 18px;
  background: #edf4ff;
  border: 1px solid rgba(179, 211, 255, 0.8);
}

.landing-aura-sweep-note strong {
  display: block;
  font-size: 0.95rem;
}

.landing-aura-sweep-note small {
  display: block;
  margin-top: 6px;
  color: #627086;
  line-height: 1.5;
}

.landing-aura-point-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.landing-aura-point-grid article {
  padding: 22px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.68);
  box-shadow:
    0 18px 36px -28px rgba(15, 23, 42, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.landing-aura-point-grid strong {
  display: block;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.landing-aura-point-grid p {
  margin: 10px 0 0;
  font-size: 0.9rem;
  line-height: 1.65;
}

/* Parameter Sweep feature cards visual polish */
.landing-aura-point-grid--sweep {
  gap: 18px;
}

.landing-aura-point-grid--sweep .landing-aura-sweep-point-card {
  padding: 15px 26px 14px;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.96);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(248, 251, 255, 0.72) 100%);
  box-shadow:
    0 22px 42px -32px rgba(15, 23, 42, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.landing-aura-point-grid--sweep .landing-aura-sweep-point-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.landing-aura-point-grid--sweep .landing-aura-sweep-point-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: #4a84ef;
  flex: 0 0 auto;
}

.landing-aura-point-grid--sweep .landing-aura-sweep-point-icon svg {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
}

.landing-aura-point-grid--sweep strong {
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.landing-aura-point-grid--sweep p {
  margin-top: 10px;
  color: #6a778b;
}

.landing-aura-walkforward {
  width: min(1280px, calc(100% - 24px));
  margin: var(--landing-walkforward-gap-before) auto 0;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 36px;
  align-items: center;
  /* Landing research-mode visible spacing alignment */
  padding: 0 0 var(--landing-walkforward-gap-after);
}

.landing-aura-walkforward-copy p,
.landing-aura-walkforward-copy h2 {
  color: initial;
}

.landing-aura-pill-row--dark span {
  gap: 6px;
  min-height: 38px;
  padding: 0 14px;
  border-color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.72);
  color: #66758a;
}

/* Walkforward chips visual polish */
.landing-aura-pill-row--dark span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #4a84ef;
  flex: 0 0 auto;
}

.landing-aura-walkforward-card {
  color: #162033;
}

.landing-aura-window-stack {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.landing-aura-window-stack article {
  padding: 16px;
  border-radius: 20px;
  background: #ffffff;
  color: #162033;
  border: 1px solid rgba(216, 223, 235, 0.9);
}

.landing-aura-window-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  gap: 10px;
  align-items: center;
}

.landing-aura-window-row span {
  min-height: 54px;
  border-radius: 14px;
  background: #f7f9fc;
  border: 1px solid rgba(216, 223, 235, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 12px;
  color: #627086;
  font-size: 0.8rem;
}

.landing-aura-window-row span.is-blue {
  background: #edf4ff;
  border-color: rgba(112, 174, 255, 0.3);
  color: #3575d7;
}

.landing-aura-window-divider {
  width: 42px;
  height: 1px;
  min-height: 0;
  padding: 0;
  border: 0;
  background: linear-gradient(90deg, #a9cef9 0%, #d4dbe6 100%);
}

.landing-aura-window-row strong {
  color: #13a36f;
  font-size: 0.8rem;
  text-transform: lowercase;
}

.landing-aura-window-row strong.is-review {
  color: #2d6fce;
}

.landing-aura-window-callout {
  display: grid;
  gap: 6px;
  border-color: rgba(112, 174, 255, 0.3);
  background: linear-gradient(180deg, #eff5ff 0%, #ffffff 100%);
}

.landing-aura-window-callout strong {
  font-size: 0.95rem;
}

.landing-aura-window-callout small {
  color: #627086;
  line-height: 1.55;
}

.landing-aura-get-started {
  padding: var(--landing-get-started-gap-before) 0 var(--landing-get-started-gap-after);
}

/* Get started heading visual reference fix */
.landing-aura-get-started .landing-section-header--centered {
  width: 100%;
  max-width: 1024px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.landing-aura-get-started .landing-section-kicker {
  color: #4a84ef;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.landing-aura-get-started .landing-section-header--centered > .landing-section-kicker {
  max-width: none;
}

.landing-aura-get-started-title {
  max-width: 1024px;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(2.25rem, 3vw, 3.75rem);
  line-height: 1.05;
  text-align: center;
  letter-spacing: -0.04em;
  font-weight: 400;
}

.landing-aura-get-started-title span {
  display: block;
  text-align: center;
  white-space: nowrap;
}

.landing-final-cta {
  padding-top: 32px;
  padding-bottom: 20px;
}

.landing-aura-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

/* Get started card layout polish */
.page-shell--landing .landing-aura-get-started .landing-start-step {
  display: block;
  text-align: left;
  min-height: 0;
  padding: 24px;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.68);
  box-shadow:
    0 10px 28px -18px rgba(15, 23, 42, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

/* Get started card hover polish */
.page-shell--landing .landing-aura-get-started .landing-start-step:hover,
.page-shell--landing .landing-aura-get-started .landing-start-step:focus-within {
  transform: translateY(-6px);
  border-color: #4a84ef;
  box-shadow:
    0 18px 38px -20px rgba(74, 132, 239, 0.22),
    0 10px 24px -18px rgba(15, 23, 42, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.page-shell--landing .landing-aura-get-started .landing-start-step-number {
  display: inline-block;
  width: auto;
  height: auto;
  min-width: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: #3775d2;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
}

.page-shell--landing .landing-aura-get-started .landing-start-step-top {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 4px;
}

.page-shell--landing .landing-aura-get-started .landing-start-step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #4a84ef;
  flex: 0 0 auto;
}

.page-shell--landing .landing-aura-get-started .landing-start-step-icon svg {
  width: 32px;
  height: 32px;
}

.landing-start-step--accent {
  background: linear-gradient(180deg, #f0f6ff 0%, #ffffff 100%);
  border-color: rgba(167, 204, 255, 0.58);
}

.page-shell--landing .landing-aura-get-started .landing-start-step h3 {
  margin: 4px 0 0;
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.04em;
  font-weight: 400;
  text-align: left;
}

.page-shell--landing .landing-aura-get-started .landing-start-step p {
  margin-top: 8px;
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.5;
  font-weight: 300;
  text-align: left;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

@media (prefers-reduced-motion: reduce) {
  .landing-aura-floating-card {
    animation: none;
    opacity: 1;
  }

  .landing-aura-cta-float {
    animation: none;
    opacity: 0.86;
    transform: rotate(var(--landing-cta-tilt));
  }

  .landing-aura-hero .landing-public-hero-actions .load-button,
  .landing-aura-hero .landing-public-hero-actions .button-secondary {
    transition: box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
  }

  .landing-aura-hero .landing-public-hero-actions .load-button:hover,
  .landing-aura-hero .landing-public-hero-actions .load-button:focus-visible,
  .landing-aura-hero .landing-public-hero-actions .button-secondary:hover,
  .landing-aura-hero .landing-public-hero-actions .button-secondary:focus-visible {
    transform: none;
  }

  .page-shell--landing .landing-aura-get-started .landing-start-step {
    transition: border-color 220ms ease, box-shadow 220ms ease;
  }

  .page-shell--landing .landing-aura-get-started .landing-start-step:hover,
  .page-shell--landing .landing-aura-get-started .landing-start-step:focus-within {
    transform: none;
  }

  .landing-final-cta-card--aura .landing-public-hero-actions .load-button,
  .landing-final-cta-card--aura .landing-public-hero-actions .button-secondary {
    transition: box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
  }

  .landing-final-cta-card--aura .landing-public-hero-actions .load-button:hover,
  .landing-final-cta-card--aura .landing-public-hero-actions .load-button:focus-visible,
  .landing-final-cta-card--aura .landing-public-hero-actions .button-secondary:hover,
  .landing-final-cta-card--aura .landing-public-hero-actions .button-secondary:focus-visible {
    transform: none;
  }
}

.landing-final-cta-card--aura {
  position: relative;
  overflow: hidden;
  max-width: 1280px;
  margin: 0 auto;
  padding: 70px 28px;
  border-radius: 44px;
  background: linear-gradient(180deg, #4d9cff 0%, #2e84ff 55%, #2779ff 100%);
  border: 1px solid rgba(39, 121, 255, 0.65);
  box-shadow:
    0 40px 90px -50px rgba(39, 121, 255, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  color: #f5f8ff;
  text-align: center;
}

.landing-final-cta-card--aura::before,
.landing-final-cta-card--aura::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(86px);
  pointer-events: none;
}

body.public-page--landing .landing-final-cta-card--aura::before,
body.public-page--landing .landing-final-cta-card--aura::after {
  content: none;
}

.landing-final-cta-card--aura::before {
  top: -180px;
  left: -120px;
  width: 360px;
  height: 360px;
  background: rgba(255, 255, 255, 0.24);
}

.landing-final-cta-card--aura::after {
  right: -140px;
  bottom: -180px;
  width: 360px;
  height: 360px;
  background: rgba(16, 49, 120, 0.26);
}

.landing-aura-final-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  color: rgba(245, 248, 255, 0.96);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.landing-aura-final-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.15);
}

.landing-final-cta-card--aura h2,
.landing-final-cta-card--aura p,
.landing-final-cta-card--aura .landing-public-hero-actions,
.landing-aura-final-chips {
  position: relative;
  z-index: 1;
}

.landing-final-cta-card--aura h2 {
  max-width: 780px;
  margin: 24px auto 0;
  font-size: clamp(2.8rem, 5vw, 4.3rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  font-weight: 400;
}

.landing-final-cta-card--aura p {
  max-width: 760px;
  margin: 20px auto 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.8;
  font-weight: 400;
}

.landing-final-cta-card--aura .load-button {
  background: #ffffff;
  color: #2f63d6;
  box-shadow:
    0 20px 34px -22px rgba(15, 23, 42, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.landing-final-cta-card--aura .button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

/* Final CTA chip and floating card polish */
.landing-final-cta-card--aura .landing-aura-final-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 26px;
  color: rgba(245, 248, 255, 0.94);
}

.landing-final-cta-card--aura .landing-aura-final-chips > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 8px;
  font-size: 0.84rem;
  line-height: 1;
  white-space: nowrap;
}

.landing-final-cta-card--aura .landing-aura-final-chips > span + span::before {
  content: "";
  width: 4px;
  height: 4px;
  margin-right: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  flex: 0 0 auto;
}

.landing-final-cta-card--aura .landing-aura-final-chips svg {
  width: 28px;
  height: 28px;
  min-width: 28px;
  max-width: 28px;
  min-height: 28px;
  max-height: 28px;
  flex: 0 0 28px;
  display: block;
  color: rgba(255, 255, 255, 0.96);
}

.landing-final-cta-card--aura .landing-aura-final-chips > span > span {
  display: inline;
}

/* Final CTA chip/button polish */
.landing-final-cta-card--aura .landing-public-hero-actions {
  margin-top: 26px;
}

.landing-final-cta-card--aura .landing-public-hero-actions .load-button,
.landing-final-cta-card--aura .landing-public-hero-actions .button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 30px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 500;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.landing-final-cta-card--aura .landing-public-hero-actions .load-button {
  gap: 12px;
}

/* Final CTA primary arrow circle */
.landing-final-cta-card--aura .landing-public-hero-actions .landing-aura-cta-primary-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  max-width: 32px;
  min-height: 32px;
  max-height: 32px;
  flex: 0 0 32px;
  border-radius: 999px;
  background: #2f63d6;
  color: #ffffff;
}

.landing-final-cta-card--aura .landing-public-hero-actions .landing-aura-cta-primary-arrow svg {
  width: 15px;
  height: 15px;
  min-width: 15px;
  max-width: 15px;
  min-height: 15px;
  max-height: 15px;
  flex: 0 0 15px;
  display: block;
}

.landing-final-cta-card--aura .landing-public-hero-actions .load-button:hover,
.landing-final-cta-card--aura .landing-public-hero-actions .load-button:focus-visible,
.landing-final-cta-card--aura .landing-public-hero-actions .button-secondary:hover,
.landing-final-cta-card--aura .landing-public-hero-actions .button-secondary:focus-visible {
  transform: translateY(-3px);
}

.landing-final-cta-card--aura .landing-public-hero-actions .load-button:hover,
.landing-final-cta-card--aura .landing-public-hero-actions .load-button:focus-visible {
  background: rgba(255, 255, 255, 0.96);
  color: #2f63d6;
  box-shadow:
    0 28px 42px -24px rgba(15, 23, 42, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.landing-final-cta-card--aura .landing-public-hero-actions .button-secondary:hover,
.landing-final-cta-card--aura .landing-public-hero-actions .button-secondary:focus-visible {
  box-shadow: 0 22px 34px -26px rgba(15, 23, 42, 0.34);
}

.landing-aura-cta-float {
  --landing-cta-tilt: 0deg;
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 4px;
  min-width: 176px;
  padding: 14px 16px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(232, 242, 255, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.98);
  opacity: 0.86;
  box-shadow:
    0 8px 22px rgba(35, 72, 130, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  backdrop-filter: blur(18px);
  color: #162033;
  text-align: left;
  animation:
    landingVisualCtaFloat 6.2s ease-in-out infinite alternate,
    landingVisualCardFadePulse 5.4s ease-in-out infinite;
}

.landing-aura-cta-float strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.landing-aura-cta-float strong svg {
  width: 16px;
  height: 16px;
  min-width: 16px;
  max-width: 16px;
  min-height: 16px;
  max-height: 16px;
  flex: 0 0 16px;
  display: block;
}

.landing-aura-cta-float--top-left strong svg {
  color: #4a84ef;
}

.landing-aura-cta-float--bottom-right strong svg {
  color: #2f7d57;
}

.landing-aura-cta-float small {
  color: #7b8ba1;
  font-size: 0.74rem;
  line-height: 1.45;
}

.landing-aura-cta-float--top-left {
  --landing-cta-tilt: -3deg;
  top: 34px;
  left: 34px;
  animation-delay: 0s, 0.5s;
}

.landing-aura-cta-float--bottom-right {
  --landing-cta-tilt: 3deg;
  right: 34px;
  bottom: 34px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(236, 247, 244, 0.93));
  animation-delay: 1.4s, 2s;
}

@keyframes landingFloat {
  0%,
  100% {
    transform: rotate(var(--landing-cta-tilt)) translate3d(0, 0, 0);
  }

  30% {
    transform: rotate(var(--landing-cta-tilt)) translate3d(0, -10px, 0);
  }

  65% {
    transform: rotate(var(--landing-cta-tilt)) translate3d(0, -4px, 0);
  }
}

@keyframes landingVisualCtaFloat {
  0% {
    transform: rotate(var(--landing-cta-tilt)) translate3d(0, 0, 0);
  }

  100% {
    transform: rotate(var(--landing-cta-tilt)) translate3d(0, -8px, 0);
  }
}

@keyframes landingVisualCardFadePulse {
  0%,
  100% {
    opacity: 0.86;
  }

  50% {
    opacity: 0.54;
  }
}

/* Hero floating cards: straight float motion */
@keyframes landingHeroFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  30% {
    transform: translate3d(0, -10px, 0);
  }

  65% {
    transform: translate3d(0, -4px, 0);
  }
}

@keyframes landingVisualHeroCardFadePulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.64;
  }
}

.landing-aura-floating-card {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.96);
  min-width: 0;
  opacity: 1;
  box-shadow:
    0 8px 22px rgba(35, 72, 130, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  backdrop-filter: blur(18px);
  animation:
    landingHeroFloat 7.2s cubic-bezier(0.42, 0, 0.2, 1) infinite,
    landingVisualHeroCardFadePulse 6s ease-in-out infinite;
}

.landing-aura-floating-card strong {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.landing-aura-floating-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(243, 248, 255, 0.98) 0%, rgba(222, 236, 255, 0.96) 100%);
  border: 1px solid rgba(44, 108, 214, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 10px 18px -14px rgba(39, 104, 213, 0.7);
}

.landing-aura-floating-icon svg {
  width: 12px;
  height: 12px;
  color: #2d72df;
}

.landing-aura-floating-card small {
  color: #7b8ba1;
  font-size: 0.74rem;
  line-height: 1.45;
}

.landing-aura-floating-card strong,
.landing-aura-floating-card small {
  white-space: nowrap;
}

.landing-aura-floating-card--top-left {
  top: 338px;
  left: -36px;
  animation-delay: 0.7s, 1.2s;
}

.landing-aura-floating-card--top-right {
  top: 40px;
  right: -10px;
  animation-delay: 0s, 0.4s;
}

.landing-aura-floating-card--mid-right {
  top: 228px;
  right: -12px;
  z-index: 5;
  animation-delay: 1.1s, 1.8s;
}

.landing-aura-floating-card--bottom-left {
  left: -24px;
  bottom: 20px;
  animation-delay: 2.3s, 3s;
}

.landing-aura-floating-card--bottom-right {
  right: -6px;
  top: auto;
  bottom: 116px;
  animation-delay: 1.8s, 2.5s;
}

@media (prefers-reduced-motion: reduce) {
  .landing-aura-floating-card {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .landing-aura-cta-float {
    animation: none;
    opacity: 0.86;
    transform: rotate(var(--landing-cta-tilt));
  }
}

.page-shell--landing .app-footer--public {
  width: min(1280px, calc(100% - 24px));
  margin: 36px auto 0;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    0 26px 60px -42px rgba(15, 23, 42, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

@media (max-width: 1200px) {
  .page-shell--landing {
    --landing-workflow-gap-after: 52px;
    --landing-feature-gap-before: 72px;
    --landing-feature-gap-after: 24px;
    --landing-feature-gap-before-loose: 84px;
    --landing-feature-gap-after-loose: 40px;
    --landing-walkforward-gap-before: 84px;
    --landing-walkforward-gap-after: 28px;
    --landing-get-started-gap-before: 84px;
    --landing-get-started-gap-after: 36px;
    --landing-final-cta-gap-before: 36px;
  }

  .landing-aura-hero,
  .landing-aura-feature,
  .landing-aura-feature--reverse,
  .landing-aura-walkforward {
    grid-template-columns: 1fr;
  }

  .landing-aura-hero-copy,
  .landing-aura-feature-copy,
  .landing-aura-walkforward-copy {
    max-width: none;
  }

  .landing-aura-hero-visual {
    min-height: 640px;
  }

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

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

  .dashboard-quick-actions,
  .dashboard-secondary-grid,
  .dashboard-mix-shell {
    grid-template-columns: 1fr;
  }

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

  .dashboard-results-table {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 980px) {
  .landing-aura-steps-grid,
  .landing-aura-point-grid {
    grid-template-columns: 1fr 1fr;
  }

  .landing-aura-backtest-lower,
  .landing-aura-sweep-layout,
  .landing-aura-dashboard-lower {
    grid-template-columns: 1fr;
  }

  .landing-aura-feature-card {
    padding: 20px;
  }

  .landing-aura-feature-card--backtest,
  .landing-aura-feature-card--sweep,
  .landing-aura-walkforward-card {
    padding: 0;
  }

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

  .workspace-sidebar {
    position: static;
    top: auto;
    height: auto;
    max-height: none;
    min-height: 0;
    overflow: visible;
  }

  .workspace-content {
    padding-top: 0;
  }

  .dashboard-welcome-row {
    flex-direction: column;
    align-items: flex-start;
  }

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

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

@media (max-width: 820px) {
  .page-shell--landing {
    padding-top: 18px;
    --landing-workflow-gap-after: 42px;
    --landing-feature-gap-before: 60px;
    --landing-feature-gap-after: 22px;
    --landing-feature-gap-before-loose: 68px;
    --landing-feature-gap-after-loose: 30px;
    --landing-walkforward-gap-before: 68px;
    --landing-walkforward-gap-after: 24px;
    --landing-get-started-gap-before: 72px;
    --landing-get-started-gap-after: 30px;
    --landing-final-cta-gap-before: 30px;
  }

  .landing-aura-hero,
  .landing-aura-workflow,
  .landing-aura-feature,
  .landing-aura-get-started,
  .landing-final-cta,
  .landing-aura-walkforward,
  .page-shell--landing .app-footer--public {
    width: min(1280px, calc(100% - 16px));
  }

  .landing-aura-hero {
    gap: 28px;
    padding-bottom: 34px;
  }

  .landing-aura-hero-copy h1 {
    font-size: clamp(2.9rem, 15vw, 4.4rem);
  }

  .page-shell--landing .hero-copy .landing-copy-line,
  .page-shell--landing .landing-workflow-title-line {
    display: inline;
  }

  .page-shell--landing .hero-copy .landing-copy-line:first-child::after,
  .page-shell--landing .landing-workflow-title-line:first-child::after {
    content: " ";
  }

  .landing-aura-sweep-title span {
    white-space: normal;
  }

  .landing-aura-get-started-title span {
    white-space: normal;
  }

  .landing-aura-headline-line {
    white-space: normal;
  }

  .landing-aura-headline-accent {
    font-size: clamp(2.38rem, 10.4vw, 3.28rem);
  }

  .landing-aura-headline-accent {
    padding-left: 10px;
    padding-right: 10px;
  }

  .landing-aura-hero-visual {
    min-height: 520px;
  }

  .landing-aura-dashboard-body,
  .landing-aura-workflow-shell,
  .landing-aura-walkforward,
  .landing-final-cta-card--aura {
    padding: 20px;
  }

  .landing-aura-metric-grid,
  .landing-aura-feature-metrics,
  .landing-aura-steps-grid,
  .landing-aura-point-grid {
    grid-template-columns: 1fr;
  }

  .landing-aura-floating-card {
    position: static;
    margin-bottom: 10px;
    animation: none;
  }

  .landing-aura-window-row {
    grid-template-columns: 1fr;
  }

  .landing-aura-window-divider {
    width: 100%;
  }

  .landing-aura-cta-float {
    position: static;
    margin: 0 auto 12px;
    width: min(100%, 320px);
    animation: none;
    text-align: center;
  }
}

@media (max-width: 820px) {
  .workspace-shell,
  .site-header,
  .landing-hero,
  .landing-value-grid,
  .trust-grid,
  .pathway-grid,
  .landing-section--split,
  .landing-cta,
  .site-footer,
  .panel-header,
  .research-config-grid,
  .config-form,
  .upload-form,
  .fetch-form,
  .progression-strip,
  .strategy-row,
  .dataset-row,
  .dataset-preview-inline,
  .header-context,
  .result-header,
  .summary-strip,
  .result-body,
  .detail-sections {
    grid-template-columns: 1fr;
  }

  .landing-feature-section,
  .landing-feature-section--reverse,
  .landing-workflow-grid,
  .landing-steps-grid,
  .auth-layout,
  .market-data-source-grid,
  .market-data-check-grid,
  .market-data-spec-grid,
  .pricing-card-grid,
  .help-center-topic-grid,
  .help-center-bottom-grid,
  .faq-layout,
  .strategy-detail-layout,
  .library-browser,
  .library-guidance-grid,
  .strategy-detail-hero,
  .strategy-detail-shell,
  .strategy-logic-grid,
  .strategy-dataset-modal-grid {
    grid-template-columns: 1fr;
  }

  .pricing-support-prompt {
    align-items: flex-start;
    flex-direction: column;
  }

  .pricing-hero-trust {
    justify-content: center;
  }

  .pricing-currency-switch {
    margin-left: auto;
    margin-right: auto;
  }

  .pricing-card-grid {
    margin-top: 0;
  }

  .pricing-card,
  .pricing-card-head {
    grid-template-rows: none;
  }

  .pricing-card {
    display: flex;
    flex-direction: column;
  }

  .pricing-card-head {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .pricing-card-price-row {
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 8px 10px;
  }

  .pricing-card-badge {
    max-width: 100%;
    white-space: normal;
  }

  .pricing-price-support {
    min-height: 0;
  }

  .pricing-card-meta {
    margin-top: 2px;
  }

  .pricing-card-head,
  .pricing-card--featured .pricing-card-head {
    padding-right: 0;
  }

  .pricing-support-actions {
    flex-wrap: wrap;
    width: 100%;
  }

  .help-center-kb-breadcrumb,
  .help-center-kb-feedback {
    flex-direction: column;
    align-items: flex-start;
  }

  .help-center-kb-crumbs {
    justify-content: flex-start;
  }

  .help-center-support-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .help-center-support-card .load-button {
    margin-top: 6px;
  }

  .library-folder-grid,
  .library-strategy-grid {
    grid-template-columns: 1fr;
  }

  .strategy-dataset-modal-divider {
    display: none;
  }

  .strategy-dataset-modal-column--upload,
  .strategy-dataset-modal-column--recent {
    padding-left: 0;
    padding-right: 0;
  }

  .strategy-dataset-modal-column--recent {
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid rgba(13, 91, 215, 0.1);
  }

  .strategy-recent-datasets-head {
    display: none;
  }

  .strategy-recent-datasets li {
    grid-template-columns: 1fr;
  }

  .market-data-format-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .market-data-format-cta .header-chip {
    align-self: flex-start;
    margin-top: 0;
  }

  .market-data-format-cta::after {
    inset: 0 0 0 42%;
    opacity: 0.42;
  }

  .market-data-final-cta-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .market-data-final-cta-actions {
    width: 100%;
    align-self: stretch;
    justify-content: flex-start;
  }

  .market-data-steps {
    grid-template-columns: 1fr;
  }

  .faq-topic-nav {
    position: static;
    top: auto;
    padding: 16px;
    border: 1px solid rgba(13, 91, 215, 0.08);
    border-radius: var(--workspace-card-radius);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 22px rgba(18, 32, 61, 0.035);
  }

  .faq-content {
    padding-left: 0;
  }

  .faq-layout::before {
    display: none;
  }

  .faq-hero {
    padding-bottom: 20px;
  }

  .faq-hero-panel {
    grid-template-columns: 1fr;
    padding: 28px 22px 30px;
    gap: 18px;
  }

  .faq-hero-copy {
    max-width: none;
    text-align: center;
  }

  .faq-hero-copy h1 {
    white-space: normal;
  }

  .faq-hero-copy p:last-child,
  .faq-search-shell {
    margin-left: auto;
    margin-right: auto;
  }

  .faq-hero-visual {
    min-height: 144px;
    max-width: 260px;
    margin: 0 auto;
  }

  .faq-hero-orb--large {
    right: 44px;
    width: 132px;
    height: 108px;
  }

  .faq-hero-orb--small {
    width: 62px;
    height: 96px;
  }

  .faq-hero-dots {
    right: 88px;
    top: 20px;
    width: 90px;
    height: 64px;
  }

  .faq-hero-badge {
    right: 42px;
    bottom: 14px;
    width: 68px;
    height: 68px;
    font-size: 2.15rem;
  }

  .faq-support-cta {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .faq-support-card {
    grid-column: auto;
    max-width: none;
  }

  .auth-visual-panel {
    min-height: 420px;
  }

  .auth-visual-card--headline,
  .auth-visual-card--metric,
  .auth-visual-card--secondary,
  .auth-visual-card--tertiary {
    position: relative;
    inset: auto;
  }

  .auth-visual-panel {
    display: grid;
    gap: 12px;
    align-content: start;
  }

  .auth-visual-bars {
    position: relative;
    right: auto;
    bottom: auto;
    justify-content: flex-start;
    margin-top: 8px;
  }

  .auth-tab-row {
    grid-template-columns: 1fr;
  }

  .app-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .workspace-shell {
    width: min(var(--page-max-width), calc(100% - 24px));
  }

  .workspace-sidebar {
    position: static;
    top: auto;
    height: auto;
    max-height: none;
    min-height: 0;
    overflow: visible;
  }

  .workspace-content {
    padding-top: 0;
  }

  .config-preview-card-head,
  .config-action-bar,
  .media-placeholder-head,
  .landing-preview-card-head,
  .app-footer--workspace,
  .app-footer--public,
  .app-footer-links {
    flex-direction: column;
    align-items: flex-start;
  }

  .config-preview-pills {
    justify-content: flex-start;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 12px;
  }

  .app-nav,
  .app-header-actions,
  .public-auth-links {
    justify-content: flex-start;
  }

  .page-shell--public {
    padding-top: 24px;
  }

  .market-data-container {
    width: min(1240px, calc(100% - 32px));
  }

  .landing-public-hero {
    padding-top: 12px;
  }

  .landing-public-hero h1 {
    font-size: clamp(2.45rem, 12vw, 3.4rem);
  }

  .library-title-block h1,
  .library-panel-head h2 {
    font-size: clamp(2.2rem, 10vw, 3rem);
  }

  .library-title-heading {
    align-items: flex-start;
  }

  .library-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
    padding-right: 0;
    border-right: 0;
  }

  .library-browser {
    gap: 24px;
  }

  .library-panel-head,
  .workspace-page-header,
  .workspace-table-card-head,
  .result-history-controls,
  .pagination-strip,
  .review-breadcrumb-row,
  .review-table-actions,
  .dashboard-welcome-row,
  .dashboard-welcome-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .strategy-recent-tests-row,
  .result-history-row,
  .result-history-stats,
  .dashboard-top-stats,
  .dashboard-results-row,
  .dashboard-help-grid {
    grid-template-columns: 1fr;
  }

  .pagination-pages {
    flex-wrap: wrap;
  }

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

  .pagination-control-group,
  .pagination-size {
    justify-self: start;
  }

  .library-pagination [data-library-controls-hidden="true"] {
    display: none;
  }

  .result-history-row {
    min-width: 0;
  }

  .dashboard-results-row {
    min-width: 0;
  }

  .strategy-detail-title-block {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .strategy-detail-layout::before {
    display: none;
  }

  .strategy-detail-title-row,
  .strategy-browser-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .strategy-browser-sidebar {
    position: static;
    top: auto;
    max-height: none;
  }

  .strategy-browser-card {
    max-height: none;
    overflow: hidden;
  }

  .strategy-browser-panel-track {
    display: block;
    transform: none;
  }

  .strategy-browser-view {
    flex: none;
  }

  .strategy-browser-view[data-sidebar-view="recent"],
  .strategy-browser-view[data-sidebar-view="saved"] {
    display: none;
  }

  .dashboard-quick-actions,
  .dashboard-main-grid,
  .account-settings-layout,
  .dashboard-mix-shell {
    grid-template-columns: 1fr;
  }

  .account-form-grid {
    grid-template-columns: 1fr;
  }

  .account-info-row,
  .account-overview-head,
  .account-toggle-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .account-info-row strong {
    text-align: left;
  }

  .dashboard-saved-item {
    grid-template-columns: 1fr;
  }

  .dashboard-results-row > span:not(:first-child) {
    text-align: left;
    justify-self: stretch;
  }

  .dashboard-results-row:not(.dashboard-results-row--head) > span:nth-child(2),
  .dashboard-results-row:not(.dashboard-results-row--head) > span:nth-child(6),
  .dashboard-results-row:not(.dashboard-results-row--head) > span:last-child {
    justify-items: start;
    text-align: left;
  }

  .review-trade-row,
  .summary-strip,
  .result-body,
  .detail-sections {
    grid-template-columns: 1fr;
  }

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

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

  .review-config-list {
    grid-template-columns: 1fr;
  }

  .review-config-body {
    overflow: visible;
    padding-right: 0;
  }

  .review-config-item {
    align-items: flex-start;
  }

  .review-config-item-value {
    white-space: normal;
  }

  .header-title-row,
  .review-heading-actions,
  .review-table-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-status-inline {
    align-items: flex-start;
  }

  .review-chart-tabs {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  body.single-result-review-inter-page .workspace-content {
    width: 100%;
    max-width: 100%;
  }

  .result-view--single .header-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .result-view--single .review-heading-actions {
    justify-content: flex-start;
    transform: none;
  }

  .result-view--single .header-context--single {
    grid-template-columns: 1fr;
  }

  .result-view--single .header-context-item {
    padding-right: 0;
  }

  .result-view--single .header-context-item::after {
    display: none;
  }

  .result-view--single .summary-strip--single {
    grid-template-columns: 1fr;
  }

  .result-view--single .section-card.performance-snapshot {
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    gap: 8px 14px;
  }

  .result-view--single .result-body--single {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .result-view--single .visual-card {
    height: auto;
  }

  .result-view--single .review-config-card {
    min-height: auto;
  }

  .result-view--single .visual-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .result-view--single .review-chart-tabs {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 8px;
    padding-bottom: 3px;
    scrollbar-width: thin;
  }

  .result-view--single .review-chart-tab {
    min-height: 32px;
    padding: 0 12px;
    font-size: 0.83rem;
  }

  .result-view--single .review-chart-stage {
    width: 100%;
  }

  .result-view--single .review-chart-surface {
    min-height: 240px;
  }

  @media (max-width: 640px) {
    .result-view--single .review-chart-tabs {
      flex-wrap: wrap;
      overflow-x: visible;
    }

    .result-view--single .review-chart-tab {
      min-height: 40px;
    }
  }

  .result-view--single .review-trade-table {
    width: 100%;
    max-width: 100%;
  }

  .result-view--single .review-trade-row {
    min-width: 760px;
  }

  .sweep-analysis-grid,
  .sweep-metric-grid,
  .walkforward-analysis-grid,
  .walkforward-performance-grid {
    grid-template-columns: 1fr;
  }

  .result-view--walkforward .summary-strip--single.walkforward-summary-strip {
    grid-template-columns: 1fr;
  }

  .sweep-panel-heading,
  .sweep-table-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .sweep-table-heading .button-secondary {
    align-self: flex-start;
  }

  .sweep-heatmap-wrap {
    grid-template-columns: auto minmax(360px, 1fr);
  }

  .sweep-heatmap {
    grid-template-columns: 40px repeat(5, minmax(54px, 1fr));
    min-width: 360px;
  }

  .sweep-heatmap-cell {
    min-height: 48px;
    font-size: 0.78rem;
  }

  .sweep-heatmap-legend {
    flex-wrap: wrap;
  }

  .strategy-detail-title-copy {
    max-width: none;
    align-self: start;
  }

  body.strategy-detail-inter-page {
    overflow-x: clip;
  }

  .library-sort {
    justify-items: start;
  }

  .library-content {
    padding-left: 0;
  }

  .library-strategy-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .library-strategy-visual {
    grid-template-columns: 118px minmax(0, 1fr);
    grid-template-rows: 1fr;
    align-items: center;
  }

  .library-strategy-media {
    min-height: 118px;
  }

  body.strategy-library-inter-page .library-strategy-media {
    min-height: 0;
  }

  .library-strategy-card-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .strategy-detail-title-block h1 {
    font-size: clamp(2rem, 10vw, 2.75rem);
  }

  .strategy-config-panel {
    position: static;
  }

  .strategy-rules-panel {
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
  }

  .strategy-config-card {
    max-height: none;
    overflow: visible;
  }

  .strategy-dataset-selection-row {
    grid-template-columns: 1fr;
  }

  .strategy-dataset-action {
    justify-items: stretch;
  }

  .strategy-dataset-helper {
    text-align: left;
    white-space: normal;
  }

  .strategy-visual-head,
  .strategy-recent-datasets li {
    flex-direction: column;
    align-items: flex-start;
  }

  .strategy-recent-dataset-actions {
    justify-content: flex-start;
    grid-template-columns: auto auto;
    grid-column: auto;
  }

  .strategy-test-tabs {
    grid-template-columns: 1fr;
  }

  .strategy-test-tab {
    justify-content: flex-start;
    padding-left: 16px;
    border-bottom: 1px solid rgba(13, 91, 215, 0.08);
  }

  .strategy-walkforward-toggle-tabs--two,
  .strategy-walkforward-toggle-tabs--three,
  .strategy-form-grid--walkforward-periods,
  .strategy-walkforward-range-grid,
  .strategy-form-grid--sweep-ranges,
  .strategy-sweep-preset-grid {
    grid-template-columns: 1fr;
  }

  .strategy-walkforward-workflow-cards {
    grid-template-columns: 1fr;
  }

  .strategy-walkforward-method-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .strategy-sweep-range-inputs {
    grid-template-columns: 1fr;
  }

  .strategy-walkforward-range-card {
    padding: 12px;
  }

  .strategy-walkforward-topn-field {
    max-width: none;
  }

  .strategy-dataset-trigger,
  .strategy-continue-button,
  .strategy-dataset-modal-actions .button-secondary,
  .strategy-dataset-modal-actions .load-button {
    width: 100%;
  }

  .strategy-dataset-modal-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .strategy-dataset-modal-shell {
    padding: 16px;
  }

  .strategy-dataset-modal-card {
    max-height: calc(100vh - 32px);
    padding: 18px;
  }

  .strategy-dataset-modal-actions {
    margin: 14px -18px 0;
    padding: 12px 18px;
  }

  .strategy-dataset-modal-head {
    align-items: flex-start;
  }

  .strategy-config-info::after {
    display: none;
    width: min(248px, calc(100vw - 48px));
    max-width: calc(100vw - 48px);
  }

  .strategy-config-info:hover::after,
  .strategy-config-info:focus::after,
  .strategy-config-info:focus-visible::after {
    display: block;
  }

  .strategy-config-card,
  .strategy-config-step,
  .strategy-config-section,
  .strategy-sweep-preset-grid,
  .strategy-sweep-preset-card,
  .strategy-sweep-preset-card-title,
  .strategy-sweep-preset-card-title-pair,
  .strategy-form-grid--walkforward-periods,
  .strategy-field {
    min-width: 0;
    max-width: 100%;
  }

  .strategy-sweep-preset-card {
    overflow-wrap: anywhere;
  }

  .strategy-sweep-preset-card-head {
    padding-right: 24px;
  }

  .strategy-sweep-preset-card-title-separator {
    position: static;
    transform: none;
    margin: 0;
  }

  #dataset-modal .strategy-dataset-modal-card {
    width: min(100%, calc(100vw - 32px));
    overflow: hidden;
  }

  #dataset-modal .strategy-dataset-modal-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    overflow: visible;
  }

  #dataset-modal .strategy-dataset-modal-body {
    overflow-x: hidden;
  }

  #dataset-modal .strategy-dataset-modal-column,
  #dataset-modal .strategy-dataset-modal-column--upload,
  #dataset-modal .strategy-dataset-modal-column--recent,
  #dataset-modal .strategy-recent-datasets,
  #dataset-modal .strategy-recent-datasets li,
  #dataset-modal .strategy-recent-dataset-copy,
  #dataset-modal .strategy-recent-dataset-actions {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  #dataset-modal .strategy-recent-dataset-actions {
    grid-column: 1;
    justify-items: stretch;
  }

  .strategy-run-button {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  body.strategy-detail-inter-page .strategy-recent-tests-row {
    min-width: 0;
    grid-template-columns: 1fr;
  }

  .strategy-recent-tests-row {
    gap: 8px;
  }

  .strategy-recent-tests-row--head {
    display: none;
  }

  .landing-preview-media-slot {
    min-height: 260px;
  }

  .preview-summary-tile {
    position: static;
    margin-top: 12px;
  }

  .preview-chart-stage {
    min-height: 190px;
  }

  .landing-get-started-section {
    padding-left: 14px;
    padding-right: 14px;
  }

  .landing-hero-copy {
    padding: 24px;
  }

  .landing-hero-copy h1 {
    max-width: none;
  }

  .media-placeholder-grid {
    grid-template-columns: 1fr;
  }

  .config-preview-grid {
    grid-template-columns: 1fr;
  }

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

  .header-meta dd,
  .details-grid dd,
  .result-list-meta dd,
  .config-preview dd,
  .config-readiness-grid dd,
  .created-test-card dd {
    text-align: left;
  }

  .header-meta dl,
  .details-grid dl,
  .result-list-meta,
  .config-preview dl,
  .config-readiness-grid,
  .created-test-card dl {
    grid-template-columns: 1fr;
  }

  .strategy-row-meta,
  .strategy-preview-pills,
  .dataset-row-meta {
    justify-content: flex-start;
  }

  .visual-metrics {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  body.strategy-detail-inter-page .app-header--public,
body.dashboard-inter-page .app-header--workspace,
body.result-history-inter-page .app-header--workspace,
body.single-result-review-inter-page .app-header--workspace,
body.account-settings-inter-page .app-header--workspace {
  display: none;
}

  .mobile-shell-header {
    position: relative;
    z-index: 20;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
    align-items: center;
    width: 100%;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(13, 91, 215, 0.1);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 18px rgba(18, 32, 61, 0.05);
  }

  .mobile-shell-brand {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 9px;
    color: #102844;
    font-weight: 700;
    text-decoration: none;
  }

  .mobile-shell-brand .brand-mark-badge {
    width: 34px;
    height: 34px;
    min-width: 34px;
  }

  .mobile-shell-page-label {
    display: none;
  }

  .mobile-shell-menu-button {
    min-width: 60px;
    min-height: 41px;
    padding: 0 10px;
    border: 1px solid rgba(13, 91, 215, 0.16);
    border-radius: 14px;
    background: #ffffff;
    color: #17375d;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(18, 32, 61, 0.045);
  }

  .mobile-shell-menu-button[aria-expanded="true"] {
    border-color: rgba(13, 91, 215, 0.28);
    background: #eff6ff;
    color: #0d5bd7;
  }

  .mobile-shell-menu-button:hover {
    border-color: rgba(13, 91, 215, 0.26);
    background: #f7fbff;
    color: #0d5bd7;
  }

  .mobile-shell-menu-button:focus {
    outline: none;
    border-color: rgba(13, 91, 215, 0.3);
  }

  .mobile-shell-menu-button:focus-visible {
    outline: 2px solid rgba(13, 91, 215, 0.5);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(13, 91, 215, 0.12);
  }

  .mobile-shell-menu {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding-top: 10px;
  }

  .mobile-shell-menu[hidden] {
    display: none;
  }

  .mobile-shell-menu a {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border: 1px solid rgba(13, 91, 215, 0.08);
    border-radius: 14px;
    background: rgba(248, 251, 255, 0.94);
    color: #17375d;
    font-size: 0.92rem;
    font-weight: 650;
    line-height: 1.2;
    text-decoration: none;
    overflow-wrap: anywhere;
  }

  .mobile-shell-menu a[aria-current="page"] {
    border-color: rgba(13, 91, 215, 0.22);
    background: #eef5ff;
    color: #0d5bd7;
  }

body.dashboard-inter-page .workspace-shell,
body.result-history-inter-page .workspace-shell,
body.single-result-review-inter-page .workspace-shell,
body.account-settings-inter-page .workspace-shell {
  display: block;
}

body.dashboard-inter-page .workspace-sidebar--shell,
body.result-history-inter-page .workspace-sidebar--shell,
body.single-result-review-inter-page .workspace-sidebar--shell,
body.account-settings-inter-page .workspace-sidebar--shell {
  display: none;
}

  body.dashboard-inter-page .workspace-content,
  body.result-history-inter-page .workspace-content,
  body.single-result-review-inter-page .workspace-content,
  body.account-settings-inter-page .workspace-content,
  body.strategy-detail-inter-page .page-shell--strategy-detail {
    width: 100%;
    max-width: 100%;
    padding-top: 14px;
  }

  body.strategy-detail-inter-page .page-shell--strategy-detail {
    box-sizing: border-box;
    padding-right: 14px;
    padding-left: 14px;
  }

  body.strategy-detail-inter-page .strategy-browser-sidebar {
    display: none;
  }

  body.strategy-detail-inter-page .strategy-detail-layout {
    display: block;
  }

  body.strategy-detail-inter-page .strategy-detail-main {
    width: 100%;
    max-width: 100%;
  }

  body.strategy-detail-inter-page .strategy-detail-title-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 10px;
    align-items: start;
    width: 100%;
  }

  body.strategy-detail-inter-page .strategy-detail-title-row h1 {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    margin: 0;
  }

  body.strategy-detail-inter-page .strategy-detail-title-meta {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  body.strategy-detail-inter-page .strategy-save-button {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: start;
    margin: 1px 0 0;
  }

  .strategy-mobile-section-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    width: 100%;
    margin: 4px 0 14px;
    padding: 4px;
    border: 1px solid rgba(13, 91, 215, 0.1);
    border-radius: 14px;
    background: rgba(239, 246, 255, 0.78);
    box-shadow: 0 8px 18px rgba(18, 32, 61, 0.04);
  }

  .strategy-mobile-section-tab {
    display: inline-flex;
    min-width: 0;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: 11px;
    background: transparent;
    color: #315273;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.12;
    text-align: center;
    cursor: pointer;
  }

  .strategy-mobile-section-tab[aria-selected="true"] {
    border-color: rgba(13, 91, 215, 0.2);
    background: #0d5bd7;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(13, 91, 215, 0.18);
  }

  .strategy-mobile-section-tab:focus {
    outline: none;
  }

  .strategy-mobile-section-tab:focus-visible {
    outline: 2px solid rgba(13, 91, 215, 0.48);
    outline-offset: 2px;
  }

  body.strategy-detail-inter-page[data-strategy-mobile-section="overview"] [data-strategy-mobile-panel="configure"],
  body.strategy-detail-inter-page[data-strategy-mobile-section="configure"] [data-strategy-mobile-panel="overview"] {
    display: none;
  }

  .mobile-inline-back {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    margin: 0 0 12px;
    color: #0d5bd7;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
  }

  .mobile-experience-notice {
    margin-bottom: 18px;
    padding: 11px 12px;
    gap: 7px;
  }

  .mobile-experience-notice__actions {
    gap: 7px;
  }

  .mobile-experience-notice__button,
  .mobile-experience-notice__link {
    min-height: 38px;
    font-size: 0.84rem;
  }

  .mobile-experience-notice__button {
    padding: 0 12px;
  }

  .mobile-experience-notice__link {
    padding: 0 6px;
  }

  .workspace-page-header,
  .dashboard-welcome-row,
  .review-breadcrumb-row,
  .strategy-detail-header {
    margin-top: 0;
  }

  body.single-result-review-inter-page .result-view--single {
    margin-top: 6px;
  }

  .mobile-experience-notice + .result-view--single .review-breadcrumb-row {
    margin-top: -2px;
  }

  .result-view--single .review-heading-actions {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1fr);
    gap: 8px;
    align-self: stretch;
    width: 100%;
    justify-content: stretch;
    transform: none;
  }

  .result-view--single .review-heading-actions .review-secondary-action,
  .result-view--single .review-heading-actions .review-download-button {
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding-right: 10px;
    padding-left: 10px;
    font-size: 0.84rem;
    line-height: 1.1;
    white-space: nowrap;
  }

  .result-view--single .review-heading-actions .review-action-icon,
  .result-view--single .review-heading-actions .review-action-arrow {
    flex: 0 0 auto;
  }

  .result-view--single .header-context--single {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .result-view--single .header-context-item {
    min-width: 0;
    padding: 10px 11px;
  }

  .result-view--single .header-context-item:nth-child(1) {
    order: 1;
  }

  .result-view--single .header-context-item:nth-child(4) {
    order: 2;
  }

  .result-view--single .header-context-item:nth-child(2) {
    order: 3;
  }

  .result-view--single .header-context-item:nth-child(5) {
    order: 4;
  }

  .result-view--single .header-context-item:nth-child(3) {
    grid-column: 1 / -1;
    order: 5;
  }

  .result-view--single .header-context-value {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .result-view--single .summary-strip--single {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .result-view--single .summary-card--review {
    min-width: 0;
    min-height: 118px;
    padding: 13px 12px;
  }

  .result-view--single .summary-card-label {
    overflow-wrap: anywhere;
  }

  body.single-result-review-inter-page .result-view--single .summary-strip--single,
  body.single-result-review-inter-page .result-view--parameter-sweep .summary-strip--single.sweep-summary-strip,
  body.single-result-review-inter-page .result-view--walkforward .summary-strip--single.walkforward-summary-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow-x: visible;
  }

  body.single-result-review-inter-page .result-view--single .summary-card--review {
    width: auto;
    min-width: 0;
    max-width: 100%;
  }

  body.single-result-review-inter-page .result-view--parameter-sweep .summary-strip--single.sweep-summary-strip .summary-card--review:last-child {
    grid-column: 1;
  }

  body.single-result-review-inter-page .result-view--single .visual-header,
  body.single-result-review-inter-page .result-view--backtest.result-view--single .visual-header,
  body.single-result-review-inter-page .result-view--parameter-sweep .sweep-heatmap-panel .visual-header,
  body.single-result-review-inter-page .result-view--walkforward .visual-header,
  body.single-result-review-inter-page .walkforward-oos-header-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    justify-content: stretch;
    width: 100%;
  }

  body.single-result-review-inter-page .result-view--single .visual-header > div,
  body.single-result-review-inter-page .result-view--parameter-sweep .sweep-heatmap-panel .visual-header > div,
  body.single-result-review-inter-page .walkforward-oos-header-main {
    width: 100%;
    min-width: 0;
  }

  body.single-result-review-inter-page .review-visual-title {
    width: 100%;
    max-width: 100%;
    align-items: flex-start;
    line-height: 1.2;
  }

  body.single-result-review-inter-page .visual-copy,
  body.single-result-review-inter-page .result-view--backtest .visual-copy,
  body.single-result-review-inter-page .walkforward-oos-description {
    width: 100%;
    max-width: 100%;
    margin-top: 4px;
    white-space: normal;
  }

  body.single-result-review-inter-page .result-view--single .review-chart-tabs,
  body.single-result-review-inter-page .result-view--backtest.result-view--single .review-chart-tabs,
  body.single-result-review-inter-page .walkforward-oos-header-row .review-chart-tabs {
    width: 100%;
    max-width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap !important;
    overflow-x: visible;
    overflow-y: visible;
    gap: 6px;
    padding-bottom: 0;
  }

  body.single-result-review-inter-page .result-view--single .review-chart-tab {
    min-width: 0;
    min-height: 38px;
    padding: 0 9px;
    font-size: 0.8rem;
    line-height: 1.1;
    white-space: nowrap;
  }

  body.single-result-review-inter-page .result-view--parameter-sweep .sweep-heatmap-panel .sweep-metric-selector,
  body.single-result-review-inter-page .sweep-ranking-selector {
    width: 100%;
    max-width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 6px;
  }

  body.single-result-review-inter-page .result-view--parameter-sweep .sweep-heatmap-panel .sweep-metric-selector select,
  body.single-result-review-inter-page .sweep-ranking-selector select {
    max-width: 100%;
  }

  body.single-result-review-inter-page .review-chart-stage,
  body.single-result-review-inter-page .sweep-heatmap-wrap {
    margin-top: 10px;
  }
}

@media (max-width: 359px) {
  .result-view--single .review-heading-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .result-view--single .result-artifact-control {
    min-width: 0;
  }

  .result-view--single .result-artifact-trigger {
    min-width: 0;
  }

  .result-artifact-menu {
    width: min(320px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  body.strategy-detail-inter-page .app-header--public {
    display: none;
  }

  body.strategy-detail-inter-page .mobile-shell-header {
    position: relative;
    z-index: 20;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 14px;
    align-items: center;
    width: 100%;
    padding: 13px 22px;
    border-bottom: 1px solid rgba(13, 91, 215, 0.1);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 8px 18px rgba(18, 32, 61, 0.045);
  }

  body.strategy-detail-inter-page .mobile-shell-brand {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
    color: #102844;
    font-weight: 700;
    text-decoration: none;
  }

  body.strategy-detail-inter-page .mobile-shell-brand .brand-mark-badge {
    width: 36px;
    height: 36px;
    min-width: 36px;
  }

  body.strategy-detail-inter-page .mobile-shell-menu-button {
    min-width: 66px;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid rgba(13, 91, 215, 0.16);
    border-radius: 14px;
    background: #ffffff;
    color: #17375d;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(18, 32, 61, 0.045);
  }

  body.strategy-detail-inter-page .mobile-shell-menu-button[aria-expanded="true"],
  body.strategy-detail-inter-page .mobile-shell-menu-button:hover {
    border-color: rgba(13, 91, 215, 0.28);
    background: #eff6ff;
    color: #0d5bd7;
  }

  body.strategy-detail-inter-page .mobile-shell-menu-button:focus {
    outline: none;
    border-color: rgba(13, 91, 215, 0.3);
  }

  body.strategy-detail-inter-page .mobile-shell-menu-button:focus-visible {
    outline: 2px solid rgba(13, 91, 215, 0.5);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(13, 91, 215, 0.12);
  }

  body.strategy-detail-inter-page .mobile-shell-menu {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding-top: 10px;
  }

  body.strategy-detail-inter-page .mobile-shell-menu[hidden] {
    display: none;
  }

  body.strategy-detail-inter-page .mobile-shell-menu a {
    display: flex;
    min-height: 44px;
    align-items: center;
    padding: 9px 12px;
    border: 1px solid rgba(13, 91, 215, 0.08);
    border-radius: 14px;
    background: rgba(248, 251, 255, 0.94);
    color: #17375d;
    font-size: 0.93rem;
    font-weight: 650;
    line-height: 1.2;
    text-decoration: none;
  }

  body.strategy-detail-inter-page .mobile-shell-menu a[aria-current="page"] {
    border-color: rgba(13, 91, 215, 0.22);
    background: #eef5ff;
    color: #0d5bd7;
  }

  body.strategy-detail-inter-page .mobile-experience-notice {
    display: none;
  }

  body.strategy-detail-inter-page .page-shell--strategy-detail {
    box-sizing: border-box;
    width: min(100% - 32px, 980px);
    max-width: none;
    padding-top: 18px;
  }

  body.strategy-detail-inter-page .mobile-inline-back {
    display: none;
  }

  body.strategy-detail-inter-page .strategy-detail-layout {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
  }

  body.strategy-detail-inter-page .strategy-detail-layout::before {
    left: 180px;
  }

  body.strategy-detail-inter-page .strategy-browser-sidebar {
    position: sticky;
    top: 14px;
    display: grid;
    gap: 10px;
    width: 180px;
    max-height: calc(100vh - 28px);
    padding: 1px 12px 10px 0;
    overflow-y: auto;
  }

  body.strategy-detail-inter-page .strategy-browser-head {
    padding-right: 0;
  }

  body.strategy-detail-inter-page .strategy-browser-inline-link,
  body.strategy-detail-inter-page .strategy-browser-link {
    min-width: 0;
    padding: 9px 8px;
    gap: 8px;
    font-size: 0.84rem;
  }

  body.strategy-detail-inter-page .strategy-browser-destination-copy,
  body.strategy-detail-inter-page .strategy-browser-link span:last-child {
    min-width: 0;
  }

  body.strategy-detail-inter-page .strategy-browser-destination-meta {
    white-space: normal;
  }

  body.strategy-detail-inter-page .strategy-detail-main {
    min-width: 0;
    width: 100%;
  }

  body.strategy-detail-inter-page .strategy-detail-hero {
    grid-template-columns: 1fr;
  }

  body.strategy-detail-inter-page .strategy-detail-title-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
    align-items: start;
    width: 100%;
  }

  body.strategy-detail-inter-page .strategy-detail-title-row h1 {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    margin: 0;
  }

  body.strategy-detail-inter-page .strategy-detail-title-meta {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  body.strategy-detail-inter-page .strategy-save-button {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: start;
    margin: 1px 0 0;
  }

  body.strategy-detail-inter-page .strategy-mobile-section-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    width: 100%;
    margin: 6px 0 16px;
    padding: 4px;
    border: 1px solid rgba(13, 91, 215, 0.1);
    border-radius: 14px;
    background: rgba(239, 246, 255, 0.78);
    box-shadow: 0 8px 18px rgba(18, 32, 61, 0.04);
  }

  body.strategy-detail-inter-page .strategy-mobile-section-tab {
    display: inline-flex;
    min-width: 0;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: 11px;
    background: transparent;
    color: #315273;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.12;
    text-align: center;
    cursor: pointer;
  }

  body.strategy-detail-inter-page .strategy-mobile-section-tab[aria-selected="true"] {
    border-color: rgba(13, 91, 215, 0.2);
    background: #0d5bd7;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(13, 91, 215, 0.18);
  }

  body.strategy-detail-inter-page .strategy-mobile-section-tab:focus {
    outline: none;
  }

  body.strategy-detail-inter-page .strategy-mobile-section-tab:focus-visible {
    outline: 2px solid rgba(13, 91, 215, 0.48);
    outline-offset: 2px;
  }

  body.strategy-detail-inter-page .strategy-detail-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  body.strategy-detail-inter-page[data-strategy-mobile-section="overview"] [data-strategy-mobile-panel="configure"],
  body.strategy-detail-inter-page[data-strategy-mobile-section="configure"] [data-strategy-mobile-panel="overview"] {
    display: none;
  }

  body.strategy-detail-inter-page .strategy-rules-panel,
  body.strategy-detail-inter-page .strategy-config-panel,
  body.strategy-detail-inter-page .strategy-config-card,
  body.strategy-detail-inter-page .strategy-config-step,
  body.strategy-detail-inter-page .strategy-config-section,
  body.strategy-detail-inter-page .strategy-sweep-preset-grid,
  body.strategy-detail-inter-page .strategy-sweep-preset-card,
  body.strategy-detail-inter-page .strategy-form-grid,
  body.strategy-detail-inter-page .strategy-field {
    min-width: 0;
    max-width: 100%;
  }

  body.strategy-detail-inter-page .strategy-config-panel {
    position: static;
  }

  body.strategy-detail-inter-page .strategy-config-info::after {
    display: none;
    width: min(268px, calc(100vw - 64px));
    max-width: calc(100vw - 64px);
  }

  body.strategy-detail-inter-page .strategy-config-info:hover::after,
  body.strategy-detail-inter-page .strategy-config-info:focus::after,
  body.strategy-detail-inter-page .strategy-config-info:focus-visible::after {
    display: block;
  }

  body.strategy-detail-inter-page .strategy-test-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.strategy-detail-inter-page .strategy-test-tab {
    border-color: rgba(13, 91, 215, 0.14);
    background-color: #f8fbff;
    color: #274665;
    opacity: 1;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
  }

  body.strategy-detail-inter-page .strategy-test-tab:hover {
    border-color: rgba(13, 91, 215, 0.24);
    background-color: #eff6ff;
    color: #0f3b68;
  }

  body.strategy-detail-inter-page #test-backtest:checked ~ .strategy-test-tabs label[for="test-backtest"],
  body.strategy-detail-inter-page #test-sweep:checked ~ .strategy-test-tabs label[for="test-sweep"],
  body.strategy-detail-inter-page #test-walkforward:checked ~ .strategy-test-tabs label[for="test-walkforward"] {
    color: #f7fbff;
    background-color: #173d70;
    border-color: rgba(16, 48, 92, 0.34);
    box-shadow:
      0 6px 14px rgba(23, 61, 112, 0.2),
      0 0 0 1px rgba(122, 171, 255, 0.08);
  }

  body.strategy-detail-inter-page #test-backtest:focus-visible ~ .strategy-test-tabs label[for="test-backtest"],
  body.strategy-detail-inter-page #test-sweep:focus-visible ~ .strategy-test-tabs label[for="test-sweep"],
  body.strategy-detail-inter-page #test-walkforward:focus-visible ~ .strategy-test-tabs label[for="test-walkforward"] {
    outline: 2px solid rgba(13, 91, 215, 0.58);
    outline-offset: 2px;
    box-shadow:
      0 0 0 4px rgba(13, 91, 215, 0.14),
      inset 0 1px 0 rgba(255, 255, 255, 0.76);
  }

  body.strategy-detail-inter-page #test-backtest:checked:focus-visible ~ .strategy-test-tabs label[for="test-backtest"],
  body.strategy-detail-inter-page #test-sweep:checked:focus-visible ~ .strategy-test-tabs label[for="test-sweep"],
  body.strategy-detail-inter-page #test-walkforward:checked:focus-visible ~ .strategy-test-tabs label[for="test-walkforward"] {
    box-shadow:
      0 0 0 4px rgba(13, 91, 215, 0.14),
      0 6px 14px rgba(23, 61, 112, 0.2),
      0 0 0 1px rgba(122, 171, 255, 0.08);
  }

  body.strategy-detail-inter-page .strategy-form-grid,
  body.strategy-detail-inter-page .strategy-form-grid--walkforward-periods {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.strategy-detail-inter-page .strategy-form-grid--sweep-ranges,
  body.strategy-detail-inter-page .strategy-form-grid--walkforward-ranges,
  body.strategy-detail-inter-page .strategy-sweep-preset-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body.strategy-detail-inter-page .strategy-field--full,
  body.strategy-detail-inter-page .strategy-form-grid--costs {
    grid-column: 1 / -1;
  }

  body.strategy-detail-inter-page .strategy-primary-visual,
  body.strategy-detail-inter-page .strategy-visual-media,
  body.strategy-detail-inter-page .strategy-visual-media img {
    max-width: 100%;
  }

  body.strategy-detail-inter-page .strategy-recent-tests-section {
    min-width: 0;
  }

  body.strategy-detail-inter-page .strategy-recent-tests-table {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }

  body.strategy-detail-inter-page .strategy-recent-tests-row {
    grid-template-columns:
      minmax(150px, 1.1fr)
      minmax(190px, 1.35fr)
      minmax(95px, 0.7fr)
      minmax(120px, 0.85fr)
      minmax(230px, 1.65fr)
      minmax(115px, 0.8fr)
      minmax(120px, 0.8fr);
    gap: 8px;
    min-width: 1100px;
  }

  body.strategy-detail-inter-page .strategy-recent-tests-row--head {
    display: grid;
  }
}

@media (max-width: 1199px) {
  body.strategy-detail-inter-page .app-header--public {
    display: none;
  }

  body.strategy-detail-inter-page .mobile-shell-header--public {
    position: relative;
    z-index: 120;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
    align-items: center;
    width: 100%;
    min-height: 64px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(13, 91, 215, 0.1);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 8px 18px rgba(18, 32, 61, 0.05);
  }

  body.strategy-detail-inter-page .mobile-shell-brand {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 9px;
    color: #102844;
    font-weight: 700;
    text-decoration: none;
  }

  body.strategy-detail-inter-page .mobile-shell-brand .brand-mark-badge {
    width: 34px;
    height: 34px;
    min-width: 34px;
  }

  body.strategy-detail-inter-page .mobile-shell-menu-button {
    display: inline-flex;
    width: 40px;
    min-width: 40px;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(13, 91, 215, 0.16);
    border-radius: 10px;
    background: #ffffff;
    color: #17375d;
    font: inherit;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(18, 32, 61, 0.045);
  }

  body.strategy-detail-inter-page .mobile-shell-menu-button:hover,
  body.strategy-detail-inter-page .mobile-shell-menu-button[aria-expanded="true"] {
    border-color: rgba(13, 91, 215, 0.28);
    background: #eff6ff;
    color: #0d5bd7;
  }

  body.strategy-detail-inter-page .mobile-shell-menu-button:focus-visible,
  body.strategy-detail-inter-page .mobile-shell-menu-close:focus-visible,
  body.strategy-detail-inter-page .mobile-shell-menu-links a:focus-visible {
    outline: 2px solid rgba(13, 91, 215, 0.52);
    outline-offset: 3px;
  }

  body.strategy-detail-inter-page .mobile-shell-menu-button-icon {
    display: grid;
    place-items: center;
    gap: 4px;
    width: 18px;
    margin: auto;
  }

  body.strategy-detail-inter-page .mobile-shell-menu-button-icon span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #173552;
  }

  body.strategy-detail-inter-page .mobile-shell-menu {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: none;
    isolation: isolate;
    visibility: hidden;
    pointer-events: none;
  }

  body.strategy-detail-inter-page .mobile-shell-menu[aria-hidden="false"] {
    display: block;
    visibility: visible;
    pointer-events: auto;
  }

  body.strategy-detail-inter-page .mobile-shell-menu[hidden] {
    display: none;
  }

  body.strategy-detail-inter-page .mobile-shell-menu-backdrop {
    position: absolute;
    inset: 0;
    z-index: 1;
    border: 0;
    background: rgba(7, 18, 38, 0.58);
    opacity: 0;
    transition: opacity 180ms ease;
    cursor: pointer;
  }

  body.strategy-detail-inter-page .mobile-shell-menu-drawer {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    display: grid;
    width: min(88vw, 360px);
    height: 100vh;
    height: 100dvh;
    grid-template-rows: auto 1fr;
    align-content: start;
    gap: 14px;
    padding: 16px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-left: 1px solid rgba(13, 91, 215, 0.12);
    background: #f8fbff;
    box-shadow:
      -28px 0 64px -30px rgba(15, 23, 42, 0.48),
      inset 1px 0 0 rgba(255, 255, 255, 0.9);
    transform: translateX(100%);
    transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  body.strategy-detail-inter-page .mobile-shell-menu[aria-hidden="false"] .mobile-shell-menu-backdrop {
    opacity: 1;
  }

  body.strategy-detail-inter-page .mobile-shell-menu[aria-hidden="false"] .mobile-shell-menu-drawer {
    transform: translateX(0);
  }

  body.strategy-detail-inter-page .mobile-shell-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 46px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(13, 91, 215, 0.1);
    color: #102844;
    font-weight: 750;
  }

  body.strategy-detail-inter-page .mobile-shell-menu-close {
    display: inline-flex;
    width: 40px;
    min-width: 40px;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(13, 91, 215, 0.16);
    border-radius: 12px;
    background: #ffffff;
    color: #315273;
    cursor: pointer;
  }

  body.strategy-detail-inter-page .mobile-shell-menu-close-icon,
  body.strategy-detail-inter-page .mobile-shell-menu-close-icon svg {
    display: block;
    width: 18px;
    height: 18px;
  }

  body.strategy-detail-inter-page .mobile-shell-menu-close-icon svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  body.strategy-detail-inter-page .mobile-shell-menu-links {
    display: grid;
    align-content: start;
    gap: 8px;
  }

  body.strategy-detail-inter-page .mobile-shell-menu-links a {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    border: 1px solid rgba(13, 91, 215, 0.1);
    border-radius: 13px;
    background: #ffffff;
    color: #17375d;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(18, 32, 61, 0.035);
  }

  body.strategy-detail-inter-page .mobile-shell-menu-links a[aria-current="page"] {
    border-color: rgba(13, 91, 215, 0.26);
    background: #eef5ff;
    color: #0d5bd7;
    font-weight: 700;
  }

  body.strategy-detail-inter-page .page-shell--strategy-detail {
    box-sizing: border-box;
    width: min(100% - 32px, 980px);
    max-width: none;
    padding-top: 18px;
  }

  body.strategy-detail-inter-page .strategy-detail-layout {
    display: block;
  }

  body.strategy-detail-inter-page .strategy-detail-layout::before,
  body.strategy-detail-inter-page .strategy-browser-sidebar {
    display: none;
  }

  body.strategy-detail-inter-page .strategy-browser-sidebar {
    width: 0;
    height: 0;
    max-height: 0;
    overflow: hidden;
    padding: 0;
  }

  body.strategy-detail-inter-page .strategy-detail-main {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  body.strategy-detail-inter-page .mobile-inline-back {
    display: flex;
    width: fit-content;
    margin-bottom: 10px;
  }

  body.strategy-detail-inter-page .strategy-detail-hero {
    grid-template-columns: 1fr;
  }

  body.strategy-detail-inter-page .strategy-detail-title-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
    align-items: start;
    width: 100%;
  }

  body.strategy-detail-inter-page .strategy-detail-title-row h1 {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    margin: 0;
  }

  body.strategy-detail-inter-page .strategy-detail-title-meta {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  body.strategy-detail-inter-page .strategy-save-button {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: start;
    margin: 1px 0 0;
  }

  body.strategy-detail-inter-page .strategy-mobile-section-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    width: 100%;
    margin: 6px 0 16px;
    padding: 4px;
    border: 1px solid rgba(13, 91, 215, 0.1);
    border-radius: 14px;
    background: rgba(239, 246, 255, 0.78);
    box-shadow: 0 8px 18px rgba(18, 32, 61, 0.04);
  }

  body.strategy-detail-inter-page .strategy-mobile-section-tab {
    display: inline-flex;
    min-width: 0;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: 11px;
    background: transparent;
    color: #315273;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.12;
    text-align: center;
    cursor: pointer;
  }

  body.strategy-detail-inter-page .strategy-mobile-section-tab[aria-selected="true"] {
    border-color: rgba(13, 91, 215, 0.2);
    background: #0d5bd7;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(13, 91, 215, 0.18);
  }

  body.strategy-detail-inter-page .strategy-mobile-section-tab:focus {
    outline: none;
  }

  body.strategy-detail-inter-page .strategy-mobile-section-tab:focus-visible {
    outline: 2px solid rgba(13, 91, 215, 0.48);
    outline-offset: 2px;
  }

  body.strategy-detail-inter-page .strategy-detail-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  body.strategy-detail-inter-page[data-strategy-mobile-section="overview"] [data-strategy-mobile-panel="configure"],
  body.strategy-detail-inter-page[data-strategy-mobile-section="configure"] [data-strategy-mobile-panel="overview"] {
    display: none;
  }

  body.strategy-detail-inter-page .strategy-rules-panel,
  body.strategy-detail-inter-page .strategy-config-panel,
  body.strategy-detail-inter-page .strategy-config-card,
  body.strategy-detail-inter-page .strategy-config-step,
  body.strategy-detail-inter-page .strategy-config-section,
  body.strategy-detail-inter-page .strategy-sweep-preset-grid,
  body.strategy-detail-inter-page .strategy-sweep-preset-card,
  body.strategy-detail-inter-page .strategy-form-grid,
  body.strategy-detail-inter-page .strategy-field,
  body.strategy-detail-inter-page .strategy-walkforward-workflow-card,
  body.strategy-detail-inter-page .strategy-walkforward-method-card,
  body.strategy-detail-inter-page .strategy-walkforward-range-card,
  body.strategy-detail-inter-page .strategy-sweep-range-card,
  body.strategy-detail-inter-page .strategy-dataset-compact-card {
    min-width: 0;
    max-width: 100%;
  }

  body.strategy-detail-inter-page .strategy-config-panel {
    position: static;
  }

  body.strategy-detail-inter-page .strategy-test-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow-x: auto;
    overscroll-behavior-x: contain;
  }

  body.strategy-detail-inter-page .strategy-test-tab {
    min-width: 0;
    white-space: normal;
  }

  body.strategy-detail-inter-page .strategy-form-grid,
  body.strategy-detail-inter-page .strategy-form-grid--sweep-ranges,
  body.strategy-detail-inter-page .strategy-form-grid--walkforward-ranges,
  body.strategy-detail-inter-page .strategy-sweep-preset-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body.strategy-detail-inter-page .strategy-field--full,
  body.strategy-detail-inter-page .strategy-form-grid--costs {
    grid-column: 1 / -1;
  }

  body.strategy-detail-inter-page .strategy-config-info::after {
    display: none;
    width: min(268px, calc(100vw - 64px));
    max-width: calc(100vw - 64px);
  }

  body.strategy-detail-inter-page .strategy-config-info:hover::after,
  body.strategy-detail-inter-page .strategy-config-info:focus::after,
  body.strategy-detail-inter-page .strategy-config-info:focus-visible::after {
    display: block;
  }

  body.strategy-detail-inter-page .strategy-walkforward-workflow-cards,
  body.strategy-detail-inter-page .strategy-walkforward-range-grid,
  body.strategy-detail-inter-page .strategy-form-grid--walkforward-periods {
    grid-template-columns: minmax(0, 1fr);
  }

  body.strategy-detail-inter-page .strategy-walkforward-method-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  body.strategy-detail-inter-page .strategy-walkforward-method-card {
    width: 100%;
    justify-content: flex-start;
  }

  body.strategy-detail-inter-page .strategy-walkforward-topn-field input {
    flex-basis: 112px;
  }

  body.strategy-detail-inter-page .strategy-dataset-selection-row {
    grid-template-columns: minmax(0, 1fr);
  }

  body.strategy-detail-inter-page .strategy-dataset-trigger,
  body.strategy-detail-inter-page .strategy-run-button {
    box-sizing: border-box;
    width: auto;
  }

  body.strategy-detail-inter-page .strategy-recent-tests-section {
    min-width: 0;
  }

  body.strategy-detail-inter-page .strategy-recent-tests-table {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }

  body.strategy-detail-inter-page .strategy-recent-tests-row {
    grid-template-columns:
      minmax(150px, 1.1fr)
      minmax(190px, 1.35fr)
      minmax(95px, 0.7fr)
      minmax(120px, 0.85fr)
      minmax(230px, 1.65fr)
      minmax(115px, 0.8fr)
      minmax(120px, 0.8fr);
    gap: 8px;
    min-width: 1100px;
  }

  body.strategy-detail-inter-page .strategy-recent-tests-row--head {
    display: grid;
  }

  #dataset-modal.strategy-dataset-modal-shell,
  body.strategy-detail-inter-page .strategy-pre-run-modal-shell {
    align-items: stretch;
    padding: 12px;
  }

  #dataset-modal .strategy-dataset-modal-card,
  body.strategy-detail-inter-page .strategy-pre-run-modal-card {
    width: 100%;
    max-height: calc(100dvh - 24px);
    overflow: hidden;
  }

  #dataset-modal .strategy-dataset-modal-body,
  body.strategy-detail-inter-page .strategy-pre-run-modal-card .strategy-dataset-modal-body {
    min-height: 0;
    overflow-y: auto;
  }

  #dataset-modal .strategy-dataset-modal-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  #dataset-modal .strategy-dataset-modal-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(13, 91, 215, 0), rgba(13, 91, 215, 0.16), rgba(13, 91, 215, 0));
  }

  #dataset-modal .strategy-dataset-modal-actions,
  body.strategy-detail-inter-page .strategy-pre-run-modal-card .strategy-dataset-modal-actions {
    flex-wrap: wrap;
  }
}

@media (min-width: 900px) and (max-width: 1199px) {
  body.strategy-detail-inter-page .strategy-form-grid,
  body.strategy-detail-inter-page .strategy-form-grid--walkforward-periods {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.strategy-detail-inter-page .strategy-walkforward-workflow-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.strategy-detail-inter-page .strategy-dataset-selection-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  body.strategy-detail-inter-page .strategy-dataset-trigger,
  body.strategy-detail-inter-page .strategy-run-button {
    width: auto;
  }
}

@media (max-width: 767px) {
  body.strategy-detail-inter-page .page-shell--strategy-detail {
    width: 100%;
    padding: 14px 14px 28px;
  }

  body.strategy-detail-inter-page .mobile-inline-back {
    margin-bottom: 12px;
  }

  body.strategy-detail-inter-page .strategy-detail-header,
  body.strategy-detail-inter-page .strategy-rules-panel,
  body.strategy-detail-inter-page .strategy-config-card,
  body.strategy-detail-inter-page .strategy-config-section,
  body.strategy-detail-inter-page .strategy-costs-accordion,
  body.strategy-detail-inter-page .strategy-recent-tests-section {
    border-radius: 14px;
  }

  body.strategy-detail-inter-page .strategy-config-head {
    padding: 14px 14px 12px;
  }

  body.strategy-detail-inter-page .strategy-test-tabs {
    margin-right: 12px;
    margin-left: 12px;
  }

  body.strategy-detail-inter-page .strategy-config-intro {
    margin: 12px 12px 0;
    padding: 14px;
  }

  body.strategy-detail-inter-page .strategy-config-section,
  body.strategy-detail-inter-page .strategy-run-button {
    margin-right: 12px;
    margin-left: 12px;
  }

  body.strategy-detail-inter-page .strategy-example-caption-grid {
    grid-template-columns: 1fr;
  }

  body.strategy-detail-inter-page .strategy-research-options {
    grid-template-columns: 1fr;
  }

  body.strategy-detail-inter-page .strategy-guidance-parameter-list > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  body.strategy-detail-inter-page .strategy-content-root {
    --strategy-education-section-gap: 24px;
    --strategy-education-heading-gap: 10px;
    --strategy-education-internal-gap: 8px;
  }
}

@media (max-width: 1199px) and (max-height: 520px) {
  body.strategy-detail-inter-page .mobile-shell-header--public {
    min-height: 58px;
    padding-top: 9px;
    padding-bottom: 9px;
  }

  body.strategy-detail-inter-page .page-shell--strategy-detail {
    padding-top: 10px;
  }

  body.strategy-detail-inter-page .mobile-inline-back {
    margin-bottom: 8px;
  }

  body.strategy-detail-inter-page .strategy-detail-header {
    margin-bottom: 10px;
  }

  body.strategy-detail-inter-page .strategy-mobile-section-switch {
    margin-bottom: 10px;
  }
}

@media (min-width: 1200px) {
  body.strategy-detail-inter-page .mobile-shell-header--public,
  body.strategy-detail-inter-page .mobile-shell-menu {
    display: none;
    visibility: hidden;
    pointer-events: none;
  }
}

@media (min-width: 1200px) and (max-width: 1399px) {
  body.strategy-detail-inter-page .strategy-form-grid--walkforward-periods {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 1199px) {
  body.dashboard-inter-page .app-header--workspace,
  body.result-history-inter-page .app-header--workspace,
  body.single-result-review-inter-page .app-header--workspace,
  body.account-settings-inter-page .app-header--workspace {
    display: none;
  }

body.dashboard-inter-page .mobile-shell-header--workspace,
body.result-history-inter-page .mobile-shell-header--workspace,
body.single-result-review-inter-page .mobile-shell-header--workspace,
body.account-settings-inter-page .mobile-shell-header--workspace {
    position: relative;
    z-index: 120;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
    align-items: center;
    width: 100%;
    min-height: 64px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(13, 91, 215, 0.1);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 8px 18px rgba(18, 32, 61, 0.05);
  }

  body.dashboard-inter-page .mobile-shell-brand,
  body.result-history-inter-page .mobile-shell-brand,
  body.single-result-review-inter-page .mobile-shell-brand,
  body.account-settings-inter-page .mobile-shell-brand {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 9px;
    color: #102844;
    font-weight: 700;
    text-decoration: none;
  }

  body.dashboard-inter-page .mobile-shell-brand .brand-mark-badge,
  body.result-history-inter-page .mobile-shell-brand .brand-mark-badge,
  body.single-result-review-inter-page .mobile-shell-brand .brand-mark-badge,
  body.account-settings-inter-page .mobile-shell-brand .brand-mark-badge {
    width: 34px;
    height: 34px;
    min-width: 34px;
  }

  body.dashboard-inter-page .mobile-shell-page-label,
  body.result-history-inter-page .mobile-shell-page-label,
  body.single-result-review-inter-page .mobile-shell-page-label,
  body.account-settings-inter-page .mobile-shell-page-label {
    display: none;
  }

body.dashboard-inter-page .mobile-shell-menu-button,
body.result-history-inter-page .mobile-shell-menu-button,
body.single-result-review-inter-page .mobile-shell-menu-button,
body.account-settings-inter-page .mobile-shell-menu-button {
    display: inline-flex;
    width: 40px;
    min-width: 40px;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(13, 91, 215, 0.16);
    border-radius: 10px;
    background: #ffffff;
    color: #17375d;
    font: inherit;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(18, 32, 61, 0.045);
  }

body.dashboard-inter-page .mobile-shell-menu-button:hover,
body.dashboard-inter-page .mobile-shell-menu-button[aria-expanded="true"],
body.result-history-inter-page .mobile-shell-menu-button:hover,
body.result-history-inter-page .mobile-shell-menu-button[aria-expanded="true"],
body.single-result-review-inter-page .mobile-shell-menu-button:hover,
body.single-result-review-inter-page .mobile-shell-menu-button[aria-expanded="true"],
body.account-settings-inter-page .mobile-shell-menu-button:hover,
body.account-settings-inter-page .mobile-shell-menu-button[aria-expanded="true"] {
    border-color: rgba(13, 91, 215, 0.28);
    background: #eff6ff;
    color: #0d5bd7;
  }

body.dashboard-inter-page .mobile-shell-menu-button:focus-visible,
body.dashboard-inter-page .mobile-shell-menu-close:focus-visible,
body.dashboard-inter-page .mobile-shell-menu-links a:focus-visible,
body.result-history-inter-page .mobile-shell-menu-button:focus-visible,
body.result-history-inter-page .mobile-shell-menu-close:focus-visible,
body.result-history-inter-page .mobile-shell-menu-links a:focus-visible,
body.single-result-review-inter-page .mobile-shell-menu-button:focus-visible,
body.single-result-review-inter-page .mobile-shell-menu-close:focus-visible,
body.single-result-review-inter-page .mobile-shell-menu-links a:focus-visible,
body.account-settings-inter-page .mobile-shell-menu-button:focus-visible,
body.account-settings-inter-page .mobile-shell-menu-close:focus-visible,
body.account-settings-inter-page .mobile-shell-menu-links a:focus-visible {
    outline: 2px solid rgba(13, 91, 215, 0.52);
    outline-offset: 3px;
  }

body.dashboard-inter-page .mobile-shell-menu-button-icon,
body.result-history-inter-page .mobile-shell-menu-button-icon,
body.single-result-review-inter-page .mobile-shell-menu-button-icon,
body.account-settings-inter-page .mobile-shell-menu-button-icon {
    display: grid;
    place-items: center;
    gap: 4px;
    width: 18px;
    margin: auto;
  }

body.dashboard-inter-page .mobile-shell-menu-button-icon span,
body.result-history-inter-page .mobile-shell-menu-button-icon span,
body.single-result-review-inter-page .mobile-shell-menu-button-icon span,
body.account-settings-inter-page .mobile-shell-menu-button-icon span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #173552;
  }

body.dashboard-inter-page .mobile-shell-menu,
body.result-history-inter-page .mobile-shell-menu,
body.single-result-review-inter-page .mobile-shell-menu,
body.account-settings-inter-page .mobile-shell-menu {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: none;
    isolation: isolate;
    visibility: hidden;
    pointer-events: none;
  }

body.dashboard-inter-page .mobile-shell-menu[aria-hidden="false"],
body.result-history-inter-page .mobile-shell-menu[aria-hidden="false"],
body.single-result-review-inter-page .mobile-shell-menu[aria-hidden="false"],
body.account-settings-inter-page .mobile-shell-menu[aria-hidden="false"] {
    display: block;
    visibility: visible;
    pointer-events: auto;
  }

body.dashboard-inter-page .mobile-shell-menu[hidden],
body.result-history-inter-page .mobile-shell-menu[hidden],
body.single-result-review-inter-page .mobile-shell-menu[hidden],
body.account-settings-inter-page .mobile-shell-menu[hidden] {
    display: none;
  }

body.dashboard-inter-page .mobile-shell-menu-backdrop,
body.result-history-inter-page .mobile-shell-menu-backdrop,
body.single-result-review-inter-page .mobile-shell-menu-backdrop,
body.account-settings-inter-page .mobile-shell-menu-backdrop {
    position: absolute;
    inset: 0;
    z-index: 1;
    border: 0;
    background: rgba(7, 18, 38, 0.58);
    opacity: 0;
    transition: opacity 180ms ease;
    cursor: pointer;
  }

body.dashboard-inter-page .mobile-shell-menu-drawer,
body.result-history-inter-page .mobile-shell-menu-drawer,
body.single-result-review-inter-page .mobile-shell-menu-drawer,
body.account-settings-inter-page .mobile-shell-menu-drawer {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    display: grid;
    width: min(88vw, 360px);
    height: 100vh;
    height: 100dvh;
    grid-template-rows: auto 1fr;
    align-content: start;
    gap: 14px;
    padding: 16px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-left: 1px solid rgba(13, 91, 215, 0.12);
    background: #f8fbff;
    box-shadow:
      -28px 0 64px -30px rgba(15, 23, 42, 0.48),
      inset 1px 0 0 rgba(255, 255, 255, 0.9);
    transform: translateX(100%);
    transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
  }

body.dashboard-inter-page .mobile-shell-menu[aria-hidden="false"] .mobile-shell-menu-backdrop,
body.result-history-inter-page .mobile-shell-menu[aria-hidden="false"] .mobile-shell-menu-backdrop,
body.single-result-review-inter-page .mobile-shell-menu[aria-hidden="false"] .mobile-shell-menu-backdrop,
body.account-settings-inter-page .mobile-shell-menu[aria-hidden="false"] .mobile-shell-menu-backdrop {
    opacity: 1;
  }

body.dashboard-inter-page .mobile-shell-menu[aria-hidden="false"] .mobile-shell-menu-drawer,
body.result-history-inter-page .mobile-shell-menu[aria-hidden="false"] .mobile-shell-menu-drawer,
body.single-result-review-inter-page .mobile-shell-menu[aria-hidden="false"] .mobile-shell-menu-drawer,
body.account-settings-inter-page .mobile-shell-menu[aria-hidden="false"] .mobile-shell-menu-drawer {
    transform: translateX(0);
  }

body.dashboard-inter-page .mobile-shell-menu-head,
body.result-history-inter-page .mobile-shell-menu-head,
body.single-result-review-inter-page .mobile-shell-menu-head,
body.account-settings-inter-page .mobile-shell-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 46px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(13, 91, 215, 0.1);
    color: #102844;
    font-weight: 750;
  }

body.dashboard-inter-page .mobile-shell-menu-close,
body.result-history-inter-page .mobile-shell-menu-close,
body.single-result-review-inter-page .mobile-shell-menu-close,
body.account-settings-inter-page .mobile-shell-menu-close {
    display: inline-flex;
    width: 40px;
    min-width: 40px;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(13, 91, 215, 0.16);
    border-radius: 12px;
    background: #ffffff;
    color: #315273;
    cursor: pointer;
  }

body.dashboard-inter-page .mobile-shell-menu-close-icon,
body.dashboard-inter-page .mobile-shell-menu-close-icon svg,
body.result-history-inter-page .mobile-shell-menu-close-icon,
body.result-history-inter-page .mobile-shell-menu-close-icon svg,
body.single-result-review-inter-page .mobile-shell-menu-close-icon,
body.single-result-review-inter-page .mobile-shell-menu-close-icon svg,
body.account-settings-inter-page .mobile-shell-menu-close-icon,
body.account-settings-inter-page .mobile-shell-menu-close-icon svg {
    display: block;
    width: 18px;
    height: 18px;
  }

body.dashboard-inter-page .mobile-shell-menu-close-icon svg,
body.result-history-inter-page .mobile-shell-menu-close-icon svg,
body.single-result-review-inter-page .mobile-shell-menu-close-icon svg,
body.account-settings-inter-page .mobile-shell-menu-close-icon svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

body.dashboard-inter-page .mobile-shell-menu-links,
body.result-history-inter-page .mobile-shell-menu-links,
body.single-result-review-inter-page .mobile-shell-menu-links,
body.account-settings-inter-page .mobile-shell-menu-links {
    display: grid;
    align-content: start;
    gap: 8px;
  }

body.dashboard-inter-page .mobile-shell-menu-links a,
body.result-history-inter-page .mobile-shell-menu-links a,
body.single-result-review-inter-page .mobile-shell-menu-links a,
body.account-settings-inter-page .mobile-shell-menu-links a {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    border: 1px solid rgba(13, 91, 215, 0.1);
    border-radius: 13px;
    background: #ffffff;
    color: #17375d;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(18, 32, 61, 0.035);
  }

body.dashboard-inter-page .mobile-shell-menu-links a[aria-current="page"],
body.result-history-inter-page .mobile-shell-menu-links a[aria-current="page"],
body.single-result-review-inter-page .mobile-shell-menu-links a[aria-current="page"],
body.account-settings-inter-page .mobile-shell-menu-links a[aria-current="page"] {
    border-color: rgba(13, 91, 215, 0.26);
    background: #eef5ff;
    color: #0d5bd7;
    font-weight: 700;
  }

body.dashboard-inter-page .workspace-shell,
body.result-history-inter-page .workspace-shell,
body.single-result-review-inter-page .workspace-shell,
body.account-settings-inter-page .workspace-shell {
  display: block;
}

body.dashboard-inter-page .workspace-sidebar--shell,
body.result-history-inter-page .workspace-sidebar--shell,
body.single-result-review-inter-page .workspace-sidebar--shell,
body.account-settings-inter-page .workspace-sidebar--shell {
  display: none;
}

  body.dashboard-inter-page .workspace-content,
  body.result-history-inter-page .workspace-content,
  body.single-result-review-inter-page .workspace-content,
  body.account-settings-inter-page .workspace-content {
    width: 100%;
    max-width: 100%;
    padding-top: 14px;
  }

  @media (prefers-reduced-motion: reduce) {
    body.dashboard-inter-page .mobile-shell-menu-backdrop,
    body.dashboard-inter-page .mobile-shell-menu-drawer,
    body.result-history-inter-page .mobile-shell-menu-backdrop,
    body.result-history-inter-page .mobile-shell-menu-drawer,
    body.single-result-review-inter-page .mobile-shell-menu-backdrop,
    body.single-result-review-inter-page .mobile-shell-menu-drawer {
      transition: none;
    }
  }
}

@media (min-width: 1200px) {
body.dashboard-inter-page .mobile-shell-header--workspace,
body.dashboard-inter-page .mobile-shell-menu,
body.result-history-inter-page .mobile-shell-header--workspace,
body.result-history-inter-page .mobile-shell-menu,
body.single-result-review-inter-page .mobile-shell-header--workspace,
body.single-result-review-inter-page .mobile-shell-menu,
body.account-settings-inter-page .mobile-shell-header--workspace,
body.account-settings-inter-page .mobile-shell-menu {
    display: none;
    visibility: hidden;
    pointer-events: none;
  }
}

.public-mobile-menu {
  display: none;
}

@media (min-width: 1200px) {
  body.public-page--mobile-menu .public-mobile-menu,
  body.public-page--mobile-menu .public-mobile-menu-panel {
    display: none;
    visibility: hidden;
    pointer-events: none;
  }
}

@media (max-width: 1199px) {
  body.public-page--mobile-menu.is-public-mobile-menu-open {
    overflow: hidden;
  }

  body.public-page--mobile-menu .app-header--public {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    padding: 10px 16px;
  }

  body.public-page--mobile-menu .app-header--public .app-nav--public,
  body.public-page--mobile-menu .app-header--public > .public-auth-links {
    display: none;
  }

  body.public-page--mobile-menu .brand-mark-copy--public small {
    display: none;
  }

  body.public-page--mobile-menu .brand-mark-badge--public {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 10px;
  }

  body.public-page--mobile-menu .public-mobile-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  body.public-page--mobile-menu .public-mobile-menu-button {
    display: inline-flex;
    width: 40px;
    min-width: 40px;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(13, 91, 215, 0.14);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.92);
    color: #17375d;
    font: inherit;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(18, 32, 61, 0.05);
    cursor: pointer;
  }

  body.public-page--mobile-menu .public-mobile-menu-button:hover,
  body.public-page--mobile-menu .public-mobile-menu-button[aria-expanded="true"] {
    border-color: rgba(13, 91, 215, 0.3);
    background: #eff6ff;
    color: #0d5bd7;
  }

  body.public-page--mobile-menu .public-mobile-menu-button:focus-visible,
  body.public-page--mobile-menu .public-mobile-menu-close:focus-visible,
  body.public-page--mobile-menu .public-mobile-menu-links a:focus-visible,
  body.public-page--mobile-menu .public-mobile-menu-actions a:focus-visible {
    outline: 2px solid rgba(13, 91, 215, 0.52);
    outline-offset: 3px;
  }

  body.public-page--mobile-menu .public-mobile-menu-button-text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  body.public-page--mobile-menu .public-mobile-menu-button-icon {
    display: grid;
    place-items: center;
    gap: 4px;
    width: 18px;
    margin: auto;
  }

  body.public-page--mobile-menu .public-mobile-menu-button-icon span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #173552;
  }

  body.public-page--mobile-menu .public-mobile-menu-panel {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: none;
    isolation: isolate;
    visibility: hidden;
    pointer-events: none;
  }

  body.public-page--mobile-menu .public-mobile-menu-panel[aria-hidden="false"] {
    display: block;
    visibility: visible;
    pointer-events: auto;
  }

  body.public-page--mobile-menu .public-mobile-menu-backdrop {
    position: absolute;
    inset: 0;
    z-index: 1;
    border: 0;
    background: rgba(7, 18, 38, 0.6);
    opacity: 0;
    transition: opacity 180ms ease;
    cursor: pointer;
  }

  body.public-page--mobile-menu .public-mobile-menu-drawer {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    display: grid;
    width: min(90vw, 380px);
    height: 100vh;
    height: 100dvh;
    grid-template-rows: auto auto auto 1fr;
    align-content: start;
    gap: 14px;
    padding: 16px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-left: 1px solid rgba(13, 91, 215, 0.12);
    background: #f8fbff;
    box-shadow:
      -28px 0 64px -30px rgba(15, 23, 42, 0.48),
      inset 1px 0 0 rgba(255, 255, 255, 0.9);
    transform: translateX(100%);
    transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  body.public-page--mobile-menu .public-mobile-menu-panel[aria-hidden="false"] .public-mobile-menu-backdrop {
    opacity: 1;
  }

  body.public-page--mobile-menu .public-mobile-menu-panel[aria-hidden="false"] .public-mobile-menu-drawer {
    transform: translateX(0);
  }

  body.public-page--mobile-menu .public-mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 46px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(13, 91, 215, 0.1);
    color: #102844;
    font-weight: 750;
  }

  body.public-page--mobile-menu .public-mobile-menu-brand {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
  }

  body.public-page--mobile-menu .public-mobile-menu-brand-mark {
    display: inline-flex;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, #123a78, #2f63d6);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    box-shadow: 0 8px 18px rgba(47, 99, 214, 0.22);
  }

  body.public-page--mobile-menu .public-mobile-menu-close {
    display: inline-flex;
    width: 40px;
    min-width: 40px;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(13, 91, 215, 0.16);
    border-radius: 12px;
    background: #ffffff;
    color: #315273;
    cursor: pointer;
  }

  body.public-page--mobile-menu .public-mobile-menu-close-icon,
  body.public-page--mobile-menu .public-mobile-menu-close-icon svg {
    display: block;
    width: 18px;
    height: 18px;
  }

  body.public-page--mobile-menu .public-mobile-menu-close-icon svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  body.public-page--mobile-menu .public-mobile-menu-links,
  body.public-page--mobile-menu .public-mobile-menu-actions {
    display: grid;
    gap: 8px;
  }

  body.public-page--mobile-menu .public-mobile-menu-links {
    padding-top: 2px;
  }

  body.public-page--mobile-menu .public-mobile-menu-actions {
    margin-top: 4px;
    padding-top: 14px;
    border-top: 1px solid rgba(13, 91, 215, 0.1);
  }

  body.public-page--mobile-menu .public-mobile-menu-links a,
  body.public-page--mobile-menu .public-mobile-menu-actions a {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    border: 1px solid rgba(13, 91, 215, 0.1);
    border-radius: 13px;
    background: #ffffff;
    color: #17375d;
    font-size: 0.9rem;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(18, 32, 61, 0.035);
  }

  body.public-page--mobile-menu .public-mobile-menu-links a {
    font-weight: 500;
  }

  body.public-page--mobile-menu .public-mobile-menu-links a[aria-current="page"] {
    border-color: rgba(13, 91, 215, 0.26);
    background: #eef5ff;
    color: #0d5bd7;
    font-weight: 600;
  }

  body.public-page--mobile-menu .public-mobile-menu-actions a {
    font-weight: 700;
  }

  body.public-page--mobile-menu .public-mobile-menu-actions .header-chip--solid {
    justify-content: center;
    background: #2f63d6;
    color: #ffffff;
  }

  body.public-page--mobile-menu .public-mobile-menu-actions .site-auth-link {
    justify-content: center;
    background: #ffffff;
    color: #17375d;
  }

  @media (prefers-reduced-motion: reduce) {
    body.public-page--mobile-menu .public-mobile-menu-backdrop,
    body.public-page--mobile-menu .public-mobile-menu-drawer {
      transition: none;
    }
  }
}

@media (min-width: 1200px) {
  body.public-page--landing .public-mobile-menu,
  body.public-page--landing .public-mobile-menu-panel {
    display: none;
    visibility: hidden;
    pointer-events: none;
  }
}

@media (max-width: 1023px) {
  body.public-page--landing.is-public-mobile-menu-open {
    overflow: hidden;
  }

  body.public-page--landing .app-header--public {
    flex-direction: row;
    align-items: center;
    min-height: 64px;
    padding: 10px 16px;
  }

  body.public-page--landing .app-nav--public,
  body.public-page--landing .app-header--public > .public-auth-links {
    display: none;
  }

  body.public-page--landing .brand-mark-copy--public small {
    display: none;
  }

  body.public-page--landing .brand-mark-badge--public {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 10px;
  }

  body.public-page--landing .public-mobile-menu {
    display: block;
    margin-left: auto;
  }

  body.public-page--landing .public-mobile-menu-button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border: 1px solid rgba(13, 91, 215, 0.18);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    color: #17375d;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(18, 32, 61, 0.05);
    cursor: pointer;
  }

  body.public-page--landing .public-mobile-menu-button:hover,
  body.public-page--landing .public-mobile-menu-button[aria-expanded="true"] {
    border-color: rgba(13, 91, 215, 0.3);
    background: #eff6ff;
    color: #0d5bd7;
  }

  body.public-page--landing .public-mobile-menu-button:focus-visible,
  body.public-page--landing .public-mobile-menu-close:focus-visible,
  body.public-page--landing .public-mobile-menu-links a:focus-visible,
  body.public-page--landing .public-mobile-menu-actions a:focus-visible {
    outline: 2px solid rgba(13, 91, 215, 0.52);
    outline-offset: 3px;
  }

  body.public-page--landing .public-mobile-menu-panel {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: none;
    isolation: isolate;
    visibility: hidden;
    pointer-events: none;
  }

  body.public-page--landing .public-mobile-menu-panel[aria-hidden="false"] {
    display: block;
    visibility: visible;
    pointer-events: auto;
  }

  body.public-page--landing .public-mobile-menu-backdrop {
    position: absolute;
    inset: 0;
    z-index: 1;
    border: 0;
    background: rgba(7, 18, 38, 0.6);
    opacity: 0;
    transition: opacity 180ms ease;
    cursor: pointer;
  }

  body.public-page--landing .public-mobile-menu-drawer {
    position: absolute;
    top: 0;
    right: 0;
    display: grid;
    z-index: 2;
    width: min(90vw, 380px);
    height: 100vh;
    height: 100dvh;
    grid-template-rows: auto auto auto 1fr;
    align-content: start;
    gap: 14px;
    padding: 16px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-left: 1px solid rgba(13, 91, 215, 0.12);
    background: #f8fbff;
    box-shadow:
      -28px 0 64px -30px rgba(15, 23, 42, 0.48),
      inset 1px 0 0 rgba(255, 255, 255, 0.9);
    transform: translateX(100%);
    transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  body.public-page--landing .public-mobile-menu-panel[aria-hidden="false"] .public-mobile-menu-backdrop {
    opacity: 1;
  }

  body.public-page--landing .public-mobile-menu-panel[aria-hidden="false"] .public-mobile-menu-drawer {
    transform: translateX(0);
  }

  body.public-page--landing .public-mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 46px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(13, 91, 215, 0.1);
    color: #102844;
    font-weight: 750;
  }

  body.public-page--landing .public-mobile-menu-brand {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
  }

  body.public-page--landing .public-mobile-menu-brand-mark {
    display: inline-flex;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, #123a78, #2f63d6);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    box-shadow: 0 8px 18px rgba(47, 99, 214, 0.22);
  }

  body.public-page--landing .public-mobile-menu-close {
    display: inline-flex;
    width: 40px;
    min-width: 40px;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(13, 91, 215, 0.16);
    border-radius: 12px;
    background: #ffffff;
    color: #315273;
    cursor: pointer;
  }

  body.public-page--landing .public-mobile-menu-links,
  body.public-page--landing .public-mobile-menu-actions {
    display: grid;
    gap: 8px;
  }

  body.public-page--landing .public-mobile-menu-links {
    padding-top: 2px;
  }

  body.public-page--landing .public-mobile-menu-actions {
    margin-top: 4px;
    padding-top: 14px;
    border-top: 1px solid rgba(13, 91, 215, 0.1);
  }

  body.public-page--landing .public-mobile-menu-links a,
  body.public-page--landing .public-mobile-menu-actions a {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    border: 1px solid rgba(13, 91, 215, 0.1);
    border-radius: 13px;
    background: #ffffff;
    color: #17375d;
    font-size: 0.9rem;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(18, 32, 61, 0.035);
  }

  body.public-page--landing .public-mobile-menu-links a {
    font-weight: 500;
  }

  body.public-page--landing .public-mobile-menu-links a[aria-current="page"] {
    border-color: rgba(13, 91, 215, 0.26);
    background: #eef5ff;
    color: #0d5bd7;
    font-weight: 600;
  }

  body.public-page--landing .public-mobile-menu-actions a {
    font-weight: 700;
  }

  body.public-page--landing .public-mobile-menu-actions .header-chip--solid {
    justify-content: center;
    background: #2f63d6;
    color: #ffffff;
  }

  body.public-page--landing .public-mobile-menu-actions .site-auth-link {
    justify-content: center;
    background: #ffffff;
    color: #17375d;
  }

  @media (prefers-reduced-motion: reduce) {
    body.public-page--landing .public-mobile-menu-backdrop,
    body.public-page--landing .public-mobile-menu-drawer {
      transition: none;
    }
  }

  body.public-page--landing .page-shell--landing {
    padding-top: 18px;
    --landing-workflow-gap-after: 28px;
    --landing-feature-gap-before: 44px;
    --landing-feature-gap-after: 20px;
    --landing-feature-gap-before-loose: 48px;
    --landing-feature-gap-after-loose: 24px;
    --landing-walkforward-gap-before: 48px;
    --landing-walkforward-gap-after: 20px;
    --landing-get-started-gap-before: 46px;
    --landing-get-started-gap-after: 24px;
  }

  body.public-page--landing .landing-aura-hero,
  body.public-page--landing .landing-aura-workflow,
  body.public-page--landing .landing-aura-feature,
  body.public-page--landing .landing-aura-get-started,
  body.public-page--landing .landing-final-cta,
  body.public-page--landing .landing-aura-walkforward,
  body.public-page--landing .page-shell--landing .app-footer--public {
    width: min(100% - 32px, 860px);
  }

  body.public-page--landing .landing-aura-hero,
  body.public-page--landing .landing-aura-feature,
  body.public-page--landing .landing-aura-feature--reverse,
  body.public-page--landing .landing-aura-walkforward {
    grid-template-columns: minmax(0, 1fr);
  }

  body.public-page--landing .landing-aura-hero {
    gap: 22px;
    align-items: start;
    padding: 4px 0 24px;
  }

  body.public-page--landing .landing-aura-hero-copy {
    top: 0;
  }

  body.public-page--landing .landing-aura-hero .landing-public-hero-actions,
  body.public-page--landing .landing-final-cta-card--aura .landing-public-hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    width: 100%;
  }

  body.public-page--landing .landing-aura-hero .landing-public-hero-actions .load-button,
  body.public-page--landing .landing-aura-hero .landing-public-hero-actions .button-secondary,
  body.public-page--landing .landing-final-cta-card--aura .landing-public-hero-actions .load-button,
  body.public-page--landing .landing-final-cta-card--aura .landing-public-hero-actions .button-secondary {
    min-width: 0;
    min-height: 46px;
    padding-right: 10px;
    padding-left: 10px;
    white-space: nowrap;
  }

  body.public-page--landing .landing-aura-hero-visual {
    position: relative;
    width: min(100%, 560px);
    min-height: 520px;
    max-width: 560px;
    margin: 0 auto;
  }

  body.public-page--landing .landing-aura-dashboard-shell {
    max-width: 440px;
    margin: 76px auto 0;
  }

  body.public-page--landing .landing-aura-floating-card {
    position: absolute;
    margin: 0;
    animation:
      landingHeroFloat 7.2s cubic-bezier(0.42, 0, 0.2, 1) infinite,
      landingVisualHeroCardFadePulse 6s ease-in-out infinite;
  }

  body.public-page--landing .landing-aura-floating-card--top-left {
    top: 250px;
    left: 0;
  }

  body.public-page--landing .landing-aura-floating-card--top-right {
    top: 14px;
    right: 12px;
  }

  body.public-page--landing .landing-aura-floating-card--mid-right {
    top: 168px;
    right: 0;
  }

  body.public-page--landing .landing-aura-floating-card--bottom-left {
    left: 12px;
    bottom: 0;
  }

  body.public-page--landing .landing-aura-floating-card--bottom-right {
    right: 10px;
    bottom: 70px;
  }

  body.public-page--landing .landing-aura-feature-copy {
    order: 1;
  }

  body.public-page--landing .landing-aura-feature-media,
  body.public-page--landing .landing-aura-walkforward-media {
    order: 2;
  }

  body.public-page--landing .landing-aura-pill-row,
  body.public-page--landing .landing-aura-point-grid,
  body.public-page--landing .landing-aura-feature-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  body.public-page--landing .landing-aura-pill-row span,
  body.public-page--landing .landing-aura-backtest-chip {
    min-width: 0;
    width: 100%;
    justify-content: flex-start;
  }

  body.public-page--landing .landing-aura-cta-float {
    display: none;
  }

  body.public-page--landing .landing-final-cta {
    padding-top: 18px;
    padding-bottom: 12px;
  }

  body.public-page--landing .landing-final-cta-card--aura {
    padding: 28px 20px;
  }

  body.public-page--landing .landing-final-cta-card--aura h2 {
    margin-top: 12px;
  }

  body.public-page--landing .app-footer--public {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  body.public-page--landing .app-footer-links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px 16px;
    align-items: center;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  body.public-page--landing .app-header--public {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    padding: 10px 24px;
  }

  body.public-page--landing .public-mobile-menu-drawer {
    width: min(64vw, 520px);
    padding: 18px;
  }

  body.public-page--landing .landing-aura-hero {
    gap: 28px;
  }

  body.public-page--landing .landing-aura-hero-visual {
    min-height: 570px;
  }

  body.public-page--landing .landing-aura-dashboard-shell {
    max-width: 500px;
  }
}

@media (max-width: 767px) {
  body.public-page--landing .landing-aura-hero,
  body.public-page--landing .landing-aura-workflow,
  body.public-page--landing .landing-aura-feature,
  body.public-page--landing .landing-aura-get-started,
  body.public-page--landing .landing-final-cta,
  body.public-page--landing .landing-aura-walkforward,
  body.public-page--landing .page-shell--landing .app-footer--public {
    width: min(100% - 28px, 520px);
  }

  body.public-page--landing .landing-aura-hero-copy h1 {
    font-size: clamp(2.6rem, 13vw, 3.75rem);
  }

  body.public-page--landing .page-shell--landing .hero-copy {
    font-size: 0.98rem;
    line-height: 1.65;
  }

  body.public-page--landing .landing-aura-hero-chips {
    gap: 8px 12px;
  }

  body.public-page--landing .landing-aura-hero-visual {
    min-height: 432px;
    max-width: 360px;
  }

  body.public-page--landing .landing-aura-dashboard-shell {
    max-width: 292px;
    margin-top: 58px;
    padding: 9px;
    border-radius: 24px;
  }

  body.public-page--landing .landing-aura-dashboard-window {
    border-radius: 20px;
  }

  body.public-page--landing .landing-aura-window-bar {
    padding: 10px 12px;
  }

  body.public-page--landing .landing-aura-window-bar small {
    font-size: 0.56rem;
  }

  body.public-page--landing .landing-aura-dashboard-body {
    padding: 12px;
  }

  body.public-page--landing .landing-aura-dashboard-head {
    gap: 8px;
    margin-bottom: 10px;
  }

  body.public-page--landing .landing-aura-dashboard-head h2 {
    font-size: 0.86rem;
  }

  body.public-page--landing .landing-aura-badge,
  body.public-page--landing .landing-aura-chart-head span {
    min-height: 24px;
    padding: 0 8px;
    font-size: 0.62rem;
  }

  body.public-page--landing .landing-aura-metric-grid {
    gap: 7px;
  }

  body.public-page--landing .landing-aura-metric-grid article,
  body.public-page--landing .landing-aura-parameter-card,
  body.public-page--landing .landing-aura-heatmap-card,
  body.public-page--landing .landing-aura-chart-card {
    padding: 9px;
    border-radius: 14px;
  }

  body.public-page--landing .landing-aura-metric-grid strong {
    font-size: 1rem;
  }

  body.public-page--landing .landing-aura-chart-stage {
    min-height: 82px;
    border-radius: 13px;
  }

  body.public-page--landing .landing-aura-dashboard-lower {
    gap: 7px;
  }

  body.public-page--landing .landing-aura-heatmap {
    gap: 3px;
  }

  body.public-page--landing .landing-aura-heatmap span {
    height: 13px;
    border-radius: 5px;
  }

  body.public-page--landing .landing-aura-floating-card {
    gap: 2px;
    padding: 8px 10px;
    border-radius: 14px;
  }

  body.public-page--landing .landing-aura-floating-card strong {
    gap: 5px;
    font-size: 0.62rem;
  }

  body.public-page--landing .landing-aura-floating-card small {
    font-size: 0.56rem;
  }

  body.public-page--landing .landing-aura-floating-icon {
    width: 15px;
    height: 15px;
  }

  body.public-page--landing .landing-aura-floating-icon svg {
    width: 9px;
    height: 9px;
  }

  body.public-page--landing .landing-aura-floating-card--top-left {
    top: 224px;
    left: 2px;
  }

  body.public-page--landing .landing-aura-floating-card--top-right {
    top: 14px;
    right: 4px;
  }

  body.public-page--landing .landing-aura-floating-card--mid-right {
    top: 140px;
    right: 0;
  }

  body.public-page--landing .landing-aura-floating-card--bottom-left {
    left: 8px;
  }

  body.public-page--landing .landing-aura-floating-card--bottom-right {
    right: 6px;
    bottom: 58px;
  }

  body.public-page--landing .landing-aura-workflow {
    padding-top: 30px;
  }

  body.public-page--landing .page-shell--landing .landing-section-header h2,
  body.public-page--landing .landing-aura-feature-copy h2,
  body.public-page--landing .landing-aura-walkforward-copy h2,
  body.public-page--landing .landing-aura-feature--sweep .landing-aura-sweep-title {
    font-size: clamp(2rem, 9.5vw, 2.85rem);
  }

  body.public-page--landing .landing-aura-feature {
    gap: 22px;
    padding-top: var(--landing-feature-gap-before);
  }

  body.public-page--landing .landing-aura-walkforward {
    gap: 22px;
  }

  body.public-page--landing .landing-aura-feature-copy p,
  body.public-page--landing .landing-aura-walkforward-copy p {
    margin-top: 14px;
    line-height: 1.65;
  }

  body.public-page--landing .landing-aura-backtest-chip,
  body.public-page--landing .landing-aura-pill-row span {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 0.76rem;
  }

  body.public-page--landing .landing-aura-point-grid--sweep strong {
    font-size: 0.92rem;
  }

  body.public-page--landing .landing-aura-feature-card,
  body.public-page--landing .landing-aura-feature-card--backtest,
  body.public-page--landing .landing-aura-feature-card--sweep,
  body.public-page--landing .landing-aura-walkforward-card {
    border-radius: 24px;
  }

  body.public-page--landing .landing-aura-get-started {
    padding-top: 42px;
  }

  body.public-page--landing .landing-aura-steps-grid {
    gap: 12px;
  }

  body.public-page--landing .landing-final-cta-card--aura h2 {
    font-size: clamp(2.05rem, 10vw, 3rem);
  }

  body.public-page--landing .landing-final-cta-card--aura p {
    margin-top: 14px;
    line-height: 1.6;
  }
}

@media (max-width: 349px) {
  body.public-page--landing .landing-aura-hero .landing-public-hero-actions,
  body.public-page--landing .landing-final-cta-card--aura .landing-public-hero-actions,
  body.public-page--landing .landing-aura-pill-row,
  body.public-page--landing .landing-aura-point-grid,
  body.public-page--landing .landing-aura-feature-metrics {
    grid-template-columns: 1fr;
  }
}

/* Landing compact responsive scale foundation. */
@media (max-width: 1023px) {
  body.public-page--landing .page-shell--landing {
    --landing-compact-inline: 48px;
    --landing-compact-section-gap: 64px;
    --landing-compact-card-padding: 18px;
    --landing-compact-control-height: 42px;
    --landing-compact-body-size: 0.98rem;
    --landing-compact-label-size: 0.76rem;
    --landing-compact-hero-title: clamp(3.4rem, 7.2vw, 4rem);
    --landing-compact-section-title: clamp(2.15rem, 4.8vw, 2.5rem);
    padding-top: 12px;
    --landing-workflow-gap-after: 22px;
    --landing-feature-gap-before: var(--landing-compact-section-gap);
    --landing-feature-gap-after: 18px;
    --landing-feature-gap-before-loose: calc(var(--landing-compact-section-gap) + 4px);
    --landing-feature-gap-after-loose: 20px;
    --landing-walkforward-gap-before: calc(var(--landing-compact-section-gap) + 2px);
    --landing-walkforward-gap-after: 18px;
    --landing-get-started-gap-before: var(--landing-compact-section-gap);
    --landing-get-started-gap-after: 22px;
    width: 100%;
  }

  body.public-page--landing .app-header--public {
    min-height: 58px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  body.public-page--landing .brand-mark-badge--public {
    width: 34px;
    height: 34px;
    min-width: 34px;
  }

  body.public-page--landing .brand-mark-copy--public strong {
    font-size: 0.96rem;
  }

  body.public-page--landing .public-mobile-menu-button {
    min-height: 40px;
    padding-right: 12px;
    padding-left: 12px;
    border-radius: 12px;
    font-size: 0.875rem;
    box-shadow: 0 6px 14px rgba(18, 32, 61, 0.045);
  }

  body.public-page--landing .public-mobile-menu-drawer {
    gap: 14px;
    padding: 16px;
  }

  body.public-page--landing .public-mobile-menu-close {
    min-height: 38px;
    padding-right: 10px;
    padding-left: 10px;
    font-size: 0.8rem;
  }

  body.public-page--landing .public-mobile-menu-links,
  body.public-page--landing .public-mobile-menu-actions {
    gap: 8px;
  }

  body.public-page--landing .public-mobile-menu-links a,
  body.public-page--landing .public-mobile-menu-actions a {
    display: flex;
    min-height: 42px;
    align-items: center;
    padding-right: 12px;
    padding-left: 12px;
    border-radius: 14px;
    font-size: 0.9rem;
  }

  body.public-page--landing .landing-aura-hero,
  body.public-page--landing .landing-aura-workflow,
  body.public-page--landing .landing-aura-feature,
  body.public-page--landing .landing-aura-get-started,
  body.public-page--landing .landing-final-cta,
  body.public-page--landing .landing-aura-walkforward,
  body.public-page--landing .page-shell--landing .app-footer--public {
    width: min(100% - var(--landing-compact-inline), 860px);
  }

  body.public-page--landing .landing-aura-hero {
    gap: 18px;
    padding-top: 0;
    padding-bottom: 16px;
  }

  body.public-page--landing .landing-aura-mini-chip {
    min-height: 30px;
    padding: 0 10px;
    font-size: 0.74rem;
  }

  body.public-page--landing .landing-aura-hero-copy h1 {
    max-width: 100%;
    margin-top: 18px;
    font-size: var(--landing-compact-hero-title);
    line-height: 0.98;
  }

  body.public-page--landing .landing-aura-headline-line {
    display: block;
    font-size: var(--landing-compact-hero-title);
    line-height: 0.98;
    white-space: nowrap;
  }

  body.public-page--landing .landing-aura-headline-accent {
    margin-top: 10px;
    padding: 7px 12px 9px;
    border-radius: 18px;
    font-size: calc(var(--landing-compact-hero-title) * 0.9);
    line-height: 1;
  }

  body.public-page--landing .landing-aura-headline-accent::before {
    border-radius: 18px;
  }

  body.public-page--landing .page-shell--landing .hero-copy,
  body.public-page--landing .landing-aura-feature-copy p,
  body.public-page--landing .landing-aura-walkforward-copy p,
  body.public-page--landing .page-shell--landing .landing-section-header p,
  body.public-page--landing .landing-final-cta-card--aura p {
    font-size: var(--landing-compact-body-size);
  }

  body.public-page--landing .page-shell--landing .hero-copy {
    margin-top: 16px;
    line-height: 1.55;
  }

  body.public-page--landing .landing-aura-hero .landing-public-hero-actions,
  body.public-page--landing .landing-final-cta-card--aura .landing-public-hero-actions {
    gap: 8px;
    margin-top: 18px;
  }

  body.public-page--landing .landing-aura-hero .landing-public-hero-actions .load-button,
  body.public-page--landing .landing-aura-hero .landing-public-hero-actions .button-secondary,
  body.public-page--landing .landing-final-cta-card--aura .landing-public-hero-actions .load-button,
  body.public-page--landing .landing-final-cta-card--aura .landing-public-hero-actions .button-secondary {
    min-height: var(--landing-compact-control-height);
    padding-right: 8px;
    padding-left: 8px;
    border-radius: 12px;
    font-size: 0.9rem;
  }

  body.public-page--landing .landing-aura-hero .landing-public-hero-actions .load-button svg,
  body.public-page--landing .landing-final-cta-card--aura .landing-public-hero-actions svg {
    width: 12px;
    height: 12px;
    min-width: 12px;
    max-width: 12px;
    min-height: 12px;
    max-height: 12px;
  }

  body.public-page--landing .landing-aura-hero-chips {
    gap: 6px 8px;
    margin-top: 14px;
  }

  body.public-page--landing .landing-aura-hero-chips > span {
    min-height: 34px;
    padding: 7px 9px;
    font-size: 0.78rem;
  }

  body.public-page--landing .landing-aura-hero-chips svg {
    width: 15px;
    height: 15px;
  }

  body.public-page--landing .landing-aura-dashboard-shell {
    padding: 12px;
    border-radius: 26px;
  }

  body.public-page--landing .landing-aura-workflow {
    padding-top: 36px;
  }

  body.public-page--landing .page-shell--landing .landing-section-header--workflow,
  body.public-page--landing .page-shell--landing .landing-section-header--centered {
    margin-bottom: 24px;
  }

  body.public-page--landing .page-shell--landing .landing-section-header h2,
  body.public-page--landing .landing-aura-feature-copy h2,
  body.public-page--landing .landing-aura-walkforward-copy h2,
  body.public-page--landing .landing-aura-feature--sweep .landing-aura-sweep-title,
  body.public-page--landing .landing-aura-get-started-title,
  body.public-page--landing .landing-final-cta-card--aura h2 {
    font-size: var(--landing-compact-section-title);
    line-height: 1.04;
  }

  body.public-page--landing .landing-section-kicker,
  body.public-page--landing .page-shell--landing .landing-section-header--workflow > .landing-section-kicker,
  body.public-page--landing .landing-aura-get-started .landing-section-kicker {
    font-size: var(--landing-compact-label-size);
  }

  body.public-page--landing .landing-aura-workflow-shell {
    padding: 24px;
    border-radius: 28px;
  }

  body.public-page--landing .landing-aura-workflow-track {
    gap: 18px;
    margin-bottom: 14px;
  }

  body.public-page--landing .landing-aura-workflow-node {
    width: 44px;
    height: 44px;
    font-size: 0.82rem;
  }

  body.public-page--landing .page-shell--landing .landing-workflow-grid {
    gap: 14px;
  }

  body.public-page--landing .page-shell--landing .landing-workflow-card,
  body.public-page--landing .page-shell--landing .landing-aura-get-started .landing-start-step {
    min-height: 0;
    padding: var(--landing-compact-card-padding);
    border-radius: 22px;
  }

  body.public-page--landing .landing-aura-workflow-icon {
    width: 34px;
    height: 34px;
    margin-bottom: 14px;
    border-radius: 12px;
  }

  body.public-page--landing .landing-aura-workflow-icon svg {
    width: 20px;
    height: 20px;
  }

  body.public-page--landing .page-shell--landing .landing-workflow-card h3,
  body.public-page--landing .page-shell--landing .landing-start-step h3 {
    font-size: 1.04rem;
  }

  body.public-page--landing .page-shell--landing .landing-workflow-card p,
  body.public-page--landing .page-shell--landing .landing-start-step p {
    margin-top: 8px;
    font-size: 0.88rem;
    line-height: 1.5;
  }

  body.public-page--landing .page-shell--landing .landing-workflow-card p + .landing-aura-workflow-chip {
    margin-top: 16px;
  }

  body.public-page--landing .landing-aura-workflow-chip {
    min-block-size: 30px;
    padding: 6px 10px;
    font-size: 0.7rem;
  }

  body.public-page--landing .landing-aura-feature,
  body.public-page--landing .landing-aura-walkforward {
    gap: 18px;
  }

  body.public-page--landing .landing-aura-feature-copy p,
  body.public-page--landing .landing-aura-walkforward-copy p {
    margin-top: 12px;
    line-height: 1.55;
  }

  body.public-page--landing .landing-aura-pill-row,
  body.public-page--landing .landing-aura-point-grid,
  body.public-page--landing .landing-aura-feature-metrics {
    gap: 8px;
  }

  body.public-page--landing .landing-aura-backtest-chip,
  body.public-page--landing .landing-aura-pill-row span {
    min-height: 36px;
    padding: 7px 9px;
    gap: 7px;
    font-size: 0.74rem;
  }

  body.public-page--landing .landing-aura-backtest-chip svg,
  body.public-page--landing .landing-aura-pill-row span svg {
    width: 15px;
    height: 15px;
  }

  body.public-page--landing .landing-aura-point-grid--sweep .landing-aura-sweep-point-card {
    padding: 14px;
    border-radius: 18px;
  }

  body.public-page--landing .landing-aura-point-grid--sweep strong {
    font-size: 0.9rem;
  }

  body.public-page--landing .landing-aura-point-grid--sweep p {
    margin-top: 6px;
    font-size: 0.8rem;
    line-height: 1.45;
  }

  body.public-page--landing .landing-aura-feature-card,
  body.public-page--landing .landing-aura-feature-card--backtest,
  body.public-page--landing .landing-aura-feature-card--sweep,
  body.public-page--landing .landing-aura-walkforward-card {
    border-radius: 22px;
  }

  body.public-page--landing .landing-aura-steps-grid {
    gap: 10px;
  }

  body.public-page--landing .page-shell--landing .landing-aura-get-started .landing-start-step-top {
    gap: 10px;
  }

  body.public-page--landing .page-shell--landing .landing-aura-get-started .landing-start-step-icon,
  body.public-page--landing .page-shell--landing .landing-aura-get-started .landing-start-step-icon svg {
    width: 26px;
    height: 26px;
  }

  body.public-page--landing .landing-final-cta-card--aura {
    padding: 24px 18px;
    border-radius: 28px;
  }

  body.public-page--landing .landing-final-cta-card--aura p {
    margin-top: 12px;
    line-height: 1.55;
  }
}

@media (max-width: 767px) {
  body.public-page--landing .page-shell--landing {
    --landing-compact-inline: 28px;
    --landing-compact-section-gap: 52px;
    --landing-compact-card-padding: 15px;
    --landing-compact-control-height: 40px;
    --landing-compact-body-size: 0.9rem;
    --landing-compact-label-size: 0.72rem;
    --landing-compact-hero-title: clamp(2.5rem, 9.5vw, 2.7rem);
    --landing-compact-section-title: clamp(1.72rem, 7.2vw, 2rem);
    padding-top: 10px;
    --landing-workflow-gap-after: 18px;
    --landing-feature-gap-after: 14px;
    --landing-feature-gap-before-loose: calc(var(--landing-compact-section-gap) + 2px);
    --landing-feature-gap-after-loose: 16px;
    --landing-walkforward-gap-before: var(--landing-compact-section-gap);
    --landing-walkforward-gap-after: 14px;
    --landing-get-started-gap-after: 18px;
  }

  body.public-page--landing .app-header--public {
    min-height: 54px;
    padding-right: 14px;
    padding-left: 14px;
  }

  body.public-page--landing .brand-mark-badge--public {
    width: 32px;
    height: 32px;
    min-width: 32px;
  }

  body.public-page--landing .public-mobile-menu-button {
    min-height: 40px;
    padding-right: 10px;
    padding-left: 10px;
    font-size: 0.875rem;
  }

  body.public-page--landing .public-mobile-menu-links a,
  body.public-page--landing .public-mobile-menu-actions a {
    min-height: 40px;
    font-size: 0.875rem;
  }

  body.public-page--landing .landing-aura-hero {
    gap: 14px;
  }

  body.public-page--landing .landing-aura-hero-copy h1 {
    margin-top: 14px;
    letter-spacing: -0.045em;
  }

  body.public-page--landing .landing-aura-headline-accent {
    margin-top: 8px;
    padding: 6px 10px 8px;
    border-radius: 16px;
  }

  body.public-page--landing .landing-aura-headline-accent::before {
    border-radius: 16px;
  }

  body.public-page--landing .page-shell--landing .hero-copy {
    margin-top: 14px;
    line-height: 1.5;
  }

  body.public-page--landing .landing-aura-hero .landing-public-hero-actions,
  body.public-page--landing .landing-final-cta-card--aura .landing-public-hero-actions {
    margin-top: 16px;
  }

  body.public-page--landing .landing-aura-hero .landing-public-hero-actions .load-button,
  body.public-page--landing .landing-aura-hero .landing-public-hero-actions .button-secondary,
  body.public-page--landing .landing-final-cta-card--aura .landing-public-hero-actions .load-button,
  body.public-page--landing .landing-final-cta-card--aura .landing-public-hero-actions .button-secondary {
    font-size: 0.875rem;
  }

  body.public-page--landing .landing-aura-hero-visual {
    min-height: 416px;
  }

  body.public-page--landing .landing-aura-dashboard-shell {
    max-width: 286px;
    margin-top: 52px;
  }

  body.public-page--landing .landing-aura-workflow {
    padding-top: 28px;
  }

  body.public-page--landing .landing-aura-workflow-shell {
    padding: 18px;
    border-radius: 24px;
  }

  body.public-page--landing .landing-aura-workflow-track {
    gap: 10px;
  }

  body.public-page--landing .landing-aura-workflow-node {
    width: 36px;
    height: 36px;
    font-size: 0.74rem;
  }

  body.public-page--landing .landing-aura-workflow-line-window {
    top: 17px;
  }

  body.public-page--landing .page-shell--landing .landing-workflow-card,
  body.public-page--landing .page-shell--landing .landing-aura-get-started .landing-start-step {
    padding: var(--landing-compact-card-padding);
    border-radius: 18px;
  }

  body.public-page--landing .page-shell--landing .landing-workflow-card h3,
  body.public-page--landing .page-shell--landing .landing-start-step h3 {
    font-size: 0.98rem;
  }

  body.public-page--landing .page-shell--landing .landing-workflow-card p,
  body.public-page--landing .page-shell--landing .landing-start-step p {
    font-size: 0.84rem;
  }

  body.public-page--landing .landing-aura-get-started-title span {
    white-space: normal;
  }

  body.public-page--landing .landing-final-cta-card--aura {
    padding: 22px 16px;
  }
}

/* Landing hero correction: preserve the preview as one contained illustration on phone/tablet. */
@media (max-width: 1023px) {
  body.public-page--landing .landing-aura-hero {
    padding-top: 18px;
  }

  body.public-page--landing .landing-aura-hero-copy {
    width: 100%;
    max-width: 720px;
    margin-inline: auto;
  }

  body.public-page--landing .landing-aura-mini-chip {
    min-height: 32px;
    padding: 0 10px;
    gap: 7px;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    line-height: 1;
    white-space: nowrap;
  }

  body.public-page--landing .landing-aura-mini-chip-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
  }

  body.public-page--landing .landing-aura-mini-chip-icon::before {
    width: 12px;
    height: 12px;
  }

  body.public-page--landing .landing-aura-hero-copy h1 {
    margin-top: 16px;
  }

  body.public-page--landing .landing-aura-hero-copy .hero-copy {
    max-width: 54ch;
  }

  body.public-page--landing .landing-aura-hero-visual {
    width: min(100%, 600px);
    max-width: 600px;
    min-height: 0;
    aspect-ratio: 1 / 1.08;
    margin: 8px auto 0;
    overflow: hidden;
    contain: layout paint;
  }

  body.public-page--landing .landing-aura-dashboard-shell {
    position: absolute;
    top: 7%;
    left: 50%;
    width: 526px;
    max-width: none;
    margin: 0;
    padding: clamp(9px, 1.5vw, 12px);
    box-sizing: border-box;
    transform: translateX(-50%) scale(0.66);
    transform-origin: top center;
  }

  body.public-page--landing .landing-aura-dashboard-window {
    width: 100%;
  }

  body.public-page--landing .landing-aura-dashboard-lower {
    grid-template-columns: 0.84fr 1.16fr;
  }

  body.public-page--landing .landing-aura-floating-card {
    max-width: 42%;
    box-sizing: border-box;
    white-space: nowrap;
  }

  body.public-page--landing .landing-aura-floating-card--top-left {
    top: 40%;
    left: 1.5%;
  }

  body.public-page--landing .landing-aura-floating-card--top-right {
    top: 3%;
    right: 2%;
  }

  body.public-page--landing .landing-aura-floating-card--mid-right {
    top: 31%;
    right: 1%;
  }

  body.public-page--landing .landing-aura-floating-card--bottom-left {
    bottom: 3%;
    left: 3%;
  }

  body.public-page--landing .landing-aura-floating-card--bottom-right {
    right: 2%;
    bottom: 14%;
  }
}

@media (max-width: 767px) {
  body.public-page--landing .landing-aura-hero {
    padding-top: 14px;
  }

  body.public-page--landing .landing-aura-mini-chip {
    min-height: 28px;
    padding: 0 8px;
    gap: 6px;
    font-size: 0.66rem;
    letter-spacing: 0.11em;
  }

  body.public-page--landing .landing-aura-mini-chip-icon {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
  }

  body.public-page--landing .landing-aura-mini-chip-icon::before {
    width: 10px;
    height: 10px;
  }

  body.public-page--landing .landing-aura-hero-copy h1 {
    margin-top: 14px;
  }

  body.public-page--landing .landing-aura-hero-visual {
    width: min(100%, 348px);
    aspect-ratio: 1 / 1.16;
  }

  body.public-page--landing .landing-aura-dashboard-shell {
    top: 10%;
    transform: translateX(-50%) scale(0.48);
  }

  body.public-page--landing .landing-aura-floating-card {
    max-width: 45%;
  }

  body.public-page--landing .landing-aura-floating-card--top-left {
    top: 42%;
    left: 0;
  }

  body.public-page--landing .landing-aura-floating-card--top-right {
    top: 3%;
    right: 1%;
  }

  body.public-page--landing .landing-aura-floating-card--mid-right {
    top: 31%;
    right: 0;
  }

  body.public-page--landing .landing-aura-floating-card--bottom-left,
  body.public-page--landing .landing-aura-floating-card--bottom-right {
    display: none;
  }
}

/* Landing compact hero: below desktop width, use a text-first hero without the preview composition. */
body.public-page--landing .landing-aura-hero .landing-public-hero-actions--compact {
  display: none;
}

@media (max-width: 1199px) {
  body.public-page--landing .landing-aura-hero {
    display: block;
    width: min(100% - 48px, 760px);
    padding-top: 28px;
    padding-bottom: 30px;
  }

  body.public-page--landing .landing-aura-hero-copy {
    width: 100%;
    max-width: 760px;
    margin-inline: auto;
    top: 0;
  }

  body.public-page--landing .landing-aura-mini-chip,
  body.public-page--landing .landing-aura-hero-visual {
    display: none;
  }

  body.public-page--landing .landing-aura-hero-copy h1 {
    margin-top: 0;
  }

  body.public-page--landing .landing-aura-hero-copy .hero-copy {
    max-width: 50ch;
    margin-top: 18px;
  }

  body.public-page--landing .landing-aura-hero-chips {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: min(100%, 360px);
    gap: 9px;
    margin-top: 18px;
  }

  body.public-page--landing .landing-aura-hero-chips > span {
    justify-content: flex-start;
    min-height: 28px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #315273;
    font-size: 0.9rem;
    font-weight: 650;
    box-shadow: none;
  }

  body.public-page--landing .landing-aura-hero-chips svg {
    width: 16px;
    height: 16px;
    color: #0d5bd7;
  }

  body.public-page--landing .landing-aura-hero .landing-public-hero-actions--desktop {
    display: none;
  }

  body.public-page--landing .landing-aura-hero .landing-public-hero-actions--compact {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: min(100%, 420px);
    gap: 10px;
    margin-top: 22px;
  }

  body.public-page--landing .landing-aura-hero .landing-public-hero-actions--compact .load-button,
  body.public-page--landing .landing-aura-hero .landing-public-hero-actions--compact .button-secondary {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    justify-content: center;
    padding-right: 14px;
    padding-left: 14px;
    text-align: center;
    white-space: nowrap;
  }
}

@media (max-width: 767px) {
  body.public-page--landing .landing-aura-hero {
    width: min(100% - 28px, 520px);
    padding-top: 8px;
    padding-bottom: 26px;
  }

  body.public-page--landing .landing-aura-hero-copy .hero-copy {
    max-width: 42ch;
    margin-top: 16px;
  }

  body.public-page--landing .landing-aura-hero-chips {
    width: 100%;
    gap: 8px;
    margin-top: 16px;
  }

  body.public-page--landing .landing-aura-hero-chips > span {
    min-height: 27px;
    font-size: 0.86rem;
  }

  body.public-page--landing .landing-aura-hero .landing-public-hero-actions--compact {
    width: 100%;
    gap: 9px;
    margin-top: 20px;
  }

  body.public-page--landing .landing-aura-hero .landing-public-hero-actions--compact .load-button,
  body.public-page--landing .landing-aura-hero .landing-public-hero-actions--compact .button-secondary {
    min-height: 40px;
    font-size: 0.875rem;
  }
}

@media (min-width: 1024px) and (max-width: 1199px) {
  body.public-page--landing .landing-aura-headline-line {
    font-size: 3.9rem;
    line-height: 0.98;
  }

  body.public-page--landing .landing-aura-headline-accent {
    font-size: 3.52rem;
  }
}

@media (min-width: 1200px) {
  body.public-page--landing .landing-aura-hero .landing-public-hero-actions--desktop {
    display: flex;
  }

  body.public-page--landing .landing-aura-hero .landing-public-hero-actions--compact {
    display: none;
  }
}

/* Landing mobile-first hero: phone-only acquisition hero with a focused result preview. */
body.public-page--landing .landing-mobile-hero-badge,
body.public-page--landing .landing-aura-headline-line--mobile,
body.public-page--landing .landing-capability-label--mobile,
body.public-page--landing .landing-mobile-hero-preview {
  display: none;
}

body.public-page--landing .landing-feature-lower-copy {
  display: contents;
}

@media (max-width: 767px) {
  body.public-page--landing .landing-aura-hero {
    width: min(100% - 28px, 430px);
    padding-top: 18px;
    padding-bottom: 30px;
    text-align: center;
  }

  body.public-page--landing .landing-aura-hero-copy {
    display: grid;
    justify-items: center;
    text-align: center;
  }

  body.public-page--landing .landing-mobile-hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid rgba(13, 91, 215, 0.14);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(226, 239, 255, 0.92), rgba(248, 251, 255, 0.96));
    color: #0d4fb8;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.04em;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 10px 28px rgba(13, 91, 215, 0.1);
  }

  body.public-page--landing .landing-mobile-hero-badge::before {
    content: "";
    width: 7px;
    height: 7px;
    margin-right: 7px;
    border-radius: 999px;
    background: #0d5bd7;
    box-shadow: 0 0 0 4px rgba(13, 91, 215, 0.1);
  }

  body.public-page--landing .landing-aura-headline-line--compact,
  body.public-page--landing .landing-aura-headline-accent {
    display: none;
  }

  body.public-page--landing .landing-aura-headline-line--mobile {
    display: block;
  }

  body.public-page--landing .landing-aura-hero-copy h1 {
    width: 100%;
    margin-top: 14px;
    letter-spacing: -0.045em;
  }

  body.public-page--landing .landing-aura-headline-line {
    font-size: clamp(2.2rem, 10.2vw, 2.58rem);
    line-height: 0.98;
    text-align: center;
    white-space: nowrap;
  }

  body.public-page--landing .page-shell--landing .hero-copy {
    max-width: 31ch;
    margin-top: 13px;
    font-size: 0.92rem;
    line-height: 1.42;
    text-align: center;
  }

  body.public-page--landing .landing-copy-line {
    display: inline;
  }

  body.public-page--landing .landing-aura-hero-chips {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(100%, 352px);
    gap: 6px;
    margin-top: 16px;
  }

  body.public-page--landing .landing-aura-hero-chips > span {
    display: grid;
    min-height: 42px;
    align-content: center;
    justify-items: center;
    gap: 5px;
    padding: 7px 4px;
    border: 1px solid rgba(13, 91, 215, 0.11);
    border-radius: 14px;
    background: rgba(248, 251, 255, 0.9);
    color: #294967;
    font-size: 0.72rem;
    font-weight: 750;
    line-height: 1.08;
    text-align: center;
    box-shadow: 0 8px 18px rgba(26, 50, 78, 0.05);
  }

  body.public-page--landing .landing-aura-hero-chips svg {
    width: 15px;
    height: 15px;
  }

  body.public-page--landing .landing-capability-label--compact {
    display: none;
  }

  body.public-page--landing .landing-capability-label--mobile {
    display: inline;
  }

  body.public-page--landing .landing-aura-hero .landing-public-hero-actions--compact {
    width: min(100%, 340px);
    gap: 8px;
    margin-top: 18px;
  }

  body.public-page--landing .landing-aura-hero .landing-public-hero-actions--compact .load-button {
    min-height: 42px;
    border-radius: 999px;
    box-shadow: 0 16px 32px rgba(13, 91, 215, 0.18);
  }

  body.public-page--landing .landing-aura-hero .landing-public-hero-actions--compact .button-secondary {
    min-height: 38px;
    border-color: transparent;
    background: transparent;
    color: #0d4fb8;
    box-shadow: none;
  }

  body.public-page--landing .landing-mobile-hero-preview {
    display: block;
    width: min(100%, 342px);
    margin-top: 20px;
  }

  body.public-page--landing .landing-mobile-preview-card {
    position: relative;
    overflow: hidden;
    padding: 12px;
    border: 1px solid rgba(13, 91, 215, 0.13);
    border-radius: 24px;
    background:
      radial-gradient(circle at 15% 8%, rgba(87, 151, 255, 0.18), transparent 28%),
      linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
    box-shadow: 0 22px 44px rgba(20, 45, 76, 0.13);
  }

  body.public-page--landing .landing-mobile-preview-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 8px 10px;
    color: #284864;
    font-size: 0.68rem;
    line-height: 1.1;
    text-align: left;
  }

  body.public-page--landing .landing-mobile-preview-top span {
    color: #6c7f91;
    font-weight: 750;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  body.public-page--landing .landing-mobile-preview-top strong {
    color: #173552;
    font-size: 0.74rem;
  }

  body.public-page--landing .landing-mobile-preview-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  body.public-page--landing .landing-mobile-preview-metrics span {
    display: grid;
    gap: 3px;
    min-width: 0;
    padding: 9px 6px;
    border: 1px solid rgba(13, 91, 215, 0.09);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.82);
    text-align: left;
  }

  body.public-page--landing .landing-mobile-preview-metrics small {
    color: #6d8093;
    font-size: 0.61rem;
    font-weight: 700;
  }

  body.public-page--landing .landing-mobile-preview-metrics strong {
    color: #173552;
    font-size: 0.72rem;
    line-height: 1.05;
  }

  body.public-page--landing .landing-mobile-preview-chart {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.76);
  }

  body.public-page--landing .landing-mobile-preview-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: 9px;
  }

  body.public-page--landing .landing-mobile-preview-strip span {
    min-width: 0;
    padding: 7px 4px;
    border-radius: 999px;
    background: rgba(13, 91, 215, 0.08);
    color: #315273;
    font-size: 0.62rem;
    font-weight: 750;
    line-height: 1.05;
    text-align: center;
  }
}

/* Landing mobile hero precision: closer reference match on phone only. */
.public-mobile-menu-button-icon {
  display: none;
}

.landing-capability-icon,
.mobile-hero-copy-line,
.landing-mobile-workflow {
  display: none;
}

@media (max-width: 767px) {
  body.public-page--landing .public-mobile-menu-button {
    width: 40px;
    min-width: 40px;
    min-height: 40px;
    padding: 0;
    border-color: rgba(13, 91, 215, 0.14);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
  }

  body.public-page--landing .public-mobile-menu-button-text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  body.public-page--landing .public-mobile-menu-button-icon {
    display: grid;
    gap: 4px;
    width: 18px;
  }

  body.public-page--landing .public-mobile-menu-button-icon span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #173552;
  }

  body.public-page--landing .landing-aura-hero {
    width: min(100% - 34px, 390px);
    padding-top: 20px;
    padding-bottom: 26px;
  }

  body.public-page--landing .landing-aura-hero-copy,
  body.public-page--landing .mobile-hero-content {
    width: 100%;
    max-width: 356px;
    margin-inline: auto;
    text-align: center;
  }

  body.public-page--landing .landing-mobile-hero-badge {
    min-height: 26px;
    padding: 0 10px;
    border-color: #d8e8ff;
    background: #e8f2ff;
    background-image: none;
    color: #0d5bd7;
    font-size: 0.7rem;
    box-shadow: none;
  }

  body.public-page--landing .landing-aura-hero-copy h1 {
    display: grid;
    justify-items: center;
    width: fit-content;
    margin: 14px auto 0;
  }

  body.public-page--landing .landing-aura-headline-line {
    font-size: clamp(2.15rem, 9.35vw, 2.38rem);
    font-weight: 600;
    line-height: 0.97;
    letter-spacing: -0.048em;
  }

  body.public-page--landing .mobile-hero-title-line {
    display: block;
    width: fit-content;
    margin-inline: auto;
    text-align: center;
  }

  body.public-page--landing .page-shell--landing .hero-copy {
    max-width: none;
    margin-top: 14px;
    font-size: 0.835rem;
    line-height: 1.5;
    color: #374f68;
  }

  body.public-page--landing .mobile-hero-copy-line {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
    text-align: center;
    white-space: nowrap;
  }

  body.public-page--landing .page-shell--landing .hero-copy .landing-copy-line--compact {
    display: none;
  }

  body.public-page--landing .landing-aura-hero-chips {
    width: min(100%, 352px);
    gap: 0;
    margin-top: 23px;
  }

  body.public-page--landing .landing-aura-hero-chips > span {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 60px;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #233f5d;
    font-size: clamp(0.66rem, 2.85vw, 0.72rem);
    font-weight: 650;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
  }

  body.public-page--landing .landing-aura-hero-chips svg {
    display: none;
  }

  body.public-page--landing .landing-capability-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-bottom: 8px;
    border-radius: 50%;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(236, 243, 255, 0.7) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  }

  body.public-page--landing .landing-capability-icon::before {
    content: "";
    position: absolute;
    inset: 10px;
    background: #2d67ea;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
  }

  body.public-page--landing .landing-capability-icon--backtest::before {
    -webkit-mask-image: url("./assets/icons/lucide/chart-network.svg");
    mask-image: url("./assets/icons/lucide/chart-network.svg");
  }

  body.public-page--landing .landing-capability-icon--sweep::before {
    -webkit-mask-image: url("./assets/icons/lucide/boxes.svg");
    mask-image: url("./assets/icons/lucide/boxes.svg");
  }

  body.public-page--landing .landing-capability-icon--walkforward::before {
    -webkit-mask-image: url("./assets/icons/lucide/route.svg");
    mask-image: url("./assets/icons/lucide/route.svg");
  }

  body.public-page--landing .landing-aura-hero .landing-public-hero-actions--compact {
    width: min(100%, 346px);
    gap: 8px;
    margin-top: 22px;
    margin-inline: auto;
  }

  body.public-page--landing .landing-aura-hero .landing-public-hero-actions--compact .load-button {
    min-height: 42px;
    border-radius: 10px;
  }

  body.public-page--landing .landing-aura-hero .landing-public-hero-actions--compact .button-secondary {
    min-height: 34px;
    font-weight: 700;
  }

  body.public-page--landing .landing-mobile-hero-preview {
    display: flex;
    justify-content: center;
    width: min(100%, 354px);
    margin-top: 24px;
    padding: 12px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 42px rgba(13, 91, 215, 0.12);
  }

  body.public-page--landing .landing-mobile-hero-preview-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
  }

  body.public-page--landing .landing-mobile-preview-card,
  body.public-page--landing .landing-mobile-preview-chart,
  body.public-page--landing .landing-mobile-preview-strip,
  body.public-page--landing .landing-mobile-preview-metrics {
    display: none;
  }

  body.public-page--landing .landing-aura-workflow {
    width: min(100% - 34px, 390px);
    padding-top: 7px;
    padding-bottom: 34px;
  }

  body.public-page--landing .page-shell--landing .landing-section-header--workflow,
  body.public-page--landing .landing-aura-workflow-shell {
    display: none;
  }

  body.public-page--landing .landing-mobile-workflow {
    display: block;
    width: 100%;
    max-width: 356px;
    margin-inline: auto;
    text-align: left;
  }

  body.public-page--landing .landing-mobile-workflow-kicker {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #0d5bd7;
    font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 0.66rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.12em;
  }

  body.public-page--landing .landing-mobile-workflow-kicker::before {
    content: "";
    width: 13px;
    height: 13px;
    flex: 0 0 13px;
    background: currentColor;
    opacity: 0.92;
    mask-image: url("./assets/icons/lucide/sparkles.svg");
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    -webkit-mask-image: url("./assets/icons/lucide/sparkles.svg");
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
  }

  body.public-page--landing .landing-mobile-workflow h2 {
    max-width: 11.5em;
    margin: 8px 0 0;
    color: #101d3a;
    font-size: clamp(1.68rem, 7.3vw, 1.88rem);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.04em;
  }

  body.public-page--landing .landing-mobile-workflow-timeline {
    display: grid;
    gap: 0;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
  }

  body.public-page--landing .landing-mobile-workflow-step {
    position: relative;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    column-gap: 18px;
    min-height: 82px;
    padding: 0 0 19px;
  }

  body.public-page--landing .landing-mobile-workflow-step:last-child {
    min-height: 0;
    padding-bottom: 0;
  }

  body.public-page--landing .landing-mobile-workflow-step::after {
    content: "";
    position: absolute;
    top: 40px;
    bottom: 2px;
    left: 18px;
    width: 2px;
    border-radius: 999px;
    background: repeating-linear-gradient(
      to bottom,
      rgba(45, 103, 234, 0.2) 0,
      rgba(45, 103, 234, 0.2) 4px,
      transparent 4px,
      transparent 8px
    );
  }

  body.public-page--landing .landing-mobile-workflow-step:last-child::after {
    content: none;
  }

  body.public-page--landing .landing-mobile-workflow-marker {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(236, 243, 255, 0.7) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  }

  body.public-page--landing .landing-mobile-workflow-marker::before {
    content: "";
    position: absolute;
    inset: 10px;
    background: #2d67ea;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
  }

  body.public-page--landing .landing-mobile-workflow-step--discover .landing-mobile-workflow-marker::before {
    -webkit-mask-image: url("./assets/icons/lucide/compass.svg");
    mask-image: url("./assets/icons/lucide/compass.svg");
  }

  body.public-page--landing .landing-mobile-workflow-step--configure .landing-mobile-workflow-marker::before {
    -webkit-mask-image: url("./assets/icons/lucide/settings-2.svg");
    mask-image: url("./assets/icons/lucide/settings-2.svg");
  }

  body.public-page--landing .landing-mobile-workflow-step--run .landing-mobile-workflow-marker::before {
    -webkit-mask-image: url("./assets/icons/lucide/circle-play.svg");
    mask-image: url("./assets/icons/lucide/circle-play.svg");
  }

  body.public-page--landing .landing-mobile-workflow-step--review .landing-mobile-workflow-marker::before {
    -webkit-mask-image: url("./assets/icons/lucide/file-chart-line.svg");
    mask-image: url("./assets/icons/lucide/file-chart-line.svg");
  }

  body.public-page--landing .landing-mobile-workflow-copy {
    min-width: 0;
    padding-top: 1px;
  }

  body.public-page--landing .landing-mobile-workflow-copy h3 {
    margin: 0;
    color: #16233f;
    font-size: 1rem;
    font-weight: 650;
    line-height: 1.18;
    letter-spacing: -0.02em;
  }

  body.public-page--landing .landing-mobile-workflow-copy p {
    max-width: 24ch;
    margin: 7px 0 0;
    color: #526781;
    font-size: 0.835rem;
    line-height: 1.45;
  }
}

.landing-mobile-feature-title-line,
.landing-mobile-feature-description-line {
  display: none;
}

.landing-final-cta-label--mobile {
  display: none;
}

.landing-aura-pill-row--dark svg {
  display: none;
}

/* Landing mobile final CTA and footer polish. */
@media (max-width: 767px) {
  body.public-page--landing .landing-final-cta {
    padding-top: 20px;
    padding-bottom: 18px;
  }

  body.public-page--landing .landing-final-cta-card--aura {
    padding: 24px 18px 22px;
  }

  body.public-page--landing .landing-final-cta-card--aura .landing-public-hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: min(100%, 318px);
    margin-top: 18px;
    margin-inline: auto;
  }

  body.public-page--landing .landing-final-cta-card--aura .landing-public-hero-actions .button-secondary {
    display: none;
  }

  body.public-page--landing .landing-final-cta-label--desktop {
    display: none;
  }

  body.public-page--landing .landing-final-cta-label--mobile {
    display: inline;
  }

  body.public-page--landing .landing-final-cta-card--aura .landing-public-hero-actions .load-button {
    width: 100%;
  }

  body.public-page--landing .landing-final-cta-card--aura .landing-aura-final-chips {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-content: center;
    justify-items: start;
    width: fit-content;
    max-width: 100%;
    margin-top: 18px;
    margin-inline: auto;
    gap: 10px;
    text-align: left;
  }

  body.public-page--landing .landing-final-cta-card--aura .landing-aura-final-chips > span {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: center;
    column-gap: 8px;
    min-height: 22px;
    padding: 0;
    font-size: 0.82rem;
    line-height: 1.2;
  }

  body.public-page--landing .landing-final-cta-card--aura .landing-aura-final-chips > span + span::before {
    content: none;
  }

  body.public-page--landing .landing-final-cta-card--aura .landing-aura-final-chips svg {
    display: block;
    width: 18px;
    height: 18px;
    min-width: 18px;
    max-width: 18px;
    min-height: 18px;
    max-height: 18px;
    align-self: center;
  }

  body.public-page--landing .landing-final-cta-card--aura .landing-aura-final-chips > span > span {
    display: block;
    min-width: 0;
  }

  body.public-page--landing .app-footer--public {
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    text-align: center;
  }

  body.public-page--landing .app-footer-links {
    display: grid;
    grid-template-columns: repeat(4, auto);
    justify-content: center;
    gap: 8px 16px;
    width: 100%;
  }

  body.public-page--landing .app-footer-link--market-data {
    display: none;
  }
}

/* Landing mobile research features: full-width copy with lower split media. */
@media (max-width: 767px) {
  body.public-page--landing .landing-aura-feature--backtest,
  body.public-page--landing .landing-aura-feature--sweep,
  body.public-page--landing .landing-aura-walkforward {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.35fr) minmax(0, 0.65fr);
    grid-template-areas:
      "eyebrow eyebrow"
      "title title"
      "description description"
      "benefits media";
    column-gap: 12px;
    row-gap: 0;
    align-items: center;
    width: min(100% - 28px, 390px);
    margin-right: auto;
    margin-left: auto;
    padding: 20px 12px 18px;
    overflow: clip;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  body.public-page--landing .landing-aura-feature--backtest {
    grid-template-columns: minmax(0, 0.38fr) minmax(0, 0.62fr);
  }

  body.public-page--landing .landing-aura-feature--sweep,
  body.public-page--landing .landing-aura-walkforward {
    grid-template-columns: minmax(0, 0.32fr) minmax(0, 0.68fr);
    margin-top: 44px;
  }

  body.public-page--landing .landing-aura-feature-copy,
  body.public-page--landing .landing-aura-walkforward-copy {
    display: contents;
  }

  body.public-page--landing .landing-aura-feature-media,
  body.public-page--landing .landing-aura-walkforward-media {
    position: relative;
    z-index: 1;
    grid-area: media;
    justify-self: stretch;
    align-self: center;
    width: 100%;
    max-width: 100%;
    margin: 18px 0 0;
    padding: 5px;
    border: 1px solid rgba(13, 91, 215, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 34px rgba(17, 49, 92, 0.13);
    transform: perspective(900px) rotateY(-6deg) rotateX(1deg);
    transform-origin: center right;
  }

  body.public-page--landing .landing-aura-feature-card,
  body.public-page--landing .landing-aura-feature-card--backtest,
  body.public-page--landing .landing-aura-feature-card--sweep,
  body.public-page--landing .landing-aura-walkforward-card {
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 14px;
    background: transparent;
    box-shadow: none;
  }

  body.public-page--landing .landing-aura-backtest-media-slot,
  body.public-page--landing .landing-aura-sweep-media-slot,
  body.public-page--landing .landing-aura-walkforward-media-slot {
    overflow: hidden;
    border-radius: 14px;
  }

  body.public-page--landing .landing-aura-backtest-media-image,
  body.public-page--landing .landing-aura-sweep-media-image,
  body.public-page--landing .landing-aura-walkforward-media-image {
    display: block;
    width: 100%;
    height: auto;
  }

  body.public-page--landing .landing-aura-feature .landing-section-kicker,
  body.public-page--landing .landing-aura-walkforward .landing-section-kicker {
    grid-area: eyebrow;
    gap: 5px;
    color: #2f63d6;
    font-size: 0.57rem;
    font-weight: 650;
    line-height: 1;
    letter-spacing: 0.1em;
  }

  body.public-page--landing .landing-aura-feature .landing-section-kicker::before,
  body.public-page--landing .landing-aura-walkforward .landing-section-kicker::before {
    width: 10px;
    height: 10px;
    flex-basis: 10px;
  }

  body.public-page--landing .landing-aura-feature-copy h2,
  body.public-page--landing .landing-aura-walkforward-copy h2,
  body.public-page--landing .landing-aura-feature--sweep .landing-aura-sweep-title {
    grid-area: title;
    max-width: none;
    margin: 8px 0 8px;
    color: #101d3a;
    font-family: Inter, Aptos, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: clamp(1.68rem, 7.3vw, 1.88rem);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.04em;
  }

  body.public-page--landing .landing-feature-title-line--desktop,
  body.public-page--landing .landing-feature-description-line--desktop {
    display: none;
  }

  body.public-page--landing .landing-aura-feature--backtest .landing-aura-backtest-title.landing-feature-title-line--desktop {
    display: none;
  }

  body.public-page--landing .landing-mobile-feature-title-line,
  body.public-page--landing .landing-mobile-feature-description-line {
    display: block;
  }

  body.public-page--landing .landing-mobile-feature-title-line {
    white-space: nowrap;
  }

  body.public-page--landing .landing-aura-feature-copy > p:not(.landing-section-kicker),
  body.public-page--landing .landing-aura-walkforward-copy > p:not(.landing-section-kicker),
  body.public-page--landing .landing-feature-lower-copy > .landing-feature-description {
    grid-area: description;
    max-width: none;
    margin-top: 0;
    color: #526781;
    font-family: Inter, Aptos, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: 0.835rem;
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: normal;
  }

  body.public-page--landing.landing-inter-page .landing-aura-feature--backtest .landing-aura-feature-copy > p:not(.landing-section-kicker),
  body.public-page--landing.landing-inter-page .landing-aura-feature--sweep .landing-aura-feature-copy > p:not(.landing-section-kicker),
  body.public-page--landing.landing-inter-page .landing-aura-walkforward-copy > p:not(.landing-section-kicker),
  body.public-page--landing.landing-inter-page .landing-feature-lower-copy > .landing-feature-description {
    max-width: none;
    margin-top: 0;
    color: #526781;
    font-size: 0.835rem;
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: normal;
  }

  body.public-page--landing .landing-mobile-feature-description-line {
    white-space: nowrap;
  }

  body.public-page--landing .landing-aura-pill-row,
  body.public-page--landing .landing-aura-point-grid {
    grid-area: benefits;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-self: center;
    gap: 8px;
    margin-top: 18px;
    padding: 0;
  }

  body.public-page--landing .landing-aura-feature--sweep .landing-aura-point-grid,
  body.public-page--landing .landing-aura-pill-row--backtest,
  body.public-page--landing .landing-aura-walkforward .landing-aura-pill-row--dark {
    justify-items: center;
    text-align: center;
  }

  body.public-page--landing .landing-aura-pill-row--backtest,
  body.public-page--landing .landing-aura-feature--sweep .landing-aura-point-grid,
  body.public-page--landing .landing-aura-walkforward .landing-aura-pill-row--dark {
    gap: 10px;
  }

  body.public-page--landing .landing-aura-backtest-chip,
  body.public-page--landing .landing-aura-pill-row > span,
  body.public-page--landing .landing-aura-point-grid--sweep .landing-aura-sweep-point-card {
    position: relative;
    display: flex;
    min-height: 0;
    width: auto;
    min-width: 0;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #243d5b;
    font-size: 0.72rem;
    font-weight: 650;
    line-height: 1.16;
    white-space: nowrap;
  }

  body.public-page--landing .landing-aura-pill-row--backtest .landing-aura-backtest-chip,
  body.public-page--landing .landing-aura-feature--sweep .landing-aura-point-grid--sweep .landing-aura-sweep-point-card,
  body.public-page--landing .landing-aura-walkforward .landing-aura-pill-row--dark > span {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    width: 100%;
    text-align: center;
    white-space: normal;
  }

  body.public-page--landing .landing-aura-pill-row--backtest .landing-aura-backtest-chip > span {
    text-align: center;
    white-space: nowrap;
  }

  body.public-page--landing .landing-aura-backtest-chip > span {
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    line-height: 1.16;
  }

  body.public-page--landing .landing-aura-backtest-chip::before,
  body.public-page--landing .landing-aura-backtest-chip::after,
  body.public-page--landing .landing-aura-pill-row > span::before,
  body.public-page--landing .landing-aura-pill-row > span::after,
  body.public-page--landing .landing-aura-point-grid--sweep .landing-aura-sweep-point-card::before,
  body.public-page--landing .landing-aura-point-grid--sweep .landing-aura-sweep-point-card::after {
    content: none;
  }

  body.public-page--landing .landing-aura-backtest-chip svg,
  body.public-page--landing .landing-aura-sweep-point-icon,
  body.public-page--landing .landing-aura-pill-row--dark svg {
    display: inline-flex;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    color: #0d5bd7;
    stroke: currentColor;
    stroke-width: 1.8;
    fill: none;
  }

  body.public-page--landing .landing-aura-pill-row.landing-aura-pill-row--dark > span > svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
  }

  body.public-page--landing .landing-aura-point-grid--sweep .landing-aura-sweep-point-head {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    min-width: 0;
    text-align: center;
  }

  body.public-page--landing .landing-aura-point-grid--sweep .landing-aura-sweep-point-icon svg {
    width: 16px;
    height: 16px;
  }

  body.public-page--landing .landing-aura-feature-media,
  body.public-page--landing .landing-aura-walkforward-media {
    left: 2px;
  }

  body.public-page--landing .landing-aura-feature--sweep .landing-aura-sweep-point-icon,
  body.public-page--landing .landing-aura-feature--sweep .landing-aura-sweep-point-icon svg {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
  }

  body.public-page--landing .landing-aura-walkforward .landing-aura-pill-row--dark > span > span {
    display: block;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    font-size: 0.69rem;
    line-height: 1.16;
    white-space: normal;
  }

  body.public-page--landing .landing-aura-point-grid--sweep .landing-aura-sweep-point-card p {
    display: none;
  }

  body.public-page--landing .landing-aura-point-grid--sweep strong {
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
  }
}

@media (max-width: 1199px) {
  body.public-page--landing {
    background: #f3f8ff;
  }

  body.public-page--landing .page-shell--landing {
    background: #f3f8ff;
  }

  body.public-page--landing .landing-mobile-hero-preview {
    margin-top: 36px;
  }
}

/* Landing tablet adaptation: expand the accepted mobile hero/features without restoring desktop art. */
@media (min-width: 768px) and (max-width: 1199px) {
  body.public-page--landing .app-header--public {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    padding: 10px 24px;
  }

  body.public-page--landing .app-header--public .app-nav--public,
  body.public-page--landing .app-header--public > .public-auth-links {
    display: none;
  }

  body.public-page--landing .public-mobile-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  body.public-page--landing .public-mobile-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    min-width: 42px;
    min-height: 42px;
    padding: 0;
    border-color: rgba(13, 91, 215, 0.14);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.92);
    line-height: 1;
  }

  body.public-page--landing .public-mobile-menu-button-text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  body.public-page--landing .public-mobile-menu-button-icon {
    display: grid;
    place-items: center;
    gap: 4px;
    width: 19px;
    margin: auto;
  }

  body.public-page--landing .public-mobile-menu-button-icon span {
    display: block;
    width: 19px;
    height: 2px;
    border-radius: 999px;
    background: #173552;
  }

  body.public-page--landing.is-public-mobile-menu-open {
    overflow: hidden;
  }

  body.public-page--landing .public-mobile-menu-panel {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: none;
    isolation: isolate;
    visibility: hidden;
    pointer-events: none;
  }

  body.public-page--landing .public-mobile-menu-panel[aria-hidden="false"] {
    display: block;
    visibility: visible;
    pointer-events: auto;
  }

  body.public-page--landing .public-mobile-menu-backdrop {
    position: absolute;
    inset: 0;
    z-index: 1;
    border: 0;
    background: rgba(7, 18, 38, 0.6);
    opacity: 0;
    transition: opacity 180ms ease;
    cursor: pointer;
  }

  body.public-page--landing .public-mobile-menu-drawer {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    display: grid;
    width: min(62vw, 680px);
    height: 100vh;
    height: 100dvh;
    grid-template-rows: auto auto auto 1fr;
    align-content: start;
    gap: 14px;
    padding: 18px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-left: 1px solid rgba(13, 91, 215, 0.12);
    background: #f8fbff;
    box-shadow:
      -28px 0 64px -30px rgba(15, 23, 42, 0.48),
      inset 1px 0 0 rgba(255, 255, 255, 0.9);
    transform: translateX(100%);
    transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  body.public-page--landing .public-mobile-menu-panel[aria-hidden="false"] .public-mobile-menu-backdrop {
    opacity: 1;
  }

  body.public-page--landing .public-mobile-menu-panel[aria-hidden="false"] .public-mobile-menu-drawer {
    transform: translateX(0);
  }

  body.public-page--landing .landing-aura-hero {
    display: block;
    width: min(100% - 48px, 860px);
    padding-top: 28px;
    padding-bottom: 36px;
    text-align: center;
  }

  body.public-page--landing .landing-aura-hero-copy,
  body.public-page--landing .mobile-hero-content {
    display: grid;
    justify-items: center;
    width: 100%;
    max-width: 760px;
    margin-inline: auto;
    text-align: center;
  }

  body.public-page--landing .landing-mobile-hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 11px;
    border: 1px solid #d8e8ff;
    border-radius: 999px;
    background: #e8f2ff;
    color: #0d5bd7;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.04em;
    line-height: 1;
    white-space: nowrap;
    box-shadow: none;
  }

  body.public-page--landing .landing-mobile-hero-badge::before {
    content: "";
    width: 7px;
    height: 7px;
    margin-right: 7px;
    border-radius: 999px;
    background: #0d5bd7;
    box-shadow: 0 0 0 4px rgba(13, 91, 215, 0.1);
  }

  body.public-page--landing .landing-aura-mini-chip,
  body.public-page--landing .landing-aura-hero-visual,
  body.public-page--landing .landing-aura-headline-line--compact,
  body.public-page--landing .landing-aura-headline-accent {
    display: none;
  }

  body.public-page--landing .landing-aura-headline-line--mobile {
    display: block;
  }

  body.public-page--landing .landing-aura-hero-copy h1 {
    display: grid;
    justify-items: center;
    width: fit-content;
    margin: 16px auto 0;
  }

  body.public-page--landing .landing-aura-headline-line {
    font-size: clamp(3.5rem, 7.4vw, 5.2rem);
    font-weight: 600;
    line-height: 0.98;
    letter-spacing: -0.05em;
    text-align: center;
    white-space: nowrap;
  }

  body.public-page--landing .mobile-hero-title-line {
    display: block;
    width: fit-content;
    margin-inline: auto;
    text-align: center;
  }

  body.public-page--landing .page-shell--landing .hero-copy {
    max-width: none;
    margin-top: 16px;
    color: #374f68;
    font-size: 1rem;
    line-height: 1.52;
    text-align: center;
  }

  body.public-page--landing .mobile-hero-copy-line {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
    text-align: center;
    white-space: nowrap;
  }

  body.public-page--landing .page-shell--landing .hero-copy .landing-copy-line--compact,
  body.public-page--landing .landing-capability-label--compact {
    display: none;
  }

  body.public-page--landing .landing-capability-label--mobile {
    display: inline;
  }

  body.public-page--landing .landing-aura-hero-chips {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(100%, 520px);
    gap: 0;
    margin-top: 24px;
  }

  body.public-page--landing .landing-aura-hero-chips > span {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 62px;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #233f5d;
    font-size: 0.82rem;
    font-weight: 650;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
  }

  body.public-page--landing .landing-aura-hero-chips > span > svg {
    display: none;
  }

  body.public-page--landing .landing-capability-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(236, 243, 255, 0.7) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  }

  body.public-page--landing .landing-capability-icon::before {
    content: "";
    position: absolute;
    inset: 10px;
    background: #2d67ea;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
  }

  body.public-page--landing .landing-capability-icon--backtest::before {
    -webkit-mask-image: url("./assets/icons/lucide/chart-network.svg");
    mask-image: url("./assets/icons/lucide/chart-network.svg");
  }

  body.public-page--landing .landing-capability-icon--sweep::before {
    -webkit-mask-image: url("./assets/icons/lucide/boxes.svg");
    mask-image: url("./assets/icons/lucide/boxes.svg");
  }

  body.public-page--landing .landing-capability-icon--walkforward::before {
    -webkit-mask-image: url("./assets/icons/lucide/route.svg");
    mask-image: url("./assets/icons/lucide/route.svg");
  }

  body.public-page--landing .landing-aura-hero .landing-public-hero-actions--desktop {
    display: none;
  }

  body.public-page--landing .landing-aura-hero .landing-public-hero-actions--compact {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 520px);
    gap: 12px;
    margin-top: 24px;
    margin-inline: auto;
  }

  body.public-page--landing .landing-aura-hero .landing-public-hero-actions--compact .load-button,
  body.public-page--landing .landing-aura-hero .landing-public-hero-actions--compact .button-secondary {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    justify-content: center;
    padding-right: 14px;
    padding-left: 14px;
    text-align: center;
    white-space: nowrap;
  }

  body.public-page--landing .landing-mobile-hero-preview {
    display: flex;
    justify-content: center;
    width: min(100%, 660px);
    margin-top: 44px;
    padding: 14px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 22px 48px rgba(13, 91, 215, 0.12);
  }

  body.public-page--landing .landing-mobile-hero-preview-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
  }

  body.public-page--landing .landing-aura-feature--backtest,
  body.public-page--landing .landing-aura-feature--sweep,
  body.public-page--landing .landing-aura-walkforward {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.36fr) minmax(0, 0.64fr);
    grid-template-areas:
      "eyebrow eyebrow"
      "title title"
      "lowercopy media";
    column-gap: 22px;
    row-gap: 0;
    align-items: center;
    width: min(100% - 56px, 860px);
    margin-right: auto;
    margin-left: auto;
    padding: 28px 22px 26px;
    overflow: clip;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  body.public-page--landing .landing-aura-feature--sweep,
  body.public-page--landing .landing-aura-walkforward {
    margin-top: 54px;
  }

  body.public-page--landing .landing-aura-feature-copy,
  body.public-page--landing .landing-aura-walkforward-copy {
    display: contents;
  }

  body.public-page--landing .landing-feature-lower-copy {
    display: grid;
    grid-area: lowercopy;
    align-self: center;
    gap: 18px;
    min-width: 0;
  }

  body.public-page--landing .landing-feature-lower-copy > .landing-feature-description,
  body.public-page--landing .landing-feature-lower-copy > .landing-aura-pill-row,
  body.public-page--landing .landing-feature-lower-copy > .landing-aura-point-grid {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  body.public-page--landing .landing-aura-feature-media,
  body.public-page--landing .landing-aura-walkforward-media {
    position: relative;
    left: 2px;
    z-index: 1;
    grid-area: media;
    justify-self: stretch;
    align-self: center;
    width: 100%;
    max-width: 100%;
    margin: 20px 0 0;
    padding: 7px;
    border: 1px solid rgba(13, 91, 215, 0.12);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 38px rgba(17, 49, 92, 0.13);
    transform: perspective(900px) rotateY(-6deg) rotateX(1deg);
    transform-origin: center right;
  }

  body.public-page--landing .landing-aura-feature-card,
  body.public-page--landing .landing-aura-feature-card--backtest,
  body.public-page--landing .landing-aura-feature-card--sweep,
  body.public-page--landing .landing-aura-walkforward-card {
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 17px;
    background: transparent;
    box-shadow: none;
  }

  body.public-page--landing .landing-aura-backtest-media-slot,
  body.public-page--landing .landing-aura-sweep-media-slot,
  body.public-page--landing .landing-aura-walkforward-media-slot {
    overflow: hidden;
    border-radius: 17px;
  }

  body.public-page--landing .landing-aura-backtest-media-image,
  body.public-page--landing .landing-aura-sweep-media-image,
  body.public-page--landing .landing-aura-walkforward-media-image {
    display: block;
    width: 100%;
    height: auto;
  }

  body.public-page--landing .landing-aura-feature .landing-section-kicker,
  body.public-page--landing .landing-aura-walkforward .landing-section-kicker {
    grid-area: eyebrow;
    gap: 6px;
    color: #2f63d6;
    font-size: 0.68rem;
    font-weight: 650;
    line-height: 1;
    letter-spacing: 0.1em;
  }

  body.public-page--landing .landing-aura-feature-copy h2,
  body.public-page--landing .landing-aura-walkforward-copy h2,
  body.public-page--landing .landing-aura-feature--sweep .landing-aura-sweep-title {
    grid-area: title;
    max-width: 15em;
    margin: 10px 0 9px;
    color: #101d3a;
    font-family: Inter, Aptos, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: clamp(2.05rem, 4.35vw, 3rem);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.04em;
  }

  body.public-page--landing .landing-feature-title-line--desktop,
  body.public-page--landing .landing-feature-description-line--desktop,
  body.public-page--landing .landing-aura-feature--backtest .landing-aura-backtest-title.landing-feature-title-line--desktop {
    display: none;
  }

  body.public-page--landing .landing-mobile-feature-title-line,
  body.public-page--landing .landing-mobile-feature-description-line {
    display: block;
  }

  body.public-page--landing .landing-mobile-feature-title-line {
    white-space: nowrap;
  }

  body.public-page--landing .landing-aura-feature-copy > p:not(.landing-section-kicker),
  body.public-page--landing .landing-aura-walkforward-copy > p:not(.landing-section-kicker),
  body.public-page--landing .landing-feature-lower-copy > .landing-feature-description,
  body.public-page--landing.landing-inter-page .landing-aura-feature--backtest .landing-aura-feature-copy > p:not(.landing-section-kicker),
  body.public-page--landing.landing-inter-page .landing-aura-feature--sweep .landing-aura-feature-copy > p:not(.landing-section-kicker),
  body.public-page--landing.landing-inter-page .landing-aura-walkforward-copy > p:not(.landing-section-kicker),
  body.public-page--landing.landing-inter-page .landing-feature-lower-copy > .landing-feature-description {
    grid-area: auto;
    width: 100%;
    max-width: 34ch;
    margin: 0;
    color: #3f536d;
    font-family: Inter, Aptos, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: normal;
  }

  body.public-page--landing .landing-mobile-feature-description-line {
    white-space: normal;
  }

  body.public-page--landing .landing-aura-pill-row,
  body.public-page--landing .landing-aura-point-grid {
    grid-area: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-self: center;
    gap: 12px;
    margin-top: 0;
    padding: 0;
  }

  body.public-page--landing .landing-aura-pill-row--backtest,
  body.public-page--landing .landing-aura-feature--sweep .landing-aura-point-grid,
  body.public-page--landing .landing-aura-walkforward .landing-aura-pill-row--dark {
    justify-items: start;
    text-align: left;
  }

  body.public-page--landing .landing-aura-backtest-chip,
  body.public-page--landing .landing-aura-pill-row > span,
  body.public-page--landing .landing-aura-point-grid--sweep .landing-aura-sweep-point-card,
  body.public-page--landing .landing-aura-walkforward .landing-aura-pill-row--dark > span,
  body.public-page--landing.landing-inter-page .landing-aura-pill-row--backtest .landing-aura-backtest-chip,
  body.public-page--landing.landing-inter-page .landing-aura-point-grid--sweep .landing-aura-sweep-point-card,
  body.public-page--landing.landing-inter-page .landing-aura-walkforward .landing-aura-pill-row--dark > span {
    position: relative;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: center;
    justify-content: flex-start;
    justify-items: start;
    gap: 8px;
    width: 100%;
    min-width: 0;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #142640;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.24;
    text-align: left;
  }

  body.public-page--landing .landing-aura-point-grid--sweep .landing-aura-sweep-point-head {
    display: contents;
  }

  body.public-page--landing .landing-aura-backtest-chip > span,
  body.public-page--landing .landing-aura-walkforward .landing-aura-pill-row--dark > span > span,
  body.public-page--landing .landing-aura-point-grid--sweep strong,
  body.public-page--landing.landing-inter-page .landing-aura-pill-row--backtest .landing-aura-backtest-chip > span,
  body.public-page--landing.landing-inter-page .landing-aura-point-grid--sweep strong,
  body.public-page--landing.landing-inter-page .landing-aura-walkforward .landing-aura-pill-row--dark > span > span {
    display: block;
    min-width: 0;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: inherit;
    font: inherit;
    line-height: inherit;
    text-align: left;
    white-space: normal;
  }

  body.public-page--landing .landing-aura-backtest-chip::before,
  body.public-page--landing .landing-aura-backtest-chip::after,
  body.public-page--landing .landing-aura-pill-row > span::before,
  body.public-page--landing .landing-aura-pill-row > span::after,
  body.public-page--landing .landing-aura-point-grid--sweep .landing-aura-sweep-point-card::before,
  body.public-page--landing .landing-aura-point-grid--sweep .landing-aura-sweep-point-card::after {
    content: none;
  }

  body.public-page--landing .landing-aura-backtest-chip svg,
  body.public-page--landing .landing-aura-sweep-point-icon,
  body.public-page--landing .landing-aura-sweep-point-icon svg,
  body.public-page--landing .landing-aura-pill-row--dark svg,
  body.public-page--landing.landing-inter-page .landing-aura-pill-row--backtest .landing-aura-backtest-chip svg,
  body.public-page--landing.landing-inter-page .landing-aura-point-grid--sweep .landing-aura-sweep-point-icon,
  body.public-page--landing.landing-inter-page .landing-aura-point-grid--sweep .landing-aura-sweep-point-icon svg,
  body.public-page--landing.landing-inter-page .landing-aura-pill-row--dark svg {
    display: inline-flex;
    width: 20px;
    height: 20px;
    min-width: 20px;
    max-width: 20px;
    min-height: 20px;
    max-height: 20px;
    flex: 0 0 20px;
    flex-basis: 20px;
    align-self: center;
    color: #0d5bd7;
    stroke: currentColor;
    stroke-width: 1.8;
    fill: none;
  }

  body.public-page--landing .landing-aura-point-grid--sweep .landing-aura-sweep-point-card p {
    display: none;
  }

  body.public-page--landing .landing-final-cta-card--aura {
    padding: 42px 28px;
  }

  body.public-page--landing .landing-final-cta-card--aura .landing-aura-cta-float {
    display: none;
  }
}

/* Landing compact desktop calibration: keep desktop structure while reducing 1200-1399px scale. */
@media (min-width: 1200px) and (max-width: 1399px) {
  body.public-page--landing .app-header--public {
    padding-right: 24px;
    padding-left: 24px;
  }

  body.public-page--landing .app-nav--public {
    gap: 12px;
    flex-wrap: nowrap;
  }

  body.public-page--landing .app-nav--public a {
    font-size: 0.86rem;
    white-space: nowrap;
  }

  body.public-page--landing .app-header--public > .public-auth-links {
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
  }

  body.public-page--landing .app-header--public .site-auth-link,
  body.public-page--landing .app-header--public .header-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding-right: 10px;
    padding-left: 10px;
    font-size: 0.84rem;
    line-height: 1;
    white-space: nowrap;
  }

  body.public-page--landing .public-mobile-menu {
    display: none;
  }

  body.public-page--landing .page-shell--landing {
    --landing-workflow-gap-after: 42px;
    --landing-feature-gap-before: 62px;
    --landing-feature-gap-after: 22px;
    --landing-feature-gap-before-loose: 68px;
    --landing-feature-gap-after-loose: 30px;
    --landing-walkforward-gap-before: 68px;
    --landing-walkforward-gap-after: 24px;
    --landing-get-started-gap-before: 72px;
    --landing-get-started-gap-after: 30px;
    --landing-final-cta-gap-before: 32px;
  }

  body.public-page--landing,
  body.public-page--landing .app-shell--public,
  body.public-page--landing .page-shell--landing {
    background: linear-gradient(180deg, #f4f9ff 0%, #eaf3fe 30%, #e2eefc 62%, #edf5ff 100%);
  }

  body.public-page--landing .landing-aura-hero,
  body.public-page--landing .landing-aura-workflow,
  body.public-page--landing .landing-aura-feature,
  body.public-page--landing .landing-aura-get-started,
  body.public-page--landing .landing-final-cta,
  body.public-page--landing .landing-aura-walkforward,
  body.public-page--landing .page-shell--landing .app-footer--public {
    width: min(1180px, calc(100% - 48px));
  }

  body.public-page--landing .landing-aura-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.45fr) minmax(0, 0.55fr);
    gap: 28px;
    align-items: center;
    padding-top: 18px;
    padding-bottom: 30px;
  }

  body.public-page--landing .landing-aura-hero-copy {
    top: -12px;
    max-width: 100%;
  }

  body.public-page--landing .landing-aura-hero-copy h1 {
    margin-top: 14px;
  }

  body.public-page--landing .landing-aura-headline-line {
    font-size: clamp(3.35rem, 4.45vw, 4.18rem);
    line-height: 0.96;
  }

  body.public-page--landing .landing-aura-headline-accent {
    margin-top: 12px;
    padding: 9px 14px 12px;
    font-size: clamp(2.55rem, 3.48vw, 3.22rem);
  }

  body.public-page--landing .page-shell--landing .hero-copy {
    max-width: 54ch;
    margin-top: 18px;
    font-size: 1rem;
    line-height: 1.65;
  }

  body.public-page--landing .landing-aura-hero-chips {
    gap: 10px;
    margin-top: 16px;
    font-size: 0.76rem;
  }

  body.public-page--landing .landing-aura-hero-chips svg {
    width: 17px;
    height: 17px;
    min-width: 17px;
    max-width: 17px;
    min-height: 17px;
    max-height: 17px;
  }

  body.public-page--landing .landing-aura-hero .landing-public-hero-actions {
    gap: 10px;
    margin-top: 20px;
  }

  body.public-page--landing .landing-aura-hero .landing-public-hero-actions .load-button,
  body.public-page--landing .landing-aura-hero .landing-public-hero-actions .button-secondary {
    min-height: 46px;
    padding-right: 16px;
    padding-left: 16px;
    white-space: nowrap;
  }

  body.public-page--landing .landing-aura-hero-visual {
    width: 100%;
    max-width: 540px;
    min-height: 548px;
    margin-left: auto;
  }

  body.public-page--landing .landing-aura-dashboard-shell {
    width: min(100%, 500px);
    max-width: 100%;
    margin: 18px 0 0 auto;
    padding: 14px;
  }

  body.public-page--landing .landing-aura-floating-card {
    padding: 10px 12px;
    border-radius: 18px;
  }

  body.public-page--landing .landing-aura-floating-card strong {
    gap: 7px;
    font-size: 0.76rem;
  }

  body.public-page--landing .landing-aura-floating-card small {
    font-size: 0.66rem;
  }

  body.public-page--landing .landing-aura-floating-card--top-left {
    top: 274px;
    left: 0;
  }

  body.public-page--landing .landing-aura-floating-card--top-right {
    top: 24px;
    right: 4px;
  }

  body.public-page--landing .landing-aura-floating-card--mid-right {
    top: 184px;
    right: 0;
  }

  body.public-page--landing .landing-aura-floating-card--bottom-left {
    left: 8px;
    bottom: 14px;
  }

  body.public-page--landing .landing-aura-floating-card--bottom-right {
    right: 4px;
    bottom: 84px;
  }

  body.public-page--landing .landing-aura-workflow {
    padding-top: 48px;
  }

  body.public-page--landing .page-shell--landing .landing-section-header--workflow {
    margin-bottom: 26px;
  }

  body.public-page--landing .page-shell--landing .landing-section-header--workflow h2 {
    font-size: clamp(2.25rem, 3.35vw, 3rem);
  }

  body.public-page--landing .landing-aura-workflow-shell {
    --landing-workflow-panel-inline-padding: 26px;
    padding: 28px var(--landing-workflow-panel-inline-padding) 30px;
    border-radius: 36px;
  }

  body.public-page--landing .landing-aura-workflow-track {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }

  body.public-page--landing .page-shell--landing .landing-workflow-grid {
    gap: 18px;
  }

  body.public-page--landing .landing-aura-workflow-node {
    flex: 0 0 54px;
    min-width: 0;
    width: 54px;
    max-width: 54px;
    height: 54px;
    min-height: 54px;
    max-height: 54px;
    padding: 0;
  }

  body.public-page--landing .landing-aura-feature--backtest,
  body.public-page--landing .landing-aura-walkforward {
    grid-template-columns: minmax(0, 0.44fr) minmax(0, 0.56fr);
    gap: 28px;
  }

  body.public-page--landing .landing-aura-feature--sweep {
    grid-template-columns: minmax(0, 0.56fr) minmax(0, 0.44fr);
    gap: 28px;
  }

  body.public-page--landing .landing-aura-feature-copy,
  body.public-page--landing .landing-aura-walkforward-copy {
    max-width: 100%;
  }

  body.public-page--landing .landing-aura-feature-copy h2,
  body.public-page--landing .landing-aura-walkforward-copy h2 {
    font-size: clamp(2.35rem, 3.45vw, 3.25rem);
  }

  body.public-page--landing .landing-aura-feature--sweep .landing-aura-sweep-title,
  body.public-page--landing .landing-aura-walkforward-copy h2.landing-aura-walkforward-title {
    font-size: clamp(2.05rem, 2.9vw, 2.72rem);
  }

  body.public-page--landing .landing-aura-feature-copy p,
  body.public-page--landing .landing-aura-walkforward-copy p,
  body.public-page--landing .landing-feature-lower-copy > .landing-feature-description,
  body.public-page--landing .landing-aura-feature--backtest .landing-feature-lower-copy > .landing-feature-description {
    max-width: 42ch;
    margin-top: 18px;
    font-size: 0.96rem;
    line-height: 1.62;
  }

  body.public-page--landing .landing-aura-pill-row {
    gap: 10px;
    margin-top: 22px;
  }

  body.public-page--landing .landing-aura-pill-row--backtest {
    gap: 10px 12px;
    margin-top: 22px;
  }

  body.public-page--landing .landing-aura-pill-row > span,
  body.public-page--landing .landing-aura-pill-row--backtest .landing-aura-backtest-chip {
    min-height: 36px;
    padding-right: 12px;
    padding-left: 12px;
    font-size: 0.78rem;
  }

  body.public-page--landing .landing-aura-point-grid {
    gap: 12px;
  }

  body.public-page--landing .landing-aura-sweep-point-card {
    padding: 16px;
  }

  body.public-page--landing .landing-aura-feature-media--backtest,
  body.public-page--landing .landing-aura-feature-media--sweep,
  body.public-page--landing .landing-aura-walkforward-media {
    width: min(100%, 540px);
    max-width: 540px;
    padding: 14px;
    border-radius: 32px;
  }

  body.public-page--landing .landing-aura-feature-card--backtest,
  body.public-page--landing .landing-aura-feature-card--sweep,
  body.public-page--landing .landing-aura-walkforward-card {
    width: 100%;
  }

  body.public-page--landing .landing-aura-get-started-title {
    font-size: clamp(2.15rem, 2.65vw, 3.15rem);
  }

  body.public-page--landing .landing-aura-steps-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  body.public-page--landing .page-shell--landing .landing-aura-get-started .landing-start-step {
    padding: 20px;
    border-radius: 26px;
  }

  body.public-page--landing .landing-final-cta-card--aura {
    padding: 48px 28px;
    border-radius: 36px;
  }

  body.public-page--landing .landing-final-cta-card--aura h2 {
    margin-top: 18px;
    font-size: clamp(2.55rem, 3.85vw, 3.4rem);
  }

  body.public-page--landing .landing-final-cta-card--aura p {
    margin-top: 16px;
    line-height: 1.62;
  }

  body.public-page--landing .landing-final-cta-card--aura .landing-public-hero-actions,
  body.public-page--landing .landing-final-cta-card--aura .landing-aura-final-chips {
    margin-top: 22px;
  }

  body.public-page--landing .landing-final-cta-card--aura .landing-aura-cta-float {
    display: none;
  }

  body.public-page--landing .app-footer--public {
    gap: 18px;
  }

  body.public-page--landing .app-footer-links {
    gap: 12px 16px;
    flex-wrap: nowrap;
  }
}

@media (max-width: 767px) {
  body.public-page .app-footer--public {
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 0;
    text-align: center;
  }

  body.public-page .app-footer--public .app-footer-copy {
    max-width: none;
    width: 100%;
    text-align: center;
  }

  body.public-page .app-footer--public .app-footer-copy h2,
  body.public-page .app-footer--public .app-footer-copy p,
  body.public-page .app-footer--public .app-footer-meta {
    text-align: center;
  }

  body.public-page .app-footer--public .app-footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 8px;
    text-align: center;
  }

  body.public-page .app-footer--public .app-footer-links a {
    justify-content: center;
    width: auto;
  }
}

@media (max-width: 767px) {
  body.help-center-inter-page .help-center-container {
    width: 100%;
  }

  body.help-center-inter-page .help-center-search-shell {
    max-width: none;
    width: 100%;
  }

  body.help-center-inter-page .help-center-kb > .landing-section-header h2,
  body.help-center-inter-page .help-center-bottom-grid .landing-section-header h2 {
    white-space: nowrap;
  }

  body.help-center-inter-page .help-center-topic-grid {
    grid-template-columns: 1fr;
  }

  body.help-center-inter-page .help-center-kb-method-tabs {
    flex-wrap: nowrap;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  body.help-center-inter-page .help-center-kb-method-tab {
    flex: 0 0 auto;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  body.help-center-inter-page .help-center-search-shell {
    max-width: none;
  }

  body.help-center-inter-page .help-center-container {
    width: 100%;
  }

  body.help-center-inter-page .help-center-kb > .landing-section-header h2,
  body.help-center-inter-page .help-center-bottom-grid .landing-section-header h2 {
    white-space: nowrap;
  }

  body.help-center-inter-page .help-center-topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 374px) {
  body.strategy-detail-inter-page .strategy-test-tabs {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 0.9fr) minmax(0, 1.2fr);
    gap: 2px;
  }

  body.strategy-detail-inter-page .strategy-mobile-section-switch {
    gap: 2px;
    padding: 2px;
  }

  body.strategy-detail-inter-page .strategy-mobile-section-tab {
    padding: 0 6px;
  }
}

@media (max-width: 1199px) {
  body.market-data-inter-page .market-data-hero-shell {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: min(1240px, calc(100% - 32px));
  }

  body.market-data-inter-page .market-data-hero-copy {
    display: contents;
  }

  body.market-data-inter-page .market-data-hero-label {
    order: 1;
  }

  body.market-data-inter-page .market-data-hero-copy h1 {
    order: 2;
    max-width: none;
    white-space: normal;
  }

  body.market-data-inter-page .market-data-hero-copy p:last-child {
    order: 3;
    max-width: 100%;
  }

  body.market-data-inter-page .market-data-hero-visual {
    order: 4;
    width: min(500px, 100%);
    min-height: 238px;
    margin: 0 auto;
  }

  body.market-data-inter-page .market-data-hero-actions {
    order: 5;
    margin-top: 0;
    align-self: center;
  }

  body.market-data-inter-page .market-data-hero-cta {
    width: min(100%, 340px);
    justify-content: center;
  }

  body.market-data-inter-page .market-data-source-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  body.market-data-inter-page .market-data-format-cta {
    justify-content: flex-start;
    gap: 16px;
    padding: 20px 22px;
  }

  body.market-data-inter-page .market-data-format-cta::after {
    content: none;
  }

  body.market-data-inter-page .market-data-format-copy {
    max-width: none;
  }

  body.market-data-inter-page .market-data-final-cta-card {
    justify-content: flex-start;
    gap: 16px;
    padding: 22px;
  }

  body.market-data-inter-page .market-data-final-cta-copy {
    flex: 0 0 auto;
    max-width: none;
  }

  body.market-data-inter-page .market-data-final-cta-actions {
    width: auto;
    align-self: flex-start;
  }
}

@media (max-width: 767px) {
  body.market-data-inter-page .market-data-source-grid {
    grid-template-columns: 1fr;
  }

  body.market-data-inter-page .market-data-hero-cta {
    width: min(100%, 320px);
  }

  body.market-data-inter-page .market-data-final-cta-card {
    padding: 20px;
  }
}

@media (max-width: 1199px) {
  body.dashboard-inter-page .dashboard-results-table,
  body.result-history-inter-page .result-history-table {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(83, 112, 150, 0.35) transparent;
  }

  body.dashboard-inter-page .dashboard-results-row {
    min-width: 1180px;
    grid-template-columns: minmax(250px, 1.22fr) 128px 120px 128px minmax(190px, 1fr) 64px 132px;
  }

  body.result-history-inter-page .result-history-row {
    min-width: 1180px;
    grid-template-columns: minmax(250px, 1.34fr) 122px 116px 122px minmax(210px, 1.12fr) 58px 124px;
  }

  body.dashboard-inter-page .dashboard-results-row,
  body.result-history-inter-page .result-history-row {
    display: grid;
    align-items: center;
  }

  body.dashboard-inter-page .dashboard-results-row--head,
  body.result-history-inter-page .result-history-row--head {
    display: grid;
  }

  body.result-history-inter-page .result-history-header-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: min(100%, 430px);
    gap: 10px;
    align-items: stretch;
    justify-content: stretch;
  }

  body.result-history-inter-page .result-history-control-button,
  body.result-history-inter-page .result-history-sort {
    width: 100%;
    justify-content: center;
    min-width: 0;
  }

  body.result-history-inter-page .result-history-sort select {
    min-width: 0;
    width: 100%;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  body.dashboard-inter-page .dashboard-top-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.dashboard-inter-page .dashboard-top-stats > * {
    min-width: 0;
  }
}

@media (max-width: 767px) {
  body.dashboard-inter-page .dashboard-top-stats {
    grid-template-columns: 1fr;
  }

  body.result-history-inter-page .result-history-header-controls {
    width: 100%;
  }
}
 .auth-status-message {
  min-height: 1.25rem;
  margin: 0.75rem 0 0;
  color: var(--color-text-muted, #667085);
  font-size: 0.875rem;
}

.auth-status-message[data-state="error"] {
  color: var(--color-danger, #b42318);
}

.auth-status-message[data-state="loading"] {
  color: var(--color-text-muted, #667085);
}

html.pqr-auth-pending body {
  visibility: hidden;
}

@media (min-width: 768px) {
  body.strategy-detail-inter-page .strategy-config-panel.is-preview-sticky {
    position: sticky;
    top: calc(var(--header-height) + 18px);
  }

  body.strategy-detail-inter-page .strategy-config-panel.is-form-open {
    position: sticky;
    top: calc(var(--header-height) + 18px);
    height: calc(100vh - var(--header-height) - 36px);
    max-height: calc(100vh - var(--header-height) - 36px);
    overflow: hidden;
  }

  body.strategy-detail-inter-page .strategy-config-panel.is-form-open .strategy-config-card {
    height: 100%;
    max-height: none;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  body.strategy-detail-inter-page .strategy-config-panel.is-form-open .strategy-test-tabs {
    min-height: 42px;
  }
}

@media (max-width: 767px) {
  body.strategy-detail-inter-page .strategy-config-panel.is-form-open {
    position: static;
    height: auto;
    max-height: none;
    overflow: visible;
  }

  body.strategy-detail-inter-page .strategy-config-panel.is-form-open .strategy-config-card {
    height: auto;
    max-height: none;
    overflow: visible;
  }
}

/* Support verification confirmation */
body.support-verification-inter-page {
  background:
    radial-gradient(circle at 50% 20%, rgba(64, 118, 203, 0.09), transparent 36%),
    #f6f8fc;
}

.page-shell--support-verification {
  display: grid;
  place-items: center;
  min-height: calc(100vh - var(--header-height) - 150px);
  padding-top: 64px;
  padding-bottom: 64px;
}

.support-verification-card {
  width: min(100%, 680px);
  padding: 44px;
  border: 1px solid rgba(13, 91, 215, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 56px rgba(18, 32, 61, 0.1);
  text-align: center;
}

.support-verification-icon {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: #edf8f2;
  color: #137a4b;
  box-shadow: 0 0 0 8px rgba(19, 122, 75, 0.06);
}

.support-verification-icon::before {
  content: "✓";
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1;
}

.support-verification-icon[data-state="error"] {
  background: #fff2f0;
  color: #b42318;
  box-shadow: 0 0 0 8px rgba(180, 35, 24, 0.06);
}

.support-verification-icon[data-state="error"]::before {
  content: "!";
}

.support-verification-kicker {
  margin: 0 0 10px;
  color: #2d5ca7;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.support-verification-card h1 {
  margin: 0;
  color: #16263b;
  font-size: clamp(1.8rem, 4vw, 2.35rem);
  line-height: 1.14;
  letter-spacing: -0.035em;
}

.support-verification-message {
  max-width: 54ch;
  margin: 16px auto 0;
  color: #58677b;
  font-size: 1.02rem;
  line-height: 1.7;
}

.support-verification-reference {
  display: grid;
  gap: 5px;
  width: fit-content;
  max-width: 100%;
  margin: 24px auto 0;
  padding: 12px 18px;
  border: 1px solid rgba(13, 91, 215, 0.12);
  border-radius: 12px;
  background: #f7faff;
  text-align: left;
}

.support-verification-reference[hidden] {
  display: none;
}

.support-verification-reference span {
  color: #66758a;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.support-verification-reference strong {
  overflow-wrap: anywhere;
  color: #203a5f;
  font-size: 0.94rem;
}

.support-verification-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.support-verification-primary,
.support-verification-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 0.92rem;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.support-verification-primary {
  border: 1px solid #1f4f91;
  background: #1f4f91;
  color: #ffffff;
}

.support-verification-primary:hover,
.support-verification-primary:focus-visible {
  background: #173f77;
  border-color: #173f77;
  transform: translateY(-1px);
}

.support-verification-secondary {
  border: 1px solid rgba(32, 58, 95, 0.2);
  background: #ffffff;
  color: #203a5f;
}

.support-verification-secondary:hover,
.support-verification-secondary:focus-visible {
  border-color: rgba(32, 58, 95, 0.38);
  background: #f7f9fc;
  transform: translateY(-1px);
}

@media (max-width: 767px) {
  .page-shell--support-verification {
    min-height: auto;
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .support-verification-card {
    padding: 34px 28px;
    border-radius: 18px;
  }
}

@media (max-width: 520px) {
  .support-verification-card {
    padding: 30px 20px;
  }

  .support-verification-actions {
    flex-direction: column;
  }

  .support-verification-primary,
  .support-verification-secondary {
    width: 100%;
  }
}
