/* assets/hesinhthai.css — Hệ sinh thái ĐMST & khởi nghiệp (prefix hst-). Đồng bộ biến màu hệ thống. */
.hst-top{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:0 0 14px}
.hst-top h1{margin:0;font-size:22px;color:var(--navy,#0e2a47)}
.hst-top h1 .sub{font-size:13px;font-weight:400;color:var(--muted,#64748b)}
.hst-cta{background:#7c3aed;color:#fff;text-decoration:none;font-weight:700;font-size:13.5px;border-radius:10px;padding:9px 16px;white-space:nowrap;border:0;cursor:pointer}
.hst-cta:hover{filter:brightness(1.07)}
.hst-cta.ghost{background:#fff;color:#475569;border:1px solid var(--line,#e8edf3)}

.hst-tabs{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 16px;border-bottom:1px solid var(--line,#e8edf3)}
.hst-tab{padding:9px 15px;text-decoration:none;font-size:13.5px;font-weight:700;color:#64748b;border-bottom:2px solid transparent;white-space:nowrap}
.hst-tab.on{color:#7c3aed;border-bottom-color:#7c3aed}
.hst-tab:hover{color:#7c3aed}

.hst-stats{display:flex;flex-wrap:wrap;gap:12px;margin:0 0 16px}
.hst-stat{flex:1;min-width:140px;background:#fff;border:1px solid var(--line,#e8edf3);border-top:3px solid var(--ac,#7c3aed);border-radius:12px;padding:13px 16px}
.hst-stat b{display:block;font-size:23px;font-weight:800;color:var(--navy,#0e2a47);line-height:1.1;font-variant-numeric:tabular-nums}
.hst-stat span{font-size:12px;color:var(--muted,#64748b)}
html.dark .hst-stat{background:#0f1b30;border-color:#1e293b}

/* Pipeline (bản đồ giai đoạn dự án) */
.hst-pipe{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin:0 0 18px}
.hst-pipe .col{background:#fff;border:1px solid var(--line,#e8edf3);border-radius:12px;padding:14px;text-align:center;position:relative}
.hst-pipe .col b{display:block;font-size:26px;font-weight:800;color:#7c3aed;line-height:1}
.hst-pipe .col span{font-size:11.5px;color:#475569;font-weight:600}
.hst-pipe .col .bar{height:5px;border-radius:4px;background:linear-gradient(90deg,#7c3aed,#0891b2);margin-top:8px;opacity:.85}
html.dark .hst-pipe .col{background:#0f1b30;border-color:#1e293b}
@media(max-width:720px){.hst-pipe{grid-template-columns:repeat(2,1fr)}}

/* Deal flow (kanban kết nối) */
.hst-flow{display:grid;grid-template-columns:repeat(6,1fr);gap:8px;margin:0 0 8px}
.hst-flow .fc{background:#f8fafc;border:1px solid var(--line,#e8edf3);border-radius:10px;padding:10px;min-height:60px}
.hst-flow .fc h4{margin:0 0 8px;font-size:11px;text-transform:uppercase;letter-spacing:.3px;color:#64748b;font-weight:800}
.hst-flow .fc .it{background:#fff;border:1px solid var(--line,#e8edf3);border-left:3px solid #7c3aed;border-radius:8px;padding:7px 9px;margin-bottom:6px;font-size:12px;font-weight:600;color:var(--navy,#0e2a47)}
.hst-flow .fc .it small{display:block;font-weight:400;color:#94a3b8;font-size:10.5px}
html.dark .hst-flow .fc{background:#16233a;border-color:#1e293b}
html.dark .hst-flow .fc .it{background:#0f1b30}
@media(max-width:900px){.hst-flow{grid-template-columns:repeat(2,1fr)}}

/* Bộ lọc — gọn, dạng thanh card, không kéo dài toàn chiều ngang */
.hst-filter{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0 0 16px;background:#fff;border:1px solid var(--line,#e8edf3);border-radius:12px;padding:10px 12px}
html.dark .hst-filter{background:#0f1b30;border-color:#1e293b}
.hst-filter input,.hst-filter select{height:36px;border:1px solid var(--line,#e8edf3);border-radius:8px;padding:0 10px;font-size:13px;background:#fff;max-width:180px}
.hst-filter input[type=search]{width:220px;max-width:220px;flex:0 1 220px}
.hst-filter select{width:auto;min-width:140px}
.hst-filter button{height:36px;background:var(--navy,#0e2a47);color:#fff;border:0;border-radius:8px;padding:0 14px;font-weight:700;font-size:13px;cursor:pointer}
.hst-filter .hst-btn-ghost{height:36px;display:inline-flex;align-items:center;background:#fff;color:#475569;border:1px solid var(--line,#e8edf3);border-radius:8px;padding:0 12px;font-size:13px;font-weight:700;text-decoration:none}
.hst-filter .sep{flex:1 1 auto}

/* Chip lọc nhanh */
.hst-chips{display:flex;flex-wrap:wrap;gap:7px;margin:0 0 14px}
.hst-chip-f{font-size:12.5px;font-weight:700;padding:6px 13px;border-radius:20px;background:#f1edfb;color:#6b21a8;text-decoration:none;border:1px solid transparent;transition:.12s}
.hst-chip-f:hover{background:#e9e0fa}
.hst-chip-f.on{background:#7c3aed;color:#fff}
html.dark .hst-chip-f{background:#241a3a;color:#d8b4fe}

/* Dải thống kê nhỏ đầu trang danh sách */
.hst-mini{display:flex;flex-wrap:wrap;gap:11px;margin:0 0 15px}
.hst-mini .m{flex:1;min-width:120px;background:#fff;border:1px solid var(--line,#e8edf3);border-left:4px solid var(--ac,#7c3aed);border-radius:11px;padding:11px 14px}
.hst-mini .m b{display:block;font-size:22px;font-weight:800;color:var(--navy,#0e2a47);line-height:1;font-variant-numeric:tabular-nums}
.hst-mini .m span{font-size:11.5px;color:#64748b}
html.dark .hst-mini .m{background:#0f1b30;border-color:#1e293b;border-left-color:var(--ac,#7c3aed)}

/* Card biểu đồ dashboard tổng quan */
.hst-dash{display:grid;grid-template-columns:repeat(12,1fr);gap:13px;margin:0 0 16px}
.hst-card{background:#fff;border:1px solid var(--line,#e8edf3);border-radius:14px;padding:15px 17px}
html.dark .hst-card{background:#0f1b30;border-color:#1e293b}
.hst-card h3{margin:0 0 12px;font-size:12.5px;font-weight:800;text-transform:uppercase;letter-spacing:.4px;color:#64748b}
.hst-c-3{grid-column:span 3}.hst-c-4{grid-column:span 4}.hst-c-5{grid-column:span 5}.hst-c-7{grid-column:span 7}.hst-c-8{grid-column:span 8}
.hst-bars{display:flex;flex-direction:column;gap:9px}
.hst-bar{display:grid;grid-template-columns:130px 1fr 34px;align-items:center;gap:9px;font-size:12.5px}
.hst-bar .lbl{color:#475569;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hst-bar .track{height:13px;background:#f1edfb;border-radius:7px;overflow:hidden}
.hst-bar .fill{height:100%;border-radius:7px;background:var(--bc,#7c3aed)}
.hst-bar .num{text-align:right;font-weight:800;color:var(--navy,#0e2a47);font-variant-numeric:tabular-nums}
html.dark .hst-bar .track{background:#241a3a}
@media(max-width:900px){ .hst-c-3,.hst-c-4,.hst-c-5,.hst-c-7,.hst-c-8{grid-column:span 12} }

.hst-tbl{width:100%;border-collapse:collapse;background:#fff;border:1px solid var(--line,#e8edf3);border-radius:12px;overflow:hidden}
.hst-tbl th{background:#f1f5f9;text-align:left;font-size:11.5px;text-transform:uppercase;letter-spacing:.3px;color:#475569;padding:11px 13px;font-weight:700}
.hst-tbl td{padding:11px 13px;border-top:1px solid var(--line,#eef2f7);font-size:13.5px;vertical-align:top}
.hst-tbl tr:hover td{background:#f8fafc}
.hst-tbl a.ten{font-weight:700;color:var(--navy,#0e2a47);text-decoration:none}
.hst-tbl a.ten:hover{text-decoration:underline}
.hst-tbl .ma{font-size:11.5px;color:#94a3b8}
html.dark .hst-tbl{background:#0f1b30;border-color:#1e293b}
html.dark .hst-tbl th{background:#16233a;color:#cbd5e1}
html.dark .hst-tbl tr:hover td{background:#16233a}

.hst-badge{display:inline-block;font-size:11px;font-weight:700;padding:3px 9px;border-radius:20px;white-space:nowrap}
.hst-g-y_tuong{background:#e2e8f0;color:#475569}
.hst-g-mvp{background:#dbeafe;color:#1d4ed8}
.hst-g-tang_truong{background:#cffafe;color:#0e7490}
.hst-g-goi_von{background:#fef3c7;color:#b45309}
.hst-g-da_dau_tu{background:#dcfce7;color:#15803d}
.hst-chip{display:inline-block;font-size:11px;font-weight:700;padding:2px 9px;border-radius:6px;background:#f3e8ff;color:#7c3aed}
.hst-empty{padding:30px;text-align:center;color:#94a3b8}

/* Form */
.hst-form{background:#fff;border:1px solid var(--line,#e8edf3);border-radius:14px;padding:20px 22px;max-width:980px}
html.dark .hst-form{background:#0f1b30;border-color:#1e293b}
.hst-sec{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.5px;color:#7c3aed;margin:18px 0 12px;padding-bottom:6px;border-bottom:1px solid var(--line,#eef2f7)}
.hst-sec:first-child{margin-top:0}
.hst-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px 18px}
.hst-grid .full{grid-column:1/-1}
.hst-f label{display:block;font-size:12.5px;font-weight:700;color:#334155;margin-bottom:5px}
html.dark .hst-f label{color:#cbd5e1}
.hst-f input,.hst-f select,.hst-f textarea{width:100%;box-sizing:border-box;border:1px solid var(--line,#e8edf3);border-radius:9px;padding:9px 11px;font-size:13.5px;font-family:inherit}
.hst-f textarea{min-height:70px;resize:vertical}
.hst-actions{display:flex;gap:10px;margin-top:20px;padding-top:16px;border-top:1px solid var(--line,#eef2f7)}
.hst-btn{background:#7c3aed;color:#fff;border:0;border-radius:10px;padding:11px 22px;font-weight:700;font-size:14px;cursor:pointer}
.hst-btn.ghost{background:#fff;color:#475569;border:1px solid var(--line,#e8edf3)}

/* Chi tiết dự án */
.hst-xem-head{background:#fff;border:1px solid var(--line,#e8edf3);border-radius:14px;padding:18px 20px;margin-bottom:16px}
html.dark .hst-xem-head{background:#0f1b30;border-color:#1e293b}
.hst-xem-head h1{margin:0 0 6px;font-size:21px;color:var(--navy,#0e2a47)}
.hst-kv{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:8px 18px;margin-top:12px}
.hst-kv div{font-size:13.5px}.hst-kv b{color:#475569;font-weight:600}
.hst-panel{background:#fff;border:1px solid var(--line,#e8edf3);border-radius:14px;padding:16px 18px;margin-bottom:16px}
html.dark .hst-panel{background:#0f1b30;border-color:#1e293b}
.hst-panel h2{margin:0 0 12px;font-size:15px;color:var(--navy,#0e2a47)}
.hst-mini{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px;margin-bottom:12px}
.hst-mini input,.hst-mini select,.hst-mini textarea{width:100%;box-sizing:border-box;border:1px solid var(--line,#e8edf3);border-radius:8px;padding:8px 10px;font-size:13px;font-family:inherit}
.hst-match{display:flex;flex-wrap:wrap;gap:8px}
.hst-match a{display:block;background:#f3e8ff;color:#6b21a8;text-decoration:none;border-radius:9px;padding:8px 12px;font-size:12.5px;font-weight:700}
.hst-match a small{display:block;font-weight:400;color:#9333ea;font-size:11px}
@media(max-width:720px){.hst-grid{grid-template-columns:1fr}}

/* Cổng công khai */
.hst-pub-card{background:#fff;border:1px solid var(--line,#e8edf3);border-radius:14px;padding:16px;border-top:3px solid var(--ac,#7c3aed)}
.hst-pub-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:14px}
.hst-pub-card h3{margin:0 0 6px;font-size:15px;color:var(--navy,#0e2a47)}
.hst-pub-card p{margin:6px 0;font-size:13px;color:#475569;line-height:1.55}
.hst-pub-card .meta{font-size:12px;color:#64748b}

/* ===== Bản đồ liên kết (network map) ===== */
.hst-net-wrap{display:grid;grid-template-columns:1fr 300px;gap:14px;margin:0 0 16px}
.hst-net{background:#fff;border:1px solid var(--line,#e8edf3);border-radius:14px;padding:10px 8px;position:relative;overflow:auto}
html.dark .hst-net{background:#0f1b30;border-color:#1e293b}
.hst-net-legend{display:flex;flex-wrap:wrap;gap:11px;padding:6px 10px 10px;font-size:11.5px;color:#64748b}
.hst-net-legend span{display:inline-flex;align-items:center;gap:5px}
.hst-net-legend i{width:14px;height:4px;border-radius:2px;display:inline-block}
.hst-net-col{font-size:12px;font-weight:800;fill:#64748b;letter-spacing:.5px}
.hst-node-t{font-size:11.5px;fill:#0e2a47;font-weight:600}
html.dark .hst-node-t{fill:#e2e8f0}
html.dark .hst-node rect{fill:#16233a}
.hst-node.dim{opacity:.32;transition:.15s}
.hst-node.active .hst-node-t{font-weight:800}
.hst-node.active rect{stroke-width:2.4}
.hst-edge{transition:.15s}
.hst-net-panel{background:#fff;border:1px solid var(--line,#e8edf3);border-radius:14px;padding:15px 16px;align-self:start;position:sticky;top:12px}
html.dark .hst-net-panel{background:#0f1b30;border-color:#1e293b}
.hst-net-panel .ph{font-size:13px;color:#475569;font-weight:700;margin-bottom:6px}
.hst-net-panel .hint{font-size:12px;color:#94a3b8;line-height:1.55;margin:6px 0 0}
.hst-net-panel h3{margin:4px 0 10px;font-size:15px;color:var(--navy,#0e2a47);line-height:1.35}
.hst-net-panel .tag{font-size:11px;font-weight:800;padding:3px 9px;border-radius:20px;text-transform:uppercase;letter-spacing:.4px}
.hst-net-panel .tag.da{background:#fef3e7;color:#b45309}.hst-net-panel .tag.nd{background:#ecfdf3;color:#15803d}
.hst-net-panel .kv{display:flex;justify-content:space-between;gap:10px;font-size:12.5px;padding:6px 0;border-bottom:1px dashed var(--line,#eef2f7)}
.hst-net-panel .kv span{color:#64748b}.hst-net-panel .kv b{color:var(--navy,#0e2a47);text-align:right}
.hst-net-panel .pl{font-size:12px;font-weight:800;color:#64748b;margin:12px 0 6px;text-transform:uppercase;letter-spacing:.3px}
.hst-net-panel .pul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:7px}
.hst-net-panel .pul li{background:var(--soft,#f5f3fb);border-radius:9px;padding:8px 11px}
.hst-net-panel .pul b{display:block;font-size:12.5px;color:var(--navy,#0e2a47)}
.hst-net-panel .pul small{font-size:11px;color:#64748b}
.hst-net-panel .pclr{margin-top:12px;width:100%;height:34px;border:1px solid var(--line,#e8edf3);background:#fff;border-radius:8px;color:#475569;font-weight:700;font-size:12.5px;cursor:pointer}
@media(max-width:840px){.hst-net-wrap{grid-template-columns:1fr}.hst-net-panel{position:static}}

/* ===== Funnel (phễu) ===== */
.hst-funnel{display:flex;flex-direction:column;gap:5px;align-items:center;padding:4px 0}
.hst-funnel .fr{height:30px;border-radius:7px;display:flex;align-items:center;justify-content:center;gap:8px;color:#fff;font-size:12px;font-weight:700;min-width:60px;transition:.2s}
.hst-funnel .fr span{opacity:.92}
.hst-funnel .fr b{font-variant-numeric:tabular-nums}

/* ===== Heatmap / top list ===== */
.hst-toplist{display:flex;flex-direction:column;gap:8px}
.hst-toplist .ti{display:grid;grid-template-columns:1fr auto;gap:9px;align-items:center;font-size:12.5px}
.hst-toplist .ti .bar{height:10px;border-radius:6px;background:#f1edfb;overflow:hidden;grid-column:1/-1}
.hst-toplist .ti .bar i{display:block;height:100%;background:linear-gradient(90deg,#7c3aed,#db2777);border-radius:6px}
.hst-toplist .nm{color:#475569;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hst-toplist .vl{font-weight:800;color:var(--navy,#0e2a47)}

/* Timeline cuộc thi */
.hst-timeline{display:flex;flex-direction:column;gap:0}
.hst-timeline .ev{display:grid;grid-template-columns:78px 1fr;gap:11px;padding:8px 0;border-left:2px solid var(--line,#eef2f7);margin-left:6px;padding-left:14px;position:relative}
.hst-timeline .ev:before{content:'';position:absolute;left:-6px;top:13px;width:10px;height:10px;border-radius:50%;background:#7c3aed}
.hst-timeline .ev .dt{font-size:12px;font-weight:800;color:#7c3aed;font-variant-numeric:tabular-nums}
.hst-timeline .ev .nm{font-size:12.5px;color:var(--navy,#0e2a47);font-weight:600}
.hst-timeline .ev .st{font-size:11px;color:#64748b}

/* ===== Công cụ ghép nối (matching có điểm số) ===== */
.hst-mlist{display:flex;flex-direction:column;gap:10px}
.hst-mrow{display:grid;grid-template-columns:54px 1fr auto;gap:13px;align-items:center;background:var(--soft,#f7f5fc);border:1px solid var(--line,#e8edf3);border-radius:12px;padding:11px 14px}
html.dark .hst-mrow{background:#16233a;border-color:#1e293b}
.hst-mscore svg{width:44px;height:44px}
.hst-minfo .ten{font-weight:700;color:var(--navy,#0e2a47);text-decoration:none;font-size:14px}
.hst-minfo .ten:hover{text-decoration:underline}
.hst-minfo .meta{font-size:12px;color:#64748b;margin:2px 0 5px}
.hst-minfo .reasons{display:flex;flex-wrap:wrap;gap:6px}
.hst-minfo .reasons .r{font-size:11px;font-weight:700;color:#15803d;background:#ecfdf3;border-radius:20px;padding:3px 9px}
html.dark .hst-minfo .reasons .r{background:#0e2a1e}
.hst-mbtn{height:34px;background:#7c3aed;color:#fff;border:0;border-radius:8px;padding:0 14px;font-weight:700;font-size:12.5px;cursor:pointer;white-space:nowrap}
.hst-mbtn:hover{filter:brightness(1.08)}
@media(max-width:640px){.hst-mrow{grid-template-columns:44px 1fr}.hst-mrow form{grid-column:1/-1}}
