/* Canonical CSS owner: screener. Historical layers consolidated 2026-08-02. */
#screenerView .section-toolbar h2 {
  font-size: var(--font-size-page-title);

  font-weight: var(--font-weight-semibold);
}

@media (max-width: 767px) {
  #screenerView {
    border-radius: 0px;
  }
}

.streak-value {
  color: var(--coral);

  font-weight: 750;
}

.screener-mode-tabs .lucide {
  width: 16px;

  height: 16px;
}

.curated-detail-header > div > span,
.quant-panel-heading span {
  color: var(--text-secondary);

  font-size: 12px;

  font-weight: 650;
}

:where(#screenerView) .curated-detail-header h3 {
  margin: 3px 0px 0px;

  color: var(--text-primary);

  letter-spacing: 0px;
}

:where(#screenerView) .curated-library-heading > strong {
  padding: 4px 8px;

  border-radius: 5px;

  background: var(--action-soft);
}

:where(#screenerView) .curated-search .lucide {
  height: 16px;
}

:where(#screenerView) .curated-search input {
  background: transparent;

  color: var(--text-primary);
}

.curated-strategy-card.active .curated-strategy-rank {
  background: var(--action-soft);

  color: var(--action);
}

:where(#screenerView) .curated-detail-header p {
  margin: 9px 0px 0px;

  color: var(--text-secondary);
}

.curated-strategy-badges {
  display: flex;

  justify-content: flex-end;

  gap: 6px;

  flex-wrap: wrap;
}

:where(#screenerView) .curated-strategy-badges span {
  display: inline-flex;

  align-items: center;

  border-radius: 5px;

  background: var(--hover);

  color: var(--text-secondary);

  font-weight: 650;

  white-space: nowrap;
}

.curated-strategy-badges span:first-child {
  background: var(--action-soft);

  color: var(--action);
}

:where(#screenerView) .mini-section-heading {
  min-height: 36px;

  justify-content: space-between;
}

:where(#screenerView) .mini-section-heading h4 {
  font-weight: 740;

  color: var(--text-primary);
}

.mini-section-heading > span {
  color: var(--text-secondary);

  font-size: 12px;
}

:where(#screenerView) .curated-rule-list {
  display: grid;

  gap: 6px;
}

:where(#screenerView) .curated-score-list {
  display: grid;

  gap: 6px;
}

:where(#screenerView) .curated-rule-row {
  display: grid;

  grid-template-columns: minmax(0px, 1fr) auto;

  align-items: center;

  gap: 12px;

  border-bottom: 1px solid var(--border);
}

:where(#screenerView) .curated-rule-row span {
  color: var(--text-secondary);
}

:where(#screenerView) .curated-rule-row strong {
  color: var(--text-primary);

  font-variant-numeric: tabular-nums;
}

:where(#screenerView) .curated-score-row {
  display: grid;

  align-items: center;
}

.curated-score-row > span:first-child {
  overflow: hidden;

  color: var(--text-secondary);

  text-overflow: ellipsis;

  white-space: nowrap;
}

.curated-score-track {
  height: 7px;

  overflow: hidden;

  border-radius: 4px;

  background: var(--surface-muted);
}

.curated-score-track i {
  height: 100%;

  display: block;

  border-radius: inherit;

  background: var(--action);
}

.curated-score-row strong {
  color: var(--text-primary);

  text-align: right;

  font-variant-numeric: tabular-nums;
}

.curated-data-status {
  min-width: 0px;

  display: flex;

  align-items: center;

  gap: 10px;

  margin-right: auto;
}

:where(#screenerView) .curated-data-status > .lucide {
  color: var(--market-down);
}

.curated-data-status.missing > .lucide {
  color: var(--warning-color);
}

.curated-data-status span {
  display: block;
}

:where(#screenerView) .curated-data-status strong {
  display: block;

  color: var(--text-primary);
}

:where(#screenerView) .curated-data-status small {
  display: block;

  color: var(--text-tertiary);
}

.quant-universe-grid .form-field {
  margin: 0px;
}

.quant-universe-grid input[type="number"] {
  height: 32px;
}

.quant-rule-row input:focus,
.quant-rule-row select:focus {
  border-color: var(--action);

  outline: 0px;

  box-shadow: 0 0 0 3px var(--focus-ring);
}

:where(#screenerView) .quant-remove-button {
  cursor: pointer;
}

:where(#screenerView) .quant-remove-button .lucide {
  height: 16px;
}

.quant-weight-status > span {
  font-size: 12px;
}

.quant-weight-status > strong {
  font-size: 12px;

  float: right;

  color: var(--action);
}

:where(#screenerView) .quant-weight-status > div {
  margin-top: 8px;
}

:where(#screenerView) .quant-weight-status i {
  width: 100%;

  background: var(--action);

  transition: width 180ms, background 180ms;
}

:where(#screenerView) .quant-validation-message {
  min-height: 38px;

  line-height: 1.55;
}

@media (max-width: 1050px) {
  .curated-screener-panel {
    grid-template-columns: 290px minmax(0px, 1fr);
  }

  .curated-detail-grid {
    grid-template-columns: 1fr;

    gap: 18px;
  }

  .quant-screener-panel {
    grid-template-columns: 1fr;
  }

  .quant-summary-pane {
    border-top: 1px solid var(--border);

    border-left: 0px;
  }
}

@media (max-width: 767px) {
  #screenerView.mobile-results [data-screener-panel]:not([hidden]) {
    display: block !important;
  }

  #screenerView.mobile-results [data-screener-panel]:not([hidden]) > :not([data-screener-results-slot]) {
    display: none !important;
  }

  .curated-strategy-card {
    grid-template-columns: 28px minmax(0px, 1fr);

    min-height: 70px;
  }

  .curated-strategy-rank {
    width: 28px;

    height: 28px;
  }

  .curated-detail-pane {
    padding: 16px 14px;
  }

  .curated-detail-header {
    flex-direction: column;
  }

  .curated-strategy-badges {
    justify-content: flex-start;
  }

  .curated-execution-bar {
    align-items: stretch;

    flex-direction: column;
  }

  .curated-data-status {
    margin-right: 0px;
  }

  .quant-builder-pane {
    padding: 16px 12px;
  }

  .quant-filter-row,
  .quant-score-row {
    grid-template-columns: minmax(0px, 1fr) 92px 38px;
  }

  .quant-filter-row .quant-value-input {
    grid-area: 2 / 1 / auto / 3;
  }

  .quant-remove-button {
    grid-area: 1 / 3 / 3;

    align-self: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .quant-weight-status i,
  .screener-mode-tabs button {
    transition: none;
  }
}

:where(#screenerView) .regime-evidence {
  border-right: 1px solid var(--line);
}

:where(#screenerView) .regime-summary {
  min-width: 0px;

  gap: 5px;
}

.factor-data-status > span:last-child,
.regime-summary > span:last-child {
  color: var(--text-muted);

  font-size: 12px;
}

:where(#screenerView) .regime-selector {
  grid-template-columns: repeat(6, minmax(62px, 1fr));

  border-right: 1px solid var(--line);
}

:where(#screenerView) .regime-option {
  cursor: pointer;

  font-weight: 650;
}

:where(#screenerView) .regime-evidence strong {
  overflow: hidden;

  text-overflow: ellipsis;

  white-space: nowrap;
}

:where(#screenerView) .factor-data-status {
  min-width: 0px;

  border-right: 0px;
}

:where(#screenerView) .strategy-sidebar {
  min-width: 0px;

  overflow-y: auto;

  border-right: 1px solid var(--line);
}

:where(#screenerView) .strategy-list {
  display: grid;
}

:where(#screenerView) .strategy-item {
  width: 100%;

  border: 1px solid var(--line);

  cursor: pointer;

  text-align: left;
}

:where(#screenerView) .strategy-item strong {
  display: block;
}

:where(#screenerView) .strategy-item span {
  display: block;

  overflow: hidden;

  color: var(--text-muted);

  text-overflow: ellipsis;

  white-space: nowrap;
}

:where(#screenerView) .strategy-item small {
  display: inline-block;

  color: var(--coral);
}

:where(#screenerView) .strategy-workbench {
  min-width: 0px;
}

:where(#screenerView) .strategy-meta-fields {
  display: grid;

  gap: 10px;
}

.strategy-prompt-field {
  margin-top: 12px;
}

:where(#screenerView) .strategy-actions {
  display: flex;

  align-items: center;

  justify-content: flex-end;

  gap: 8px;
}

:where(#screenerView) .formula-field {
  margin-top: 10px;
}

:where(#screenerView) .form-field.formula-field textarea {
  resize: vertical;

  background: rgb(23, 35, 45);

  color: rgb(231, 242, 246);

  font-family: Consolas, "Microsoft YaHei UI", monospace;

  font-size: 12px;

  line-height: 1.55;
}

:where(#screenerView) .backtest-panel {
  border-bottom: 1px solid var(--line);
}

.backtest-panel .workspace-heading > span {
  max-width: 70%;

  overflow: hidden;

  text-overflow: ellipsis;

  white-space: nowrap;
}

:where(#screenerTrackingView) .result-toolbar {
  border-top: 0px;
}

.probability-value {
  color: var(--blue-dark);

  font-weight: 700;
}

.risk-cell {
  max-width: 240px;

  overflow: hidden;

  color: var(--amber);

  text-overflow: ellipsis;
}

#screenerView .strategy-sidebar {
  max-height: 430px;

  padding: 12px;

  background: var(--surface-subtle);
}

#screenerView .strategy-list {
  gap: 5px;
}

#screenerView .strategy-item {
  min-height: 58px;

  padding: 8px 9px;

  border-color: transparent;

  border-radius: 6px;

  background: transparent;
}

#screenerView .strategy-item:hover {
  border-color: var(--border);

  background: var(--surface);
}

#screenerView .strategy-item.active {
  border-color: var(--color-action-line);

  background: var(--action-soft);
}

#screenerView .strategy-item strong {
  font-size: 12px;
}

#screenerView .strategy-item span {
  margin-top: 3px;

  font-size: 10px;
}

#screenerView .strategy-item small {
  margin-top: 4px;

  font-size: 10px;
}

#screenerView .strategy-workbench {
  padding: 12px 14px 14px;
}

.strategy-workbench-heading {
  min-height: 44px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 14px;

  margin: -2px 0px 10px;

  padding-bottom: 9px;

  border-bottom: 1px solid var(--border);
}

.strategy-workbench-heading small,
.strategy-workbench-heading span {
  color: var(--text-secondary);

  font-size: 10px;
}

.strategy-workbench-heading h3 {
  margin: 3px 0px 0px;

  font-size: 16px;
}

#screenerView .strategy-meta-fields {
  grid-template-columns: minmax(180px, 0.45fr) minmax(300px, 1fr);
}

#screenerView .strategy-prompt-field textarea {
  min-height: 88px;
}

#screenerView .strategy-actions {
  min-height: 42px;

  margin-top: 8px;

  padding-top: 8px;

  border-top: 1px solid var(--border);
}

#screenerView .strategy-actions .checkbox-control {
  margin-right: auto;

  order: -1;
}

.strategy-advanced {
  margin-top: 8px;

  border-top: 1px solid var(--border);
}

.strategy-advanced > summary {
  min-height: 42px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 12px;

  cursor: pointer;

  list-style: none;
}

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

.strategy-advanced > summary div > strong {
  display: block;

  font-size: 12px;
}

.strategy-advanced > summary div > span {
  display: block;

  margin-top: 2px;

  color: var(--text-secondary);

  font-size: 10px;
}

.strategy-advanced > summary .lucide {
  width: 16px;

  height: 16px;

  transition: transform var(--motion-medium) var(--ease-out);
}

.strategy-advanced[open] > summary .lucide {
  transform: rotate(180deg);
}

.strategy-advanced:not([open]) > .formula-field {
  display: none;
}

#screenerView .formula-field {
  margin: 4px 0px 0px;
}

#screenerView .form-field.formula-field textarea {
  min-height: 210px;
}

#screenerView .backtest-panel {
  padding: 10px 14px 12px;

  background: var(--surface-subtle);
}

#screenerView .backtest-panel > .workspace-heading {
  padding: 0px;
}

#screenerView .backtest-panel .dragon-summary {
  border: 1px solid var(--border);
}

#screenerView .result-toolbar {
  min-height: 58px;
}

#screenerView .screener-result-frame td:nth-child(1),
#screenerView .screener-result-frame th:nth-child(1) {
  position: sticky;

  z-index: 2;

  background: var(--surface);

  left: 0px;

  width: 48px;

  min-width: 48px;
}

#screenerView .screener-result-frame td:nth-child(2),
#screenerView .screener-result-frame th:nth-child(2) {
  position: sticky;

  z-index: 2;

  background: var(--surface);

  left: 48px;

  width: 82px;

  min-width: 82px;
}

#screenerView .screener-result-frame td:nth-child(3),
#screenerView .screener-result-frame th:nth-child(3) {
  position: sticky;

  z-index: 2;

  background: var(--surface);

  left: 130px;

  width: 112px;

  min-width: 112px;

  box-shadow: 1px 0 0 var(--border);
}

@media (max-width: 1023px) and (min-width: 768px) {

  #screenerView .factor-data-status,
  #screenerView .regime-evidence {
    border-top: 1px solid var(--border);
  }
}

