/* 隔夜情报页：在 style.css 的基础上加的。 */
.intel-page { overflow: auto; }
.intel-page #app { height: auto; min-height: 100%; display: flex; flex-direction: column; }
.tool-nav { display: flex; gap: 4px; }
.tool-nav a { padding: 4px 10px; border-radius: 6px; color: #4e5969; text-decoration: none; border: 1px solid transparent; }
.tool-nav a:hover { background: #f2f3f5; }
.tool-nav a.on { background: #e8f3ff; color: var(--accent); border-color: #bedaff; font-weight: 600; }
.actions select { max-width: 230px; }

.newbar {
  background: #e8f3ff; color: var(--accent); padding: 6px 14px; display: flex; gap: 10px; align-items: center;
  border-bottom: 1px solid #bedaff; font-size: 13px;
}
.it-sub {
  display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; padding: 10px 16px 0; max-width: 1360px;
  width: 100%; margin: 0 auto;
}
.read-line { font-size: 13px; color: #4e5969; }
.read-line b { color: var(--text); font-variant-numeric: tabular-nums; }
.read-line .new { color: var(--accent); font-weight: 600; margin-left: 6px; }

.it-tabs {
  display: flex; gap: 2px; padding: 8px 16px 0; max-width: 1360px; width: 100%; margin: 0 auto; overflow-x: auto;
  border-bottom: 1px solid var(--line); scrollbar-width: none;
}
.it-tabs::-webkit-scrollbar { display: none; }
.it-tabs button {
  border: none; border-bottom: 2px solid transparent; border-radius: 0; background: none; padding: 7px 12px; flex: none;
  color: #4e5969;
}
.it-tabs button.on { border-bottom-color: var(--accent); color: var(--accent); font-weight: 600; }
.it-tabs .n { font-size: 12px; color: var(--muted); margin-left: 4px; font-variant-numeric: tabular-nums; }
.it-tabs button.on .n { color: var(--accent); }

.it-main { width: 100%; max-width: 1360px; margin: 0 auto; padding: 12px 16px 24px; flex: 1; min-width: 0; }
.it-empty { padding: 40px; text-align: center; color: var(--muted); }
.it-foot { color: var(--muted); font-size: 12px; text-align: center; padding: 8px 16px 20px; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; margin-bottom: 12px; min-width: 0; }
.card-h { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.card-h b { font-size: 15px; }
.link-btn { margin-left: auto; border: none; background: none; color: var(--accent); padding: 0 2px; font-size: 13px; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 12px; }
.off-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.off-grid.two { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }

/* 一行一条 */
.rows .row {
  display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 2px 10px; padding: 7px 4px; border-bottom: 1px solid #f0f2f5;
  cursor: pointer; position: relative;
}
.rows .row:last-child { border-bottom: none; }
.rows .row:hover { background: #f7faff; }
.rows .row.read { opacity: .62; }
.row .tm { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; padding-top: 2px; white-space: nowrap; }
.row .bd { min-width: 0; }
.row .l1 { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.row .stk { font-weight: 600; white-space: nowrap; }
.row .stk .cd { color: var(--muted); font-weight: 400; font-size: 12px; margin-left: 3px; }
.row .ttl { overflow-wrap: anywhere; }
.row .meta { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 3px; font-size: 12px; color: #4e5969; align-items: center; }
.row .why { color: #1d2129; background: #f2f3f5; border-radius: 4px; padding: 0 6px; }
.row.key .why { background: #fff4e5; color: #8a4b00; }
.row .gist { margin-top: 3px; font-size: 13px; color: #1d2129; }
.row .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.row .cpt { color: var(--accent); cursor: pointer; }
.row .cpt:hover { text-decoration: underline; }
.row .dot { position: absolute; left: 0; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.tag { display: inline-block; font-size: 11px; border-radius: 4px; padding: 0 5px; line-height: 18px; white-space: nowrap; }
.tag.cat { background: #f2f3f5; color: #4e5969; }
.tag.key { background: #fff1f0; color: #c92a2a; font-weight: 600; }
.tag.mine { background: #e8f3ff; color: var(--accent); }
.tag.mk { background: #f3f0ff; color: #5f3dc4; }
.tag.mk.t1 { background: #fff1f0; color: #c92a2a; font-weight: 600; }
.tag.red { background: #fff1f0; color: #c92a2a; }
.tag.good { background: #ebfbee; color: #2b8a3e; }
.tag.deny { background: #f8f0fc; color: #862e9c; }
.tag.meh { background: #f2f3f5; color: var(--muted); }
.up { color: var(--up); }
.down { color: var(--down); }

.grp-h { font-size: 12px; color: var(--muted); margin: 10px 0 2px; font-weight: 600; }
.grp-h:first-child { margin-top: 0; }

.brief { margin: 0; padding-left: 20px; }
.brief li { margin: 6px 0; line-height: 1.6; }
.brief .refs { margin-left: 6px; }
.brief .refs a { font-size: 12px; margin-right: 6px; color: var(--accent); cursor: pointer; }

/* 热度 */
.heat { display: grid; grid-template-columns: minmax(0, 7em) minmax(0, 1fr) auto; gap: 4px 8px; align-items: center; font-size: 13px; }
.heat .nm { color: var(--accent); cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.heat .bar { height: 8px; background: #f2f3f5; border-radius: 4px; position: relative; overflow: hidden; }
.heat .bar i { position: absolute; left: 0; top: 0; bottom: 0; background: #ffa94d; border-radius: 4px; }
.heat .bar b { position: absolute; top: -1px; bottom: -1px; width: 2px; background: #495057; }
.heat .v { font-variant-numeric: tabular-nums; color: #4e5969; white-space: nowrap; font-size: 12px; }

.fc-sum { display: flex; flex-wrap: wrap; gap: 6px; }
.fc-sum button { font-size: 13px; }

/* 筛选 */
.filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.filters input[type=search] { flex: 1; min-width: 160px; max-width: 320px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.seg button { border: none; border-radius: 0; border-right: 1px solid var(--line); padding: 4px 10px; }
.seg button:last-child { border-right: none; }
.seg button.on { background: var(--accent); color: #fff; }
.seg .n { margin-left: 3px; font-size: 12px; opacity: .8; }
.chk { display: inline-flex; gap: 4px; align-items: center; font-size: 13px; color: #4e5969; white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.chips button { border-radius: 14px; padding: 2px 10px; font-size: 12px; background: #f7f8fa; }
.chips button.on { background: #e8f3ff; border-color: #bedaff; color: var(--accent); font-weight: 600; }
.more { text-align: center; padding: 10px; }
.qa-note { margin: -2px 0 8px; }

.ann-rows { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 2px 10px; }

/* 抽屉：右侧详情 */
.drawer-mask { position: fixed; inset: 0; background: rgba(0, 0, 0, .18); z-index: 40; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(620px, 100vw); background: var(--panel); z-index: 41;
  box-shadow: -8px 0 24px rgba(0, 0, 0, .12); display: flex; flex-direction: column;
}
.drawer-h { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px; border-bottom: 1px solid var(--line); }
.drawer-body { overflow-y: auto; padding: 12px 16px 30px; flex: 1; }
.d-title { font-size: 17px; font-weight: 700; line-height: 1.5; margin-bottom: 6px; overflow-wrap: anywhere; }
.d-sub { color: var(--muted); font-size: 12px; display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.d-sub a { color: var(--accent); }
.d-sec { margin: 14px 0 6px; font-weight: 700; font-size: 14px; }
.d-why { display: flex; flex-wrap: wrap; gap: 6px; }
.d-why span { background: #fff4e5; color: #8a4b00; border-radius: 4px; padding: 2px 8px; font-size: 13px; }
.d-pts { margin: 0; padding-left: 18px; }
.d-pts li { margin: 4px 0; line-height: 1.6; }
.d-text { white-space: pre-wrap; line-height: 1.75; font-size: 13.5px; color: #1d2129; background: #fafbfc; border: 1px solid #f0f2f5;
  border-radius: 6px; padding: 10px 12px; max-height: 60vh; overflow-y: auto; overflow-wrap: anywhere; }
.d-gist { background: #f3f0ff; border-radius: 6px; padding: 8px 10px; line-height: 1.7; }
.d-gist .src { font-size: 11px; color: #5f3dc4; }
.d-stats { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.d-stats table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.d-stats th, .d-stats td { padding: 5px 8px; text-align: right; border-bottom: 1px solid #f0f2f5; white-space: nowrap; }
.d-stats th:first-child, .d-stats td:first-child { text-align: left; }
.d-stats th { background: #f7f8fa; color: #4e5969; font-weight: 600; }
.d-stats .note { font-size: 12px; color: var(--muted); padding: 6px 8px; }
.d-stock { border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; margin-bottom: 8px; }
.d-stock .hd { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.d-stock .hd b { font-size: 15px; }
.d-stock .kv { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: #4e5969; margin-top: 4px; }
.d-stock .kv span b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.d-fb { display: flex; gap: 8px; align-items: center; margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); }
.d-fb button.on { background: #e8f3ff; border-color: #bedaff; color: var(--accent); }

/* 投喂 */
.feed-form { display: flex; flex-direction: column; gap: 8px; }
.feed-act { display: flex; justify-content: space-between; align-items: center; }
.feeds .fd { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; margin-bottom: 10px; }
.fd .hd { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.fd .hd b { font-size: 15px; overflow-wrap: anywhere; }
.fd .hd .x { margin-left: auto; }
.fd .one { margin: 6px 0; line-height: 1.6; }
.fd .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fd .cols ul { margin: 2px 0; padding-left: 18px; }
.fd .cols li { margin: 2px 0; line-height: 1.55; font-size: 13px; }
.fd .lbl { font-size: 12px; color: var(--muted); font-weight: 600; }
.fd .stks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; font-size: 13px; }
.fd .stks span { background: #f7f8fa; border: 1px solid var(--line); border-radius: 12px; padding: 1px 8px; cursor: pointer; }

.dlg { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; width: min(440px, calc(100vw - 32px)); }
.dlg-wide { width: min(720px, calc(100vw - 32px)); }
.dlg::backdrop { background: rgba(0, 0, 0, .25); }
.dlg-title { font-weight: 700; font-size: 16px; margin-bottom: 10px; }
.dlg-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.dlg .blk { display: flex; flex-direction: column; gap: 4px; margin: 10px 0; font-size: 13px; color: #4e5969; }
.dlg textarea, .dlg input:not([type=checkbox]) { width: 100%; }
.help p { line-height: 1.7; margin: 8px 0; }
.help ul { margin: 4px 0; padding-left: 20px; }
.help li { line-height: 1.7; margin: 4px 0; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #1d2129; color: #fff;
  padding: 8px 14px; border-radius: 8px; font-size: 13px; z-index: 60; max-width: calc(100vw - 32px);
}
.busy { opacity: .55; pointer-events: none; }

@media (max-width: 1100px) {
  .off-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .home-grid, .off-grid, .off-grid.two { grid-template-columns: minmax(0, 1fr); }
  .fd .cols { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .top .actions { margin-left: 0; }
  .actions select { max-width: 100%; }
  .it-main { padding: 10px 16px 20px; }
  .rows .row { grid-template-columns: 40px minmax(0, 1fr); gap: 2px 8px; }
  .drawer { width: 100vw; }
}

/* 研究员：夜读、主线、研判 */
.read-ov { font-size: 15px; line-height: 1.7; margin: 2px 0 8px; font-weight: 600; }
.main { border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; margin: 8px 0; background: #fcfcfd; }
.main .hd { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.main .hd b { font-size: 15px; }
.main .tx { margin: 4px 0 6px; line-height: 1.65; }
.chain { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 6px 0; font-size: 13px; }
.chain .nd { background: #eef2ff; color: #364fc7; border-radius: 12px; padding: 1px 9px; }
.chain .ar { color: var(--muted); }
.ben { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12.5px; margin: 3px 0; }
.ben .lb { color: var(--muted); }
.ben .bn { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 1px 8px; cursor: pointer; }
.ben .bn.up { border-color: #ffc9c9; color: #c92a2a; }
.ben .bn.dn { border-color: #b2f2bb; color: #2b8a3e; }
.ben .bn small { color: var(--muted); margin-left: 3px; }
.main .vf { font-size: 12.5px; color: #4e5969; margin-top: 4px; }
.main .mine { font-size: 12.5px; background: #e8f3ff; color: var(--accent); border-radius: 6px; padding: 3px 8px; margin-top: 6px; }
.main .refs a, .brief .refs a { font-size: 12px; margin-right: 6px; color: var(--accent); cursor: pointer; }
.jd { display: inline-block; font-size: 11px; border-radius: 4px; padding: 0 6px; line-height: 18px; font-weight: 600; white-space: nowrap; }
.jd.up { background: #fff1f0; color: #c92a2a; }
.jd.dn { background: #ebfbee; color: #2b8a3e; }
.jd.mx { background: #fff4e5; color: #b25e00; }
.jd.nt { background: #f2f3f5; color: #4e5969; }
.st { display: inline-block; font-size: 11px; border-radius: 4px; padding: 0 6px; line-height: 18px; }
.st.升温 { background: #fff1f0; color: #c92a2a; } .st.持续 { background: #fff4e5; color: #b25e00; }
.st.降温 { background: #e7f5ff; color: #1c7ed6; } .st.证伪, .st.结束 { background: #f2f3f5; color: var(--muted); }
.d-judge { border: 1px solid #ffd8a8; background: #fffaf3; border-radius: 8px; padding: 10px 12px; }
.d-judge .jtop { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.d-judge .kv3 { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: #4e5969; margin-bottom: 6px; }
.d-judge .kv3 b { color: var(--text); }
.d-judge p { margin: 6px 0; line-height: 1.7; }
.d-judge .imp { font-size: 13px; margin: 2px 0; }
.d-logic .step { display: flex; gap: 6px; align-items: baseline; margin: 4px 0; line-height: 1.6; }
.d-logic .step .tag { flex: none; }
.notes-tl { border-left: 2px solid var(--line); margin-left: 6px; padding-left: 12px; }
.notes-tl .nt { margin: 10px 0; }
.notes-tl .nt .dd { font-size: 12px; color: var(--muted); }
.track { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.track td, .track th { padding: 4px 6px; border-bottom: 1px solid #f0f2f5; text-align: right; }
.track td:first-child, .track th:first-child { text-align: left; }
.track th { color: #4e5969; font-weight: 600; background: #f7f8fa; }
.track-wrap { overflow-x: auto; }
.track th { white-space: nowrap; cursor: help; }
.track td { white-space: nowrap; }
#track-box .track td, #track-box .track th { padding: 4px 4px; font-size: 12.5px; }
.track tr.few td { color: #86909c; }
.warn-line { color: #b35c00; margin-top: 2px; }

/* 问研究员 */
.drawer.chat { z-index: 39; }
.chat-body { display: flex; flex-direction: column; gap: 12px; }
.qa-q { align-self: flex-end; background: #e8f3ff; border-radius: 10px 10px 2px 10px; padding: 7px 11px; max-width: 85%; }
.qa-a { align-self: flex-start; background: #f7f8fa; border: 1px solid var(--line); border-radius: 10px 10px 10px 2px; padding: 8px 12px;
  max-width: 95%; white-space: pre-wrap; line-height: 1.7; overflow-wrap: anywhere; }
.qa-a .rf { color: var(--accent); cursor: pointer; font-size: 12px; }
.qa-src { font-size: 12px; margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.qa-src a { color: var(--accent); cursor: pointer; }
.qa-meta { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.chat-form { border-top: 1px solid var(--line); padding: 10px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.chat-row { display: flex; gap: 8px; }
.chat-row textarea { flex: 1; }
.chat-ex { display: flex; flex-wrap: wrap; gap: 6px; }
.chat-ex button { font-size: 12px; border-radius: 12px; padding: 2px 9px; background: #f7f8fa; }

/* 今晚三分钟 */
.brief3 { border-color: #bedaff; }
.b3-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 4px 18px; }
.b3-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
.b3-row .tm { font-size: 11px; white-space: normal; line-height: 1.3; }
@media (max-width: 860px) { .b3-grid { grid-template-columns: minmax(0, 1fr); } }
.src-note { text-align: right; margin: 8px 2px 0; }
.b3-cal { font-size: 13px; color: var(--muted); margin: -2px 0 8px; cursor: pointer; line-height: 1.6; }
.b3-cal:hover { color: var(--text); }
.cal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.cal-day { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; display: flex; flex-direction: column; gap: 4px; }

