.hit-feed {
  width: 100%;
  min-width: 0;
}

.hit-feed .lede {
  margin: 0.75rem 0 0;
  max-width: 52rem;
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  line-height: 1.35;
  letter-spacing: -0.02em;
  text-align: left;
}

.hit-feed .lede strong {
  font-variant-numeric: tabular-nums;
}

.hit-feed .stats-refresh {
  display: inline-block;
  margin-left: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1b5e20;
  text-underline-offset: 0.15em;
  white-space: nowrap;
}

.hit-feed .meta {
  margin: 0.5rem 0 0;
  color: #666;
  font-size: 0.85rem;
  text-align: left;
}

.hit-feed .status-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  margin-top: 0.9rem;
  padding: 0.45rem 0.7rem;
  background: #111;
  color: #eee;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
}

.hit-feed .dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  display: inline-block;
  background: #f5c542;
}

.hit-feed .dot.live { background: #3ddc84; }
.hit-feed .dot.paused { background: #f5c542; }
.hit-feed .dot.dead { background: #e05555; }

.hit-feed .jump {
  margin-left: auto;
  background: transparent;
  border: 1px solid #555;
  color: #eee;
  font: inherit;
  padding: 0.15rem 0.5rem;
  cursor: pointer;
}

.hit-feed .jump[hidden] { display: none; }

.hit-feed .table-wrap {
  overflow: auto;
  min-height: 0;
  margin-top: 0;
  border-top: 1px solid #e8e8e8;
}

.hit-feed[data-layout="page"] .table-wrap {
  flex: 1;
}

.hit-feed[data-layout="home"] .table-wrap {
  height: min(42vh, 28rem);
  border: 1px solid #e8e8e8;
  border-top: none;
}

.hit-feed table {
  width: 100%;
  border-collapse: collapse;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  text-align: left;
}

.hit-feed thead th {
  position: sticky;
  top: 0;
  background: #f3f3f3;
  border-bottom: 1px solid #ddd;
  text-align: left;
  font-weight: 600;
  color: #555;
  padding: 0.45rem 0.65rem;
  z-index: 1;
}

.hit-feed tbody td {
  padding: 0.35rem 0.65rem;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: top;
  white-space: nowrap;
}

.hit-feed tbody tr.dim { color: #999; }
.hit-feed tbody tr.flash { background: #eefaf3; }
.hit-feed .path { max-width: 28rem; overflow: hidden; text-overflow: ellipsis; }
.hit-feed .st-ok { color: #1a7f37; }
.hit-feed .st-bad { color: #a33; }

.hit-feed .tag {
  display: inline-block;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  background: #e8e8e8;
  color: #444;
}

.hit-feed .tag.probe,
.hit-feed .tag.scanner { background: #fde8e8; color: #a33; }
.hit-feed .tag.ai-crawler { background: #e7f0ff; color: #245; }
.hit-feed .tag.search-bot { background: #eef6e8; color: #365; }
.hit-feed .tag.mcp { background: #e8f5e9; color: #1b5e20; }
.hit-feed .tag.a2a { background: #f3e5f5; color: #6a1b9a; }
.hit-feed .tag.agent { background: #e0f2f1; color: #00695c; }
.hit-feed .tag.auth { background: #ede7f6; color: #4527a0; }
.hit-feed .tag.proper-ai { background: #e8f5e9; color: #1b5e20; }
.hit-feed .tag.human { background: #e3f2fd; color: #1565c0; }
.hit-feed .tag.crawler { background: #fff8e1; color: #f57f17; }
.hit-feed .tag.rubbish { background: #fde8e8; color: #a33; }
.hit-feed .tag.viewer { background: #f0f0f0; color: #888; }
.hit-feed .tag.unknown { background: #fff3d6; color: #965; }
.hit-feed .note { color: #888; max-width: 14rem; overflow: hidden; text-overflow: ellipsis; }

.hit-feed .pies {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0.9rem 0 0;
  text-align: left;
}

.hit-feed .pie-card {
  margin: 0;
  padding: 0.65rem 0.7rem 0.75rem;
  border: 1px solid #e8e8e8;
  min-width: 0;
}

.hit-feed .pie-card h3 {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #555;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.hit-feed .pie-body {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  min-width: 0;
}

.hit-feed .pie-disk {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  flex: 0 0 auto;
  background: #eee;
}

.hit-feed .pie-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.68rem;
  line-height: 1.35;
  color: #333;
}

.hit-feed .pie-legend li {
  display: flex;
  gap: 0.35rem;
  align-items: baseline;
  min-width: 0;
}

.hit-feed .pie-swatch {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 1px;
  flex: 0 0 auto;
}

.hit-feed .pie-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.hit-feed .pie-count {
  margin-left: auto;
  color: #888;
  font-variant-numeric: tabular-nums;
}

.hit-feed .feed-more {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  text-align: left;
}

.hit-feed .feed-more a {
  color: inherit;
  text-underline-offset: 0.2em;
}

.hit-feed .agent-noscript {
  margin: 0.65rem 0 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid #1b5e20;
  background: #f7faf8;
  color: #1b5e20;
  font-size: 0.85rem;
  line-height: 1.45;
  text-align: left;
  font-family: ui-sans-serif, system-ui, sans-serif;
}

.hit-feed .agent-noscript a {
  color: inherit;
}

.hit-feed .asks-panel {
  flex: 0 0 auto;
  margin-top: 0.75rem;
  border: 1.5px solid #1b5e20;
  background: #f7faf8;
  text-align: left;
  display: flex;
  flex-direction: column;
  max-height: 14rem;
  min-height: 8rem;
}

.hit-feed .asks-head {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.45rem 0.65rem 0.35rem;
  border-bottom: 1px solid #c8e6c9;
}

.hit-feed .asks-head h3 {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: #1b5e20;
}

.hit-feed .asks-sub {
  font-size: 0.72rem;
  color: #666;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.hit-feed .asks-wrap {
  position: relative;
  overflow: auto;
  flex: 1 1 auto;
  min-height: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
}

.hit-feed .asks-wrap table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.hit-feed .asks-wrap thead th {
  position: sticky;
  top: 0;
  background: #eef7f0;
  text-align: left;
  font-weight: 600;
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  color: #666;
  padding: 0.3rem 0.55rem;
  border-bottom: 1px solid #c8e6c9;
}

.hit-feed .asks-wrap tbody td {
  padding: 0.28rem 0.55rem;
  border-bottom: 1px solid #e4efe6;
  vertical-align: top;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hit-feed .asks-wrap tbody tr.flash { background: #e8f5e9; }
.hit-feed .asks-wrap td.asks-who { width: 28%; }
.hit-feed .asks-wrap td.asks-for { width: 48%; color: #111; }
.hit-feed .asks-empty {
  margin: 0;
  padding: 0.85rem 0.65rem;
  color: #888;
  font-size: 0.78rem;
  font-family: ui-sans-serif, system-ui, sans-serif;
}
.hit-feed .asks-empty[hidden] { display: none; }

.hit-feed .all-hits-label {
  flex: 0 0 auto;
  margin: 0.65rem 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #555;
  text-align: left;
  font-family: ui-sans-serif, system-ui, sans-serif;
}

@media (max-width: 900px) {
  .hit-feed .pies {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  .hit-feed .col-geo,
  .hit-feed .col-note,
  .hit-feed .col-who { display: none; }
  .hit-feed .path { max-width: 10rem; }
  .hit-feed .lede { font-size: 1rem; }
  .hit-feed[data-layout="home"] .table-wrap { height: min(40vh, 20rem); }
  .hit-feed .asks-panel { max-height: 11rem; }
}