@media (max-width: 767px) {
  body[data-active-view="screenerView"] .overview-strip {
    display: none;
  }

  #screenerView > .section-toolbar:first-child {
    min-height: 64px;

    align-items: center;

    flex-direction: row;

    padding: 10px 12px;
  }

  #screenerView > .section-toolbar:first-child .section-title-group {
    min-width: 0px;

    gap: 2px;
  }

  #screenerView > .section-toolbar:first-child .toolbar-controls {
    width: auto;

    flex-wrap: nowrap;
  }

  #screenerView > .section-toolbar:first-child #screenerExportButton {
    display: none;
  }

  .screener-mobile-tabs {
    height: 44px;

    display: grid;

    grid-template-columns: 1fr 1fr;

    padding: 0px 12px;

    border-bottom: 1px solid var(--border);
  }

  .screener-mobile-tabs button {
    border-width: 0px 0px 2px;

    border-style: none none solid;

    border-color: currentcolor currentcolor transparent;

    border-image: none;

    background: transparent;

    color: var(--text-secondary);

    cursor: pointer;

    font-weight: 650;
  }

  .screener-mobile-tabs button.active {
    border-bottom-color: var(--action);

    color: var(--action);
  }

  #screenerView.mobile-results .screener-strategy-view,
  #screenerView.mobile-strategy .screener-results-view {
    display: none;
  }

  #screenerView .regime-summary {
    min-width: 0px;

    border-right: 1px solid var(--border);

    border-bottom: 1px solid var(--border);
  }

  #screenerView .regime-evidence {
    min-width: 0px;

    border-bottom: 1px solid var(--border);

    grid-column: 1 / -1;

    border-right: 0px;
  }

  #screenerView .strategy-sidebar {
    max-height: none;

    padding: 10px 12px;

    overflow: hidden;

    border-right: 0px;

    border-bottom: 1px solid var(--border);
  }

  #screenerView .strategy-sidebar .workspace-heading {
    min-height: 28px;

    margin-bottom: 6px;
  }

  #screenerView .strategy-list {
    display: flex;

    gap: 7px;

    overflow-x: auto;

    scroll-snap-type: x;
  }

  #screenerView .strategy-item {
    min-width: 208px;

    flex: 0 0 208px;

    scroll-snap-align: start;
  }

  #screenerView .strategy-workbench {
    padding: 12px;
  }

  #screenerView .strategy-meta-fields {
    grid-template-columns: 1fr;
  }

  #screenerView .strategy-actions {
    align-items: stretch;

    display: grid;

    grid-template-columns: 1fr 1fr;
  }

  #screenerView .strategy-actions .checkbox-control,
  #screenerView .strategy-actions .danger-button {
    grid-column: 1 / -1;
  }

  #screenerView .backtest-panel {
    padding: 10px 12px;
  }

  #screenerView .result-toolbar {
    min-height: 74px;

    display: grid;

    grid-template-columns: minmax(0px, 1fr);

    align-content: center;

    gap: 5px;

    padding: 10px 12px;
  }

  #screenerView .result-toolbar .section-title-group {
    align-items: center;

    flex-direction: row;
  }

  #screenerView .result-toolbar .section-subtitle {
    display: block;

    width: 100%;

    min-width: 0px;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
  }

  #screenerView .screener-result-frame {
    min-height: calc(-248px + 100vh);

    max-height: calc(-184px + 100vh);
  }
}

@media (max-width: 1180px) {

  .factor-data-status,
  .regime-evidence {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 860px) {

  .strategy-sidebar {
    max-height: 240px;

    border-right: 0px;

    border-bottom: 1px solid var(--line);
  }

  .strategy-list {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  }

  .regime-selector {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 520px) {

  .factor-data-status,
  .regime-evidence,
  .regime-summary {
    border-right: 0px;

    border-bottom: 1px solid var(--line);
  }

  .strategy-meta-fields {
    grid-template-columns: 1fr;
  }

  .regime-selector {
    border-right: 0px;

    border-bottom: 1px solid var(--line);

    width: 100%;

    min-width: 0px;

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

  .regime-option {
    min-width: 0px;
  }

  .strategy-actions {
    align-items: stretch;

    flex-wrap: wrap;
  }
}

:where(#screenerTrackingView) .strategy-tracking-panel {
  border-top: 1px solid var(--border);
}

:where(#screenerTrackingView) .tracking-summary {
  border-bottom: 1px solid var(--border);

  background: var(--surface-muted);
}

:where(#screenerTrackingView) .tracking-summary > div {
  min-width: 0px;
}

:where(#screenerTrackingView) .tracking-summary strong {
  font-variant-numeric: tabular-nums;
}

.tracking-strategy {
  max-width: 170px;

  overflow: hidden;

  text-overflow: ellipsis;

  white-space: nowrap;
}

.tracking-status {
  display: inline-flex;

  min-height: 24px;

  align-items: center;

  padding: 0px 8px;

  border: 1px solid var(--border);

  border-radius: 4px;

  color: var(--text-secondary);

  font-size: 11px;

  white-space: nowrap;
}

.tracking-status.active {
  border-color: var(--color-action-line);

  background: var(--action-soft);

  color: var(--action);
}

.tracking-status.complete {
  border-color: var(--market-down);

  background: var(--market-down-soft);

  color: var(--market-down);
}

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

  .tracking-summary > div {
    border-bottom: 1px solid var(--border);
  }

  .tracking-summary > div:nth-child(2n) {
    border-right: 0px;
  }

  .strategy-tracking-panel .section-toolbar {
    align-items: flex-start;
  }
}

.screener-step > div {
  min-width: 0px;
}

.step-marker {
  width: 24px;

  height: 24px;

  display: grid;

  place-items: center;

  flex: 0 0 24px;

  border-radius: 50%;

  background: var(--border);

  color: var(--text-tertiary);

  font-size: 11px;

  font-weight: 750;
}

.screener-step[data-state="current"] small {
  color: var(--action);
}

:where(#screenerView) .step-line {
  min-width: 30px;
}

.screener-strategy-title > span {
  display: inline-flex;

  gap: 4px;

  flex-wrap: wrap;
}

.screener-strategy-title b {
  padding: 2px 7px;

  border-radius: 5px;

  background: var(--market-up-soft);

  color: var(--market-up);

  font-size: 10.5px;
}

.screener-strategy-title b.neutral {
  background: var(--surface-muted);

  color: var(--text-secondary);
}

:where(#screenerView) .screener-strategy-summary p {
  color: var(--text-secondary);

  font-size: 12px;
}

:where(#screenerView) .screener-pipeline-status strong {
  margin-left: 3px;
}

:where(#screenerView) .screener-backtest-strip > .lucide {
  height: 16px;
}

#screenerView .screener-backtest-strip .dragon-metric span {
  font-size: 10.5px;
}

#screenerView .screener-backtest-strip .dragon-metric strong {
  margin-top: 2px;

  font-size: 15px;
}

#screenerView .screener-result-frame td {
  height: 44px;

  padding-right: 12px;

  padding-left: 12px;

  border-right: 0px;

  border-bottom-color: var(--border);
}

#screenerView .screener-result-frame th {
  padding-right: 12px;

  padding-left: 12px;

  border-right: 0px;

  border-bottom-color: var(--border);

  height: 38px;

  background: var(--table-header);

  color: var(--text-secondary);

  font-size: 12px;
}

#screenerView .screener-result-frame thead th:nth-child(-n+3) {
  z-index: 5;

  background: var(--table-header);
}

.strategy-drawer {
  width: min(560px, 100vw);

  max-width: none;

  height: 100dvh;

  max-height: none;

  margin: 0px 0px 0px auto;

  padding: 0px;

  overflow: hidden;

  border-top: 0px;

  border-right: 0px;

  border-bottom: 0px;

  border-image: none;

  border-left: 1px solid var(--border);

  border-radius: 0px;

  background: var(--surface);

  box-shadow: var(--shadow-float);
}

.strategy-drawer[open] {
  display: flex;

  flex-direction: column;

  animation: strategy-drawer-enter 240ms var(--ease-out) both;
}

@keyframes strategy-drawer-enter {
  0% {
    opacity: 0;

    transform: translateX(28px);
  }

  100% {
    opacity: 1;

    transform: translateX(0px);
  }
}

.strategy-drawer-header {
  min-height: 66px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 12px;

  padding: 11px 16px;

  border-bottom: 1px solid var(--border);
}

.strategy-drawer-header span {
  color: var(--text-tertiary);

  font-size: 10.5px;
}

.strategy-drawer-header h2 {
  margin: 3px 0px 0px;

  font-size: 16px;
}

.strategy-drawer-header .icon-button {
  width: 38px;

  height: 38px;
}

.strategy-drawer-body {
  min-height: 0px;

  flex: 1 1 0%;

  overflow-y: auto;
}

#screenerView .strategy-drawer .strategy-sidebar {
  max-height: 210px;

  padding: 12px 14px;

  overflow-y: auto;

  border-top: 0px;

  border-right: 0px;

  border-left: 0px;

  border-image: none;

  border-bottom: 1px solid var(--border);

  background: var(--surface-subtle);
}

#screenerView .strategy-drawer .strategy-list {
  grid-template-columns: repeat(2, minmax(0px, 1fr));

  gap: 6px;
}

#screenerView .strategy-drawer .strategy-item {
  min-height: 64px;

  padding: 8px 9px;

  border-radius: 6px;

  background: var(--surface);
}

#screenerView .strategy-drawer .strategy-workbench {
  padding: 14px 16px 18px;
}

#screenerView .strategy-drawer .strategy-meta-fields {
  grid-template-columns: 1fr;
}

#screenerView .strategy-drawer .strategy-prompt-field textarea {
  min-height: 110px;
}

#screenerView .strategy-drawer .strategy-actions {
  display: flex;

  flex-wrap: wrap;
}

#screenerView .strategy-drawer .strategy-actions .checkbox-control {
  width: 100%;

  margin-bottom: 2px;
}

#screenerView .strategy-drawer .form-field.formula-field textarea {
  min-height: 190px;
}

@media (max-width: 1200px) {
  .screener-step small {
    max-width: 150px;
  }

  .step-line {
    margin: 0px 8px;
  }

  #screenerView .screener-backtest-strip {
    grid-template-columns: 18px minmax(360px, 1fr);
  }

  .screener-backtest-strip > p {
    grid-column: 2;
  }
}

@media (max-width: 900px) {
  .screener-stepper {
    align-items: flex-start;

    display: grid;

    grid-template-columns: repeat(4, minmax(0px, 1fr));

    gap: 8px;
  }

  .screener-step {
    align-items: flex-start;
  }

  .step-line {
    display: none;
  }
}

@media (max-width: 767px) {
  body.mobile-shell #screenerView .screener-stepper {
    width: 100%;
    display: flex;
    padding-inline: var(--space-8);
    overflow: visible;
  }

  body.mobile-shell #screenerView .screener-step {
    min-width: 0;
    flex: 1 1 0;
    flex-direction: column;
    justify-content: flex-start;
    gap: var(--space-4);
    text-align: center;
  }

  body.mobile-shell #screenerView .screener-step > div {
    width: 100%;
    min-width: 0;
  }

  body.mobile-shell #screenerView .screener-step :is(strong, small) {
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.mobile-shell #screenerView .step-line {
    width: var(--space-8);
    flex: 0 0 var(--space-8);
    align-self: flex-start;
    margin: var(--space-12) var(--space-4) 0;
  }
}

@media (max-width: 767px) {
  body.mobile-shell #screenerView,
  body.mobile-shell #screenerTrackingView {
    padding-inline: 0;
  }

  body.mobile-shell #screenerView :is(.screener-result-frame, .curated-strategy-list, .quant-builder-pane, .quant-summary-pane),
  body.mobile-shell #screenerTrackingView .tracking-table-frame.tbl-wrap {
    max-height: none;
    overflow-y: visible;
  }

  body.mobile-shell #screenerView .screener-result-frame,
  body.mobile-shell #screenerTrackingView .tracking-table-frame {
    overflow-x: auto;
  }

}

@media (max-width: 767px) {
  .screener-page-heading {
    min-height: 54px;

    padding: 9px 12px;
  }

  .screener-stepper {
    grid-template-columns: repeat(2, minmax(0px, 1fr));

    padding: 10px 12px;
  }

  .screener-step {
    min-height: 46px;
  }

  .screener-step small {
    max-width: calc(-64px + 50vw);
  }

  .screener-regime-body {
    grid-template-columns: 92px minmax(0px, 1fr);

    gap: 10px;

    padding: 10px;
  }

  #screenerView .regime-selector {
    min-width: 0px;

    border-right: 1px solid var(--border);

    border-bottom: 1px solid var(--border);

    grid-template-columns: repeat(3, minmax(0px, 1fr));

    gap: 4px;

    padding: 4px 10px 10px;
  }

  #screenerView .regime-option {
    min-width: 0px;

    height: 32px;

    font-size: 10px;

    min-height: 36px;

    flex: 1 0 calc(33.333% - 5px);

    padding: 0px 4px;
  }

  #screenerView .factor-data-status {
    min-width: 0px;

    border-bottom: 1px solid var(--border);

    grid-column: 1 / -1;

    border-right: 0px;

    padding: 8px 10px;
  }

  .screener-strategy-summary {
    min-height: 150px;

    padding: 12px;
  }

  .screener-strategy-actions {
    display: grid;

    grid-template-columns: 1fr 1fr;
  }

  .screener-strategy-actions .button {
    min-width: 0px;

    min-height: 42px;

    padding: 0px 7px;
  }

  .screener-pipeline-status {
    justify-content: space-between;

    margin-left: 0px;

    padding-top: 5px;

    border-top: 1px solid var(--border);
  }

  #screenerView .screener-backtest-strip {
    grid-template-columns: 16px minmax(0px, 1fr);

    gap: 10px;

    margin-top: 8px;

    padding: 10px;
  }

  #screenerView .screener-backtest-strip .dragon-summary {
    display: grid;

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

  #screenerView .screener-backtest-strip .dragon-metric {
    min-width: 0px;

    padding: 5px 8px 5px 0px;
  }

  .screener-backtest-strip > p {
    grid-column: 1 / -1;
  }

  #screenerView .screener-results-view,
  #screenerView .strategy-tracking-panel {
    margin: 0px 8px 8px;

    border-radius: 8px;
  }

  .strategy-drawer {
    width: 100vw;
  }

  #screenerView .strategy-drawer .strategy-list {
    grid-template-columns: 1fr;
  }

  #screenerView .strategy-drawer .strategy-sidebar {
    max-height: 190px;
  }

  #screenerView .strategy-drawer .strategy-actions .button {
    min-height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .strategy-drawer[open] {
    animation: auto ease 0s 1 normal none running none;
  }

  #screenerView .screener-result-frame tbody tr td {
    transition: none;
  }
}

