/* Homepage v4 (owner t254u #8) — loaded after kbg-home-v3.css, only where v4 renders. */
.kbg-home.kbg-home4 .hm4-preview{margin:0 0 10px;padding:6px 10px;border:1px dashed #b7791f;border-radius:10px;background:#fff8ec;color:#7a4f12;font-size:12.5px;font-weight:700}
.kbg-home.kbg-home4 .hm4-preview-note{margin:6px 0 0;font-size:12.5px;color:#7a4f12}
/* hero: promise + one freshness line instead of four KPI tiles */
.kbg-home.kbg-home4 .hm4-hero{padding:20px 18px 16px}
.kbg-home.kbg-home4 .hm4-fresh{display:flex;flex-wrap:wrap;gap:4px 14px;margin:12px 0 0;font-size:12.5px;color:#b9c7dc}
.kbg-home.kbg-home4 .hm4-fresh b{color:#fff;font-weight:800;font-size:13.5px}
.kbg-home.kbg-home4 .hm4-hero .hm-ctas{margin-top:14px}
/* section heads always carry a date / rule on the right */
.kbg-home.kbg-home4 .hm-sec-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:2px 10px}
.kbg-home.kbg-home4 .hm-more{display:inline-block;margin-top:10px;color:var(--acc);font-weight:700;font-size:14px}
/* 最新动态 */
.kbg-home.kbg-home4 .hm4-up-list{list-style:none;margin:8px 0 0;padding:0}
.kbg-home.kbg-home4 .hm4-up{margin:0;border-top:1px solid var(--line)}
.kbg-home.kbg-home4 .hm4-up-a{display:block;padding:9px 0;min-width:0}
.kbg-home.kbg-home4 .hm4-up-top{display:flex;align-items:center;gap:6px;min-width:0}
.kbg-home.kbg-home4 .hm4-up-top time{font-size:12.5px;font-weight:700;color:var(--mut);min-width:34px;flex-shrink:0}
.kbg-home.kbg-home4 .hm4-up-top .hm-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.kbg-home.kbg-home4 .hm4-up-bot{display:flex;align-items:baseline;justify-content:space-between;gap:2px 10px;margin:2px 0 0 40px;font-size:13px;color:var(--mut);min-width:0}
.kbg-home.kbg-home4 .hm4-up-note{min-width:0;overflow-wrap:anywhere}
.kbg-home.kbg-home4 .hm4-pill{flex-shrink:0;font-size:11.5px;font-weight:800;line-height:1.7;border-radius:5px;padding:0 6px;white-space:nowrap;background:#eef2f7;color:var(--brand)}
.kbg-home.kbg-home4 .hm4-pill-s{background:#d9480f;color:#fff}
.kbg-home.kbg-home4 .hm4-pill-ss{background:#b42318;color:#fff}
.kbg-home.kbg-home4 .hm4-pill-new{background:#e6f4ea;color:#1e6b3a}
.kbg-home.kbg-home4 .hm4-pill-re{background:#e8f1f8;color:#0b5c84}
.kbg-home.kbg-home4 .hm4-new{flex-shrink:0;font-size:11px;font-weight:800;color:#d9480f}
.kbg-home.kbg-home4 .hm4-go{color:var(--acc);font-weight:700;white-space:nowrap}
.kbg-home.kbg-home4 .hm4-wait{color:var(--mut);white-space:nowrap;font-size:12.5px}
.kbg-home.kbg-home4 .hm4-up-s,.kbg-home.kbg-home4 .hm4-up-ss{background:linear-gradient(90deg,#fff6ef,transparent 80%)}
/* 本月关注 + 追加 (one card) */
.kbg-home.kbg-home4 .hm4-funnel{list-style:none;display:grid;grid-template-columns:repeat(4,1fr);gap:0;margin:10px 0 0;padding:0;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.kbg-home.kbg-home4 .hm4-funnel li{margin:0;padding:6px 2px;text-align:center;background:var(--bg);border-left:1px solid var(--line);min-width:0}
.kbg-home.kbg-home4 .hm4-funnel li:first-child{border-left:0}
.kbg-home.kbg-home4 .hm4-funnel li:last-child{background:var(--brand);color:#fff}
.kbg-home.kbg-home4 .hm4-funnel b{display:block;font-size:16px;line-height:1.3}
.kbg-home.kbg-home4 .hm4-funnel span{display:block;font-size:11.5px;color:var(--mut)}
.kbg-home.kbg-home4 .hm4-funnel li:last-child span{color:#c9d6ea}
.kbg-home.kbg-home4 .hm4-adds{margin-top:10px;padding:8px 10px;border:1px solid #f3c3a6;border-radius:10px;background:#fff8f2}
.kbg-home.kbg-home4 .hm4-adds-h{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 8px;margin:0}
.kbg-home.kbg-home4 .hm4-adds-h a{font-weight:800;color:#b5430c}
.kbg-home.kbg-home4 .hm4-adds ul{list-style:none;margin:6px 0 0;padding:0}
.kbg-home.kbg-home4 .hm4-adds li{margin:0;padding:5px 0;border-top:1px dashed #f3d3bf}
.kbg-home.kbg-home4 .hm4-adds li>a,.kbg-home.kbg-home4 .hm4-add-in{display:flex;align-items:center;gap:6px;min-width:0}
.kbg-home.kbg-home4 .hm4-adds time{font-size:12.5px;font-weight:700;color:var(--mut);flex-shrink:0}
.kbg-home.kbg-home4 .hm4-adds .hm-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.kbg-home.kbg-home4 .hm4-adds .hm4-go,.kbg-home.kbg-home4 .hm4-adds .hm4-wait{margin-left:auto}
/* 研究发布后表现 */
/* 精选: compact rows, tabs wrap (no horizontal overflow) */
.kbg-home.kbg-home4 .hm-tablist{flex-wrap:wrap;overflow:visible}
.kbg-home.kbg-home4 .hm4-picks{list-style:none;margin:6px 0 0;padding:0}
.kbg-home.kbg-home4 .hm4-pick{margin:0;border-top:1px solid var(--line)}
.kbg-home.kbg-home4 .hm4-pick a{display:flex;align-items:center;gap:8px;padding:8px 0;min-width:0}
.kbg-home.kbg-home4 .hm4-pick-m{display:flex;flex-direction:column;min-width:0;flex:1}
.kbg-home.kbg-home4 .hm4-pick-h{display:flex;align-items:center;gap:6px;min-width:0}
.kbg-home.kbg-home4 .hm4-pick-h .hm-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.kbg-home.kbg-home4 .hm4-pick .hm-row-score{flex-shrink:0}
/* feed: sort chips wrap on phones too (owner t251u: no overflow) */
.kbg-home.kbg-home4 .hm-chips{flex-wrap:wrap;overflow:visible;gap:5px}
.kbg-home.kbg-home4 .hm-chips button{min-height:34px;padding:0 11px;font-size:13px}
.kbg-home.kbg-home4 .hm-tools:has(.hm-chips){flex-direction:column;align-items:stretch}
/* method + archive */
.kbg-home.kbg-home4 .hm4-h3{margin:14px 0 6px!important;font-size:15px!important;font-weight:800;color:var(--ink);border:0!important;background:none!important;padding:0!important}
.kbg-home.kbg-home4 .hm4-h3::before,.kbg-home.kbg-home4 .hm4-h3::after{content:none!important;display:none!important}
.kbg-home.kbg-home4 .hm-steps a{color:var(--acc);font-weight:700}
@container hm (min-width:720px){
 .kbg-home.kbg-home4 .hm4-fresh{font-size:13.5px}
}
.kbg-home.kbg-home4 .hm4-pick a>*,.kbg-home.kbg-home4 .hm4-up-a>*{min-width:0}
.kbg-home.kbg-home4 .hm4-pick .hm-rank{position:static;flex-shrink:0;left:auto;top:auto}   /* v3 pins the rank absolutely on its cards; in v4 rows it sits in the flow so the code stays visible (t266u) */
/* 一眼懂 standard (owner t256u): one fact per line, label column + value, numbers aligned (tabular) */
.kbg-home.kbg-home4 dl.hm4-fresh{display:grid;grid-template-columns:repeat(3,auto);justify-content:start;gap:0 18px;margin:12px 0 0;padding:0}
.kbg-home.kbg-home4 .hm4-fresh dt{font-size:11.5px;color:#b9c7dc;margin:0;white-space:nowrap}
.kbg-home.kbg-home4 .hm4-fresh dd{margin:0;font:800 18px/1.3 var(--ff);color:#fff;font-variant-numeric:tabular-nums}
.kbg-home.kbg-home4 .hm4-fresh dd small{font-size:11.5px;font-weight:600;margin-left:2px;color:#c9d6ea}
.kbg-home.kbg-home4 .hm4-lines{margin:8px 0 0;padding:0;font-size:13px;line-height:1.55}
.kbg-home.kbg-home4 .hm4-lines div{display:grid;grid-template-columns:3em 1fr;gap:8px;padding:3px 0;border-top:1px dashed var(--line)}
.kbg-home.kbg-home4 .hm4-lines div:first-child{border-top:0}
.kbg-home.kbg-home4 .hm4-lines dt{color:var(--mut);font-weight:700;margin:0}
.kbg-home.kbg-home4 .hm4-lines dd{margin:0;color:var(--ink);min-width:0}
.kbg-home.kbg-home4 .hm4-lines-fine{font-size:12px;margin-top:12px}
.kbg-home.kbg-home4 .hm4-lines-fine dd{color:var(--mut)}
.kbg-home.kbg-home4 .hm4-adds-sub{margin:0;font-size:12px;color:var(--mut)}
.kbg-home.kbg-home4 .hm4-up-r{margin-left:auto;flex-shrink:0;padding-left:6px}
.kbg-home.kbg-home4 .hm4-up-r .hm-row-score b{font-size:16px}
