:root {
  --bp-ink: #182534;
  --bp-muted: #607083;
  --bp-line: rgba(24, 37, 52, .12);
  --bp-blue: #1f4b7a;
  --bp-blue-soft: rgba(31, 75, 122, .10);
  --bp-warn: #924a24;
  --bp-warn-soft: #fff7f1;
}
body {
  margin: 0;
  background: #f6f4ef;
  color: var(--bp-ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.is-hidden { display: none !important; }
.bp-gate {
  min-height: calc(100vh - 72px);
  display: grid;
  place-items: center;
  padding: 32px;
}
.bp-gate-card {
  width: min(460px, 100%);
  padding: 28px;
  border: 1px solid var(--bp-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(23, 36, 52, .10);
}
.bp-shell {
  padding: 34px 0 80px;
}
.container {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
}
.bp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  margin-bottom: 22px;
}
.bp-eyebrow, .bp-card-kicker {
  margin: 0 0 8px;
  color: var(--bp-blue);
  font-size: .76rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.bp-eyebrow span {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--bp-blue);
}
.bp-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -.03em;
}
.bp-hero p {
  max-width: 780px;
  margin: 14px 0 0;
  color: var(--bp-muted);
  font-size: 1rem;
  line-height: 1.6;
}
.bp-live-card {
  min-width: 230px;
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid var(--bp-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(23, 36, 52, .08);
}
.bp-live-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #a9b4c2;
}
.bp-live-dot.is-live { background: #1f8d5a; box-shadow: 0 0 0 7px rgba(31, 141, 90, .12); }
.bp-live-card small { color: var(--bp-muted); }
.bp-issue-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  margin-bottom: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(146, 74, 36, .22);
  border-radius: 14px;
  background: var(--bp-warn-soft);
}
.bp-issue-card h2 { margin: 0 0 6px; font-size: 1.15rem; }
.bp-issue-card p { margin: 0; color: #6e543f; }
.bp-issue-card code {
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff;
  color: #613515;
  font-size: .82rem;
}
.bp-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.bp-kpis article {
  min-height: 104px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--bp-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(23, 36, 52, .07);
}
.bp-kpis span {
  color: var(--bp-muted);
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.bp-kpis strong {
  font-size: 2rem;
  line-height: 1;
  color: #17324f;
}
.bp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
  gap: 18px;
}
.bp-panel {
  border: 1px solid var(--bp-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(23, 36, 52, .08);
  overflow: hidden;
}
.bp-panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--bp-line);
}
.bp-panel h2 { margin: 0; font-size: 1.2rem; }
.bp-scope-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--bp-blue-soft);
  color: var(--bp-blue);
  font-weight: 800;
  font-size: .76rem;
}
.bp-events {
  list-style: none;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
}
.bp-events li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 15px 20px;
  border-bottom: 1px solid rgba(24, 37, 52, .08);
}
.bp-events li:last-child { border-bottom: 0; }
.bp-event-title { display: block; font-weight: 800; color: var(--bp-ink); }
.bp-event-detail { display: block; margin-top: 4px; color: var(--bp-muted); font-size: .86rem; }
.bp-event-meta {
  display: grid;
  gap: 5px;
  justify-items: end;
  color: var(--bp-muted);
  font-size: .78rem;
}
.bp-status {
  display: inline-flex;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--bp-blue-soft);
  color: var(--bp-blue);
  font-weight: 850;
}
.bp-status.is-warning { background: rgba(146, 74, 36, .13); color: var(--bp-warn); }
.bp-agent-list {
  display: grid;
  gap: 10px;
  padding: 18px 20px 20px;
}
.bp-agent {
  padding: 14px;
  border: 1px solid rgba(24, 37, 52, .10);
  border-radius: 12px;
  background: #f9fbfd;
}
.bp-agent strong { display: block; color: var(--bp-ink); }
.bp-agent span { display: block; margin-top: 4px; color: var(--bp-muted); font-size: .84rem; overflow-wrap: anywhere; }
@media (max-width: 1100px) {
  .bp-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bp-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .container { width: min(100% - 28px, 1440px); }
  .bp-hero, .bp-issue-card { grid-template-columns: 1fr; }
  .bp-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bp-live-card { min-width: 0; }
}
@media (max-width: 520px) {
  .bp-kpis { grid-template-columns: 1fr; }
  .bp-events li { grid-template-columns: 1fr; }
  .bp-event-meta { justify-items: start; }
}


.bp-shell .container {
  width: min(1440px, calc(100% - 48px));
}
@media (max-width: 760px) {
  .bp-shell .container { width: min(100% - 28px, 1440px); }
}


.bp-feed-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}
.bp-feed-actions span,
.bp-pagination span {
  color: var(--bp-muted);
  font-size: .82rem;
  font-weight: 750;
}
.bp-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-top: 1px solid rgba(24, 37, 52, .08);
  background: #fbfcfd;
}
.bp-pagination button:disabled {
  opacity: .48;
  cursor: not-allowed;
}
@media (max-width: 560px) {
  .bp-feed-actions,
  .bp-pagination {
    align-items: stretch;
    flex-direction: column;
  }
}


.bp-panel {
  min-height: 760px;
  display: flex;
  flex-direction: column;
}
.bp-events,
.bp-agent-list {
  flex: 1 1 auto;
}
.bp-agent-list {
  align-content: start;
  min-height: 586px;
}
.bp-agent {
  min-height: 82px;
  display: grid;
  align-content: center;
}
.bp-agent-pagination {
  margin-top: auto;
}
@media (max-width: 1100px) {
  .bp-panel { min-height: 0; }
  .bp-agent-list { min-height: 0; }
}

.bp-panel-head {
  min-height: 84px;
}
.bp-panel-head > div:first-child {
  min-width: 0;
}
.bp-feed-actions {
  min-width: 220px;
}
.bp-feed-actions #bp-agent-summary,
.bp-feed-actions #bp-page-summary {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  text-align: right;
}
.bp-scope-pill {
  flex: 0 0 auto;
  margin-right: 2px;
}
.bp-events li {
  grid-template-columns: minmax(0, 1fr) minmax(116px, 148px);
  align-items: center;
  min-height: 74px;
  gap: 18px;
}
.bp-event-main {
  display: block;
  min-width: 0;
}
.bp-event-title,
.bp-event-detail {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bp-event-meta {
  min-width: 0;
}
.bp-event-time {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.bp-status {
  justify-content: center;
  min-width: 74px;
  text-align: center;
}
.bp-agent-list {
  grid-template-rows: repeat(6, minmax(82px, auto));
}
.bp-agent {
  gap: 5px;
  min-width: 0;
}
.bp-agent strong,
.bp-agent-area,
.bp-agent-seen {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bp-agent strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: .86rem;
}

@media (max-width: 760px) {
  .bp-panel-head {
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
  }
  .bp-feed-actions {
    justify-content: space-between;
    min-width: 0;
  }
  .bp-events li {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .bp-event-title,
  .bp-event-detail,
  .bp-agent strong,
  .bp-agent-area,
  .bp-agent-seen {
    white-space: normal;
  }
  .bp-event-meta {
    justify-items: start;
  }
}