.quant-rule-row input {
  width: 100%;

  height: 38px;

  min-width: 0px;

  padding: 0px 9px;

  border-width: 1px;

  border-style: solid;

  border-image: none;

  border-radius: 5px;

  background: var(--surface);

  color: var(--text-primary);

  font-style: inherit;

  font-variant: inherit;

  font-weight: inherit;

  font-stretch: inherit;

  line-height: inherit;

  font-family: inherit;

  font-optical-sizing: inherit;

  font-size-adjust: inherit;

  font-kerning: inherit;

  font-feature-settings: inherit;

  font-variation-settings: inherit;

  font-language-override: inherit;

  font-size: 12px;

  border-color: var(--border-strong);
}

:where(#screenerView) .quant-rule-row select {
  width: 100%;

  height: 38px;

  padding: 0px 9px;

  color: var(--text-primary);

  font: inherit;

  border-color: var(--border-strong);
}

@media (max-width: 767px) {
  #screenerView .screener-strategy-view {
    padding: 8px;
  }

  .curated-screener-panel {
    overflow: visible;

    grid-template-columns: 1fr;

    height: auto;

    min-height: 0px;

    margin: 8px;
  }

  .curated-library-pane {
    border-right: 0px;

    border-bottom: 1px solid var(--border);

    display: block;

    overflow: visible;
  }

  .quant-universe-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.count-badge {
  white-space: nowrap;

  font-variant-numeric: tabular-nums;

  display: inline-flex;

  align-items: center;

  border: 0px;

  font-weight: 720;

  min-height: 22px;

  padding: 2px 7px;

  border-radius: 5px;

  background: var(--xb-gray-200);

  color: var(--text-secondary);

  font-size: 11px;
}

.curated-search:focus-within {
  border-color: var(--action);

  box-shadow: 0 0 0 3px var(--focus-ring);
}

:where(#screenerView) .screener-page-heading {
  border-bottom: 0px;

  margin-bottom: -36px;

  pointer-events: none;
}

:where(#screenerView) .screener-step small {
  overflow: hidden;

  text-overflow: ellipsis;
}

.curated-library-heading > div {
  display: flex;

  align-items: baseline;

  gap: 8px;
}

.curated-library-heading span {
  font-weight: 650;

  color: var(--text-tertiary);

  font-size: 10px;
}

:where(#screenerView) .curated-library-heading h3 {
  color: var(--text-primary);

  letter-spacing: 0px;
}

:where(#screenerView) .curated-search {
  border-color: var(--border-strong);

  box-shadow: none;

  height: 34px;

  flex: 0 0 220px;

  margin: 0px;
}

:where(#screenerView) .curated-strategy-rank {
  font-variant-numeric: tabular-nums;

  font-weight: 800;
}

.curated-card-head span strong {
  display: block;

  font-size: 13px;
}

.curated-card-head span small {
  display: block;

  margin-top: 2px;

  color: var(--text-tertiary);

  font-size: 9.5px;
}

:where(#screenerView) .curated-detail-header {
  display: flex;

  align-items: flex-start;

  justify-content: space-between;

  border-bottom: 1px solid var(--border);
}

:where(#screenerView) .curated-execution-bar {
  display: flex;

  align-items: center;

  gap: 16px;

  margin-top: auto;

  padding-top: 14px;
}

.screener-page-bar .screener-mode-tabs button {
  min-height: 45px;
}

#screenerView .regime-evidence strong {
  color: var(--warning-color);

  font-size: 12px;

  line-height: 1.55;
}

#screenerView .regime-evidence div {
  max-height: none;

  overflow: visible;

  color: var(--warning-color);

  font-size: 10.5px;

  line-height: 1.55;
}

#screenerView .regime-selector::before {
  content: "阶段校准";

  margin-right: 4px;

  color: var(--text-tertiary);

  font-size: 10px;
}

#screenerView .screener-results-view .section-toolbar,
#screenerView .strategy-tracking-panel .section-toolbar {
  margin-bottom: 10px;
}

.quant-panel-heading > div span,
.quant-summary-pane > header span {
  color: var(--primary);

  font-size: 10px;

  font-weight: 700;
}

:where(#screenerView) .quant-summary-pane > header h3 {
  letter-spacing: 0px;
}

:where(#screenerView) .quant-universe-grid {
  border-radius: 7px;

  border-color: var(--border);

  margin: 10px 0px 0px;
}

:where(#screenerView) .quant-st-toggle {
  align-self: end;
}

:where(#screenerView) .quant-summary-pane > header {
  padding-top: 10px;
}

:where(#screenerView) .quant-summary-pane > .checkbox-control {
  min-height: 40px;

  margin-bottom: 10px;
}

:where(#screenerView) .quant-summary-pane > .button {
  min-height: 44px;

  justify-content: center;

  margin-top: 8px;
}

@media (max-width: 1280px) {
  .curated-strategy-list {
    grid-template-columns: repeat(3, minmax(0px, 1fr));
  }

  .quant-screener-panel {
    grid-template-columns: minmax(0px, 1fr) minmax(340px, 0.82fr);
  }
}

@media (max-width: 900px) {
  body[data-active-view="screenerView"] .workspace-view {
    padding: 10px 0 84px;
  }

  :where(#screenerView) .screener-page-heading {
    margin-bottom: 0px;

    pointer-events: auto;
  }

  :where(#screenerView) .screener-page-bar {
    align-items: stretch;

    flex-direction: column;

    gap: 0px;
  }

  :where(#screenerView) .screener-mode-tabs {
    justify-content: stretch;
  }

  .screener-mode-tabs button {
    flex: 1 1 0%;

    padding: 0px 5px;
  }

  #screenerView .screener-regime-body {
    grid-template-columns: 1fr 1fr;
  }

  #screenerView .regime-evidence {
    grid-column: 1 / 3;

    min-height: 80px;
  }

  .curated-library-controls {
    align-items: stretch;

    flex-direction: column;
  }

  .curated-search {
    width: 100%;

    flex-basis: auto;
  }

  .curated-strategy-list {
    grid-template-columns: 1fr;
  }

  .curated-detail-grid {
    grid-template-columns: 1fr;

    gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :where(#screenerView) .curated-strategy-card {
    animation: auto ease 0s 1 normal none running none !important;

    transition: none !important;
  }
}

body[data-active-view="screenerView"] .workspace-view {
  width: auto;

  max-width: none;

  margin: 0px;

  border: 0px;

  border-radius: 0px;

  background: transparent;

  box-shadow: none;

  padding: var(--page-pad-y) 0 24px;
}

.screener-page-bar .screener-mode-tabs {
  flex: 0 0 auto;

  margin: 0px;

  border: 0px;

  min-height: 45px;
}

.screener-page-bar .screener-page-heading {
  flex: 1 1 0%;

  margin: 0px;

  padding-bottom: 10px;

  pointer-events: auto;

  min-height: 45px;
}

@media (min-width: 768px) and (max-width: 1279px) {
  .quant-screener-panel {
    grid-template-columns: 1fr;
  }

  .curated-strategy-list {
    grid-template-columns: repeat(3, minmax(0px, 1fr));
  }
}

@media (max-width: 767px) {
  body[data-active-view="screenerView"] .workspace-view {
    margin-top: 0px;

    border-radius: 7px;

    padding: 0px 0px 76px;
  }

  #screenerView .screener-overview-grid {
    grid-template-columns: 1fr;
  }

  .curated-strategy-list {
    max-height: 380px;

    overflow-y: auto;

    grid-template-columns: 1fr;
  }
}

@media (min-width: 901px) {
  .screener-page-bar {
    min-height: 34px;

    margin: 0px 0px 10px;
  }
}

:where(#screenerView) .quant-panel-heading {
  justify-content: space-between;
}

:where(#screenerView) .screener-card-heading {
  justify-content: space-between;

  gap: 10px;

  border-bottom-color: var(--border);
}

:where(#screenerView) .quant-panel-heading h3 {
  letter-spacing: 0px;
}

:where(#screenerView) .screener-page-bar {
  gap: 12px;

  margin-bottom: 12px;

  align-items: center;

  border-bottom: 0px;
}

:where(#screenerView) .screener-mode-tabs {
  align-items: center;

  border-bottom: 1px solid var(--border);

  align-self: stretch;
}

:where(#screenerView) .screener-mode-tabs button {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  font: inherit;

  cursor: pointer;

  transition: color 180ms, border-color 180ms, background 180ms;

  border-bottom: 2px solid transparent;
}

:where(#screenerView) .screener-mode-tabs button.active {
  border-bottom-color: var(--scr-blue);

  box-shadow: none;
}

.screener-mode-tabs button.active::after {
  display: none;
}

:where(#screenerView) .screener-stepper {
  border-color: var(--border);

  padding: 10px 18px !important;
}

:where(#screenerView) .screener-step[data-state="complete"] .step-marker::after {
  font-weight: 800;
}

.screener-step[data-state="active"] .step-marker {
  background: var(--primary);

  color: var(--text-inverse);
}

:where(#screenerView) .screener-overview-grid {
  margin: 0px;
}

:where(#screenerView) .screener-overview-card {
  border-color: var(--border);

  min-height: 0px;
}

#screenerView .regime-evidence {
  min-width: 0px;

  display: flex;

  flex-direction: column;

  justify-content: center;

  gap: 5px;

  border: 0px;

  border-radius: 0px;

  background: var(--xb-amber-50);

  align-self: stretch;

  min-height: 100px;

  max-height: 100px;

  padding: 12px 14px;

  overflow: hidden;
}

#screenerView .regime-selector button {
  padding: 0px 9px;

  border: 1px solid var(--border);

  border-radius: 5px;

  background: var(--surface);

  font-size: 10.5px;

  min-height: 26px;
}

#screenerView .screener-strategy-title strong {
  font-size: 15px;
}

#screenerView .screener-strategy-summary p {
  min-height: 38px;

  margin: 8px 0px 10px;

  line-height: 1.65;
}

:where(#screenerView) .curated-screener-panel {
  border-radius: 7px;

  height: auto;

  min-height: 0px;

  grid-template-columns: 1fr;

  margin: 0px;

  padding: 0px;

  border: 0px;

  background: transparent;

  box-shadow: none;

  overflow: visible;

  gap: 16px;
}

:where(#screenerView) .curated-library-pane {
  border-right-width: 1px;

  border-right-style: solid;

  border-color: var(--border);
}

:where(#screenerView) .curated-library-controls {
  margin: 10px 0px 14px;

  padding-left: 0px;

  padding-right: 0px;
}

:where(#screenerView) .curated-library-heading {
  justify-content: space-between;

  gap: 12px;

  padding-left: 0px;

  padding-right: 0px;
}

:where(#screenerView) .curated-strategy-list {
  flex: 1 1 0%;

  padding-right: 2px;

  scrollbar-width: thin;

  margin: 0px;

  overflow: visible;

  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

:where(#screenerView) .curated-strategy-card {
  grid-template-columns: 34px minmax(0px, 1fr) auto;

  border-color: var(--border);

  width: 100%;

  align-items: stretch;

  color: var(--text-primary);

  text-align: left;
}

:where(#screenerView) .curated-strategy-card:hover {
  box-shadow: var(--shadow-raised);
}

:where(#screenerView) .quant-screener-panel {
  overflow: hidden;

  border-radius: 7px;

  height: auto;

  min-height: 0px;

  margin: 0px;

  border: 0px;

  background: transparent;

  box-shadow: none;
}

:where(#screenerView) .quant-builder-pane {
  order: 0;
}

:where(#screenerView) .quant-summary-pane {
  border-left-width: 1px;

  border-left-style: solid;

  border-color: var(--border);

  order: 1;
}

:where(#screenerView) .quant-rule-row {
  box-shadow: none;

  border-color: var(--border);
}

:where(#screenerView) .quant-weight-control {
  height: 38px;

  padding: 0px 8px;

  border: 1px solid var(--border-strong);

  border-radius: 6px;

  background: var(--surface);
}

.quant-rule-row .quant-weight-control input[type="range"] {
  width: 100%;

  height: 4px;

  padding: 0px;

  border: 0px;

  border-radius: 999px;

  background: var(--border-strong);

  accent-color: var(--primary);

  box-shadow: none;

  cursor: pointer;
}

@media (max-width: 1100px) {
  .quant-screener-panel {
    grid-template-columns: 360px minmax(0px, 1fr);
  }
}

@media (max-width: 767px) {
  .screener-mode-tabs {
    min-height: 50px;

    padding: 0px 4px;

    width: 100%;

    overflow-x: auto;
  }

  .screener-mode-tabs button {
    min-height: 48px;

    flex: 1 1 0%;

    padding: 0px 4px;

    font-size: 12px;

    min-width: 104px;
  }

  .quant-screener-panel {
    overflow: visible;

    height: auto;

    min-height: 0px;

    grid-template-columns: 1fr;
  }

  :where(#screenerView) .screener-overview-grid {
    gap: 8px;

    margin-top: 8px;
  }
}

#screenerView {
  --line: var(--border);

  --line-strong: var(--border-strong);

  border-radius: 0;

  color: var(--text-primary);

  border-color: transparent;

  background: transparent;

  --scr-blue: var(--action);

  --scr-blue-soft: var(--action-soft);

  --scr-red: var(--market-up);

  --scr-red-soft: var(--market-up-soft);

  --scr-green: var(--market-down);

  --scr-green-soft: var(--market-down-soft);

  --scr-amber: var(--warning-color);

  --scr-amber-soft: var(--warning-soft);

  padding: var(--page-pad-y) 0 18px;
}

#screenerView .member-gate {
  margin-bottom: 12px;
}

#screenerView .screener-page-heading {
  min-height: 36px;

  flex: 1 1 auto;

  margin: 0px;

  padding: 0px;

  border: 0px;

  background: transparent;
}

#screenerView .screener-page-heading .section-title-group {
  display: flex;

  align-items: baseline;

  gap: 11px;
}

