.hm {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ov-hero {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 8px 2px 0;
}
.ov-title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.ov-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
@container (max-width: 1080px) { .ov-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@container (max-width: 520px) { .ov-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ov-stat {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-height: 112px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.ov-stat:hover { border-color: var(--accent-soft-border); box-shadow: 0 2px 10px var(--shadow); }
.ov-stat:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ov-stat-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.ov-stat-value {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.ov-stat-sub { font-size: 12px; color: var(--muted); line-height: 1.45; }
.ov-stat-new {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.ov-stat-new span { font-weight: 500; opacity: .85; }

.ov-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
@container (max-width: 760px) { .ov-grid { grid-template-columns: minmax(0, 1fr); } }

.ov-panel {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  padding: 16px 18px;
  min-width: 0;
}
.ov-panel-foot { margin-top: auto; padding-top: 10px; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px 16px; }
.ov-foot-note { margin-right: auto; font-size: 12px; color: var(--muted); line-height: 1.5; align-self: center; }

.ov-list { list-style: none; margin: 0 -8px; padding: 0; display: flex; flex-direction: column; }
.ov-list > li + li { border-top: 1px solid var(--border); }
.ov-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  padding: 10px 8px;
  border: 0;
  border-radius: 7px;
  background: none;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.ov-row:hover { background: var(--hover-surface); }
.ov-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.ov-row-title {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ov-row-title small { font-weight: 500; color: var(--muted); font-size: 12px; margin-left: 2px; }
.ov-row-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 12px;
  color: var(--muted);
}
.ov-row-end {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.ov-row-org { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-tag {
  flex: none;
  padding: 1px 7px;
  border-radius: 5px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.ov-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.ov-panel-head h2 { margin: 0; font-size: 15px; font-weight: 700; color: var(--text); }
.ov-count { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ov-empty { margin: 8px 0 4px; color: var(--muted); font-size: 13px; list-style: none; padding: 0 8px; }

.ov-link {
  border: 0;
  background: none;
  padding: 2px 0;
  color: var(--accent);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.ov-link:hover { text-decoration: underline; }

.ov-filter {
  display: inline-flex;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}
.ov-filter-btn {
  border: 0;
  background: none;
  padding: 4px 10px;
  border-radius: 6px;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.ov-filter-btn:hover { color: var(--text); }
.ov-filter-btn.active { background: var(--card); color: var(--text); box-shadow: 0 1px 2px var(--shadow); }

.ov-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.ov-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 7px 8px;
  border: 0;
  border-radius: 7px;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.ov-item:hover { background: var(--hover-surface); }
.ov-item:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.ov-item-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.ov-item-meta {
  min-width: 0;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 12px;
}

.ov-kind {
  --k: var(--muted);
  display: inline-block;
  min-width: 74px;
  box-sizing: border-box;
  padding: 1px 7px;
  border-radius: 5px;
  border: 1px solid color-mix(in srgb, var(--k) 35%, transparent);
  background: color-mix(in srgb, var(--k) 10%, transparent);
  color: var(--k);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}
.ov-kind.is-target { --k: var(--accent); }
.ov-kind.is-tool { --k: var(--c-pcp); }
.ov-kind.is-reference { --k: var(--c-exm); }
.ov-kind.is-node { --k: var(--c-col); }

.ov-search { border-color: var(--accent-soft-border); }
.ov-search-block + .ov-search-block { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.ov-search-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 12px; color: var(--muted); }
.ov-search-head .ov-link { margin-left: auto; }

#logo-home { cursor: pointer; }

@container (max-width: 560px) {
  .ov-item .ov-item-meta { display: none; }
  .ov-title { font-size: 20px; }
}
