/* ===========================================================================
   /demo — page layer
   The sample crawl log is the shared component (nmos_crawl_log); the filter is
   a short chip row above it with the foundation's selected state. Coverage is
   one panel of plain readout rows, not three identical cards.
   =========================================================================== */

/* ---------- Toolbar: title left, chips right (stacked on small screens) ---- */
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .demo-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin: 0 0 16px;
}
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .demo-toolbar h2 {
  margin: 0;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: 0;
}
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .demo-filters.crawler-hub-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

/* ---------- The log: every sample row stays, the filter decides ----------- */
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .demo-log-wrap { display: block; min-width: 0; }
@container nmos-log (max-width: 399px) {
  body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .demo-log.nmos-log .nmos-log-table .nmos-log-row.nmos-log-row--extra:not([hidden]) { display: table-row; }
}
@supports not (container-type: inline-size) {
  @media (max-width: 600px) {
    body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .demo-log.nmos-log .nmos-log-table .nmos-log-row.nmos-log-row--extra:not([hidden]) { display: table-row; }
  }
}

/* Count after filtering: quiet, reserves its line so nothing jumps */
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .demo-filter-note {
  min-height: 20px;
  max-width: none;
  margin: 12px 0 0;
  font-family: var(--font-label);
  font-size: 13px;
  line-height: 20px;
  font-variant-numeric: tabular-nums;
  color: var(--outline);
}

/* ---------- Coverage: one panel, three readout rows ----------------------- */
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .demo-coverage {
  display: grid;
  margin: 0;
  background: var(--surface-container-lowest);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .demo-coverage-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  padding: 20px 24px;
}
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .demo-coverage-row + .demo-coverage-row { border-top: 1px solid var(--border-subtle); }
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .demo-coverage-row h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: var(--on-surface);
}
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .demo-readout {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 24px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  color: var(--on-surface);
}
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .demo-readout .demo-readout-sep { color: var(--outline); }
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .demo-readout .nmos-dot { white-space: normal; vertical-align: baseline; }
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .demo-readout .nmos-dot .nmos-dot-label { color: var(--on-surface); }
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .demo-readout .nmos-dot.nmos-dot--risk .nmos-dot-label { color: var(--risk); }

@media (min-width: 768px) {
  body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .demo-coverage-row {
    grid-template-columns: 224px minmax(0, 1fr);
    align-items: baseline;
    gap: 24px;
  }
}

@media (max-width: 599px) {
  body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .demo-coverage-row { padding: 16px 20px; }
}