#screenerView .screener-page-heading h2 {
  margin: 0px;

  color: var(--r2-ink);

  font-size: var(--font-size-page-title);

  font-weight: var(--font-weight-semibold);
}

#screenerView .screener-page-heading .section-subtitle {
  color: var(--r2-faint);

  font-size: var(--font-size-caption);
}

#screenerView .screener-mode-tabs {
  min-height: 32px;

  display: inline-flex;

  flex: 0 0 auto;

  gap: 2px;

  margin: 0px;

  padding: 0;

  border: 0;

  border-radius: 0;

  background: transparent;
}

#screenerView .screener-mode-tabs button {
  min-width: 96px;

  min-height: 34px;

  padding: 0 14px;

  border: 0px;

  border-radius: 0;

  background: transparent;

  color: var(--r2-sub);

  font-size: 13px;

  font-weight: var(--font-weight-medium);

  box-shadow: none;
}

#screenerView .screener-mode-tabs button::after {
  display: none;
}

#screenerView .screener-mode-tabs button:hover {
  background: var(--surface-hover);

  color: var(--r2-ink);
}

#screenerView .screener-mode-tabs button.active {
  background: transparent;

  color: var(--scr-blue);

  font-weight: var(--font-weight-semibold);
}

#screenerView .screener-mobile-tabs {
  display: none;
}

#screenerView .screener-strategy-view {
  padding: 0px;

  background: transparent;

  display: flex;

  flex-direction: column;

  gap: 10px;
}

#screenerView .screener-step {
  min-width: 0px;

  display: flex;

  align-items: center;

  flex: 0 0 auto;

  gap: 9px;
}

#screenerView .screener-step strong {
  display: block;

  white-space: nowrap;

  font-size: 12.5px;

  line-height: 1.35;
}

#screenerView .screener-step small {
  display: block;

  white-space: nowrap;

  margin-top: 1px;

  color: var(--r2-faint);

  font-size: 10.5px;

  line-height: 1.3;
}

#screenerView .screener-step[data-state="current"] .step-marker {
  background: var(--scr-blue);

  color: var(--text-inverse);
}

#screenerView .step-line.complete {
  background: var(--market-down);
}

#screenerView .screener-overview-card {
  min-width: 0px;

  display: flex;

  flex-direction: column;

  overflow: hidden;

  padding: 0px;

  border: 1px solid var(--r2-line);

  border-radius: 10px;

  background: var(--surface);

  box-shadow: var(--card-shadow);
}

#screenerView .screener-card-heading h3 {
  margin: 0px;

  color: var(--r2-ink);

  font-size: 14px;

  font-weight: 750;
}

#screenerView .screener-card-heading h3 > span {
  margin-right: 4px;

  color: var(--scr-blue);

  font-size: 10px;

  font-variant-numeric: tabular-nums;
}

#screenerView .screener-soft-label {
  margin-left: auto;

  padding: 3px 7px;

  border-radius: 5px;

  background: var(--surface-muted);

  color: var(--r2-sub);

  font-size: 10.5px;
}

#screenerView .regime-summary span {
  margin-top: 3px;

  color: var(--r2-sub);

  font-size: 10.5px;
}

#screenerView .regime-reading {
  min-width: 0px;
}

#screenerView .regime-advice::before {
  content: "";

  width: 3px;

  align-self: stretch;

  flex: 0 0 3px;

  border-radius: 2px;

  background: var(--scr-amber);
}

#screenerView .regime-selector {
  min-height: 38px;

  background: var(--surface);

  display: flex;

  align-items: center;

  flex-wrap: wrap;

  gap: 5px;

  margin: 9px 0px 0px;

  padding: 0px;

  border: 0px;
}

#screenerView .regime-option:hover {
  border-color: var(--border-strong);

  color: var(--r2-ink);
}

#screenerView .regime-option.active {
  border-color: var(--scr-red);

  background: var(--scr-red-soft);

  color: var(--scr-red);

  font-weight: 700;
}

#screenerView .factor-data-status {
  flex-direction: row;

  justify-content: flex-start;

  min-height: 28px;

  display: flex;

  align-items: center;

  gap: 5px;

  margin-top: 7px;

  padding: 0px;

  border: 0px;

  background: transparent;

  color: var(--scr-green);

  font-size: 10.5px;
}

#screenerView .factor-data-status::before {
  content: "✓";

  font-weight: 800;
}

#screenerView .factor-data-status span {
  color: var(--scr-green);
}

#screenerView .factor-data-status strong {
  margin-left: auto;

  color: var(--r2-sub);

  font-size: 10px;
}

#screenerView .factor-data-status small {
  margin-left: auto;

  max-width: 160px;

  overflow: hidden;

  color: var(--r2-faint);

  font-size: 9.5px;

  text-overflow: ellipsis;

  white-space: nowrap;
}

#screenerView .screener-strategy-title {
  display: flex;

  align-items: center;

  flex-wrap: wrap;

  gap: 7px;
}

#screenerView .screener-strategy-title > strong {
  color: var(--r2-ink);

  font-size: 15px;

  font-weight: 800;
}

#screenerView #activeStrategyRegimes {
  display: inline-flex;

  flex-wrap: wrap;

  gap: 4px;
}

#screenerView #activeStrategyRegimes b {
  padding: 2px 7px;

  border-radius: 5px;

  background: var(--scr-red-soft);

  color: var(--scr-red);

  font-size: 10px;

  font-weight: 600;
}

#screenerView #activeStrategyRegimes b.neutral {
  background: var(--surface-muted);

  color: var(--r2-sub);
}

#screenerView .quant-screener-panel .button {
  min-height: 32px;

  border-radius: 6px;

  font-size: 11.5px;
}

#screenerView .quant-screener-panel .button.primary {
  background: var(--scr-blue);
}

#screenerView .screener-pipeline-status {
  display: flex;

  align-items: center;

  flex-wrap: wrap;

  gap: 15px;

  margin-left: auto;

  color: var(--r2-sub);

  font-size: 10.5px;
}

#screenerView .screener-pipeline-status strong {
  color: var(--scr-green);

  font-weight: 600;
}

#screenerView .screener-results-view {
  min-width: 0px;

  max-width: 100%;

  margin: 0;

  overflow: hidden;

  padding: 0px;

  border: 1px solid var(--r2-line);

  border-radius: 10px;

  background: var(--surface);

  box-shadow: var(--card-shadow);
}

#screenerView .strategy-tracking-panel {
  margin: 0;

  overflow: hidden;

  padding: 0px;

  border: 1px solid var(--r2-line);

  border-radius: 10px;

  background: var(--surface);

  box-shadow: var(--card-shadow);
}

#screenerView .screener-results-view .result-toolbar,
#screenerView .strategy-tracking-panel .result-toolbar {
  min-height: 47px;

  margin: 0px;

  padding: 0px 14px;

  border: 0px;

  background: var(--surface);
}

#screenerView .result-toolbar h2 {
  font-size: 14px;

  font-weight: 800;
}

#screenerView .result-toolbar .count-badge {
  border-radius: 5px;

  background: var(--surface-muted);

  color: var(--r2-sub);

  font-size: 10.5px;
}

#screenerView .result-toolbar .section-subtitle {
  margin-left: auto;

  color: var(--r2-faint);

  font-size: 10.5px;
}

#screenerView .screener-backtest-strip > .lucide {
  width: 15px;

  color: var(--scr-amber);
}

#screenerView .screener-backtest-strip .dragon-summary span {
  display: block;

  color: var(--r2-faint);

  font-size: 10px;
}

#screenerView .screener-backtest-strip > p {
  max-width: 470px;

  margin: 0px 0px 0px auto;

  color: var(--r2-faint);

  font-size: 10px;

  line-height: 1.55;
}

#screenerView .tracking-table-frame {
  overflow: auto;

  border-right: 0px;

  border-bottom: 0px;

  border-left: 0px;

  border-image: none;

  border-top: 1px solid var(--r2-line-soft);

  border-radius: 0px;

  min-height: 132px;
}

#screenerView .data-table {
  font-size: var(--font-size-table);
}

#screenerView .data-table thead th {
  height: 36px;

  padding: 0 12px;

  background: var(--table-header);

  color: var(--r2-sub);

  font-size: var(--font-size-caption);

  font-weight: var(--font-weight-semibold);
}

#screenerView .data-table tbody td {
  height: 40px;

  padding: 0 12px;

  font-size: var(--font-size-table);
}

#screenerView .data-table .stock-name {
  font-weight: 750;
}

#screenerView .data-table .reason-column {
  max-width: 250px;

  overflow: hidden;

  color: var(--text-secondary);

  text-overflow: ellipsis;
}

#screenerView .data-table .risk-cell {
  max-width: 155px;

  overflow: hidden;

  color: var(--scr-amber);

  text-overflow: ellipsis;
}

#screenerView .probability-value strong {
  display: block;
}

#screenerView .probability-value small {
  margin-top: 3px;

  font-weight: var(--font-weight-medium);

  display: block;

  color: var(--r2-faint);

  font-size: var(--font-size-aux);
}

#screenerView .tracking-summary {
  display: grid;

  grid-template-columns: repeat(5, minmax(0px, 1fr));

  border-top: 1px solid var(--r2-line-soft);
}

#screenerView .tracking-summary > div {
  padding: 8px 14px;

  border-right: 1px solid var(--r2-line-soft);
}

#screenerView .tracking-summary > div:last-child {
  border-right: 0px;
}

#screenerView .tracking-summary span {
  display: block;

  color: var(--r2-faint);

  font-size: 9.5px;
}

#screenerView .tracking-summary strong {
  display: block;

  margin-top: 2px;

  font-size: 13px;
}

#screenerView .curated-screener-panel {
  display: block;
}

#screenerView .curated-workspace {
  display: grid;

  grid-template-columns: minmax(360px, 0.92fr) minmax(520px, 1.48fr);

  gap: 12px;

  align-items: stretch;
}

#screenerView .curated-library-pane {
  min-width: 0px;

  overflow: hidden;

  border: 1px solid var(--r2-line);

  border-radius: 10px;

  background: var(--surface);

  box-shadow: var(--card-shadow);

  display: flex;

  flex-direction: column;

  padding: 0px;
}

#screenerView .curated-library-heading {
  min-height: 58px;

  display: flex;

  align-items: center;

  padding: 9px 14px;

  border-bottom: 1px solid var(--r2-line-soft);

  background: var(--surface);
}

#screenerView .curated-library-heading > div > span {
  color: var(--scr-blue);

  font-size: 10px;

  font-weight: 700;
}

#screenerView .curated-library-heading h3 {
  margin: 1px 0px 0px;

  font-size: 14px;
}

#screenerView .curated-library-heading > strong {
  margin-left: auto;

  color: var(--r2-sub);

  font-size: 11px;
}

#screenerView .curated-library-controls {
  min-height: 48px;

  display: grid;

  grid-template-columns: minmax(0px, 1fr) 104px 62px;

  align-items: center;

  gap: 7px;

  padding: 7px 10px;

  border-bottom: 1px solid var(--r2-line-soft);

  background: var(--surface-subtle);
}

#screenerView .curated-view-toggle {
  min-height: 32px;

  display: grid;

  grid-template-columns: repeat(2, minmax(0px, 1fr));

  padding: 2px;

  border: 1px solid var(--r2-line);

  border-radius: 7px;

  background: var(--surface);
}

#screenerView .curated-view-toggle button {
  min-width: 0px;

  display: grid;

  place-items: center;

  padding: 0px;

  border: 0px;

  border-radius: 5px;

  background: transparent;

  color: var(--r2-faint);

  cursor: pointer;
}

#screenerView .curated-view-toggle button.active {
  background: var(--scr-blue-soft);

  color: var(--scr-blue);
}

#screenerView .curated-view-toggle button:focus-visible {
  outline: 2px solid var(--scr-blue);

  outline-offset: 1px;
}

#screenerView .curated-view-toggle .lucide {
  width: 13px;

  height: 13px;
}

#screenerView .curated-school-filters {
  min-height: 38px;

  display: flex;

  align-items: center;

  gap: 4px;

  padding: 5px 8px;

  overflow-x: auto;

  border-bottom: 1px solid var(--r2-line-soft);

  background: var(--surface);

  scrollbar-width: none;
}

#screenerView .curated-school-filters::-webkit-scrollbar {
  display: none;
}

#screenerView .curated-school-filters button {
  min-height: 26px;

  display: inline-flex;

  align-items: center;

  gap: 4px;

  flex: 0 0 auto;

  padding: 0px 7px;

  border: 1px solid transparent;

  border-radius: 5px;

  background: transparent;

  color: var(--r2-sub);

  font-size: 10px;

  cursor: pointer;
}

#screenerView .curated-school-filters button small {
  color: var(--r2-faint);

  font-size: 8.5px;

  font-variant-numeric: tabular-nums;
}

#screenerView .curated-school-filters button:hover {
  background: var(--scr-blue-soft);

  color: var(--scr-blue);
}

#screenerView .curated-school-filters button.active {
  border-color: var(--color-action-line);

  background: var(--scr-blue-soft);

  color: var(--scr-blue);

  font-weight: 700;
}

#screenerView .curated-school-filters button:focus-visible {
  outline: 2px solid var(--scr-blue);

  outline-offset: 1px;
}

#screenerView .curated-search {
  width: 100%;

  min-height: 32px;

  display: flex;

  align-items: center;

  gap: 7px;

  padding: 0px 9px;

  border: 1px solid var(--r2-line);

  border-radius: 7px;

  background: var(--surface);
}

#screenerView .curated-search .lucide {
  width: 14px;

  color: var(--r2-faint);
}

#screenerView .curated-search input {
  min-width: 0px;

  flex: 1 1 0%;

  border: 0px;

  outline: 0px;

  font-size: 11.5px;
}

#screenerView .curated-category-select {
  position: relative;

  min-height: 32px;

  display: flex;

  align-items: center;
}

#screenerView .curated-category-select select {
  width: 100%;

  min-height: 32px;

  padding: 0px 27px 0px 9px;

  border: 1px solid var(--r2-line);

  border-radius: 7px;

  appearance: none;

  background: var(--surface);

  color: var(--r2-sub);

  font-size: 10.5px;
}

