:root {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #18332e; background: #f3f6f4; font-synthesis: none;
  --muted: #5d716b; --line: #dbe4df; --dark: #163e36;
  --sh: #77d6aa; --sz: #91b4df; --bj: #e4bb78;
}
* {box-sizing: border-box}
body {margin: 0; min-height: 100vh}
button, input {font: inherit; color: inherit}
button, a {touch-action: manipulation}
button {cursor: pointer}
:focus-visible {outline: 3px solid #32856c; outline-offset: 3px}
.market-nav {display: inline-flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 0 0 20px}
.market-nav a {padding: 7px 15px; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent}
.market-nav a[aria-current="page"] {border-color: var(--dark); color: var(--dark); font-weight: 650}
.manage-link {font-size: .875rem; color: var(--dark); white-space: nowrap}
html:not([data-board="us"]) .us-only, html[data-board="us"] .cn-only {display: none}
.us-summary > div {display:flex; justify-content:space-between; gap:.5rem; align-items:baseline; padding-block:.28rem}
.us-summary span {font-size:.85rem; color:#c2d7cf}
.us-summary strong {font-variant-numeric:tabular-nums; font-size:1.15rem}
#revision-note {margin-top: 5px; color: var(--muted); font-size: .81rem}
.wrap {width: min(1184px, calc(100% - 80px)); margin-inline: auto}
.masthead {border-bottom: 1px solid var(--line); background: #fff}
.mast-inner {height: 67px; display: flex; align-items: center; justify-content: space-between}
.brand {font-size: 1.02rem; font-weight: 700; letter-spacing: .04em; display: flex; align-items: center; gap: 10px}
.brandmark {width: 32px; height: 32px; display: flex; gap: 3px; align-items: end; justify-content: center; background: var(--dark); padding: 8px 0; border-radius: 8px}
.brandmark i {width: 3px; background: #a3e6bd; height: 7px; border-radius: 2px}
.brandmark i:nth-child(2) {height: 11px} .brandmark i:last-child {height: 16px}
.clock {display: flex; align-items: baseline; gap: 10px; color: var(--muted); font-size: .875rem}
.clock time, .trade-date, .total-value, .market-counts strong, dd, td.num, .code, .dates {font-variant-numeric: tabular-nums}
.clock time {font-weight: 600; color: #223c35; letter-spacing: .035em}
main {padding: 36px 0 55px}
.page-title, .section-head, .list-title, .tools {display: flex; align-items: center; justify-content: space-between; gap: 12px}
h1, h2, p {margin: 0}
h1 {font-size: clamp(1.9rem, 3vw, 2.65rem); letter-spacing: -.055em; font-weight: 700; line-height: 1.25}
h1 span {letter-spacing: -.075em}
.page-title p {margin-top: 9px; color: var(--muted); font-size: .9375rem}
.page-title b {font-weight: 400; margin: 0 5px; color: #83968c}
.trade-date {font-size: .9rem; color: var(--muted)}
.overview {display: grid; grid-template-columns: 1.85fr 1fr; gap: 18px; margin: 24px 0 26px}
.summary, .status-card, .list {border-radius: 14px}
.summary {display: grid; grid-template-columns: .92fr 1.1fr; gap: 25px; align-items: center; padding: 26px 30px; background: var(--dark); color: white; box-shadow: 0 3px 10px #14362c10}
.summary h2 {font-size: .875rem; color: #c2d7cf; font-weight: 550; letter-spacing: .02em}
.total-value {display: flex; gap: 10px; align-items: baseline; margin: 6px 0}
.total-value strong {font-size: clamp(2.7rem, 4.2vw, 4rem); line-height: 1; letter-spacing: -.065em; font-weight: 600}
.total-value span {font-size: .9rem; color: #bfd5cc}
.coverage {color: #cadaD3; font-size: .83rem; line-height: 1.45}
.distribution {border-left: 1px solid #54766a; padding-left: 26px}
.distribution-bar {display: flex; gap: 3px; height: 8px; background: #395f54; border-radius: 5px; overflow: hidden; margin: 17px 0}
.distribution-bar i {min-width: 0; transition: flex-grow .2s; display: none}
#bar-sh, .sh::before {background: var(--sh)} #bar-sz, .sz::before {background: var(--sz)} #bar-bj, .bj::before {background: var(--bj)}
.market-counts {display: flex; justify-content: space-between; gap: 8px}
.market-counts strong, .market-label {display: block}
.market-label {color: #dfebe5; font-size: .8rem; white-space: nowrap}
.market-label::before {content: ""; width: 6px; height: 6px; border-radius: 50%; display: inline-block; margin: 0 5px 2px 0}
.market-counts strong {margin-top: 4px; font-size: 1.3rem; font-weight: 550; line-height: 1.2}
.status-card, .list {background: #fff; border: 1px solid var(--line)}
.status-card {padding: 21px 24px}
.status-card h2 {font-size: 1rem}
.state {display: flex; gap: 6px; align-items: center; background: #edf2ef; color: #52635c; border-radius: 15px; padding: 4px 9px; font-size: .79rem; font-weight: 600}
.state::before {content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor}
.state[data-state="ready"], .state[data-state="updating"] {background: #e4f5ed; color: #147452}
.state[data-state="error"] {background: #fff0e5; color: #945218}
dl {margin: 13px 0 8px}
dl > div {display: flex; justify-content: space-between; align-items: baseline; gap: 10px; line-height: 1.62; font-size: .875rem}
dt, #status-note {color: var(--muted)}
dd {margin: 0; font-weight: 550; text-align: right}
#status-note {font-size: .81rem; line-height: 1.45; overflow-wrap: anywhere}
.list {overflow: hidden; box-shadow: 0 2px 8px #18382c07}
.list-title {padding: 24px 26px 10px; justify-content: flex-start; gap: 9px}
.list-title h2 {font-size: 1.26rem; letter-spacing: -.035em}
#research-source {padding: 0 26px 10px; color: var(--muted); font-size: .875rem; overflow-wrap: anywhere}
#price-label, #rsi-label {font-weight: inherit}
#list-count {color: #51685c; background: #edf3ed; border-radius: 5px; padding: 3px 7px; font-size: .78rem; font-variant-numeric: tabular-nums}
.tools {padding: 6px 26px 20px}
.filters {display: flex; gap: 2px; padding: 3px; border-radius: 8px; background: #edf2ef}
.filters button {white-space: nowrap; font-weight: 500; border: 0; padding: 6px 13px; background: transparent; color: #52655e; border-radius: 6px; font-size: .875rem}
.filters button:hover {color: var(--dark)}
.filters button[aria-pressed="true"] {background: #fff; color: #1a5a43; box-shadow: 0 1px 4px #163e361c; font-weight: 650}
.search {display: flex; align-items: center; gap: 9px; width: min(236px, 40%); padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; color: #657a70}
.search:focus-within {border-color: #40886c; box-shadow: 0 0 0 1px #40886c}
.search i {width: 12px; height: 12px; border: 1.6px solid currentColor; border-radius: 50%; position: relative; flex: none; margin: 0 2px}
.search i::after {content: ""; position: absolute; width: 5px; height: 1.6px; background: currentColor; transform: rotate(45deg); right: -4px; bottom: -2px}
.search input {width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; height: 35px; font-size: .875rem}
.search input::placeholder {color: #798980}
.table-scroll {overflow-x: auto; max-width: 100%; scrollbar-width: thin; overscroll-behavior-x: contain}
table {border-collapse: collapse; width: 100%; font-size: .93rem}
.table-scroll table {width: max-content; min-width: 100%}
.table-scroll td {height: auto; min-height: 57px}
thead {background: #f3f6f4; color: var(--muted); border-block: 1px solid var(--line)}
th, td {padding: 12px 14px; text-align: left; white-space: nowrap; vertical-align: middle}
th:first-child, td:first-child {padding-left: 26px}
th:last-child, td:last-child {padding-right: 26px}
th {font-size: .8rem; font-weight: 550; height: 42px}
th button {font: inherit; color: inherit; border: 0; background: transparent; padding: 3px 0}
.table-scroll :is(td:first-child, td.dates, td.market-cell) {white-space: normal; overflow-wrap: anywhere}
.table-scroll td:first-child {max-width: 11rem}
.table-scroll td.market-cell {max-width: 8rem}
.table-scroll td.dates {max-width: 14rem}
.company-note, .hit-record, .hit-fields, .stock-name {overflow-wrap: anywhere}
th button span {display: inline-block; width: 12px; font-size: .7rem}
th button span::after {content: "↕"; color: #7c9285}
th[aria-sort="ascending"] button span::after {content: "↑"; color: #1b6d4f}
th[aria-sort="descending"] button span::after {content: "↓"; color: #1b6d4f}
th[aria-sort] button {color: #23654a}
td {border-bottom: 1px solid #e8eee9; height: 57px}
tbody tr:last-child td {border-bottom: 0} tbody tr:hover {background: #f7faf7}
.num {text-align: right}
.stock-name {display: block; font-weight: 620; line-height: 1.35}
.code {display: block; font-size: .78rem; color: var(--muted); margin-top: 2px; letter-spacing: .035em}
.market-cell, td.dates {font-size: .875rem; color: var(--muted)}
.hit-fields {display: block; font-size: .74rem; font-weight: 400}
.hit-record + .hit-record {margin-top: 4px}
td.positive {color: #ad4938; font-weight: 600} td.negative {color: #137949; font-weight: 600}
.empty {text-align: center; padding: 42px 20px; color: var(--muted); font-size: .93rem}
[hidden] {display: none!important}
@media(max-width: 900px){
  .wrap {width: calc(100% - 40px)}
  .overview {grid-template-columns: 1.55fr 1fr; gap: 13px}
  .summary {gap: 15px; padding: 23px 20px}.distribution {padding-left: 16px}
  .status-card {padding: 19px}
  th,td {padding-inline: 10px}
  html[data-board="cn"] .table-scroll :is(th, td):first-child {
    position: sticky; left: 0; z-index: 1; background: white; box-shadow: 1px 0 var(--line);
  }
  html[data-board="cn"] .table-scroll th:first-child {background: #f3f6f4}
}
@media(max-width: 680px){
  .wrap {width: calc(100% - 28px)}.mast-inner {height: 53px}
  main {padding: 23px 0 30px}.page-title {align-items: flex-start; flex-direction: column; gap: 8px}
  .page-title p {margin-top: 5px}.trade-date {font-size: .81rem}
  .overview {grid-template-columns: 1fr; margin: 17px 0; gap: 10px}
  .summary {grid-template-columns: .85fr 1.05fr; min-height: 132px}.status-card {padding: 14px 18px}
  .status-card dl {margin-block: 8px 5px}
  .status-card dl > div {gap: 6px}.list-title {padding: 17px 15px 11px}
  #research-source {padding-inline: 15px}
  .tools {padding: 0 15px 14px; flex-wrap: wrap; gap: 7px}
  .filters button {padding: 6px 9px}.search {flex: 1; min-width: 126px}
  th:first-child,td:first-child {padding-left: 15px}
  th:last-child,td:last-child {padding-right: 15px}
  .table-scroll td {height: auto; min-height: 53px}
}
@media (min-width: 1600px) {
  body:has(#stocks) .wrap {width: calc(100% - 80px); max-width: none}
  body:has(#stocks) .table-scroll table {width: 100%; table-layout: fixed}
  body:has(#stocks) .table-scroll :is(th, td) {white-space: normal; overflow-wrap: anywhere; max-width: none}
  body:has(#stocks) .table-scroll td.num {white-space: nowrap; overflow-wrap: normal}
  body:has(#stocks) .table-scroll td.num.prev-amount {white-space: normal; overflow-wrap: normal}
  body:has(#stocks) .table-scroll th {height: auto; min-height: 42px}
  body:has(#stocks) .table-scroll td {height: auto; min-height: 57px}
  body:has(#stocks) .table-scroll th button {display: inline-block; max-width: 100%; white-space: normal; text-align: inherit; vertical-align: bottom}
  html[data-board="cn"] body:has(#stocks) .table-scroll th:nth-child(1) {width: 9.5%}
  html[data-board="cn"] body:has(#stocks) .table-scroll th:nth-child(2) {width: 6.5%}
  html[data-board="cn"] body:has(#stocks) .table-scroll th:nth-child(4) {width: 6.5%}
  html[data-board="cn"] body:has(#stocks) .table-scroll th:nth-child(5) {width: 6.5%}
  html[data-board="cn"] body:has(#stocks) .table-scroll th:nth-child(6) {width: 6.5%}
  html[data-board="cn"] body:has(#stocks) .table-scroll th:nth-child(7) {width: 6.5%}
  html[data-board="cn"] body:has(#stocks) .table-scroll th:nth-child(8) {width: 6.5%}
  html[data-board="cn"] body:has(#stocks) .table-scroll th:nth-child(9) {width: 6.5%}
  html[data-board="cn"] body:has(#stocks) .table-scroll th:nth-child(10) {width: 7.5%}
  html[data-board="cn"] body:has(#stocks) .table-scroll th:nth-child(11) {width: 6.5%}
  html[data-board="cn"] body:has(#stocks) .table-scroll th:nth-child(12) {width: 6%}
  html[data-board="cn"] body:has(#stocks) .table-scroll th:nth-child(17) {width: 7.5%}
  html[data-board="cn"] body:has(#stocks) .table-scroll th:nth-child(18) {width: 9.5%}
  html[data-board="cn"] body:has(#stocks) .table-scroll th:nth-child(19) {width: 8%}
  html[data-board="us"] body:has(#stocks) .table-scroll th:nth-child(1) {width: 14%}
  html[data-board="us"] body:has(#stocks) .table-scroll th:nth-child(3) {width: 11%}
  html[data-board="us"] body:has(#stocks) .table-scroll th:nth-child(4) {width: 8%}
  html[data-board="us"] body:has(#stocks) .table-scroll th:nth-child(5) {width: 8%}
  html[data-board="us"] body:has(#stocks) .table-scroll th:nth-child(11) {width: 8%}
  html[data-board="us"] body:has(#stocks) .table-scroll th:nth-child(13) {width: 7%}
  html[data-board="us"] body:has(#stocks) .table-scroll th:nth-child(14) {width: 7%}
  html[data-board="us"] body:has(#stocks) .table-scroll th:nth-child(15) {width: 7%}
  html[data-board="us"] body:has(#stocks) .table-scroll th:nth-child(16) {width: 15%}
  html[data-board="us"] body:has(#stocks) .table-scroll th:nth-child(20) {width: 15%}
}
@media(prefers-reduced-motion: reduce){* {transition: none!important}}
.session-tools {display: flex; align-items: center; gap: 18px}
.logout {background: transparent; border: 0; border-left: 1px solid var(--line); color: var(--muted); padding: 2px 0 2px 16px; font-size: .875rem}
.logout:hover {color: var(--dark)}
.state[data-state="delayed"] {background: #fff0e5; color: #945218}
.login-wrap {display: grid; justify-items: center; padding-top: clamp(50px, 12vh, 140px)}
.login-card {width: min(100%, 390px); border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 32px}
.login-card h1 {font-size: 1.65rem; letter-spacing: -.03em; margin-bottom: 25px}
.login-card form {display: grid; gap: 8px}
.login-card label {font-size: .9rem; font-weight: 550}
.login-card input {min-width: 0; padding: 10px 12px; border: 1px solid #bacbc2; border-radius: 6px; margin-bottom: 9px}
.login-card button {margin-top: 6px; background: var(--dark); color: #fff; border-radius: 6px; border: 0; padding: 11px; font-weight: 650}
.login-card [role="alert"] {font-size: .875rem; color: #8d4321}
@media(max-width: 420px){.session-tools {gap: 9px}.clock {gap: 5px}.logout {padding-left: 9px}.login-card {padding: 24px}}

.strategy-admin{padding-block:2rem;max-width:60rem}.strategy-admin h2{margin-top:1.5rem}.strategy-admin form{display:grid;gap:1rem}.strategy-admin label{display:grid;gap:.35rem}.strategy-admin textarea,.strategy-admin input{box-sizing:border-box;width:100%;padding:.6rem}.strategy-admin textarea,.strategy-admin pre{font-family:monospace;white-space:pre-wrap;overflow-wrap:anywhere}.strategy-admin button{justify-self:start;padding:.6rem 1rem;cursor:pointer}.strategy-admin table{width:100%;text-align:left}.strategy-admin th,.strategy-admin td{padding:.5rem;overflow-wrap:anywhere}
.candidate-list {margin-bottom: 16px}
.candidate-list summary {padding: 16px 22px; cursor: pointer; font-weight: 650}
.candidate-list summary span {color: var(--muted); font-size: .86rem; margin-left: .5em}
.candidate-list ul {list-style: none; padding: 0 22px; display: grid; grid-template-columns: repeat(auto-fit,minmax(min(290px,100%),1fr)); gap: 5px 22px}
.candidate-list li {display: flex; gap: 8px; padding-block: 6px; border-top: 1px solid var(--line); font-size: .88rem}
.candidate-list li strong {min-width: 5em}
.candidate-filters {display:flex;align-items:center;flex-wrap:wrap;gap:6px 16px}
.candidate-filters, .company-filter {font-size:.875rem;color:var(--muted)}
.candidate-filters input, .company-filter input {accent-color:var(--dark)}
.company-note {display:block;color:var(--muted);font-size:.76rem;line-height:1.45;margin-top:3px;font-variant-numeric:tabular-nums;white-space:normal}
.list-tabs {width:fit-content;margin:0 26px 12px}
@media(max-width:680px){.list-tabs{margin-inline:15px}}
#candidate-more {margin: 4px 22px 16px; padding: 6px 12px}
