/* Deliberately scoped: the classic dashboard and Pixel Office keep their styles. */
.bcl3 {
  --bcl-bg: #10151e;
  --bcl-pane: #131b26;
  --bcl-raised: #192432;
  --bcl-border: #293748;
  --bcl-muted: #9caec1;
  --bcl-text: #e5edf5;
  --bcl-accent: #89c5b4;
  --bcl-amber: #e7bb79;
  --bcl-red: #eea29c;
  color-scheme: dark;
  color: var(--bcl-text);
  background: var(--bcl-bg);
  border: 1px solid var(--bcl-border);
  border-radius: 16px;
  overflow: hidden;
  isolation: isolate;
  font: 14px/1.55 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  text-align: left;
  min-width: 0;
  box-shadow: 0 16px 56px #0003;
}
.bcl3 *, .bcl3 *::before, .bcl3 *::after { box-sizing: border-box; }
.bcl3 [hidden] { display: none !important; }
.bcl3 h2, .bcl3 h3, .bcl3 h4, .bcl3 p, .bcl3 dl, .bcl3 dd { margin: 0; }
.bcl3 h2 { font-size: 18px; font-weight: 650; letter-spacing: -.025em; }
.bcl3 h3 { font-size: 14px; font-weight: 650; }
.bcl3 h4 { font-size: 12px; font-weight: 600; }
.bcl3 button, .bcl3 input, .bcl3 textarea, .bcl3 select { font: inherit; }
.bcl3 button { cursor: pointer; }
.bcl3 button:disabled { opacity: .45; cursor: not-allowed; }
.bcl3 :is(button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--bcl-accent);
  outline-offset: 3px;
}
.bcl3 input, .bcl3 textarea, .bcl3 select {
  color: var(--bcl-text);
  background: #0d141e;
  border: 1px solid var(--bcl-border);
  border-radius: 7px;
  padding: 8px 10px;
  min-width: 0;
  box-shadow: none;
}
.bcl3 input::placeholder, .bcl3 textarea::placeholder { color: #8294a9; opacity: 1; }
.bcl3 label { display: block; color: var(--bcl-muted); font-size: 11px; letter-spacing: .01em; }
.bcl3 .bcl3-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #c5d3e3;
  background: transparent;
  border: 1px solid var(--bcl-border);
  border-radius: 7px;
  padding: 7px 10px;
  min-height: 34px;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.3;
  box-shadow: none;
  white-space: normal;
  text-align: center;
  transition: background-color 120ms ease, border-color 120ms ease;
}
.bcl3 .bcl3-button:hover:enabled { background: #233243; border-color: #4b6277; transform: none; }
.bcl3 .bcl3-primary { background: #26453f; color: #d4f4e8; border-color: #42665b; }
.bcl3 .bcl3-primary:hover:enabled { background: #31584c; }
.bcl3 .bcl3-danger { color: var(--bcl-red); }
.bcl3 .bcl3-subtle { color: var(--bcl-muted); font-size: 11px; line-height: 1.55; }
.bcl3 [data-tone='warn'] { color: var(--bcl-amber); }
.bcl3 [data-tone='good'] { color: #b6d5c7; }
.bcl3 .bcl3-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--bcl-border);
  background: linear-gradient(110deg, #1b2933, #131b27 65%);
}
.bcl3 .bcl3-brand { display: flex; align-items: center; gap: 12px; }
.bcl3 .bcl3-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #446259;
  border-radius: 9px;
  color: var(--bcl-accent);
  background: #1f342f;
  font: 600 19px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
}
.bcl3 .bcl3-eyebrow { color: var(--bcl-muted); font-size: 10px; letter-spacing: .035em; }
.bcl3 .bcl3-top-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bcl3 .bcl3-connection { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; color: var(--bcl-muted); margin-right: 8px; }
.bcl3 .bcl3-connection::before { content: ''; display: block; width: 6px; height: 6px; border-radius: 50%; background: #768799; }
.bcl3.bcl3-pulsing .bcl3-connection::before { background: var(--bcl-accent); animation: bcl3-pulse 2s ease-in-out infinite; }
.bcl3 .bcl3-connection[data-tone='warn']::before { background: var(--bcl-amber); }
.bcl3 .bcl3-workspace { display: flex; height: min(82vh, 1020px); min-height: 570px; }
.bcl3 .bcl3-nav {
  flex: 0 0 auto;
  width: 244px;
  min-width: 190px;
  max-width: 32%;
  overflow: auto;
  resize: horizontal;
  border-right: 1px solid var(--bcl-border);
  background: var(--bcl-pane);
  scrollbar-width: thin;
  scrollbar-color: #3a4b60 transparent;
}
.bcl3 .bcl3-pane-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 18px 16px 12px; }
.bcl3 .bcl3-nav > .bcl3-pane-head { position: sticky; top: 0; background: var(--bcl-pane); z-index: 2; }
.bcl3 .bcl3-count { color: var(--bcl-muted); font-size: 10px; white-space: nowrap; }
.bcl3 .bcl3-nav-search { margin: 0 12px 18px; }
.bcl3 .bcl3-nav-search input { width: 100%; margin-top: 5px; font-size: 11px; }
.bcl3 .bcl3-nav-group { padding: 0 8px 14px; }
.bcl3 .bcl3-nav-group h4 {
  position: sticky;
  top: 52px;
  padding: 7px 6px;
  color: #92a5b9;
  background: var(--bcl-pane);
  font-size: 10px;
  font-weight: 550;
  line-height: 1.5;
  overflow-wrap: anywhere;
  z-index: 1;
}
.bcl3 .bcl3-run-link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 3px;
  width: 100%;
  padding: 11px 12px;
  margin: 3px 0;
  border: 1px solid transparent;
  text-align: left;
  border-radius: 9px;
}
.bcl3 .bcl3-run-link strong { font-size: 12px; font-weight: 550; color: var(--bcl-text); overflow-wrap: anywhere; }
.bcl3 .bcl3-run-link small { display: block; font-size: 10px; color: var(--bcl-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bcl3 .bcl3-nav-kind { font-size: 9px; letter-spacing: .055em; text-transform: uppercase; color: #90a6b9; }
.bcl3 .bcl3-nav-state { display: flex; align-items: center; gap: 5px; color: #b1c3d3; font-size: 10px; }
.bcl3 .bcl3-nav-state::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: #7b8d9d; }
.bcl3 .bcl3-run-link.bcl3-selected { background: #20342f; border-color: #38564d; }
.bcl3 .bcl3-selected .bcl3-nav-state::before { background: var(--bcl-accent); }
.bcl3 .bcl3-needs-attention .bcl3-nav-state { color: var(--bcl-amber); }
.bcl3 .bcl3-needs-attention .bcl3-nav-state::before { background: var(--bcl-amber); }
.bcl3 .bcl3-center { display: flex; flex: 1 1 400px; flex-direction: column; min-width: 300px; position: relative; }
.bcl3 .bcl3-run-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 22px 13px;
  border-bottom: 1px solid #253140;
  background: var(--bcl-bg);
  flex: 0 0 auto;
}
.bcl3 .bcl3-run-title { min-width: 0; }
.bcl3 .bcl3-run-title h3 { font-size: 15px; letter-spacing: -.015em; overflow-wrap: anywhere; }
.bcl3 .bcl3-run-identity { color: var(--bcl-muted); font: 10px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; margin-top: 4px; }
.bcl3 .bcl3-status { color: #a9bbcd; font-size: 10px; flex-shrink: 0; max-width: 36%; text-align: right; }
.bcl3 .bcl3-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 9px 16px; gap: 8px; }
.bcl3 .bcl3-view-tabs { display: flex; gap: 2px; background: #0b111a; border: 1px solid #263342; padding: 3px; border-radius: 9px; }
.bcl3 .bcl3-view-tabs button { min-height: 30px; border-color: transparent; padding: 5px 10px; color: var(--bcl-muted); }
.bcl3 .bcl3-view-tabs [aria-selected='true'] { color: var(--bcl-text); background: #293746; border-color: #3a4d5d; }
.bcl3 .bcl3-density { display: flex; align-items: center; gap: 6px; font-size: 10px; }
.bcl3 .bcl3-density select { font-size: 10px; padding: 4px 6px; }
.bcl3 .bcl3-search-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; margin: 0 19px 10px; }
.bcl3 .bcl3-search-label { flex: 1; font-size: 0; min-width: 160px; }
.bcl3 .bcl3-search-label input { width: 100%; font-size: 11px; padding: 7px 9px; background: #111923; }
.bcl3 .bcl3-banner { flex-shrink: 0; padding: 10px 18px; background: #2e281d; border-block: 1px solid #594b31; color: #e3c592; font-size: 12px; overflow-wrap: anywhere; }
.bcl3 .bcl3-scroller { flex: 1 1 auto; min-height: 140px; overflow: auto; overflow-anchor: none; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #3a4b60 transparent; }
.bcl3 .bcl3-paging { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 13px 16px 4px; flex-wrap: wrap; }
.bcl3 .bcl3-paging .bcl3-button { font-size: 11px; padding: 5px 8px; }
.bcl3 .bcl3-paging .bcl3-subtle { font-size: 10px; }
.bcl3 .bcl3-event-host { padding: 5px 22px 25px; }
.bcl3 .bcl3-event { position: relative; padding: 15px 0 16px 17px; margin-left: 3px; border-left: 1px solid #2b3949; min-width: 0; }
.bcl3 .bcl3-event::before { content: ''; position: absolute; top: 23px; left: -3px; width: 5px; height: 5px; border-radius: 50%; background: #8294a7; box-shadow: 0 0 0 4px var(--bcl-bg); }
.bcl3 .bcl3-event-assistant::before { background: var(--bcl-accent); }
.bcl3 .bcl3-event-error::before { background: var(--bcl-red); }
.bcl3 .bcl3-event-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 20px; margin-bottom: 7px; }
.bcl3 .bcl3-event-kind { font-size: 11px; color: #a6bccf; font-weight: 600; overflow-wrap: anywhere; }
.bcl3 .bcl3-event-assistant .bcl3-event-kind { color: #a5d8c6; }
.bcl3 .bcl3-event-error .bcl3-event-kind { color: var(--bcl-red); }
.bcl3 .bcl3-event time { color: #8c9db2; font-size: 10px; }
.bcl3 .bcl3-copy { margin-left: auto; min-height: 24px; padding: 2px 6px; font-size: 10px; border-color: transparent; color: #94a8ba; }
.bcl3 .bcl3-message-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.7; color: #dce6ee; }
.bcl3 .bcl3-event-summary { color: #bccbd9; font: 12px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; white-space: pre-wrap; }
.bcl3 .bcl3-command-outcome { display: inline-block; margin: 4px 0 2px; color: #96aabc; font-size: 10px; }
.bcl3 .bcl3-raw { margin-top: 8px; font-size: 11px; }
.bcl3 summary { cursor: pointer; color: #9bb5c9; padding: 4px 0; overflow-wrap: anywhere; }
.bcl3 summary:hover { color: var(--bcl-text); }
.bcl3 .bcl3-chunked { min-width: 0; margin-top: 8px; }
.bcl3 .bcl3-raw-text { display: block; max-height: 380px; margin: 0 0 6px; padding: 12px; border: 1px solid #2a3949; border-radius: 7px; background: #0a111b; color: #b8cbd9; font: 11px/1.65 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; overflow: auto; }
.bcl3 .bcl3-chunked > .bcl3-button { margin: 5px 0 5px 8px; font-size: 10px; }
.bcl3 .bcl3-truncated { color: var(--bcl-amber); font-size: 11px; margin-top: 8px; }
.bcl3 .bcl3-truncated button { border: 0; padding: 3px 4px; min-height: 25px; text-decoration: underline; }
.bcl3 .bcl3-timeline-empty { padding: 50px 30px; color: var(--bcl-muted); font-size: 13px; text-align: center; }
.bcl3 .bcl3-tail { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; padding: 3px 12px; }
.bcl3 .bcl3-tail:has(> [hidden]:first-child + [hidden]) { padding: 0; }
.bcl3 .bcl3-jump { color: #c4e9dc; border-color: #46685e; background: #1d322d; }
.bcl3 .bcl3-composer { border-top: 1px solid var(--bcl-border); padding: 12px 18px; background: #141d28; flex-shrink: 0; }
.bcl3 .bcl3-composer textarea { width: 100%; min-height: 62px; max-height: 150px; resize: vertical; display: block; margin-top: 6px; font-size: 12px; line-height: 1.55; }
.bcl3 .bcl3-composer-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; }
.bcl3 .bcl3-composer-foot small { max-width: 75%; font-size: 10px; }
.bcl3 .bcl3-action-outcome { padding: 9px 18px; background: #182332; border-top: 1px solid var(--bcl-border); font-size: 12px; overflow-wrap: anywhere; }
.bcl3 .bcl3-inspector { flex: 0 0 auto; width: clamp(235px, 23vw, 310px); min-width: 220px; max-width: 36%; border-left: 1px solid var(--bcl-border); background: var(--bcl-pane); overflow: auto; resize: horizontal; scrollbar-width: thin; scrollbar-color: #3a4b60 transparent; }
.bcl3 .bcl3-inspector .bcl3-pane-head { position: sticky; top: 0; background: var(--bcl-pane); z-index: 2; padding-bottom: 16px; }
.bcl3 .bcl3-metadata { display: grid; grid-template-columns: 1fr; gap: 3px; padding: 0 17px 16px; }
.bcl3 .bcl3-metadata dt { color: #91a5b8; font-size: 10px; margin-top: 12px; }
.bcl3 .bcl3-metadata dt:first-child { margin-top: 0; }
.bcl3 .bcl3-metadata dd { color: #cfdae7; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.bcl3 .bcl3-control-box, .bcl3 .bcl3-original { border-top: 1px solid var(--bcl-border); padding: 17px; }
.bcl3 .bcl3-control-box h4, .bcl3 .bcl3-original h4 { margin-bottom: 11px; color: #c4d2df; }
.bcl3 .bcl3-control-box > button { width: 100%; margin-bottom: 7px; }
.bcl3 .bcl3-control-box p { margin-top: 4px; }
.bcl3 .bcl3-control-queue { margin-top: 10px; font-size: 11px; color: var(--bcl-amber); white-space: pre-wrap; overflow-wrap: anywhere; }
.bcl3 .bcl3-original-detail { border-bottom: 1px solid var(--bcl-border); padding: 8px 0; margin-top: 3px; }
.bcl3 .bcl3-original-detail summary { font-size: 12px; }
.bcl3 .bcl3-original-body { overflow-wrap: anywhere; font-size: 11px; color: var(--bcl-muted); }
.bcl3 .bcl3-original-body .bcl3-raw-text { max-height: 320px; }
.bcl3 .bcl3-retention { padding: 5px 17px 22px; color: #91a5b8; font-size: 10px; }
.bcl3 .bcl3-notice, .bcl3 .bcl3-empty { margin: 12px; padding: 12px; font-size: 11px; color: var(--bcl-amber); background: #29261f; border-radius: 8px; overflow-wrap: anywhere; }
.bcl3 .bcl3-empty { color: var(--bcl-muted); background: transparent; }
.bcl3 .bcl3-mobile-tabs { display: none; }
.bcl3[data-density='compact'] .bcl3-event { padding-block: 9px; }
.bcl3[data-density='compact'] .bcl3-event::before { top: 17px; }
.bcl3[data-density='compact'] .bcl3-message-text { font-size: 12px; line-height: 1.55; }
.bcl3[data-density='compact'] .bcl3-event-head { margin-bottom: 3px; }
@keyframes bcl3-pulse { 0%, 100% { box-shadow: 0 0 0 0 #89c5b400; } 50% { box-shadow: 0 0 0 4px #89c5b425; } }
@media (max-width: 1150px) and (min-width: 761px) {
  .bcl3 .bcl3-nav { width: 195px; min-width: 170px; }
  .bcl3 .bcl3-inspector { width: 235px; min-width: 200px; }
  .bcl3 .bcl3-run-head { padding-inline: 15px; }
  .bcl3 .bcl3-event-host { padding-inline: 15px; }
  .bcl3 .bcl3-topbar { padding: 14px 16px; }
  .bcl3 .bcl3-top-actions { gap: 5px; }
}
@media (max-width: 760px) {
  .bcl3 { border-radius: 10px; }
  .bcl3 .bcl3-topbar { padding: 13px; gap: 10px; }
  .bcl3 .bcl3-eyebrow { font-size: 9px; }
  .bcl3 .bcl3-top-actions { width: 100%; justify-content: flex-end; gap: 5px; }
  .bcl3 .bcl3-connection { margin-right: auto; font-size: 10px; }
  .bcl3 .bcl3-top-actions .bcl3-button { min-height: 34px; font-size: 10px; padding: 6px; }
  .bcl3 .bcl3-top-actions .bcl3-button:last-child { display: none; }
  .bcl3 .bcl3-mobile-tabs { display: flex; border-bottom: 1px solid var(--bcl-border); background: #131c27; padding: 5px; gap: 3px; }
  .bcl3 .bcl3-mobile-tabs button { flex: 1; border-color: transparent; min-height: 38px; }
  .bcl3 .bcl3-mobile-tabs [aria-selected='true'] { color: var(--bcl-accent); background: #23352f; border-color: #365147; }
  .bcl3 .bcl3-workspace { display: block; height: 78dvh; min-height: 520px; }
  .bcl3 .bcl3-nav, .bcl3 .bcl3-inspector, .bcl3 .bcl3-center { display: none; width: 100%; min-width: 0; max-width: none; height: 100%; resize: none; border: 0; }
  .bcl3[data-mobile-pane='nav'] .bcl3-nav { display: block; }
  .bcl3[data-mobile-pane='timeline'] .bcl3-center { display: flex; }
  .bcl3[data-mobile-pane='inspector'] .bcl3-inspector { display: block; }
  .bcl3 .bcl3-metadata { grid-template-columns: minmax(100px, 1fr) minmax(150px, 1.7fr); gap: 12px; }
  .bcl3 .bcl3-metadata dt { margin: 0; }
  .bcl3 .bcl3-run-head { padding: 14px; }
  .bcl3 .bcl3-toolbar { padding: 9px 10px; }
  .bcl3 .bcl3-view-tabs button { padding: 7px; min-height: 36px; }
  .bcl3 .bcl3-density { margin-left: auto; }
  .bcl3 .bcl3-density select { max-width: 85px; }
  .bcl3 .bcl3-search-row { margin-inline: 12px; }
  .bcl3 .bcl3-event-host { padding-inline: 14px; }
  .bcl3 .bcl3-message-text { font-size: 13px; }
  .bcl3 .bcl3-event time { font-size: 9px; }
  .bcl3 .bcl3-composer { padding: 10px 12px; }
  .bcl3 .bcl3-composer-foot .bcl3-button { min-height: 38px; }
  .bcl3 .bcl3-status { max-width: 40%; }
}
@media (prefers-reduced-motion: reduce) {
  .bcl3 *, .bcl3 *::before, .bcl3 *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