#screenerView .curated-category-select .lucide {
  position: absolute;

  right: 8px;

  width: 13px;

  pointer-events: none;

  color: var(--r2-faint);
}

#screenerView .curated-strategy-list {
  min-height: 320px;

  max-height: 532px;

  display: flex;

  flex-direction: column;

  gap: 4px;

  overflow-y: auto;

  padding: 8px;

  scrollbar-gutter: stable;
}

#screenerView .curated-strategy-icon {
  display: none;
}

#screenerView .curated-strategy-list.is-grid {
  display: grid;

  grid-template-columns: repeat(2, minmax(0px, 1fr));

  align-content: start;
}

#screenerView .curated-strategy-list.is-grid .curated-strategy-card {
  min-height: 104px;

  align-items: center;

  justify-content: center;

  gap: 7px;

  text-align: center;
}

#screenerView .curated-strategy-list.is-grid .curated-strategy-card:hover {
  transform: translateY(-1px);
}

#screenerView .curated-strategy-list.is-grid .curated-strategy-card.active {
  box-shadow: inset 0 3px var(--scr-blue);
}

#screenerView .curated-strategy-list.is-grid .curated-strategy-icon {
  width: 32px;

  height: 32px;

  display: grid;

  place-items: center;

  border-radius: 7px;

  background: var(--scr-blue-soft);

  color: var(--scr-blue);
}

#screenerView .curated-strategy-list.is-grid .curated-strategy-icon .lucide {
  width: 16px;

  height: 16px;
}

#screenerView .curated-strategy-list.is-grid .curated-card-head {
  width: 100%;

  grid-template-columns: minmax(0px, 1fr);

  gap: 4px;
}

#screenerView .curated-strategy-list.is-grid .curated-card-tags,
#screenerView .curated-strategy-list.is-grid .curated-strategy-rank {
  display: none;
}

#screenerView .curated-strategy-list.is-grid .curated-card-result {
  justify-self: center;
}

#screenerView .curated-strategy-card:hover {
  border-color: var(--blue-line);

  background: var(--surface-hover);

  transform: translateX(1px);
}

#screenerView .curated-strategy-card.active {
  border-color: var(--blue-line);

  background: var(--scr-blue-soft);

  box-shadow: inset 3px 0 var(--scr-blue);
}

#screenerView .curated-card-head {
  display: grid;

  grid-template-columns: 25px minmax(0px, 1fr) auto;

  align-items: center;

  gap: 8px;
}

#screenerView .curated-strategy-rank {
  width: 25px;

  height: 25px;

  display: grid;

  place-items: center;

  border-radius: 5px;

  background: var(--surface-muted);

  color: var(--r2-sub);

  font-size: 9px;

  font-style: normal;
}

#screenerView .curated-card-head strong {
  display: block;

  overflow: hidden;

  font-size: 12px;

  text-overflow: ellipsis;

  white-space: nowrap;
}

#screenerView .curated-card-head small {
  display: block;

  margin-top: 1px;

  color: var(--r2-faint);

  font-size: 9px;
}

#screenerView .curated-card-result {
  padding: 2px 6px;

  border-radius: 4px;

  background: var(--surface-muted);

  color: var(--r2-faint);

  font-size: 9px;

  font-style: normal;

  white-space: nowrap;
}

#screenerView .curated-card-result.ready {
  background: var(--scr-green-soft);

  color: var(--scr-green);
}

#screenerView .curated-card-result.quiet {
  background: var(--scr-blue-soft);

  color: var(--scr-blue);
}

#screenerView .curated-card-result.missing {
  background: var(--scr-amber-soft);

  color: var(--scr-amber);
}

#screenerView .curated-card-tags {
  display: flex;

  flex-wrap: wrap;

  gap: 4px;
}

#screenerView .curated-card-tags em {
  padding: 2px 6px;

  border-radius: 4px;

  background: var(--scr-blue-soft);

  color: var(--scr-blue);

  font-size: 9px;

  font-style: normal;
}

#screenerView .curated-card-tags em:nth-child(2) {
  background: var(--surface-muted);

  color: var(--r2-sub);
}

#screenerView .curated-card-tags em:nth-child(3) {
  background: var(--scr-amber-soft);

  color: var(--scr-amber);
}

#screenerView .curated-detail-pane {
  min-width: 0px;

  overflow: hidden;

  border: 1px solid var(--r2-line);

  border-radius: 10px;

  background: var(--surface);

  box-shadow: var(--card-shadow);

  display: flex;

  flex-direction: column;

  padding: 14px 16px 0px;
}

#screenerView .curated-detail-header {
  gap: 14px;

  padding-bottom: 11px;
}

#screenerView .curated-detail-header h3 {
  font-size: 16px;
}

#screenerView .curated-detail-header p {
  max-width: 650px;

  margin-top: 5px;

  font-size: 11px;

  line-height: 1.55;
}

#screenerView .curated-strategy-badges span {
  min-height: 24px;

  padding: 0px 7px;

  font-size: 10px;
}

#screenerView .curated-environment-notes {
  display: grid;

  gap: 5px;

  padding: 10px 0px;

  border-bottom: 1px solid var(--r2-line-soft);
}

#screenerView .curated-environment-notes p {
  display: grid;

  grid-template-columns: 64px minmax(0px, 1fr);

  gap: 8px;

  margin: 0px;

  color: var(--r2-sub);

  font-size: 10.5px;

  line-height: 1.55;
}

#screenerView .curated-environment-notes strong {
  color: var(--scr-green);
}

#screenerView .curated-environment-notes p:last-child strong {
  color: var(--scr-amber);
}

#screenerView .curated-health-grid {
  display: grid;

  grid-template-columns: repeat(4, minmax(0px, 1fr));

  margin: 0px -16px;

  border-bottom: 1px solid var(--r2-line-soft);

  background: var(--surface-subtle);
}

#screenerView .curated-health-grid > div {
  min-width: 0px;

  padding: 8px 12px;

  border-right: 1px solid var(--r2-line-soft);
}

#screenerView .curated-health-grid > div:last-child {
  border-right: 0px;
}

#screenerView .curated-health-grid span {
  display: block;

  overflow: hidden;

  text-overflow: ellipsis;

  white-space: nowrap;

  color: var(--r2-faint);

  font-size: 9px;
}

#screenerView .curated-health-grid strong {
  display: block;

  overflow: hidden;

  text-overflow: ellipsis;

  white-space: nowrap;

  margin-top: 2px;

  color: var(--r2-ink);

  font-size: 11.5px;

  font-variant-numeric: tabular-nums;
}

#screenerView .curated-health-grid strong.ready {
  color: var(--scr-green);
}

#screenerView .curated-health-grid strong.quiet {
  color: var(--scr-blue);
}

#screenerView .curated-health-grid strong.missing {
  color: var(--scr-amber);
}

#screenerView .curated-detail-grid {
  display: grid;

  grid-template-columns: minmax(0px, 1fr) minmax(0px, 1fr);

  gap: 16px;

  padding: 12px 0px;
}

#screenerView .curated-condition-section {
  min-width: 0px;
}

#screenerView .curated-rule-list {
  margin-top: 6px;
}

#screenerView .curated-score-list {
  margin-top: 6px;
}

#screenerView .curated-rule-row {
  min-height: 34px;

  padding: 5px 4px;

  font-size: 10.5px;
}

#screenerView .curated-rule-row span {
  font-size: 10.5px;
}

#screenerView .curated-rule-row strong {
  font-size: 10.5px;
}

#screenerView .curated-score-row {
  min-height: 31px;

  grid-template-columns: minmax(90px, 1fr) minmax(80px, 1.25fr) 38px;

  gap: 7px;

  font-size: 10px;
}

#screenerView .curated-execution-bar {
  min-height: 48px;

  margin: auto -16px 0px;

  padding: 7px 12px;

  border-top: 1px solid var(--r2-line-soft);

  background: var(--surface-subtle);
}

#screenerView .curated-data-status > .lucide {
  width: 16px;

  height: 16px;
}

#screenerView .curated-data-status strong {
  font-size: 11px;
}

#screenerView .curated-data-status small {
  margin-top: 1px;

  font-size: 9.5px;
}

#screenerView .quant-panel-heading > div > span,
#screenerView .quant-summary-pane > header > span {
  display: block;

  color: var(--scr-blue);

  font-size: 9.5px;

  font-weight: 700;
}

#screenerView .mini-section-heading {
  display: flex;

  align-items: center;

  gap: 8px;
}

#screenerView .mini-section-heading h4 {
  margin: 0px;

  font-size: 11.5px;
}

#screenerView .mini-section-heading p {
  margin: 2px 0px 0px;

  color: var(--r2-faint);

  font-size: 9.5px;
}

#screenerView .quant-universe-grid {
  display: grid;

  grid-template-columns: repeat(3, minmax(90px, 1fr));

  gap: 8px;

  margin-top: 10px;

  padding: 0px;

  border: 0px;

  background: transparent;
}

#screenerView .quant-universe-grid .form-field span {
  font-size: 9.5px;
}

#screenerView .quant-universe-grid input {
  min-height: 32px;
}

#screenerView .quant-st-toggle {
  grid-column: 1 / -1;

  min-height: 32px;

  padding: 0px 9px;

  border-radius: 6px;

  background: var(--surface-subtle);
}

#screenerView .quant-rule-rows {
  display: flex;

  flex-direction: column;

  gap: 7px;

  margin-top: 10px;
}

#screenerView .quant-rule-row {
  min-height: 47px;

  display: grid;

  align-items: center;

  gap: 8px;

  padding: 7px 9px;

  border: 1px solid var(--r2-line-soft);

  border-radius: 7px;

  background: var(--surface-subtle);
}

#screenerView .quant-rule-row input[type="text"] {
  min-width: 0px;

  min-height: 30px;

  border: 1px solid var(--border-strong);

  border-radius: 6px;

  background: var(--surface);

  font-size: 10.5px;
}

#screenerView .quant-rule-row select {
  min-width: 0px;

  min-height: 30px;

  border: 1px solid var(--border-strong);

  border-radius: 6px;

  background: var(--surface);

  font-size: 10.5px;
}

#screenerView .quant-weight-control input[type="range"] {
  width: 100%;

  height: 5px;

  accent-color: var(--scr-blue);
}

#screenerView .quant-remove-button {
  width: 27px;

  height: 27px;

  display: grid;

  place-items: center;

  padding: 0px;

  border: 0px;

  border-radius: 5px;

  background: transparent;

  color: var(--r2-faint);
}

#screenerView .quant-remove-button:hover {
  background: var(--scr-red-soft);

  color: var(--scr-red);
}

#screenerView .quant-remove-button .lucide {
  width: 13px;
}

#screenerView .quant-weight-status {
  display: grid;

  grid-template-columns: auto 42px minmax(100px, 1fr);

  align-items: center;

  gap: 8px;

  margin: 0px 14px 10px;

  font-size: 10.5px;
}

#screenerView .quant-weight-status strong {
  text-align: right;
}

#screenerView .quant-weight-status > div {
  height: 6px;

  overflow: hidden;

  border-radius: 3px;

  background: var(--surface-muted);
}

#screenerView .quant-weight-status i {
  display: block;

  height: 100%;

  border-radius: inherit;
}

#screenerView .quant-summary-pane > .checkbox-control {
  margin: 0px 14px 7px;
}

#screenerView .quant-summary-pane > .button {
  width: calc(100% - 28px);

  margin: 6px 14px 0px;
}

#screenerView .quant-validation-message {
  margin: 9px 14px 12px;

  color: var(--scr-green);

  font-size: 9.5px;
}

#screenerView .quant-validation-message.error {
  color: var(--scr-amber);
}

#screenerView .strategy-drawer::backdrop {
  background: var(--backdrop);

  backdrop-filter: blur(3px);
}

@media (max-width: 1180px) {
  #screenerView .screener-step small {
    max-width: 120px;

    overflow: hidden;

    text-overflow: ellipsis;
  }

  #screenerView .screener-overview-grid {
    grid-template-columns: 1fr;
  }

  #screenerView .curated-workspace {
    grid-template-columns: minmax(310px, 0.82fr) minmax(480px, 1.3fr);
  }
}

@media (max-width: 820px) {
  #screenerView {
    padding: 10px 0;
  }

  #screenerView .screener-page-bar {
    align-items: stretch;

    flex-direction: column;

    gap: 6px;
  }

  #screenerView .screener-mode-tabs {
    width: 100%;
  }

  #screenerView .screener-mode-tabs button {
    min-width: 0px;

    flex: 1 1 0px;

    padding-inline: 5px;
  }

  #screenerView .screener-stepper {
    overflow-x: auto;

    padding-inline: 12px;
  }

  #screenerView .screener-step {
    min-width: 112px;
  }

  #screenerView .step-line {
    width: 24px;

    flex-basis: 24px;

    margin-inline: 7px;
  }

  #screenerView .screener-pipeline-status {
    margin-left: 0px;
  }

  #screenerView .screener-backtest-strip {
    align-items: flex-start;

    flex-wrap: wrap;
  }

  #screenerView .screener-backtest-strip > p {
    max-width: none;

    margin-left: 0px;
  }

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

  #screenerView .curated-strategy-list {
    min-height: 0px;

    max-height: 310px;
  }

  #screenerView .curated-strategy-list.is-grid {
    grid-template-columns: repeat(3, minmax(0px, 1fr));
  }

  #screenerView .curated-detail-pane {
    min-height: 430px;
  }
}

