/* VulnFeed — HackerTop 漏洞预警频道 */
/* Design matching Figma prototype at http://127.0.0.1:5174/vulnfeed */

.ht-vf-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 16px 64px;
  color: var(--ht-tx2, #c9d1d9);
}

/* ── Two-column grid ── */
.ht-vf-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 386px;
  gap: 22px;
  align-items: start;
}
.ht-vf-main { min-width: 0; }
.ht-vf-sidebar { display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 900px) {
  .ht-vf-grid { grid-template-columns: 1fr; }
}

/* ── Terminal header ── */
.ht-vf-term-hdr {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
  font-family: var(--ht-display, 'Share Tech Mono', monospace);
  font-size: 11px;
  color: var(--ht-tx3, #6b8f6b);
}
.ht-vf-term-promp {
  color: var(--ht-green, #00ff41);
  text-shadow: 0 0 8px rgba(0,255,65,.3);
}
.ht-vf-term-cursor {
  width: 0;
  height: 0;
  display: none;
  border-radius: 2px;
  background: rgba(0, 255, 65, .85);
  box-shadow: 0 0 10px rgba(0,255,65,.35);
  animation: htVfBlink 1s steps(1, end) infinite;
}
@keyframes htVfBlink {
  50% { opacity: 0; }
}

/* ── Heading ── */
.ht-vf-hdr {
  margin-bottom: 20px;
  border: 0;
  box-shadow: none;
  background: transparent;
  position: relative;
}
.ht-vf-hdr::after { content: none; }
.ht-vf-title {
  font-family: var(--ht-display, 'Share Tech Mono', monospace);
  font-size: 26px;
  color: var(--ht-tx1, #e2e8f0);
  letter-spacing: 0;
  line-height: 1.02;
  margin-bottom: 4px;
}
.ht-vf-title-accent {
  color: #ff0040;
  text-shadow: 0 0 8px rgba(255,0,64,.14);
}
.ht-vf-subtitle {
  color: #6b8f6b;
  font-size: 11px;
  line-height: 1.42;
  opacity: .9;
  letter-spacing: 0;
  max-width: 680px;
}
.ht-vf-hdr-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.ht-vf-submit-entry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 15px;
  border: 1px solid rgba(0, 255, 65, .28);
  border-radius: 9px;
  background:
    linear-gradient(135deg, rgba(0, 255, 65, .08), rgba(0, 212, 255, .04)),
    rgba(5, 18, 8, .78);
  color: var(--ht-green, #00ff41);
  font-family: var(--ht-display, 'Share Tech Mono', monospace);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 0 18px rgba(0, 255, 65, .05), inset 0 0 14px rgba(0, 255, 65, .03);
  white-space: nowrap;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.ht-vf-submit-entry svg {
  width: 13px;
  height: 13px;
}
.ht-vf-submit-entry:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 255, 65, .45);
  background:
    linear-gradient(135deg, rgba(0, 255, 65, .12), rgba(0, 212, 255, .06)),
    rgba(5, 18, 8, .9);
}
@media (max-width: 680px) {
  .ht-vf-hdr-row { flex-direction: column; align-items: stretch; }
  .ht-vf-submit-entry { width: auto; align-self: flex-start; }
}

/* ── Stats Row ── */
.ht-vf-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.ht-vf-stat {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  background: var(--ht-card, #0a140a);
  border: 1px solid var(--ht-border, #1a3a1a);
  border-radius: 10px;
  min-width: 0;
}
.ht-vf-stat-critical {
  background: rgba(255,0,64,.03);
  border-color: rgba(255,0,64,.18);
}
.ht-vf-stat-high {
  background: rgba(255,170,0,.03);
  border-color: rgba(255,170,0,.18);
}
.ht-vf-stat-unpatched {
  background: rgba(255,0,64,.03);
  border-color: rgba(255,0,64,.18);
}
.ht-vf-stat-icon {
  width: 18px;
  height: 18px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ht-vf-stat-icon-critical { background: transparent; color: #ff0040; }
.ht-vf-stat-icon-high     { background: transparent; color: #ffaa00; }
.ht-vf-stat-icon-unpat    { background: transparent; color: #ff0040; }
.ht-vf-stat-icon svg { width: 18px; height: 18px; }
.ht-vf-stat-val {
  font-family: var(--ht-display, 'Share Tech Mono', monospace);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}
.ht-vf-stat-lbl { color: var(--ht-tx4, #4a6a4a); font-size: 10px; margin-top: 2px; }

/* ── Search/Toolbar ── */
.ht-vf-toolbar {
  display: flex;
  gap: 9px;
  margin-bottom: 12px;
  flex-wrap: nowrap;
  align-items: center;
}
.ht-vf-search {
  flex: 1;
  min-width: 280px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  background: var(--ht-card, #0a140a);
  border: 1px solid var(--ht-border, #1a3a1a);
  border-radius: 9px;
  color: var(--ht-tx3, #6b8f6b);
}
.ht-vf-search svg { width: 14px; height: 14px; flex-shrink: 0; }
.ht-vf-search input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--ht-tx1, #e2e8f0);
  font-family: var(--ht-mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  outline: none;
}
.ht-vf-search input::placeholder { color: #4a6a4a; }
.ht-vf-filter-group {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: nowrap;
  flex-shrink: 0;
}
.ht-vf-filter-lbl {
  color: var(--ht-tx4, #2a4a4a);
  font-size: 10px;
  letter-spacing: .08em;
  margin-right: 4px;
}
/* ── Filters ── */
.ht-vf-filter-btn {
  padding: 4px 9px;
  border-radius: 5px;
  border: 1px solid var(--ht-border, #1a3a1a);
  background: transparent;
  color: var(--ht-tx3, #6b8f6b);
  font-size: 9px;
  font-family: var(--ht-mono, 'JetBrains Mono', monospace);
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.ht-vf-filter-btn:hover { color: var(--ht-green, #00ff41); border-color: rgba(0,255,65,.3); background: rgba(0,255,65,.05); }
.ht-vf-filter-btn.active { color: var(--ht-green, #00ff41); border-color: rgba(0,255,65,.4); background: rgba(0,255,65,.08); }

.ht-vf-result-count {
  color: var(--ht-tx4, #2a4a4a);
  font-size: 10px;
  margin-bottom: 8px;
}

/* ── CVE Cards ── */
.ht-vf-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  margin-bottom: 10px;
  background: var(--ht-card, #0a140a);
  border: 1px solid var(--ht-border, #1a3a1a);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color .2s, background .2s;
}
.ht-vf-card:hover {
  border-color: rgba(55,105,55,.72);
  background: color-mix(in srgb, var(--ht-card, #0a140a) 82%, var(--ht-hover, #0f1f0f) 18%);
}

/* Left severity edge bar */
.ht-vf-card-edge {
  width: 4px;
  align-self: stretch;
  margin: 0;
  border-radius: 2px;
  flex-shrink: 0;
}

/* CVSS score box */
.ht-vf-score-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 6px 10px;
  min-width: 56px;
  flex-shrink: 0;
  border: 1px solid;
  align-self: flex-start;
  box-sizing: border-box;
  margin-top: 0;
}
.ht-vf-score-box strong {
  font-family: var(--ht-display, 'Share Tech Mono', monospace);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
}
.ht-vf-score-box span {
  font-size: 9px;
  color: var(--ht-tx4, #2a4a4a);
  margin-top: 2px;
  letter-spacing: 0;
}

.ht-vf-card-m {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}
.ht-vf-card-head {
  display: flex;
  align-items: center;
  gap: 6px;
  row-gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 6px;
  line-height: 1;
}
.ht-vf-cve {
  font-family: var(--ht-mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  color: var(--ht-cyan, #00d4ff);
  letter-spacing: .04em;
  line-height: 1;
}
.ht-vf-sev {
  font-size: 10px;
  letter-spacing: .06em;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 500;
  border: 1px solid;
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
  line-height: 1;
  box-shadow: none;
}
.ht-vf-type {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(15,31,15,.7);
  color: rgba(146,186,146,.82);
  border: 1px solid rgba(38,76,38,.7);
  display: inline-flex;
  align-items: baseline;
  line-height: 1;
  font-weight: 500;
}
.ht-vf-pill {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
  display: inline-flex;
  align-items: baseline;
  line-height: 1;
  font-weight: 500;
}
.ht-vf-pill.patched { background: rgba(0,255,65,.06); color: rgba(111,255,111,.92); border: 1px solid rgba(0,255,65,.24); }
.ht-vf-pill.unpatched { background: rgba(255,0,64,.08); color: rgba(255,96,137,.92); border: 1px solid rgba(255,0,64,.24); }
.ht-vf-tag {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
  display: inline-flex;
  align-items: baseline;
  line-height: 1;
  font-weight: 500;
}
.ht-vf-tag.poc { background: rgba(255,170,0,.08); color: rgba(255,196,96,.96); border: 1px solid rgba(255,170,0,.24); }
.ht-vf-tag.exploited { background: rgba(255,170,0,.08); color: rgba(255,196,96,.96); border: 1px solid rgba(255,170,0,.24); }

.ht-vf-card-title {
  font-size: 11px;
  color: var(--ht-tx2, #c9d1d9);
  line-height: 1.16;
  margin-bottom: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
  padding: 0;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-decoration: none;
}
.ht-vf-card .ht-vf-card-m > .ht-vf-card-title {
  display: -webkit-box;
  padding: 0;
  margin: 0;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--ht-tx2, #c9d1d9);
  font-size: 13px;
  line-height: 1.35;
  margin-bottom: 5px;
  text-decoration: none;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.ht-vf-card-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 11px;
  line-height: 1.35;
  color: var(--ht-tx4, #2a4a4a);
  margin-top: 0;
  margin-bottom: 0;
  min-width: 0;
  padding: 0;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.ht-vf-card-meta svg { vertical-align: -2px; }
.ht-vf-product {
  color: #a0ffa0;
  display: inline-block;
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: 0;
}
.ht-vf-time { color: var(--ht-tx4, #4a6a4a); display: flex; align-items: center; gap: 3px; flex-shrink: 0; opacity: .88; }
.ht-vf-systems { color: var(--ht-tx4, #4a6a4a); flex-shrink: 0; opacity: .88; }

.ht-vf-card-ftr {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 10px;
  padding-top: 0;
  border-top: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.ht-vf-lifecycle {
  font-size: 9px;
  font-family: var(--ht-mono, 'JetBrains Mono', monospace);
  color: #2a4a2a;
  flex-shrink: 0;
  margin-right: 4px;
  white-space: nowrap;
}

/* 7-segment lifecycle dots */
.ht-vf-life-segs {
  display: flex;
  gap: 3px;
  align-items: center;
  flex: 1;
  min-height: 4px;
  border: 0;
  box-shadow: none;
}
.ht-vf-life-seg {
  width: 20px;
  height: 4px;
  border-radius: 2px;
  flex-shrink: 0;
}
.ht-vf-life-seg.done { background: #00ff41; }
.ht-vf-life-seg.warn { background: #ffaa00; }
.ht-vf-life-seg.todo { background: #1a3a1a; }

.ht-vf-analysis {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 16px;
  border-radius: 5px;
  border: 1px solid;
  font-size: 11px;
  font-weight: 500;
  font-family: var(--ht-mono, 'JetBrains Mono', monospace);
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
  margin-left: auto;
  align-self: flex-start;
  line-height: 1;
  box-shadow: none;
}

/* ── Pagination ── */
.ht-vf-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
  padding: 10px 0 0;
  flex-wrap: wrap;
}
.ht-vf-pg-info {
  color: #4a6a4a;
  font-size: 10px;
  font-family: var(--ht-mono, 'JetBrains Mono', monospace);
}
.ht-vf-pg-btns {
  display: flex;
  gap: 4px;
  align-items: center;
}
.ht-vf-pg-btns a,
.ht-vf-pg-btns span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 28px;
  padding: 0 5px;
  border-radius: 4px;
  border: 1px solid var(--ht-border, #1a3a1a);
  color: var(--ht-tx3, #6b8f6b);
  font-size: 11px;
  text-decoration: none;
  transition: all .15s;
  font-family: var(--ht-mono, 'JetBrains Mono', monospace);
  background: transparent;
}
.ht-vf-pg-btns a:hover:not(.pagination_current) {
  color: var(--ht-green, #00ff41);
  border-color: rgba(0,255,65,.24);
}
.ht-vf-pg-btns .pagination_current {
  color: #ff0040;
  border-color: rgba(255,0,64,.32);
  background: rgba(255,0,64,.08);
}
.ht-vf-pg-btns .disabled {
  color: #2a4a2a;
  cursor: not-allowed;
  opacity: .5;
}
.ht-vf-pg-btns .pagination_previous,
.ht-vf-pg-btns .pagination_next {
  padding: 5px 9px;
}

/* ── Charts (stacked in sidebar) ── */
.ht-vf-charts {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ht-vf-chart-card {
  background: var(--ht-card, #0a140a);
  border: 1px solid var(--ht-border, #1a3a1a);
  border-radius: 10px;
  padding: 15px 15px 13px;
}
.ht-vf-chart-title {
  font-family: var(--ht-display, 'Share Tech Mono', monospace);
  font-size: 11px;
  color: var(--ht-tx2, #c9d1d9);
  letter-spacing: .06em;
  margin-bottom: 9px;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Trend bars */
.ht-vf-bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  height: 88px;
  gap: 9px;
  margin-bottom: 8px;
}
.ht-vf-bar-pair {
  height: 100%;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 5px;
}
.ht-vf-bars i {
  display: block;
  width: 7px;
  border-radius: 3px 3px 2px 2px;
}
.ht-vf-bars i.critical {
  background: linear-gradient(180deg, #ff0040, rgba(255,0,64,.18));
}
.ht-vf-bars i.high {
  background: linear-gradient(180deg, #ffaa00, rgba(255,170,0,.18));
}
.ht-vf-legend {
  display: flex;
  gap: 12px;
}
.ht-vf-legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 8px;
  color: var(--ht-tx3, #6b8f6b);
}
.ht-vf-legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

/* Type distribution */
.ht-vf-dist-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.ht-vf-dist-label {
  width: 102px;
  font-size: 9px;
  color: var(--ht-tx2, #c9d1d9);
  flex-shrink: 0;
}
.ht-vf-dist-bar {
  flex: 1;
  height: 5px;
  border-radius: 3px;
  background: #071107;
  overflow: hidden;
}
.ht-vf-dist-fill {
  height: 100%;
  border-radius: 3px;
  transition: width .4s ease;
  box-shadow: none;
}
.ht-vf-dist-count {
  width: 22px;
  text-align: right;
  font-size: 9px;
  color: var(--ht-tx3, #6b8f6b);
  font-family: var(--ht-display, 'Share Tech Mono', monospace);
}

/* Top products */
.ht-vf-prod-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid #0f1f0f;
}
.ht-vf-prod-row:last-child { border-bottom: none; }
.ht-vf-prod-name {
  flex: 1;
  min-width: 0;
  font-size: 10px;
  color: #8b949e;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ht-vf-prod-num {
  font-size: 8px;
  color: #ff0040;
  background: rgba(255,0,64,.08);
  border: 1px solid rgba(255,0,64,.24);
  padding: 2px 5px 1px;
  border-radius: 2px;
  white-space: nowrap;
  letter-spacing: .04em;
}

/* Bar labels */
.ht-vf-bar-labels {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-top: 4px;
  margin-bottom: 8px;
}
.ht-vf-bar-labels span {
  text-align: center;
  font-size: 9px;
  color: #4a6a4a;
}

/* ── Subscription ── */
.ht-vf-sub {
  margin-top: 24px;
  padding: 17px 15px 15px;
  background: linear-gradient(180deg, rgba(4,16,6,.96), rgba(3,11,4,.96));
  border: 1px solid var(--ht-border, #1a3a1a);
  border-radius: 10px;
  text-align: left;
}
.ht-vf-sub-title {
  font-family: var(--ht-display, 'Share Tech Mono', monospace);
  font-size: 14px;
  color: var(--ht-tx1, #e2e8f0);
  margin-bottom: 6px;
}
.ht-vf-sub-desc {
  color: var(--ht-tx4, #2a4a4a);
  font-size: 11px;
  margin-bottom: 10px;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  line-height: 1.5;
}
.ht-vf-sub-form {
  display: flex;
  gap: 8px;
  max-width: none;
  margin: 0;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.ht-vf-sub-msg {
  min-height: 16px;
  margin-top: 8px;
  font-size: 11px;
  font-family: var(--ht-mono, 'JetBrains Mono', monospace);
}
.ht-vf-sub-msg.ok { color: #00ff41; }
.ht-vf-sub-msg.err { color: #ff0040; }
.ht-vf-sub-input {
  flex: 1;
  min-width: 200px;
  padding: 9px 11px;
  background: #050c05;
  border: 1px solid var(--ht-border, #1a3a1a);
  border-radius: 6px;
  color: var(--ht-tx1, #e2e8f0);
  font-family: var(--ht-mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  outline: none;
  transition: border-color .2s;
  box-sizing: border-box;
}
.ht-vf-sub-input:focus { border-color: rgba(0,255,65,.4); }
.ht-vf-sub-input::placeholder { color: #4a6a4a; }
.ht-vf-sub-btn {
  padding: 9px 14px;
  border-radius: 6px;
  border: 1px solid rgba(0,255,65,.4);
  background: rgba(0,255,65,.1);
  color: var(--ht-green, #00ff41);
  font-family: var(--ht-mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.ht-vf-sub-btn:hover { background: rgba(0,255,65,.18); }

/* ── Empty state ── */
.ht-vf-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--ht-tx4, #2a4a4a);
  font-size: 13px;
}

/* ── Detail page ── */
.ht-vf-page.detail { max-width: 1280px; }

/* Breadcrumb + terminal */
.ht-vf-detail-crumb {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.ht-vf-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  color: #4a6a4a;
  font-size: 12px;
  font-family: var(--ht-mono, 'JetBrains Mono', monospace);
  padding: 0;
  text-decoration: none;
  transition: color .2s;
}
.ht-vf-detail-back:hover { color: var(--ht-green, #00ff41); }
.ht-vf-detail-slash { color: #1a3a1a; font-size: 12px; }
.ht-vf-detail-cve-id { color: #2a5a2a; font-size: 12px; font-family: var(--ht-mono, 'JetBrains Mono', monospace); }
.ht-vf-detail-term {
  color: #2a4a2a;
  font-size: 11px;
  font-family: var(--ht-mono, 'JetBrains Mono', monospace);
  margin-bottom: 16px;
}

/* Hero section */
.ht-vf-detail-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #070f07, rgba(255,0,64,.03));
  border: 1px solid rgba(255,0,64,.19);
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 0;
}
.ht-vf-detail-hero-glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,0,64,.03) 0%, transparent 70%);
  pointer-events: none;
}
.ht-vf-detail-hero-inner {
  display: flex;
  align-items: stretch;
  gap: 20px;
  flex-wrap: wrap;
  position: relative;
}
.ht-vf-detail-hero-inner > .ht-vf-card-edge { flex-shrink: 0; margin: 4px 0; }
.ht-vf-detail-hero-copy {
  flex: 1 1 620px;
  min-width: 0;
}
.ht-vf-detail-hero-side {
  min-width: 112px;
  margin-left: auto;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  align-self: stretch;
}
.ht-vf-detail-hero h1 {
  font-family: var(--ht-display, 'Share Tech Mono', monospace);
  font-size: 22px;
  color: var(--ht-tx1, #e2e8f0);
  margin: 12px 0;
  line-height: 1.4;
}
.ht-vf-detail-hero p {
  color: #8fa8a2;
  font-size: 13px;
  line-height: 1.8;
  max-width: 680px;
}
.ht-vf-detail-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.ht-vf-detail-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  font-size: 12px;
}
.ht-vf-detail-meta .ht-vf-product { color: #a0ffa0; font-size: 13px; }
.ht-vf-detail-meta .ht-vf-version { color: #6b8f6b; font-size: 12px; }
.ht-vf-detail-meta .ht-vf-time { color: #4a6a4a; display: flex; align-items: center; gap: 4px; }
.ht-vf-detail-meta .ht-vf-systems { color: #4a6a4a; }

.ht-vf-cvss-hero {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at center, rgba(2,9,9,.96) 54%, transparent 56%),
    conic-gradient(var(--cvss-color, #ff0040) var(--cvss-percent, 96%), #1a3a1a 0);
  border: 1px solid color-mix(in srgb, var(--cvss-color, #ff0040) 35%, transparent);
  box-shadow: 0 0 24px color-mix(in srgb, var(--cvss-color, #ff0040) 18%, transparent);
  margin-top: auto;
}
.ht-vf-cvss-hero strong {
  color: var(--cvss-color, #ff0040);
  font-family: var(--ht-display, 'Share Tech Mono', monospace);
  font-size: 22px;
  line-height: 1;
}
.ht-vf-cvss-hero span {
  color: #4a6a4a;
  font-size: 9px;
  margin-top: 3px;
}

/* Lifecycle badge in detail header */
.ht-vf-life-badge {
  background: rgba(0,255,65,.05);
  color: #2a4a2a;
  border: 1px solid #1a3a1a;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
}

/* Tab bar */
.ht-vf-tabs {
  border-bottom: 1px solid #1a3a1a;
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  overflow-x: auto;
}
.ht-vf-tab {
  padding: 13px 20px;
  font-size: 11px;
  cursor: pointer;
  border: none;
  border-bottom: 2px solid transparent;
  font-family: var(--ht-mono, 'JetBrains Mono', monospace);
  background: transparent;
  color: #4a6a4a;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  transition: .2s;
  flex-shrink: 0;
  text-decoration: none;
}
.ht-vf-tab:hover { color: #6b8f6b; }
.ht-vf-tab.active { color: var(--tab-color, #ff0040); border-bottom-color: var(--tab-color, #ff0040); }
.ht-vf-tab-panel[hidden] { display: none !important; }

/* Content grid */
.ht-vf-detail-content {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
@media (max-width: 800px) { .ht-vf-detail-content { grid-template-columns: 1fr; } }

/* Detail panels */
.ht-vf-detail-panel {
  background: #0a140a;
  border: 1px solid color-mix(in srgb, var(--panel-accent, #00d4ff) 16%, transparent);
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.012);
}
.ht-vf-detail-panel-hd {
  padding: 11px 17px;
  border-bottom: 1px solid color-mix(in srgb, var(--panel-accent, #00d4ff) 10%, transparent);
  display: flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--panel-accent, #00d4ff) 3%, transparent), rgba(0,0,0,0));
}
.ht-vf-detail-panel-hd span {
  color: #c9d1d9;
  font-size: 12px;
  font-family: var(--ht-display, 'Share Tech Mono', monospace);
}
.ht-vf-detail-panel-bd { padding: 16px 17px 17px; }
.ht-vf-detail-panel-bd p {
  color: #8ca49b;
  font-size: 12px;
  line-height: 1.82;
}
.ht-vf-detail-copy {
  color: #8ca49b;
  font-size: 12px;
  line-height: 1.82;
}
.ht-vf-detail-copy p:first-child { margin-top: 0; }
.ht-vf-detail-copy p:last-child { margin-bottom: 0; }

/* Code block in detail */
.ht-vf-detail-code {
  font-size: 12px;
  color: #8ca49b;
  line-height: 1.86;
  font-family: var(--ht-mono, 'JetBrains Mono', monospace);
  word-break: break-word;
  background: linear-gradient(180deg, rgba(3,11,3,.94), rgba(2,8,2,.96));
  padding: 15px 16px;
  border-radius: 8px;
  border: 1px solid rgba(26,58,26,.9);
}

.ht-vf-tab-kicker {
  color: #4a6a4a;
  font-size: 10px;
  letter-spacing: .12em;
  margin-bottom: 18px;
}

.ht-vf-codeblock {
  position: relative;
  background: #020909;
  border: 1px solid #1a3a1a;
  border-radius: 7px;
  margin-top: 10px;
  overflow: hidden;
}
.ht-vf-codebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 12px;
  border-bottom: 1px solid #1a3a1a;
}
.ht-vf-codebar span {
  color: #2a4a2a;
  font-size: 10px;
  font-family: var(--ht-mono, 'JetBrains Mono', monospace);
}
.ht-vf-codeblock pre {
  margin: 0;
  padding: 14px 16px;
  overflow-x: auto;
}
.ht-vf-codeblock code {
  color: #00ff41;
  font-size: 12px;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--ht-mono, 'JetBrains Mono', monospace);
}

/* PoC section */
.ht-vf-no-poc {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  text-align: center;
}
.ht-vf-no-poc span { color: #ffaa00; font-size: 13px; margin-top: 8px; }
.ht-vf-no-poc p { color: #6b8f6b; font-size: 12px; margin-top: 6px; max-width: 400px; }
.ht-vf-poc-divider {
  text-align: center;
  margin: 20px 0 16px;
  color: #2a4a2a;
  font-size: 11px;
}

/* PoC type tabs */
.ht-vf-poc-type-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 16px;
}
.ht-vf-poc-type-tab {
  padding: 8px 16px;
  font-size: 11px;
  cursor: pointer;
  border: 1px solid #1a3a1a;
  background: transparent;
  color: #6b8f6b;
  font-family: var(--ht-mono, 'JetBrains Mono', monospace);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: .2s;
}
.ht-vf-poc-type-tab:first-child { border-radius: 5px 0 0 5px; }
.ht-vf-poc-type-tab:last-child { border-radius: 0 5px 5px 0; }
.ht-vf-poc-type-tab input[type="radio"] { display: none; }
.ht-vf-poc-type-tab.active { background: rgba(255,170,0,.1); color: #ffaa00; border-color: rgba(255,170,0,.4); }
.ht-vf-poc-type-tabs.wide { grid-column: 1 / -1; }

.ht-vf-poc-card {
  background: #030b03;
  border: 1px solid color-mix(in srgb, var(--poc-color, #00d4ff) 20%, transparent);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 10px;
}
.ht-vf-poc-card .ht-vf-poc-head {
  align-items: center;
  flex-wrap: wrap;
}
.ht-vf-poc-card .ht-vf-poc-head span {
  background: color-mix(in srgb, var(--poc-color, #00d4ff) 12%, transparent);
  color: var(--poc-color, #00d4ff);
  border: 1px solid color-mix(in srgb, var(--poc-color, #00d4ff) 30%, transparent);
  padding: 2px 8px;
  border-radius: 3px;
}
.ht-vf-poc-card .ht-vf-poc-head b,
.ht-vf-poc-card .ht-vf-poc-head i {
  color: #2a4a2a;
  font-size: 10px;
  font-weight: 400;
  font-style: normal;
}
.ht-vf-poc-card .ht-vf-poc-head em {
  color: #6b8f6b;
  font-size: 12px;
  font-style: normal;
}
.ht-vf-poc-desc {
  color: #8fa88f;
  font-size: 12px;
  line-height: 1.75;
}

/* Mitigation */
.ht-vf-mitigation-card {
  background: #0a140a;
  border: 1px solid color-mix(in srgb, var(--priority-color, #00d4ff) 18%, transparent);
  border-radius: 12px;
  padding: 16px 17px;
  margin-bottom: 10px;
}
.ht-vf-mitigation-main {
  display: flex;
  gap: 9px;
  align-items: flex-start;
}
.ht-vf-mitigation-main span {
  flex-shrink: 0;
  background: color-mix(in srgb, var(--priority-color, #00d4ff) 12%, transparent);
  color: var(--priority-color, #00d4ff);
  border: 1px solid color-mix(in srgb, var(--priority-color, #00d4ff) 32%, transparent);
  font-size: 8px;
  padding: 3px 7px 2px;
  border-radius: 3px;
  letter-spacing: .08em;
}
.ht-vf-mitigation-main p {
  margin: 0;
  color: #c9d1d9;
  font-size: 12px;
  line-height: 1.68;
}

/* Lifecycle timeline */
.ht-vf-lifecycle-timeline {
  position: relative;
  padding-left: 38px;
}
.ht-vf-lifecycle-timeline::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 12px;
  bottom: 18px;
  width: 2px;
  background: linear-gradient(to bottom, rgba(0,255,65,.34), rgba(16,48,20,.88) 68%, #132713 100%);
}
.ht-vf-life-node {
  position: relative;
  margin-bottom: 10px;
}
.ht-vf-life-node:last-child { margin-bottom: 0; }
.ht-vf-life-dot {
  position: absolute;
  left: -34px;
  top: 12px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #0a140a;
  border: 2px solid #1a3a1a;
  color: var(--stage-color, #2a4a2a);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.ht-vf-life-node.done .ht-vf-life-dot { border-color: #00ff41; background: rgba(0,255,65,.12); }
.ht-vf-life-node.active .ht-vf-life-dot { border-color: #ffaa00; background: rgba(255,170,0,.12); box-shadow: 0 0 12px rgba(255,170,0,.45); }
.ht-vf-life-node.skipped .ht-vf-life-dot { border-style: dashed; opacity: .45; }
.ht-vf-life-node-body {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
  padding: 12px 14px 11px 12px;
  border: 1px solid rgba(26,58,26,.28);
  border-radius: 10px;
  background: rgba(8,20,8,.34);
  color: inherit;
  font-family: var(--ht-mono, 'JetBrains Mono', monospace);
  text-align: left;
  transition: .2s;
}
.ht-vf-life-node-body:focus { outline: none; }
.ht-vf-life-node-body:focus-visible {
  border-color: color-mix(in srgb, var(--stage-color, #00ff41) 32%, transparent);
  box-shadow: 0 0 0 1px rgba(0,255,65,.08);
}
.ht-vf-life-node-body:hover {
  background: rgba(10,20,10,.78);
  border-color: rgba(32,72,36,.58);
}
.ht-vf-life-node.expanded .ht-vf-life-node-body {
  background: color-mix(in srgb, var(--stage-color, #00ff41) 6%, rgba(8,18,8,.92));
  border-color: color-mix(in srgb, var(--stage-color, #00ff41) 26%, transparent);
}
.ht-vf-life-copy { flex: 1; min-width: 0; }
.ht-vf-life-node-top {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.ht-vf-life-node-top strong {
  color: #c9d1d9;
  font-size: 13px;
  font-weight: 600;
}
.ht-vf-life-node.pending .ht-vf-life-node-top strong,
.ht-vf-life-node.skipped .ht-vf-life-node-top strong { color: #4a6a4a; }
.ht-vf-life-node-top .state {
  border: 1px solid;
  border-radius: 3px;
  padding: 2px 7px 1px;
  font-size: 8px;
  letter-spacing: .04em;
}
.ht-vf-life-node-top time {
  margin-left: auto;
  color: #4a6a4a;
  font-size: 11px;
}
.ht-vf-life-by {
  color: #4a6a4a;
  font-size: 11px;
  margin-top: 4px;
}
.ht-vf-life-chevron {
  color: #2a4a2a;
  flex-shrink: 0;
  margin-top: 3px;
  transition: transform .2s, color .2s;
}
.ht-vf-life-node-body:hover .ht-vf-life-chevron { color: #4a6a4a; }
.ht-vf-life-node.expanded .ht-vf-life-chevron {
  transform: rotate(90deg);
  color: var(--stage-color, #00ff41);
}
.ht-vf-life-detail {
  margin-left: clamp(0px, 4vw, 32px);
  margin-bottom: 8px;
  padding: 12px 15px;
  background: color-mix(in srgb, var(--stage-color, #00ff41) 5%, rgba(5,12,5,.9));
  border: 1px solid color-mix(in srgb, var(--stage-color, #00ff41) 16%, transparent);
  border-radius: 8px;
  color: #8ca49b;
  font-size: 12px;
  line-height: 1.78;
}

/* CVSS */
.ht-vf-cvss-score-hero {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  padding: 18px 20px;
  margin-bottom: 16px;
  background:
    radial-gradient(circle at 10% 15%, color-mix(in srgb, var(--cvss-color, #ff0040) 10%, transparent), transparent 38%),
    linear-gradient(135deg, #0a140a, color-mix(in srgb, var(--cvss-color, #ff0040) 4%, transparent));
  border: 1px solid color-mix(in srgb, var(--cvss-color, #ff0040) 30%, transparent);
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.01);
}
.ht-vf-cvss-ring {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background:
    radial-gradient(circle at center, #020909 58%, transparent 59%),
    conic-gradient(var(--cvss-color, #ff0040) var(--cvss-percent, 96%), #1a3a1a 0);
  border: 1px solid color-mix(in srgb, var(--cvss-color, #ff0040) 35%, transparent);
  box-shadow: 0 0 20px color-mix(in srgb, var(--cvss-color, #ff0040) 14%, transparent);
}
.ht-vf-cvss-ring strong {
  color: var(--cvss-color, #ff0040);
  font-family: var(--ht-display, 'Share Tech Mono', monospace);
  font-size: 20px;
  line-height: 1;
}
.ht-vf-cvss-ring span {
  color: #4a6a4a;
  font-size: 8px;
  margin-top: 1px;
}
.ht-vf-cvss-score-copy {
  flex: 0 0 auto;
  min-width: 104px;
}
.ht-vf-cvss-eyebrow,
.ht-vf-vector-label {
  color: #4a6a4a;
  font-size: 9px;
  letter-spacing: .1em;
  margin-bottom: 7px;
  text-transform: uppercase;
}
.ht-vf-cvss-score-text {
  color: var(--cvss-color, #ff0040);
  font-family: var(--ht-display, 'Share Tech Mono', monospace);
  font-size: 31px;
  line-height: 1;
  margin-bottom: 7px;
}
.ht-vf-cvss-severity {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 4px;
  border: 1px solid color-mix(in srgb, var(--cvss-color, #ff0040) 34%, transparent);
  background: color-mix(in srgb, var(--cvss-color, #ff0040) 10%, transparent);
  color: var(--cvss-color, #ff0040);
  font-size: 10px;
  font-family: var(--ht-mono, 'JetBrains Mono', monospace);
}
.ht-vf-cvss-vector-block {
  flex: 1 1 260px;
  min-width: 0;
}
.ht-vf-vector {
  color: #00d4ff;
  font-size: 9px;
  font-family: var(--ht-mono, 'JetBrains Mono', monospace);
  word-break: break-all;
  line-height: 1.62;
  background: #030b03;
  border: 1px solid #1a3a1a;
  border-radius: 6px;
  padding: 8px 11px;
}
.ht-vf-cvss-metric-panel {
  margin-bottom: 16px;
  background: #0a140a;
  border: 1px solid #1a3a1a;
  border-radius: 12px;
  overflow: hidden;
}
.ht-vf-cvss-metric-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 17px;
  border-bottom: 1px solid #1a3a1a;
  background: rgba(0,212,255,.03);
}
.ht-vf-cvss-metric-head span {
  color: #c9d1d9;
  font-size: 12px;
  font-family: var(--ht-display, 'Share Tech Mono', monospace);
}
.ht-vf-cvss-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 9px;
  padding: 16px 17px 17px;
}
.ht-vf-cvss-metric-card {
  padding: 13px 14px;
  border-radius: 10px;
  background: #030b03;
  border: 1px solid color-mix(in srgb, var(--metric-color, #00d4ff) 18%, transparent);
  animation: ht-vf-card-rise .28s ease both;
  animation-delay: var(--metric-delay, 0ms);
}
.ht-vf-cvss-metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}
.ht-vf-cvss-metric-top span {
  display: block;
  color: #2a4a2a;
  font-size: 9px;
  letter-spacing: .08em;
  margin-bottom: 3px;
}
.ht-vf-cvss-metric-top strong {
  display: block;
  color: #c9d1d9;
  font-size: 12px;
  font-weight: 400;
}
.ht-vf-cvss-metric-top b {
  flex: 0 0 auto;
  padding: 3px 9px;
  border-radius: 4px;
  border: 1px solid color-mix(in srgb, var(--metric-color, #00d4ff) 30%, transparent);
  background: color-mix(in srgb, var(--metric-color, #00d4ff) 12%, transparent);
  color: var(--metric-color, #00d4ff);
  font-size: 9px;
  font-weight: 400;
  font-family: var(--ht-mono, 'JetBrains Mono', monospace);
  white-space: nowrap;
}
.ht-vf-cvss-track {
  height: 4px;
  border-radius: 2px;
  background: #1a3a1a;
  overflow: hidden;
}
.ht-vf-cvss-track i {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--metric-color, #00d4ff) 44%, transparent), var(--metric-color, #00d4ff));
}
.ht-vf-cvss-side-card {
  background: #0a140a;
  border: 1px solid #1a3a1a;
  border-radius: 12px;
  padding: 16px 17px;
}
.ht-vf-cvss-side-card.accent {
  border-color: color-mix(in srgb, var(--cvss-color, #ff0040) 25%, transparent);
}
.ht-vf-cvss-side-title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
  color: #4a6a4a;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ht-vf-cvss-side-title span {
  color: inherit;
}
.ht-vf-cvss-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid #0f1f0f;
}
.ht-vf-cvss-summary-row:last-child { border-bottom: none; }
.ht-vf-cvss-summary-row span {
  color: #4a6a4a;
  font-size: 11px;
}
.ht-vf-cvss-summary-row b {
  color: #c9d1d9;
  font-size: 11px;
  font-weight: 400;
  font-family: var(--ht-mono, 'JetBrains Mono', monospace);
  text-align: right;
  max-width: 56%;
  overflow-wrap: anywhere;
}
@keyframes ht-vf-card-rise {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Sidebar cards */
.ht-vf-detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ht-vf-detail-sb-card {
  background: #0a140a;
  border: 1px solid #1a3a1a;
  border-radius: 10px;
  overflow: hidden;
}
.ht-vf-detail-sb-card.warn { border-color: rgba(255,170,0,.16); }
.ht-vf-detail-sb-card.accent { border-color: rgba(0,212,255,.18); }
.ht-vf-detail-sb-hd {
  padding: 10px 14px;
  border-bottom: 1px solid #0f1f0f;
  display: flex;
  align-items: center;
  gap: 7px;
}
.ht-vf-detail-sb-hd span {
  color: #8b949e;
  font-size: 11px;
  font-family: var(--ht-display, 'Share Tech Mono', monospace);
}
.ht-vf-detail-sb-bd { padding: 12px 14px; }

.ht-vf-sidepanel {
  background: #0a140a;
  border: 1px solid #1a3a1a;
  border-radius: 12px;
  padding: 16px 17px;
  box-shadow: none;
}
.ht-vf-sidepanel.warn { border-color: rgba(255,170,0,.15); }
.ht-vf-sidepanel.accent { background: rgba(0,212,255,.03); border-color: rgba(0,212,255,.2); }
.ht-vf-sidepanel-title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
}
.ht-vf-sidepanel-title svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}
.ht-vf-sidepanel-title span {
  color: #4a6a4a;
  font-size: 10px;
  letter-spacing: .1em;
}
.ht-vf-sidepanel-body {
  min-width: 0;
}

.ht-vf-muted {
  color: #4a6a4a;
  font-size: 11px;
  line-height: 1.6;
}

.ht-vf-affected-product {
  padding: 12px;
  border: 1px solid rgba(31, 62, 31, .85);
  border-radius: 9px;
  background: linear-gradient(180deg, rgba(8, 18, 8, .92), rgba(6, 14, 6, .98));
}
.ht-vf-affected-product + .ht-vf-affected-product { margin-top: 10px; }
.ht-vf-affected-top {
  display: flex;
  gap: 10px;
  margin-bottom: 9px;
}
.ht-vf-affected-title {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.ht-vf-affected-top .ht-vf-affected-name {
  color: #d7f9d7;
  font-size: 13px;
  font-family: var(--ht-display, 'Share Tech Mono', monospace);
}
.ht-vf-affected-platform {
  color: #5f7d66;
  font-size: 11px;
  white-space: nowrap;
}
.ht-vf-affected-flow {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  min-width: 0;
}
.ht-vf-affected-flow svg { color: #395039; flex-shrink: 0; }
.ht-vf-affected-chip {
  flex: 1 1 0;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(31, 62, 31, .95);
  background: rgba(3, 10, 3, .88);
}
.ht-vf-affected-chip small {
  display: block;
  margin-bottom: 4px;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #4a6a4a;
}
.ht-vf-affected-chip strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  word-break: break-word;
}
.ht-vf-affected-chip.bad strong { color: #ff8080; }
.ht-vf-affected-chip.ok strong { color: #9bff9b; }
.ht-vf-affected-product.compact {
  padding: 9px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.ht-vf-affected-product.compact + .ht-vf-affected-product.compact {
  margin-top: 0;
  border-top: 1px solid #0f1f0f;
  padding-top: 10px;
}
.ht-vf-affected-product.compact .ht-vf-affected-top {
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}
.ht-vf-affected-product.compact .ht-vf-affected-name {
  color: #a0ffa0;
  font-family: var(--ht-mono, 'JetBrains Mono', monospace);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}
.ht-vf-affected-product.compact.no-platform .ht-vf-affected-name {
  color: #c9d1d9;
}
.ht-vf-affected-product.compact .ht-vf-affected-platform {
  color: #4a6a4a;
  font-size: 10px;
  font-family: var(--ht-mono, 'JetBrains Mono', monospace);
  text-align: right;
}
.ht-vf-affected-flow.compact {
  gap: 8px;
  font-size: 11px;
  line-height: 1.5;
  font-family: var(--ht-mono, 'JetBrains Mono', monospace);
}
.ht-vf-affected-flow.compact .bad { color: #ff6b6b; }
.ht-vf-affected-flow.compact .ok { color: #00ff41; }
.ht-vf-affected-flow.compact svg {
  width: 10px;
  height: 10px;
  color: #4a6a4a;
}

.ht-vf-affected-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid #0f1f0f;
}
.ht-vf-affected-row:last-child { border-bottom: none; }
.ht-vf-affected-name { color: #c9d1d9; font-size: 12px; }
.ht-vf-affected-ver { color: #6b8f6b; font-size: 11px; }

.ht-vf-ioc-item {
  padding: 6px 0;
  border-bottom: 1px solid #0f1f0f;
  color: #8b949e;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ht-vf-ioc-item:last-child { border-bottom: none; }
.ht-vf-ioc-item::before { content: "●"; color: #ffaa00; font-size: 6px; flex-shrink: 0; }
.ht-vf-ioc-item.compact {
  gap: 8px;
  margin-bottom: 8px;
  padding: 0;
  border-bottom: 0;
  color: #6b8f6b;
  font-size: 12px;
  line-height: 1.6;
  font-family: var(--ht-mono, 'JetBrains Mono', monospace);
}
.ht-vf-ioc-item.compact:last-child { margin-bottom: 0; }
.ht-vf-ioc-item.compact::before {
  content: "⊙";
  color: #ffaa00;
  font-size: 10px;
  line-height: 1.4;
}

.ht-vf-ref-link {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 0;
  border-bottom: 1px solid #0f1f0f;
  color: #00d4ff;
  font-size: 13px;
  line-height: 1.45;
  font-family: var(--ht-display, 'Share Tech Mono', monospace);
  text-decoration: none;
  transition: color .15s;
}
.ht-vf-ref-link:last-child { border-bottom: none; }
.ht-vf-ref-link:hover { color: var(--ht-cyan, #00d4ff); }
.ht-vf-ref-link svg {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}

.ht-vf-related-cve {
  padding: 5px 0;
  border-bottom: 1px solid #0f1f0f;
  color: #8b949e;
  font-size: 11px;
  font-family: var(--ht-mono, 'JetBrains Mono', monospace);
}
.ht-vf-related-cve:last-child { border-bottom: none; }
.ht-vf-related-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ht-vf-related-wrap .ht-vf-related-cve {
  display: inline-flex;
  border: 1px solid #1a3a1a;
  background: #0f1f0f;
  color: #00d4ff;
  border-radius: 5px;
  padding: 4px 9px 3px;
}

.ht-vf-side-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid #0f1f0f;
}
.ht-vf-side-row:last-child { border-bottom: none; }
.ht-vf-side-row span {
  color: #6b8f6b;
  font-size: 12px;
}
.ht-vf-side-row b {
  color: #8fa88f;
  font-size: 12px;
  font-weight: 400;
  text-align: right;
}
.ht-vf-side-score {
  text-align: center;
  padding: 10px 12px;
  background: rgba(0,212,255,.04);
  border: 1px solid rgba(0,212,255,.18);
  border-radius: 7px;
  margin-bottom: 10px;
}
.ht-vf-side-score strong {
  color: #00d4ff;
  font-family: var(--ht-display, 'Share Tech Mono', monospace);
  font-size: 24px;
  line-height: 1;
}
.ht-vf-side-score span {
  display: block;
  color: #4a6a4a;
  font-size: 10px;
  margin-top: 4px;
}

.ht-vf-life-side-card {
  background: #0a140a;
  border: 1px solid #1a3a1a;
  border-radius: 12px;
  padding: 16px 17px;
}
.ht-vf-life-side-title {
  color: #4a6a4a;
  font-size: 10px;
  letter-spacing: .1em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ht-vf-life-side-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid #0f1f0f;
}
.ht-vf-life-side-row:last-child { border-bottom: none; }
.ht-vf-life-side-row span {
  color: #4a6a4a;
  font-size: 11px;
}
.ht-vf-life-side-row b {
  color: #c9d1d9;
  font-family: var(--ht-mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  font-weight: 400;
  max-width: 62%;
  text-align: right;
}

/* Bottom bar */
.ht-vf-detail-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
  padding: 4px 0 16px;
  flex-wrap: wrap;
  gap: 12px;
}
.ht-vf-btn-back-list {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid #1a3a1a;
  color: #6b8f6b;
  font-size: 12px;
  font-family: var(--ht-mono, 'JetBrains Mono', monospace);
  text-decoration: none;
  transition: all .15s;
}
.ht-vf-btn-back-list:hover { color: var(--ht-green, #00ff41); border-color: rgba(0,255,65,.3); }
.ht-vf-detail-status {
  color: #4a6a4a;
  font-size: 11px;
  font-family: var(--ht-mono, 'JetBrains Mono', monospace);
}

/* Submit panel */
.ht-vf-submit {
  background: var(--ht-card, #0a140a);
  border: 1px solid var(--ht-border, #1a3a1a);
  border-radius: 8px;
  padding: 24px;
  margin-top: 16px;
}
.ht-vf-submit h2 {
  font-family: var(--ht-display, 'Share Tech Mono', monospace);
  font-size: 14px;
  color: var(--ht-tx1, #e2e8f0);
  margin: 0 0 8px;
}
.ht-vf-submit > p {
  color: var(--ht-tx4, #2a4a4a);
  font-size: 12px;
  margin-bottom: 16px;
}
.ht-vf-form-gate {
  padding: 14px;
  background: rgba(255,170,0,.06);
  border: 1px solid rgba(255,170,0,.2);
  border-radius: 6px;
  color: var(--ht-tx3, #6b8f6b);
  font-size: 12px;
  margin-bottom: 16px;
}
.ht-vf-form-gate a { color: var(--ht-cyan, #00d4ff); }
.ht-vf-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.ht-vf-form label.wide { grid-column: 1 / -1; }
.ht-vf-form label {
  display: grid;
  gap: 4px;
  font-size: 10px;
  letter-spacing: .06em;
  color: var(--ht-tx4, #2a4a4a);
}
.ht-vf-form input,
.ht-vf-form textarea,
.ht-vf-form select {
  padding: 8px 12px;
  background: #050c05;
  border: 1px solid var(--ht-border, #1a3a1a);
  border-radius: 6px;
  color: var(--ht-tx1, #e2e8f0);
  font-family: var(--ht-mono, 'JetBrains Mono', monospace);
  font-size: 12px;
  outline: none;
  transition: border-color .2s;
}
.ht-vf-form input:focus,
.ht-vf-form textarea:focus,
.ht-vf-form select:focus { border-color: rgba(0,255,65,.4); }
.ht-vf-form textarea { resize: vertical; min-height: 80px; line-height: 1.6; }
.ht-vf-checks {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.ht-vf-checks label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  cursor: pointer;
  color: var(--ht-tx3, #6b8f6b);
}
.ht-vf-checks.wide { grid-column: 1 / -1; }
.ht-vf-form button {
  grid-column: 1 / -1;
  justify-self: start;
  padding: 10px 20px;
  border-radius: 6px;
  border: 1px solid rgba(0,212,255,.35);
  background: rgba(0,212,255,.08);
  color: var(--ht-cyan, #00d4ff);
  font-family: var(--ht-mono, 'JetBrains Mono', monospace);
  font-size: 12px;
  cursor: pointer;
  transition: all .15s;
}
.ht-vf-form button:hover { background: rgba(0,212,255,.15); border-color: rgba(0,212,255,.6); }
.ht-vf-form-msg { grid-column: 1 / -1; font-size: 11px; }
.ht-vf-form-msg.ok { color: #00ff41; }
.ht-vf-form-msg.err { color: #ff0040; }

/* Submit page */
.ht-vf-submit-page {
  max-width: none;
  padding: 0 0 64px;
}
.ht-vf-submit-page > .ht-vf-term-hdr,
.ht-vf-submit-page > .ht-vf-submit-heading,
.ht-vf-submit-page > .ht-vf-submit-wizard {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}
.ht-vf-submit-page > .ht-vf-term-hdr {
  padding-top: 36px;
}
.ht-vf-submit-page .ht-vf-title-accent {
  color: var(--ht-green, #00ff41);
  text-shadow: 0 0 18px rgba(0, 255, 65, .28);
}
.ht-vf-submit-topbar {
  display: none;
  align-items: center;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 36px;
  padding: 14px max(24px, calc((100vw - 1280px) / 2 + 24px));
  border-bottom: 1px solid #0f1f0f;
  background: #040c04;
  color: #4a6a4a;
  font-family: var(--ht-display, 'Share Tech Mono', monospace);
  font-size: 12px;
}
.ht-vf-submit-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ht-cyan, #00d4ff);
  text-decoration: none;
}
.ht-vf-submit-back svg {
  width: 14px;
  height: 14px;
}
.ht-vf-submit-slash { color: #315231; }
.ht-vf-submit-path { color: #9fb89f; }
.ht-vf-submit-channel {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #6b8f6b;
  background: transparent;
  border: 0;
  padding: 0;
}
.ht-vf-submit-channel i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00ff41;
  box-shadow: 0 0 10px rgba(0, 255, 65, .4);
}
.ht-vf-submit-heading { margin-bottom: 80px; }
.ht-vf-submit-gate {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 170, 0, .22);
  border-radius: 10px;
  background: rgba(255, 170, 0, .05);
  color: #8fa68f;
  font-size: 12px;
}
.ht-vf-submit-gate strong { color: #ffaa00; }
.ht-vf-submit-gate a {
  margin-left: auto;
  color: var(--ht-cyan, #00d4ff);
  text-decoration: none;
}
.ht-vf-submit-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  margin-bottom: 36px;
  padding: 28px 33px;
  border: 1px solid rgba(24, 53, 24, .92);
  border-radius: 16px;
  background: rgba(8, 20, 8, .88);
  overflow: hidden;
}
.ht-vf-submit-progress button {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  flex: 0 0 271px;
  min-height: 72px;
  padding: 18px 18px;
  border: 1px solid rgba(15, 31, 15, .48);
  border-radius: 14px;
  background: transparent;
  color: rgba(86, 108, 86, .34);
  font-family: var(--ht-display, 'Share Tech Mono', monospace);
  cursor: pointer;
  text-align: left;
  transition: border-color .16s ease, color .16s ease, background .16s ease, box-shadow .16s ease;
}
.ht-vf-submit-progress button:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  left: calc(100% + 17px);
  width: clamp(121px, 15.4vw, 214px);
  max-width: none;
  height: 1px;
  background: rgba(17, 34, 17, .68);
  transform: translateY(-50%);
  pointer-events: none;
}
.ht-vf-submit-progress button b {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  border: 1px solid rgba(19, 40, 19, .7);
  background: rgba(5, 15, 5, .82);
  color: rgba(56, 86, 56, .62);
  font-size: 12px;
  flex-shrink: 0;
}
.ht-vf-submit-progress button b svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ht-vf-step-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
  flex: 1;
}
.ht-vf-step-copy strong,
.ht-vf-step-copy em {
  display: block;
  margin: 0;
}
.ht-vf-step-copy strong {
  color: inherit;
  font-style: normal;
  font-size: 13px;
  letter-spacing: .02em;
  white-space: nowrap;
  opacity: .92;
}
.ht-vf-step-copy em {
  color: rgba(47, 68, 47, .62);
  font-family: var(--ht-mono, 'JetBrains Mono', monospace);
  font-size: 9px;
  font-style: normal;
  line-height: 1.25;
  white-space: normal;
}
.ht-vf-submit-progress button.active,
.ht-vf-submit-progress button.done {
  color: #d8f7d8;
}
.ht-vf-submit-progress button.active {
  border-color: rgba(0, 255, 65, .18);
  background: rgba(0, 255, 65, .052);
  box-shadow: inset 0 0 0 1px rgba(0, 255, 65, .024);
}
.ht-vf-submit-progress button.done {
  border-color: rgba(39, 86, 39, .5);
  background: rgba(14, 38, 14, .28);
  color: #92bc92;
  box-shadow: inset 0 0 0 1px rgba(24, 58, 24, .16);
}
.ht-vf-submit-progress button.active b,
.ht-vf-submit-progress button.done b {
  color: #00ff41;
  border-color: rgba(0, 255, 65, .28);
  background: rgba(0, 255, 65, .082);
  box-shadow: inset 0 0 12px rgba(0, 255, 65, .06);
}
.ht-vf-submit-progress button.done b {
  border-color: rgba(60, 132, 60, .24);
  background: rgba(19, 54, 19, .32);
  box-shadow: none;
}
.ht-vf-submit-progress button.active .ht-vf-step-copy em,
.ht-vf-submit-progress button.done .ht-vf-step-copy em { color: #55745b; }
.ht-vf-submit-progress button.done::after { background: #2a5a2a; }
.ht-vf-submit-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}
.ht-vf-submit-wizard-form {
  display: block;
  min-width: 0;
}
.ht-vf-submit-step[hidden],
.ht-vf-submit-success[hidden] {
  display: none;
}
.ht-vf-submit-card,
.ht-vf-submit-side-card,
.ht-vf-submit-success {
  border: 1px solid rgba(26, 58, 26, .95);
  border-radius: 14px;
  background:
    radial-gradient(circle at top left, rgba(0, 255, 65, .035), transparent 30%),
    rgba(6, 16, 7, .92);
  box-shadow: inset 0 0 0 1px rgba(0, 255, 65, .018);
}
.ht-vf-submit-card {
  box-sizing: border-box;
  min-height: 646px;
  padding: 30px 34px;
}
.ht-vf-card-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(18, 40, 18, .95);
}
.ht-vf-card-title span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(0, 255, 65, .22);
  color: #00ff41;
  background: rgba(0, 255, 65, .05);
  font-family: var(--ht-display, 'Share Tech Mono', monospace);
  font-size: 13px;
}
.ht-vf-card-title span svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ht-vf-card-title h2 {
  margin: 0;
  color: #edf5ed;
  font-family: var(--ht-display, 'Share Tech Mono', monospace);
  font-size: 14px;
  letter-spacing: .02em;
}
.ht-vf-submit-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.ht-vf-submit-fields .wide {
  grid-column: 1 / -1;
}
.ht-vf-submit-fields label,
.ht-vf-choice-group {
  display: grid;
  gap: 7px;
  min-width: 0;
}
.ht-vf-submit-fields label > span,
.ht-vf-choice-label {
  color: #6b8f6b;
  font-family: var(--ht-mono, 'JetBrains Mono', monospace);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.ht-vf-submit-fields em {
  color: #ff0040;
  font-style: normal;
  text-transform: none;
}
.ht-vf-submit-fields input,
.ht-vf-submit-fields textarea,
.ht-vf-submit-fields select {
  width: 100%;
  box-sizing: border-box;
  min-height: 42px;
  padding: 12px 14px;
  border: 1px solid rgba(24, 53, 24, .92);
  border-radius: 10px;
  background: rgba(4, 13, 5, .92);
  color: #dbe7db;
  font-family: var(--ht-mono, 'JetBrains Mono', monospace);
  font-size: 13px;
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.ht-vf-submit-fields textarea {
  resize: vertical;
  min-height: 124px;
  line-height: 1.65;
}
.ht-vf-submit-step[data-vf-submit-step="1"] textarea[name="summary"] {
  min-height: 132px;
}
.ht-vf-submit-step[data-vf-submit-step="1"] textarea[name="technical"] {
  min-height: 196px;
}
.ht-vf-submit-step[data-vf-submit-step="1"] textarea[name="ioc_raw"] {
  min-height: 130px;
}
.ht-vf-submit-fields select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #6b8f6b 50%), linear-gradient(135deg, #6b8f6b 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.ht-vf-submit-fields input:focus,
.ht-vf-submit-fields textarea:focus,
.ht-vf-submit-fields select:focus {
  border-color: rgba(0, 255, 65, .45);
  box-shadow: 0 0 0 3px rgba(0, 255, 65, .05);
  background: rgba(4, 15, 5, .98);
}
.ht-vf-choice-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.ht-vf-choice-row.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.ht-vf-choice {
  display: inline-flex !important;
  align-items: center;
  gap: 0 !important;
  cursor: pointer;
}
.ht-vf-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}
.ht-vf-choice span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(26, 58, 26, .95);
  border-radius: 8px;
  background: rgba(3, 12, 4, .82);
  color: #6b8f6b;
  font-family: var(--ht-display, 'Share Tech Mono', monospace);
  font-size: 12px;
  letter-spacing: .06em;
}
.ht-vf-choice input:checked + span {
  color: var(--choice-color, #00ff41);
  border-color: color-mix(in srgb, var(--choice-color, #00ff41) 48%, transparent);
  background: color-mix(in srgb, var(--choice-color, #00ff41) 13%, transparent);
}
.ht-vf-choice.success input:checked + span {
  --choice-color: #00ff41;
}
.ht-vf-choice.danger input:checked + span {
  --choice-color: #ff0040;
}
.ht-vf-policy-check {
  display: flex !important;
  grid-template-columns: none !important;
  flex-direction: row;
  align-items: flex-start;
  gap: 14px !important;
  padding: 15px 17px;
  border: 1px solid rgba(255, 170, 0, .2);
  border-radius: 10px;
  background: rgba(255, 170, 0, .05);
}
.ht-vf-policy-check input {
  width: 14px;
  min-width: 14px;
  height: 14px;
  min-height: 14px;
  margin-top: 2px;
  padding: 0;
  accent-color: #00ff41;
}
.ht-vf-submit-fields .ht-vf-policy-check > span {
  color: #d6dfd6;
  font-family: var(--ht-mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: .01em;
  text-transform: none;
  max-width: 640px;
}
.ht-vf-field-error {
  color: #ff0040;
  font-size: 11px;
  font-family: var(--ht-display, 'Share Tech Mono', monospace);
}
.ht-vf-submit-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(18, 40, 18, .95);
}
.ht-vf-submit-step[data-vf-submit-step="1"] .ht-vf-submit-actions,
.ht-vf-submit-step[data-vf-submit-step="2"] .ht-vf-submit-actions {
  margin-top: 30px;
  align-items: center;
}
.ht-vf-step-count {
  margin-right: auto;
  color: #244224;
  font-family: var(--ht-display, 'Share Tech Mono', monospace);
  font-size: 11px;
  line-height: 1;
  padding-top: 1px;
}
.ht-vf-submit-actions button,
.ht-vf-submit-success a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 20px;
  border-radius: 8px;
  font-family: var(--ht-display, 'Share Tech Mono', monospace);
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.ht-vf-submit-step[data-vf-submit-step="1"] .ht-vf-prev,
.ht-vf-submit-step[data-vf-submit-step="2"] .ht-vf-prev {
  min-width: 78px;
}
.ht-vf-submit-step[data-vf-submit-step="1"] .ht-vf-next {
  min-width: 78px;
}
.ht-vf-submit-step[data-vf-submit-step="2"] .ht-vf-final-submit {
  min-width: 140px;
}
.ht-vf-prev {
  border: 1px solid rgba(26, 58, 26, .95);
  background: rgba(5, 18, 8, .8);
  color: #6b8f6b;
}
.ht-vf-next,
.ht-vf-final-submit,
.ht-vf-submit-success a {
  border: 1px solid rgba(0, 212, 255, .34);
  background: rgba(0, 212, 255, .09);
  color: var(--ht-cyan, #00d4ff);
}
.ht-vf-submit-actions button:hover,
.ht-vf-submit-success a:hover {
  transform: translateY(-1px);
}
.ht-vf-submit-actions button:disabled {
  cursor: not-allowed;
  opacity: .48;
  transform: none;
}
.ht-vf-submit-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.ht-vf-submit-side-card {
  padding: 20px;
}
.ht-vf-side-head {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ecf3ec;
  font-family: var(--ht-display, 'Share Tech Mono', monospace);
  font-size: 13px;
  letter-spacing: .02em;
  margin-bottom: 13px;
}
.ht-vf-side-head strong {
  flex: 1;
  line-height: 1.15;
}
.ht-vf-side-ico {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  color: var(--ht-cyan, #00d4ff);
}
.ht-vf-side-ico.amber { color: #ffaa00; }
.ht-vf-side-ico svg,
.ht-vf-tip-ico svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ht-vf-side-led {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #00ff41;
  box-shadow: 0 0 10px rgba(0, 255, 65, .45);
}
.ht-vf-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00ff41;
  box-shadow: 0 0 12px rgba(0, 255, 65, .45);
}
.ht-vf-dot.amber {
  background: #ffaa00;
  box-shadow: 0 0 12px rgba(255, 170, 0, .45);
}
.ht-vf-preview-card {
  position: relative;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 11px;
  padding: 13px 15px 13px 14px;
  border: 1px solid rgba(24, 53, 24, .92);
  border-radius: 12px;
  background: rgba(3, 11, 4, .78);
  overflow: hidden;
  align-items: start;
}
.ht-vf-preview-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #ffaa00;
}
.ht-vf-preview-score {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 44px;
  height: 48px;
  align-self: start;
  margin-top: 1px;
  border: 1px solid rgba(255, 0, 64, .22);
  border-radius: 8px;
  background: rgba(255, 0, 64, .08);
  color: #ff0040;
  font-family: var(--ht-display, 'Share Tech Mono', monospace);
}
.ht-vf-preview-score b {
  font-size: 14px;
  line-height: 1;
}
.ht-vf-preview-score span {
  margin-top: 2px;
  color: #866666;
  font-size: 8px;
}
.ht-vf-preview-main {
  min-width: 0;
}
.ht-vf-preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 6px;
  align-items: center;
}
.ht-vf-preview-tags span {
  max-width: 100%;
  padding: 2px 6px;
  border: 1px solid rgba(26, 58, 26, .9);
  border-radius: 5px;
  color: #6b8f6b;
  font-family: var(--ht-display, 'Share Tech Mono', monospace);
  font-size: 8px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ht-vf-preview-tags .sev {
  color: #ff6600;
  border-color: rgba(255, 102, 0, .28);
  background: rgba(255, 102, 0, .08);
}
.ht-vf-preview-main h3 {
  margin: 0 0 4px;
  color: #eef5ee;
  font-family: var(--ht-display, 'Share Tech Mono', monospace);
  font-size: 12px;
  line-height: 1.44;
}
.ht-vf-preview-main p,
.ht-vf-preview-summary {
  margin: 0;
  color: #6b8f6b;
  font-family: var(--ht-mono, 'JetBrains Mono', monospace);
  font-size: 10px;
  line-height: 1.5;
}
.ht-vf-preview-main p {
  display: flex;
  gap: 5px;
  align-items: baseline;
  flex-wrap: wrap;
}
.ht-vf-preview-main b {
  color: #9cff9c;
  font-weight: 700;
}
.ht-vf-preview-summary {
  margin-top: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ht-vf-live-preview .ht-vf-preview-summary {
  display: none;
}
.ht-vf-submit-tips {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ht-vf-submit-tips li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  color: #6b8f6b;
  font-size: 12px;
  line-height: 1.45;
}
.ht-vf-tip-ico {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 5px;
  border: 1px solid rgba(255, 170, 0, .25);
  background: rgba(255, 170, 0, .08);
  color: #ffaa00;
}
.ht-vf-submit-tips li > div {
  display: grid;
  gap: 1px;
}
.ht-vf-submit-tips li:nth-child(2) .ht-vf-tip-ico { color: #ffaa00; }
.ht-vf-submit-tips li:nth-child(3) .ht-vf-tip-ico { color: #00ff41; border-color: rgba(0,255,65,.25); background: rgba(0,255,65,.08); }
.ht-vf-submit-tips li:nth-child(4) .ht-vf-tip-ico { color: #9b5cff; border-color: rgba(155,92,255,.25); background: rgba(155,92,255,.08); }
.ht-vf-submit-tips li:nth-child(5) .ht-vf-tip-ico { color: #ff0040; border-color: rgba(255,0,64,.25); background: rgba(255,0,64,.08); }
.ht-vf-submit-tips b {
  color: #e4ece4;
  font-family: var(--ht-display, 'Share Tech Mono', monospace);
  font-size: 10px;
  letter-spacing: .015em;
  line-height: 1.15;
}
.ht-vf-submit-tips span {
  display: block;
  color: #557055;
  font-size: 9px;
  margin-top: 1px;
  line-height: 1.35;
}
.ht-vf-submit-stats {
  display: block;
}
.ht-vf-submit-stats h3 {
  margin: 0 0 14px;
  color: #00ff41;
  font-family: var(--ht-display, 'Share Tech Mono', monospace);
  font-size: 13px;
}
.ht-vf-submit-stats div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid #0f1f0f;
  border-radius: 0;
  background: transparent;
}
.ht-vf-submit-stats b {
  display: inline;
  color: #00ff41;
  font-family: var(--ht-display, 'Share Tech Mono', monospace);
  font-size: 14px;
  margin: 0;
}
.ht-vf-submit-stats span {
  color: #4f704f;
  font-size: 11px;
  line-height: 1.35;
}
.ht-vf-submit-stats div:nth-of-type(2) b { color: #00ff41; }
.ht-vf-submit-stats div:nth-of-type(3) b { color: #ffaa00; }
.ht-vf-submit-stats div:nth-of-type(4) b { color: #9b5cff; }
.ht-vf-submit-success {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 450px;
  padding: 48px 28px;
}
.ht-vf-success-glyph {
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 1px solid rgba(0, 255, 65, .4);
  color: #00ff41;
  background:
    radial-gradient(circle at center, rgba(0, 255, 65, .12), rgba(0, 255, 65, .04) 58%, transparent 72%),
    rgba(0, 255, 65, .06);
  box-shadow: 0 0 32px rgba(0, 255, 65, .11), inset 0 0 24px rgba(0, 255, 65, .05);
}
.ht-vf-success-glyph svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ht-vf-success-kicker {
  margin-top: 18px;
  color: #00ff41;
  font-family: var(--ht-display, 'Share Tech Mono', monospace);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .88;
}
.ht-vf-submit-success h2 {
  margin: 14px 0 10px;
  color: #edf5ed;
  font-family: var(--ht-display, 'Share Tech Mono', monospace);
  font-size: 23px;
  line-height: 1.25;
}
.ht-vf-submit-success p {
  max-width: 500px;
  margin: 0;
  color: #678667;
  font-size: 13px;
  line-height: 1.7;
}
.ht-vf-success-id {
  display: inline-grid;
  gap: 7px;
  min-width: 240px;
  margin: 22px 0 24px;
  padding: 14px 18px;
  border: 1px solid rgba(0, 212, 255, .2);
  border-radius: 12px;
  background: rgba(0, 212, 255, .04);
  color: #5b7c5b;
  font-family: var(--ht-display, 'Share Tech Mono', monospace);
}
.ht-vf-success-id span {
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.ht-vf-success-id strong {
  color: #00d4ff;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: .04em;
}
.ht-vf-submit-success a {
  min-width: 148px;
}
@media (max-width: 980px) {
  .ht-vf-submit-layout { grid-template-columns: 1fr; }
  .ht-vf-submit-sidebar { order: 2; }
}
@media (max-width: 720px) {
  .ht-vf-submit-topbar { flex-wrap: wrap; }
  .ht-vf-submit-channel { margin-left: 0; width: 100%; text-align: center; }
  .ht-vf-submit-progress {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px;
  }
  .ht-vf-submit-progress button { flex-basis: auto; }
  .ht-vf-submit-progress button { width: 100%; }
  .ht-vf-step-copy { flex-wrap: wrap; gap: 10px; }
  .ht-vf-step-copy strong,
  .ht-vf-step-copy em { white-space: normal; }
  .ht-vf-submit-progress button::after { display: none; }
  .ht-vf-submit-fields { grid-template-columns: 1fr; }
  .ht-vf-choice-row,
  .ht-vf-choice-row.compact { grid-template-columns: 1fr 1fr; }
  .ht-vf-submit-card { min-height: 0; padding: 16px; }
  .ht-vf-submit-actions { justify-content: stretch; flex-direction: column; }
  .ht-vf-step-count { margin: 0 0 2px; }
  .ht-vf-submit-actions button { width: 100%; }
  .ht-vf-preview-card { grid-template-columns: 1fr; }
}

/* PoC list */
.ht-vf-poc {
  padding: 16px;
  margin-bottom: 8px;
  background: rgba(5,20,10,.5);
  border: 1px solid var(--ht-border2, #0f1f0f);
  border-radius: 6px;
}
.ht-vf-poc-head {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 11px;
}
.ht-vf-poc-head span { color: var(--ht-cyan, #00d4ff); font-weight: 600; }
.ht-vf-poc-head b { color: var(--ht-tx3, #6b8f6b); font-weight: 400; }
.ht-vf-poc-head em { color: var(--ht-tx4, #4a6a4a); font-style: normal; margin-left: auto; }
.ht-vf-poc p { color: var(--ht-tx2, #c9d1d9); font-size: 12px; line-height: 1.7; margin-bottom: 8px; }
.ht-vf-poc pre {
  background: #030b03;
  border: 1px solid var(--ht-border, #1a3a1a);
  border-radius: 4px;
  padding: 12px;
  overflow-x: auto;
}
.ht-vf-poc code {
  font-family: var(--ht-mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  line-height: 1.6;
  color: var(--ht-green, #00ff41);
}

/* Lifecycle bar on detail page */
.ht-vf-life {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
}
.ht-vf-life span {
  margin-right: 2px;
  color: #315231;
  font-family: var(--ht-display, 'Share Tech Mono', monospace);
  font-size: 10px;
}
.ht-vf-life i {
  width: 24px;
  height: 5px;
  border-radius: 999px;
  background: rgba(26, 58, 26, .9);
}
.ht-vf-life i.done { background: #52ff64; box-shadow: 0 0 10px rgba(82,255,100,.28); }
.ht-vf-life i.warn { background: #ffaa00; box-shadow: 0 0 10px rgba(255,170,0,.25); }

@media (max-width: 1024px) {
  .ht-vf-grid {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 20px;
  }
}

@media (max-width: 820px) {
  .ht-vf-page {
    padding: 20px 14px 56px;
  }
  .ht-vf-grid,
  .ht-vf-detail-content {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .ht-vf-sidebar {
    gap: 14px;
    margin-top: 14px;
  }
  .ht-vf-charts {
    gap: 12px;
  }
  .ht-vf-chart-card {
    padding: 14px 14px 12px;
  }
  .ht-vf-sub {
    margin-top: 16px;
    padding: 15px 14px 14px;
  }
  .ht-vf-toolbar {
    flex-wrap: wrap;
  }
  .ht-vf-search {
    min-width: 220px;
  }
  .ht-vf-filter-group {
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .ht-vf-title {
    font-size: 24px;
    letter-spacing: .04em;
  }
  .ht-vf-subtitle {
    font-size: 11px;
    line-height: 1.5;
  }
  .ht-vf-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .ht-vf-stat {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 10px 11px;
  }
  .ht-vf-stat-icon {
    width: 24px;
    height: 24px;
  }
  .ht-vf-stat-val {
    font-size: 16px;
  }
  .ht-vf-stat-lbl {
    font-size: 9px;
    margin-top: 1px;
  }
  .ht-vf-toolbar {
    gap: 8px;
  }
  .ht-vf-filter-group {
    width: 100%;
  }
  .ht-vf-card {
    gap: 12px;
    padding: 14px;
  }
  .ht-vf-card-edge {
    width: 5px;
    margin: 1px 0;
  }
  .ht-vf-score-box {
    min-width: 52px;
    padding: 6px 8px;
  }
  .ht-vf-score-box strong {
    font-size: 15px;
  }
  .ht-vf-score-box span {
    font-size: 7px;
    margin-top: 2px;
  }
  .ht-vf-card-m {
    padding: 0;
  }
  .ht-vf-card-head {
    gap: 4px;
    row-gap: 4px;
    margin-bottom: 2px;
  }
  .ht-vf-cve {
    font-size: 9px;
  }
  .ht-vf-sev,
  .ht-vf-type,
  .ht-vf-pill,
  .ht-vf-tag {
    font-size: 8px;
    padding: 2px 5px 1px;
    border-radius: 3px;
  }
  .ht-vf-card-title {
    font-size: 11px;
    line-height: 1.34;
    -webkit-line-clamp: 3;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .ht-vf-card .ht-vf-card-m > .ht-vf-card-title {
    font-size: 11px;
    line-height: 1.34;
    -webkit-line-clamp: 3;
  }
  .ht-vf-card-meta {
    gap: 8px;
    font-size: 9px;
    margin-top: 0;
    margin-bottom: 5px;
  }
  .ht-vf-lifecycle {
    font-size: 7px;
  }
  .ht-vf-life-segs {
    gap: 3px;
  }
  .ht-vf-life-seg {
    width: 16px;
    height: 4px;
  }
  .ht-vf-card-ftr {
    flex-wrap: wrap;
    row-gap: 8px;
  }
  .ht-vf-analysis {
    margin-left: 0;
    padding: 6px 10px;
  }
  .ht-vf-sidebar {
    gap: 12px;
    margin-top: 12px;
  }
  .ht-vf-charts {
    gap: 11px;
  }
  .ht-vf-chart-card,
  .ht-vf-sub {
    padding: 13px;
  }
  .ht-vf-detail-hero {
    padding: 18px 16px;
  }
  .ht-vf-detail-hero-side {
    width: 100%;
    min-width: 0;
    justify-content: flex-start;
  }
  .ht-vf-detail-hero h1 {
    font-size: 20px;
    line-height: 1.45;
  }
  .ht-vf-tabs {
    margin-bottom: 22px;
  }
  .ht-vf-tab {
    padding: 12px 14px;
  }
  .ht-vf-detail-panel-bd,
  .ht-vf-detail-sb-bd {
    padding: 14px;
  }
  .ht-vf-sidepanel {
    padding: 18px 16px;
  }
  .ht-vf-sidepanel-title {
    margin-bottom: 18px;
  }
  .ht-vf-affected-product.compact .ht-vf-affected-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .ht-vf-affected-product.compact .ht-vf-affected-platform {
    text-align: left;
  }
  .ht-vf-ref-link,
  .ht-vf-ioc-item.compact {
    font-size: 14px;
  }
  .ht-vf-cvss-score-hero {
    padding: 18px 16px;
    gap: 16px;
  }
  .ht-vf-cvss-score-copy {
    min-width: 92px;
  }
  .ht-vf-cvss-score-text {
    font-size: 32px;
  }
  .ht-vf-cvss-vector-block {
    flex-basis: 100%;
  }
  .ht-vf-cvss-metric-grid {
    grid-template-columns: 1fr;
    padding: 14px;
  }
  .ht-vf-cvss-metric-card,
  .ht-vf-cvss-side-card {
    padding: 14px;
  }
  .ht-vf-form {
    grid-template-columns: 1fr;
  }
  .ht-vf-affected-title,
  .ht-vf-affected-flow {
    flex-direction: column;
    align-items: flex-start;
  }
  .ht-vf-affected-flow svg {
    display: none;
  }
  .ht-vf-affected-chip {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .ht-vf-stats {
    gap: 6px;
  }
  .ht-vf-stat {
    padding: 10px 10px;
  }
  .ht-vf-stat-lbl {
    font-size: 10px;
  }
  .ht-vf-score-box strong {
    font-size: 15px;
  }
}
