:root {
  --navy:#102b3a; --ink:#1a303c; --muted:#617681; --line:#dbe5e9;
  --paper:#ffffff; --canvas:#eef3f5; --teal:#176f72; --teal-light:#e6f2f1;
  --rise:#bb3e48; --fall:#177e69; --amber:#ad702e; --soft:#f7fafb;
  font-family:"Segoe UI","Microsoft YaHei UI","PingFang SC",sans-serif;
  font-synthesis:none;
}
* { box-sizing:border-box }
[hidden] { display:none !important }
body { margin:0; background:var(--canvas); color:var(--ink); font-size:14px; line-height:1.55 }
button,input,select { font:inherit }
button { cursor:pointer; border:1px solid transparent; background:var(--teal); color:white; border-radius:9px; padding:9px 14px; font-weight:600; transition:background .16s,transform .16s,border-color .16s }
button:hover:not(:disabled) { background:#105d60; transform:translateY(-1px) }
button:disabled { cursor:not-allowed; opacity:.48 }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible { outline:3px solid #df9a4a; outline-offset:2px }
a { color:#12626c; text-underline-offset:3px; font-weight:600 }
a:hover { color:#0b424e }
input,select { min-height:38px; border:1px solid #cbd9df; background:#fff; color:var(--ink); border-radius:8px; padding:8px 10px; max-width:100% }
input::placeholder { color:#84949c }
input:focus,select:focus { border-color:var(--teal) }
.topbar { height:72px; background:var(--navy); color:white; display:flex; align-items:center; justify-content:space-between; gap:20px; padding:0 clamp(16px,3vw,44px); position:relative; z-index:20; box-shadow:0 1px 3px #00000018 }
.brand { display:flex; align-items:center; gap:12px; white-space:nowrap; letter-spacing:.03em }
.brand-mark { width:38px; height:38px; display:grid; place-items:center; border:1px solid #77aaa8; border-radius:10px; color:#d8f0e9; font:700 20px "Microsoft YaHei UI",sans-serif }
.brand strong { display:block; font-size:19px; line-height:1.15; letter-spacing:.09em }
.brand small { display:block; color:#a9c4ce; font-size:11px; letter-spacing:.08em; margin-top:2px }
.topbar-tools { display:flex; align-items:center; justify-content:flex-end; gap:12px; min-width:0 }
.session-label { color:#b8cdd4; font-size:12px; white-space:nowrap }
.logout-button { background:transparent; border-color:#5c7a87; padding:7px 11px; font-size:12px }
.logout-button:hover { background:#25495a }
.global-search { display:flex; align-items:center; position:relative; background:#fff; border-radius:9px; padding:3px; width:min(300px,30vw) }
.global-search input { min-width:0; width:100%; border:0; background:transparent; min-height:32px }
.global-search button { padding:5px 11px; font-size:12px; border-radius:6px }
.global-results { position:absolute; z-index:30; top:calc(100% + 8px); left:0; right:0; max-height:320px; overflow:auto; padding:7px; border-radius:10px; background:white; box-shadow:0 12px 36px #00000016; border:1px solid var(--line); color:var(--ink) }
.global-results button { width:100%; display:block; text-align:left; color:var(--ink); background:white; font-weight:500; border-radius:6px }
.global-results button:hover { color:var(--teal); background:var(--teal-light) }
.workspace { max-width:1620px; margin:0 auto; padding:20px clamp(14px,2.5vw,38px) 70px }
#app { display:grid; grid-template-columns:224px minmax(0,1fr); gap:24px; align-items:start }
#nav { position:sticky; top:20px; padding:18px 10px; background:var(--paper); border:1px solid var(--line); border-radius:14px; box-shadow:0 4px 18px #00000016 }
.nav-heading { color:#899aa2; text-transform:uppercase; letter-spacing:.12em; font-size:11px; font-weight:700; margin:13px 13px 5px }
.nav-heading:first-child { margin-top:0 }
#nav button { display:flex; flex-direction:column; align-items:flex-start; gap:0; text-align:left; width:100%; background:transparent; color:#45616e; border:0; border-radius:8px; padding:10px 13px; margin:2px 0; transform:none }
#nav button:hover { background:#edf4f5; color:var(--ink) }
#nav button.active { background:#e5f1f0; color:#0b6667; box-shadow:inset 3px 0 0 var(--teal) }
#nav button span { font-weight:700; font-size:14px }
#nav button small { font-size:11px; font-weight:400; opacity:.75 }
.nav-foot { margin:22px 12px 4px; padding-top:13px; border-top:1px solid var(--line); font-size:11px; color:var(--muted) }
#content { min-width:0 }
.page-head { display:flex; justify-content:space-between; align-items:flex-end; gap:16px; margin:4px 0 16px }
.page-head h1 { font-size:clamp(23px,2.2vw,31px); margin:0; letter-spacing:-.035em; line-height:1.22; color:var(--navy) }
.page-head p { margin:5px 0 0; color:var(--muted); font-size:13px }
.page-kicker { color:var(--teal); font-size:11px; font-weight:700; letter-spacing:.13em; text-transform:uppercase; margin:0 0 7px }
.page-head .context { color:#617681; font-size:12px; white-space:nowrap }
.card { background:var(--paper); border:1px solid var(--line); border-radius:13px; padding:20px 22px; margin:0 0 15px; box-shadow:0 3px 14px #00000016; min-width:0 }
.card .card { background:var(--soft); box-shadow:none; border-radius:9px; margin:10px 0; padding:15px }
.card h2,.card h3,.card h4 { color:var(--navy); line-height:1.3 }
.card h2 { font-size:21px; margin:0 0 14px }
.card h3 { font-size:17px; margin:0 0 12px }
.card h4 { font-size:14px; margin:16px 0 6px }
.card p { margin:8px 0 }
.card > :first-child { margin-top:0 }
.card > :last-child { margin-bottom:0 }
.section-stack { display:grid; grid-template-columns:minmax(0,1fr); gap:14px; padding:0; border:0; background:transparent; box-shadow:none; margin:0 }
.section-stack > .card { margin:0 }
.section-stack > .card:first-child { border-top:1px solid var(--line) }
.section-stack > .card[data-section="近期公告"] { border-top:1px solid var(--line) }
.section-stack > .card[data-section="AI 研究"] { border-top:1px solid var(--line) }
.section-stack > .card[data-section="预测记录"] { border-top:1px solid var(--line) }
.card p.muted,.muted { color:var(--muted); font-size:12px }
.error { color:#ab3541; background:#fff4f4; border-radius:8px; padding:8px 10px }
#loginError:empty { display:none }
.card.error { padding:24px }
.card button:not(.active) { margin:3px 5px 3px 0 }
.card button.secondary,.expand-button { background:#e8f2f2; color:#125d61; border-color:#cfe2e2 }
.card button.secondary:hover,.expand-button:hover { background:#dcecec }
.card .scroll { overflow:auto; border:1px solid var(--line); border-radius:9px; margin:12px 0; background:white }
table { width:100%; border-collapse:collapse; min-width:620px; font-size:12px; font-variant-numeric:tabular-nums }
th,td { padding:10px 12px; border-bottom:1px solid #e7eef1; text-align:left; vertical-align:top }
th { background:#f2f7f8; color:#5b737d; font-size:11px; font-weight:700; white-space:nowrap; position:sticky; top:0; z-index:1 }
tr:last-child td { border-bottom:0 }
tbody tr:hover,table tr:hover td { background:#f9fcfc }
td:first-child { white-space:nowrap }
td button { padding:5px 9px; font-size:11px; white-space:nowrap }
td a { white-space:nowrap }
svg { width:100%; height:auto; min-height:190px; max-height:290px; background:linear-gradient(180deg,#fbfdfe,#f5f9fa); border:1px solid var(--line); border-radius:9px }
pre { overflow:auto; background:#f4f8f9; border-radius:8px; padding:12px; white-space:pre-wrap; overflow-wrap:anywhere; font-size:12px }
.metric-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin:0 0 15px }
.metric { background:white; border:1px solid var(--line); border-radius:11px; padding:16px 17px; min-width:0 }
.metric .label { display:block; color:var(--muted); font-size:11px; font-weight:600; margin-bottom:5px }
.metric strong { display:block; color:var(--navy); font-size:clamp(19px,2vw,26px); letter-spacing:-.04em; line-height:1.15; font-variant-numeric:tabular-nums; overflow-wrap:anywhere }
.metric small { display:block; color:var(--muted); font-size:11px; margin-top:5px }
.metric.rise strong { color:var(--rise) }
.metric.fall strong { color:var(--fall) }
.metric.accent { border-color:#a7ccca; background:#f6fbfa }
.breadth { display:flex; gap:4px; width:100%; height:12px; overflow:hidden; border-radius:99px; background:#d8e5e7; margin:14px 0 8px }
.breadth .up { background:var(--rise) }
.breadth .down { background:var(--fall) }
.breadth .flat { background:#b0c1c5 }
.legend { display:flex; flex-wrap:wrap; gap:15px; color:var(--muted); font-size:12px }
.legend strong { font-variant-numeric:tabular-nums }
.filter-bar { display:flex; flex-wrap:wrap; align-items:flex-end; gap:10px; margin:14px 0 }
.field { display:flex; flex-direction:column; gap:4px; color:#5d737d; font-size:11px; font-weight:700; min-width:125px }
.field input,.field select { width:100%; min-width:0; color:var(--ink); font-weight:400; font-size:13px }
.field.wide { flex:1 1 210px }
.filter-bar > button,.filter-bar > a { min-height:38px; display:inline-flex; align-items:center; justify-content:center; padding:8px 12px }
.filter-bar > a { border:1px solid #b4d3d2; border-radius:8px; background:#edf6f5; text-decoration:none }
.form-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:9px; margin:12px 0 }
.form-grid .field { min-width:0 }
.form-grid button { align-self:end }
.signal-reason { max-width:520px; min-width:270px; white-space:normal }
.section-note { font-size:12px; color:var(--muted); margin:0 0 12px }
.summary-strip { display:flex; flex-wrap:wrap; gap:8px; margin:8px 0 16px }
.pill { display:inline-block; border:1px solid #d5e4e8; border-radius:99px; padding:4px 10px; color:#4d6976; background:#f7fafb; font-size:11px; font-weight:600 }
.pill.rise { color:var(--rise); background:#fff5f5; border-color:#f1d3d6 }
.pill.fall { color:var(--fall); background:#eff8f5; border-color:#c9e6dc }
.quote-line { display:flex; align-items:baseline; gap:12px; flex-wrap:wrap; margin:8px 0 12px }
.quote-line strong { font-size:28px; color:var(--navy); font-variant-numeric:tabular-nums }
.quote-line .delta { font-weight:700; font-size:14px }
.quote-line .delta.up { color:var(--rise) }
.quote-line .delta.down { color:var(--fall) }
.stock-tools { display:flex; flex-wrap:wrap; gap:6px; margin:12px 0 }
.stock-tools #stockSearch { min-width:210px; max-width:360px; flex:1 }
#stockResults { display:flex; gap:6px; flex-wrap:wrap; margin-top:7px }
#stockResults:empty { display:none }
#stockResults button { background:#edf5f5; color:#155a61; border-color:#d1e3e4; font-size:12px }
.notice-extra { display:none }
.notice-expanded .notice-extra { display:block }
.finance-compact tr:nth-child(n+10) { display:none }
.finance-compact.finance-expanded tr { display:table-row }
.notice-expanded .notice-extra.card { display:block }
.notice-expand,.finance-expand { margin:10px 0 }
.login-card { max-width:440px; margin:clamp(45px,10vh,100px) auto; padding:32px; background:var(--paper); border:1px solid var(--line); border-top:1px solid var(--line); border-radius:14px; box-shadow:0 14px 42px #00000016 }
.login-kicker { font-size:11px; font-weight:700; letter-spacing:.18em; color:var(--teal) }
.login-card h1 { font-size:27px; margin:10px 0 8px; color:var(--navy) }
.login-card p { color:var(--muted) }
.login-card label { display:block; font-weight:700; color:var(--ink); margin:18px 0 7px }
.login-actions { display:flex; gap:8px }
.login-actions input { flex:1; min-width:0 }
.login-actions button { padding-inline:20px }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0 }
@media (max-width:1100px) {
  #app { grid-template-columns:190px minmax(0,1fr); gap:16px }
  .metric-grid { grid-template-columns:repeat(2,minmax(0,1fr)) }
  .form-grid { grid-template-columns:repeat(3,minmax(0,1fr)) }
}
@media (max-width:760px) {
  .topbar { height:auto; min-height:64px; padding:9px 14px; flex-wrap:wrap; gap:8px }
  .brand strong { font-size:17px }
  .topbar-tools { width:100%; justify-content:space-between }
  .global-search { width:min(440px,78vw); flex:1 }
  .session-label { display:none }
  .workspace { padding:0 12px 60px }
  #app { display:block }
  #nav { position:sticky; top:0; z-index:15; display:flex; gap:4px; overflow-x:auto; white-space:nowrap; border-radius:0 0 11px 11px; margin:0 -12px 15px; padding:8px 10px; box-shadow:0 5px 14px #00000016 }
  #nav button { width:auto; flex:none; padding:7px 11px; margin:0 }
  #nav button small,#nav .nav-heading,#nav .nav-foot { display:none }
  #nav button.active { box-shadow:inset 0 -3px 0 var(--teal) }
  .page-head { margin:15px 0 13px }
  .page-head h1 { font-size:24px }
  .page-head .context { display:none }
  .card { padding:16px; }
  .metric-grid { gap:7px }
  .metric { padding:12px }
  .metric strong { font-size:20px }
  .form-grid { grid-template-columns:repeat(2,minmax(0,1fr)) }
  .card .scroll { margin-left:-6px; margin-right:-6px }
}
@media (max-width:480px) {
  .brand-mark { width:34px; height:34px }
  .metric-grid { grid-template-columns:repeat(2,minmax(0,1fr)) }
  .metric strong { font-size:18px }
  .form-grid { grid-template-columns:1fr 1fr }
  .filter-bar .field { flex:1 1 130px }
  .filter-bar > button,.filter-bar > a { flex:1 1 100px }
  .stock-tools #stockSearch { min-width:140px }
  .login-card { margin-top:45px; padding:23px }
}
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; transition:none!important; animation:none!important } }

.index-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin-bottom:15px }
.index-grid .card { margin:0 }
.index-card svg { max-height:165px; min-height:145px }
.market-up { color:var(--rise); font-weight:700 }
.market-down { color:var(--fall); font-weight:700 }
.card details { border:1px solid var(--line); border-radius:8px; padding:10px; margin:8px 0 }
.card summary { cursor:pointer; font-weight:700; color:var(--teal) }
@media (max-width:1100px) { .index-grid { grid-template-columns:1fr } }

.global-search input { flex:1 1 auto }
.global-search button { min-width:62px; white-space:nowrap }
.section-links { display:flex; gap:7px; overflow-x:auto; white-space:nowrap; margin:0 0 14px; padding:1px 0 4px }
.section-links a { display:inline-block; padding:7px 11px; border:1px solid #c9dce1; border-radius:7px; background:#f9fcfc; font-size:12px; color:#375f6b; text-decoration:none }
.section-links a:hover { background:#eaf4f4 }
#content section[id] { scroll-margin-top:84px }

.stock-code { font-family:Consolas,"Microsoft YaHei UI",monospace; color:var(--navy); font-size:13px; letter-spacing:.015em }
.numeric { font-variant-numeric:tabular-nums; font-weight:700; color:var(--navy) }
.strategy-tag { display:inline-block; padding:3px 8px; border-radius:5px; color:#16646b; background:#eaf4f5; font-weight:700; white-space:nowrap }
.empty-state { padding:22px; background:#f6fafb; border:1px dashed #c3d6db; border-radius:9px; color:var(--muted) }
.empty-state strong { color:var(--ink) }
#toast { position:fixed; right:22px; bottom:20px; z-index:100; padding:12px 17px; border-radius:9px; background:var(--navy); color:white; box-shadow:0 10px 28px #00000016; font-weight:700 }
#toast.error { background:#a5353d; color:white }

.task-stock { border-bottom:1px solid #e6edf0; padding:5px 0 }
.status { display:inline-block; padding:3px 8px; border-radius:5px; background:#edf3f5; color:#49616d; font-weight:700; white-space:nowrap }
.status.done { background:#e8f3ef; color:#176d59 }
.status.failed,.status.interrupted { background:#fff0ef; color:#ae3c43 }
.status.running { background:#e7f2f7; color:#206985 }
.status.queued { background:#f6f0e7; color:#8b6529 }

.personal-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin-top:14px }
.personal-card { min-width:0; margin:0; }
.personal-head { display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px; align-items:center }
.personal-head > div { display:flex; flex-wrap:wrap; align-items:center; gap:7px }
.stock-title { border:0; background:none; color:var(--navy); padding:2px; font-size:18px; font-weight:700; text-align:left; cursor:pointer }
.stock-title:hover { color:var(--teal); text-decoration:underline }
.personal-chart svg { display:block; width:100%; height:88px; min-height:0; }
.personal-chart { background:#f8fbfb; border:1px solid #e5eeef; border-radius:8px; padding:8px; margin:10px 0 }
.personal-card .section-note { line-height:1.5; margin:4px 0 }
.home-facts { display:grid; grid-template-columns:110px minmax(0,1fr); gap:8px 12px; margin:12px 0; border-top:1px solid var(--line); padding-top:12px }
.home-facts h4,.home-facts p { margin:0; font-size:12px; line-height:1.5 }
.home-facts h4 { color:var(--muted); font-weight:600 }
.home-facts p { overflow-wrap:anywhere }
.home-signal { color:var(--teal); font-weight:700 }
.personal-actions { display:flex; gap:8px; flex-wrap:wrap; margin-top:14px }
.empty-home { margin-top:14px; text-align:center; padding:35px 20px }
.empty-home h3 { color:var(--navy); font-size:19px }
.home-search-results { border:1px solid var(--line); border-radius:8px; background:#fbfdfd; margin:10px 0 }
.home-search-results > div { display:flex; align-items:center; flex-wrap:wrap; gap:8px; padding:8px 12px; border-bottom:1px solid var(--line) }
.home-search-results > div:last-child { border-bottom:0 }
.home-search-results button { margin-left:auto }
@media (max-width:1000px) { .personal-grid { grid-template-columns:1fr } }
@media (max-width:480px) { .home-facts { grid-template-columns:1fr; gap:3px } .home-facts h4:not(:first-child) { margin-top:7px } }


.ai-config-form { max-width:680px; margin-top:18px }
.ai-config-form > label,.ai-config-form .form-grid label { display:flex; flex-direction:column; gap:5px; color:#49616d; font-size:12px; font-weight:700 }
.ai-config-form > label { margin:12px 0 }
.ai-config-form input,.ai-config-form select { width:100%; font-weight:400; color:var(--ink) }
.ai-config-form input[readonly] { background:#f4f7f8; color:#5f7480 }
.ai-config-form .form-grid { grid-template-columns:repeat(3,minmax(0,1fr)); margin:14px 0 }
.ai-config-form #aiConfigMessage { margin-top:8px; font-size:13px; color:var(--teal) }
@media (max-width:560px) { .ai-config-form .form-grid { grid-template-columns:1fr } }

/* Research workspace: compact, scannable desktop layouts. */
.workspace { max-width:1760px; padding-top:14px }
#app { grid-template-columns:180px minmax(0,1fr); gap:16px }
#nav { padding:10px 7px; border-radius:8px; box-shadow:none }
#nav button { padding:8px 10px; margin:1px 0 }
#nav button small { font-size:11px }
.nav-foot { margin-top:14px }
.page-head { margin:0 0 10px; align-items:center }
.page-head h1 { font-size:25px }
.page-head p:not(.page-kicker) { margin-top:2px }
.page-kicker { display:none }
.page-head .context { font-size:11px }
.card { border-radius:8px; padding:15px 18px; margin-bottom:10px; box-shadow:none }
.card .card { border-radius:6px; padding:11px 13px }
.section-stack { gap:10px }
.section-stack > .card:first-child,
.section-stack > .card[data-section="近期公告"],
.section-stack > .card[data-section="AI 研究"],
.section-stack > .card[data-section="预测记录"] { border-top:1px solid var(--line) }
.card h2 { font-size:18px; margin-bottom:8px }
.card h3 { font-size:16px; margin-bottom:8px }
.card h4 { font-size:13px; margin:11px 0 4px }
.card .scroll { border-radius:5px; margin:8px 0 }
th,td { padding:8px 10px }
th { font-size:11px; letter-spacing:.02em }
td { font-size:12px; line-height:1.45 }
td.numeric,th.numeric,.numeric { text-align:right; font-variant-numeric:tabular-nums }
td.numeric small { display:block; color:var(--muted); font-weight:400 }
.pill { border-radius:5px; padding:3px 7px }
.section-links { gap:5px; margin-bottom:9px }
.section-links a { padding:5px 8px; border-radius:5px; font-size:11px }
.section-note { margin-bottom:7px }
.candidate-workspace { padding:14px 16px }
.candidate-workspace > h2 { display:none }
.candidate-status { display:flex; flex-wrap:wrap; gap:0; border:1px solid var(--line); background:#f8fbfb; border-radius:6px; margin:8px 0 11px; overflow:hidden }
.candidate-status span { display:flex; align-items:baseline; gap:5px; padding:7px 11px; border-right:1px solid var(--line); color:var(--muted); white-space:nowrap; font-size:12px }
.candidate-status span:last-child { border:0 }
.candidate-status strong { color:var(--navy); font-size:17px; font-variant-numeric:tabular-nums }
.candidate-status .warning strong { color:var(--amber) }
.candidate-status .signal strong { color:var(--teal) }
.candidate-toolbar { display:flex; flex-wrap:wrap; align-items:flex-end; gap:8px; margin:7px 0 10px }
.candidate-toolbar .field { min-width:112px; font-size:11px }
.candidate-toolbar #day { min-width:132px }
.candidate-toolbar .field input,.candidate-toolbar .field select { min-height:32px; padding:5px 8px }
.candidate-toolbar > button,.candidate-toolbar > a { min-height:32px; display:inline-flex; align-items:center; justify-content:center; padding:5px 10px; font-size:12px }
.candidate-toolbar > a { border:1px solid #b4d3d2; border-radius:6px; background:#edf6f5; text-decoration:none }
.candidate-result-head { display:flex; justify-content:space-between; align-items:baseline; flex-wrap:wrap; gap:5px; border-top:1px solid var(--line); padding-top:9px }
.candidate-result-head strong { color:var(--navy); font-size:15px }
.candidate-result-head span,.ranking-summary { color:var(--muted); font-size:11px }
.ranking-summary { margin:5px 0 6px !important }
.ranking-summary button { padding:3px 7px; font-size:11px }
.status.experimental { background:#eef1f8; color:#4f5d8d }
.status.unavailable { background:#f1f4f5; color:#75838b; font-weight:500 }
.candidate-scroll { max-height:calc(100vh - 360px); min-height:280px }
.candidate-table { min-width:1000px }
.candidate-table th:nth-child(1) { width:92px }
.candidate-table th:nth-child(2) { width:124px }
.candidate-table th:nth-child(3) { width:65px }
.candidate-table th:nth-child(4) { width:92px }
.candidate-table th:nth-child(5) { width:78px }
.candidate-table th:nth-child(6) { width:90px }
.candidate-table th:nth-child(8) { width:122px }
.candidate-table td { vertical-align:middle }
.candidate-table td:first-child { color:var(--muted) }
.candidate-table .stock-code { display:block; font-size:11px; color:var(--muted); font-weight:400 }
.stock-link { background:none; border:0; padding:0; margin:0 !important; color:var(--navy); font-weight:700; text-align:left; border-radius:0 }
.stock-link:hover { color:var(--teal); background:none !important; text-decoration:underline; transform:none !important }
.candidate-table .signal-reason { min-width:300px; max-width:520px; color:#344c58; font-size:12px }
.candidate-table .row-actions { white-space:nowrap }
.candidate-table .row-actions button { padding:4px 7px; font-size:11px; margin:1px 3px 1px 0 }
.candidate-pagination { display:flex; justify-content:flex-end; align-items:center; gap:7px; font-size:12px; color:var(--muted); margin-top:7px }
.candidate-pagination button { padding:5px 8px; font-size:11px }
.candidate-data-detail { margin:8px 0 0 !important; font-size:11px; color:var(--muted) }
.candidate-data-detail summary { font-weight:500 }
.loading-state { padding:20px; color:var(--muted); background:#f7fafb; border:1px solid var(--line); border-radius:5px }
.stock-page-head .stock-head-detail { margin-top:4px; color:var(--muted); font-size:11px }
.stock-head-actions { display:flex; align-items:center; gap:8px }
.stock-head-actions button,.stock-head-actions a { padding:5px 9px; font-size:11px; white-space:nowrap }
.stock-head-actions a { border:1px solid var(--line); border-radius:5px; background:#fff; text-decoration:none }
.stock-lead-quote { margin:2px 0 6px }
.stock-lead-quote strong { font-size:25px }
#content [data-section="行情概览"] .stock-tools { margin:0 0 7px }
#content [data-section="行情概览"] .stock-tools input { min-height:31px }
#content [data-section="行情概览"] .stock-tools button { padding:5px 9px; font-size:12px }
#content [data-section="行情概览"] svg { max-height:330px }
#content [data-section="近期公告"] > .card { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:4px 12px; align-items:start; border:0; border-bottom:1px solid var(--line); background:#fff; padding:9px 0; margin:0 }
#content [data-section="近期公告"] > .card strong { grid-column:1; font-size:13px }
#content [data-section="近期公告"] > .card p { margin:0; font-size:11px }
#content [data-section="近期公告"] > .card p:last-child { grid-column:1/-1 }
#content [data-section="财务资料"] table { min-width:850px }
#content [data-section="AI 研究"] #analysisDetail > .card { background:#f7fafb; border:1px solid var(--line) }
#content [data-section="Qlib Alpha158 + LightGBM 实验"] > h4 { margin-top:14px; border-top:1px solid var(--line); padding-top:11px }
#content [data-section="Qlib Alpha158 + LightGBM 实验"] > h4:first-of-type { margin-top:4px; border:0; padding:0 }
.research-dashboard { min-width:940px }
.research-dashboard .reason-cell { min-width:210px; max-width:360px }
.research-dashboard .notice-cell { min-width:180px }
@media (max-width:1100px) {
  #app { grid-template-columns:156px minmax(0,1fr); gap:12px }
  .candidate-scroll { max-height:none }
}
@media (max-width:760px) {
  #app { display:block }
  .workspace { padding:0 10px 50px }
  .page-head { margin:12px 0 8px; align-items:flex-start }
  .page-head h1 { font-size:21px }
  .stock-page-head { flex-wrap:wrap }
  .stock-head-actions { width:100%; justify-content:flex-start }
  .card { padding:12px }
  .candidate-workspace { padding:12px }
  .candidate-status { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)) }
  .candidate-status span { padding:5px 7px; border-bottom:1px solid var(--line); font-size:11px }
  .candidate-status strong { font-size:15px }
  .candidate-toolbar .field { flex:1 1 100px; min-width:90px }
  .candidate-toolbar #day { min-width:120px }
  .candidate-result-head span { display:block }
  .candidate-scroll { max-height:none; min-height:0 }
  #content [data-section="近期公告"] > .card { display:block }
}

.cell-note { display:block; color:var(--muted); font-size:11px; font-weight:400; margin-top:2px }
.evaluation-table { min-width:960px }
.evaluation-table td { vertical-align:middle }
.evaluation-table td.numeric { font-weight:700 }
.research-dashboard td { vertical-align:top }
.research-dashboard .reason-cell strong { color:var(--muted); font-weight:600 }

/* Daily trend research */
.trend-overview > h2 { display:none }
.trend-metrics { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); border:1px solid var(--line); border-radius:6px; overflow:hidden; margin:9px 0 }
.trend-metric { padding:9px 12px; border-right:1px solid var(--line); background:#f9fbfc }
.trend-metric:last-child { border:0 }
.trend-metric small { display:block; color:var(--muted); font-size:11px }
.trend-metric strong { display:block; color:var(--navy); font-size:20px; line-height:1.25; font-variant-numeric:tabular-nums }
.trend-metric.rise strong { color:var(--rise) }
.trend-metric.fall strong { color:var(--fall) }
.trend-overview h3,.trend-sector h3 { border-top:1px solid var(--line); padding-top:12px; margin-top:15px }
.trend-overview h3:first-of-type { margin-top:7px }
.trend-industry { min-width:850px }
.trend-industry td,.trend-index td,.relative-table td { vertical-align:middle }
.trend-industry th:first-child { width:170px }
.trend-industry .cell-note { white-space:nowrap }
.trend-sector > button:first-child { padding:6px 10px; font-size:12px }
.trend-sector-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:9px 0 }
.trend-sector-period { display:flex; flex-wrap:wrap; gap:6px 14px; border:1px solid var(--line); border-radius:6px; padding:10px 12px; background:var(--soft) }
.trend-sector-period strong { width:100%; color:var(--navy) }
.trend-sector-period small { width:100%; color:var(--muted); font-size:11px }
.relative-table { min-width:1060px }
.relative-table td:last-child { min-width:240px; max-width:350px }
.relative-table th:first-child { width:115px }
.trend-overview .scroll { max-height:480px }
@media (max-width:760px) {
 .trend-metrics { grid-template-columns:repeat(3,minmax(0,1fr)) }
 .trend-metric { padding:7px 8px; border-bottom:1px solid var(--line) }
 .trend-metric strong { font-size:17px }
 .trend-sector-grid { grid-template-columns:1fr }
}

.ohlc-chart { margin:8px 0 2px }
.ohlc-chart svg { display:block; width:100%; max-height:340px; min-height:230px; border-radius:5px; background:#fff }
.chart-readout { min-height:27px; padding:3px 0; color:var(--ink); font-size:12px; font-variant-numeric:tabular-nums }
.ohlc-chart .section-note { margin:5px 0 0 }
@media (max-width:760px) { .ohlc-chart svg { min-height:190px } }

/* Daily shortlist and compact secondary navigation */
#nav .nav-secondary { margin:14px 4px 0; border-top:1px solid var(--line); padding-top:10px }
#nav .nav-secondary summary { cursor:pointer; padding:8px 12px; color:var(--muted); font-weight:700 }
#nav .nav-secondary button { padding-left:22px }
.home-workspace { padding:0 !important; overflow:hidden }
.home-lead { display:flex; justify-content:space-between; gap:24px; align-items:flex-start; background:#f0f7f6; border-bottom:1px solid var(--line); padding:22px 26px }
.home-lead h3 { margin:3px 0 6px; font-size:23px }
.home-lead p { margin:0; color:var(--muted) }
.home-lead-meta { display:grid; gap:4px; font-size:12px; white-space:nowrap; color:var(--muted) }
.home-lead-meta strong { color:var(--ink) }
.home-summary { display:flex; gap:10px 26px; flex-wrap:wrap; padding:14px 26px; border-bottom:1px solid var(--line); background:#fafcfc }
.home-actions { display:flex; gap:8px; flex-wrap:wrap; padding:14px 26px 0 }
.home-list-head { display:flex; align-items:baseline; justify-content:space-between; gap:10px; padding:10px 26px }
.home-list-head h3 { margin:8px 0 }
.home-list-head p { color:var(--muted); margin:0; font-size:12px }
.home-pick { display:flex; gap:18px; border-top:1px solid var(--line); padding:17px 26px }
.home-pick-index { font-size:21px; font-weight:800; color:#9bb0b6; font-variant-numeric:tabular-nums; line-height:1.1 }
.home-pick-body { flex:1; min-width:0 }
.home-pick-heading { display:flex; justify-content:space-between; gap:8px; align-items:start }
.home-pick-heading .stock-link { font-size:17px; font-weight:700 }
.home-pick-metric { margin:7px 0; color:var(--muted) }
.home-pick-metric strong { color:var(--teal); font-variant-numeric:tabular-nums }
.home-pick-metric small { margin-left:7px }
.home-pick-facts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:8px 0 }
.home-pick-facts p { margin:0; padding:9px 11px; background:var(--soft); border:1px solid var(--line); border-radius:7px; font-size:12px }
.home-pick-facts b { display:block; margin-bottom:3px; color:var(--navy) }
.home-pick-actions { display:flex; gap:8px; margin-top:10px }
.home-pick-actions button { padding:6px 11px; font-size:12px }
.home-method { padding:14px 26px; border-top:1px solid var(--line); color:var(--muted) }
.home-workspace #homeTrend { padding:0 26px 20px }
.home-workspace #homeTrend .card { padding:0 }
@media (max-width:950px) {
  .home-lead { flex-direction:column }
  .home-lead-meta { white-space:normal }
  .home-pick-facts { grid-template-columns:1fr }
  .home-list-head { display:block }
}
@media (max-width:720px) {
  #nav .nav-secondary { flex:none; margin:0; padding:0; border:0; position:relative }
  #nav .nav-secondary summary { padding:7px 11px; white-space:nowrap }
  #nav .nav-secondary[open] { background:white }
  #nav .nav-secondary button { display:block; width:100%; padding:7px 11px }
  .home-lead,.home-summary,.home-actions,.home-list-head,.home-pick,.home-method { padding-left:16px; padding-right:16px }
  .home-pick { gap:10px }
}