@media (max-width: 560px) {
  #screenerView .screener-mobile-tabs {
    display: grid;
  }

  #screenerView .screener-regime-body {
    grid-template-columns: 82px minmax(0px, 1fr);

    gap: 10px;

    padding: 12px;
  }

  #screenerView .regime-selector {
    gap: 4px;
  }

  #screenerView .regime-option {
    flex: 1 1 27%;

    padding-inline: 5px;
  }

  #screenerView .factor-data-status small,
  #screenerView .factor-data-status strong {
    display: none;
  }

  #screenerView .screener-backtest-strip .dragon-summary {
    display: grid;

    grid-template-columns: 1fr 1fr;

    width: calc(100% - 32px);

    gap: 9px;
  }

  #screenerView .result-toolbar {
    align-items: flex-start;

    flex-direction: column;

    padding-block: 9px !important;
  }

  #screenerView .result-toolbar .section-subtitle {
    margin-left: 0px;
  }

  #screenerView .tracking-summary {
    grid-template-columns: repeat(2, 1fr);
  }

  #screenerView .tracking-summary > div {
    border-bottom: 1px solid var(--r2-line-soft);
  }

  #screenerView .curated-library-heading {
    align-items: flex-start;
  }

  #screenerView .curated-library-controls {
    grid-template-columns: minmax(0px, 1fr) 104px 62px;
  }

  #screenerView .curated-strategy-list.is-grid {
    grid-template-columns: repeat(2, minmax(0px, 1fr));
  }

  #screenerView .curated-health-grid {
    grid-template-columns: 1fr 1fr;
  }

  #screenerView .curated-health-grid > div:nth-child(2) {
    border-right: 0px;
  }

  #screenerView .curated-health-grid > div:nth-child(-n+2) {
    border-bottom: 1px solid var(--r2-line-soft);
  }

  #screenerView .curated-detail-grid {
    grid-template-columns: 1fr;
  }

  #screenerView .curated-execution-bar {
    align-items: flex-start;

    flex-direction: column;
  }

  #screenerView .quant-universe-grid {
    grid-template-columns: 1fr;
  }

  #screenerView .quant-st-toggle {
    grid-column: auto;
  }

  #screenerView .quant-filter-row,
  #screenerView .quant-score-row {
    grid-template-columns: 1fr;
  }

  #screenerView .quant-remove-button {
    justify-self: end;
  }
}

#screenerView .screener-page-bar {
  min-height: 36px;

  display: flex;

  margin: 0 0 12px;

  flex-wrap: nowrap;
}

#screenerView .screener-stepper {
  display: flex;

  align-items: center;

  gap: 0px;

  margin: 0px;

  border: 1px solid var(--r2-line);

  border-radius: var(--card-radius);

  background: var(--surface);

  box-shadow: var(--card-shadow);

  min-height: 44px;
}

#screenerView .screener-overview-grid {
  display: grid;

  gap: 12px;

  grid-template-columns: 1fr 1fr;
}

#screenerView .regime-summary strong {
  color: var(--scr-red);

  font-weight: 800;

  line-height: 1.2;

  font-size: 17px;
}

#screenerView .regime-control-line .regime-selector {
  margin: 0px;
}

#screenerView .regime-control-line .factor-data-status {
  margin: 0px;

  white-space: nowrap;
}

#screenerView .regime-control-line .factor-data-status small,
#screenerView .regime-control-line .factor-data-status strong {
  display: none;
}

#screenerView .screener-backtest-strip {
  grid-template-columns: 18px minmax(360px, auto) minmax(240px, 1fr);

  display: flex;

  align-items: center;

  gap: 18px;

  margin: 0px;

  padding: 8px 14px;

  border-width: 0px 0px 1px;

  border-style: none none solid;

  border-color: currentcolor currentcolor var(--border-subtle);

  border-image: none;

  border-radius: 0px;

  background: var(--warning-soft);

  min-height: 54px;

  max-height: 54px;

  flex-wrap: nowrap;

  padding-block: 7px;

  overflow: hidden;
}

#screenerView .screener-backtest-strip .dragon-summary {
  border: 0px;

  background: transparent;

  display: flex;

  flex: 0 0 auto;

  gap: 18px;
}

#screenerView .screener-backtest-strip .dragon-summary > div {
  padding: 0px;

  border: 0px;

  background: transparent;

  min-width: 58px;
}

#screenerView .screener-backtest-strip .dragon-metric {
  min-width: 96px;

  border: 0px;

  min-height: 0px;

  height: auto;

  padding: 0px;
}

#screenerView .screener-backtest-strip .dragon-summary strong {
  display: block;

  margin-top: 2px;

  color: var(--r2-ink);

  font-size: 13px;
}

#screenerView .quant-builder-pane .mini-section-heading {
  min-height: 43px;

  padding: 7px 12px;

  border-bottom: 1px solid var(--r2-line-soft);
}

#screenerView .quant-builder-pane .quant-rule-rows {
  gap: 0px;

  margin: 0px;
}

#screenerView .quant-factor-identity > span {
  min-width: 0px;
}

#screenerView .quant-factor-identity button:hover {
  color: var(--scr-blue);
}

#screenerView .quant-score-row .quant-remove-button {
  width: 22px;

  height: 22px;
}

#screenerView .screener-row-actions {
  display: inline-flex;

  align-items: center;

  gap: 5px;
}

#screenerView .tracking-action {
  min-width: 54px;

  color: var(--scr-blue);
}

#screenerView .tracking-action.tracked {
  color: var(--scr-green);
}

#screenerView .screener-result-frame td:last-child,
#screenerView .screener-result-frame th:last-child {
  position: sticky;

  right: 0px;

  z-index: 2;

  min-width: 116px;

  background: var(--surface);

  box-shadow: -1px 0 0 var(--border-subtle);
}

#screenerView .screener-result-frame thead th:last-child {
  z-index: 3;

  background: var(--table-header);
}

#screenerView .screener-result-frame tbody tr:hover td:last-child {
  background: var(--table-hover);
}

#screenerTrackingView {
  padding: 14px 16px 18px;

  background: var(--r2-bg);
}

#screenerTrackingView .tracking-page-header {
  min-height: 62px;

  display: grid;

  grid-template-columns: auto minmax(0px, 1fr) auto;

  align-items: center;

  gap: 14px;

  margin-bottom: 12px;

  padding: 10px 14px;

  border: 1px solid var(--r2-line);

  border-radius: 10px;

  background: var(--surface);

  box-shadow: var(--r2-shadow);
}

#screenerTrackingView .tracking-back-button {
  min-height: 32px;

  display: inline-flex;

  align-items: center;

  gap: 5px;

  padding: 0px 9px;

  border: 1px solid var(--r2-line);

  border-radius: 6px;

  background: var(--surface);

  color: var(--r2-sub);

  font-size: 11px;
}

#screenerTrackingView .tracking-back-button:hover {
  border-color: var(--color-action-line);

  color: var(--scr-blue);
}

#screenerTrackingView .tracking-back-button .lucide {
  width: 14px;
}

#screenerTrackingView .tracking-page-header h2 {
  margin: 0px;

  font-size: 16px;
}

#screenerTrackingView .tracking-page-header p {
  margin: 3px 0px 0px;

  color: var(--r2-faint);

  font-size: 10.5px;
}

#screenerTrackingView .tracking-overview-card {
  overflow: hidden;

  border: 1px solid var(--r2-line);

  border-radius: 10px;

  background: var(--surface);

  box-shadow: var(--r2-shadow);

  display: grid;

  grid-template-columns: 150px minmax(0px, 1fr);

  margin-bottom: 12px;
}

#screenerTrackingView .tracking-overview-title {
  display: flex;

  justify-content: center;

  flex-direction: column;

  gap: 3px;

  padding: 13px 16px;

  border-right: 1px solid var(--r2-line-soft);
}

#screenerTrackingView .tracking-overview-title span {
  color: var(--r2-sub);

  font-size: 10.5px;
}

#screenerTrackingView .tracking-overview-title strong {
  font-size: 17px;
}

#screenerTrackingView .tracking-summary {
  display: grid;

  grid-template-columns: repeat(5, minmax(0px, 1fr));
}

#screenerTrackingView .tracking-summary > div {
  display: flex;

  justify-content: center;

  flex-direction: column;

  padding: 11px 15px;

  border-right: 1px solid var(--r2-line-soft);
}

#screenerTrackingView .tracking-summary > div:last-child {
  border-right: 0px;
}

#screenerTrackingView .tracking-summary span {
  display: block;

  color: var(--r2-faint);

  font-size: 9.5px;
}

#screenerTrackingView .tracking-summary strong {
  display: block;

  margin-top: 2px;

  font-size: 14px;
}

#screenerTrackingView .strategy-tracking-panel {
  overflow: hidden;

  border: 1px solid var(--r2-line);

  border-radius: 10px;

  background: var(--surface);

  box-shadow: var(--r2-shadow);

  padding: 0px;
}

#screenerTrackingView .result-toolbar {
  min-height: 47px;

  margin: 0px;

  padding: 0px 14px;

  border: 0px;
}

#screenerTrackingView .result-toolbar h2 {
  font-size: 14px;
}

#screenerTrackingView .result-toolbar .section-subtitle {
  margin-left: auto;

  font-size: 10.5px;
}

#screenerTrackingView .tracking-table-frame {
  min-height: 420px;

  overflow: auto;

  border-right: 0px;

  border-bottom: 0px;

  border-left: 0px;

  border-image: none;

  border-top: 1px solid var(--r2-line-soft);

  border-radius: 0px;
}

#screenerTrackingView .data-table {
  font-size: var(--font-size-table);
}

#screenerTrackingView .data-table thead th {
  height: 36px;

  padding: 0 12px;

  background: var(--table-header);

  font-size: var(--font-size-caption);

  font-weight: var(--font-weight-semibold);
}

#screenerTrackingView .data-table tbody td {
  height: 40px;

  padding: 0 12px;

  font-size: var(--font-size-table);
}

#screenerTrackingView .stock-cell {
  display: flex;

  align-items: flex-start;

  flex-direction: column;

  gap: 2px;
}

#screenerTrackingView .stock-cell small {
  color: var(--r2-faint);

  font-size: var(--font-size-aux);
}

#screenerTrackingView .table-action.danger {
  color: var(--scr-red);
}

@media (max-width: 1180px) {
  #screenerView .quant-summary-pane .quant-universe-grid {
    grid-template-columns: repeat(2, minmax(100px, 1fr));
  }
}

@media (max-width: 900px) {
  #screenerView .screener-page-bar {
    flex-wrap: wrap;
  }

  #screenerView .screener-page-heading {
    width: 100%;

    flex-basis: 100%;
  }

  #screenerView .screener-mode-tabs {
    flex: 1 1 auto;
  }

  #screenerView .screener-overview-grid {
    grid-template-columns: 1fr;
  }

  #screenerTrackingView .tracking-overview-card {
    grid-template-columns: 1fr;
  }

  #screenerTrackingView .tracking-overview-title {
    border-right: 0px;

    border-bottom: 1px solid var(--r2-line-soft);
  }
}

@media (max-width: 620px) {
  #screenerView .screener-tracking-entry {
    flex: 0 0 40px;

    width: 40px;

    padding: 0px;

    font-size: 0px;
  }

  #screenerView .regime-market-line {
    align-items: flex-start;

    flex-direction: column;

    gap: 1px;
  }

  #screenerView .regime-evidence-line {
    width: 100%;

    white-space: normal;
  }

  #screenerView .screener-backtest-strip {
    max-height: none;

    flex-wrap: wrap;
  }

  #screenerView .quant-summary-pane .quant-universe-grid {
    grid-template-columns: 1fr;
  }

  #screenerTrackingView {
    padding: 10px;
  }

  #screenerTrackingView .tracking-page-header {
    grid-template-columns: 1fr auto;
  }

  #screenerTrackingView .tracking-page-header > div {
    grid-area: 1 / 1 / auto / -1;
  }

  #screenerTrackingView .tracking-back-button {
    grid-area: 2 / 1;
  }

  #screenerTrackingView #refreshTrackingButton {
    grid-area: 2 / 2;
  }

  #screenerTrackingView .tracking-summary {
    grid-template-columns: repeat(2, 1fr);
  }
}

#screenerView .screener-step .step-marker {
  width: 22px;

  height: 22px;

  flex: 0 0 22px;

  display: grid;

  place-items: center;

  border-radius: 50%;

  background: var(--surface-muted);

  color: var(--r2-faint);

  font-size: 11px;

  font-weight: 800;

  position: relative;

  overflow: visible;
}

#screenerView .screener-step[data-state="complete"] .step-marker {
  background: var(--scr-green);

  color: transparent;

  font-size: 0px;
}

#screenerView .screener-step[data-state="complete"] .step-marker::after {
  content: "✓";

  color: var(--text-inverse);

  font-size: 13px;

  position: absolute;

  inset: 0px;

  display: grid;

  place-items: center;

  line-height: 1;
}

#screenerView .regime-market-line {
  min-width: 0px;

  align-items: baseline;

  gap: 7px;

  display: block;

  line-height: 1.7;
}

#screenerView .regime-evidence-line {
  overflow: hidden;

  text-overflow: ellipsis;

  white-space: nowrap;

  min-width: 0px;

  flex: 1 1 0%;

  min-height: 22px;

  margin: 0px;

  color: var(--text-primary);

  font-size: 12.5px;

  line-height: 1.7;
}

#screenerView .quant-builder-pane {
  min-width: 0px;

  padding: 0px;

  overflow: hidden;

  border: 1px solid var(--r2-line);

  border-radius: 10px;

  background: var(--surface);

  box-shadow: var(--card-shadow);
}

#screenerView .quant-summary-pane {
  min-width: 0px;

  padding: 0px;

  overflow: hidden;

  border: 1px solid var(--r2-line);

  border-radius: 10px;

  background: var(--surface);

  box-shadow: var(--card-shadow);
}

#screenerView .quant-right-stack {
  min-width: 0px;

  display: flex;

  flex-direction: column;

  gap: 12px;
}

#screenerView .quant-right-stack > .quant-summary-pane {
  order: 0;
}

#screenerView .quant-right-stack > [data-screener-results-slot="quant"] {
  min-width: 0px;

  order: 1;
}

#screenerView .quant-panel-heading {
  background: var(--surface);

  min-height: 45px;

  display: flex;

  align-items: center;

  gap: 8px;

  padding: 10px 14px;

  border-bottom: 1px solid var(--r2-line-soft);
}

