.hf-body { background: #f4f4f5; color: #111; }
.hf-shell { display: flex; min-height: 100vh; }

.hf-sidebar {
  width: 220px;
  flex: none;
  background: #fff;
  border-right: 1px solid var(--rule);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
}
.hf-logo { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 500; padding: 0 8px 18px; }
.hf-logo img { width: 20px; height: 20px; }
.hf-nav { display: flex; flex-direction: column; gap: 2px; }
.hf-nav a {
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-73);
}
.hf-nav a.active { background: #111; color: #fff; }
.hf-nav a:hover:not(.active) { background: rgba(17,17,17,0.05); }
.hf-section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--text-45);
  padding: 18px 10px 6px;
}
.hf-sidebar-bottom { margin-top: auto; font-size: 12px; color: var(--text-45); padding: 10px; }

.hf-main { flex: 1; min-width: 0; }
.hf-topbar {
  height: 56px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  border-bottom: 1px solid var(--rule);
  background: #fff;
}
.hf-crumb { font-size: 14px; color: var(--text-60); }
.hf-crumb a { color: var(--text); }
.hf-search {
  flex: 1;
  max-width: 320px;
  font-size: 13px;
  color: var(--text-45);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 7px 12px;
  display: flex;
  justify-content: space-between;
}
.hf-topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.hf-content { padding: 28px; max-width: 1200px; }

.hf-hero {
  background: #111;
  color: #fff;
  border-radius: 16px;
  padding: 32px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}
.hf-hero-eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: rgba(255,255,255,0.6); margin-bottom: 14px; }
.hf-hero h1 { font-size: 34px; font-weight: 500; line-height: 1.15; margin: 0 0 14px; max-width: 20ch; }
.hf-hero p { font-size: 15px; color: rgba(255,255,255,0.75); max-width: 52ch; margin: 0 0 18px; }
.hf-hero-actions { display: flex; gap: 10px; margin-bottom: 14px; }
.hf-hero-disclaimer { font-size: 11px; color: rgba(255,255,255,0.4); max-width: 60ch; }
.hf-hero-badge {
  flex: none;
  width: 130px;
  height: 130px;
  background: #1c1c1e;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transform: rotate(3deg);
}
.hf-hero-badge span.big { font-size: 30px; font-weight: 700; }
.hf-hero-badge span.small { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.08em; color: rgba(255,255,255,0.5); }

.hf-stats { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid var(--rule); border-radius: 14px; margin-bottom: 16px; overflow: hidden; }
.hf-stats > div { padding: 18px 20px; border-right: 1px solid var(--rule); }
.hf-stats > div:last-child { border-right: none; }
.hf-stats .value { font-size: 24px; margin-top: 4px; }
.hf-stats .lbl { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.05em; color: var(--text-45); }

.hf-note {
  background: #f2f3e0;
  border: 1px solid #dcdfb8;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  margin-bottom: 8px;
  cursor: pointer;
}
.hf-note-detail {
  background: #fafaf0;
  border: 1px solid #dcdfb8;
  border-top: none;
  border-radius: 0 0 10px 10px;
  padding: 4px 16px 14px;
  margin: -8px 0 18px;
}
.hf-note-detail p { font-size: 13px; color: var(--text-73); line-height: 1.6; margin: 0; }

.hf-grid.hf-grid-list { grid-template-columns: 1fr; }
.hf-grid.hf-grid-list .hf-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px 20px; }
.hf-grid.hf-grid-list .hf-card-desc,
.hf-grid.hf-grid-list .hf-progress,
.hf-grid.hf-grid-list .hf-card-foot { display: none; }

.hf-discover h2 { font-size: 22px; font-weight: 500; margin: 0 0 4px; }
.hf-discover .sub { font-size: 13px; color: var(--text-60); margin-bottom: 16px; }

.hf-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.hf-searchbar { flex: 1; min-width: 220px; border: 1px solid var(--rule); border-radius: 8px; padding: 9px 12px; font-size: 13px; background: #fff; }
.hf-pill-group { display: flex; gap: 4px; background: #fff; border: 1px solid var(--rule); border-radius: 8px; padding: 3px; }
.hf-pill-group button { font-size: 12px; padding: 5px 10px; border-radius: 6px; background: none; border: none; color: var(--text-60); }
.hf-pill-group button.active { background: #111; color: #fff; }
.hf-select { font-size: 12px; border: 1px solid var(--rule); border-radius: 8px; padding: 7px 10px; background: #fff; color: var(--text-73); }

.hf-stock-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.hf-stock-pills button { font-size: 12px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--rule); background: #fff; color: var(--text-73); }
.hf-stock-pills button.active { background: #111; color: #fff; border-color: #111; }

.hf-toolbar-row { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-60); margin: 10px 0 18px; }

.hf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.hf-card { background: #fff; border: 1px solid var(--rule); border-radius: 14px; padding: 18px; }
.hf-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.hf-card-name { font-size: 15px; font-weight: 500; }
.hf-card-ticker { font-family: var(--font-mono); font-size: 11px; color: var(--text-60); }
.hf-card-change { font-size: 12px; text-align: right; }
.hf-card-change.up { color: #16794f; }
.hf-card-change.down { color: #b3261e; }
.hf-avatar {
  width: 34px; height: 34px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px; font-weight: 700;
}
.hf-card-desc { font-size: 12px; color: var(--text-60); margin: 8px 0; line-height: 1.4; min-height: 32px; }
.hf-card-meta { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-45); margin-bottom: 8px; }
.hf-card-fdv { font-size: 20px; margin: 6px 0 2px; }
.hf-card-sub { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-60); margin-bottom: 10px; }
.hf-progress { height: 4px; border-radius: 2px; background: var(--rule); overflow: hidden; margin-bottom: 4px; }
.hf-progress span { display: block; height: 100%; background: #111; }
.hf-card-foot { font-size: 11px; color: var(--text-45); }

.hf-pagination { display: flex; justify-content: center; gap: 6px; margin: 22px 0; }
.hf-pagination button { font-size: 13px; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--rule); background: #fff; }
.hf-pagination button.active { background: #111; color: #fff; border-color: #111; }

.hf-footer { background: #fff; border-top: 1px solid var(--rule); padding: 40px 28px; }
.hf-footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; max-width: 1200px; margin: 0 auto 24px; }
.hf-footer-grid h4 { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.05em; color: var(--text-45); text-transform: uppercase; margin: 0 0 10px; }
.hf-footer-grid a { display: block; font-size: 13px; color: var(--text-73); padding: 4px 0; }
.hf-footer-note { max-width: 1200px; margin: 0 auto; font-size: 11px; color: var(--text-45); border-top: 1px solid var(--rule); padding-top: 16px; }
.hf-footer-note code { background: var(--rule); padding: 1px 5px; border-radius: 4px; }

@media (max-width: 900px) {
  .hf-shell { flex-direction: column; }
  .hf-sidebar { width: 100%; flex-direction: row; overflow-x: auto; }
  .hf-nav { flex-direction: row; }
  .hf-stats, .hf-grid, .hf-footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hf-hero { flex-direction: column; }
}
