:root {
  color-scheme: dark;
  --bg: #080d13;
  --surface: #0f1721;
  --surface-2: #131d29;
  --surface-3: #182431;
  --line: #263545;
  --line-soft: #1d2a37;
  --text: #eef4fa;
  --muted: #8294a8;
  --muted-2: #5e7187;
  --red: #ff555d;
  --red-bg: #48232a;
  --green: #31d7a0;
  --green-bg: #153a34;
  --amber: #ffbc55;
  --amber-bg: #3c3020;
  --cyan: #4bc0d9;
  --blue: #70a8e8;
  --row-height: 44px;
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif;
  font-size: 15px;
  letter-spacing: 0;
}

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

button,
a,
select { -webkit-tap-highlight-color: transparent; }

button { cursor: pointer; }

.app-shell {
  height: 100%;
  display: grid;
  grid-template-rows: 68px 84px minmax(0, 1fr);
}

.topbar {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
  background: #0b121b;
}

.brand {
  min-width: 235px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid #8f343b;
  border-radius: 6px;
  background: #29171d;
  color: var(--red);
  font-size: 22px;
  font-weight: 900;
}

.brand strong {
  display: block;
  font-size: 21px;
  line-height: 1.15;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.topnav {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 5px;
}

.topnav a {
  height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 5px;
  color: #9fb0c2;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.topnav a:hover { color: #fff; }

.topnav a.active {
  border-color: #8f343b;
  background: #3a2027;
  color: #fff;
}

.top-status {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #aebdcc;
  font-size: 14px;
}

.top-status strong {
  margin-left: 8px;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.status-dot,
.data-state-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(49, 215, 160, .55);
}

.workbar {
  display: grid;
  grid-template-columns: minmax(430px, 1fr) 170px 170px minmax(240px, .58fr) 116px;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  border-bottom: 1px solid var(--line);
  background: #0c141e;
}

.official-entry {
  min-width: 0;
  height: 58px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid;
  border-radius: 6px;
  color: #fff;
  text-decoration: none;
}

.official-entry .entry-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 900;
}

.official-entry strong,
.official-entry small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.official-entry strong {
  font-size: 16px;
  line-height: 1.15;
}

.official-entry small {
  margin-top: 3px;
  color: #b8c7d5;
  font-size: 11px;
}

.official-entry .entry-arrow {
  font-size: 20px;
  font-weight: 900;
}

.official-entry.free {
  border-color: #84333b;
  background: #321b21;
  color: #ff747b;
}

.official-entry.free:hover { background: #422028; }

.official-entry.vip {
  border-color: #85652d;
  background: #272117;
  color: var(--amber);
}

.official-entry.vip:hover { background: #332819; }

.snapshot-control,
.data-state {
  min-width: 0;
  height: 58px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.field-label {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

select,
input,
textarea {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #0c151f;
  color: var(--text);
  outline: none;
}

select:focus,
input:focus,
textarea:focus { border-color: #8e3e46; }

select,
input[type="text"],
input[type="number"],
input[type="search"] {
  height: 38px;
  padding: 0 10px;
}

input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
}

.snapshot-control label {
  display: flex;
  align-items: center;
  gap: 7px;
}

.snapshot-control select {
  min-width: 108px;
  border-color: #75323a;
  background: #2a1b21;
  font-weight: 800;
}

.time-boundary {
  overflow: hidden;
  color: var(--amber);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.data-state {
  border-color: #245f58;
}

.data-state.waiting {
  border-color: #745b24;
  background: #16170f;
}

.data-state.waiting .data-state-dot {
  background: #f0b84b;
  box-shadow: 0 0 10px rgba(240, 184, 75, .5);
}

.data-state.building {
  border-color: #315b7d;
  background: #0e1721;
}

.data-state.building .data-state-dot {
  background: #58a8e8;
  box-shadow: 0 0 10px rgba(88, 168, 232, .5);
  animation: status-pulse 1.2s ease-in-out infinite;
}

.data-state.invalid {
  border-color: #71323a;
}

.data-state.invalid .data-state-dot {
  background: #dd5f69;
  box-shadow: 0 0 10px rgba(221, 95, 105, .45);
}

@keyframes status-pulse {
  50% { opacity: .45; }
}

.data-state small,
.data-state strong { display: block; }

.data-state small {
  color: var(--muted);
  font-size: 12px;
}

.data-state strong {
  margin-top: 2px;
  color: #edf8f5;
  font-size: 15px;
  white-space: nowrap;
}

.data-state-meta {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
  white-space: nowrap;
}

.icon-btn,
.text-btn,
.small-btn {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #111b27;
  color: #c0ccd8;
}

.icon-btn {
  width: 38px;
  padding: 0;
  font-size: 19px;
}

.text-btn {
  padding: 0 12px;
  font-size: 14px;
}

.small-btn {
  height: 34px;
  padding: 0 10px;
  color: #b8c7d7;
  font-size: 13px;
}

.small-btn:disabled {
  cursor: not-allowed;
  opacity: .42;
}

.icon-btn:hover,
.text-btn:hover,
.small-btn:hover,
.quick-excludes button:hover {
  border-color: #475b70;
  color: #fff;
}

.primary-btn {
  height: 58px;
  border: 1px solid #a63b44;
  border-radius: 5px;
  background: #512229;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}

.primary-btn:hover { background: #642830; }
.primary-btn:disabled { cursor: wait; opacity: .55; }

.workspace {
  min-height: 0;
  display: grid;
  grid-template-columns: 560px minmax(0, 1fr);
}

.rule-panel {
  min-height: 0;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: #0b121a;
  scrollbar-color: #43566a transparent;
  scrollbar-width: thin;
}

.panel-section {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.strategy-section {
  padding-top: 14px;
  padding-bottom: 14px;
  background: #0d1620;
}

.strategy-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.strategy-heading h2 {
  margin: 0;
  color: #f4f7fb;
  font-size: 19px;
}

.strategy-heading p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.strategy-heading > span {
  color: #50d8ad;
  font-size: 11px;
  white-space: nowrap;
}

.strategy-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 6px;
}

.strategy-controls select {
  min-width: 0;
  width: 100%;
  border-color: #4b5f73;
  font-weight: 700;
}

.strategy-controls .text-btn {
  padding: 0 10px;
  white-space: nowrap;
}

.save-strategy-btn {
  border-color: #854049;
  background: #321f25;
  color: #ff9aa0;
}

.save-strategy-btn:hover {
  border-color: #b84a53;
  background: #472229;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.section-heading h2 {
  margin: 0;
  font-size: 16px;
}

.section-heading p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.heading-actions { display: flex; gap: 5px; }

.settings-shortcuts {
  display: flex;
  align-items: center;
  gap: 7px;
}

.settings-shortcuts .small-btn {
  position: relative;
  min-width: 82px;
  font-weight: 800;
}

.factor-settings-btn {
  border-color: #376e91;
  background: #17384e;
  color: #d9f0ff;
}

.factor-settings-btn:hover,
.factor-settings-btn:focus-visible {
  border-color: #69add6;
  background: #20506d;
  color: #fff;
}

.reset-settings-btn {
  border-color: #87505a;
  background: #362129;
  color: #ffadb2;
}

.reset-settings-btn:hover,
.reset-settings-btn:focus-visible {
  border-color: #d45b65;
  background: #542730;
  color: #fff;
}

.settings-shortcuts .small-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  z-index: 80;
  top: calc(100% + 8px);
  right: 0;
  width: max-content;
  max-width: 260px;
  padding: 7px 10px;
  border: 1px solid #405a70;
  border-radius: 4px;
  background: #101b26;
  color: #d9e5ee;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-3px);
  transition: opacity .14s ease, transform .14s ease;
}

.settings-shortcuts .small-btn:hover::after,
.settings-shortcuts .small-btn:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.segmented {
  display: grid;
  grid-template-columns: .9fr .8fr 1.45fr;
  gap: 4px;
}

.segmented button {
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #101923;
  color: #9eb0c3;
  font-size: 14px;
  font-weight: 700;
}

.segmented button.active {
  border-color: #8f343b;
  background: #3a2027;
  color: #fff;
}

.logic-toolbar,
.mode-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

.logic-toolbar select,
.mode-row select { min-width: 154px; }

.factor-template-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.factor-template-control > span {
  color: #8fa5ba;
  white-space: nowrap;
}

.factor-template-control select {
  min-width: 126px;
  border-color: #376e91;
  background: #142c3d;
  color: #d9f0ff;
  font-weight: 800;
}

.rule-tree,
.sort-rows {
  display: grid;
  gap: 10px;
}

.rule-row {
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.rule-row input,
.rule-row select { min-width: 0; width: 100%; }

.rule-card {
  display: grid;
  gap: 9px;
  padding: 10px;
  border: 1px solid #26394b;
  border-radius: 6px;
  background: #0c1620;
}

.rule-card:hover { border-color: #3d566e; }

.rule-card-head {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 34px;
  align-items: center;
  gap: 8px;
}

.rule-factor-meta {
  max-width: 150px;
  overflow: hidden;
  color: #8299ae;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rule-card-controls {
  min-width: 0;
  display: grid;
  grid-template-columns: 134px minmax(0, 1fr);
  align-items: stretch;
  gap: 8px;
}

.rule-card-controls.with-mode-switch {
  grid-template-columns: 130px 112px minmax(0, 1fr);
}

.rule-card-controls.state-controls { grid-template-columns: minmax(150px, 220px); }
.rule-card-controls.no-target-controls { grid-template-columns: 134px minmax(0, 1fr); }
.rule-card-controls select,
.rule-card-controls input { height: 38px; }
.rule-operator,
.operand-type-select,
.compare-factor-select { font-weight: 650; }
.operand-type-select { color: #b4c5d6; }

.factor-picker-trigger {
  min-width: 0;
  width: 100%;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 0 9px;
  overflow: hidden;
  border: 1px solid #314458;
  border-radius: 4px;
  background: #101a25;
  color: #e7eef7;
  font-weight: 700;
  text-align: left;
}

.factor-picker-trigger span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.factor-picker-trigger b { color: #8fa5ba; font-size: 12px; }
.factor-picker-trigger:hover { border-color: #657d94; background: #152231; }

.factor-select {
  color: #e7eef7;
  font-weight: 700;
}

.factor-select optgroup {
  color: #8ca4ba;
  font-weight: 700;
}

.factor-select option {
  color: #e7eef7;
  font-weight: 600;
}

.value-wrap {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}

.value-wrap input,
.value-wrap select { min-width: 0; flex: 1; }

.semantic-state {
  min-width: 0;
  flex: 1;
  color: #7f95aa;
  font-size: 12px;
  text-align: center;
  white-space: nowrap;
}

.value-wrap .compare-factor-select {
  min-width: 0;
  color: #e8eef5;
  font-weight: 700;
}

.value-wrap input {
  padding-right: 9px;
  padding-left: 9px;
  font-variant-numeric: tabular-nums;
}

.value-wrap.is-range {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 6px;
}

.number-input-shell {
  min-width: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid #314458;
  border-radius: 4px;
  background: #101a25;
}

.number-input-shell:focus-within {
  border-color: #7b91a8;
  box-shadow: 0 0 0 1px rgba(123, 145, 168, .24);
}

.number-input-shell input {
  min-width: 0;
  border: 0;
  background: transparent;
  outline: 0;
}

.number-input-shell input.invalid-value { color: #ff727a; }

.inline-unit {
  flex: 0 0 auto;
  padding: 0 10px;
  border-left: 1px solid #2b3e50;
  color: var(--amber);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.range-separator {
  align-self: center;
  color: #8299ae;
  font-size: 12px;
  text-align: center;
}

.unit-label {
  overflow: hidden;
  color: var(--amber);
  font-size: 13px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.remove-btn {
  width: 34px;
  height: 34px;
  border: 1px solid #54313a;
  border-radius: 4px;
  background: #24161b;
  color: #e2787e;
}

.rule-human-summary {
  min-width: 0;
  padding: 7px 9px;
  border-left: 3px solid #4b789a;
  background: #101e2a;
  color: #b9cadd;
  font-size: 12px;
  line-height: 1.45;
}

.rule-card.context-exclude .rule-human-summary {
  border-left-color: #a94851;
  background: #20171c;
  color: #dfb6ba;
}

.rule-group {
  padding: 8px;
  border-left: 2px solid #3a5268;
  background: #0d1620;
}

.rule-group-head {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 7px;
}

.rule-group-head select { height: 34px; font-size: 13px; }
.rule-group-head .remove-btn { margin-left: auto; }
.rule-group-children { display: grid; gap: 6px; }

.quick-excludes {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
}

.quick-excludes button {
  height: 30px;
  padding: 0 9px;
  border: 1px solid #34475a;
  border-radius: 4px;
  background: #101a25;
  color: #9fb1c4;
  font-size: 12px;
}

.sort-row {
  display: grid;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  grid-template-columns: 24px minmax(112px, 1fr) 82px 100px 34px;
  align-items: center;
  gap: 4px;
}

.sort-row.no-extra {
  grid-template-columns: 24px minmax(150px, 1fr) minmax(92px, 118px) 34px;
}

.sort-row.single-target {
  grid-template-columns: 24px minmax(126px, 1fr) 82px 118px;
}

.vip-managed-sort {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 11px;
  border: 1px solid #69542b;
  border-radius: 4px;
  background: #1d1a13;
  color: #e7d39e;
  font-size: 13px;
}

.vip-score-section {
  padding-top: 12px;
  padding-bottom: 12px;
}

.vip-score-card {
  width: 100%;
  min-height: 70px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border: 1px solid #47515f;
  border-radius: 6px;
  background: #111923;
  color: var(--text);
  text-align: left;
}

.vip-score-card:hover {
  border-color: #6e6040;
  background: #161b21;
}

.vip-score-card.active {
  border-color: #8a6a2d;
  background: #211c13;
}

.vip-score-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid #8b6b31;
  border-radius: 5px;
  background: #302613;
  color: var(--amber);
  font-size: 12px;
  font-weight: 900;
}

.vip-score-copy small,
.vip-score-copy strong,
.vip-score-copy em {
  display: block;
  font-style: normal;
}

.vip-score-copy small {
  color: #97a7b7;
  font-size: 12px;
}

.vip-score-copy strong {
  margin-top: 2px;
  color: #e8edf3;
  font-size: 16px;
}

.vip-score-copy em {
  overflow: hidden;
  margin-top: 3px;
  color: #75879a;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vip-score-card.active .vip-score-copy strong,
.vip-score-card.active .vip-score-status {
  color: var(--amber);
}

.vip-score-status {
  padding: 4px 7px;
  border: 1px solid #455465;
  border-radius: 4px;
  color: #8fa0b1;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.vip-score-card.active .vip-score-status {
  border-color: #80632d;
  background: #302613;
}

.sort-rank {
  color: var(--amber);
  font-weight: 800;
  text-align: center;
}

.sort-extra-wrap {
  min-width: 0;
  height: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border: 1px solid #31445a;
  border-radius: 4px;
  background: #0d1621;
  overflow: hidden;
}

.sort-extra-wrap:focus-within {
  border-color: #5c7590;
}

.sort-extra {
  width: 100%;
  height: 32px;
  min-width: 0;
  padding: 0 4px;
  text-align: center;
  border: 0;
  border-radius: 0;
}

.sort-extra-label {
  padding: 0 5px 0 2px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.advanced-section textarea {
  width: 100%;
  height: 64px;
  margin-top: 4px;
  padding: 8px;
  resize: vertical;
  font-family: Consolas, monospace;
  font-size: 13px;
  line-height: 1.55;
}

.advanced-section label > span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.switch input { display: none; }

.switch > span {
  width: 34px;
  height: 18px;
  display: block;
  position: relative;
  border: 1px solid #405269;
  border-radius: 9px;
  background: #111b27;
}

.switch > span::after {
  content: "";
  width: 12px;
  height: 12px;
  position: absolute;
  top: 2px;
  left: 3px;
  border-radius: 50%;
  background: #75879a;
  transition: transform .15s ease;
}

.switch input:checked + span {
  border-color: #8f343b;
  background: #3a2027;
}

.switch input:checked + span::after {
  background: var(--red);
  transform: translateX(14px);
}

.expression-error {
  min-height: 18px;
  padding-top: 5px;
  color: var(--red);
  font-size: 12px;
}

.result-panel {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 82px auto minmax(0, 1fr) 34px;
  background: var(--bg);
}

.result-summary {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, 110px) minmax(260px, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 15px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.result-summary > div {
  min-width: 0;
  padding-left: 11px;
  border-left: 2px solid #263a4e;
}

.result-summary strong {
  display: block;
  margin-top: 3px;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}

.summary-label {
  color: var(--muted);
  font-size: 12px;
}

.summary-rules strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-actions {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: stretch;
  gap: 6px;
  padding: 0 !important;
  border: 0 !important;
}

.result-action-group {
  min-width: 0;
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 19px 7px 5px;
  border: 1px solid #24374a;
  border-radius: 5px;
  background: #101a25;
}

.action-group-label {
  position: absolute;
  top: 4px;
  left: 8px;
  color: #7890a6;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.result-action-group.action-help { background: #102033; }
.result-action-group.action-view { background: #102522; }
.result-action-group.action-data { background: #171e28; }

.result-action-group .tutorial-btn,
.result-action-group .text-btn {
  height: 32px;
  padding-inline: 10px;
}

.result-tool-btn.active,
.result-tool-btn[aria-pressed="true"] {
  border-color: #3a8d72;
  background: #15382f;
  color: #83e1bf;
}

.column-btn {
  position: relative;
  border-color: #426a87;
  background: #173047;
  color: #d9efff;
  box-shadow: inset 0 0 0 1px rgba(111, 177, 220, .08);
}

.column-btn:hover,
.column-btn:focus-visible {
  border-color: #68a9d3;
  background: #20415d;
  color: #fff;
}

.column-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  z-index: 40;
  top: calc(100% + 8px);
  right: 0;
  width: max-content;
  max-width: 260px;
  padding: 7px 10px;
  border: 1px solid #405a70;
  border-radius: 4px;
  background: #101b26;
  color: #d9e5ee;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  font-size: 12px;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-3px);
  transition: opacity .14s ease, transform .14s ease;
}

.column-btn:hover::after,
.column-btn:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.tutorial-btn {
  height: 38px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  border: 1px solid #9a424b;
  border-radius: 4px;
  background: #341d24;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.tutorial-btn-play {
  width: 19px;
  height: 19px;
  display: inline-grid;
  place-content: center;
  border: 1px solid #e15a64;
  border-radius: 50%;
  color: #ff8a91;
  font-size: 12px;
  line-height: 1;
}

.tutorial-btn-play::after {
  content: "";
  width: 0;
  height: 0;
  margin-left: 2px;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid currentColor;
}

.tutorial-btn-label,
.tutorial-btn-badge {
  white-space: nowrap;
}

.tutorial-btn-badge {
  display: none;
}

.tutorial-btn:hover,
.tutorial-btn:focus-visible {
  border-color: #ff6972;
  background: #482129;
}

.coverage-strip {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 15px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.coverage-strip strong { color: #b9c8d7; }
.coverage-strip .coverage-good { color: var(--green); }
.coverage-strip .coverage-warn { color: var(--amber); }

.coverage-item {
  height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  white-space: nowrap;
}

.coverage-item:hover,
.coverage-item:focus-visible {
  border-color: #38546d;
  background: #142231;
}

.coverage-item em {
  color: #71869a;
  font-size: 11px;
  font-style: normal;
}

.result-table {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 40px minmax(0, 1fr);
  overflow: hidden;
}

.table-head,
.virtual-row {
  display: grid;
  align-items: center;
  min-width: max-content;
  padding: 0 8px;
}

.table-head {
  border-bottom: 1px solid var(--line);
  background: #101923;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  will-change: transform;
}

.table-head > span,
.virtual-row > span {
  overflow: hidden;
  padding: 0 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-head > span + span,
.virtual-row > span + span {
  border-left: 1px solid rgba(87, 111, 136, .12);
}

.result-cell--text { text-align: left; }
.result-cell--number { text-align: right; }
.result-cell--center { text-align: center; }

.table-viewport {
  min-width: 0;
  min-height: 0;
  position: relative;
  overflow: auto;
  scrollbar-color: #42556a #0d141d;
  scrollbar-width: thin;
}

.virtual-spacer { width: 1px; opacity: 0; }

.virtual-rows {
  min-width: max-content;
  position: absolute;
  top: 0;
  left: 0;
}

.virtual-row {
  height: var(--row-height);
  border-bottom: 1px solid var(--line-soft);
  background: #0b121a;
  font-variant-numeric: tabular-nums;
  font-size: 14px;
}

.virtual-row.row-even { background: #0d151f; }
.virtual-row:hover { background: #172330; }
.virtual-row.top-ranked {
  background: #1d1c18;
  box-shadow: inset 4px 0 0 var(--amber), inset 0 0 30px rgba(255, 188, 85, .08);
}

.virtual-row.top-ranked-arrival {
  animation: top-ranked-arrival 1.65s ease-out 1;
}

.virtual-row.top-ranked:hover {
  background: #26231a;
}

@keyframes top-ranked-arrival {
  0% {
    background: #51331c;
    box-shadow: inset 7px 0 0 #ffd078, inset 0 0 54px rgba(255, 188, 85, .34);
  }
  55% {
    background: #2d271a;
    box-shadow: inset 5px 0 0 #ffc564, inset 0 0 38px rgba(255, 188, 85, .18);
  }
  100% {
    background: #1d1c18;
    box-shadow: inset 4px 0 0 var(--amber), inset 0 0 30px rgba(255, 188, 85, .08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .virtual-row.top-ranked,
  .rank-no1-badge,
  .rank-no1-badge::before { animation: none; }
}

.virtual-row .rank { color: var(--amber); font-weight: 800; }
.rank--winner {
  display: grid;
  place-items: center;
  height: 100%;
  overflow: visible !important;
}

.rank--empty { min-height: 1px; }

.rank-no1-badge {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 56px;
  height: 28px;
  overflow: hidden;
  border: 1px solid #ff685f;
  border-radius: 4px;
  background: #7b2028;
  box-shadow: 0 0 0 1px rgba(255, 197, 100, .2), 0 0 18px rgba(255, 79, 73, .42);
  color: #fff4d6;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 1px 0 rgba(74, 15, 20, .9);
  animation: rank-no1-pulse 1.15s ease-out 1;
}

.rank-no1-badge::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -18px;
  left: -28px;
  width: 18px;
  height: 64px;
  transform: rotate(24deg);
  background: rgba(255, 235, 181, .52);
  filter: blur(1px);
  animation: rank-no1-sweep 1.25s ease-out 1;
}

.rank-no1-badge > span { position: relative; z-index: 1; }

@keyframes rank-no1-pulse {
  0%, 100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 0 0 1px rgba(255, 197, 100, .2), 0 0 13px rgba(255, 79, 73, .34);
  }
  50% {
    transform: translateY(-1px) scale(1.04);
    box-shadow: 0 0 0 1px rgba(255, 217, 135, .46), 0 0 25px rgba(255, 79, 73, .7);
  }
}

@keyframes rank-no1-sweep {
  0%, 42% { left: -28px; opacity: 0; }
  52% { opacity: .9; }
  72%, 100% { left: 72px; opacity: 0; }
}

.virtual-row .stock-name { color: #f4f7fa; font-weight: 800; }
.virtual-row .stock-code { color: var(--muted-2); font-size: 12px; }
.virtual-row .positive { color: var(--red); font-weight: 800; }
.virtual-row .negative { color: var(--green); font-weight: 800; }
.virtual-row .score { color: var(--amber); font-weight: 800; }

.stock-cell {
  display: grid;
  align-content: center;
  height: 100%;
  line-height: 1.15;
  text-align: left;
}

.result-cell--sticky-stock {
  position: sticky;
  left: 0;
  z-index: 4;
  background: inherit;
  box-shadow: 1px 0 0 rgba(87, 111, 136, .24), 8px 0 14px rgba(0, 0, 0, .12);
}

.table-head .result-cell--sticky-stock {
  z-index: 8;
  background: #101923;
}

.holding-action-head,
.holding-action-cell,
.evidence-action-head,
.evidence-action-cell {
  display: flex;
  align-items: center;
  justify-content: center;
}

.holding-add-btn {
  width: 74px;
  height: 29px;
  padding: 0;
  border: 1px solid #8d3c45;
  border-radius: 4px;
  background: #321c22;
  color: #ff8b92;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.holding-add-btn:hover {
  border-color: #dc5962;
  background: #492229;
  color: #fff;
}

.holding-add-btn.added,
.holding-add-btn:disabled {
  cursor: default;
  border-color: #316652;
  background: #142d28;
  color: var(--green);
  opacity: 1;
}

.evidence-detail-btn {
  width: 58px;
  height: 29px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid #2d7fa8;
  border-radius: 4px;
  background: #102c3e;
  color: #82d8ff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.evidence-detail-btn:hover {
  border-color: #79d8ff;
  background: #123e58;
  color: #fff;
}

.evidence-detail-btn:focus-visible {
  outline: 2px solid #79d8ff;
  outline-offset: 2px;
}

.empty-state {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 7px;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.empty-state strong { color: #c5d1dc; font-size: 18px; }
.empty-state span { font-size: 14px; }
.empty-state[hidden] { display: none; }

.empty-state.no-result {
  gap: 13px;
}

.empty-state.no-result > strong {
  color: #f2f6fa;
  font-size: 22px;
}

.empty-state.no-result > #emptyStateMessage {
  max-width: 650px;
  color: #9fb0bf;
  line-height: 1.6;
}

.no-result-stats {
  display: flex;
  align-items: stretch;
  justify-content: center;
  border-top: 1px solid #2b3c4d;
  border-bottom: 1px solid #2b3c4d;
}

.no-result-stats[hidden],
.empty-state-hint[hidden] {
  display: none;
}

.no-result-stats > span {
  min-width: 128px;
  display: grid;
  gap: 4px;
  padding: 10px 22px;
  color: #8296a8;
  font-size: 12px;
}

.no-result-stats > span + span {
  border-left: 1px solid #2b3c4d;
}

.no-result-stats b {
  color: #f5f8fb;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.empty-state .empty-state-hint {
  max-width: 720px;
  color: #e2af55;
  font-size: 13px;
  line-height: 1.6;
}

.result-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.work-dialog {
  width: min(1420px, calc(100vw - 40px));
  max-height: calc(100vh - 50px);
  padding: 0;
  overflow: hidden;
  border: 1px solid #364b60;
  border-radius: 6px;
  background: #0d151f;
  color: var(--text);
}

.work-dialog::backdrop { background: rgba(0, 0, 0, .72); }
.narrow-dialog { width: min(760px, calc(100vw - 70px)); }

.screener-guide-dialog {
  width: min(1320px, calc(100vw - 54px));
}

.dialog-head {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  background: #111b27;
}

.dialog-head h2 { margin: 0; font-size: 20px; }
.dialog-head p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }

.guide-dialog-head {
  height: 70px;
  border-top: 3px solid #c84852;
}

.guide-body {
  max-height: calc(100vh - 120px);
  overflow: auto;
  padding: 18px 22px 20px;
}

.guide-flow {
  min-height: 78px;
  display: grid;
  grid-template-columns: repeat(5, minmax(105px, 1fr) 22px) minmax(105px, 1fr);
  align-items: center;
  padding: 10px 14px;
  border: 1px solid #304458;
  background: #0a121b;
}

.guide-flow > div {
  min-width: 0;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 1px 8px;
  align-items: center;
}

.guide-flow b {
  width: 28px;
  height: 28px;
  grid-row: 1 / 3;
  display: grid;
  place-content: center;
  border: 1px solid #a5434b;
  border-radius: 50%;
  background: #351d24;
  color: #ff747d;
  font-size: 14px;
}

.guide-flow span {
  overflow: hidden;
  color: #f2f6fa;
  font-size: 14px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guide-flow small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guide-flow > i {
  color: #526b82;
  font-size: 18px;
  font-style: normal;
  text-align: center;
}

.guide-main {
  display: grid;
  grid-template-columns: minmax(610px, 1.35fr) minmax(380px, .85fr);
  gap: 22px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.guide-case {
  min-width: 0;
  padding-right: 22px;
  border-right: 1px solid var(--line);
}

.guide-case > header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-bottom: 13px;
}

.guide-kicker {
  min-height: 27px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-left: 3px solid #d34e58;
  background: #2c1d24;
  color: #ff8a91;
  font-size: 12px;
  font-weight: 800;
}

.guide-case h3,
.guide-steps h3,
.guide-result h3 {
  margin: 0;
  color: #f1f5f9;
  font-size: 17px;
}

.guide-case header p,
.guide-result-copy p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.guide-setting {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 0;
  border-top: 1px solid var(--line-soft);
}

.guide-setting-label {
  width: 88px;
  flex: 0 0 88px;
  color: #aab9c8;
  font-size: 13px;
  font-weight: 800;
}

.guide-setting > small {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.guide-control-demo,
.guide-choice-demo,
.guide-logic-demo,
.guide-template-demo {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #32485c;
  border-radius: 4px;
  background: #111b27;
  color: #dce6ef;
  font-size: 13px;
}

.guide-control-demo {
  gap: 8px;
  padding: 0 9px;
}

.guide-control-demo em {
  color: var(--muted);
  font-style: normal;
}

.guide-choice-demo,
.guide-logic-demo,
.guide-template-demo {
  padding: 0 10px;
}

.guide-choice-demo.active {
  border-color: #9c414a;
  background: #351d24;
  color: #fff;
  font-weight: 800;
}

.guide-rule-setting {
  flex-wrap: wrap;
}

.guide-rule-setting .guide-setting-label {
  align-self: flex-start;
  padding-top: 9px;
}

.guide-logic-demo {
  color: #ffd06a;
}

.guide-rule-demo {
  min-height: 35px;
  display: grid;
  grid-template-columns: minmax(125px, 1fr) 62px 74px 28px;
  align-items: center;
  border: 1px solid #304559;
  border-radius: 4px;
  background: #0e1823;
  color: #dce6ef;
  font-size: 13px;
}

.guide-rule-demo strong,
.guide-rule-demo span,
.guide-rule-demo b,
.guide-rule-demo em {
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 9px;
  border-right: 1px solid #26394c;
  font-style: normal;
  white-space: nowrap;
}

.guide-rule-demo b { color: #fff; }
.guide-rule-demo em {
  justify-content: center;
  border-right: 0;
  color: var(--amber);
}

.guide-rule-setting .guide-rule-demo {
  width: calc(100% - 95px);
  margin-left: 95px;
}

.guide-rule-setting .guide-rule-demo:first-of-type {
  width: auto;
  margin-left: 0;
}

.guide-rule-setting > small {
  width: calc(100% - 95px);
  margin-left: 95px;
}

.guide-template-demo {
  border-color: #476078;
  color: #bcd0e1;
}

.guide-sort-demo {
  width: 390px !important;
  grid-template-columns: minmax(125px, 1fr) 100px 92px;
  margin-left: 0 !important;
}

.guide-sort-demo b {
  justify-content: center;
  border-right: 0;
  color: var(--amber);
}

.guide-steps {
  min-width: 0;
}

.guide-steps h3 {
  margin-bottom: 10px;
}

.guide-steps ol {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  counter-reset: tutorial-step;
  list-style: none;
}

.guide-steps li {
  min-height: 63px;
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr);
  gap: 2px 10px;
  align-content: center;
  border-top: 1px solid var(--line-soft);
  counter-increment: tutorial-step;
}

.guide-steps li::before {
  content: counter(tutorial-step);
  width: 27px;
  height: 27px;
  grid-row: 1 / 3;
  display: grid;
  place-content: center;
  border: 1px solid #3f5b74;
  border-radius: 3px;
  background: #152333;
  color: #7fc6ff;
  font-size: 13px;
  font-weight: 800;
}

.guide-steps li b {
  color: #edf3f8;
  font-size: 14px;
}

.guide-steps li span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.guide-result {
  display: grid;
  grid-template-columns: minmax(320px, .72fr) minmax(560px, 1.28fr);
  gap: 24px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.guide-result-copy h3 {
  margin-top: 9px;
}

.guide-result-copy p strong {
  color: #eaf1f7;
}

.guide-table-demo {
  min-width: 0;
  border: 1px solid #304559;
  background: #0a121b;
  font-variant-numeric: tabular-nums;
}

.guide-table-head,
.guide-table-demo > div:not(.guide-table-head) {
  min-height: 34px;
  display: grid;
  grid-template-columns: 64px minmax(140px, 1fr) 100px 100px 100px;
  align-items: center;
  padding: 0 10px;
  border-bottom: 1px solid var(--line-soft);
}

.guide-table-head {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.guide-table-demo > div:not(.guide-table-head) {
  color: #dbe6ef;
  font-size: 13px;
}

.guide-table-demo b { color: var(--amber); }
.guide-table-demo strong { color: #f4f7fa; }
.guide-table-demo em { color: #9fd2f3; font-style: normal; font-weight: 800; }
.guide-table-demo .positive { color: var(--red); font-weight: 800; }

.guide-table-demo > small {
  min-height: 31px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  color: #9fb0c0;
  font-size: 12px;
}

.guide-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-top: 14px;
}

.guide-notes > div {
  min-width: 0;
  padding-left: 11px;
  border-left: 2px solid #3b5369;
}

.guide-notes b {
  display: block;
  margin-bottom: 4px;
  color: #dfe8f0;
  font-size: 13px;
}

.guide-notes span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.strategy-guide {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 2px solid #30485e;
}

.strategy-guide-head {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, .65fr);
  gap: 24px;
  align-items: center;
}

.strategy-guide-head > div:first-child {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 12px;
  align-items: center;
}

.strategy-guide-head h3 {
  margin: 0;
  color: #f3f7fb;
  font-size: 19px;
}

.strategy-guide-head p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.strategy-thesis {
  min-height: 64px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 0 14px;
  border-left: 3px solid #d14d57;
  background: #191923;
}

.strategy-thesis span {
  color: var(--muted);
  font-size: 12px;
}

.strategy-thesis strong {
  color: #ffd36f;
  font-size: 14px;
}

.strategy-meaning {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 16px;
  border: 1px solid #304559;
  background: #0a121b;
}

.strategy-meaning > div {
  min-width: 0;
  min-height: 88px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 10px 12px;
  border-right: 1px solid #26394b;
}

.strategy-meaning > div:last-child {
  border-right: 0;
}

.strategy-meaning b {
  color: #eaf1f7;
  font-size: 13px;
}

.strategy-meaning span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.strategy-setup-grid {
  display: grid;
  grid-template-columns: minmax(520px, .9fr) minmax(650px, 1.1fr);
  gap: 22px;
  padding-top: 18px;
}

.strategy-setup,
.strategy-result {
  min-width: 0;
}

.strategy-setup {
  padding-right: 22px;
  border-right: 1px solid var(--line);
}

.strategy-section-title {
  min-height: 35px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.strategy-section-title > span {
  color: #eef4f9;
  font-size: 16px;
  font-weight: 800;
}

.strategy-section-title small {
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

.strategy-snapshot-demo {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  border: 1px solid #304559;
  background: #0d1721;
}

.strategy-snapshot-demo span,
.strategy-snapshot-demo strong {
  min-height: 34px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 12px;
}

.strategy-snapshot-demo span {
  color: var(--muted);
  background: #101b27;
}

.strategy-snapshot-demo strong {
  color: #e9f0f6;
}

.strategy-snapshot-demo span:nth-last-child(-n+2),
.strategy-snapshot-demo strong:nth-last-child(-n+2) {
  border-bottom: 0;
}

.strategy-snapshot-demo .strategy-highlight {
  color: #ff858d;
}

.strategy-rule-stack {
  margin-top: 9px;
  border: 1px solid #304559;
  background: #0a121b;
}

.strategy-module-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0 8px;
}

.strategy-module-label strong {
  color: #f4f8fc;
  font-size: 14px;
}

.strategy-module-label span {
  color: #8196a9;
  font-size: 12px;
  text-align: right;
}

.strategy-rule-stack-compact {
  margin-bottom: 2px;
}

.strategy-rule-stack > div {
  min-height: 36px;
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 82px 105px 58px;
  align-items: center;
  border-bottom: 1px solid var(--line-soft);
  font-variant-numeric: tabular-nums;
}

.strategy-rule-stack > div:last-child {
  border-bottom: 0;
}

.strategy-rule-stack strong,
.strategy-rule-stack span,
.strategy-rule-stack b,
.strategy-rule-stack em {
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-right: 1px solid #26394b;
  font-size: 13px;
  font-style: normal;
}

.strategy-rule-stack em {
  justify-content: center;
  border-right: 0;
  color: var(--amber);
}

.strategy-rule-stack b {
  color: #fff;
}

.strategy-rule-head {
  min-height: 29px !important;
  background: #111c28;
  color: var(--muted);
}

.strategy-rule-head span {
  font-size: 11px;
  font-weight: 800;
}

.strategy-range-rule b {
  white-space: nowrap;
}

.strategy-sort-setting {
  min-height: 42px;
  display: grid;
  grid-template-columns: 90px minmax(125px, 1fr) 125px 68px;
  align-items: center;
  margin-top: 9px;
  border: 1px solid #496076;
  background: #111c28;
}

.strategy-sort-setting span,
.strategy-sort-setting strong,
.strategy-sort-setting b,
.strategy-sort-setting em {
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-right: 1px solid #2b4053;
  font-size: 12px;
  font-style: normal;
}

.strategy-sort-setting span {
  color: var(--muted);
}

.strategy-sort-setting b {
  color: #9fd3f5;
}

.strategy-sort-setting em {
  justify-content: center;
  border-right: 0;
  color: #ffd36f;
  font-weight: 800;
}

.strategy-sort-note {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.strategy-result-table {
  border: 1px solid #304559;
  background: #0a121b;
  font-variant-numeric: tabular-nums;
}

.strategy-result-table > div {
  min-height: 39px;
  display: grid;
  grid-template-columns: minmax(110px, 1fr) 82px 92px 82px 92px 92px;
  align-items: center;
  padding: 0 9px;
  border-bottom: 1px solid var(--line-soft);
}

.strategy-result-table > div:last-child {
  border-bottom: 0;
}

.strategy-result-head {
  min-height: 31px !important;
  background: #111c28;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.strategy-result-table > div:not(.strategy-result-head) {
  color: #dce6ef;
  font-size: 12px;
}

.strategy-result-table strong {
  color: #f4f7fa;
}

.strategy-result-table b {
  color: #a8d8f7;
}

.strategy-result-table em {
  justify-self: start;
  padding: 3px 6px;
  border: 1px solid #486078;
  border-radius: 3px;
  background: #152434;
  color: #bfe2fa;
  font-size: 11px;
  font-style: normal;
}

.strategy-result-table .positive {
  color: var(--red);
  font-weight: 800;
}

.strategy-result-table .negative {
  color: var(--green);
  font-weight: 800;
}

.strategy-result-reading {
  display: grid;
  gap: 0;
  margin-top: 8px;
  border-top: 1px solid var(--line-soft);
}

.strategy-result-reading > div {
  min-height: 48px;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid var(--line-soft);
}

.strategy-result-reading b {
  color: #dfe8f0;
  font-size: 12px;
}

.strategy-result-reading span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.strategy-guide-summary {
  min-height: 58px;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 16px;
  padding: 0 14px;
  border-left: 3px solid #d14d57;
  background: #1b1921;
}

.strategy-guide-summary span {
  color: #ff8a91;
  font-size: 12px;
  font-weight: 800;
}

.strategy-guide-summary strong {
  color: #f1f5f9;
  font-size: 14px;
  line-height: 1.5;
}

.dialog-toolbar {
  height: 60px;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
}

.dialog-toolbar input { flex: 1; }
.dialog-toolbar select { min-width: 170px; }

.catalog-table {
  max-height: calc(100vh - 190px);
  overflow: auto;
}

.catalog-head,
.catalog-row {
  display: grid;
  grid-template-columns: 180px 180px 70px minmax(420px, 1fr) 80px 86px;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
}

.catalog-head {
  height: 42px;
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 1px solid var(--line);
  background: #101923;
  color: var(--muted);
  font-size: 13px;
}

.catalog-row {
  min-height: 78px;
  border-bottom: 1px solid var(--line-soft);
}

.catalog-row strong { font-size: 14px; }
.catalog-row code { color: var(--blue); font-size: 12px; }
.catalog-row small { color: var(--muted); font-size: 13px; line-height: 1.55; }
.catalog-row .unit-label { text-align: left; }

.factor-example-btn {
  width: 78px;
  height: 36px;
  border: 1px solid #3d566e;
  border-radius: 4px;
  background: #152333;
  color: #dce9f4;
  font-size: 13px;
  cursor: pointer;
}

.factor-example-btn:hover,
.factor-example-btn:focus-visible {
  border-color: #d44e58;
  background: #2a1d26;
  color: #fff;
}

.factor-example-dialog {
  width: min(980px, calc(100vw - 40px));
}

.factor-picker-dialog {
  width: min(1120px, calc(100vw - 48px));
}

.factor-picker-toolbar {
  min-height: 64px;
  display: grid;
  grid-template-columns: auto minmax(240px, 1fr) 170px auto;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line);
  background: #0b131c;
}

#manageCustomFactorsBtn {
  min-height: 40px;
  border-color: #3f789d;
  background: #17384e;
  color: #d9f0ff;
  font-weight: 800;
}

#manageCustomFactorsBtn:hover,
#manageCustomFactorsBtn:focus-visible {
  border-color: #69add6;
  background: #20506d;
  color: #fff;
}

.factor-tier-tabs { display: flex; }
.factor-tier-tabs button { min-width: 92px; }

.factor-picker-body {
  height: min(600px, calc(100vh - 250px));
  display: grid;
  grid-template-columns: minmax(390px, .92fr) minmax(430px, 1.08fr);
  min-height: 360px;
}

.factor-picker-list {
  overflow: auto;
  border-right: 1px solid var(--line);
  background: #0a1119;
}

.factor-picker-item {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  background: transparent;
  color: var(--text);
  text-align: left;
}

.factor-picker-item:hover { background: #13202c; }
.factor-picker-item.active { box-shadow: inset 3px 0 0 #e4545c; background: #20202a; }
.factor-picker-item span { min-width: 0; }
.factor-picker-item strong,
.factor-picker-item small { display: block; }
.factor-picker-item strong { font-size: 15px; }
.factor-picker-item small { margin-top: 4px; color: var(--muted); font-size: 12px; }
.factor-picker-item em {
  padding: 3px 7px;
  border: 1px solid #38526a;
  border-radius: 4px;
  color: #9eb6cc;
  font-size: 11px;
  font-style: normal;
  white-space: nowrap;
}

.factor-picker-empty {
  min-height: 180px;
  display: grid;
  place-items: center;
  color: var(--muted);
}

.factor-picker-detail {
  min-width: 0;
  overflow: auto;
  padding: 22px 24px;
  background: #0e1721;
}

.factor-detail-title { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.factor-detail-title > span { display: block; color: var(--amber); font-size: 12px; }
.factor-detail-title > strong { display: block; margin: 8px 0 5px; font-size: 24px; }
.factor-detail-title > code { color: var(--blue); font-size: 13px; }
.factor-use-summary {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #31516b;
  border-radius: 5px;
  background: #112131;
}
.factor-use-summary span { display: block; color: #7fa7c4; font-size: 12px; }
.factor-use-summary strong { display: block; margin-top: 5px; color: #f3f7fb; font-size: 16px; line-height: 1.5; }
.factor-use-summary p { margin: 6px 0 0; color: #a9bdcf; font-size: 13px; line-height: 1.55; }
.factor-picker-detail dl { margin: 8px 0 0; }
.factor-picker-detail dl > div {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}
.factor-picker-detail dt { color: var(--muted); font-size: 13px; }
.factor-picker-detail dd { margin: 0; color: #dfe7ef; line-height: 1.55; }
.factor-detail-example { margin-top: 16px; padding: 14px; border-left: 3px solid #d64c56; background: #191a22; }
.factor-detail-example span { display: block; color: var(--muted); font-size: 12px; }
.factor-detail-example strong { display: block; margin-top: 6px; line-height: 1.5; }
.dialog-status { margin-right: auto; color: var(--muted); font-size: 13px; }

.custom-factor-dialog { width: min(1180px, calc(100vw - 48px)); }
.custom-factor-dialog[open] {
  height: min(840px, calc(100vh - 48px));
  display: grid;
  grid-template-rows: 74px auto auto minmax(0, 1fr) auto;
  overflow: hidden;
}
.custom-factor-toolbar {
  min-height: 64px;
  display: grid;
  grid-template-columns: auto minmax(280px, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 9px 18px;
  border-bottom: 1px solid var(--line);
  background: #0b131c;
}
.custom-factor-toolbar span { color: var(--amber); font-weight: 700; }

.custom-factor-tier-tabs {
  display: inline-flex;
  gap: 5px;
}

.custom-factor-tier-tabs button {
  height: 38px;
  min-width: 96px;
  border: 1px solid #354b60;
  border-radius: 4px;
  background: #111d29;
  color: #a7bacb;
  font-weight: 800;
}

.custom-factor-tier-tabs button.active {
  border-color: #a7424b;
  background: #3a2027;
  color: #fff;
}

.custom-factor-hover-help {
  min-height: 70px;
  display: grid;
  grid-template-columns: 80px minmax(180px, .55fr) minmax(300px, 1fr);
  align-items: center;
  gap: 14px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line);
  background: #10202e;
}

.custom-factor-hover-help > span {
  color: #7eb1d0;
  font-size: 12px;
  font-weight: 800;
}

.custom-factor-hover-help > strong {
  color: #f2f7fb;
  font-size: 15px;
}

.custom-factor-hover-help > p {
  margin: 0;
  color: #a7bccd;
  font-size: 13px;
  line-height: 1.5;
}

.custom-factor-columns {
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  background: #0a1119;
}
.custom-factor-column {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: 58px minmax(0, 1fr);
  border-right: 1px solid var(--line);
}
.custom-factor-column:last-child { border-right: 0; }
.custom-factor-column > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 16px;
  border-bottom: 1px solid var(--line);
  background: #0e1721;
}
.custom-factor-column > header strong,
.custom-factor-column > header small { display: block; }
.custom-factor-column > header strong { font-size: 15px; }
.custom-factor-column > header small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.custom-factor-column > header > span { color: var(--amber); font-size: 13px; font-weight: 700; }
.custom-factor-list {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #42556a #0d141d;
  scrollbar-width: thin;
}
.custom-factor-item {
  min-height: 52px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px 64px;
  align-items: center;
  gap: 10px;
  padding: 7px 18px;
  border-bottom: 1px solid var(--line-soft);
  background: #0c151f;
}
.custom-factor-item:hover,
.custom-factor-item:focus-within {
  background: #162839;
  box-shadow: inset 3px 0 0 #4b8eb9;
}
.selected-column .custom-factor-item { background: #121a23; }
.selected-column .custom-factor-item:hover,
.selected-column .custom-factor-item:focus-within {
  background: #22202a;
  box-shadow: inset 3px 0 0 #d14e58;
}
.custom-factor-item strong,
.custom-factor-item small { display: block; }
.custom-factor-item small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.custom-factor-item code {
  overflow: hidden;
  color: var(--blue);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.custom-factor-action {
  min-width: 58px;
  min-height: 30px;
  border: 1px solid #36536a;
  border-radius: 4px;
  background: #132332;
  color: #dce9f4;
  font-weight: 700;
  cursor: pointer;
}
.custom-factor-action:hover { border-color: #d44e58; background: #2a1d26; color: #fff; }
.custom-factor-action.remove { border-color: #6b343b; color: #ff8e96; }
.custom-factor-empty {
  min-height: 180px;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}
@media (max-width: 860px) {
  .custom-factor-dialog[open] { height: calc(100vh - 24px); }
  .custom-factor-toolbar { grid-template-columns: 1fr; }
  .custom-factor-hover-help { grid-template-columns: 1fr; gap: 4px; }
  .custom-factor-columns { grid-template-columns: 1fr; overflow-y: auto; }
  .custom-factor-column { min-height: 300px; border-right: 0; border-bottom: 1px solid var(--line); }
}

.coverage-detail-dialog {
  width: min(760px, calc(100vw - 48px));
}

.coverage-detail-list {
  max-height: min(620px, calc(100vh - 190px));
  overflow: auto;
  padding: 10px 18px 18px;
}

.coverage-detail-row {
  min-height: 48px;
  display: grid;
  grid-template-columns: 110px minmax(140px, 1fr) minmax(180px, 1.3fr);
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.coverage-detail-row code { color: var(--blue); }
.coverage-detail-row span { color: var(--muted); }
.coverage-detail-empty {
  min-height: 180px;
  display: grid;
  place-items: center;
  color: var(--green);
  font-weight: 800;
}

.factor-example-body {
  max-height: calc(100vh - 160px);
  overflow: auto;
  padding: 22px 24px 24px;
}

.factor-example-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.factor-example-summary > strong {
  min-width: 0;
  color: #e8f0f7;
  font-size: 16px;
  line-height: 1.55;
}

.factor-example-summary p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.factor-example-badge {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 3px 8px;
  border: 1px solid #8b3b45;
  border-radius: 4px;
  background: #321d24;
  color: #ff8a91;
  font-size: 13px;
}

.factor-example-section {
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
}

.factor-example-section h3 {
  margin: 0 0 10px;
  color: #aebdcc;
  font-size: 14px;
  font-weight: 600;
}

.factor-example-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.factor-example-inputs span {
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 7px 10px;
  border-left: 2px solid #3c536a;
  background: #111c28;
  color: #d9e4ee;
  font-size: 14px;
}

.factor-example-calculation {
  padding: 11px 12px;
  border: 1px solid #31465a;
  background: #0a121b;
  color: #b9d8f2;
  font-family: Consolas, "Microsoft YaHei UI", monospace;
  font-size: 15px;
  line-height: 1.6;
}

.factor-example-result {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 8px;
  padding: 0 12px;
  border-left: 3px solid #d44e58;
  background: #1b1820;
}

.factor-example-result span,
.factor-example-rules span,
.factor-example-note span {
  color: var(--muted);
  font-size: 13px;
}

.factor-example-result strong {
  color: #ffd06a;
  font-size: 18px;
}

.factor-example-rules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px 0;
}

.factor-example-rules > div {
  min-width: 0;
  padding: 12px;
  border: 1px solid #31465a;
  background: #111b27;
}

.factor-example-rules > div:first-child {
  border-top: 2px solid #36b986;
}

.factor-example-rules > div:last-child {
  border-top: 2px solid #d44e58;
}

.factor-example-rules strong {
  display: block;
  margin: 8px 0 7px;
  color: #f3f7fb;
  font-size: 16px;
  line-height: 1.45;
}

.factor-example-rules small {
  color: var(--muted);
  font-size: 13px;
}

.factor-example-note {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding-top: 14px;
}

.factor-example-note strong {
  color: #c9d5df;
  font-size: 14px;
  line-height: 1.6;
}

.column-options {
  max-height: calc(100vh - 230px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  overflow: auto;
  padding: 16px;
}

.column-options label {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 10px;
  border: 1px solid var(--line-soft);
  background: #101923;
}

.dialog-actions {
  height: 64px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-top: 1px solid var(--line);
}

.compact-primary { width: 100px; height: 40px; }

.save-filter-dialog,
.rename-filter-dialog,
.reset-settings-dialog,
.delete-filter-dialog {
  width: min(560px, calc(100vw - 70px));
}

.filter-manager-dialog {
  width: min(820px, calc(100vw - 70px));
}

.save-filter-dialog form {
  margin: 0;
}

.save-filter-body,
.delete-filter-body {
  padding: 22px 20px;
}

.save-filter-body label {
  display: grid;
  gap: 8px;
}

.save-filter-body label > span,
.delete-filter-body > span {
  color: #aebdca;
  font-size: 13px;
  font-weight: 700;
}

.save-filter-body input {
  width: 100%;
  height: 44px;
  font-size: 16px;
}

.save-filter-body p,
.delete-filter-body p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.form-error {
  min-height: 20px;
  margin-top: 8px;
  color: #ff727b;
  font-size: 13px;
}

.filter-manager-list {
  max-height: min(560px, calc(100vh - 190px));
  overflow: auto;
  padding: 12px 16px;
}

.filter-manager-dialog .dialog-actions {
  justify-content: space-between;
}

.dialog-utility-actions {
  display: flex;
  gap: 8px;
}

.filter-manager-row {
  min-height: 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-soft);
}

.filter-manager-row:last-child {
  border-bottom: 0;
}

.filter-manager-row > div {
  min-width: 0;
}

.filter-manager-row strong,
.filter-manager-row small {
  display: block;
}

.filter-manager-row strong {
  overflow: hidden;
  color: #f2f6fa;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-manager-row small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.current-filter-badge {
  padding: 4px 8px;
  border: 1px solid #874049;
  border-radius: 4px;
  background: #341f25;
  color: #ff8a91;
  font-size: 12px;
  font-weight: 800;
}

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

.rename-filter-btn {
  min-width: 68px;
  height: 38px;
}

.notification-subscription-btn {
  min-width: 108px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #436781;
  border-radius: 4px;
  background: #14293a;
  color: #cfe9fb;
  font-weight: 700;
}

.notification-subscription-btn.is-active {
  border-color: rgba(56, 201, 151, .72);
  background: rgba(29, 127, 96, .22);
  color: #75e4b9;
}

.notification-subscription-btn:disabled {
  cursor: not-allowed;
  border-color: var(--line-soft);
  background: #111b24;
  color: var(--muted);
  opacity: .65;
}

.delete-filter-btn,
.danger-btn {
  height: 38px;
  border: 1px solid #813940;
  border-radius: 4px;
  background: #301c22;
  color: #ff9299;
}

.delete-filter-btn {
  min-width: 68px;
  padding: 0 12px;
}

.delete-filter-btn:disabled {
  cursor: not-allowed;
  opacity: .42;
}

.danger-btn {
  min-width: 100px;
  padding: 0 14px;
  font-weight: 800;
}

.delete-filter-btn:not(:disabled):hover,
.danger-btn:hover {
  border-color: #b84a53;
  background: #472229;
  color: #fff;
}

.delete-filter-body strong {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-size: 20px;
}

.error-dialog {
  width: min(540px, calc(100vw - 48px));
  border-color: #7b333b;
}

.holding-success-dialog {
  width: min(560px, calc(100vw - 48px));
  border-color: #2f725c;
}

.holding-success-head {
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-top: 3px solid var(--green);
  border-bottom: 1px solid var(--line);
  background: #101b19;
}

.holding-success-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border: 1px solid #3f9a79;
  border-radius: 50%;
  background: #163a31;
  color: #64e4b9;
  font-size: 23px;
  font-weight: 900;
}

.holding-success-head h2 {
  margin: 0;
  color: #fff;
  font-size: 20px;
}

.holding-success-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.holding-success-body {
  padding: 22px 20px 20px;
}

.holding-success-body > strong,
.holding-success-body > span {
  display: inline-block;
  vertical-align: baseline;
}

.holding-success-body > strong {
  color: #f5f8fb;
  font-size: 21px;
}

.holding-success-body > span {
  margin-left: 8px;
  color: var(--muted);
  font-size: 13px;
}

.holding-success-body > p {
  margin: 12px 0 18px;
  color: #b5c4d0;
  font-size: 14px;
  line-height: 1.65;
}

.holding-success-preference {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 11px;
  border: 1px solid #2a3b49;
  background: #0b141d;
  color: #a8b8c6;
  font-size: 13px;
  cursor: pointer;
}

.holding-success-preference input {
  width: 17px;
  height: 17px;
  accent-color: #2fb889;
}

.holding-success-actions {
  justify-content: space-between;
}

.holding-success-home {
  width: 116px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.error-dialog-head {
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-top: 3px solid #d64a54;
  border-bottom: 1px solid var(--line);
  background: #19141b;
}

.error-dialog-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border: 1px solid #a8424b;
  border-radius: 50%;
  background: #3b1d23;
  color: #ff8990;
  font-size: 24px;
  font-weight: 900;
}

.error-dialog-head h2 {
  margin: 0;
  color: #fff;
  font-size: 20px;
}

.error-dialog-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.error-dialog-body {
  padding: 24px 20px;
}

.error-dialog-body p {
  margin: 0;
  color: #f2f5f8;
  font-size: 15px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.error-confirm-btn {
  width: 116px;
  height: 40px;
  font-size: 14px;
}

.toast {
  max-width: 460px;
  min-height: 38px;
  display: none;
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  align-items: center;
  padding: 9px 13px;
  border: 1px solid #476078;
  border-radius: 5px;
  background: #152230;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .38);
  color: #eef4fa;
  font-size: 14px;
}

.toast.show { display: flex; }
.toast.error { border-color: #8e3941; background: #341d23; }

@media (max-width: 1500px) {
  .topbar { gap: 12px; padding: 0 14px; }
  .brand { min-width: 210px; }
  .topnav a { padding: 0 9px; font-size: 14px; }
  .workbar {
    grid-template-columns: minmax(390px, 1fr) 148px 148px minmax(220px, .58fr) 110px;
    gap: 8px;
    padding: 11px 14px;
  }
  .official-entry { padding: 0 8px; }
  .official-entry small { display: none; }
  .time-boundary { display: none; }
  .data-state > span:nth-child(2) { min-width: 116px; }
  .workspace { grid-template-columns: 530px minmax(0, 1fr); }
  .result-panel { grid-template-rows: 126px auto minmax(0, 1fr) 34px; }
  .result-summary {
    grid-template-columns: repeat(4, minmax(76px, .75fr)) minmax(180px, 1.5fr);
    grid-template-rows: 64px 42px;
    gap: 8px;
  }
  .result-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}

@media (max-width: 1280px) {
  .workbar { grid-template-columns: minmax(370px, 1fr) 130px 130px minmax(205px, .58fr) 100px; }
  .official-entry { grid-template-columns: 28px minmax(0, 1fr) 10px; gap: 6px; }
  .official-entry .entry-icon { width: 27px; height: 27px; font-size: 10px; }
  .official-entry strong { font-size: 14px; }
  .workspace { grid-template-columns: 500px minmax(0, 1fr); }
  .result-summary { grid-template-columns: repeat(4, minmax(72px, .75fr)) minmax(170px, 1.4fr); }
  .topnav a { padding: 0 10px; }
  .catalog-head,
  .catalog-row {
    grid-template-columns: 135px 142px 54px minmax(310px, 1fr) 62px 70px;
    padding: 0 12px;
  }
  .guide-flow {
    grid-template-columns: repeat(5, minmax(92px, 1fr) 16px) minmax(92px, 1fr);
  }
  .guide-flow small { display: none; }
  .guide-main { grid-template-columns: minmax(560px, 1.3fr) minmax(330px, .7fr); }
  .strategy-guide-head { grid-template-columns: minmax(0, 1fr) 360px; }
  .strategy-meaning { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .strategy-meaning > div:nth-child(3) { border-right: 0; }
  .strategy-meaning > div:nth-child(-n+3) { border-bottom: 1px solid #26394b; }
  .strategy-setup-grid { grid-template-columns: minmax(480px, .9fr) minmax(570px, 1.1fr); }
  .strategy-result-table > div {
    grid-template-columns: minmax(100px, 1fr) 70px 82px 72px 82px 80px;
  }
}

/* VIP official-strategy daily outcome: one compact state, backed by the frozen execution store. */
.result-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.result-meta .coverage-strip {
  flex: 0 0 auto;
  width: 100%;
  border-bottom: 0;
}

.vip-daily-outcome {
  width: 100%;
  min-width: 0;
  max-width: none;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 6px 16px;
  border-bottom: 1px solid rgba(222, 163, 24, .32);
  background: linear-gradient(90deg, rgba(73, 50, 4, .92), rgba(34, 29, 13, .9));
  color: #eef2f6;
  font-size: 13px;
  white-space: nowrap;
}

.vip-daily-outcome[hidden] { display: none !important; }

.vip-daily-outcome-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #ffd15a;
  font-weight: 800;
}

.vip-daily-outcome-title b {
  display: inline-grid;
  height: 23px;
  min-width: 32px;
  place-items: center;
  border: 1px solid rgba(255, 191, 25, .6);
  border-radius: 4px;
  background: rgba(128, 83, 0, .35);
  color: #ffc21c;
  font-size: 11px;
}

.vip-daily-previous strong { color: #fff; }

.vip-daily-today strong {
  display: inline-flex;
  min-width: 64px;
  height: 25px;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  border: 1px solid rgba(255, 181, 35, .42);
  border-radius: 4px;
  background: rgba(139, 90, 0, .28);
  color: #ffc94d;
}

.vip-daily-today strong[data-state="extend_t2"] {
  border-color: rgba(34, 216, 160, .48);
  background: rgba(9, 91, 68, .42);
  color: #55e7ba;
}

.vip-daily-today strong[data-state="sell"] {
  border-color: rgba(255, 82, 91, .5);
  background: rgba(126, 25, 33, .42);
  color: #ff7d84;
}

.vip-daily-today strong[data-state="not_applicable"] { color: #aeb9c4; }

.vip-daily-detail-link {
  margin-left: auto;
  display: inline-flex;
  min-width: 82px;
  height: 28px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid rgba(255, 181, 35, .55);
  border-radius: 4px;
  background: rgba(139, 90, 0, .32);
  color: #ffd15a;
  font-weight: 800;
  text-decoration: none;
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}

.vip-daily-detail-link:hover,
.vip-daily-detail-link:focus-visible {
  border-color: rgba(255, 209, 90, .92);
  background: rgba(169, 111, 0, .46);
  color: #fff1b8;
  outline: none;
}

.vip-daily-detail-link[hidden] { display: none !important; }

.vip-daily-outcome small {
  display: none;
}

/* New self-registered member tutorial spotlight. The masks leave the real entry clickable. */
.tutorial-onboarding[hidden] { display: none !important; }
.tutorial-onboarding { position: fixed; z-index: 9000; inset: 0; pointer-events: none; }
html.tutorial-onboarding-open,
html.tutorial-onboarding-open body { overflow: hidden; }

.tutorial-onboarding-mask {
  position: fixed;
  z-index: 9000;
  background: rgba(2, 8, 15, .72);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  pointer-events: auto;
}

.tutorial-onboarding-spotlight {
  position: fixed;
  z-index: 9001;
  border: 2px solid #49c8ff;
  border-radius: 12px;
  box-shadow: 0 0 0 5px rgba(47, 171, 255, .18), 0 0 32px rgba(40, 182, 255, .85);
  pointer-events: none;
  transition: inset .18s ease, width .18s ease, height .18s ease;
}

.tutorial-onboarding-callout {
  position: fixed;
  z-index: 9002;
  width: min(360px, calc(100vw - 28px));
  padding: 22px 22px 18px;
  border: 1px solid rgba(86, 195, 255, .72);
  border-radius: 12px;
  background: linear-gradient(145deg, #11263b, #0b1725 70%);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .55), inset 0 0 28px rgba(40, 154, 231, .08);
  color: #eff8ff;
  pointer-events: auto;
}

.tutorial-onboarding-callout::before {
  content: "";
  position: absolute;
  top: var(--tutorial-arrow-top, 28px);
  left: -9px;
  width: 16px;
  height: 16px;
  border-left: 1px solid rgba(86, 195, 255, .72);
  border-bottom: 1px solid rgba(86, 195, 255, .72);
  background: #102338;
  transform: rotate(45deg);
}

.tutorial-onboarding-callout[data-side="left"]::before {
  right: -9px;
  left: auto;
  border: 0;
  border-top: 1px solid rgba(86, 195, 255, .72);
  border-right: 1px solid rgba(86, 195, 255, .72);
}

.tutorial-onboarding-kicker {
  color: #52cfff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}

.tutorial-onboarding-callout h2 { margin: 8px 30px 8px 0; font-size: 20px; }
.tutorial-onboarding-callout p { margin: 0; color: #b9cad8; font-size: 13px; line-height: 1.7; }
.tutorial-onboarding-callout > div { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

.tutorial-onboarding-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 1px solid #3c5b72;
  border-radius: 50%;
  background: #13283a;
  color: #d5e8f5;
  font-size: 20px;
  cursor: pointer;
}

.tutorial-onboarding-later,
.tutorial-onboarding-watch {
  min-width: 98px;
  height: 38px;
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
}

.tutorial-onboarding-later { border: 1px solid #425d72; background: #152434; color: #c2d2de; }
.tutorial-onboarding-watch { border: 1px solid #4fc5ff; background: linear-gradient(135deg, #168cdc, #3069e8); color: #fff; }

@media (max-width: 1500px) and (min-width: 768px) {
  .vip-daily-outcome { gap: 11px; padding-inline: 12px; font-size: 12px; }
}

@media (max-width: 1280px) and (min-width: 768px) {
  .vip-daily-outcome { gap: 8px; }
}

@media (max-width: 767px) {
  .vip-daily-outcome { display: none !important; }
  .tutorial-onboarding-callout {
    width: calc(100vw - 28px);
    padding: 20px 18px 17px;
  }
  .tutorial-onboarding-callout::before { display: none; }
  .tutorial-onboarding-callout h2 { font-size: 18px; }
}

/* Tutorial v2: desktop-first product orientation and factor walkthrough. */
.screener-guide-v2 {
  width: min(1520px, calc(100vw - 34px));
  height: min(920px, calc(100vh - 34px));
  max-height: none;
  overflow: hidden;
  background: #09111a;
}

.screener-guide-v2 .guide-v2-head {
  height: 72px;
  padding: 0 24px;
  background: #101925;
}

.screener-guide-v2 .guide-v2-head h2 { font-size: 22px; }
.screener-guide-v2 .guide-v2-head p { font-size: 14px; }

.screener-guide-v2 .guide-dialog-close {
  width: 92px;
  min-width: 92px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 6px;
  font-size: 22px;
}

.screener-guide-v2 .guide-dialog-close strong {
  font-size: 15px;
  font-weight: 800;
}

.guide-mode-stage {
  height: calc(100% - 72px);
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #09111a;
}

.guide-mode-switcher {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(300px, .92fr) minmax(470px, 1.52fr);
  gap: 14px;
  padding: 26px 22px 16px;
  background: #09111a;
}

.guide-mode-tab {
  min-width: 0;
  min-height: 86px;
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 13px 20px;
  border: 1px solid #34495d;
  border-radius: 4px;
  background: linear-gradient(135deg, #101a26, #131d29);
  color: #e7eef5;
  text-align: left;
  cursor: pointer;
}

.guide-mode-tab:hover,
.guide-mode-tab:focus-visible {
  border-color: #16bdd1;
  outline: 0;
}

.guide-mode-tab.is-active {
  border-color: #10c8db;
  background: linear-gradient(135deg, #0a2732, #0d202c 68%, #102431);
  box-shadow: inset 0 0 0 1px rgba(16, 200, 219, .08);
}

.guide-mode-tab > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.guide-mode-tab strong {
  font-size: 18px;
  line-height: 1;
}

.guide-mode-tab small,
.guide-mode-tab em {
  color: #91a7ba;
  font-size: 14px;
  font-style: normal;
}

.guide-mode-tab.is-active small { color: #77c9da; }
.guide-mode-tab em { align-self: end; white-space: nowrap; }

.guide-mode-icon {
  width: 48px;
  height: 48px;
  position: relative;
  display: inline-block;
  color: #99a9b7;
}

.guide-mode-video-icon {
  border: 1px solid currentColor;
  border-radius: 50%;
}

.guide-mode-video-icon::after {
  content: "";
  position: absolute;
  top: 14px;
  left: 19px;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid currentColor;
}

.guide-mode-tab.is-active .guide-mode-video-icon { color: #13c6da; }

.guide-mode-article-icon {
  width: 38px;
  height: 45px;
  margin-left: 5px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.guide-mode-article-icon::before,
.guide-mode-article-icon::after {
  content: "";
  position: absolute;
  left: 9px;
  width: 17px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 7px 0 currentColor;
}

.guide-mode-article-icon::before { top: 13px; }
.guide-mode-article-icon::after { top: 27px; box-shadow: none; }

.guide-mode-pane[hidden] { display: none !important; }

.guide-video-pane {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 16px 22px 26px;
  background: #09111a;
}

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

.guide-video-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #35495c;
  border-radius: 12px;
  background: linear-gradient(145deg, #101b28, #0b141e);
  box-shadow: 0 18px 36px rgba(0, 0, 0, .18);
}

.guide-video-cover {
  aspect-ratio: 16 / 8.7;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #32475a;
  background: #080d12;
}

.guide-video-cover > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.guide-video-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .05), rgba(0, 0, 0, .22));
  pointer-events: none;
}

.guide-video-state {
  position: absolute;
  z-index: 2;
  top: 20px;
  left: 20px;
  padding: 7px 14px;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.guide-video-state.ready {
  color: #32e28a;
  background: rgba(7, 66, 39, .78);
}

.guide-video-state.pending {
  color: #ff8b2c;
  background: rgba(84, 41, 8, .82);
}

.guide-video-cover-play {
  width: 84px;
  height: 84px;
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(255, 255, 255, .9);
  border-radius: 50%;
  background: rgba(195, 40, 47, .84);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .36);
}

.guide-video-cover-play:hover,
.guide-video-cover-play:focus-visible {
  transform: translate(-50%, -50%) scale(1.06);
  background: #d22f38;
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.guide-video-cover-play span {
  display: block;
  width: 0;
  height: 0;
  margin-left: 26px;
  border-top: 17px solid transparent;
  border-bottom: 17px solid transparent;
  border-left: 27px solid #fff;
}

.guide-video-pending-cover > img {
  filter: grayscale(.35);
  opacity: .22;
}

.guide-video-pending-cover::after {
  background: linear-gradient(90deg, rgba(8, 13, 18, .58), rgba(8, 13, 18, .76));
}

.guide-video-card-copy {
  min-height: 142px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 20px 20px 18px;
}

.guide-video-card-copy > div { min-width: 0; }

.guide-video-card-copy h3 {
  margin: 0;
  color: #f2f6fa;
  font-size: 23px;
  line-height: 1.25;
}

.guide-video-card-copy p {
  margin: 11px 0 15px;
  color: #a9b8c5;
  font-size: 16px;
}

.guide-video-card-copy small {
  color: #c1ccd5;
  font-size: 14px;
}

.guide-video-play,
.guide-video-wait {
  min-width: 164px;
  height: 52px;
  padding: 0 24px;
  border-radius: 4px;
  font-size: 18px;
  font-weight: 900;
}

.guide-video-play {
  border: 1px solid #15d1df;
  background: linear-gradient(135deg, #087684, #0a5968);
  color: #fff;
  cursor: pointer;
}

.guide-video-play:hover,
.guide-video-play:focus-visible {
  background: #0a8797;
  outline: 2px solid rgba(21, 209, 223, .45);
  outline-offset: 2px;
}

.guide-video-wait {
  border: 1px solid #46515b;
  background: #242a30;
  color: #737c84;
}

.guide-video-more {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 46px 0 6px;
  color: #7f919f;
  font-size: 15px;
  text-align: center;
}

.guide-video-more::before,
.guide-video-more::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #334553;
}

.guide-video-more span { white-space: nowrap; }

.guide-video-pane.is-playing {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px 22px 22px;
}

.guide-video-pane.is-playing .guide-video-grid,
.guide-video-pane.is-playing .guide-video-more {
  display: none;
}

.guide-video-inline-player {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid #35495c;
  border-radius: 10px;
  background: #070c12;
}

.guide-video-inline-player[hidden] { display: none !important; }

.guide-video-player-head {
  min-height: 64px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid #314354;
  background: #101925;
}

.guide-video-player-head h3 {
  margin: 0;
  color: #f2f6fa;
  font-size: 18px;
}

.guide-video-player-head p {
  margin: 4px 0 0;
  color: #90a4b5;
  font-size: 13px;
}

.guide-video-back,
.guide-video-close {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.guide-video-back {
  border: 1px solid #26c6da;
  background: #0b303a;
  color: #dffbff;
}

.guide-video-close {
  min-width: 96px;
  border: 1px solid #596b7b;
  background: #202b36;
  color: #fff;
}

.guide-video-back:hover,
.guide-video-back:focus-visible,
.guide-video-close:hover,
.guide-video-close:focus-visible {
  border-color: #fff;
  outline: 2px solid rgba(38, 198, 218, .35);
  outline-offset: 2px;
}

.guide-video-player-frame {
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 10px 16px;
  background: #020406;
}

.guide-video-player-frame video {
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

.guide-video-player-hint {
  margin: 0;
  padding: 9px 16px 11px;
  color: #a9b8c5;
  font-size: 13px;
  text-align: center;
  background: #101925;
}

.guide-article-pane {
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.guide-article-pane .guide-v2-shell { height: 100%; }

html[data-theme="light"] .guide-mode-stage,
html[data-theme="light"] .guide-mode-switcher,
html[data-theme="light"] .guide-video-pane {
  background: #f2f6f9;
}

html[data-theme="light"] .guide-mode-tab,
html[data-theme="light"] .guide-video-card {
  border-color: #c7d3dc;
  background: #fff;
  color: #172331;
}

html[data-theme="light"] .guide-mode-tab.is-active {
  border-color: #079aac;
  background: #e9f8fa;
}

html[data-theme="light"] .guide-video-card-copy h3 { color: #172331; }
html[data-theme="light"] .guide-video-card-copy p { color: #5c6f7e; }
html[data-theme="light"] .guide-video-card-copy small { color: #526572; }

html[data-theme="light"] .guide-video-inline-player,
html[data-theme="light"] .guide-video-player-frame { background: #101820; }

html[data-theme="light"] .guide-video-player-head,
html[data-theme="light"] .guide-video-player-hint { background: #fff; }

html[data-theme="light"] .guide-video-player-head h3 { color: #172331; }

@media (max-width: 1100px) {
  .guide-mode-switcher { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-mode-tab { grid-template-columns: 48px minmax(0, 1fr); }
  .guide-mode-tab em { display: none; }
  .guide-video-card-copy { grid-template-columns: 1fr; }
  .guide-video-play,
  .guide-video-wait { width: 100%; }
}

.guide-v2-shell {
  height: calc(100% - 72px);
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  overflow: hidden;
}

.guide-v2-nav {
  min-width: 0;
  overflow-y: auto;
  padding: 20px 14px;
  border-right: 1px solid #263849;
  background: #0b141e;
}

.guide-v2-nav a {
  min-height: 68px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  margin-bottom: 7px;
  padding: 9px 10px;
  border-left: 2px solid transparent;
  color: #edf4fa;
  text-decoration: none;
}

.guide-v2-nav a:hover,
.guide-v2-nav a:focus-visible {
  border-left-color: #ef5b64;
  background: #16212d;
  outline: 0;
}

.guide-v2-nav a b {
  grid-row: 1 / 3;
  color: #ff6871;
  font-size: 13px;
}

.guide-v2-nav a span {
  font-size: 15px;
  font-weight: 900;
}

.guide-v2-nav a small {
  color: #8499ac;
  font-size: 12px;
}

.guide-v2-nav-boundary {
  margin-top: 22px;
  padding: 13px 12px;
  border-top: 2px solid #c64750;
  background: #1b171d;
}

.guide-v2-nav-boundary strong {
  color: #ff7a82;
  font-size: 14px;
}

.guide-v2-nav-boundary p {
  margin: 7px 0 0;
  color: #b8c4cf;
  font-size: 12px;
  line-height: 1.65;
}

.guide-v2-content {
  min-width: 0;
  overflow-y: auto;
  scroll-behavior: smooth;
  padding: 0 28px 42px;
  background: #09111a;
}

.guide-v2-content section { scroll-margin-top: 18px; }

.guide-v2-hero {
  min-height: 430px;
  position: relative;
  margin: 0 -28px;
  overflow: hidden;
  border-bottom: 1px solid #2b3d4d;
  background: #111318;
}

.guide-v2-hero > img {
  width: 100%;
  height: 430px;
  display: block;
  object-fit: cover;
  object-position: center;
}

.guide-v2-hero-copy {
  width: min(560px, 43%);
  position: absolute;
  left: 38px;
  top: 50%;
  transform: translateY(-50%);
  color: #f7fafc;
  text-shadow: 0 2px 12px #000;
}

.guide-v2-hero-copy > span,
.guide-v2-title > span,
.guide-v2-case-intro > span {
  color: #ff727a;
  font-size: 13px;
  font-weight: 900;
}

.guide-v2-hero-copy h3 {
  margin: 12px 0 14px;
  font-size: 32px;
  line-height: 1.28;
}

.guide-v2-hero-copy p {
  max-width: 520px;
  margin: 0;
  color: #d4dee6;
  font-size: 16px;
  line-height: 1.75;
}

.guide-v2-hero-copy > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.guide-v2-hero-copy > div b {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid #794047;
  background: #24171d;
  color: #ffb0b5;
  font-size: 12px;
}

.guide-v2-chapter {
  padding: 34px 0 36px;
  border-bottom: 1px solid #263849;
}

.guide-v2-title {
  max-width: 990px;
  margin-bottom: 22px;
}

.guide-v2-title h3 {
  margin: 7px 0 8px;
  color: #f2f6fa;
  font-size: 25px;
  line-height: 1.35;
}

.guide-v2-title p {
  margin: 0;
  color: #9fb0bf;
  font-size: 15px;
  line-height: 1.7;
}

.guide-v2-pain-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr) 18px) minmax(150px, 1fr);
  align-items: stretch;
}

.guide-v2-pain-flow > div {
  min-width: 0;
  padding: 15px 13px;
  border-top: 2px solid #456076;
  background: #101a25;
}

.guide-v2-pain-flow > div b {
  color: #ff6871;
  font-size: 12px;
}

.guide-v2-pain-flow > div strong,
.guide-v2-pain-flow > div span {
  display: block;
}

.guide-v2-pain-flow > div strong {
  margin: 5px 0 7px;
  color: #f0f5f9;
  font-size: 15px;
}

.guide-v2-pain-flow > div span {
  color: #9eafbd;
  font-size: 13px;
  line-height: 1.6;
}

.guide-v2-pain-flow > i,
.guide-v2-equation > i,
.guide-v2-import-flow > i {
  display: grid;
  place-items: center;
  color: #536c81;
  font-style: normal;
  font-weight: 900;
}

.guide-v2-pain-summary {
  display: grid;
  grid-template-columns: minmax(310px, .8fr) minmax(0, 1.2fr);
  gap: 24px;
  margin-top: 14px;
  padding: 17px 18px;
  border-left: 3px solid #d04c55;
  background: #17171e;
}

.guide-v2-pain-summary strong {
  color: #fff;
  font-size: 16px;
  line-height: 1.55;
}

.guide-v2-pain-summary p {
  margin: 0;
  color: #aebbc6;
  font-size: 14px;
  line-height: 1.7;
}

.guide-v2-equation {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr) 24px) minmax(130px, 1fr);
  align-items: stretch;
  margin-top: 24px;
}

.guide-v2-equation > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 13px;
  border: 1px solid #2b4052;
  background: #0f1a24;
}

.guide-v2-equation > div.result {
  border-color: #9e424a;
  background: #2b1a20;
}

.guide-v2-equation span { color: #869bad; font-size: 12px; }
.guide-v2-equation b { margin-top: 5px; color: #f2f6fa; font-size: 14px; }

.guide-v2-scenarios {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 24px;
  border: 1px solid #2a3d4d;
  background: #2a3d4d;
}

.guide-v2-scenarios article {
  min-height: 116px;
  padding: 16px;
  background: #0e1822;
}

.guide-v2-scenarios strong { color: #eef4f8; font-size: 15px; }
.guide-v2-scenarios p { margin: 8px 0 0; color: #91a4b4; font-size: 13px; line-height: 1.65; }

.guide-v2-basic-case {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 24px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #263849;
}

.guide-v2-case-intro h4 {
  margin: 8px 0;
  color: #f3f7fa;
  font-size: 20px;
  line-height: 1.5;
}

.guide-v2-case-intro p { margin: 0; color: #95a8b7; font-size: 13px; line-height: 1.65; }

.guide-v2-rule-table {
  min-width: 0;
  border-top: 1px solid #334a5e;
}

.guide-v2-rule-table > div {
  min-height: 43px;
  display: grid;
  grid-template-columns: 80px minmax(160px, 1fr) minmax(130px, .8fr) minmax(160px, 1fr);
  align-items: center;
  border-bottom: 1px solid #253746;
}

.guide-v2-rule-table > div > * { padding: 0 10px; }
.guide-v2-rule-table .head { min-height: 34px; color: #738b9f; font-size: 12px; }
.guide-v2-rule-table b { color: #ff9ca2; font-size: 12px; }
.guide-v2-rule-table strong { color: #f0f5f8; font-size: 14px; }
.guide-v2-rule-table em { color: #ffd06a; font-size: 13px; font-style: normal; }
.guide-v2-rule-table span { color: #95a7b5; font-size: 13px; }
.guide-v2-rule-table .sort { background: #101c26; }

.guide-v2-six-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.guide-v2-six-steps > div {
  min-height: 112px;
  padding: 14px;
  border-top: 2px solid #425f76;
  background: #101a25;
}

.guide-v2-six-steps b,
.guide-v2-six-steps strong,
.guide-v2-six-steps span { display: block; }
.guide-v2-six-steps b { color: #ff6972; font-size: 12px; }
.guide-v2-six-steps strong { margin: 6px 0; color: #f2f6f9; font-size: 15px; }
.guide-v2-six-steps span { color: #91a4b3; font-size: 12px; line-height: 1.55; }

.guide-v2-trade-boundary {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 15px;
  align-items: center;
  margin-top: 22px;
  padding: 18px;
  border: 1px solid #a9414a;
  background: #28191f;
}

.guide-v2-boundary-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid #d6555e;
  color: #ff7a82;
  font-size: 24px;
  font-weight: 900;
}

.guide-v2-trade-boundary strong { color: #fff; font-size: 16px; }
.guide-v2-trade-boundary p { margin: 7px 0 0; color: #d0bfc3; font-size: 14px; line-height: 1.7; }

.guide-v2-quick-layout {
  display: grid;
  grid-template-columns: minmax(340px, .75fr) minmax(0, 1.25fr);
  gap: 26px;
  align-items: stretch;
}

.guide-v2-quick-copy {
  padding: 20px;
  border-left: 3px solid #d04c55;
  background: #151820;
}

.guide-v2-quick-copy > strong { color: #fff; font-size: 21px; }
.guide-v2-quick-copy > p { margin: 9px 0 16px; color: #a3b3bf; font-size: 14px; line-height: 1.7; }

.guide-v2-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: #2a3d4c;
}

.guide-v2-metrics span {
  min-height: 64px;
  padding: 11px;
  background: #0d1721;
  color: #8fa4b4;
  font-size: 12px;
  line-height: 1.5;
}

.guide-v2-metrics b { display: block; color: #eff4f8; font-size: 13px; }

.guide-v2-import-flow {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(100px, 1fr) 22px) minmax(100px, 1fr);
  align-items: stretch;
}

.guide-v2-import-flow > div {
  min-width: 0;
  display: grid;
  place-content: center;
  padding: 15px 10px;
  border-top: 2px solid #416078;
  background: #0f1a24;
  text-align: center;
}

.guide-v2-import-flow b { color: #ff6871; font-size: 18px; }
.guide-v2-import-flow span { margin-top: 7px; color: #e7eef4; font-size: 13px; font-weight: 800; }

.guide-v2-after-import {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 22px;
  background: #2a3d4c;
}

.guide-v2-after-import > div { min-height: 90px; padding: 16px; background: #0f1923; }
.guide-v2-after-import strong,
.guide-v2-after-import span { display: block; }
.guide-v2-after-import strong { color: #f0f5f8; font-size: 14px; }
.guide-v2-after-import span { margin-top: 6px; color: #92a5b4; font-size: 13px; line-height: 1.6; }

.guide-v2-notice {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding: 14px 16px;
  border-left: 3px solid #e0a341;
  background: #201c16;
}

.guide-v2-notice strong { flex: 0 0 auto; color: #ffd06a; font-size: 14px; }
.guide-v2-notice span { color: #c2b7a2; font-size: 13px; line-height: 1.6; }

.guide-v2-section-action {
  width: max-content;
  min-width: 150px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 0 14px;
  border: 1px solid #a9434c;
  background: #351d23;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.guide-v2-section-action:hover,
.guide-v2-section-action:focus-visible {
  background: #482129;
  outline: 1px solid #ff7a82;
  outline-offset: 2px;
}

.guide-v2-factor-visual {
  margin: 0;
  background: #060a0f;
}

.guide-v2-factor-visual img {
  width: 100%;
  height: 330px;
  display: block;
  object-fit: cover;
}

.guide-v2-factor-visual figcaption {
  padding: 9px 12px;
  border-top: 1px solid #273a4a;
  color: #7f94a6;
  font-size: 12px;
}

.guide-v2-factor-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.guide-v2-factor-groups span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid #324a5e;
  background: #0e1923;
  color: #b6c6d2;
  font-size: 12px;
}

.guide-v2-mini-examples {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.guide-v2-mini-examples article {
  min-height: 164px;
  padding: 17px;
  border-top: 2px solid #a3424a;
  background: #111a24;
}

.guide-v2-mini-examples article > span { color: #ff737b; font-size: 12px; font-weight: 900; }
.guide-v2-mini-examples h4 { margin: 7px 0 9px; color: #f3f7fa; font-size: 17px; }
.guide-v2-mini-examples p { margin: 0; color: #9babb8; font-size: 13px; line-height: 1.7; }
.guide-v2-mini-examples b { display: block; margin-top: 12px; color: #ffd06a; font-size: 12px; }

.guide-v2-example-20 { padding-bottom: 38px; }

.guide-v2-factor-matrix {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.guide-v2-factor-matrix > section {
  min-width: 0;
  border: 1px solid #2b4052;
  background: #0e1822;
}

.guide-v2-factor-matrix header {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 13px;
  border-bottom: 1px solid #334a5d;
  background: #14202b;
}

.guide-v2-factor-matrix header b { color: #f2f6fa; font-size: 14px; }
.guide-v2-factor-matrix header span { color: #ff7a82; font-size: 12px; }

.guide-v2-factor-matrix section > div {
  min-height: 44px;
  display: grid;
  grid-template-columns: 29px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 0 11px;
  border-bottom: 1px solid #233543;
}

.guide-v2-factor-matrix section > div:last-child { border-bottom: 0; }
.guide-v2-factor-matrix em { color: #70879a; font-size: 11px; font-style: normal; }
.guide-v2-factor-matrix strong { overflow: hidden; color: #eaf1f6; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.guide-v2-factor-matrix section > div span { color: #ffd06a; font-size: 12px; white-space: nowrap; }

.guide-v2-sort-plan {
  display: grid;
  grid-template-columns: 150px repeat(3, minmax(0, 1fr));
  align-items: stretch;
  margin-top: 18px;
  border: 1px solid #30475a;
}

.guide-v2-sort-plan > span {
  display: grid;
  place-items: center;
  background: #151f29;
  color: #ff8b92;
  font-size: 13px;
  font-weight: 900;
}

.guide-v2-sort-plan > div {
  min-height: 66px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  padding: 10px 13px;
  border-left: 1px solid #30475a;
  background: #0e1822;
}

.guide-v2-sort-plan b { color: #7f95a7; font-size: 11px; }
.guide-v2-sort-plan strong { grid-column: 1 / 3; color: #edf4f8; font-size: 13px; }
.guide-v2-sort-plan em { color: #ffd06a; font-size: 12px; font-style: normal; }

.guide-v2-example-reading {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 16px;
  background: #2a3e4e;
}

.guide-v2-example-reading > div { min-height: 104px; padding: 15px; background: #101a24; }
.guide-v2-example-reading strong,
.guide-v2-example-reading span { display: block; }
.guide-v2-example-reading strong { color: #f1f5f8; font-size: 14px; }
.guide-v2-example-reading span { margin-top: 7px; color: #91a4b4; font-size: 13px; line-height: 1.65; }

.guide-v2-final {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 0;
}

.guide-v2-final span,
.guide-v2-final strong,
.guide-v2-final p { display: block; }
.guide-v2-final span { color: #ff757d; font-size: 12px; font-weight: 900; }
.guide-v2-final strong { margin-top: 6px; color: #f4f7fa; font-size: 17px; }
.guide-v2-final p { margin: 7px 0 0; color: #93a6b6; font-size: 13px; }
.guide-v2-final button { width: 128px; height: 40px; flex: 0 0 128px; border: 1px solid #a8434b; background: #351d23; color: #fff; font-size: 14px; font-weight: 800; cursor: pointer; }
.guide-v2-final button:hover { background: #482129; }

@media (max-width: 1280px) {
  .screener-guide-v2 { width: calc(100vw - 20px); height: calc(100vh - 20px); }
  .guide-v2-shell { grid-template-columns: 196px minmax(0, 1fr); }
  .guide-v2-content { padding-right: 20px; padding-left: 20px; }
  .guide-v2-hero { margin-right: -20px; margin-left: -20px; }
  .guide-v2-hero-copy { left: 28px; }
  .guide-v2-pain-flow { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
  .guide-v2-pain-flow > i { display: none; }
  .guide-v2-equation { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
  .guide-v2-equation > i { display: none; }
  .guide-v2-six-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .guide-v2-quick-layout { grid-template-columns: 1fr; }
  .guide-v2-factor-matrix { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-v2-sort-plan { grid-template-columns: 130px repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .guide-v2-shell { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .guide-v2-nav { display: flex; gap: 4px; overflow-x: auto; padding: 8px 10px; border-right: 0; border-bottom: 1px solid #263849; }
  .guide-v2-nav a { min-width: 130px; min-height: 48px; margin: 0; }
  .guide-v2-nav a small,
  .guide-v2-nav-boundary { display: none; }
  .guide-v2-hero-copy { width: 58%; }
  .guide-v2-hero-copy h3 { font-size: 27px; }
  .guide-v2-pain-flow,
  .guide-v2-scenarios,
  .guide-v2-factor-matrix { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-v2-basic-case,
  .guide-v2-pain-summary { grid-template-columns: 1fr; }
  .guide-v2-mini-examples,
  .guide-v2-after-import,
  .guide-v2-example-reading { grid-template-columns: 1fr; }
  .guide-v2-import-flow { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
  .guide-v2-import-flow > i { display: none; }
  .guide-v2-sort-plan { grid-template-columns: 1fr; }
  .guide-v2-sort-plan > span { min-height: 38px; }
  .guide-v2-sort-plan > div { border-top: 1px solid #30475a; border-left: 0; }
}

/* Screenshot-led practical tutorial. Real product captures stay readable at 100% zoom. */
.guide-v2-real-hero {
  min-height: 330px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(360px, .55fr);
  align-items: stretch;
  background: #0b121a;
}

.guide-v2-real-hero .guide-v2-hero-copy {
  position: static;
  width: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px;
  background: #111b26;
}

.guide-v2-real-hero .guide-v2-hero-copy p b { color: #ff8d94; }

.guide-shot-open {
  position: relative;
  min-width: 0;
  display: block;
  padding: 0;
  overflow: hidden;
  border: 1px solid #314658;
  border-radius: 6px;
  background: #080d13;
  color: #fff;
  cursor: zoom-in;
}

.guide-shot-open:hover,
.guide-shot-open:focus-visible {
  border-color: #ff666e;
  box-shadow: 0 0 0 2px rgba(255, 85, 93, .18);
  outline: 0;
}

.guide-shot-open img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  background: #080d13;
}

.guide-shot-open > span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 6px 9px;
  border: 1px solid #526b7f;
  border-radius: 4px;
  background: rgba(5, 10, 16, .9);
  color: #eef5fa;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  pointer-events: none;
}

.guide-hero-shot {
  border: 0;
  border-radius: 0;
}

.guide-practice-head {
  margin-top: 28px;
  padding: 22px 0;
  border-top: 1px solid #304556;
  border-bottom: 1px solid #304556;
}

.guide-practice-head span,
.guide-practice-copy > span {
  color: #ff7d85;
  font-size: 12px;
  font-weight: 900;
}

.guide-practice-head h4 {
  margin: 7px 0 0;
  color: #f3f7fa;
  font-size: 21px;
  line-height: 1.45;
}

.guide-practice-head p {
  max-width: 1050px;
  margin: 8px 0 0;
  color: #9db0be;
  font-size: 14px;
  line-height: 1.8;
}

.guide-practice-examples {
  margin-top: 28px;
  padding: 26px 0 4px;
  border-top: 1px solid #304556;
  border-bottom: 1px solid #304556;
}

.guide-practice-examples-title {
  max-width: 860px;
  margin-bottom: 4px;
}

.guide-practice-examples-title > span {
  color: #ff7d85;
  font-size: 12px;
  font-weight: 900;
}

.guide-practice-examples-title h4 {
  margin: 7px 0 0;
  color: #f3f7fa;
  font-size: 21px;
  line-height: 1.45;
}

.guide-practice-examples-title p {
  margin: 8px 0 0;
  color: #9db0be;
  font-size: 14px;
  line-height: 1.8;
}

.guide-practice-example {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(330px, .72fr);
  gap: 42px;
  align-items: center;
  padding: 28px 0;
  border-top: 1px solid #263a4a;
}

.guide-practice-example:first-of-type {
  margin-top: 22px;
}

.guide-practice-example-reverse {
  grid-template-columns: minmax(330px, .72fr) minmax(0, 1.28fr);
}

.guide-practice-example-reverse .guide-practice-copy {
  grid-column: 1;
  grid-row: 1;
}

.guide-practice-example-reverse .guide-practice-shot {
  grid-column: 2;
}

.guide-practice-shot {
  width: 100%;
  min-height: 0;
  max-height: none;
}

.guide-practice-shot img {
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: contain;
}

.guide-practice-example .guide-practice-copy {
  position: relative;
  min-width: 0;
  padding: 18px;
  border: 1px solid #30495c;
  background: #101d28;
}

.guide-practice-example .guide-practice-copy::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -31px;
  width: 24px;
  height: 1px;
  background: #ff6872;
}

.guide-practice-example .guide-practice-copy::after {
  content: "";
  position: absolute;
  top: calc(50% - 4px);
  left: -35px;
  border-top: 4px solid transparent;
  border-right: 7px solid #ff6872;
  border-bottom: 4px solid transparent;
}

.guide-practice-example-reverse .guide-practice-copy::before {
  right: -31px;
  left: auto;
}

.guide-practice-example-reverse .guide-practice-copy::after {
  right: -35px;
  left: auto;
  border-right: 0;
  border-left: 7px solid #ff6872;
}

.guide-practice-example .guide-practice-copy > span {
  color: #ff7d85;
  font-size: 12px;
  font-weight: 900;
}

.guide-practice-example .guide-practice-copy h5 {
  margin: 7px 0 0;
  color: #f3f7fa;
  font-size: 18px;
  line-height: 1.45;
}

.guide-practice-example .guide-practice-copy > p {
  margin: 8px 0 14px;
  color: #9fb1bf;
  font-size: 13px;
  line-height: 1.7;
}

.guide-practice-example .guide-practice-copy dl > div {
  grid-template-columns: 84px minmax(0, 1fr);
}

.guide-practice-example .guide-practice-copy dd b {
  color: #f3f7fa;
  font-weight: 800;
}

.guide-practice-flow { display: block; }

.guide-practice-step {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, .65fr);
  gap: 28px;
  align-items: center;
  padding: 30px 0;
  border-bottom: 1px solid #263a4a;
}

.guide-practice-step.reverse {
  grid-template-columns: minmax(330px, .65fr) minmax(0, 1.35fr);
}

.guide-practice-step.reverse .guide-shot-open { grid-column: 2; }
.guide-practice-step.reverse .guide-practice-copy { grid-column: 1; grid-row: 1; }
.guide-practice-step.compact-media { grid-template-columns: minmax(420px, .85fr) minmax(380px, 1.15fr); }
.guide-practice-step.wide-media { grid-template-columns: minmax(360px, .55fr) minmax(0, 1.45fr); }
.guide-practice-step.wide-media:not(.reverse) { grid-template-columns: minmax(0, 1.45fr) minmax(360px, .55fr); }

.guide-practice-step .guide-shot-open { min-height: 260px; max-height: 560px; }
.guide-practice-step.compact-media .guide-shot-open { min-height: 190px; max-height: 380px; }
.guide-practice-step.wide-media .guide-shot-open { min-height: 240px; max-height: 460px; }

.guide-practice-copy h4 {
  margin: 7px 0 16px;
  color: #f2f6f9;
  font-size: 19px;
  line-height: 1.5;
}

.guide-practice-copy dl { margin: 0; }

.guide-practice-copy dl > div {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 10px;
  padding: 11px 0;
  border-top: 1px solid #2b3f4f;
}

.guide-practice-copy dt {
  color: #ffbd61;
  font-size: 13px;
  font-weight: 900;
}

.guide-practice-copy dd {
  margin: 0;
  color: #a6b6c2;
  font-size: 14px;
  line-height: 1.7;
}

.guide-quick-shot {
  margin-top: 22px;
  padding-top: 24px;
  border-top: 1px solid #2b4050;
}

.guide-image-dialog {
  width: min(96vw, 1840px);
  height: min(94vh, 1040px);
  padding: 0;
  overflow: hidden;
}

.guide-image-head { min-height: 68px; }

.guide-image-stage {
  height: calc(100% - 68px);
  overflow: auto;
  padding: 18px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    #080d13;
  background-size: 24px 24px;
}

.guide-image-stage img {
  width: auto;
  max-width: none;
  height: auto;
  min-width: min(100%, 560px);
  display: block;
  margin: 0 auto;
  border: 1px solid #30475a;
  background: #080d13;
}

html[data-theme="light"] .guide-v2-real-hero,
html[data-theme="light"] .guide-shot-open,
html[data-theme="light"] .guide-shot-open img,
html[data-theme="light"] .guide-image-stage img {
  background: #0b1118;
}

html[data-theme="light"] .guide-v2-real-hero .guide-v2-hero-copy {
  background: #f5f8fb;
}

html[data-theme="light"] .guide-practice-head h4,
html[data-theme="light"] .guide-practice-copy h4 {
  color: #172331;
}

html[data-theme="light"] .guide-practice-head p,
html[data-theme="light"] .guide-practice-copy dd {
  color: #516477;
}

html[data-theme="light"] .guide-practice-head,
html[data-theme="light"] .guide-practice-step,
html[data-theme="light"] .guide-practice-copy dl > div {
  border-color: #cfd9e2;
}

html[data-theme="light"] .guide-image-stage {
  background:
    linear-gradient(90deg, rgba(43,63,79,.05) 1px, transparent 1px),
    linear-gradient(rgba(43,63,79,.05) 1px, transparent 1px),
    #eef3f7;
  background-size: 24px 24px;
}

html[data-theme="light"] .screener-guide-v2,
html[data-theme="light"] .guide-v2-content {
  background: #f5f8fb;
  color: #172331;
}

html[data-theme="light"] .screener-guide-v2 .guide-v2-head {
  border-bottom-color: #cfd9e2;
  background: #fff;
}

html[data-theme="light"] .screener-guide-v2 .guide-v2-head h2,
html[data-theme="light"] .guide-v2-title h3,
html[data-theme="light"] .guide-v2-case-intro h4,
html[data-theme="light"] .guide-v2-final strong {
  color: #172331;
}

html[data-theme="light"] .screener-guide-v2 .guide-v2-head p,
html[data-theme="light"] .guide-v2-title p,
html[data-theme="light"] .guide-v2-case-intro p,
html[data-theme="light"] .guide-v2-final p {
  color: #5a6d7d;
}

html[data-theme="light"] .guide-v2-nav {
  border-color: #cfd9e2;
  background: #edf3f7;
}

html[data-theme="light"] .guide-v2-nav a { color: #1a2a37; }
html[data-theme="light"] .guide-v2-nav a small { color: #687d8e; }
html[data-theme="light"] .guide-v2-nav a:hover,
html[data-theme="light"] .guide-v2-nav a:focus-visible { background: #fff; }

html[data-theme="light"] .guide-v2-nav-boundary {
  background: #fff2f3;
}

html[data-theme="light"] .guide-v2-nav-boundary p { color: #576b7a; }
html[data-theme="light"] .guide-v2-chapter,
html[data-theme="light"] .guide-v2-hero,
html[data-theme="light"] .guide-v2-basic-case,
html[data-theme="light"] .guide-practice-head,
html[data-theme="light"] .guide-practice-step,
html[data-theme="light"] .guide-quick-shot { border-color: #cfd9e2; }

html[data-theme="light"] .guide-v2-real-hero .guide-v2-hero-copy {
  color: #172331;
  text-shadow: none;
}

html[data-theme="light"] .guide-v2-real-hero .guide-v2-hero-copy h3 { color: #172331; }
html[data-theme="light"] .guide-v2-real-hero .guide-v2-hero-copy p { color: #516477; }
html[data-theme="light"] .guide-v2-real-hero .guide-v2-hero-copy > div b {
  border-color: #db9ba0;
  background: #fff0f1;
  color: #8b2730;
}

html[data-theme="light"] .guide-v2-pain-flow > div,
html[data-theme="light"] .guide-v2-equation > div,
html[data-theme="light"] .guide-v2-scenarios article,
html[data-theme="light"] .guide-v2-six-steps > div,
html[data-theme="light"] .guide-v2-quick-copy,
html[data-theme="light"] .guide-v2-import-flow > div,
html[data-theme="light"] .guide-v2-after-import > div,
html[data-theme="light"] .guide-v2-mini-examples article,
html[data-theme="light"] .guide-v2-factor-matrix > section,
html[data-theme="light"] .guide-v2-sort-plan > div,
html[data-theme="light"] .guide-v2-example-reading > div {
  background: #fff;
}

html[data-theme="light"] .guide-v2-pain-flow > div strong,
html[data-theme="light"] .guide-v2-equation b,
html[data-theme="light"] .guide-v2-scenarios strong,
html[data-theme="light"] .guide-v2-six-steps strong,
html[data-theme="light"] .guide-v2-quick-copy > strong,
html[data-theme="light"] .guide-v2-metrics b,
html[data-theme="light"] .guide-v2-import-flow span,
html[data-theme="light"] .guide-v2-after-import strong,
html[data-theme="light"] .guide-v2-mini-examples h4,
html[data-theme="light"] .guide-v2-factor-matrix header b,
html[data-theme="light"] .guide-v2-factor-matrix strong,
html[data-theme="light"] .guide-v2-sort-plan strong,
html[data-theme="light"] .guide-v2-example-reading strong {
  color: #172331;
}

html[data-theme="light"] .guide-v2-pain-flow > div span,
html[data-theme="light"] .guide-v2-equation span,
html[data-theme="light"] .guide-v2-scenarios p,
html[data-theme="light"] .guide-v2-six-steps span,
html[data-theme="light"] .guide-v2-quick-copy > p,
html[data-theme="light"] .guide-v2-after-import span,
html[data-theme="light"] .guide-v2-mini-examples p,
html[data-theme="light"] .guide-v2-example-reading span {
  color: #5a6d7d;
}

html[data-theme="light"] .guide-v2-pain-summary {
  background: #fff;
}

html[data-theme="light"] .guide-v2-pain-summary strong { color: #172331; }
html[data-theme="light"] .guide-v2-pain-summary p { color: #5a6d7d; }
html[data-theme="light"] .guide-v2-equation > div.result { background: #fff0f1; }

html[data-theme="light"] .guide-v2-scenarios,
html[data-theme="light"] .guide-v2-metrics,
html[data-theme="light"] .guide-v2-after-import,
html[data-theme="light"] .guide-v2-example-reading {
  border-color: #cfd9e2;
  background: #cfd9e2;
}

html[data-theme="light"] .guide-v2-metrics span {
  background: #f8fafc;
  color: #5a6d7d;
}

html[data-theme="light"] .guide-v2-notice {
  background: #fff8e9;
}

html[data-theme="light"] .guide-v2-notice span { color: #715f3e; }

html[data-theme="light"] .guide-v2-factor-groups span {
  border-color: #c3d0da;
  background: #fff;
  color: #344b5c;
}

html[data-theme="light"] .guide-v2-factor-matrix > section,
html[data-theme="light"] .guide-v2-factor-matrix header,
html[data-theme="light"] .guide-v2-factor-matrix section > div,
html[data-theme="light"] .guide-v2-sort-plan,
html[data-theme="light"] .guide-v2-sort-plan > div {
  border-color: #c8d4de;
}

html[data-theme="light"] .guide-v2-factor-matrix header,
html[data-theme="light"] .guide-v2-sort-plan > span {
  background: #e9f0f5;
}

html[data-theme="light"] .guide-v2-factor-matrix em,
html[data-theme="light"] .guide-v2-sort-plan b { color: #657b8d; }

html[data-theme="light"] .guide-v2-final button {
  border-color: #ad3b45;
  background: #fff0f1;
  color: #8b2730;
}

@media (max-width: 1280px) {
  .guide-v2-real-hero { grid-template-columns: minmax(0, 1.3fr) minmax(330px, .7fr); }
  .guide-practice-step,
  .guide-practice-step.reverse,
  .guide-practice-step.compact-media,
  .guide-practice-step.wide-media,
  .guide-practice-step.wide-media:not(.reverse) {
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
    gap: 22px;
  }
}

@media (max-width: 980px) {
  .guide-v2-real-hero,
  .guide-practice-step,
  .guide-practice-step.reverse,
  .guide-practice-step.compact-media,
  .guide-practice-step.wide-media,
  .guide-practice-step.wide-media:not(.reverse) {
    grid-template-columns: 1fr;
  }

  .guide-practice-step.reverse .guide-shot-open,
  .guide-practice-step.reverse .guide-practice-copy {
    grid-column: 1;
    grid-row: auto;
  }

  .guide-v2-real-hero .guide-v2-hero-copy { padding: 24px; }
  .guide-practice-step .guide-shot-open { max-height: 480px; }
}

/* The tutorial keeps screenshots clean. Explanations live outside the image and point back to it. */
.guide-practice-flow-rejected[hidden] {
  display: none !important;
}

.guide-platform-walkthrough {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid #2c4151;
}

.guide-platform-title {
  max-width: 860px;
}

.guide-platform-title > span {
  color: #ff6872;
  font-size: 12px;
  font-weight: 800;
}

.guide-platform-title h4 {
  margin: 8px 0 0;
  color: #f3f7fa;
  font-size: 22px;
  line-height: 1.35;
}

.guide-platform-title p {
  margin: 9px 0 0;
  color: #9db0bf;
  font-size: 13px;
  line-height: 1.75;
}

.guide-platform-demo {
  margin: 22px 0 0;
  padding: 18px;
  border: 1px solid #2d4354;
  background: #0d1721;
}

.guide-platform-demo-wide .guide-shot-open,
.guide-platform-demo .guide-shot-open,
.guide-rule-demo .guide-shot-open {
  width: 100%;
  min-height: 0;
  max-height: none;
}

.guide-platform-demo .guide-shot-open img,
.guide-rule-demo .guide-shot-open img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.guide-platform-demo .guide-shot-open > span,
.guide-rule-demo .guide-shot-open > span {
  display: none;
}

.guide-platform-demo-side {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(330px, .55fr);
  gap: 38px;
  align-items: center;
}

.guide-platform-demo-results {
  grid-template-columns: minmax(0, 1.55fr) minmax(330px, .45fr);
}

.guide-platform-demo-strategy {
  grid-template-columns: minmax(520px, .9fr) minmax(380px, 1.1fr);
}

.guide-callout-grid {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.guide-callout-grid-four {
  grid-template-columns:
    minmax(260px, 43fr)
    minmax(170px, 21fr)
    minmax(190px, 24fr)
    minmax(130px, 12fr);
}

.guide-callout-stack {
  display: grid;
  gap: 14px;
}

.guide-callout {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 15px 15px 14px 48px;
  border: 1px solid #30495c;
  background: #101d28;
}

.guide-callout b {
  position: absolute;
  top: 14px;
  left: 14px;
  color: #ff6872;
  font-size: 14px;
  font-weight: 900;
}

.guide-callout strong {
  display: block;
  color: #f3f7fa;
  font-size: 14px;
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: anywhere;
}

.guide-callout span {
  display: block;
  margin-top: 6px;
  color: #9fb1bf;
  font-size: 13px;
  line-height: 1.65;
  white-space: normal;
  overflow-wrap: anywhere;
}

.guide-callout-grid .guide-callout::before {
  content: "";
  position: absolute;
  top: -22px;
  left: 50%;
  width: 1px;
  height: 17px;
  background: #ff6872;
}

.guide-callout-grid .guide-callout::after {
  content: "";
  position: absolute;
  top: -25px;
  left: calc(50% - 4px);
  border-right: 4px solid transparent;
  border-bottom: 7px solid #ff6872;
  border-left: 4px solid transparent;
}

.guide-callout-stack .guide-callout::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -32px;
  width: 25px;
  height: 1px;
  background: #ff6872;
}

.guide-callout-stack .guide-callout::after {
  content: "";
  position: absolute;
  top: calc(50% - 4px);
  left: -36px;
  border-top: 4px solid transparent;
  border-right: 7px solid #ff6872;
  border-bottom: 4px solid transparent;
}

.guide-platform-rule-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 22px;
}

.guide-rule-demo {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(330px, .55fr);
  gap: 38px;
  align-items: center;
  margin: 0;
  padding: 15px;
  border: 1px solid #2d4354;
  background: #0d1721;
}

.guide-rule-demo > .guide-callout {
  margin: 0;
}

.guide-rule-demo > .guide-callout::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -32px;
  width: 25px;
  height: 1px;
  background: #ff6872;
}

.guide-rule-demo > .guide-callout::after {
  content: "";
  position: absolute;
  top: calc(50% - 4px);
  left: -36px;
  border-top: 4px solid transparent;
  border-right: 7px solid #ff6872;
  border-bottom: 4px solid transparent;
}

.guide-platform-contrast {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  grid-column: 1 / -1;
  margin-top: 16px;
  padding: 13px 15px;
  border-left: 3px solid #ff626c;
  background: #121d27;
  color: #9fb1bf;
  font-size: 13px;
  line-height: 1.55;
}

.guide-platform-contrast b:first-child {
  color: #ff8b92;
}

.guide-platform-contrast b:nth-of-type(2) {
  color: #4bd4a8;
}

.guide-platform-contrast i {
  color: #ff6872;
  font-style: normal;
  font-weight: 900;
}

html[data-theme="light"] .guide-platform-walkthrough {
  border-color: #d2dce5;
}

html[data-theme="light"] .guide-platform-title h4,
html[data-theme="light"] .guide-callout strong,
html[data-theme="light"] .guide-practice-examples-title h4,
html[data-theme="light"] .guide-practice-example .guide-practice-copy h5 {
  color: #172331;
}

html[data-theme="light"] .guide-platform-title p,
html[data-theme="light"] .guide-callout span,
html[data-theme="light"] .guide-platform-contrast,
html[data-theme="light"] .guide-practice-examples-title p,
html[data-theme="light"] .guide-practice-example .guide-practice-copy > p {
  color: #586c7d;
}

html[data-theme="light"] .guide-platform-demo,
html[data-theme="light"] .guide-rule-demo,
html[data-theme="light"] .guide-callout,
html[data-theme="light"] .guide-practice-example .guide-practice-copy {
  border-color: #cad6df;
  background: #fff;
}

html[data-theme="light"] .guide-practice-examples {
  border-color: #d2dce5;
}

html[data-theme="light"] .guide-practice-example .guide-practice-copy dd b {
  color: #172331;
}

html[data-theme="light"] .guide-platform-contrast {
  background: #f3f7fa;
}

@media (max-width: 1280px) {
  .guide-platform-demo-side,
  .guide-platform-demo-results,
  .guide-platform-demo-strategy {
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
    gap: 30px;
  }
}

@media (max-width: 980px) {
  .guide-platform-demo-side,
  .guide-platform-demo-results,
  .guide-platform-demo-strategy,
  .guide-rule-demo,
  .guide-practice-example,
  .guide-practice-example-reverse {
    grid-template-columns: 1fr;
  }

  .guide-practice-example-reverse .guide-practice-copy,
  .guide-practice-example-reverse .guide-practice-shot {
    grid-column: 1;
    grid-row: auto;
  }

  .guide-practice-example .guide-practice-copy {
    margin-top: 28px;
  }

  .guide-practice-example .guide-practice-copy::before,
  .guide-practice-example-reverse .guide-practice-copy::before {
    top: -22px;
    right: auto;
    left: 50%;
    width: 1px;
    height: 17px;
  }

  .guide-practice-example .guide-practice-copy::after,
  .guide-practice-example-reverse .guide-practice-copy::after {
    top: -25px;
    right: auto;
    left: calc(50% - 4px);
    border-top: 0;
    border-right: 4px solid transparent;
    border-bottom: 7px solid #ff6872;
    border-left: 4px solid transparent;
  }

  .guide-callout-grid-four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-callout-stack {
    margin-top: 28px;
  }

  .guide-rule-demo > .guide-callout {
    margin-top: 28px;
  }

  .guide-callout-stack .guide-callout::before,
  .guide-rule-demo > .guide-callout::before {
    top: -22px;
    left: 50%;
    width: 1px;
    height: 17px;
  }

  .guide-callout-stack .guide-callout::after,
  .guide-rule-demo > .guide-callout::after {
    top: -25px;
    left: calc(50% - 4px);
    border-right: 4px solid transparent;
    border-bottom: 7px solid #ff6872;
    border-left: 4px solid transparent;
    border-top: 0;
  }
}

@media (max-width: 700px) {
  .guide-platform-demo,
  .guide-rule-demo {
    padding: 11px;
  }

  .guide-callout-grid-four,
  .guide-platform-contrast {
    grid-template-columns: 1fr;
  }

  .guide-platform-contrast i {
    transform: rotate(90deg);
    justify-self: start;
  }
}

/* Dark workstation visual. This is presentation-only; the screener DOM and logic stay shared. */
html[data-theme="dark"][data-theme-scope="screener"] {
  --bg: #050b11;
  --surface: #09131d;
  --surface-2: #0d1a25;
  --surface-3: #102331;
  --line: #173347;
  --line-soft: #112738;
  --text: #f2f6fb;
  --muted: #7f98ad;
  --muted-2: #526d82;
  --red: #ff4d54;
  --green: #00d9a0;
  --amber: #ffb21c;
  --cyan: #00d5dc;
  --blue: #55adff;
}

html[data-theme="dark"][data-theme-scope="screener"] body {
  background:
    radial-gradient(circle at 78% 11%, rgba(0, 117, 168, .09), transparent 31%),
    linear-gradient(180deg, #05090e 0, #050c12 100%);
}

html[data-theme="dark"][data-theme-scope="screener"] .app-shell {
  grid-template-rows: 68px 102px minmax(0, 1fr);
}

html[data-theme="dark"][data-theme-scope="screener"] .topbar {
  gap: 24px;
  padding: 0 14px;
  border-bottom-color: #112d40;
  background:
    linear-gradient(90deg, rgba(12, 22, 31, .98), rgba(4, 10, 16, .98) 52%, rgba(5, 19, 27, .98));
  box-shadow: 0 8px 26px rgba(0, 0, 0, .28);
}

html[data-theme="dark"][data-theme-scope="screener"] .brand {
  min-width: 210px;
}

html[data-theme="dark"][data-theme-scope="screener"] .brand-mark {
  border-color: #a32c33;
  background: linear-gradient(145deg, #2d1017, #110c12);
  box-shadow: inset 0 0 18px rgba(255, 77, 84, .08), 0 0 18px rgba(255, 77, 84, .08);
}

html[data-theme="dark"][data-theme-scope="screener"] .topnav a {
  color: #b7c4cf;
}

html[data-theme="dark"][data-theme-scope="screener"] .topnav a:hover {
  border-color: #263b4c;
  background: #0b1721;
  color: #fff;
}

html[data-theme="dark"][data-theme-scope="screener"] .topnav a.active {
  border-color: #c6383f;
  background: linear-gradient(180deg, #39141b, #180e14);
  box-shadow: inset 0 0 0 1px rgba(255, 77, 84, .12), 0 0 18px rgba(255, 77, 84, .1);
}

html[data-theme="dark"][data-theme-scope="screener"] .theme-switcher,
html[data-theme="dark"][data-theme-scope="screener"] .auth-actions button {
  border-color: #263a4b;
  background: #08121b;
}

html[data-theme="dark"][data-theme-scope="screener"] .theme-switcher button.active,
html[data-theme="dark"][data-theme-scope="screener"] .auth-actions .auth-register-btn {
  border-color: #a92e35;
  background: #48151c;
  box-shadow: 0 0 14px rgba(255, 77, 84, .16);
}

html[data-theme="dark"][data-theme-scope="screener"] .workbar {
  grid-template-columns: minmax(540px, 1.12fr) 188px 216px minmax(330px, .95fr) 214px;
  gap: 12px;
  padding: 12px 14px;
  border-bottom-color: #153247;
  background: linear-gradient(180deg, #07131c, #061019);
  box-shadow: inset 0 -1px rgba(0, 181, 211, .05);
}

html[data-theme="dark"][data-theme-scope="screener"] .snapshot-control {
  height: 76px;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
}

html[data-theme="dark"][data-theme-scope="screener"] .snapshot-control label {
  min-width: 210px;
  height: 76px;
  position: relative;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 8px 14px 8px 46px;
  border: 1px solid #24465c;
  border-radius: 5px;
  background: linear-gradient(135deg, #0a1b27, #08141e);
  box-shadow: inset 0 0 22px rgba(0, 136, 188, .05);
}

html[data-theme="dark"][data-theme-scope="screener"] .snapshot-control label::before {
  content: "◷";
  position: absolute;
  left: 14px;
  top: 23px;
  color: #7090a6;
  font-size: 25px;
  line-height: 1;
}

html[data-theme="dark"][data-theme-scope="screener"] .snapshot-control label:first-child::before {
  content: "▦";
}

html[data-theme="dark"][data-theme-scope="screener"] .snapshot-control select {
  width: 100%;
  min-width: 0;
  height: 30px;
  padding: 0 24px 0 0;
  border: 0;
  background: transparent;
  color: #f3f8fc;
  font-size: 17px;
  font-weight: 900;
}

html[data-theme="dark"][data-theme-scope="screener"] select {
  color-scheme: dark;
}

html[data-theme="dark"][data-theme-scope="screener"] select option {
  background: #f3f6f9;
  color: #142230;
}

html[data-theme="dark"][data-theme-scope="screener"] select option:disabled {
  color: #7b8792;
}

html[data-theme="dark"][data-theme-scope="screener"] .snapshot-control select:focus {
  outline: 1px solid #47738e;
  outline-offset: 3px;
}

html[data-theme="dark"][data-theme-scope="screener"] .time-boundary {
  min-width: 120px;
  color: #ffae16;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.65;
  white-space: normal;
}

html[data-theme="dark"][data-theme-scope="screener"] .official-entry,
html[data-theme="dark"][data-theme-scope="screener"] .data-state,
html[data-theme="dark"][data-theme-scope="screener"] .primary-btn {
  height: 76px;
  border-radius: 5px;
}

html[data-theme="dark"][data-theme-scope="screener"] .official-entry {
  grid-template-columns: 40px minmax(0, 1fr) 16px;
  gap: 11px;
  padding: 0 15px;
}

html[data-theme="dark"][data-theme-scope="screener"] .official-entry .entry-icon {
  width: 40px;
  height: 40px;
  font-size: 15px;
}

html[data-theme="dark"][data-theme-scope="screener"] .official-entry strong {
  font-size: 18px;
}

html[data-theme="dark"][data-theme-scope="screener"] .official-entry.free {
  border-color: #c23a41;
  background: linear-gradient(135deg, #41151c, #251017);
  box-shadow: inset 0 0 26px rgba(255, 77, 84, .07), 0 0 18px rgba(255, 77, 84, .06);
}

html[data-theme="dark"][data-theme-scope="screener"] .official-entry.vip {
  border-color: #9b6c14;
  background: linear-gradient(135deg, #33250b, #1c180e);
  box-shadow: inset 0 0 26px rgba(255, 178, 28, .08), 0 0 18px rgba(255, 178, 28, .06);
}

html[data-theme="dark"][data-theme-scope="screener"] .data-state {
  position: relative;
  padding: 0 22px;
  border-color: #08795f;
  background: linear-gradient(135deg, #00372f, #04261f);
  box-shadow: inset 0 0 28px rgba(0, 217, 160, .08), 0 0 20px rgba(0, 217, 160, .05);
}

html[data-theme="dark"][data-theme-scope="screener"] .data-state::after {
  content: "›";
  margin-left: 4px;
  color: #00d9a0;
  font-size: 24px;
}

html[data-theme="dark"][data-theme-scope="screener"] .data-state strong {
  font-size: 16px;
}

html[data-theme="dark"][data-theme-scope="screener"] .primary-btn {
  position: relative;
  border-color: #ff343b;
  background: linear-gradient(135deg, #e02229, #8d0d16);
  box-shadow: inset 0 0 24px rgba(255, 255, 255, .05), 0 0 22px rgba(255, 39, 47, .15);
  font-size: 21px;
}

html[data-theme="dark"][data-theme-scope="screener"] .primary-btn::after {
  content: "›";
  margin-left: 18px;
  font-size: 29px;
  vertical-align: -2px;
}

html[data-theme="dark"][data-theme-scope="screener"] .primary-btn:hover {
  background: linear-gradient(135deg, #f22e34, #a1101a);
  transform: translateY(-1px);
}

html[data-theme="dark"][data-theme-scope="screener"] .workspace {
  grid-template-columns: 500px minmax(0, 1fr);
}

html[data-theme="dark"][data-theme-scope="screener"] .rule-panel {
  border-right-color: #1d4259;
  background: #050c13;
  box-shadow: 14px 0 36px rgba(0, 0, 0, .16);
}

html[data-theme="dark"][data-theme-scope="screener"] .panel-section {
  margin: 0 12px 10px;
  padding: 14px;
  border: 1px solid #1d3a4e;
  border-radius: 5px;
  background: linear-gradient(145deg, #09151f, #07111a);
  box-shadow: inset 0 0 28px rgba(0, 125, 173, .025);
}

html[data-theme="dark"][data-theme-scope="screener"] .panel-section:first-child {
  margin-top: 10px;
}

html[data-theme="dark"][data-theme-scope="screener"] .strategy-section {
  border-color: #9e2630;
  box-shadow: inset 5px 0 0 #ff5961, inset 0 0 30px rgba(255, 77, 84, .09);
}

html[data-theme="dark"][data-theme-scope="screener"] .scope-section {
  border-color: #155d89;
  box-shadow: inset 5px 0 0 #55adff, inset 0 0 30px rgba(85, 173, 255, .06);
}

html[data-theme="dark"][data-theme-scope="screener"] .include-section {
  border-color: #087b84;
  box-shadow: inset 5px 0 0 #00d5dc, inset 0 0 32px rgba(0, 213, 220, .06);
}

html[data-theme="dark"][data-theme-scope="screener"] .exclude-section {
  border-color: #875022;
  box-shadow: inset 5px 0 0 #ff791f, inset 0 0 32px rgba(255, 121, 31, .05);
}

html[data-theme="dark"][data-theme-scope="screener"] .sort-section {
  border-color: #4545a0;
  box-shadow: inset 5px 0 0 #776cff, inset 0 0 32px rgba(119, 108, 255, .05);
}

html[data-theme="dark"][data-theme-scope="screener"] .strategy-heading,
html[data-theme="dark"][data-theme-scope="screener"] .section-heading {
  min-height: 33px;
}

html[data-theme="dark"][data-theme-scope="screener"] .strategy-heading h2,
html[data-theme="dark"][data-theme-scope="screener"] .section-heading h2 {
  position: relative;
  padding-left: 36px;
  color: #f4f8fc;
  font-size: 18px;
}

html[data-theme="dark"][data-theme-scope="screener"] .strategy-heading h2::before,
html[data-theme="dark"][data-theme-scope="screener"] .section-heading h2::before {
  content: "◆";
  position: absolute;
  left: 0;
  top: -3px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 4px;
  color: #ff6870;
  background: rgba(255, 77, 84, .08);
  font-size: 12px;
}

html[data-theme="dark"][data-theme-scope="screener"] .scope-section .section-heading h2::before {
  content: "▦";
  color: #55adff;
  background: rgba(85, 173, 255, .08);
}

html[data-theme="dark"][data-theme-scope="screener"] .include-section .section-heading h2::before {
  content: "+";
  color: #00d5dc;
  background: rgba(0, 213, 220, .08);
  font-size: 19px;
}

html[data-theme="dark"][data-theme-scope="screener"] .exclude-section .section-heading h2::before {
  content: "−";
  color: #ff791f;
  background: rgba(255, 121, 31, .08);
  font-size: 20px;
}

html[data-theme="dark"][data-theme-scope="screener"] .sort-section .section-heading h2::before {
  content: "⇅";
  color: #948bff;
  background: rgba(119, 108, 255, .09);
  font-size: 16px;
}

html[data-theme="dark"][data-theme-scope="screener"] select,
html[data-theme="dark"][data-theme-scope="screener"] input,
html[data-theme="dark"][data-theme-scope="screener"] textarea,
html[data-theme="dark"][data-theme-scope="screener"] .factor-picker-trigger {
  border-color: #29485e;
  background-color: #07131d;
  box-shadow: inset 0 0 10px rgba(0, 141, 192, .025);
}

html[data-theme="dark"][data-theme-scope="screener"] select:hover,
html[data-theme="dark"][data-theme-scope="screener"] input:hover,
html[data-theme="dark"][data-theme-scope="screener"] textarea:hover,
html[data-theme="dark"][data-theme-scope="screener"] .factor-picker-trigger:hover {
  border-color: #4f7e9b;
}

html[data-theme="dark"][data-theme-scope="screener"] select:focus,
html[data-theme="dark"][data-theme-scope="screener"] input:focus,
html[data-theme="dark"][data-theme-scope="screener"] textarea:focus,
html[data-theme="dark"][data-theme-scope="screener"] .factor-picker-trigger:focus-visible {
  border-color: #00b9c5;
  box-shadow: 0 0 0 2px rgba(0, 213, 220, .11);
}

html[data-theme="dark"][data-theme-scope="screener"] .factor-settings-btn {
  border-color: #1879ae;
  background: linear-gradient(180deg, #0b5590, #0a3152);
}

html[data-theme="dark"][data-theme-scope="screener"] .reset-settings-btn {
  border-color: #c3343c;
  background: linear-gradient(180deg, #9a2830, #501a20);
}

html[data-theme="dark"][data-theme-scope="screener"] .segmented {
  gap: 7px;
}

html[data-theme="dark"][data-theme-scope="screener"] .segmented button {
  border-color: #27465b;
  background: #07131d;
}

html[data-theme="dark"][data-theme-scope="screener"] .segmented button.active {
  border-color: #ff343b;
  background: linear-gradient(180deg, #e0272e, #8e121b);
  box-shadow: 0 0 16px rgba(255, 52, 59, .16);
}

html[data-theme="dark"][data-theme-scope="screener"] .logic-toolbar {
  padding: 7px;
  border: 1px solid #1b3c50;
  border-radius: 4px;
  background: #06111a;
}

html[data-theme="dark"][data-theme-scope="screener"] .factor-template-control select {
  border-color: #1a7596;
  background: #082536;
}

html[data-theme="dark"][data-theme-scope="screener"] .rule-card {
  padding: 11px;
  border-color: #196f78;
  background: linear-gradient(145deg, #081923, #07131c);
  box-shadow: inset 3px 0 0 #00aeba, inset 0 0 18px rgba(0, 213, 220, .035);
}

html[data-theme="dark"][data-theme-scope="screener"] .exclude-section .rule-card,
html[data-theme="dark"][data-theme-scope="screener"] .rule-card.context-exclude {
  border-color: #70441f;
  box-shadow: inset 3px 0 0 #d9671d, inset 0 0 18px rgba(255, 121, 31, .03);
}

html[data-theme="dark"][data-theme-scope="screener"] .rule-human-summary {
  border-color: rgba(0, 213, 220, .18);
  background: rgba(0, 98, 121, .12);
  color: #b9d7e0;
}

html[data-theme="dark"][data-theme-scope="screener"] .result-panel {
  grid-template-rows: 104px auto minmax(0, 1fr) 34px;
  background:
    radial-gradient(circle at 47% 22%, rgba(0, 131, 183, .055), transparent 39%),
    #050b11;
}

html[data-theme="dark"][data-theme-scope="screener"] .result-summary {
  grid-template-columns: repeat(4, 100px) minmax(225px, 1fr) auto;
  gap: 10px;
  padding: 10px 12px;
  border-bottom-color: #18374b;
  background: #07111a;
}

html[data-theme="dark"][data-theme-scope="screener"] .result-summary > .summary-stat,
html[data-theme="dark"][data-theme-scope="screener"] .result-summary > .summary-rules {
  height: 72px;
  position: relative;
  display: grid;
  align-content: center;
  padding: 8px 13px;
  overflow: hidden;
  border: 1px solid #203d51;
  border-left: 1px solid #203d51;
  border-radius: 5px;
  background: linear-gradient(145deg, #091721, #07121b);
}

html[data-theme="dark"][data-theme-scope="screener"] .result-summary > .summary-stat::before,
html[data-theme="dark"][data-theme-scope="screener"] .result-summary > .summary-rules::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: #1979ae;
}

html[data-theme="dark"][data-theme-scope="screener"] .result-summary > .summary-match::before { background: #1c78ca; }
html[data-theme="dark"][data-theme-scope="screener"] .result-summary > .summary-scope::before { background: #148eac; }
html[data-theme="dark"][data-theme-scope="screener"] .result-summary > .summary-include::before { background: #00d9a0; }
html[data-theme="dark"][data-theme-scope="screener"] .result-summary > .summary-exclude::before { background: #ff4d54; }
html[data-theme="dark"][data-theme-scope="screener"] .result-summary > .summary-rules {
  border-color: #6f591e;
  background: linear-gradient(145deg, #17160d, #0c130f);
}
html[data-theme="dark"][data-theme-scope="screener"] .result-summary > .summary-rules::before { background: #ffb21c; }

html[data-theme="dark"][data-theme-scope="screener"] .result-summary strong {
  font-size: 21px;
}

html[data-theme="dark"][data-theme-scope="screener"] .summary-rules strong {
  font-size: 14px;
}

html[data-theme="dark"][data-theme-scope="screener"] .result-actions {
  height: 72px;
  gap: 7px;
}

html[data-theme="dark"][data-theme-scope="screener"] .result-action-group {
  gap: 7px;
  padding: 0;
  border: 0;
  background: transparent !important;
}

html[data-theme="dark"][data-theme-scope="screener"] .action-group-label {
  display: none;
}

html[data-theme="dark"][data-theme-scope="screener"] .result-action-group .tutorial-btn,
html[data-theme="dark"][data-theme-scope="screener"] .result-action-group .text-btn {
  width: 72px;
  height: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 5px;
  border-color: #23455c;
  background: linear-gradient(145deg, #0b1b27, #07141e);
  color: #c5d4df;
  font-size: 12px;
  white-space: nowrap;
}

html[data-theme="dark"][data-theme-scope="screener"] .result-action-group .tutorial-btn {
  width: 130px;
  position: relative;
  isolation: isolate;
  flex-direction: row;
  gap: 10px;
  padding: 0 13px;
  overflow: visible;
  border: 1px solid #31c9ff;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(41, 116, 230, .98), rgba(23, 191, 246, .92) 56%, rgba(62, 97, 224, .98));
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .02em;
  text-shadow: 0 1px 2px rgba(3, 18, 45, .55);
  box-shadow:
    0 0 0 1px rgba(125, 234, 255, .24) inset,
    0 0 16px rgba(21, 184, 255, .42),
    0 8px 18px rgba(0, 56, 120, .32);
  animation: tutorial-button-breathe 2.8s ease-in-out infinite;
}

html[data-theme="dark"][data-theme-scope="screener"] .result-action-group .tutorial-btn::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(112deg, transparent 22%, rgba(255, 255, 255, .65) 47%, transparent 69%);
  background-size: 220% 100%;
  opacity: .72;
  filter: blur(.3px);
  animation: tutorial-button-sheen 3.6s ease-in-out infinite;
  pointer-events: none;
}

html[data-theme="dark"][data-theme-scope="screener"] .result-action-group .tutorial-btn::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -5px;
  border: 1px solid rgba(79, 223, 255, .68);
  border-radius: 13px;
  opacity: .3;
  transform: scale(.97);
  animation: tutorial-button-ring 2.8s ease-out infinite;
  pointer-events: none;
}

html[data-theme="dark"][data-theme-scope="screener"] .result-action-group .tutorial-btn-play {
  width: 36px;
  height: 36px;
  position: relative;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  margin: 0;
  border: 1px solid rgba(221, 249, 255, .92);
  border-radius: 50%;
  background: rgba(4, 44, 108, .45);
  box-shadow: 0 0 0 5px rgba(109, 223, 255, .12);
  color: transparent;
}

html[data-theme="dark"][data-theme-scope="screener"] .result-action-group .tutorial-btn-play::before {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(154, 240, 255, .72);
  border-radius: 50%;
  opacity: 0;
  transform: scale(.72);
  animation: tutorial-play-ripple 2.8s ease-out infinite;
}

html[data-theme="dark"][data-theme-scope="screener"] .result-action-group .tutorial-btn-play::after {
  content: "";
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid #fff;
  filter: drop-shadow(0 1px 2px rgba(2, 28, 72, .7));
}

html[data-theme="dark"][data-theme-scope="screener"] .result-action-group .tutorial-btn-label {
  position: relative;
  z-index: 1;
}

html[data-theme="dark"][data-theme-scope="screener"] .result-action-group .tutorial-btn-badge {
  position: absolute;
  top: -10px;
  right: 7px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border: 1px solid rgba(189, 231, 255, .55);
  border-radius: 999px;
  background: linear-gradient(135deg, #6976ff, #2f9ff3);
  color: #fff;
  box-shadow: 0 3px 9px rgba(25, 74, 224, .4);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

html[data-theme="dark"][data-theme-scope="screener"] .result-action-group .tutorial-btn-badge::after {
  content: "";
  width: 6px;
  height: 6px;
  position: absolute;
  top: -3px;
  right: -3px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: #ff4d63;
  box-shadow: 0 0 0 3px rgba(255, 77, 99, .18), 0 0 10px rgba(255, 77, 99, .85);
  animation: tutorial-dot-pulse 1.7s ease-in-out infinite;
}

html[data-theme="dark"][data-theme-scope="screener"] .result-action-group .tutorial-btn:hover:not(:disabled),
html[data-theme="dark"][data-theme-scope="screener"] .result-action-group .tutorial-btn:focus-visible {
  border-color: #d9fbff;
  background: linear-gradient(135deg, #2d8cff, #21c6f8 56%, #6a78ff);
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(225, 251, 255, .45) inset,
    0 0 25px rgba(33, 198, 248, .76),
    0 10px 24px rgba(0, 66, 144, .44);
  outline: none;
  transform: translateY(-2px) scale(1.015);
}

html[data-theme="dark"][data-theme-scope="screener"] .result-action-group .tutorial-btn:focus-visible {
  outline: 2px solid #d9fbff;
  outline-offset: 3px;
}

@keyframes tutorial-button-breathe {
  0%, 100% { box-shadow: 0 0 0 1px rgba(125, 234, 255, .24) inset, 0 0 14px rgba(21, 184, 255, .32), 0 8px 18px rgba(0, 56, 120, .28); }
  50% { box-shadow: 0 0 0 1px rgba(213, 249, 255, .48) inset, 0 0 25px rgba(21, 184, 255, .68), 0 9px 22px rgba(0, 56, 120, .4); }
}

@keyframes tutorial-button-sheen {
  0%, 18% { background-position: 130% 0; opacity: 0; }
  32%, 54% { opacity: .72; }
  70%, 100% { background-position: -125% 0; opacity: 0; }
}

@keyframes tutorial-button-ring {
  0%, 14% { opacity: 0; transform: scale(.95); }
  25% { opacity: .58; }
  68%, 100% { opacity: 0; transform: scale(1.08); }
}

@keyframes tutorial-play-ripple {
  0%, 10% { opacity: 0; transform: scale(.72); }
  20% { opacity: .82; }
  74%, 100% { opacity: 0; transform: scale(1.38); }
}

@keyframes tutorial-dot-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 3px rgba(255, 77, 99, .18), 0 0 10px rgba(255, 77, 99, .85); }
  50% { transform: scale(1.35); box-shadow: 0 0 0 6px rgba(255, 77, 99, .04), 0 0 14px rgba(255, 77, 99, .95); }
}

@media (prefers-reduced-motion: reduce) {
  html[data-theme="dark"][data-theme-scope="screener"] .result-action-group .tutorial-btn,
  html[data-theme="dark"][data-theme-scope="screener"] .result-action-group .tutorial-btn::before,
  html[data-theme="dark"][data-theme-scope="screener"] .result-action-group .tutorial-btn::after,
  html[data-theme="dark"][data-theme-scope="screener"] .result-action-group .tutorial-btn-play::before,
  html[data-theme="dark"][data-theme-scope="screener"] .result-action-group .tutorial-btn-badge::after {
    animation: none;
  }
}

html[data-theme="dark"][data-theme-scope="screener"] .result-action-group button::before {
  color: #e6f0f7;
  font-size: 23px;
  font-weight: 500;
  line-height: 1;
}

html[data-theme="dark"][data-theme-scope="screener"] .column-btn::before { content: "▦"; }
html[data-theme="dark"][data-theme-scope="screener"] #holdingHitsBtn::before { content: "◉"; }
html[data-theme="dark"][data-theme-scope="screener"] #copyCodesBtn::before { content: "▣"; }
html[data-theme="dark"][data-theme-scope="screener"] #catalogBtn::before { content: "▤"; }
html[data-theme="dark"][data-theme-scope="screener"] #csvBtn::before { content: "⇩"; }

html[data-theme="dark"][data-theme-scope="screener"] .result-action-group button:hover:not(:disabled) {
  border-color: #2b8bb3;
  background: #0c2736;
  color: #fff;
  transform: translateY(-1px);
}

html[data-theme="dark"][data-theme-scope="screener"] .coverage-strip {
  gap: 0;
  padding: 8px 12px;
  border-bottom-color: #17364a;
  background: #061019;
}

html[data-theme="dark"][data-theme-scope="screener"] .coverage-item {
  height: 50px;
  padding: 4px 14px;
  border-right: 1px solid #1b384b;
  border-radius: 0;
}

html[data-theme="dark"][data-theme-scope="screener"] .coverage-item:first-child {
  border-left: 1px solid #1b384b;
}

html[data-theme="dark"][data-theme-scope="screener"] .result-table {
  grid-template-rows: 44px minmax(0, 1fr);
  margin: 0 12px 10px;
  width: calc(100% - 24px);
  border: 1px solid #1d3e53;
  border-radius: 5px;
  background: #050c12;
}

html[data-theme="dark"][data-theme-scope="screener"] .table-head {
  border-bottom-color: #244a61;
  background: linear-gradient(180deg, #0a1b27, #07141e);
  color: #b9c9d5;
  font-size: 13px;
}

html[data-theme="dark"][data-theme-scope="screener"] .table-head > span + span,
html[data-theme="dark"][data-theme-scope="screener"] .virtual-row > span + span {
  border-left-color: #1b3a4e;
}

html[data-theme="dark"][data-theme-scope="screener"] .virtual-row {
  border-bottom-color: #173247;
  background: #061019;
  font-size: 14px;
}

html[data-theme="dark"][data-theme-scope="screener"] .virtual-row.row-even {
  background: #08131c;
}

html[data-theme="dark"][data-theme-scope="screener"] .virtual-row:hover {
  background: #0d2431;
}

html[data-theme="dark"][data-theme-scope="screener"] .virtual-row.top-ranked {
  background: linear-gradient(90deg, rgba(110, 70, 7, .3), rgba(45, 33, 13, .24) 66%, rgba(16, 23, 24, .1));
  box-shadow: inset 5px 0 0 #ffb21c, inset 0 0 30px rgba(255, 178, 28, .07);
}

html[data-theme="dark"][data-theme-scope="screener"] .table-head .result-cell--sticky-stock {
  background: #091923;
}

html[data-theme="dark"][data-theme-scope="screener"] .result-footer {
  border-top-color: #17364a;
  background: #061019;
}

@media (max-width: 1580px) {
  html[data-theme="dark"][data-theme-scope="screener"] .workbar {
    grid-template-columns: minmax(480px, 1fr) 154px 166px minmax(260px, .8fr) 150px;
  }

  html[data-theme="dark"][data-theme-scope="screener"] .snapshot-control label {
    min-width: 170px;
  }

  html[data-theme="dark"][data-theme-scope="screener"] .official-entry strong { font-size: 16px; }
  html[data-theme="dark"][data-theme-scope="screener"] .primary-btn { font-size: 18px; }
  html[data-theme="dark"][data-theme-scope="screener"] .workspace { grid-template-columns: 500px minmax(0, 1fr); }
  html[data-theme="dark"][data-theme-scope="screener"] .result-summary { grid-template-columns: repeat(4, 84px) minmax(175px, 1fr) auto; }
  html[data-theme="dark"][data-theme-scope="screener"] .result-action-group .tutorial-btn { width: 102px; padding-inline: 9px; font-size: 12px; }
  html[data-theme="dark"][data-theme-scope="screener"] .result-action-group .tutorial-btn-play { width: 31px; height: 31px; flex-basis: 31px; }
  html[data-theme="dark"][data-theme-scope="screener"] .result-action-group .text-btn { width: 60px; font-size: 11px; }
}

@media (max-width: 1280px) {
  html[data-theme="dark"][data-theme-scope="screener"] .app-shell { grid-template-rows: 64px 92px minmax(0, 1fr); }
  html[data-theme="dark"][data-theme-scope="screener"] .topbar { gap: 10px; padding-inline: 10px; }
  html[data-theme="dark"][data-theme-scope="screener"] .brand { min-width: 176px; }
  html[data-theme="dark"][data-theme-scope="screener"] .brand strong { font-size: 18px; }
  html[data-theme="dark"][data-theme-scope="screener"] .topnav a { padding-inline: 8px; font-size: 13px; }
  html[data-theme="dark"][data-theme-scope="screener"] .workbar { grid-template-columns: minmax(390px, 1fr) 126px 134px minmax(210px, .8fr) 126px; gap: 7px; padding: 8px 10px; }
  html[data-theme="dark"][data-theme-scope="screener"] .snapshot-control,
  html[data-theme="dark"][data-theme-scope="screener"] .official-entry,
  html[data-theme="dark"][data-theme-scope="screener"] .data-state,
  html[data-theme="dark"][data-theme-scope="screener"] .primary-btn { height: 70px; }
  html[data-theme="dark"][data-theme-scope="screener"] .snapshot-control label { min-width: 142px; height: 70px; padding-left: 38px; }
  html[data-theme="dark"][data-theme-scope="screener"] .snapshot-control label::before { left: 10px; font-size: 20px; }
  html[data-theme="dark"][data-theme-scope="screener"] .time-boundary { min-width: 90px; font-size: 10px; }
  html[data-theme="dark"][data-theme-scope="screener"] .official-entry { grid-template-columns: 30px minmax(0, 1fr) 10px; padding-inline: 8px; }
  html[data-theme="dark"][data-theme-scope="screener"] .official-entry .entry-icon { width: 30px; height: 30px; font-size: 11px; }
  html[data-theme="dark"][data-theme-scope="screener"] .official-entry strong { font-size: 14px; }
  html[data-theme="dark"][data-theme-scope="screener"] .official-entry small { font-size: 10px; }
  html[data-theme="dark"][data-theme-scope="screener"] .data-state { padding-inline: 10px; }
  html[data-theme="dark"][data-theme-scope="screener"] .data-state-meta { display: none; }
  html[data-theme="dark"][data-theme-scope="screener"] .primary-btn { font-size: 15px; }
  html[data-theme="dark"][data-theme-scope="screener"] .primary-btn::after { margin-left: 6px; font-size: 20px; }
  html[data-theme="dark"][data-theme-scope="screener"] .workspace { grid-template-columns: 430px minmax(0, 1fr); }
  html[data-theme="dark"][data-theme-scope="screener"] .result-panel { grid-template-rows: 170px auto minmax(0, 1fr) 32px; }
  html[data-theme="dark"][data-theme-scope="screener"] .result-summary {
    grid-template-columns: repeat(4, 66px) minmax(130px, 1fr);
    grid-template-rows: 64px 64px;
    align-content: center;
    gap: 8px 6px;
    padding-inline: 8px;
  }
  html[data-theme="dark"][data-theme-scope="screener"] .result-summary > .summary-stat,
  html[data-theme="dark"][data-theme-scope="screener"] .result-summary > .summary-rules { height: 64px; padding: 6px 8px; }
  html[data-theme="dark"][data-theme-scope="screener"] .result-summary strong { font-size: 17px; }
  html[data-theme="dark"][data-theme-scope="screener"] .summary-rules strong { font-size: 11px; }
  html[data-theme="dark"][data-theme-scope="screener"] .result-actions {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    height: 64px;
    justify-content: flex-end;
    gap: 4px;
  }
  html[data-theme="dark"][data-theme-scope="screener"] .result-action-group { gap: 4px; }
  html[data-theme="dark"][data-theme-scope="screener"] .result-action-group .tutorial-btn { width: 102px; height: 64px; padding-inline: 8px; font-size: 12px; }
  html[data-theme="dark"][data-theme-scope="screener"] .result-action-group .tutorial-btn-play { width: 29px; height: 29px; flex-basis: 29px; }
  html[data-theme="dark"][data-theme-scope="screener"] .result-action-group .text-btn { width: 58px; height: 64px; font-size: 10px; }
  html[data-theme="dark"][data-theme-scope="screener"] .result-action-group button::before { font-size: 18px; }
  html[data-theme="dark"][data-theme-scope="screener"] .coverage-item { height: 42px; padding-inline: 9px; }
}