#screenerView .quant-summary-pane > header {
  background: var(--surface);

  min-height: 45px;

  display: flex;

  align-items: center;

  gap: 8px;

  padding: 10px 14px;

  border-bottom: 1px solid var(--r2-line-soft);
}

#screenerView .quant-panel-heading h3 {
  margin: 0px;

  color: var(--r2-ink);

  font-size: 14px;

  font-weight: 700;
}

#screenerView .quant-summary-pane > header h3 {
  margin: 0px;

  color: var(--r2-ink);

  font-size: 14px;

  font-weight: 700;
}

#screenerView .quant-panel-heading > div,
#screenerView .quant-summary-pane > header > .button {
  margin-left: auto;
}

#screenerView .quant-panel-heading .button {
  margin-left: auto;

  min-height: 28px;

  padding: 4px 9px;

  border-radius: 7px;

  background: var(--surface);

  font-size: 12px;
}

#screenerView .quant-summary-pane > header .button {
  min-height: 28px;

  padding: 4px 9px;

  border-radius: 7px;

  background: var(--surface);

  font-size: 12px;
}

#screenerView .quant-panel-heading .button.ghost,
#screenerView .quant-summary-pane > header .button.ghost {
  border-color: transparent;

  color: var(--scr-blue);
}

#screenerView .quant-panel-heading .button .lucide,
#screenerView .quant-summary-pane > header .button .lucide {
  width: 13px;
}

#screenerView .quant-builder-pane > .quant-rule-rows {
  gap: 0px;

  margin: 0px;
}

#screenerView .quant-score-row {
  min-height: 58px;

  grid-template-columns: minmax(118px, 1fr) minmax(135px, 1.25fr) 24px;

  gap: 10px;

  padding: 9px 14px;

  border-top: 0px;

  border-right: 0px;

  border-left: 0px;

  border-image: none;

  border-bottom: 1px solid var(--r2-line-soft);

  border-radius: 0px;

  background: var(--surface);
}

#screenerView .quant-factor-identity {
  min-width: 0px;

  display: grid;

  align-items: center;

  grid-template-columns: 15px minmax(0px, 1fr);

  gap: 10px;
}

#screenerView .quant-factor-identity > i {
  display: grid;

  place-items: center;

  border-radius: 3px;

  background: var(--scr-blue);

  color: var(--text-inverse);

  font-style: normal;

  width: 14px;

  height: 14px;

  font-size: 8px;
}

#screenerView .quant-factor-identity select {
  width: 100%;

  min-height: 22px;

  padding: 0px 18px 0px 0px;

  overflow: hidden;

  border: 0px;

  background-color: transparent;

  color: var(--r2-ink);

  text-overflow: ellipsis;

  font-size: 12.5px;

  font-weight: 600;
}

#screenerView .quant-factor-identity button {
  min-height: 0px;

  display: block;

  padding: 0px;

  border: 0px;

  background: transparent;

  color: var(--r2-faint);

  line-height: 1.3;

  text-align: left;

  margin-top: 2px;

  font-size: 10.5px;
}

#screenerView .quant-weight-control {
  display: grid;

  align-items: center;

  grid-template-columns: minmax(0px, 1fr) 38px;

  gap: 8px;
}

#screenerView .quant-weight-control output {
  color: var(--r2-ink);

  font-weight: 700;

  text-align: right;

  font-size: 12px;

  font-variant-numeric: tabular-nums;
}

#screenerView .quant-builder-pane > .quant-weight-status {
  min-height: 40px;

  grid-template-columns: auto minmax(0px, 1fr) 42px;

  gap: 8px;

  margin: 0px;

  padding: 10px 14px;

  border: 0px;

  background: var(--table-header);

  font-size: 12px;
}

#screenerView .quant-filter-body {
  padding: 5px 16px 10px;
}

#screenerView .quant-summary-pane .quant-universe-grid {
  display: flex;

  align-items: center;

  gap: 8px 12px;

  padding: 7px 0px;

  flex-wrap: wrap;
}

#screenerView .quant-summary-pane .quant-universe-grid > strong {
  font-size: 12.5px;
}

#screenerView .quant-summary-pane .quant-universe-grid .form-field {
  min-width: 0px;

  display: inline-flex;

  align-items: center;

  flex-direction: row;

  gap: 5px;
}

#screenerView .quant-summary-pane .quant-universe-grid .form-field span {
  color: var(--r2-sub);

  font-size: 12px;
}

#screenerView .quant-summary-pane .quant-universe-grid .form-field small {
  color: var(--r2-sub);

  font-size: 11px;
}

#screenerView .quant-summary-pane .quant-universe-grid input[type="number"] {
  width: 66px;

  min-height: 30px;

  padding: 4px 8px;

  border: 1px solid var(--r2-line);

  border-radius: 6px;

  font-size: 12px;
}

#screenerView .quant-summary-pane .quant-st-toggle {
  grid-column: auto;

  margin: 0px;

  min-height: 30px;

  padding: 0px;

  background: transparent;

  font-size: 12px;
}

#screenerView .quant-summary-pane .quant-rule-rows {
  gap: 0px;

  margin: 0px;
}

#screenerView .quant-filter-row input[type="text"],
#screenerView .quant-filter-row select {
  min-height: 30px;

  font-size: 12px;
}

#screenerView .quant-execution-actions {
  grid-template-columns: auto minmax(150px, 1fr) auto;

  display: flex;

  align-items: center;

  gap: 8px;

  margin: 0px;

  padding: 8px 0px 0px;

  border-top: 1px solid var(--r2-line-soft);

  flex-wrap: wrap;
}

#screenerView .quant-execution-actions .button {
  width: auto;

  min-height: 32px;

  margin: 0px;

  padding: 6px 13px;

  font-size: 12.5px;
}

#screenerView .quant-execution-actions .checkbox-control {
  margin: 0px 0px 0px 4px;

  white-space: nowrap;
}

#screenerView .quant-execution-actions > span {
  color: var(--r2-faint);

  font-size: 11px;
}

#screenerView .quant-filter-body > .quant-validation-message {
  margin: 7px 0px 0px;

  font-size: 10.5px;
}

#screenerView .quant-summary-pane > .quant-validation-message {
  margin: 7px 0px 0px;

  font-size: 10.5px;
}

#screenerView .quant-right-stack .screener-results-view {
  margin: 0px;
}

#screenerView .quant-right-stack .screener-result-frame {
  min-height: 250px;
}

@media (max-width: 1180px) {
  #screenerView .quant-screener-panel {
    grid-template-columns: 360px minmax(0px, 1fr);
  }
}

@media (max-width: 900px) {
  #screenerView .quant-screener-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  #screenerView .quant-score-row {
    grid-template-columns: 1fr;
  }

  #screenerView .quant-remove-button {
    justify-self: end;
  }

  #screenerView .quant-execution-actions {
    grid-template-columns: 1fr;

    align-items: stretch;

    flex-direction: column;
  }

  #screenerView .quant-execution-actions .button {
    width: 100%;

    justify-content: center;
  }
}

#screenerView .step-line {
  height: 1px;

  margin: 0 8px;

  background: var(--border);

  width: 28px;

  flex: 0 0 28px;
}

#screenerView .screener-card-heading {
  display: flex;

  align-items: center;

  border-bottom: 1px solid var(--r2-line-soft);

  min-height: 39px;

  padding: 8px 14px;
}

#screenerView .screener-strategy-card {
  min-height: 0px;
}

#screenerView .screener-regime-body {
  display: grid;

  align-items: start;

  grid-template-columns: 84px minmax(0px, 1fr);

  gap: 13px;

  min-height: 0px;

  flex: 1 1 auto;

  padding: 9px 14px;
}

#screenerView .regime-summary {
  grid-row: auto;

  place-content: center;

  display: flex;

  align-items: center;

  flex-direction: column;

  border: 1px solid var(--market-up);

  border-radius: 9px;

  background: var(--scr-red-soft);

  text-align: center;

  align-self: start;

  padding: 8px 6px;

  min-height: 56px;

  padding-block: 7px;
}

#screenerView .regime-advice {
  display: flex;

  align-items: center;

  gap: 7px;

  padding: 6px 9px;

  border-radius: 6px;

  background: var(--scr-amber-soft);

  color: var(--scr-amber);

  font-size: 11.5px;

  line-height: 1.55;

  margin-top: 3px;

  padding-block: 4px;
}

#screenerView .regime-control-line {
  display: flex;

  align-items: center;

  flex-wrap: wrap;

  gap: 5px 8px;

  margin-top: 5px;
}

#screenerView .regime-option {
  width: auto;

  height: 28px;

  border: 1px solid var(--r2-line);

  border-radius: 6px;

  background: var(--surface);

  color: var(--r2-sub);

  font-size: 11.5px;

  padding: 2px 9px;

  min-height: 24px;
}

#screenerView .screener-strategy-summary {
  display: flex;

  flex-direction: column;

  min-height: 0px;

  flex: 1 1 auto;

  padding: 10px 14px;
}

#screenerView .screener-strategy-summary > p {
  color: var(--r2-sub);

  font-size: 11.5px;

  min-height: 0px;

  flex: 0 0 auto;

  margin: 4px 0px 5px;

  line-height: 1.55;
}

#screenerView .screener-strategy-actions {
  display: flex;

  gap: 7px;

  margin-top: 0px;

  padding-top: 0px;
}

#screenerView .quant-filter-row {
  min-height: 42px;

  gap: 8px;

  padding: 6px 0px;

  border-right: 0px;

  border-bottom: 0px;

  border-left: 0px;

  border-image: none;

  border-top: 1px solid var(--r2-line-soft);

  border-radius: 0px;

  background: var(--surface);

  grid-template-columns: 220px 72px 96px 26px;

  justify-content: start;
}

#screenerView .screener-tracking-entry {
  min-height: 36px;

  gap: 6px;

  border-radius: 8px;

  border-color: var(--blue-line);

  background: var(--action-soft);

  color: var(--action);

  font-weight: 700;

  box-shadow: none;

  transition: transform 160ms, border-color 160ms, background-color 160ms, box-shadow 160ms;
}

#screenerView .screener-tracking-entry .lucide {
  width: 21px;

  height: 21px;

  padding: 4px;

  border-radius: 5px;

  background: var(--scr-blue);

  color: var(--text-inverse);
}

#screenerView .screener-tracking-entry:hover {
  border-color: var(--action);

  background: var(--surface-selected);

  color: var(--action-hover);

  box-shadow: none;

  transform: translateY(-1px);
}

#screenerView .screener-tracking-entry:focus-visible {
  outline: 2px solid var(--action);

  outline-offset: 2px;
}

@media (max-width: 620px) {
  #screenerView .step-line {
    width: 22px;

    flex-basis: 22px;

    margin-inline: 6px;
  }

  #screenerView .quant-filter-row {
    grid-template-columns: 1fr;
  }

  #screenerView .screener-tracking-entry .lucide {
    width: 21px;

    height: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #screenerView .screener-tracking-entry {
    transition: none;
  }

  #screenerView .screener-tracking-entry:hover {
    transform: none;
  }
}

@media (max-width: 460px) {
  #screenerView .curated-library-controls {
    grid-template-columns: minmax(0px, 1fr) 62px;
  }

  #screenerView .curated-search {
    grid-column: 1 / -1;
  }
}

#screenerView .screener-result-source {
  max-width: min(48vw, 440px);

  overflow: hidden;

  padding: 3px 8px;

  border: 1px solid var(--border-strong);

  border-radius: 5px;

  background: var(--surface-subtle);

  color: var(--r2-sub);

  font-size: 11px;

  font-weight: 600;

  line-height: 1.3;

  text-overflow: ellipsis;

  white-space: nowrap;
}

#screenerView .screener-auto-note {
  color: var(--r2-faint);

  font-size: 12px;

  line-height: 1.6;
}

#screenerView .regime-selector .regime-option {
  cursor: default;
}

#screenerView .quant-screener-panel {
  display: grid;

  gap: 12px;

  grid-template-columns: minmax(360px, 0.88fr) minmax(0px, 1.12fr);

  align-items: start;
}

#screenerView .custom-results-slot {
  grid-column: 1 / -1;

  min-width: 0px;
}

#screenerView .custom-screener-tools {
  grid-column: 1 / -1;

  min-width: 0px;

  min-height: 58px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 16px;

  padding: 9px 14px;

  border: 1px solid var(--r2-line);

  border-radius: var(--r2-radius);

  background: var(--r2-card);
}

#screenerView .custom-screener-tools > div:first-child {
  min-width: 0px;

  display: grid;

  gap: 3px;
}

#screenerView .custom-screener-tools small,
#screenerView .custom-screener-tools span {
  color: var(--r2-faint);

  font-size: 11.5px;
}

#screenerView .custom-screener-tools strong {
  color: var(--r2-ink);

  font-size: 14px;
}

#screenerView .custom-screener-tools > div:last-child {
  flex: 0 0 auto;

  display: flex;

  gap: 8px;
}

#screenerView .custom-results-slot .screener-results-view {
  margin: 0px;
}

#screenerView .screener-result-frame {
  width: 100%;

  min-width: 0px;

  max-width: 100%;

  max-height: 640px;

  min-height: 260px;

  overflow: auto;

  border-right: 0px;

  border-bottom: 0px;

  border-left: 0px;

  border-image: none;

  border-top: 1px solid var(--r2-line-soft);

  border-radius: 0px;

  scrollbar-gutter: stable;
}

#screenerView .screener-result-frame .data-table {
  font-size: 12.5px;

  width: 100%;

  min-width: 1376px;

  table-layout: fixed;
}

#screenerView .screener-result-columns col:nth-child(1) {
  width: 54px;
}

#screenerView .screener-result-columns col:nth-child(2) {
  width: 122px;
}

#screenerView .screener-result-columns col:nth-child(3) {
  width: 104px;
}

#screenerView .screener-result-columns col:nth-child(4) {
  width: 78px;
}

#screenerView .screener-result-columns col:nth-child(5),
#screenerView .screener-result-columns col:nth-child(6),
#screenerView .screener-result-columns col:nth-child(7) {
  width: 120px;
}

#screenerView .screener-result-columns col:nth-child(8),
#screenerView .screener-result-columns col:nth-child(9) {
  width: 82px;
}

#screenerView .screener-result-columns col:nth-child(10) {
  width: 210px;
}

#screenerView .screener-result-columns col:nth-child(11) {
  width: 150px;
}

#screenerView .screener-result-columns col:nth-child(12) {
  width: 142px;
}

@media (max-width: 980px) {
  #screenerView .quant-screener-panel {
    grid-template-columns: 1fr;
  }

  #screenerView .custom-screener-tools {
    align-items: stretch;

    flex-direction: column;
  }

  #screenerView .custom-screener-tools > div:last-child {
    flex-wrap: wrap;
  }
}

.dtag {
  font-size: 11px;

  color: var(--sub);

  background: var(--surface-muted);

  border-radius: 5px;

  padding: 2px 7px;
}

.scr-head {
  display: flex;

  align-items: center;

  gap: 12px;

  margin-bottom: 12px;
}

.scr-head h2 {
  font-size: 17px;

  font-weight: 800;
}

.scr-head .sub {
  font-size: 12px;

  color: var(--faint);
}

.method {
  display: inline-flex;

  background: var(--surface);

  border: 1px solid var(--line);

  border-radius: 10px;

  padding: 3px;

  gap: 3px;

  margin-left: auto;
}

.stepper {
  display: flex;

  align-items: center;

  gap: 0px;

  margin-bottom: 12px;

  background: var(--surface);

  border: 1px solid var(--line);

  border-radius: var(--radius);

  padding: 12px 18px;
}

.step {
  display: flex;

  align-items: center;

  gap: 9px;
}

.step .no {
  width: 24px;

  height: 24px;

  border-radius: 50%;

  background: var(--down);

  color: var(--text-inverse);

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: 12px;

  font-weight: 700;

  flex-shrink: 0;
}

.step .no.cur {
  background: var(--blue);
}

.step .tt {
  font-size: 13px;

  font-weight: 700;
}

.step .ds {
  font-size: 11px;

  color: var(--faint);
}

.step .ln {
  width: 64px;

  height: 1.5px;

  background: var(--line);

  margin: 0px 14px;
}

.ps-grid {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 12px;

  margin-bottom: 12px;
}

.view {
  display: none;
}

#screenerView .curated-strategy-card {
  min-height: 56px;

  display: flex;

  flex-direction: column;

  gap: 4px;

  flex: 0 0 auto;

  padding: 7px 9px;

  border: 1px solid transparent;

  border-radius: 7px;

  background: var(--table-header);

  box-shadow: none;

  transition: border-color 160ms, background-color 160ms, transform 160ms;

  cursor: pointer;
}

#screenerTrackingView .tracking-table {
  table-layout: auto;

  min-width: var(--table-wide);
}

@media (min-width: 768px) {
  :root #screenerView.active-view {
    height: auto;

    min-height: 0px;

    display: block;

    overflow: visible;
  }

  :root #screenerView .screener-result-frame {
    max-height: none;

    overflow: auto;
  }
}

:root[data-theme="dark"] :is(.dtag, .tag.neu, .screener-soft-label) {
  border-color: var(--border);

  background: var(--surface-muted);

  color: var(--text-secondary);
}

:root[data-theme="dark"] :is(.screener-result-frame, .screener-pipeline, .screener-backtest-strip) {
  border-color: var(--line-soft);

  background: var(--surface);
}

:root[data-theme="dark"] :is(.curated-strategy-card:hover, .curated-strategy-card.selected) {
  border-color: var(--blue-line);

  background: var(--action-soft);
}

:root[data-theme="dark"] #screenerView .curated-detail-pane {
  background: var(--surface);

  color: var(--text-primary);
}

:root[data-theme="dark"] #screenerView :is(.curated-detail-header, .curated-execution-bar) {
  border-color: var(--line-soft);
}

:root[data-theme="dark"] #screenerView :is(.curated-detail-header h3, .mini-section-heading h4, .curated-rule-row strong, .curated-score-row strong, .curated-data-status strong) {
  color: var(--text-primary);
}

:root[data-theme="dark"] #screenerView :is(.curated-detail-header > div > span, .curated-detail-header p, .mini-section-heading > span, .curated-rule-row span, .curated-score-row > span:first-child, .curated-data-status small) {
  color: var(--text-secondary);
}

:root[data-theme="dark"] #screenerView .curated-rule-row {
  border-color: var(--line-soft);
}

:root[data-theme="dark"] #screenerView .curated-score-track {
  background: var(--surface-muted);
}

:root[data-theme="dark"] #screenerView .curated-strategy-badges span {
  background: var(--surface-muted);

  color: var(--text-secondary);
}

:root[data-theme="dark"] #screenerView .curated-strategy-badges span:first-child {
  background: var(--action-soft);

  color: var(--action);
}

:root[data-theme="dark"] :is(.strategy-sidebar) {
  border-color: var(--line-soft);

  background: var(--surface-muted);
}

:root[data-theme="dark"] #screenerView :is(.screener-mode-tabs, .screener-stepper, .regime-selector, .regime-option, .screener-results-view, .result-toolbar) {
  border-color: var(--border);

  background: var(--surface);

  color: var(--text-primary);
}

:root[data-theme="dark"] #screenerView :is(.screener-soft-label, .neutral) {
  background: var(--surface-muted);

  color: var(--text-secondary);
}

:root[data-theme="dark"] #screenerView :is(.regime-summary, .regime-option.active) {
  border-color: var(--market-up-soft);

  background: var(--market-up-soft);

  color: var(--market-up);
}

:root[data-theme="dark"] #screenerView :is(.regime-advice, .screener-backtest-strip) {
  border-color: var(--warning-line);

  background: var(--warning-soft);

  color: var(--warning-color);
}

:root[data-theme="dark"] #screenerView .screener-tracking-entry {
  border-color: var(--blue-line);

  background: var(--action-soft);

  color: var(--action);
}

:root[data-theme="dark"] #screenerView :is(.count-badge, .screener-result-source, b.neutral) {
  background: var(--surface-muted);

  color: var(--text-secondary);
}

:root[data-theme="dark"] #screenerView .screener-strategy-title b:not(.neutral) {
  background: var(--market-up-soft) !important;

  color: var(--market-up) !important;
}

:root[data-theme="dark"] #screenerView .screener-strategy-title b.neutral {
  background: var(--surface-muted) !important;

  color: var(--text-secondary) !important;
}

:root[data-theme="dark"] #screenerView .screener-card-heading h3 > span {
  color: var(--action);
}

:root[data-theme="dark"] #screenerView :is(.regime-evidence-line, .reason-column) {
  color: var(--text-secondary);
}

:root[data-theme="dark"] #screenerView .risk-cell {
  color: var(--warning-color);
}

:root[data-theme="dark"] #screenerView .table-action {
  color: var(--action);
}

:root[data-theme="dark"] #screenerView #regimeLabel {
  color: var(--market-up);
}

:root[data-theme="dark"] #screenerView :is(thead th, tbody td) {
  border-color: var(--line-soft);

  background-color: transparent !important;
}

:root[data-theme="dark"] #screenerView thead th {
  background-color: var(--surface-muted) !important;

  color: var(--text-secondary);
}

:root[data-theme="dark"] #screenerView :is(.curated-library-pane, .curated-library-heading, .curated-library-controls, .curated-search, .curated-category-select select, .curated-strategy-card, .curated-strategy-rank, .curated-card-tags em, .quant-builder-pane, .quant-summary-pane, .quant-panel-heading, .quant-rule-row, .quant-weight-control, .quant-weight-status) {
  border-color: var(--border);

  background: var(--surface);

  color: var(--text-primary);
}

:root[data-theme="dark"] #screenerView :is(.curated-strategy-card.active, .curated-card-tags em, .curated-strategy-rank, .quant-weight-status) {
  background: var(--surface-muted);
}

:root[data-theme="dark"] #screenerView .curated-strategy-card:hover {
  border-color: var(--blue-line);

  background: var(--surface-subtle);
}

:root[data-theme="dark"] #screenerView .curated-strategy-card.active {
  border-color: var(--blue-line);

  background: var(--action-soft);
}

:root[data-theme="dark"] #screenerView :is(.curated-health-grid, .curated-execution-bar) {
  border-color: var(--line-soft);

  background: var(--surface-muted);
}

:root[data-theme="dark"] #screenerView .curated-health-grid > div {
  border-color: var(--line-soft);
}

:root[data-theme="dark"] #screenerView .curated-search input {
  background: transparent;

  color: var(--text-primary);
}

:root[data-theme="dark"] #screenerView :is(.quant-rule-row select, .quant-rule-row input, .quant-universe-grid input, .quant-universe-grid select) {
  border-color: var(--border);

  background: var(--surface-subtle);

  color: var(--text-primary);
}

:root[data-theme="dark"] #screenerView :is(#curatedStrategyCount, .quant-panel-heading .button, .quant-summary-pane > header, .quant-summary-pane > header .button, .quant-weight-status > div) {
  border-color: var(--border);

  background: var(--surface-muted);

  color: var(--text-secondary);
}

:root[data-theme="dark"] #screenerView .curated-library-heading h3 {
  color: var(--text-primary);
}

:root[data-theme="dark"] #screenerView :is(.curated-view-toggle, .curated-school-filters) {
  border-color: var(--border);

  background: var(--surface);

  color: var(--text-primary);
}

:root[data-theme="dark"] #screenerView :is(.curated-view-toggle button, .curated-school-filters button) {
  color: var(--text-secondary);
}

:root[data-theme="dark"] #screenerView :is(.curated-view-toggle button, .curated-school-filters button):is(:hover, .active) {
  border-color: var(--blue-line);

  background: var(--action-soft);

  color: var(--action);
}

:root[data-theme="dark"] #screenerView .curated-strategy-list.is-grid .curated-strategy-icon {
  background: var(--action-soft);

  color: var(--action);
}

:root[data-theme="dark"] #screenerView .screener-result-frame tbody tr:hover td,
:root[data-theme="dark"] #screenerView .screener-result-frame tbody tr:hover td:last-child {
  color: var(--text-primary);

  background: var(--action-soft) !important;
}

@media (min-width: 1181px) {
  #screenerView .quant-summary-pane .quant-universe-grid {
    grid-template-columns: repeat(3, minmax(100px, 1fr)) minmax(128px, 0.9fr);
  }
}

@media (min-width: 621px) {
  #screenerView .screener-tracking-entry {
    flex: 0 0 auto;

    font-size: 11.5px;
  }
}

@media (min-width: 901px) {
  .screener-mode-tabs {
    justify-content: flex-end;
  }
}

#screenerView .screener-result-tools {
  min-width: 0;

  display: flex;

  align-items: center;

  justify-content: flex-end;

  gap: 8px;
}

#screenerView .screener-result-tools > .button {
  min-height: 30px;

  padding: 0 9px;

  white-space: nowrap;
}

#screenerView .screener-result-tools > .button .lucide {
  width: 13px;

  height: 13px;
}

#screenerView .screener-archive-tabs {
  min-height: 30px;

  height: 30px;

  flex: 0 0 auto;
}

#screenerView .screener-archive-tabs .segment {
  min-height: 26px;

  padding: 0 9px;
}

#screenerView .screener-batch-notice {
  min-height: 38px;

  display: flex;

  align-items: center;

  gap: 12px;

  padding: 8px 14px;

  border-top: 1px solid var(--r2-line-soft);

  background: var(--r2-card);

  color: var(--r2-faint);

  font-size: 11.5px;
}

#screenerView .screener-batch-notice strong {
  flex: 0 0 auto;

  color: var(--r2-ink);

  font-size: 11.5px;
}

#screenerView .screener-batch-notice.warning {
  background: var(--warning-soft);

  color: var(--warning-color);
}

#screenerView .screener-archive-table {
  min-width: 840px;

  table-layout: fixed;
}

#screenerView .screener-archive-table th:nth-child(1) {
  width: 112px;
}

#screenerView .screener-archive-table th:nth-child(2) {
  width: 132px;
}

#screenerView .screener-archive-table th:nth-child(3) {
  width: 110px;
}

#screenerView .screener-archive-table th:nth-child(4) {
  width: 92px;
}

#screenerView .screener-archive-table th:nth-child(6) {
  width: 94px;
}

#screenerView .screener-archive-table th:nth-child(7) {
  width: 190px;
}

#screenerView .screener-archive-table :is(th, td):nth-child(-n+3),
#screenerView .screener-archive-table :is(th, td):last-child {
  position: static;

  box-shadow: none;
}

#screenerView .screener-archive-strategies {
  overflow: hidden;

  color: var(--r2-sub);

  text-overflow: ellipsis;

  white-space: nowrap;
}

#screenerView .screener-signal-status {
  display: inline-flex;

  align-items: center;

  min-height: 22px;

  padding: 0 7px;

  border-radius: 5px;

  background: var(--surface-muted);

  color: var(--text-secondary);

  font-size: 10.5px;

  font-weight: 700;
}

#screenerView .screener-signal-status.active {
  background: var(--market-up-soft);

  color: var(--market-up);
}

:root[data-theme="dark"] #screenerView :is(.screener-batch-notice, .screener-archive-tabs) {
  border-color: var(--border);

  background: var(--surface);
}

:root[data-theme="dark"] #screenerView .screener-batch-notice.warning {
  background: var(--warning-soft);

  color: var(--warning-color);
}

@media (max-width: 900px) {
  #screenerView .result-toolbar {
    align-items: flex-start;

    flex-direction: column;
  }

  #screenerView .screener-result-tools {
    width: 100%;

    align-items: flex-start;

    flex-direction: column;
  }

  #screenerView .screener-batch-notice {
    align-items: flex-start;

    flex-direction: column;

    gap: 3px;
  }
}

#screenerView .data-table thead th:first-child,
#screenerView .data-table tbody td:first-child,
#screenerTrackingView .data-table thead th:first-child,
#screenerTrackingView .data-table tbody td:first-child {
  text-align: left;
}
