


/* Builder (3D + 2D agent builder) styles. */
@media (max-width: 768px) {
  .bd3-top,
  .bd3-topbar {
    padding-left: 64px !important;
  }
}
@media (max-width: 768px) {
  .bd3-lever {
    transform: scale(0.9);
  }
}
@media (max-width: 768px) {
  .bd3-lever.bd3-angle {
    top: 70px !important;
  }
}
@media (max-width: 768px) {
  .bd3-timeline {
    bottom: 16px !important;
    transform: translateX(-50%) scale(0.92);
  }
}
.bd3-overlay {
  position: fixed;
  inset: 0;
  display: none;
  background: #ffffff;
  z-index: 30;
}
.bd3-overlay.open {
  display: block;
}
.bd3-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
#bd3Canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
}
#bd3Canvas.dragging {
  cursor: grabbing;
}
#bd3Canvas.grabbing-node {
  cursor: move;
}
.bd3-callouts {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  overflow: hidden;
}
.bd3-tag {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;   /* depth scale grows from the anchor corner */
  transition: opacity 0.18s ease;
}
.bd3-tag {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  pointer-events: none;
  white-space: nowrap;
  will-change: transform;
  text-align: left;
}
.bd3-tag.bd3-tag-crowd {
  opacity: 0 !important;   /* crowded out — fades, never strobes; the
                              !important outranks run-time inline dims */
  pointer-events: none;
}
.bd3-tag-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.94) !important;
  border: 1px solid rgba(21,18,16, 0.08) !important;
  border-radius: 10px !important;
  padding: 5px 11px 5px 6px !important;
  box-shadow: 0 6px 22px -10px rgba(21,18,16, 0.22) !important;
  -webkit-backdrop-filter: blur(8px) saturate(1.2);
  backdrop-filter: blur(8px) saturate(1.2);
}
.bd3-tag-num {
  font-style: normal;
  font-family: "JetBrains Mono", monospace;
  font-size: 8px !important;
  font-weight: 700;
  background: #151210 !important;
  color: #ffffff !important;
  border-radius: 6px !important;
  padding: 2px 5px !important;
  line-height: 1.2;
}
.bd3-tag-name {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em !important;
  text-transform: uppercase;
  color: #151210 !important;
}
.bd3-tag-role {
  font-family: "Inter", sans-serif;
  font-size: 9.5px;
  color: rgba(21,18,16, 0.5) !important;
  padding-left: 2px;
}
.bd3-overlay.bg-dark .bd3-tag-chip {
  background: rgba(11,9,7, 0.97) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 6px 22px -10px rgba(0, 0, 0, 0.6) !important;
}
.bd3-overlay.bg-dark .bd3-tag-name {
  color: #F4EFE4 !important;
}
.bd3-overlay.bg-dark .bd3-tag-num {
  background: #DF5C58 !important;
  color: #ffffff !important;
}
.bd3-overlay.bg-dark .bd3-tag-role {
  color: rgba(255, 255, 255, 0.6) !important;
}
.bd3-hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}
.bd3-tag[data-kind="plan"] .bd3-tag-num {
  background: #7E848D !important;
}
.bd3-tag[data-kind="analysis"] .bd3-tag-num,
.bd3-tag[data-kind="analyze"] .bd3-tag-num {
  background: #256B4B !important;
}
.bd3-tag[data-kind="synthesis"] .bd3-tag-num,
.bd3-tag[data-kind="critic"] .bd3-tag-num,
.bd3-tag[data-kind="polish"] .bd3-tag-num {
  background: #B84D49 !important;
}
.bd3-tag.bd3-live .bd3-tag-chip {
  background: #DF5C58 !important;
  border-color: transparent !important;
}
.bd3-tag.bd3-live .bd3-tag-name {
  color: #ffffff !important;
}
.bd3-tag.bd3-live .bd3-tag-num {
  background: rgba(255, 255, 255, 0.95) !important;
  color: #DF5C58 !important;
}
.bd3-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}
.bd3-name {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(21,18,16, 0.16);
  border-radius: 999px;
  padding: 8px 8px 8px 16px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.bd3-name-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(21,18,16, 0.45);
}
.bd3-name input {
  border: 0;
  outline: 0;
  background: transparent;
  width: 100%;
  min-width: 0;
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-size: 17px;
  color: #0C0A09;
  width: 230px;
}
.bd3-pill {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #0C0A09;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(21,18,16, 0.18);
  border-radius: 999px;
  padding: 11px 18px;
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: all 0.16s ease;
}
.bd3-pill:hover {
  background: #0C0A09;
  color: #EFE8DA;
}
.bd3-pill.primary {
  background: #DF5C58;
  border-color: #DF5C58;
  color: #ffffff;
}
.bd3-pill.primary:hover {
  background: #B84D49;
}.bd3-tpls {
  position: relative;
}
.bd3-tpl-pop {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  display: none;
  flex-direction: column;
  min-width: 230px;
  background: #ffffff;
  border: 1px solid rgba(21,18,16, 0.14);
  border-radius: 14px;
  box-shadow: 0 24px 50px -24px rgba(21,18,16, 0.5);
  overflow: hidden;
}
.bd3-tpls.open .bd3-tpl-pop {
  display: flex;
}
.bd3-tpl {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 11px 14px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background 0.14s ease;
}
.bd3-tpl:hover {
  background: rgba(21,18,16, 0.05);
}
.bd3-tpl b {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #0C0A09;
}
.bd3-tpl i {
  font-style: normal;
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(21,18,16, 0.5);
}.bd3-insp {
  position: absolute;
  top: 70px;
  right: 22px;
  bottom: 70px;
  width: 292px;
  pointer-events: auto;
  display: none;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(21,18,16, 0.14);
  border-radius: 16px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 28px 60px -32px rgba(21,18,16, 0.45);
  overflow: hidden;
}
.bd3-insp.open {
  display: flex;
  animation: bd3InspIn 0.22s var(--ease-out, ease);
}
@keyframes bd3InspIn {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.bd3-insp-hd {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 16px 14px 12px 18px;
  border-bottom: 1px solid rgba(21,18,16, 0.1);
}
.bd3-insp-name {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-size: 23px;
  line-height: 1.05;
  color: #0C0A09;
  padding: 0;
}
.bd3-insp-role {
  margin-top: 4px;
  font-family: "JetBrains Mono", monospace;
  font-size: 8.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(21,18,16, 0.5);
}
.bd3-insp-x {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(21,18,16, 0.16);
  border-radius: 50%;
  background: #ffffff;
  color: #0C0A09;
  cursor: pointer;
  transition: all 0.15s ease;
}
.bd3-insp-x:hover {
  background: #0C0A09;
  color: #EFE8DA;
}
.bd3-insp-x svg {
  width: 11px;
  height: 11px;
}
.bd3-insp-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 18px 18px;
}
.bd3-insp-sec {
  margin-bottom: 16px;
}
.bd3-insp-runtime {
  margin: 0 0 18px;
  padding: 13px 14px;
  background: linear-gradient(180deg, rgba(21,18,16, 0.035), rgba(21,18,16, 0.015));
  border: 1px solid rgba(21,18,16, 0.1);
  border-radius: 13px;
}
.bd3-rt-row {
  display: flex;
  gap: 10px;
  margin-bottom: 13px;
}
.bd3-rt-cell {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 9px 11px;
  background: #ffffff;
  border: 1px solid rgba(21,18,16, 0.08);
  border-radius: 9px;
}
.bd3-rt-k {
  font-family: "JetBrains Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(21,18,16, 0.45);
}
.bd3-rt-v {
  font-family: "JetBrains Mono", monospace;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #0C0A09;
  font-variant-numeric: tabular-nums;
}
.bd3-rt-v .u {
  font-size: 9px;
  font-weight: 500;
  color: rgba(21,18,16, 0.45);
  margin-left: 2px;
  letter-spacing: 0.04em;
}
.bd3-rt-v.cost {
  color: #DF5C58;
}
.bd3-rt-io {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}
.bd3-rt-io-col {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.bd3-rt-io-col .bd3-rt-k {
  margin-bottom: 1px;
}
.bd3-rt-io-arrow {
  color: rgba(21,18,16, 0.3);
  display: flex;
}
.bd3-rt-io-arrow svg {
  width: 15px;
  height: 15px;
}
.bd3-rt-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.bd3-rt-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 450;
  color: #151210;
  background: #ffffff;
  border: 1px solid rgba(21,18,16, 0.1);
  border-radius: 7px;
  padding: 5px 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bd3-rt-pill .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: #B9BFC7;
}
.bd3-rt-pill.out .dot {
  background: #DF5C58;
}
.bd3-rt-pill.empty {
  color: rgba(21,18,16, 0.4);
  border-style: dashed;
}
.bd3-overlay.bg-dark .bd3-insp-runtime {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border-color: rgba(255, 255, 255, 0.1);
}
.bd3-overlay.bg-dark .bd3-rt-cell,
.bd3-overlay.bg-dark .bd3-rt-pill {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}
.bd3-overlay.bg-dark .bd3-rt-v {
  color: #F4EFE4;
}
.bd3-overlay.bg-dark .bd3-rt-pill {
  color: #EFE8DA;
}
.bd3-insp-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-family: "JetBrains Mono", monospace;
  font-size: 8.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(21,18,16, 0.5);
  margin-bottom: 8px;
}
.bd3-insp-label em {
  font-style: normal;
  color: #DF5C58;
  letter-spacing: 0.06em;
}
.bd3-insp-models {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.bd3-insp-model {
  font-family: "JetBrains Mono", monospace;
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0C0A09;
  background: rgba(21,18,16, 0.05);
  border: 1px solid rgba(21,18,16, 0.16);
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
  transition: all 0.14s ease;
}
.bd3-insp-model:hover {
  border-color: rgba(21,18,16, 0.45);
}
.bd3-insp-model.on {
  background: #0C0A09;
  border-color: #0C0A09;
  color: #EFE8DA;
}
.bd3-insp-prompt {
  width: 100%;
  resize: vertical;
  min-height: 64px;
  font-family: "Inter", sans-serif;
  font-size: 12.5px;
  line-height: 1.45;
  color: #0C0A09;
  background: #ffffff;
  border: 1px solid rgba(21,18,16, 0.16);
  border-radius: 10px;
  padding: 9px 11px;
  outline: 0;
}
.bd3-insp-prompt:focus {
  border-color: #DF5C58;
}
.bd3-insp-range {
  width: 100%;
  accent-color: #DF5C58;
}
.bd3-insp-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.bd3-insp-tool {
  font-family: "JetBrains Mono", monospace;
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(21,18,16, 0.55);
  background: transparent;
  border: 1px dashed rgba(21,18,16, 0.25);
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
  transition: all 0.14s ease;
}
.bd3-insp-tool.on {
  color: #0C0A09;
  border-style: solid;
  border-color: #DF5C58;
  background: rgba(223,92,88, 0.08);
}
.bd3-insp-limit {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bd3-insp-limit input {
  width: 110px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: #0C0A09;
  background: #ffffff;
  border: 1px solid rgba(21,18,16, 0.16);
  border-radius: 8px;
  padding: 7px 10px;
  outline: 0;
}
.bd3-insp-limit input:focus {
  border-color: #DF5C58;
}
.bd3-insp-limit span {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(21,18,16, 0.5);
}
@media (max-width: 960px) {
  .bd3-insp {
    width: 240px;
    top: 64px;
  }
}
.bd3-lever {
  position: absolute;
  right: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  pointer-events: auto;
  background: transparent;
  border: 0;
  border-radius: 12px;
  padding: 7px 8px;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.bd3-lever {
  display: none !important;
}
.bd3-lever {
  right: 18px;
}
.bd3-angle {
  top: 50%;
  transform: translateY(calc(-50% - 138px));
}
.bd3-zoom {
  top: 50%;
  transform: translateY(-50%);
}
.bd3-spread {
  top: 50%;
  transform: translateY(calc(-50% + 124px));
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
}
.bd3-lever span {
  font-family: "JetBrains Mono", monospace;
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(21,18,16, 0.62);
  white-space: nowrap;
}
.bd3-lever .bd3-lever-pm {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  color: rgba(21,18,16, 0.55);
}
.bd3-lever .bd3-lever-cap {
  font-size: 6.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(21,18,16, 0.42);
  margin-bottom: 1px;
}
.bd3-overlay.bg-dark .bd3-lever {
  background: transparent;
  border: 0;
}
.bd3-overlay.bg-dark .bd3-lever span {
  color: rgba(255, 255, 255, 0.7);
}
.bd3-overlay.bg-dark .bd3-lever .bd3-lever-pm {
  color: rgba(255, 255, 255, 0.62);
}
.bd3-overlay.bg-dark .bd3-lever .bd3-lever-cap {
  color: rgba(255, 255, 255, 0.5);
}
.bd3-lever input {
  -webkit-appearance: none;
  appearance: none;
  width: 62px;
  height: 16px;
  transform: rotate(-90deg);
  margin: 25px 0;
}
.bd3-spread input {
  width: 84px;
  transform: none;
  margin: 0;
}
.bd3-spread .bd3-lever-cap {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
}
.bd3-spread {
  background: transparent;
  accent-color: #DF5C58;
  cursor: ns-resize;
}
.bd3-lever input::-webkit-slider-runnable-track {
  height: 2px;
  border-radius: 1px;
  background: rgba(21,18,16, 0.28);
}
.bd3-lever input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #DF5C58;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 4px rgba(21,18,16, 0.3);
  margin-top: -5.5px;
}
.bd3-overlay.bg-dark .bd3-lever input::-webkit-slider-runnable-track {
  background: rgba(255, 255, 255, 0.3);
}
.bd3-hud::after {
  display: none !important;
}
.bd3-lever {
  z-index: 1;
  right: 20px !important;
}
.bd3-lever .bd3-lever-cap {
  color: rgba(21,18,16, 0.5) !important;
}
.bd3-lever span {
  color: rgba(21,18,16, 0.68) !important;
}
.bd3-lever .bd3-lever-pm {
  color: rgba(21,18,16, 0.6) !important;
}
.bd3-spread {
  right: 14px !important;
}@keyframes bd3FloatIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}.bd3-tag.bd3-live .bd3-tag-chip {
  background: #DF5C58;
}
.bd3-tag.bd3-live .bd3-tag-name {
  font-size: 11px;
}
.bd3-tag.bd3-live .bd3-tag-num {
  background: #ffffff;
  color: #DF5C58;
}
.bd3-tag.bd3-dim {
  opacity: 0.22;
}
.bd3-run-note {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  white-space: nowrap;
  will-change: transform;
  display: flex;
  align-items: baseline;
  gap: 6px;
  background: #ffffff;
  border: 1px solid rgba(21,18,16, 0.14);
  border-radius: 8px;
  padding: 6px 11px;
  box-shadow: 0 14px 30px -16px rgba(21,18,16, 0.5);
  animation: bd3FloatIn 0.2s ease;
}
.bd3-run-note b {
  font-family: "JetBrains Mono", monospace;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #DF5C58;
}
.bd3-run-note span {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  color: #0C0A09;
}
@media (max-width: 960px) {
  .bd3-lever {
    right: 16px;
  }
}
@media (max-width: 960px) {
  }
.bd3-timeline {
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(21,18,16, 0.15);
  border-radius: 999px;
  padding: 9px 20px 9px 9px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.bd3-overlay.bg-dark .bd3-timeline {
  background: rgba(21,18,16, 0.85);
  border-color: rgba(255, 255, 255, 0.2);
}
.bd3-tl-play {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #DF5C58;
  color: #ffffff;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.bd3-tl-play:hover {
  background: #B84D49;
}
.bd3-tl-track {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bd3-tl-track input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 16px;
  background: transparent;
  cursor: ew-resize;
}
.bd3-tl-track input::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 2px;
  background: rgba(21,18,16, 0.22);
}
.bd3-overlay.bg-dark .bd3-tl-track input::-webkit-slider-runnable-track {
  background: rgba(255, 255, 255, 0.3);
}
.bd3-tl-track input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #DF5C58;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 4px rgba(21,18,16, 0.35);
  margin-top: -5.5px;
}
.bd3-tl-labels {
  display: flex;
  justify-content: space-between;
  font-family: "JetBrains Mono", monospace;
  font-size: 7px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(21,18,16, 0.55);
  padding: 0 4px;
}
.bd3-overlay.bg-dark .bd3-tl-labels {
  color: rgba(255, 255, 255, 0.55);
}
.bd3-tl-labels i {
  font-style: normal;
}
.bd3-tl-labels i.cur {
  color: #DF5C58;
  font-weight: 700;
}
.bd3-toast {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translate(-50%, 12px);
  display: flex;
  align-items: center;
  gap: 8px;
  background: #0C0A09;
  color: #EFE8DA;
  border-radius: 999px;
  padding: 10px 18px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}
.bd3-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.bd3-toast svg {
  width: 12px;
  height: 12px;
  color: #2E8C5F;
}
@media (max-width: 960px) {
  .bd3-name input {
    width: 130px;
    font-size: 16px;
  }
}
@media (max-width: 960px) {
  .bd3-hud-top {
    display: none;
  }
}

/* ------------------------------------------------------------------ */
/* Copilot demo chat (stages/builder-demo/chat.js + transport.js)                    */
/* ------------------------------------------------------------------ */
.bd3-chat {
  position: absolute;
  left: 20px;   /* the shell menu is gone — the corner is ours */
  bottom: 72px; /* riding above the marketing bar */
  width: 262px;
  max-height: min(54vh, 490px); /* tall — may run under the collapsed menu */
  display: flex;
  flex-direction: column;
  pointer-events: auto;
  /* no panel — the callouts float straight over the field */
  z-index: 6;
}
/* the foot row: input pill + the two floating buttons beside it */
.bd3-chat-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}
.bd3-chat-btn {
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(21,18,16, 0.12);
  border-radius: 50%;
  background: rgba(250,247,240, 0.9);
  box-shadow: 0 14px 30px -20px rgba(10, 10, 10, 0.4);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: rgba(21,18,16, 0.55);
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease;
}
.bd3-chat-btn:hover {
  background: #FFFFFF;
  color: #0C0A09;
}
.bd3-chat-btn svg {
  width: 14px;
  height: 14px;
}
.bd3-chat.min .bd3-chat-log,
.bd3-chat.min .bd3-chat-in {
  display: none;
}
.bd3-chat.min .bd3-chat-foot {
  margin-top: 0;
}

.bd3-chat.min #bd3ChatMin svg {
  transform: rotate(180deg);
}
.bd3-chat-log {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 2px 6px;
  overflow-y: auto;
  scrollbar-width: none;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, rgba(0,0,0,0.7) 26px, #000 64px);
  mask-image: linear-gradient(to bottom, transparent 0, rgba(0,0,0,0.7) 26px, #000 64px);
}
.bd3-chat-log:empty {
  padding: 0;
}
.bd3-msg {
  max-width: 88%;
  font-family: "Inter", sans-serif;
  font-size: 12.5px;
  line-height: 1.5;
  border-radius: 13px;
  padding: 8px 11px;
  animation: bd3-msg-in 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes bd3-msg-in {
  from { opacity: 0; transform: translateY(7px) scale(0.985); }
  to   { opacity: 1; transform: none; }
}
.bd3-msg-user {
  align-self: flex-end;
  background: #151210;
  color: #EFE8DA;
  border-bottom-right-radius: 5px;
  box-shadow: 0 16px 34px -18px rgba(10, 10, 10, 0.5);
}
.bd3-msg-ai {
  align-self: flex-start;
  background: #FFFFFF;
  border: 1px solid rgba(21,18,16, 0.09);
  color: rgba(10, 10, 10, 0.88);
  border-bottom-left-radius: 5px;
  box-shadow: 0 16px 34px -18px rgba(10, 10, 10, 0.42);
}
.bd3-msg-ai b { font-weight: 600; color: #0C0A09; }
.bd3-msg-ai i { font-style: normal; color: rgba(21,18,16, 0.55); }
.bd3-msg-eb {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 8.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(21,18,16, 0.42);
  margin-bottom: 4px;
}
.bd3-ok  { color: #2E8C5F; }
.bd3-del { color: #DF5C58; }
.bd3-msg-stall {
  border-left: 3px solid #E8A33D;
}
.bd3-msg-stall .bd3-msg-eb { color: #B27B1F; }
.bd3-msg-think {
  display: inline-flex;
  gap: 4px;
  padding: 11px 13px;
}
.bd3-msg-think span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(21,18,16, 0.35);
  animation: bd3-think 1.1s ease-in-out infinite;
}
.bd3-msg-think span:nth-child(2) { animation-delay: 0.15s; }
.bd3-msg-think span:nth-child(3) { animation-delay: 0.3s; }
@keyframes bd3-think {
  0%, 100% { transform: translateY(0);    opacity: 0.45; }
  40%      { transform: translateY(-3px); opacity: 1; }
}
.bd3-msg-step {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 200px;
}
.bd3-step-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.bd3-step-row b {
  font-size: 12px;
  font-weight: 600;
  color: #0C0A09;
  white-space: nowrap;
}
.bd3-step-row em {
  font-style: normal;
  font-family: "JetBrains Mono", monospace;
  font-size: 9.5px;
  color: rgba(21,18,16, 0.55);
  text-align: right;
}
.bd3-wire-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 6px;
}
.bd3-wire {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 9.5px;
  letter-spacing: 0.03em;
  color: rgba(21,18,16, 0.62);
}
.bd3-wire svg {
  width: 10px;
  height: 10px;
  color: #2E8C5F;
  flex: none;
}
.bd3-chat-in {
  flex: 1;
  display: flex;
  align-items: center;
  min-height: 34px;
  margin: 0;
  padding: 0 5px 0 11px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(21,18,16, 0.12);
  border-radius: 999px;
  box-shadow: 0 16px 34px -18px rgba(10, 10, 10, 0.4);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-family: "Inter", sans-serif;
  font-size: 12.5px;
  color: #0C0A09;
}
.bd3-chat-typed {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  max-width: calc(100% - 44px);
}
.bd3-chat-caret {
  width: 1.5px;
  height: 15px;
  margin-left: 1px;
  background: #DF5C58;
  border-radius: 1px;
  animation: bd3-caret 1.05s steps(1) infinite;
}
.bd3-chat.typing .bd3-chat-caret {
  animation: none;
  opacity: 1;
}
@keyframes bd3-caret {
  0%, 55%  { opacity: 1; }
  56%, 100% { opacity: 0; }
}
.bd3-chat-send {
  width: 24px;
  height: 24px;
  margin-left: auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(21,18,16, 0.08);
  color: rgba(21,18,16, 0.4);
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.bd3-chat.typing .bd3-chat-send {
  background: #DF5C58;
  color: #FFFFFF;
}
.bd3-chat-send.go {
  transform: translateY(-3px) scale(0.92);
  background: #DF5C58;
  color: #FFFFFF;
}
.bd3-chat-send svg {
  width: 12px;
  height: 12px;
}

/* floating action chip above the agent (lives in .bd3-callouts) —
   bold ink capsule so edits read from across the room */
.bd3-swap {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  background: #151210;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  box-shadow: 0 3px 0 rgba(10, 10, 10, 0.18), 0 22px 44px -16px rgba(10, 10, 10, 0.65);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  white-space: nowrap;
  animation: bd3FloatIn 0.24s ease both; /* opacity-only: a transform animation would override the tracking transform */
}
.bd3-swap svg {
  width: 13px;
  height: 13px;
  color: rgba(239,232,218, 0.5);
  flex: none;
  transition: color 0.3s ease;
}
.bd3-swap-old {
  color: rgba(239,232,218, 0.8);
  transition: color 0.35s ease, text-decoration-color 0.35s ease;
  text-decoration: line-through;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
}
.bd3-swap-new {
  color: rgba(239,232,218, 0.4);
  font-weight: 800;
  transition: color 0.35s ease, transform 0.35s ease, text-shadow 0.35s ease;
  display: inline-block;
}
.bd3-swap.on .bd3-swap-old {
  color: rgba(239,232,218, 0.35);
  text-decoration-color: rgba(223,92,88, 0.9);
}
.bd3-swap.on .bd3-swap-new {
  color: #6BBD90;
  transform: translateY(-1px);
  text-shadow: 0 0 18px rgba(92, 214, 160, 0.45);
}
.bd3-swap.on svg {
  color: #6BBD90;
}

.bd3-swap.bd3-swap-warn {
  background: #DF5C58;
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 3px 0 rgba(160, 62, 59, 0.5), 0 22px 44px -14px rgba(223,92,88, 0.7);
}
.bd3-swap.bd3-swap-warn .bd3-swap-new { color: #FFFFFF; text-shadow: none; }
.bd3-swap.bd3-swap-warn svg { color: rgba(255, 255, 255, 0.85); }

/* dark surface (Ink floor) */
.bd3-overlay.bg-dark .bd3-chat-btn {
  background: rgba(23,19,16, 0.88);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 30px -20px rgba(0, 0, 0, 0.7);
}
.bd3-overlay.bg-dark .bd3-chat-in {
  background: rgba(23,19,16, 0.92);
  border-color: rgba(255, 255, 255, 0.12);
  color: #F4EFE4;
}
.bd3-overlay.bg-dark .bd3-chat-btn { color: rgba(255, 255, 255, 0.55); }
.bd3-overlay.bg-dark .bd3-chat-btn:hover { background: rgba(255, 255, 255, 0.08); color: #FFFFFF; }
.bd3-overlay.bg-dark .bd3-msg-user { background: #EFE8DA; color: #151210; }
.bd3-overlay.bg-dark .bd3-msg-ai {
  background: #151210;
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(244,239,228, 0.88);
}
.bd3-overlay.bg-dark .bd3-msg-ai b { color: #F4EFE4; }
.bd3-overlay.bg-dark .bd3-msg-ai i { color: rgba(255, 255, 255, 0.5); }
.bd3-overlay.bg-dark .bd3-msg-eb { color: rgba(255, 255, 255, 0.38); }
.bd3-overlay.bg-dark .bd3-msg-think span { background: rgba(255, 255, 255, 0.4); }
.bd3-overlay.bg-dark .bd3-step-row b { color: #F4EFE4; }
.bd3-overlay.bg-dark .bd3-step-row em { color: rgba(255, 255, 255, 0.5); }
.bd3-overlay.bg-dark .bd3-wire { color: rgba(255, 255, 255, 0.55); }
.bd3-overlay.bg-dark .bd3-chat-in {
  background: #151210;
  border-color: rgba(255, 255, 255, 0.14);
  color: #F4EFE4;
}
.bd3-overlay.bg-dark .bd3-chat-send { background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.4); }
.bd3-overlay.bg-dark .bd3-swap {
  background: #EFE8DA;
  border-color: rgba(21,18,16, 0.2);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.35), 0 22px 44px -14px rgba(0, 0, 0, 0.75);
}
.bd3-overlay.bg-dark .bd3-swap svg { color: rgba(21,18,16, 0.5); }
.bd3-overlay.bg-dark .bd3-swap-old { color: rgba(21,18,16, 0.8); }
.bd3-overlay.bg-dark .bd3-swap-new { color: rgba(21,18,16, 0.4); }
.bd3-overlay.bg-dark .bd3-swap.on .bd3-swap-old { color: rgba(21,18,16, 0.35); }
.bd3-overlay.bg-dark .bd3-swap.on .bd3-swap-new { color: #1F6A46; text-shadow: none; }
.bd3-overlay.bg-dark .bd3-swap.on svg { color: #1F6A46; }
.bd3-overlay.bg-dark .bd3-swap.bd3-swap-warn { background: #DF5C58; }
.bd3-overlay.bg-dark .bd3-swap.bd3-swap-warn .bd3-swap-new { color: #FFFFFF; }

@media (max-width: 768px) {
  .bd3-chat {
    left: 12px;
    bottom: 96px;
    width: min(292px, calc(100vw - 88px));
    max-height: 38vh;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bd3-msg,
  .bd3-swap,
  .bd3-msg-think span { animation: none; }
}

/* ------------------------------------------------------------------ */
/* Copilot v2 — bigger tags, tabs, popups, FAB, thinking panels       */
/* ------------------------------------------------------------------ */

/* larger agent names for readability */
.bd3-tag-chip {
  padding: 6px 13px 6px 7px !important;
  gap: 8px !important;
}
.bd3-tag-num {
  font-size: 9.5px !important;
  padding: 2.5px 6px !important;
}
.bd3-tag-name {
  font-size: 13px !important;
  letter-spacing: 0.09em !important;
}
.bd3-tag-role {
  font-size: 11.5px !important;
  display: inline-flex !important;
  align-items: baseline;
  gap: 6px;
}
.bd3-tag-who {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #151210;
  letter-spacing: 0.01em;
}.bd3-overlay.bg-dark .bd3-tag-who { color: #F4EFE4; }
/* brand dots */
.bd3-mdot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: 0;
  flex: none;
}
.bd3-mdot-anthropic { background: #D8551F; }
.bd3-mdot-openai    { background: #10A37F; }
.bd3-mdot-google    { background: #4285F4; }
.bd3-mdot-meta      { background: #0668E1; }
.bd3-mdot-deepseek  { background: #4D6BFE; }

/* popups */
.bd3-scrim {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(21,18,16, 0.24);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  z-index: 9;
  pointer-events: auto;
  animation: bd3-scrim-in 0.2s ease both;
}
@keyframes bd3-scrim-in { from { opacity: 0; } to { opacity: 1; } }
.bd3-scrim.bd3-scrim-info {
  place-items: start end;
  padding: 10px 10px 0 0;
  background: rgba(21,18,16, 0.06); /* barely a veil — the field stays live */
}
.bd3-scrim.out { opacity: 0; transition: opacity 0.2s ease; }
.bd3-pop {
  width: 448px;
  max-width: calc(100vw - 48px);
  max-height: min(72vh, 620px);
  display: flex;
  flex-direction: column;
  background: #FAF7F0;
  border: 1px solid rgba(21,18,16, 0.12);
  border-radius: 20px;
  box-shadow: 0 1px 1px rgba(255, 255, 255, 0.6) inset, 0 44px 90px -36px rgba(10, 10, 10, 0.55);
  overflow: hidden;
  animation: bd3-pop-in 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes bd3-pop-in {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}
.bd3-scrim.out .bd3-pop { transform: translateY(8px) scale(0.98); opacity: 0; transition: all 0.2s ease; }
.bd3-pop-hd {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 18px 14px 12px 20px;
}
.bd3-pop-ttl b {
  display: block;
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-size: 22px;
  line-height: 1.1;
  color: #0C0A09;
  margin-top: 3px;
}
.bd3-pop-bd {
  padding: 0 20px 6px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.bd3-pop-ft {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 20px 17px;
  border-top: 1px solid rgba(21,18,16, 0.08);
}
.bd3-pop-apply {
  border: 0;
  border-radius: 999px;
  padding: 10px 20px;
  background: #DF5C58;
  color: #FFFFFF;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.bd3-pop-apply:hover { transform: translateY(-1px); filter: brightness(1.04); }
.bd3-pop-hint {
  font-family: "Inter", sans-serif;
  font-size: 11.5px;
  color: rgba(21,18,16, 0.5);
}

/* segmented tier toggle */
.bd3-seg {
  display: flex;
  gap: 2px;
  padding: 3px;
  margin: 2px 0 12px;
  background: rgba(21,18,16, 0.06);
  border-radius: 999px;
}
.bd3-seg-b {
  flex: 1;
  border: 0;
  border-radius: 999px;
  padding: 8px 0;
  background: transparent;
  font-family: "Inter", sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(21,18,16, 0.55);
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}
.bd3-seg-b.on {
  background: #FFFFFF;
  color: #0C0A09;
  font-weight: 600;
  box-shadow: 0 3px 10px -4px rgba(21,18,16, 0.35);
}

/* cost rows — every model shown, suggestion highlighted, tap to override */
.bd3-cost-rows {
  display: flex;
  flex-direction: column;
}
.bd3-cost-row2 {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 0 11px;
  border-bottom: 1px solid rgba(21,18,16, 0.06);
}
.bd3-cost-row2:last-child { border-bottom: 0; }
.bd3-cost-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.bd3-cost-name {
  font-family: "Inter", sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: #0C0A09;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bd3-cost-cur {
  display: inline-flex;
  align-items: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 8.5px;
  letter-spacing: 0.06em;
  color: rgba(21,18,16, 0.45);
  white-space: nowrap;
}
.bd3-cost-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.bd3-cost-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid rgba(21,18,16, 0.12);
  border-radius: 999px;
  background: #FFFFFF;
  font-family: "JetBrains Mono", monospace;
  font-size: 8.5px;
  letter-spacing: 0.05em;
  color: rgba(21,18,16, 0.6);
  cursor: pointer;
  transition: border-color 0.13s ease, color 0.13s ease, background 0.13s ease, transform 0.13s ease;
}
.bd3-cost-pill:hover { border-color: rgba(21,18,16, 0.3); color: #0C0A09; transform: translateY(-1px); }
.bd3-cost-pill.on {
  background: #151210;
  border-color: #151210;
  color: #FFFFFF;
  font-weight: 700;
}
.bd3-cost-pill.on .bd3-mdot { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25); }
.bd3-cost-sum b {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: #0C0A09;
  margin-top: 2px;
}
.bd3-cost-sum em {
  font-style: normal;
  font-size: 11px;
  margin-left: 4px;
}

/* simplify — a single row of options, each named by its delta */
.bd3-simp-list {
  display: flex;
  gap: 10px;
  padding: 2px 20px 16px;
}
.bd3-simp-opt {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 10px 14px;
  border: 1px solid rgba(21,18,16, 0.12);
  border-radius: 14px;
  background: #FFFFFF;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.bd3-simp-opt:hover,
.bd3-simp-opt.hl {
  border-color: #DF5C58;
  transform: translateY(-1px);
  box-shadow: 0 12px 26px -16px rgba(223,92,88, 0.55);
}
.bd3-simp-nm {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-size: 16px;
  color: #0C0A09;
}
.bd3-simp-delta {
  font-family: "JetBrains Mono", monospace;
  font-size: 20px;
  font-weight: 600;
  color: #DF5C58;
  letter-spacing: 0.02em;
}

/* bottom-right transport — still, minimal: play / pause / reset / menu */
.bd3-fab {
  position: absolute;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  z-index: 7;
  pointer-events: auto;
}
.bd3-transport {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(21,18,16, 0.15);
  border-radius: 12px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 26px -14px rgba(10, 10, 10, 0.35);
}
.bd3-transport button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: rgba(21,18,16, 0.62);
  cursor: pointer;
  transition: background 0.13s ease, color 0.13s ease;
}
.bd3-transport button svg { width: 14px; height: 14px; }
.bd3-transport button:hover { background: rgba(21,18,16, 0.07); color: #151210; }
.bd3-transport #bd3TrPlay:hover { color: #2E8C5F; }
.bd3-transport #bd3TrReset:hover { color: #DF5C58; }
.bd3-tr-sep {
  width: 1px;
  height: 18px;
  margin: 0 4px;
  background: rgba(21,18,16, 0.14);
}
.bd3-fab-orb { /* now the quiet menu button inside the transport strip */
  position: relative;
}
.bd3-fab.menu-open .bd3-fab-orb { background: #151210; color: #EFE8DA; }
.bd3-overlay.bg-dark .bd3-transport {
  background: rgba(21,18,16, 0.88);
  border-color: rgba(255, 255, 255, 0.18);
}
.bd3-overlay.bg-dark .bd3-transport button { color: rgba(239,232,218, 0.7); }
.bd3-overlay.bg-dark .bd3-transport button:hover { background: rgba(255, 255, 255, 0.1); color: #EFE8DA; }
.bd3-overlay.bg-dark .bd3-tr-sep { background: rgba(255, 255, 255, 0.16); }
.bd3-fab-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  width: 620px;
  max-width: calc(100vw - 40px);
  height: min(520px, 68vh); /* fixed: tab switches never resize the panel */
  display: flex;
  flex-direction: column;
  padding: 17px;
  background: rgba(250,247,240, 0.96);
  border: 1px solid rgba(21,18,16, 0.12);
  border-radius: 16px;
  box-shadow: 0 30px 60px -26px rgba(10, 10, 10, 0.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  opacity: 0;
  transform: translateY(8px) scale(0.97);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.bd3-fab.menu-open .bd3-fab-menu {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.bd3-fab-gh {
  padding: 6px 9px 4px;
  font-family: "JetBrains Mono", monospace;
  font-size: 8.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(21,18,16, 0.42);
}
.bd3-fab-gi {
  display: flex;
  flex-direction: column;
  padding-bottom: 5px;
}
.bd3-fab-it {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 9px 11px;
  border-radius: 11px;
  font-family: "Inter", sans-serif;
  font-size: 13.5px;
  color: rgba(10, 10, 10, 0.82);
  cursor: pointer;
  transition: background 0.13s ease, color 0.13s ease;
}
.bd3-fab-it svg {
  width: 16px;
  height: 16px;
  color: rgba(21,18,16, 0.45);
  flex: none;
  transition: color 0.13s ease;
}
.bd3-fab-it:hover { background: rgba(223,92,88, 0.1); color: #0C0A09; }
.bd3-fab-it:hover svg { color: #DF5C58; }
.bd3-fab.menu-open .bd3-fab-grp {
}
.bd3-fab.menu-open .bd3-fab-grp:nth-child(2) { animation-delay: 0.04s; }
.bd3-fab.menu-open .bd3-fab-grp:nth-child(3) { animation-delay: 0.08s; }
.bd3-fab.menu-open .bd3-fab-grp:nth-child(4) { animation-delay: 0.12s; }
/* mini swap chip (cost ripple) */
.bd3-swap-mini {
  padding: 6px 12px;
  gap: 6px;
  font-size: 10.5px;
}
.bd3-swap-mini .bd3-mdot { margin-right: 2px; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2); }

/* dark surface variants */
.bd3-overlay.bg-dark .bd3-pop {
  background: rgba(23,19,16, 0.97);
  border-color: rgba(255, 255, 255, 0.12);
}
.bd3-overlay.bg-dark .bd3-pop-ttl b { color: #F4EFE4; }
.bd3-overlay.bg-dark .bd3-pop-ft { border-top-color: rgba(255, 255, 255, 0.08); }
.bd3-overlay.bg-dark .bd3-pop-hint { color: rgba(255, 255, 255, 0.5); }
.bd3-overlay.bg-dark .bd3-seg { background: rgba(255, 255, 255, 0.08); }
.bd3-overlay.bg-dark .bd3-seg-b { color: rgba(255, 255, 255, 0.55); }
.bd3-overlay.bg-dark .bd3-seg-b.on { background: #151210; color: #F4EFE4; }
.bd3-overlay.bg-dark .bd3-cost-row2 { border-bottom-color: rgba(255, 255, 255, 0.06); }
.bd3-overlay.bg-dark .bd3-cost-name { color: #F4EFE4; }
.bd3-overlay.bg-dark .bd3-cost-cur { color: rgba(255, 255, 255, 0.45); }
.bd3-overlay.bg-dark .bd3-cost-pill { background: #151210; border-color: rgba(255, 255, 255, 0.14); color: rgba(255, 255, 255, 0.6); }
.bd3-overlay.bg-dark .bd3-cost-pill:hover { border-color: rgba(255, 255, 255, 0.35); color: #FFFFFF; }
.bd3-overlay.bg-dark .bd3-cost-pill.on { background: #EFE8DA; border-color: #EFE8DA; color: #151210; }
.bd3-overlay.bg-dark .bd3-cost-sum b { color: #F4EFE4; }
.bd3-overlay.bg-dark .bd3-simp-opt { background: #151210; border-color: rgba(255, 255, 255, 0.12); }
.bd3-overlay.bg-dark .bd3-simp-nm { color: #F4EFE4; }
.bd3-overlay.bg-dark .bd3-simp-delta { color: #E98984; }
.bd3-overlay.bg-dark .bd3-fab-orb { background: #EFE8DA; color: #151210; }
.bd3-overlay.bg-dark .bd3-fab-menu { background: rgba(23,19,16, 0.96); border-color: rgba(255, 255, 255, 0.12); }
.bd3-overlay.bg-dark .bd3-fab-gh { color: rgba(255, 255, 255, 0.45); }
.bd3-overlay.bg-dark .bd3-fab-gh:hover { background: rgba(255, 255, 255, 0.06); color: #F4EFE4; }
.bd3-overlay.bg-dark .bd3-fab-it { color: rgba(244,239,228, 0.85); }
.bd3-overlay.bg-dark .bd3-fab-it:hover { background: rgba(223,92,88, 0.16); color: #FFFFFF; }
@media (max-width: 768px) {
      .bd3-fab { right: 14px; bottom: 150px; }
  .bd3-pop { max-height: 64vh; }
}
@media (prefers-reduced-motion: reduce) {
  .bd3-ws-site,
  .bd3-ws-found,
  .bd3-ws-spin,
  .bd3-scrim,
  .bd3-pop,
  .bd3-fab-orb { animation: none; }
}

/* ------------------------------------------------------------------ */
/* Orb tabs, data views, compare page                                  */
/* ------------------------------------------------------------------ */
.bd3-orb-tabs {
  flex: none;
  display: flex;
  gap: 2px;
  padding: 3px;
  margin-bottom: 9px;
  background: rgba(21,18,16, 0.06);
  border-radius: 999px;
}
.bd3-orb-tab {
  flex: 1;
  border: 0;
  border-radius: 999px;
  padding: 9px 0;
  background: transparent;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(21,18,16, 0.55);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.bd3-orb-tab.on {
  background: #FFFFFF;
  color: #0C0A09;
  font-weight: 600;
  box-shadow: 0 3px 10px -4px rgba(21,18,16, 0.35);
}
.bd3-orb-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
}
.bd3-orb-body.bd3-orb-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 14px;
  align-content: start;
}
.bd3-orb-sec {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}
.bd3-orb-copy {
  border: 1px solid rgba(21,18,16, 0.14);
  border-radius: 999px;
  background: #FFFFFF;
  padding: 4px 12px;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #0C0A09;
  cursor: pointer;
  transition: border-color 0.14s ease, transform 0.14s ease;
}
.bd3-orb-copy:hover { border-color: #DF5C58; transform: translateY(-1px); }
.bd3-orb-note {
  display: block;
  margin-top: 8px;
  font-family: "Inter", sans-serif;
  font-size: 10.5px;
  color: rgba(21,18,16, 0.5);
}

/* tech — tinted JSON */
.bd3-tech-json {
  margin: 0;
  padding: 14px 15px;
  background: #151210;
  border-radius: 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  line-height: 1.55;
  color: rgba(239,232,218, 0.75);
  white-space: pre;
  overflow: auto;
  max-height: none;
  scrollbar-width: thin;
}
.bd3-tech-json i { font-style: normal; }
.bd3-jk { color: #C6CBD1; }
.bd3-js { color: #7FCBA4; }
.bd3-jn { color: #E8A33D; }
.bd3-jb { color: #DF5C58; }

/* models — brand distribution + rows */
.bd3-brand-bar {
  display: flex;
  gap: 2px;
  height: 10px;
  margin: 9px 0 7px;
  border-radius: 999px;
  overflow: hidden;
}
.bd3-mseg { display: block; height: 100%; }
.bd3-mseg.bd3-mdot-anthropic { background: #D8551F; }
.bd3-mseg.bd3-mdot-openai    { background: #10A37F; }
.bd3-mseg.bd3-mdot-google    { background: #4285F4; }
.bd3-mseg.bd3-mdot-meta      { background: #0668E1; }
.bd3-mseg.bd3-mdot-deepseek  { background: #4D6BFE; }
.bd3-brand-leg {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 14px;
  margin-bottom: 11px;
}
.bd3-brand-leg span {
  display: inline-flex;
  align-items: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(21,18,16, 0.55);
}
.bd3-mrows { display: flex; flex-direction: column; }
.bd3-mrow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6.5px 0;
  border-bottom: 1px solid rgba(21,18,16, 0.06);
}
.bd3-mrow:last-child { border-bottom: 0; }
.bd3-mrow-nm {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #0C0A09;
  margin-right: auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bd3-mrow .bd3-cost-pill { cursor: default; pointer-events: none; }
.bd3-mrow-s {
  font-family: "JetBrains Mono", monospace;
  font-size: 9.5px;
  color: rgba(21,18,16, 0.45);
  min-width: 20px;
  text-align: right;
}

/* build cost — big number, columns, ledger */
.bd3-big {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-size: 34px;
  line-height: 1;
  color: #0C0A09;
  margin: 6px 0 12px;
}
.bd3-big i {
  font-style: normal;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(21,18,16, 0.45);
  margin-left: 7px;
}
.bd3-cols {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 74px;
  padding: 0 2px 8px;
  border-bottom: 1px solid rgba(21,18,16, 0.1);
  margin-bottom: 9px;
}
.bd3-cols i {
  flex: 1;
  min-width: 8px;
  border-radius: 5px 5px 2px 2px;
  background: rgba(21,18,16, 0.18);
  transition: transform 0.15s ease;
  animation: bd3-col-grow 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  transform-origin: bottom;
}
.bd3-cols i:hover { transform: scaleY(1.04); }
.bd3-cols i.live { background: #DF5C58; }
@keyframes bd3-col-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.bd3-ledger { display: flex; flex-direction: column; }
.bd3-ledger-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  font-family: "Inter", sans-serif;
  font-size: 11.5px;
  color: rgba(10, 10, 10, 0.75);
}
.bd3-ledger-row b {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: #0C0A09;
}

/* estimate — horizontal bars */
.bd3-hbars { display: flex; flex-direction: column; gap: 6px; }
.bd3-hbar {
  display: grid;
  grid-template-columns: 92px 1fr 26px;
  align-items: center;
  gap: 9px;
}
.bd3-hbar-nm {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  color: rgba(10, 10, 10, 0.75);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bd3-hbar-tr {
  height: 9px;
  border-radius: 999px;
  background: rgba(21,18,16, 0.07);
  overflow: hidden;
}
.bd3-hbar-tr i {
  display: block;
  height: 100%;
  border-radius: 999px;
  animation: bd3-hbar-grow 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  transform-origin: left;
}
@keyframes bd3-hbar-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.bd3-hbar b {
  font-family: "JetBrains Mono", monospace;
  font-size: 9.5px;
  color: #0C0A09;
  text-align: right;
}/* dark surface */
.bd3-overlay.bg-dark .bd3-orb-tabs { background: rgba(255, 255, 255, 0.08); }
.bd3-overlay.bg-dark .bd3-orb-tab { color: rgba(255, 255, 255, 0.55); }
.bd3-overlay.bg-dark .bd3-orb-tab.on { background: #151210; color: #F4EFE4; }
.bd3-overlay.bg-dark .bd3-orb-copy { background: #151210; border-color: rgba(255, 255, 255, 0.16); color: #F4EFE4; }
.bd3-overlay.bg-dark .bd3-orb-note { color: rgba(255, 255, 255, 0.5); }
.bd3-overlay.bg-dark .bd3-brand-leg span { color: rgba(255, 255, 255, 0.55); }
.bd3-overlay.bg-dark .bd3-mrow { border-bottom-color: rgba(255, 255, 255, 0.06); }
.bd3-overlay.bg-dark .bd3-mrow-nm { color: #F4EFE4; }
.bd3-overlay.bg-dark .bd3-mrow-s { color: rgba(255, 255, 255, 0.45); }
.bd3-overlay.bg-dark .bd3-big { color: #F4EFE4; }
.bd3-overlay.bg-dark .bd3-big i { color: rgba(255, 255, 255, 0.45); }
.bd3-overlay.bg-dark .bd3-cols { border-bottom-color: rgba(255, 255, 255, 0.1); }
.bd3-overlay.bg-dark .bd3-cols i { background: rgba(255, 255, 255, 0.22); }
.bd3-overlay.bg-dark .bd3-cols i.live { background: #DF5C58; }
.bd3-overlay.bg-dark .bd3-ledger-row { color: rgba(244,239,228, 0.75); }
.bd3-overlay.bg-dark .bd3-ledger-row b { color: #F4EFE4; }
.bd3-overlay.bg-dark .bd3-hbar-nm { color: rgba(244,239,228, 0.75); }
.bd3-overlay.bg-dark .bd3-hbar-tr { background: rgba(255, 255, 255, 0.08); }
.bd3-overlay.bg-dark .bd3-hbar b { color: #F4EFE4; }
@media (max-width: 768px) {
  .bd3-pop-wide { width: calc(100vw - 32px); }
  }
@media (prefers-reduced-motion: reduce) {
  .bd3-cols i,
  .bd3-hbar-tr i { animation: none; }
}

/* ------------------------------------------------------------------ */
/* Shell rail collapses inside the builder; live input; node cards    */
/* ------------------------------------------------------------------ */

.bd3-overlay .hud-info-btn { display: none !important; } /* the nameplate is the door */

/* real input shares the row with the scripted typewriter */
.bd3-chat-real {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-family: "Inter", sans-serif;
  font-size: 12.5px;
  color: #0C0A09;
  caret-color: #DF5C58;
  outline: none;
  padding: 0;
}
.bd3-chat-real::placeholder { color: rgba(21,18,16, 0.35); }
.bd3-chat.typing .bd3-chat-real { display: none; }
.bd3-chat:not(.typing) .bd3-chat-typed,
.bd3-chat:not(.typing) .bd3-chat-caret { display: none; }
.bd3-overlay.bg-dark .bd3-chat-real { color: #F4EFE4; }
.bd3-overlay.bg-dark .bd3-chat-real::placeholder { color: rgba(255, 255, 255, 0.3); }

/* node detail card */

/* the compiled document */
.bd3-doc-card { display: flex; flex-direction: column; max-width: 94%; }
.bd3-doc-t {
  display: block;
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-size: 17px;
  line-height: 1.25;
  color: #0C0A09;
  margin-bottom: 2px;
}
.bd3-doc-m {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(21,18,16, 0.45);
  margin-bottom: 4px;
}
.bd3-doc-h {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #B84D49;
  margin: 9px 0 3px;
}
.bd3-doc-li {
  display: block;
  position: relative;
  padding-left: 12px;
  font-size: 11px;
  line-height: 1.5;
  color: rgba(10, 10, 10, 0.8);
}
.bd3-doc-li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 6.5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(21,18,16, 0.3);
}
.bd3-doc-src::before { background: #4285F4; }
.bd3-doc-p {
  display: block;
  font-size: 11.5px;
  line-height: 1.6;
  color: rgba(10, 10, 10, 0.82);
}

/* dark surface */
.bd3-overlay.bg-dark .bd3-doc-t { color: #F4EFE4; }
.bd3-overlay.bg-dark .bd3-doc-li,
.bd3-overlay.bg-dark .bd3-doc-p { color: rgba(244,239,228, 0.82); }

/* ------------------------------------------------------------------ */
/* Cost view                                                            */
/* ------------------------------------------------------------------ */
.bd3-tag-cost {
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  font-weight: 700;
  color: #151210;
}
.bd3-tag-bar {
  display: inline-block;
  width: 62px;
  height: 5px;
  border-radius: 999px;
  background: rgba(21,18,16, 0.1);
  overflow: hidden;
  vertical-align: 1px;
}
.bd3-tag-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
}
.bd3-overlay.bg-dark .bd3-tag-cost { color: #F4EFE4; }
.bd3-overlay.bg-dark .bd3-tag-bar { background: rgba(255, 255, 255, 0.25); }


/* run-note v2: one icon, three words, then it folds itself away */
.bd3-run-note {
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  padding: 5px 11px 5px 6px;
}
.bd3-run-note .bd3-note-ic {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(21,18,16, 0.06);
  color: #151210;
  font-style: normal;
  flex: 0 0 auto;
}
.bd3-run-note .bd3-note-ic svg { width: 12px; height: 12px; }
.bd3-run-note span {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.bd3-note-web .bd3-note-ic    { background: rgba(46,140,95, 0.14); color: #256B4B; }
.bd3-note-code .bd3-note-ic   { background: rgba(21,18,16, 0.85); color: #EFE8DA; }
.bd3-note-doc .bd3-note-ic    { background: rgba(185,191,199, 0.28); color: #565B63; }
.bd3-note-image .bd3-note-ic  { background: rgba(232,163,61, 0.3); color: #7A5A14; }
.bd3-note-memory .bd3-note-ic { background: rgba(198,203,209, 0.4); color: #6A7078; }
.bd3-note-think .bd3-note-ic  { background: rgba(223,92,88, 0.13); color: #B84D49; }
.bd3-note-trigger .bd3-note-ic{ background: rgba(223,92,88, 0.9); color: #FFFFFF; }
.bd3-note-output .bd3-note-ic { background: rgba(46,140,95, 0.9); color: #FFFFFF; }
.bd3-run-note.bd3-note-out {
  /* the render loop owns transform — fade on opacity alone */
  opacity: 0;
  transition: opacity 0.3s ease;
}
.bd3-overlay.bg-dark .bd3-run-note .bd3-note-ic { background: rgba(255, 255, 255, 0.12); color: #EFE8DA; }
@media (prefers-reduced-motion: reduce) {
  .bd3-run-note.bd3-note-out { transition: none; }
}

/* atlas mode: names off — icons and paths carry the whole machine */
.bd3-overlay.bd3-atlas .bd3-tag { display: none !important; }
.bd3-overlay.bd3-atlas .bd3-run-note { display: none !important; }

/* atlas chrome: floor captions + the way back */
.bd3-floorcap {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3; /* under every menu and popup */
  cursor: pointer;
  transform: translate(-9999px, -9999px);
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 7px 12px 8px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(21,18,16, 0.12);
  border-radius: 11px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 26px -14px rgba(21,18,16, 0.35);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  will-change: transform;
  white-space: nowrap;
}
.bd3-floorcap.in { opacity: 1; }
.bd3-floorcap { pointer-events: auto; }
.bd3-floorcap:hover { border-color: rgba(21,18,16, 0.3); }
.bd3-floorcap b {
  font-family: "JetBrains Mono", monospace;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(21,18,16, 0.45);
}
.bd3-floorcap span {
  font-family: "Instrument Serif", serif;
  font-size: 15px;
  color: #151210;
}
.bd3-atlasexit {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(8px);
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  background: #151210;
  color: #EFE8DA;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 11px 18px;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 18px 40px -16px rgba(10, 10, 10, 0.6);
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease, background 0.15s ease;
}
.bd3-atlasexit.in { opacity: 1; transform: translateX(-50%); }
.bd3-atlasexit:hover { background: #DF5C58; color: #ffffff; }
.bd3-atlasexit svg { width: 10px; height: 10px; }
@media (prefers-reduced-motion: reduce) {
  .bd3-floorcap, .bd3-atlasexit { transition: none; opacity: 1; transform: translateX(-50%); }
  .bd3-floorcap { transform: none; }
}

/* the searcher's info window: live web results beside the laptop */
.bd3-web {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  white-space: nowrap;
  will-change: transform;
  width: 252px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(21,18,16, 0.14);
  border-top: 2px solid #2E8C5F;
  border-radius: 13px;
  box-shadow: 0 18px 42px -18px rgba(21,18,16, 0.42);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  overflow: hidden;
  animation: bd3FloatIn 0.24s ease;
}
.bd3-web-hd {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px 7px;
  border-bottom: 1px solid rgba(21,18,16, 0.08);
}
.bd3-web-hd b {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(21,18,16, 0.55);
}
.bd3-web-hd i {
  margin-left: auto;
  font-style: normal;
  font-family: "JetBrains Mono", monospace;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #256B4B;
}
.bd3-web-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2E8C5F;
  animation: bd3WebPulse 1.4s ease infinite;
}
@keyframes bd3WebPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(46,140,95, 0.18); }
  50% { box-shadow: 0 0 0 6px rgba(46,140,95, 0.06); }
}
.bd3-web-q {
  padding: 7px 11px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  color: #151210;
  background: rgba(21,18,16, 0.035);
  border-bottom: 1px solid rgba(21,18,16, 0.06);
}
.bd3-web-bd { padding: 5px 11px 9px; min-height: 20px; }
.bd3-web-row {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 3.5px 0;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.bd3-web-row.in { opacity: 1; transform: none; }
.bd3-web-row i {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  flex: 0 0 auto;
  align-self: center;
}
.bd3-web-row b {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 600;
  color: #151210;
}
.bd3-web-row span {
  font-family: Inter, sans-serif;
  font-size: 10.5px;
  color: rgba(21,18,16, 0.55);
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (prefers-reduced-motion: reduce) {
  .bd3-web-pulse { animation: none; }
  .bd3-web-row { transition: none; transform: none; opacity: 1; }
}

/* the elevator: floor stops on the right, indicator rides your elevation */
@media (prefers-reduced-motion: reduce) {
}

/* quick-access lens chips pinned atop the transport menu */
.bd3-fab-lens {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 2px 2px 10px;
  margin-bottom: 9px;
  border-bottom: 1px solid rgba(21,18,16, 0.08);
}
.bd3-fab-lens span {
  font-family: "JetBrains Mono", monospace;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(21,18,16, 0.4);
  margin-right: 4px;
}
.bd3-fab-lens button {
  flex: 1;
  border: 1px solid rgba(21,18,16, 0.14);
  border-radius: 999px;
  background: transparent;
  color: rgba(21,18,16, 0.66);
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 7px 0;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.bd3-fab-lens button:hover { background: rgba(21,18,16, 0.06); color: #151210; }
.bd3-fab-lens button.on { background: #151210; border-color: #151210; color: #EFE8DA; }
.bd3-overlay.bg-dark .bd3-fab-lens { border-bottom-color: rgba(255, 255, 255, 0.1); }
.bd3-overlay.bg-dark .bd3-fab-lens button { border-color: rgba(255, 255, 255, 0.18); color: rgba(244,239,228, 0.7); }
.bd3-overlay.bg-dark .bd3-fab-lens button.on { background: #EFE8DA; border-color: #EFE8DA; color: #151210; }

/* head version row: why there's no Open */
.bd3-ver-now {
  font-family: "JetBrains Mono", monospace;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(21,18,16, 0.38);
  white-space: nowrap;
}
.bd3-overlay.bg-dark .bd3-ver-now { color: rgba(244,239,228, 0.4); }

/* run-cost odometer: rolling digits above the exit pill */
.bd3-runcost {
  position: absolute;
  right: 20px;
  left: auto;
  bottom: 66px;
  transform: translateY(10px);
  z-index: 6;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 19px;
  background: #151210;
  border-radius: 999px;
  color: #EFE8DA;
  box-shadow: 0 20px 46px -18px rgba(10, 10, 10, 0.65);
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.32, 1), box-shadow 0.3s ease;
  pointer-events: none;
}
.bd3-runcost.in { opacity: 1; transform: none; }
.bd3-runcost.done { box-shadow: 0 0 0 2px rgba(232,163,61, 0.7), 0 20px 46px -18px rgba(10, 10, 10, 0.65); }
.bd3-rc-cap {
  font: 700 8.5px/1 "JetBrains Mono", monospace;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(239,232,218, 0.5);
}
.bd3-runcost.done .bd3-rc-cap { color: #E8A33D; }
.bd3-rc-odo {
  display: inline-flex;
  align-items: flex-start;
  font: 600 19px/1 "JetBrains Mono", monospace;
  color: #E8A33D;
  height: 1em;
  overflow: hidden;
}
.bd3-rc-w {
  display: inline-block;
  height: 1em;
  overflow: hidden;
}
.bd3-rc-reel {
  display: inline-flex;
  flex-direction: column;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.32, 1);
  will-change: transform;
}
.bd3-rc-reel i {
  font-style: normal;
  height: 1em;
  line-height: 1;
  display: block;
}
.bd3-rc-c { display: inline-block; }
.bd3-rc-unit {
  font: 600 10px/1 "JetBrains Mono", monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(239,232,218, 0.55);
}
@media (prefers-reduced-motion: reduce) {
  .bd3-runcost { transition: none; opacity: 1; transform: translateX(-50%); }
  .bd3-rc-reel { transition: none; }
}









@media (max-width: 720px) {
  .bd3-nameplate { top: 12px; gap: 9px; padding: 7px 12px 7px 8px; }
}

/* ===================================================================== */
/* Agent marketplace — licensed specialists, priced in sats.             */
/* Rows: pixel avatar · who + pitch + where it wires · price + licensor. */
/* ===================================================================== */
.bd3-pop.bd3-pop-mkt { width: 532px; }
.bd3-mkt-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 14px 6px;
}
.bd3-mkt-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  text-align: left;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(21,18,16, 0.1);
  border-radius: 14px;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.bd3-mkt-row:hover, .bd3-mkt-row.hl {
  border-color: rgba(46,140,95, 0.55);
  background: rgba(46,140,95, 0.05);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -14px rgba(10, 10, 10, 0.35);
}
.bd3-mkt-row.hired {
  cursor: default;
  opacity: 0.55;
}
.bd3-mkt-row.hired:hover { transform: none; box-shadow: none; border-color: rgba(21,18,16, 0.1); background: rgba(255,255,255,0.72); }
.bd3-mkt-ava {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  margin-top: 2px;
  image-rendering: pixelated;
  background: rgba(21,18,16, 0.04);
  border: 1px solid rgba(21,18,16, 0.1);
  border-radius: 11px;
  padding: 4px;
  box-sizing: border-box;
}
.bd3-mkt-info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bd3-mkt-nm {
  font-size: 14px;
  font-weight: 650;
  color: #0C0A09;
  letter-spacing: -0.01em;
}
.bd3-mkt-role {
  font-style: normal;
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(21,18,16, 0.5);
  white-space: nowrap;
}
.bd3-mkt-plug {
  font-size: 11px;
  color: rgba(21,18,16, 0.55);
}
.bd3-mkt-plug::before {
  content: "\2192 ";
  color: #DF5C58;
}.bd3-mkt-side {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  padding-left: 8px;
}
.bd3-mkt-price {
  display: flex;
  align-items: baseline;
  gap: 3px;
  font-family: "JetBrains Mono", monospace;
  font-size: 16px;
  font-weight: 700;
  color: #0C0A09;
  letter-spacing: -0.02em;
}
.bd3-mkt-price i {
  font-style: normal;
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(21,18,16, 0.45);
}
.bd3-mkt-row.hired .bd3-mkt-price {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #256B4B;
}
.bd3-mkt-lic {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 550;
  color: rgba(21,18,16, 0.66);
  white-space: nowrap;
}
.bd3-mkt-lic[data-unverified] { color: rgba(21,18,16, 0.45); }
.bd3-mkt-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  color: #FFFFFF;
  background: #2E8C5F;
  border-radius: 50%;
}
.bd3-mkt-check svg { width: 7px; height: 7px; }body.dark .bd3-mkt-row { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.1); }
body.dark .bd3-mkt-row:hover, body.dark .bd3-mkt-row.hl { background: rgba(46,140,95, 0.1); }
body.dark .bd3-mkt-nm, body.dark .bd3-mkt-price { color: #F4EFE4; }
body.dark .bd3-mkt-lic { color: rgba(244,239,228, 0.68); }body.dark .bd3-mkt-ava { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.1); }
@media (max-width: 600px) {
  .bd3-pop.bd3-pop-mkt { width: 448px; }
}


/* ===================================================================== */
/* Round two — tag emoji, the Executive, run clock, ownership contrast,   */
/* identity & licenses in the info panel.                                */
/* ===================================================================== */
.bd3-tag-emo {
  font-style: normal;
  font-size: 12px;
  line-height: 1;
  margin-right: 1px;
  transform: translateY(0.5px);
}

/* run-cost odometer: the clock beside the sats */
.bd3-rc-sep {
  width: 1px;
  height: 14px;
  margin: 0 9px 0 7px;
  background: rgba(255, 255, 255, 0.22);
}
.bd3-rc-clock {
  display: inline-flex;
  align-items: baseline;
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #EFE8DA;
  font-variant-numeric: tabular-nums;
}
.bd3-rc-clock em { font-style: normal; opacity: 0.5; margin: 0 1px; }
.bd3-rc-clock b { font-weight: 500; font-size: 10.5px; opacity: 0.65; margin-left: 1px; }
.bd3-runcost.done .bd3-rc-clock { color: #E8A33D; }
.bd3-runcost.done .bd3-rc-clock b { opacity: 0.9; }

/* ownership lens: licensed tags step back, yours stay full-strength */
.bd3-tag.bd3-own-lic { opacity: 0.55; }
.bd3-tag.bd3-own-lic .bd3-tag-name { color: rgba(21,18,16, 0.55); }
.bd3-tag.bd3-own-mine .bd3-tag-chip { box-shadow: 0 0 0 1.5px rgba(223,92,88, 0.55); }

/* identity & licenses (info panel) */
.bd3-did {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(21,18,16, 0.04);
  border: 1px solid rgba(21,18,16, 0.08);
  border-radius: 10px;
  margin-bottom: 8px;
}
.bd3-did-k {
  font-family: "JetBrains Mono", monospace;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(21,18,16, 0.45);
}
.bd3-did-v {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  color: rgba(21,18,16, 0.78);
}
.bd3-did-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  font-family: "JetBrains Mono", monospace;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #256B4B;
  background: rgba(46,140,95, 0.1);
  border: 1px solid rgba(46,140,95, 0.28);
  border-radius: 999px;
  white-space: nowrap;
}
.bd3-did-badge svg { width: 8px; height: 8px; }
.bd3-lic { display: flex; flex-direction: column; gap: 5px; }
.bd3-lic-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: rgba(21,18,16, 0.8);
}
.bd3-lic-row i {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  flex: 0 0 auto;
}
.bd3-lic-row b { font-weight: 600; color: #0C0A09; }
.bd3-lic-row span {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(21,18,16, 0.5);
}
.bd3-lic-row span::before { content: '\00b7\00a0'; opacity: 0.6; }
.bd3-lic-row em {
  font-style: normal;
  font-family: "JetBrains Mono", monospace;
  font-size: 9.5px;
  color: rgba(21,18,16, 0.55);
  white-space: nowrap;
}
.bd3-lic-none {
  font-size: 11.5px;
  color: rgba(21,18,16, 0.5);
}
body.dark .bd3-did { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.1); }
body.dark .bd3-did-v { color: rgba(244,239,228, 0.8); }
body.dark .bd3-lic-row { color: rgba(244,239,228, 0.8); }
body.dark .bd3-lic-row b { color: #F4EFE4; }
body.dark .bd3-tag.bd3-own-lic .bd3-tag-name { color: rgba(244,239,228, 0.5); }


/* ===================================================================== */
/* Chapters — the whole tour behind one small icon, bottom-left.         */
/* ===================================================================== */
.bd3-chap-btn {
  position: absolute;
  left: 25%;
  translate: -50% 0; /* top, left-of-center — clear of the collapsed menu;
                        the translate property keeps the hover transform
                        independent */
  top: 22px;
  z-index: 7;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(21,18,16, 0.12);
  border-radius: 12px;
  background: rgba(250,247,240, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #151210;
  cursor: pointer;
  box-shadow: 0 10px 24px -14px rgba(21,18,16, 0.45);
  pointer-events: auto;
  transition: transform 0.14s ease, background 0.14s ease, border-color 0.14s ease;
}
.bd3-chap-btn svg { width: 16px; height: 16px; }
.bd3-chap-btn:hover { background: #FFFFFF; transform: translateY(-1px); }
.bd3-chap-btn.on { background: #151210; border-color: #151210; color: #F4EFE4; }
.bd3-chap-btn.live::after {
  content: '';
  position: absolute;
  top: -3px; right: -3px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #2E8C5F;
  border: 2px solid #FAF7F0;
}

.bd3-chap {
  position: absolute;
  left: 25%;
  translate: -50% 0;
  top: 68px;
  z-index: 8;
  width: 236px;
  padding: 12px 8px 8px;
  background: #FAF7F0;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(21,18,16, 0.12);
  border-radius: 16px;
  box-shadow: 0 24px 48px -22px rgba(21,18,16, 0.5);
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  transform-origin: 50% 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.bd3-chap.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.bd3-chap-hd {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 2px 10px 10px;
}
.bd3-chap-eb {
  font-family: "JetBrains Mono", monospace;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #DF5C58;
}
.bd3-chap-t {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-size: 17px;
  line-height: 1;
  color: #0C0A09;
}
.bd3-chap-it {
  appearance: none;
  border: 0;
  background: transparent;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6.5px 10px;
  border-radius: 9px;
  font: inherit;
  font-size: 12px;
  font-weight: 530;
  color: rgba(21,18,16, 0.78);
  cursor: pointer;
  position: relative;
  text-align: left;
  transition: background 0.13s ease, color 0.13s ease;
}
/* the reel line threading the dots */
.bd3-chap-it::before {
  content: '';
  position: absolute;
  left: 13.5px;
  top: -7px;
  bottom: -7px;
  width: 1px;
  background: rgba(21,18,16, 0.12);
}
.bd3-chap-it:first-of-type::before { top: 50%; }
.bd3-chap-it:last-of-type::before { bottom: 50%; }
.bd3-chap-dot {
  position: relative;
  z-index: 1;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FAF7F0;
  border: 1.5px solid rgba(21,18,16, 0.35);
  flex: 0 0 auto;
  transition: background 0.13s ease, border-color 0.13s ease;
}
.bd3-chap-it em {
  font-style: normal;
  font-family: "JetBrains Mono", monospace;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(21,18,16, 0.38);
  flex: 0 0 auto;
}
.bd3-chap-it span {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bd3-chap-it:hover { background: rgba(21,18,16, 0.06); color: #0C0A09; }
.bd3-chap-it:hover .bd3-chap-dot { border-color: #151210; }
.bd3-chap-it.cur { color: #0C0A09; font-weight: 640; }
.bd3-chap-it.cur .bd3-chap-dot { background: #2E8C5F; border-color: #2E8C5F; }
.bd3-chap-it.cur em { color: #256B4B; }

body.dark .bd3-chap-btn {
  background: rgba(26,22,19, 0.94);
  border-color: rgba(255, 255, 255, 0.14);
  color: #F4EFE4;
}
body.dark .bd3-chap-btn:hover { background: rgba(40, 40, 43, 0.98); }
body.dark .bd3-chap-btn.on { background: #F4EFE4; border-color: #F4EFE4; color: #141416; }
body.dark .bd3-chap-btn.live::after { border-color: #1A1A1C; }
body.dark .bd3-chap {
  background: rgba(26,22,19, 0.97);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 48px -22px rgba(0, 0, 0, 0.85);
}
body.dark .bd3-chap-t { color: #F4EFE4; }
body.dark .bd3-chap-it { color: rgba(244,239,228, 0.75); }
body.dark .bd3-chap-it:hover { background: rgba(255, 255, 255, 0.07); color: #F4EFE4; }
body.dark .bd3-chap-it.cur { color: #F4EFE4; }
body.dark .bd3-chap-it::before { background: rgba(255, 255, 255, 0.14); }
body.dark .bd3-chap-dot { background: #1A1A1C; border-color: rgba(255, 255, 255, 0.4); }

@media (max-width: 720px) {
  .bd3-chap-btn { left: 50%; translate: -50% 0; top: 14px; bottom: auto; width: 34px; height: 34px; }
  .bd3-chap { left: 50%; translate: -50% 0; top: 54px; bottom: auto; width: min(236px, calc(100vw - 28px)); }
}

/* ===================================================================== */
/* Output lens — what each agent thinks, and what it hands downstream.   */
/* Cards ripple in along the flow; wires warm so the dots read as        */
/* parcels in motion.                                                    */
/* ===================================================================== */
.bd3-out {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-top: 4px;
  padding: 5px 8px 5px 7px;
  background: rgba(250,247,240, 0.94);
  border: 1px solid rgba(21,18,16, 0.1);
  border-left: 2px solid #DF5C58;
  border-radius: 8px;
  max-width: 236px;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.42s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.bd3-out.in { opacity: 1; transform: translateY(0); }
.bd3-out-think {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-size: 12px;
  line-height: 1.25;
  color: rgba(21,18,16, 0.72);
}
.bd3-out-think i {
  font-style: normal;
  font-size: 9px;
  color: #B27B1F;
  animation: bd3-out-spin 3.2s linear infinite;
  transform-origin: center;
  display: inline-block;
}
@keyframes bd3-out-spin { to { transform: rotate(360deg); } }
.bd3-out-pass {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-family: "JetBrains Mono", monospace;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(21,18,16, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bd3-out-pass i { font-style: normal; color: #DF5C58; font-weight: 700; }
.bd3-out-pass em {
  font-style: normal;
  font-weight: 500;
  color: rgba(21,18,16, 0.42);
  text-transform: none;
  letter-spacing: 0.02em;
  margin-left: 2px;
}
.bd3-out-key { font-style: normal; color: #DF5C58; }
.bd3-lc-note .bd3-out-key:first-child { color: #B27B1F; }

@media (prefers-reduced-motion: reduce) {
  .bd3-out { transition: none; }
  .bd3-out-think i { animation: none; }
}

body.dark .bd3-out {
  background: rgba(26,22,19, 0.94);
  border-color: rgba(255, 255, 255, 0.12);
  border-left-color: #DF5C58;
}
body.dark .bd3-out-think { color: rgba(244,239,228, 0.75); }
body.dark .bd3-out-pass { color: rgba(244,239,228, 0.6); }
body.dark .bd3-out-pass em { color: rgba(244,239,228, 0.4); }










@media (prefers-reduced-motion: reduce) {
  .bd3-runstrip, .bd3-rs-chip { transition: none; }
  .bd3-rs-chip i { animation: none; }
}
@media (max-width: 720px) {
  .bd3-runstrip { top: 66px; max-width: calc(100vw - 20px); }
}

/* ===================================================================== */
/* Output lens: the from-line, and the final deliverable at the end.     */
/* ===================================================================== */
.bd3-out-from {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-family: "JetBrains Mono", monospace;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(21,18,16, 0.42);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bd3-out-from i { font-style: normal; color: rgba(21,18,16, 0.35); }
body.dark .bd3-out-from { color: rgba(244,239,228, 0.4); }

.bd3-final {
  position: absolute;   /* anchored to the output card by the note loop */
  left: 0;
  top: 0;
  width: max-content;
  max-width: 252px;
  will-change: transform;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 11px 13px 11px;
  background: rgba(21,18,16, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  box-shadow: 0 18px 38px -18px rgba(21,18,16, 0.65);
  opacity: 0;
  transform: translateY(7px) scale(0.97);
  transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.bd3-final.in { opacity: 1; transform: translateY(0) scale(1); }
.bd3-final-badge {
  position: absolute;
  top: -8px;
  left: 12px;
  padding: 2px 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #151210;
  background: #E8A33D;
  border-radius: 999px;
}
.bd3-final-body { display: flex; align-items: center; gap: 12px; }
.bd3-final-stack { position: relative; width: 40px; height: 46px; flex: 0 0 auto; }
.bd3-final-stack i,
.bd3-final-doc {
  position: absolute;
  inset: 3px 4px;
  background: #F4EFE4;
  border: 1px solid rgba(21,18,16, 0.2);
  border-radius: 5px;
}
.bd3-final-stack i { transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.15s; }
.bd3-final-stack i:nth-child(1) { background: #E7E3D8; }
.bd3-final-stack i:nth-child(2) { background: #EDE6D6; }
.bd3-final.in .bd3-final-stack i:nth-child(1) { transform: rotate(-7deg) translate(-3px, 1px); }
.bd3-final.in .bd3-final-stack i:nth-child(2) { transform: rotate(-3.2deg) translate(-1px, 0.5px); }
.bd3-final-doc {
  display: grid;
  place-items: center;
  color: #151210;
}
.bd3-final-doc svg { width: 17px; height: 17px; }
.bd3-final-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bd3-final-meta b {
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  font-weight: 650;
  color: #F4EFE4;
  letter-spacing: 0.01em;
}
.bd3-final-meta span { font-size: 10.5px; color: rgba(244,239,228, 0.62); }
.bd3-final-meta em {
  font-style: normal;
  font-family: "JetBrains Mono", monospace;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #E8A33D;
  margin-top: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .bd3-final, .bd3-final-stack i { transition: none; }
}


/* ===================================================================== */
/* Info panel opens from the nameplate — the floating "?" retires, and   */
/* the panel drops in centered beneath Marco.                            */
/* ===================================================================== */
#bd3Overlay .hud-info-btn { display: none; }
#bd3Overlay .hud-info-panel {
  left: 50%;
  top: 84px;
  margin-left: -170px;
  width: 340px;
  transform-origin: top center;
}

/* ===================================================================== */
/* Output cards: click to expand the full thinking + hand-off.           */
/* ===================================================================== */
.bd3-out.bd3-out-click {
  pointer-events: auto;
  cursor: pointer;
  position: relative;
  padding-right: 18px;
  transition: opacity 0.42s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              max-width 0.34s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease;
}
.bd3-out.bd3-out-click:hover {
  box-shadow: 0 8px 20px -12px rgba(21,18,16, 0.4);
  border-color: rgba(21,18,16, 0.2);
}
.bd3-out-caret {
  position: absolute;
  right: 7px;
  top: 7px;
  font-style: normal;
  font-size: 12px;
  line-height: 1;
  color: rgba(21,18,16, 0.35);
  transform: rotate(90deg);
  transition: transform 0.25s ease, color 0.15s ease;
}
.bd3-out.bd3-out-open {
  max-width: 330px;
  background: #FAF7F0;
  border-color: rgba(21,18,16, 0.22);
  box-shadow: 0 20px 42px -20px rgba(21,18,16, 0.5);
  z-index: 3;
}
.bd3-out.bd3-out-open .bd3-out-caret { transform: rotate(-90deg); color: #DF5C58; }
.bd3-out.bd3-out-open .bd3-out-pass { white-space: normal; }
.bd3-out-more {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed rgba(21,18,16, 0.14);
}
.bd3-out-more[hidden] { display: none; }
.bd3-out-more-t {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(21,18,16, 0.78);
  white-space: normal;
}
.bd3-out-more-o {
  font-size: 10.5px;
  line-height: 1.5;
  color: rgba(21,18,16, 0.6);
  white-space: normal;
}
.bd3-out-more-o b { font-weight: 650; color: #0C0A09; }
body.dark .bd3-out.bd3-out-open { background: #1E1E20; }
body.dark .bd3-out-more { border-top-color: rgba(255, 255, 255, 0.14); }
body.dark .bd3-out-more-t { color: rgba(244,239,228, 0.8); }
body.dark .bd3-out-more-o { color: rgba(244,239,228, 0.6); }
body.dark .bd3-out-more-o b { color: #F4EFE4; }
/* ---- sats meter on the transport strip ---- */
.bd3-sats {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  padding: 0 4px 0 8px;
  color: #151210;
  user-select: none;
}
.bd3-sats svg {
  width: 11px;
  height: 11px;
  color: #E8A33D;
  flex: 0 0 auto;
}
.bd3-sats b {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
  min-width: 42px;
  text-align: right;
}
.bd3-sats.bd3-sats-hit b {
  animation: bd3SatsHit 0.55s ease;
}
@keyframes bd3SatsHit {
  from { color: #DF5C58; }
}
.bd3-sats-delta {
  position: absolute;
  right: 2px;
  top: -16px;
  font-family: "JetBrains Mono", monospace;
  font-style: normal;
  font-size: 10px;
  font-weight: 600;
  color: #DF5C58;
  pointer-events: none;
  animation: bd3SatsFloat 0.9s ease forwards;
}
@keyframes bd3SatsFloat {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-10px); }
}
body.dark .bd3-sats { color: #F4EFE4; }

/* ---- run signs: who's working, on what, doing what ---- */
.bd3-run-note.bd3-run-sign {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 13px 20px 14px;
  border-radius: 13px;
  border: 1px solid rgba(21,18,16, 0.12);
  box-shadow: 0 26px 54px -20px rgba(21,18,16, 0.45);
}
.bd3-run-sign i {
  font-family: "JetBrains Mono", monospace;
  font-style: normal;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #DF5C58;
}
.bd3-run-note.bd3-run-sign b {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-weight: 400;
  font-size: 27px;
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: none;
  color: #151210;
}
.bd3-run-note.bd3-run-sign span {
  font-family: "Inter", sans-serif;
  font-size: 11.5px;
  color: rgba(21,18,16, 0.62);
}

/* ---- the sign's live log: activity ticks streaming in ---- */
.bd3-run-note .bd3-sign-log {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 6px;
  padding-top: 7px;
  border-top: 1px solid rgba(21,18,16, 0.08);
  min-height: 0;
}
.bd3-run-note .bd3-sign-log:empty {
  display: none;
}
.bd3-run-note .bd3-sign-log em {
  font-family: "JetBrains Mono", monospace;
  font-style: normal;
  font-size: 9.5px;
  letter-spacing: 0.02em;
  color: rgba(21,18,16, 0.55);
  padding-left: 13px;
  position: relative;
  opacity: 0;
  transform: translateY(3px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.bd3-run-note .bd3-sign-log em.in {
  opacity: 1;
  transform: translateY(0);
}
.bd3-run-note .bd3-sign-log em::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #2E8C5F;
}

/* ==================================================================== */
/*  DARK V2 — the builder's resting face.                               */
/*  Near-black void, glass surfaces, one brand gradient (coral → gold   */
/*  → steel) spent sparingly: eyebrows, the live edge, the primary     */
/*  action. Hairlines at 9% white, a 6% top-edge highlight on every     */
/*  pane, glow reserved for what is alive right now.                    */
/* ==================================================================== */
.bd3-overlay.bg-dark {
  --bd3g: linear-gradient(110deg, #DF5C58 0%, #E8A33D 48%, #B9BFC7 100%);
  --bd3-glass: rgba(11,9,7, 0.97);
  --bd3-hairline: rgba(243, 238, 228, 0.12);
  --bd3-highlight: inset 0 1px 0 rgba(243, 238, 228, 0.07);
}
@keyframes bd3-grad-pan {
  from { background-position: 0% 50%; }
  to   { background-position: 200% 50%; }
}

/* ---- chat: the copilot speaks from glass ---- */
.bd3-overlay.bg-dark .bd3-msg-ai {
  background: var(--bd3-glass);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid var(--bd3-hairline);
  box-shadow: var(--bd3-highlight), 0 24px 54px -26px rgba(0, 0, 0, 0.85);
  color: rgba(240,236,227, 0.9);
}
.bd3-overlay.bg-dark .bd3-msg-user {
  background:
    linear-gradient(rgba(26,21,18, 0.92), rgba(26,21,18, 0.92)) padding-box,
    var(--bd3g) border-box;
  border: 1px solid transparent;
  color: #F2EEE5;
  box-shadow: 0 18px 40px -22px rgba(223,92,88, 0.45);
}
.bd3-overlay.bg-dark .bd3-msg-eb {
  background: var(--bd3g);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: bd3-grad-pan 9s linear infinite;
  opacity: 0.92;
}
.bd3-overlay.bg-dark .bd3-msg-stall {
  border-left: none;
  border: 1px solid rgba(232,163,61, 0.35);
  box-shadow: var(--bd3-highlight), 0 0 34px -14px rgba(232,163,61, 0.5);
}
.bd3-overlay.bg-dark .bd3-msg-stall .bd3-msg-eb {
  background: linear-gradient(90deg, #E8A33D, #DF5C58);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: none;
}
.bd3-overlay.bg-dark .bd3-doc-card {
  position: relative;
  overflow: hidden;
}
.bd3-overlay.bg-dark .bd3-doc-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--bd3g);
  background-size: 200% 100%;
  animation: bd3-grad-pan 7s linear infinite;
}
.bd3-overlay.bg-dark .bd3-chat-in {
  background: var(--bd3-glass);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid var(--bd3-hairline);
  box-shadow: var(--bd3-highlight), 0 16px 40px -22px rgba(0, 0, 0, 0.8);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.bd3-overlay.bg-dark .bd3-chat.typing .bd3-chat-in,
.bd3-overlay.bg-dark .bd3-chat-in:focus-within {
  background:
    linear-gradient(rgba(20,15,12, 0.85), rgba(20,15,12, 0.85)) padding-box,
    var(--bd3g) border-box;
  border: 1px solid transparent;
  box-shadow: 0 0 0 4px rgba(223,92,88, 0.10), 0 16px 44px -20px rgba(0, 0, 0, 0.85);
}
.bd3-overlay.bg-dark .bd3-chat-send {
  background: var(--bd3g);
  color: rgba(12, 12, 14, 0.85);
}
.bd3-overlay.bg-dark .bd3-chat.typing .bd3-chat-send,
.bd3-overlay.bg-dark .bd3-chat-send.go {
  box-shadow: 0 0 20px -4px rgba(223,92,88, 0.65);
  color: #101014;
}
.bd3-overlay.bg-dark .bd3-chat-btn {
  background: var(--bd3-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--bd3-hairline);
}

/* ---- agent tags: dark glass, the color lives in the dot's glow ---- */
.bd3-overlay.bg-dark .bd3-tag-chip {
  background: rgba(11,9,7, 0.97) !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 10px 28px -14px rgba(0, 0, 0, 0.85) !important;
}
.bd3-overlay.bg-dark .bd3-tag.bd3-live .bd3-tag-chip {
  border-color: rgba(255, 255, 255, 0.22) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 26px -8px rgba(223,92,88, 0.55) !important;
}
.bd3-overlay.bg-dark .bd3-tag-role { color: rgba(255, 255, 255, 0.55) !important; }




/* ---- run signs + the web sweep: glass with a live edge ---- */
.bd3-overlay.bg-dark .bd3-run-note {
  background: var(--bd3-glass);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid var(--bd3-hairline);
  box-shadow: var(--bd3-highlight), 0 20px 48px -24px rgba(0, 0, 0, 0.85);
  color: rgba(240,236,227, 0.9);
}
.bd3-overlay.bg-dark .bd3-run-note b { color: #F2EEE5; }
.bd3-overlay.bg-dark .bd3-run-note span { color: rgba(255, 255, 255, 0.6); }
.bd3-overlay.bg-dark .bd3-web {
  background: var(--bd3-glass);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid var(--bd3-hairline);
  box-shadow: var(--bd3-highlight), 0 22px 52px -24px rgba(0, 0, 0, 0.85);
}
.bd3-overlay.bg-dark .bd3-web-hd b { color: #F2EEE5; }
.bd3-overlay.bg-dark .bd3-web-hd i {
  background: linear-gradient(90deg, #DF5C58, #E8A33D);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.bd3-overlay.bg-dark .bd3-web-q { color: rgba(255, 255, 255, 0.72); }
.bd3-overlay.bg-dark .bd3-web-row b { color: rgba(255, 255, 255, 0.85); }
.bd3-overlay.bg-dark .bd3-web-row span { color: rgba(255, 255, 255, 0.55); }

/* ---- popups + toast + template picker: one glass language ---- */
.bd3-overlay.bg-dark .bd3-pop {
  background: rgba(18,14,11, 0.82);
  backdrop-filter: blur(26px) saturate(1.5);
  -webkit-backdrop-filter: blur(26px) saturate(1.5);
  border: 1px solid var(--bd3-hairline);
  box-shadow: var(--bd3-highlight), 0 40px 90px -30px rgba(0, 0, 0, 0.9);
}
.bd3-overlay.bg-dark .bd3-tpl-pop {
  background: rgba(18,14,11, 0.86);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--bd3-hairline);
}
.bd3-overlay.bg-dark .bd3-pill.primary {
  background:
    linear-gradient(rgba(21,16,13, 0.25), rgba(21,16,13, 0.25)) padding-box,
    var(--bd3g) border-box;
  border: 1px solid transparent;
  color: #F5F1E8;
  box-shadow: 0 0 26px -8px rgba(223,92,88, 0.5);
}

/* ---- the chapter transport: glass rail, gradient marks the act ---- */
.bd3-overlay.bg-dark .bd3-chap-btn,
.bd3-overlay.bg-dark .bd3-chap {
  background: var(--bd3-glass);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  border-color: var(--bd3-hairline);
  box-shadow: var(--bd3-highlight), 0 18px 44px -22px rgba(0, 0, 0, 0.8);
}





/* ==================================================================== */
/*  DARK V2b — the demo owns the room.                                  */
/* ==================================================================== */

/* Versions rail and layer breadcrumbs retired from the demo */
#bd3Overlay .bd3-vers,
#bd3Overlay .bd3-layers { display: none !important; }

/* The user's line is unmistakably the user's: solid coral, white text */
.bd3-overlay.bg-dark .bd3-msg-user {
  background: linear-gradient(135deg, #E4736F 0%, #DF5C58 45%, #C74F4B 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
  font-weight: 500;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 14px 34px -16px rgba(223,92,88, 0.65);
}

/* ---- popups, fully at home on the ink floor ---- */
.bd3-overlay.bg-dark .bd3-scrim { background: rgba(6, 6, 9, 0.55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.bd3-overlay.bg-dark .bd3-pop-ttl b { color: #F2EEE5; }
.bd3-overlay.bg-dark .bd3-pop-x { color: rgba(255, 255, 255, 0.55); }
.bd3-overlay.bg-dark .bd3-pop-x:hover { color: #FFFFFF; background: rgba(255, 255, 255, 0.08); }
.bd3-overlay.bg-dark .bd3-mkt-row {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.bd3-overlay.bg-dark .bd3-mkt-row:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
}
.bd3-overlay.bg-dark .bd3-mkt-nm { color: #F2EEE5; }
.bd3-overlay.bg-dark .bd3-mkt-role { color: rgba(255, 255, 255, 0.55); }
.bd3-overlay.bg-dark .bd3-mkt-lic { color: rgba(255, 255, 255, 0.45); }
.bd3-overlay.bg-dark .bd3-mkt-price { color: #E8A33D; }
.bd3-overlay.bg-dark .bd3-mkt-plug { color: rgba(255, 255, 255, 0.5); }
.bd3-overlay.bg-dark .bd3-cost-row,
.bd3-overlay.bg-dark .bd3-cost-row2 { border-color: rgba(255, 255, 255, 0.07); }
.bd3-overlay.bg-dark .bd3-cost-name { color: rgba(255, 255, 255, 0.85); }
.bd3-overlay.bg-dark .bd3-cost-cur { color: #F2EEE5; }
.bd3-overlay.bg-dark .bd3-cost-sum b { color: #F2EEE5; }
.bd3-overlay.bg-dark .bd3-cost-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
}
.bd3-overlay.bg-dark .bd3-cost-pill:hover { border-color: rgba(255, 255, 255, 0.24); color: #FFFFFF; }
.bd3-overlay.bg-dark .bd3-simp-opt {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.bd3-overlay.bg-dark .bd3-simp-opt:hover { border-color: rgba(255, 255, 255, 0.18); }
.bd3-overlay.bg-dark .bd3-simp-nm { color: #F2EEE5; }
.bd3-overlay.bg-dark .bd3-simp-delta { color: #6BBD90; }
.bd3-overlay.bg-dark .bd3-pop-apply {
  background:
    linear-gradient(rgba(21,16,13, 0.2), rgba(21,16,13, 0.2)) padding-box,
    linear-gradient(110deg, #DF5C58, #E8A33D, #B9BFC7) border-box;
  border: 1px solid transparent;
  color: #F5F1E8;
}
.bd3-overlay.bg-dark .bd3-seg { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.1); }
.bd3-overlay.bg-dark .bd3-seg-b { color: rgba(255, 255, 255, 0.6); }
.bd3-overlay.bg-dark .bd3-seg-b.on { background: rgba(255, 255, 255, 0.12); color: #FFFFFF; }
.bd3-overlay.bg-dark .bd3-toast {
  background: rgba(18,14,11, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #F2EEE5;
}

/* ==================================================================== */
/*  MARKETING PAGE — the demo IS the site.                              */
/* ==================================================================== */

/* menus retired: the corner button, the orb strip — but the chapters
   themselves live on: the Running demo pill is the door, and the panel
   drops from it like any good menu */
#bd3Overlay .bd3-chap-btn,
#bd3Overlay .bd3-fab { display: none !important; }

/* the pill is a button now — clickable once the reel is up, chevron out */
#bd3Overlay.open .bd3-toplive {
  pointer-events: auto;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
#bd3Overlay .bd3-toplive:hover { border-color: rgba(255, 255, 255, 0.3); }
#bd3Overlay .bd3-toplive::after {
  content: '';
  width: 6px;
  height: 6px;
  margin-left: 3px;
  margin-top: -3px;
  border-right: 1.6px solid rgba(242, 238, 229, 0.7);
  border-bottom: 1.6px solid rgba(242, 238, 229, 0.7);
  transform: rotate(45deg);
  transition: transform 0.18s ease, margin-top 0.18s ease;
}
#bd3Overlay .bd3-toplive.bd3-live-open::after {
  transform: rotate(-135deg);
  margin-top: 3px;
}
/* an open menu deserves a still anchor — the pulse pauses, but the
   animation LIST must never change: swapping it out restarts the 5.7s
   delayed entrance, and the pill vanishes for the length of the delay */
#bd3Overlay.open .bd3-toplive.bd3-live-open {
  animation-play-state: paused;
  border-color: rgba(255, 255, 255, 0.3);
}

/* the dropdown: same panel, new berth — centered under the pill */
#bd3Overlay .bd3-chap {
  left: 50%;
  translate: -50% 0;
  top: 42px;
  z-index: 41;               /* rides above the pill's own layer */
  max-height: min(72vh, 560px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* on the ink floor the panel is ink glass — the type must rise to meet it
   (the corner picker predates this skin; its dark set was keyed to
   body.dark and never covered the overlay's own bg-dark state) */
.bd3-overlay.bg-dark .bd3-chap-t { color: #F4EFE4; }
.bd3-overlay.bg-dark .bd3-chap-it { color: rgba(244, 239, 228, 0.75); }
.bd3-overlay.bg-dark .bd3-chap-it em { color: rgba(244, 239, 228, 0.4); }
.bd3-overlay.bg-dark .bd3-chap-it::before { background: rgba(255, 255, 255, 0.14); }
.bd3-overlay.bg-dark .bd3-chap-dot { background: #1A1A1C; border-color: rgba(255, 255, 255, 0.4); }
.bd3-overlay.bg-dark .bd3-chap-it:hover { background: rgba(255, 255, 255, 0.07); color: #F4EFE4; }
.bd3-overlay.bg-dark .bd3-chap-it:hover .bd3-chap-dot { border-color: #F4EFE4; }
.bd3-overlay.bg-dark .bd3-chap-it.cur { color: #F4EFE4; }
.bd3-overlay.bg-dark .bd3-chap-it.cur .bd3-chap-dot { background: #4FCE9B; border-color: #4FCE9B; }
.bd3-overlay.bg-dark .bd3-chap-it.cur em { color: #4FCE9B; }

/* the shelf tour: while the camera is in flight between fields the
   nameplates rest — a fast pan under two dozen reprojecting tags reads
   as flicker (the atlas hides its tags for the same reason). The plate
   captions identify each field from the air. */
#bd3Overlay.bd3-shelf-tour .bd3-tag { transition: opacity 0.25s ease; }
#bd3Overlay.bd3-shelf-flying .bd3-tag { opacity: 0 !important; }
/* solo: while dwelling on one clone, ONLY that crew's callouts speak —
   everything else on the shelf holds its breath */
#bd3Overlay.bd3-shelf-solo .bd3-tag { opacity: 0 !important; }
/* the solo force STOPS at the crowd line: a tag the collision solver hid
   stays hidden — its transform is parked, and forcing it visible would
   print it over whoever owns that spot now */
#bd3Overlay.bd3-shelf-solo .bd3-tag.bd3-tag-solo:not(.bd3-tag-crowd) { opacity: 1 !important; }


/* ---- the floor color selector: a ring swatch living in the network bar,
   left of About. The pop opens UPWARD from the bar. ---- */
.bd3-floormenu {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-right: 10px;
}
.bd3-floorbtn {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.bd3-floorbtn, .bd3-floor-sw { cursor: pointer !important; }  /* host-page button resets lose */
/* the circle is 24px but the hand aims wider — an invisible halo makes
   the hover honest: anywhere within ~8px of the rim counts as "on it" */
.bd3-floorbtn { position: relative; }
.bd3-floorbtn::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 999px;
}
.bd3-floorbtn:hover { border-color: rgba(255, 255, 255, 0.36); transform: scale(1.06); }
.bd3-floor-sw { position: relative; }
.bd3-floor-sw::after { content: ''; position: absolute; inset: -5px; border-radius: 999px; }
.bd3-floorbtn[aria-expanded="true"] { border-color: rgba(255, 255, 255, 0.36); }
.bd3-floorbtn-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25);
  transition: background 0.25s ease;
}
.bd3-floor-pop {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(6px) scale(0.96);
  transform-origin: bottom center;
  display: grid;
  grid-template-columns: repeat(6, 19px);
  gap: 8px;
  padding: 12px;
  background: rgba(11, 9, 7, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 22px 44px -18px rgba(10, 10, 10, 0.7);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}
.bd3-floor-pop.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}
.bd3-floor-sw {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2) inset;
  padding: 0;
  cursor: pointer;
  transition: transform 0.14s var(--ease-out, ease), box-shadow 0.14s var(--ease-out, ease);
}
.bd3-floor-sw:hover { transform: translateY(-1px) scale(1.12); }
.bd3-floor-sw.on {
  box-shadow: 0 0 0 2px rgba(11, 9, 7, 1), 0 0 0 3.5px #F2EEE5;
  transform: scale(1.05);
}
@media (prefers-reduced-motion: reduce) {
  .bd3-floorbtn, .bd3-floor-pop, .bd3-floor-sw, .bd3-floorbtn-dot { transition: none; }
}


/* ---- the closing card: the demo's last word, dead center ---- */
.bd3-fin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.94);
  display: flex;
  align-items: center;
  gap: 13px;
  background: #151210;
  color: #F1EBDE;
  border-radius: 16px;
  padding: 19px 32px 20px 26px;
  box-shadow: 0 22px 60px rgba(21,18,16, 0.30);
  opacity: 0;
  pointer-events: none;
  z-index: 60;
  transition:
    opacity 0.36s ease,
    transform 0.36s cubic-bezier(0.2, 0.9, 0.25, 1.12);
}
.bd3-fin b {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-size: 27px;
  line-height: 1;
  letter-spacing: 0.01em;
}
.bd3-fin i {
  font-style: normal;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  border-radius: 999px;
  background: #2E8C5F;
  color: #F1EBDE;
  display: grid;
  place-items: center;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 14px;
}
.bd3-fin.on {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.bd3-fin.bd3-fin-out {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.985);
  transition:
    opacity 0.62s ease,
    transform 0.62s ease;
}
@media (prefers-reduced-motion: reduce) {
  .bd3-fin, .bd3-fin.bd3-fin-out { transition: none; }
}



/* ---- the accordion: phone navigation, top right. Hidden above 560px —
   the network bar carries the links there. ---- */
.bd3-acc { display: none; }
.bd3-acc-btn {
  position: absolute;
  top: 6px;
  right: 10px;
  z-index: 41;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #0B0907;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #F2EEE5;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.bd3-acc-btn svg { width: 15px; height: 15px; }
.bd3-acc-btn[aria-expanded="true"] { border-color: rgba(255, 255, 255, 0.34); }
/* the HUD is pointer-events:none — every control opts in, and so do we */
#bd3Overlay.open .bd3-acc-btn { pointer-events: auto; }
#bd3Overlay.open .bd3-acc-panel.show { pointer-events: auto; }
.bd3-acc-panel {
  position: absolute;
  top: 46px;
  right: 10px;
  z-index: 41;
  display: flex;
  flex-direction: column;
  min-width: 200px;
  padding: 8px;
  background: rgba(11, 9, 7, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 22px 44px -18px rgba(10, 10, 10, 0.7);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px) scale(0.97);
  transform-origin: top right;
  transition: opacity 0.18s ease, transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}
.bd3-acc-panel.show { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }
.bd3-acc-panel a {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 14px;
  border-radius: 9px;
  background: linear-gradient(110deg, #FFD98A, #FF9C60 55%, #FF8AA8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}
.bd3-acc-panel a:active { filter: brightness(1.2); }
@media (prefers-reduced-motion: reduce) {
  .bd3-acc-panel { transition: none; }
}

/* ---- the floating headline ---- */
.bd3-hero {
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  transform: translateY(-50%);
  z-index: 2;
  text-align: center;
  padding: 0 1.2vw;
  pointer-events: none;
}
/* one line, end to end — a type wall across the top of the frame.
   Medium weight and tight tracking keep it sharp, never chunky. */
.bd3-hero-line {
  display: block;
  white-space: nowrap;
  font-family: "Inter", "Helvetica Neue", sans-serif;
  font-weight: 500;
  font-size: 7.5vw;                /* sized so the line meets both edges */
  line-height: 1;
  letter-spacing: -0.03em;
  color: #F2EEE5;
  text-shadow: 0 10px 70px rgba(0, 0, 0, 0.5);
}
.bd3-hero-btc {
  font-style: normal;
  font-weight: 600;
  background: linear-gradient(100deg, #E9C46A 5%, #DF5C58 60%, #98A6CF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 8px 44px rgba(223,92,88, 0.25));
}
@media (max-width: 720px) {
  .bd3-hero-line { white-space: normal; font-size: 7.4vw; }
}
/* the second line of the intro: STARTING DEMO, large, letters rising one
   by one out of a soft blur while the brand gradient pans through them */
.bd3-hero-sub {
  display: block;
  margin-top: 4vh;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 700;
  font-size: clamp(17px, 2.3vw, 30px);
  letter-spacing: 0.42em;
  text-indent: 0.42em;      /* balances the trailing tracked gap */
}
.bd3-hero-sub u {
  display: inline-block;
  text-decoration: none;
  background: linear-gradient(100deg, #DF5C58, #EE8A86 45%, #DF5C58 90%, #DF5C58);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  transform: translateY(14px);
  filter: blur(5px);
  transition: opacity 0.55s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), filter 0.55s ease;
  animation: bd3-hero-pan 3s linear infinite;
}
.bd3-hero.go .bd3-hero-sub u { opacity: 1; transform: translateY(0); filter: blur(0); }
.bd3-hero-line { opacity: 0; transform: translateY(10px); filter: blur(6px);
  transition: opacity 0.7s ease, transform 0.75s cubic-bezier(0.22, 1, 0.36, 1), filter 0.7s ease; }
.bd3-hero.go .bd3-hero-line { opacity: 1; transform: translateY(0); filter: blur(0); }
@keyframes bd3-hero-pan { to { background-position: -300% 0; } }
/* the ellipsis: three dots breathing in sequence once the letters land */
.bd3-hero-dot { letter-spacing: 0.14em; }
.bd3-hero.go .bd3-hero-dot {
  animation: bd3-hero-pan 3s linear infinite, bd3-dots 1.35s ease-in-out infinite;
}
@keyframes bd3-dots { 0%, 15% { opacity: 0.1; } 45% { opacity: 1; } 75%, 100% { opacity: 0.1; } }
@media (prefers-reduced-motion: reduce) {
  .bd3-hero-line, .bd3-hero-sub u { transition: none; animation: none; opacity: 1; transform: none; filter: none; }
}

/* ---- the thin black marketing bar ---- */
.bd3-mkbar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 48px;
  z-index: 34;   /* above every popup scrim (they sit at 30) — the network
                    bar stays live even while a selector or the publish
                    card is up; its plinth is opaque, so no scrim shows */
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 18px;
  /* solid black plinth — no glass: nothing meaningful sits behind it,
     and sampling the moving canvas edge was one more shimmer source */
  background: #050507;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  pointer-events: auto;
}
.bd3-mkbar-logo {
  height: 19px;
  width: auto;
  margin-right: 18px;
  /* the brand mark ships as black pixels — flip it to bone for the dark bar */
  filter: brightness(0) invert(1) opacity(0.92);
}

.bd3-mkbar-live-dot {
  position: relative;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #43B27E;
  box-shadow: 0 0 10px 1px rgba(67,178,126, 0.65);
  animation: bd3-live-beat 1.8s ease-in-out infinite;
}
@keyframes bd3-live-beat {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.18); }
}
@media (prefers-reduced-motion: reduce) {
  .bd3-mkbar-live { animation: none; color: #B8F5DB; background-image: none; }
  .bd3-mkbar-live-dot,
  .bd3-mkbar-live-dot::before,
  .bd3-mkbar-live-dot::after { animation: none; }
}

.bd3-mkbar-spacer { flex: 1; }

/* nav links share the CTA's warm gradient, drawn in the text */
.bd3-mkbar-link {
  font-family: "Inter", sans-serif;
  font-size: 13.75px;
  font-weight: 600;
  text-decoration: none;
  padding: 7px 13px;
  border-radius: 8px;
  background: linear-gradient(110deg, #FFD98A, #FF9C60 55%, #FF8AA8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 1;
  transition: filter 0.15s ease;
}
.bd3-mkbar-link:hover { filter: brightness(1.12); }

/* the centered call to action */
.bd3-mkbar-cta {
  font-family: "Inter", sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  color: #120C08;
  text-decoration: none;
  padding: 9px 20px;
  border-radius: 999px;
  background: linear-gradient(110deg, #F2B44C, #E86A38 58%, #D0577A);
  box-shadow: 0 0 26px -6px rgba(232,106,56, 0.6);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.bd3-mkbar-cta:hover { transform: translateY(-1px); box-shadow: 0 0 34px -4px rgba(232,106,56, 0.8); }

/* ---- the sats counter, worth looking at ---- */
.bd3-overlay.bg-dark .bd3-runcost {
  background:
    linear-gradient(rgba(11,9,7, 0.96), rgba(11,9,7, 0.96)) padding-box,
    linear-gradient(110deg, rgba(232,163,61, 0.9), rgba(223,92,88, 0.55), rgba(185,191,199, 0.35)) border-box;
  border: 1px solid transparent;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 22px 54px -22px rgba(0, 0, 0, 0.9);
  padding: 13px 21px;
}
.bd3-overlay.bg-dark .bd3-rc-odo,
.bd3-overlay.bg-dark .bd3-rc-w { color: #E8A33D; font-weight: 700; }
.bd3-overlay.bg-dark .bd3-rc-unit { color: rgba(232,163,61, 0.6); }
.bd3-overlay.bg-dark .bd3-runcost.done {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 44px -8px rgba(232,163,61, 0.55), 0 22px 54px -22px rgba(0, 0, 0, 0.9);
}

/* ---- the payment line on every working agent's sign ---- */
.bd3-mark {
  align-self: center;
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border-radius: 4.5px;
  font: 700 8.5px/1 "Inter", sans-serif;
  color: #FFFFFF;
}
.bd3-mark-anthropic { background: #D8551F; }
.bd3-mark-openai    { background: #10A37F; }
.bd3-mark-google    { background: #4285F4; }
.bd3-mark-deepseek  { background: #4D6BFE; }
.bd3-mark-meta      { background: #5865F2; }

/* the Layers + Versions pills join their panels in retirement */
#bd3Overlay .bd3-lenswrap { display: none !important; }

/* ==================================================================== */
/*  v122 — sats-first demo, bolder user voice.                          */
/* ==================================================================== */

/* what the user types reads loud — heavier weight, brighter ink */
.bd3-msg-user { font-weight: 600; }
.bd3-overlay.bg-dark .bd3-msg-user {
  font-weight: 700;
  letter-spacing: -0.005em;
  color: #FFFFFF;
}

/* the compose chip: model mark + name + fee, floating on each agent as it
   lands. Same money-gold as the meter; glides up and fades. */
.bd3-buildcost {
  position: absolute;
  left: 0; top: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 11px;
  background: rgba(14, 14, 19, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 2px solid var(--bc, #7C74D8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 18px 40px -18px rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  font-family: "JetBrains Mono", monospace;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(6px) scale(0.96);
  transition: opacity 0.28s ease, transform 0.34s cubic-bezier(0.22, 1, 0.32, 1);
  pointer-events: none;
}
.bd3-buildcost.in { opacity: 1; transform: none; }
.bd3-buildcost b {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #FFFFFF;
}
.bd3-buildcost em {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  color: #F2B44C;
  margin-left: 2px;
}
.bd3-buildcost u {
  text-decoration: none;
  font-size: 8.5px;
  color: rgba(245, 199, 102, 0.6);
}

/* the masthead always rides in front of the demo */
#bd3Overlay .bd3-hero { z-index: 40; }

/* Build — the page you're on: gradient text stays, a quiet pill marks it */
.bd3-mkbar-link.bd3-mkbar-on {
  opacity: 1;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(232,106,56, 0.45),
              0 0 18px -6px rgba(232,106,56, 0.5);
}

/* the field rides a touch higher so the crew never hides behind the bar */
#bd3Overlay .bd3-stage { transform: translateY(-30px); }


/* ==================================================================== */
/*  the marketplace pick, unmistakable                                  */
/* ==================================================================== */
.bd3-mkt-row { position: relative; }
.bd3-mkt-row.picked {
  border-color: rgba(67,178,126, 0.8) !important;
  box-shadow: 0 0 0 1.5px rgba(67,178,126, 0.8), 0 0 28px -6px rgba(67,178,126, 0.6) !important;
  background: rgba(67,178,126, 0.1) !important;
}
.bd3-mkt-row.picked::after {
  content: '\2713';
  position: absolute;
  top: 50%; right: -9px;
  margin-top: -11px;               /* centered on the row edge — clear of the title bar */
  width: 22px; height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #43B27E;
  color: #070F0B;
  font: 700 12px/1 "Inter", sans-serif;
  box-shadow: 0 0 16px -2px rgba(67,178,126, 0.8);
  animation: bd3-pick-pop 0.34s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes bd3-pick-pop {
  from { transform: scale(0.3); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
/* once decided, the others step back */
.bd3-mkt-decided .bd3-mkt-row:not(.picked) { opacity: 0.32; }

/* the intro says its line and leaves when the field is ready */
#bd3Overlay.bd3-introdone .bd3-hero {
  animation: bd3-hero-exit 0.55s ease forwards;
}
@keyframes bd3-hero-exit {
  from { opacity: 1; transform: translateY(-50%); }
  to   { opacity: 0; transform: translateY(calc(-50% - 14px)); visibility: hidden; }
}

/* after the slogan leaves, a small live signal takes the top edge —
   centered, hugging the border, same beacon as the bar */
.bd3-toplive {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  color: #F2EEE5;
  padding: 4px 12px 4px 9px;
  border-radius: 999px;
  background: #0B0907;   /* ink pill; the TE-orange dot carries the pulse */
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 20px -6px rgba(223,92,88, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  pointer-events: none;
  opacity: 0;
}
/* one motion, felt not watched: the whole pill pulses — glow swelling
   and easing like a heartbeat, no bands of light sliding across. */

@keyframes bd3-toplive-pulse {
  0%, 100% {
    box-shadow: 0 0 14px -6px rgba(223,92,88, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform: translateX(-50%) scale(1);
  }
  50% {
    box-shadow: 0 0 30px -2px rgba(223,92,88, 0.9), 0 0 56px -12px rgba(223,92,88, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform: translateX(-50%) scale(1.03);
  }
}
.bd3-toplive .bd3-mkbar-live-dot {
  background: #DF5C58;
  box-shadow: 0 0 8px 2px rgba(223,92,88, 0.75);
  animation: bd3-toplive-breathe 1.7s ease-in-out infinite;
}
.bd3-toplive .bd3-mkbar-live-dot::before,
.bd3-toplive .bd3-mkbar-live-dot::after { display: none; }
@keyframes bd3-toplive-breathe {
  0%, 100% { transform: scale(1);    box-shadow: 0 0 5px 1px rgba(255, 255, 255, 0.5); }
  50%      { transform: scale(1.22); box-shadow: 0 0 11px 2px rgba(255, 255, 255, 0.85); }
}
@media (prefers-reduced-motion: reduce) {
  .bd3-toplive::before,
  .bd3-toplive .bd3-mkbar-live-dot { animation: none; }
}

/* ==================================================================== */
/*  simplify cards: the graph is the icon                               */
/* ==================================================================== */
.bd3-simp-opt {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: stretch;
}
.bd3-simp-g {
  width: 100%;
  height: 96px;
  display: block;
}
.bd3-simp-g line { stroke: rgba(21,18,16, 0.2); stroke-width: 1.4; }
.bd3-simp-g .g-cap { fill: rgba(21,18,16, 0.28); }
.bd3-simp-g .g-keep { fill: #151210; }
.bd3-simp-g .g-cut { fill: none; stroke: #DF5C58; stroke-width: 1.5; opacity: 0.6; }
.bd3-simp-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.bd3-simp-keep {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(21,18,16, 0.5);
}
/* selected — same language as the marketplace pick */
.bd3-simp-opt.picked {
  border-color: rgba(67,178,126, 0.8) !important;
  box-shadow: 0 0 0 1.5px rgba(67,178,126, 0.8), 0 0 28px -6px rgba(67,178,126, 0.6) !important;
  background: rgba(67,178,126, 0.1) !important;
}
.bd3-simp-opt.picked::after {
  content: '\2713';
  position: absolute;
  top: 50%; right: -9px;
  margin-top: -11px;               /* centered on the card edge — clear of the title bar */
  width: 22px; height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #43B27E;
  color: #070F0B;
  font: 700 12px/1 "Inter", sans-serif;
  box-shadow: 0 0 16px -2px rgba(67,178,126, 0.8);
  animation: bd3-pick-pop 0.34s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.bd3-simp-decided .bd3-simp-opt:not(.picked) { opacity: 0.32; }
/* dark view */
.bd3-overlay.bg-dark .bd3-simp-g line { stroke: rgba(255, 255, 255, 0.22); }
.bd3-overlay.bg-dark .bd3-simp-g .g-cap { fill: rgba(255, 255, 255, 0.3); }
.bd3-overlay.bg-dark .bd3-simp-g .g-keep { fill: #F2EEE5; }
.bd3-overlay.bg-dark .bd3-simp-keep { color: rgba(255, 255, 255, 0.5); }
.bd3-overlay.bg-dark .bd3-simp-nm { color: #F2EEE5; }

/* ==================================================================== */
/*  PUBLISH — the closing ceremony. The field steps aside; four acts.   */
/* ==================================================================== */
.bd3-pub {
  position: absolute;
  inset: 0;
  z-index: 30;                      /* over the stage, under the masthead */
  display: grid;
  place-items: center;
  /* a scrim like the other selectors — the green field stays in view */
  background: rgba(21,18,16, 0.24);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.42s ease;
}
.bd3-pub.in { opacity: 1; }
.bd3-pub-card {
  width: min(560px, calc(100vw - 48px));
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 26px 20px;
  border-radius: 20px;
  background: rgba(11,9,7, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 44px 90px -36px rgba(0, 0, 0, 0.9);
  transform: translateY(10px) scale(0.985);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.32, 1);
}
.bd3-pub.in .bd3-pub-card { transform: none; }

.bd3-pub-hd {
  display: grid;
  grid-template-columns: 40px 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
}
.bd3-pub-ava { grid-row: 1 / 3; width: 40px; height: 40px; image-rendering: pixelated; }
.bd3-pub-eb {
  font: 700 10.5px/1 "JetBrains Mono", monospace;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(232,163,61, 0.9);
}
.bd3-pub-hd > b {
  font-family: "Instrument Serif", serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.05;
  color: #F2EEE5;
  margin-top: 4px;
}

/* ---- the step rail ---- */
.bd3-pub-steps {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.bd3-pub-steps li {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 5px 10px;
  border-radius: 11px;
  opacity: 0.38;
  transition: opacity 0.3s ease, background 0.3s ease;
}
.bd3-pub-steps li.on   { opacity: 1; background: rgba(255, 255, 255, 0.05); }
.bd3-pub-steps li.done { opacity: 0.85; }
.bd3-pub-tick {
  flex: 0 0 auto;
  width: 17px; height: 17px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  display: grid;
  place-items: center;
  font: 700 9px/1 "Inter", sans-serif;
  color: transparent;
  transition: all 0.3s ease;
}
.bd3-pub-steps li.on .bd3-pub-tick {
  position: relative;
  border-color: rgba(232,163,61, 0.35);
  box-shadow: 0 0 14px -2px rgba(232,163,61, 0.8);
  animation: bd3-pub-tickpulse 1.1s ease-in-out infinite;
}
.bd3-pub-steps li.on .bd3-pub-tick::after {
  content: '';
  position: absolute;
  inset: -3.5px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: #E8A33D;
  border-right-color: rgba(232,163,61, 0.45);
  animation: bd3-pub-tickspin 0.7s linear infinite;
}
@keyframes bd3-pub-tickspin { to { transform: rotate(360deg); } }
@keyframes bd3-pub-tickpulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.15); }
}
.bd3-pub-steps li.done .bd3-pub-tick {
  border-color: #43B27E;
  background: #43B27E;
  color: #070F0B;
  animation: none;
}
.bd3-pub-steps li.done .bd3-pub-tick::before { content: '\2713'; }
.bd3-pub-steps li span { display: flex; flex-direction: column; gap: 1px; }
.bd3-pub-steps li span b {
  font: 600 13px/1.25 "Inter", sans-serif;
  color: #F2EEE5;
}
.bd3-pub-steps li span em {
  font: 400 11px/1.3 "Inter", sans-serif;
  font-style: normal;
  color: rgba(242,238,229, 0.55);
}

/* ---- the act stage ---- */
.bd3-pub-stage {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 16px 12px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.4s cubic-bezier(0.22, 1, 0.32, 1);
}
.bd3-pub-stage.in { opacity: 1; transform: none; }

/* act 1 — the DID */
.bd3-pub-did {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: #E8A33D;
}
.bd3-pub-key { width: 15px; height: 15px; color: rgba(232,163,61, 0.8); }
.bd3-pub-did code { letter-spacing: 0.02em; }
.bd3-pub-caret {
  width: 7px; height: 15px;
  background: rgba(232,163,61, 0.9);
  animation: bd3-pub-caret 0.85s steps(1) infinite;
}
@keyframes bd3-pub-caret { 50% { opacity: 0; } }
.bd3-pub-seal {
  font: 700 10.5px/1 "JetBrains Mono", monospace;
  letter-spacing: 0.08em;
  color: #070F0B;
  background: #43B27E;
  padding: 6px 13px;
  border-radius: 999px;
  box-shadow: 0 0 20px -4px rgba(67,178,126, 0.7);
  opacity: 0;
  transform: scale(0.6);
}
.bd3-pub-seal.in { animation: bd3-pick-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }

/* act 2 — the royalty dial */
.bd3-pub-lic { position: relative; display: flex; align-items: center; gap: 20px; }
.bd3-pub-dial { width: 92px; height: 92px; transform: rotate(-90deg); }
.bd3-pub-dial .d-track { fill: none; stroke: rgba(255, 255, 255, 0.1); stroke-width: 7; }
.bd3-pub-dial .d-fill {
  fill: none;
  stroke: #E8A33D;
  stroke-width: 7;
  stroke-linecap: round;
  filter: drop-shadow(0 0 8px rgba(232,163,61, 0.5));
}
.bd3-pub-dial-v {
  position: absolute;
  left: 0; width: 92px;
  text-align: center;
  font-family: "JetBrains Mono", monospace;
  color: #F2EEE5;
}
.bd3-pub-dial-v b { font-size: 24px; font-weight: 700; }
.bd3-pub-dial-v i { font-style: normal; font-size: 12px; opacity: 0.6; }
.bd3-pub-lic-tx { display: flex; flex-direction: column; gap: 4px; max-width: 220px; }
.bd3-pub-lic-tx b { font: 600 14px/1.25 "Inter", sans-serif; color: #F2EEE5; }
.bd3-pub-lic-tx em { font: 400 11.5px/1.4 "Inter", sans-serif; font-style: normal; color: rgba(242,238,229, 0.55); }

/* act 3 — the royalty rail */
.bd3-pub-flow {
  display: flex;
  align-items: center;
  gap: 14px;
}
.bd3-pub-end {
  font: 600 11px/1 "JetBrains Mono", monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(242,238,229, 0.75);
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
}
.bd3-pub-rail {
  position: relative;
  width: 130px;
  height: 2px;
  background: rgba(232,163,61, 0.25);
  border-radius: 2px;
}
.bd3-pub-rail i {
  position: absolute;
  top: -2.5px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #E8A33D;
  box-shadow: 0 0 8px 1px rgba(232,163,61, 0.6);
  animation: bd3-pub-sat 1.5s linear infinite;
}
.bd3-pub-rail i:nth-child(2) { animation-delay: 0.5s; }
.bd3-pub-rail i:nth-child(3) { animation-delay: 1s; }
@keyframes bd3-pub-sat {
  from { left: -4px; opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  to   { left: 128px; opacity: 0; }
}
.bd3-pub-bolt {
  position: absolute;
  left: 50%; top: 50%;
  width: 17px; height: 17px;
  transform: translate(-50%, -50%);
  color: #E8A33D;
  filter: drop-shadow(0 0 7px rgba(232,163,61, 0.8));
  animation: bd3-pub-boltbeat 1.5s ease-in-out infinite;
}
@keyframes bd3-pub-boltbeat {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50%      { transform: translate(-50%, -50%) scale(1.18); }
}
.bd3-pub-armed { background: #E8A33D; box-shadow: 0 0 20px -4px rgba(232,163,61, 0.7); }

/* act 4 — the network ring */
.bd3-pub-net { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.bd3-pub-ring { width: 190px; height: 164px; }
.bd3-pub-ring .n-wire {
  stroke: rgba(185,191,199, 0.5);
  stroke-width: 1.2;
  stroke-dasharray: 80;
  stroke-dashoffset: 80;
  animation: bd3-pub-wire 0.55s ease forwards;
}
@keyframes bd3-pub-wire { to { stroke-dashoffset: 0; } }
.bd3-pub-ring .n-node {
  fill: #B9BFC7;
  opacity: 0;
  animation: bd3-pub-node 0.4s ease 0.3s forwards;
}
@keyframes bd3-pub-node { to { opacity: 1; } }
.bd3-pub-ring .n-core {
  stroke: rgba(255, 255, 255, 0.8);
  stroke-width: 1.5;
  filter: drop-shadow(0 0 12px rgba(139, 124, 248, 0.7));
  animation: bd3-pub-corebeat 2s ease-in-out infinite;
  transform-origin: 90px 78px;
}
@keyframes bd3-pub-corebeat {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.1); }
}
.bd3-pub-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 700 11px/1 "JetBrains Mono", monospace;
  letter-spacing: 0.1em;
  color: #070F0B;
  background: #43B27E;
  padding: 7px 15px;
  border-radius: 999px;
  box-shadow: 0 0 26px -4px rgba(67,178,126, 0.8);
  opacity: 0;
  transform: scale(0.6);
}
.bd3-pub-live.in { animation: bd3-pick-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
.bd3-pub-live i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #070F0B;
  animation: bd3-toplive-breathe 1.6s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .bd3-pub-rail i, .bd3-pub-bolt, .bd3-pub-ring .n-core,
  .bd3-pub-steps li.on .bd3-pub-tick, .bd3-pub-caret, .bd3-pub-live i { animation: none; }
  .bd3-pub-ring .n-wire { stroke-dashoffset: 0; animation: none; }
  .bd3-pub-ring .n-node { opacity: 1; animation: none; }
  .bd3-pub-seal.in, .bd3-pub-live.in { opacity: 1; transform: none; animation: none; }
}

/* the featured agent's window names its model and fee, always visible */
.bd3-pip header .bd3-pip-pay {
  margin-left: auto;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  font: 700 8.5px/1 "JetBrains Mono", monospace;
  letter-spacing: 0.07em;
  font-style: normal;
  color: rgba(255, 255, 255, 0.85);
}
.bd3-pip header .bd3-pip-pay u {
  text-decoration: none;
  color: #F2B44C;
  font-size: 9.5px;
}

/* the badge's entrance — lost in the sleek-motion rewrite, restored:
   it glides in at the top once the slogan has left */
#bd3Overlay.open .bd3-toplive {
  animation:
    bd3-toplive-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) 2.7s forwards,
    bd3-toplive-pulse 1.7s ease-in-out 6.4s infinite;
}
@keyframes bd3-toplive-in {
  from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  #bd3Overlay.open .bd3-toplive { animation: none; opacity: 1; }
}

/* the nameless log window: a slim ticker, no header card */
.bd3-run-note.bd3-run-log {
  padding: 8px 11px;
  min-width: 148px;
  max-width: 190px;
}
.bd3-run-note.bd3-run-log .bd3-sign-log { margin-top: 0; }

/* finished: the badge settles — sweep stops, beacon holds steady */
.bd3-toplive.bd3-done::before { display: none; }
.bd3-toplive.bd3-done .bd3-mkbar-live-dot { animation: none; }

/* beside the mark: the date, set quietly */
.bd3-mkbar-coming {
  margin-left: 2px;
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  font: 600 12px/1 "JetBrains Mono", monospace;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(242,238,229, 0.72);
}

/* ==================================================================== */
/*  model roster (lens card) + the store shelf (publish act 5)          */
/* ==================================================================== */
/* the store shelf: three quiet listings and Marco's card landing */
.bd3-pub-store { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.bd3-pub-store-eb {
  font: 700 8.5px/1 "JetBrains Mono", monospace;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(185,191,199, 0.85);
}
.bd3-pub-shelf { display: flex; align-items: stretch; gap: 10px; }
.bd3-pub-lst {
  width: 86px;
  min-height: 108px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 10px 6px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.03);
}
.bd3-pub-lst.dim { opacity: 0.35; }
.bd3-pub-lst.dim canvas { width: 30px; height: 30px; image-rendering: pixelated; }
.bd3-pub-lst.slot {
  border-style: dashed;
  border-color: rgba(67,178,126, 0.5);
  background: rgba(67,178,126, 0.05);
  animation: bd3-slot-breathe 1.6s ease-in-out infinite;
}
@keyframes bd3-slot-breathe {
  0%, 100% { border-color: rgba(67,178,126, 0.35); }
  50%      { border-color: rgba(67,178,126, 0.75); }
}
.bd3-pub-lst.mine {
  border-color: rgba(67,178,126, 0.8);
  background: rgba(67,178,126, 0.1);
  box-shadow: 0 0 0 1.5px rgba(67,178,126, 0.7), 0 0 30px -8px rgba(67,178,126, 0.7);
  opacity: 0;
  transform: translateY(-14px) scale(0.9);
  transition: opacity 0.4s ease, transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: none;
}
.bd3-pub-lst.mine.in { opacity: 1; transform: none; }
.bd3-pub-lst.mine canvas { width: 34px; height: 34px; image-rendering: pixelated; }
.bd3-pub-lst.mine b { font: 600 12px/1.2 "Inter", sans-serif; color: #F2EEE5; }
.bd3-pub-lst.mine em { font: 400 9.5px/1.2 "Inter", sans-serif; font-style: normal; color: rgba(242,238,229, 0.6); }
.bd3-pub-lst.mine .bd3-pub-price {
  margin-top: 4px;
  text-decoration: none;
  font: 700 12px/1 "JetBrains Mono", monospace;
  color: #F2B44C;
}
.bd3-pub-lst.mine .bd3-pub-price i { font-style: normal; font-size: 8px; opacity: 0.7; margin-left: 2px; }
@media (prefers-reduced-motion: reduce) {
  .bd3-pub-lst.slot { animation: none; }
  .bd3-pub-lst.mine { opacity: 1; transform: none; transition: none; }
}

/* the model roster, set like a table — wide card, brand marks leading,
   sats on the right rail, spend bars carrying proportion */
.bd3-lenscard.bd3-lc-models { width: 278px; }
.bd3-mdlr { display: flex; flex-direction: column; gap: 11px; margin-top: 10px; }
.bd3-mdlr-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
}
.bd3-mdlr-row .bd3-mark {
  width: 18px; height: 18px;
  border-radius: 6px;
  font-size: 10px;
  margin-top: 1px;
}
.bd3-mdlr-main { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.bd3-mdlr-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.bd3-mdlr-top b {
  font: 700 11px/1 "JetBrains Mono", monospace;
  letter-spacing: 0.05em;
  color: #151210;
  white-space: nowrap;
}
.bd3-mdlr-top u {
  text-decoration: none;
  font: 700 12px/1 "JetBrains Mono", monospace;
  font-variant-numeric: tabular-nums;
  color: #B8860B;
  white-space: nowrap;
}
.bd3-mdlr-top u i { font-style: normal; font-size: 8px; opacity: 0.65; margin-left: 2px; }
.bd3-mdlr-sub { display: flex; align-items: center; gap: 8px; }
.bd3-mdlr-bar {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: rgba(21,18,16, 0.1);
  overflow: hidden;
}
.bd3-mdlr-bar i { display: block; height: 100%; border-radius: 2px; }
.bd3-mdlr-sub em {
  font: 600 9.5px/1 "JetBrains Mono", monospace;
  font-style: normal;
  color: rgba(21,18,16, 0.45);
}
.bd3-overlay.bg-dark .bd3-mdlr-top b { color: #F2EEE5; }
.bd3-overlay.bg-dark .bd3-mdlr-top u { color: #F2B44C; }
.bd3-overlay.bg-dark .bd3-mdlr-bar { background: rgba(255, 255, 255, 0.12); }
.bd3-overlay.bg-dark .bd3-mdlr-sub em { color: rgba(255, 255, 255, 0.45); }


/* the lens card in the dark build: dark glass, not white paper — the
   bg-dark text overrides finally have the ground they were written for */
.bd3-overlay.bg-dark .bd3-lenscard {
  background: rgba(17,13,10, 0.88);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 24px 50px -24px rgba(0, 0, 0, 0.9);
}
.bd3-overlay.bg-dark .bd3-lc-e { color: #E86A38; }
.bd3-overlay.bg-dark .bd3-lc-note { color: rgba(244,239,228, 0.55); }


/* run-log rows on the dark field */
.bd3-overlay.bg-dark .bd3-run-note .bd3-sign-log em { color: rgba(242,238,229, 0.7); }

/* ==================================================================== */
/*  demo-only lockdown: the mouse watches, the script drives            */
/* ==================================================================== */
/* no clicking into the field: no agent popups, no orbit, no levers */
#bd3Overlay .bd3-stage canvas { pointer-events: none !important; }
#bd3Overlay .bd3-lever { display: none !important; }

/* scripted popups are display-only — rows can't be clicked into a hire */
#bd3Overlay .bd3-pop { pointer-events: none !important; }
/* the chat is a broadcast for now: the input row SHOWS (the script types
   into it — it's part of the show) but takes no clicks or keys */
#bd3Overlay .bd3-chat-in { pointer-events: none !important; }
#bd3Overlay #bd3ChatInput { pointer-events: none !important; caret-color: transparent; }

/* belt + suspenders: the input pill is part of the show — nothing may hide
   it except the user's own collapse */
#bd3Overlay .bd3-chat:not(.min) .bd3-chat-in { display: flex !important; }

/* marks for the open-source houses */
.bd3-mark-kimi { background: #12B8A6; }
.bd3-mark-qwen { background: #8B5CF6; }


/* ---- the closing card: the demo's last word, centered, then gone ---- */
.bd3-fin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.94);
  display: flex;
  align-items: center;
  gap: 13px;
  background: #151210;
  color: #F1EBDE;
  border-radius: 16px;
  padding: 19px 32px 20px 26px;
  box-shadow: 0 22px 60px rgba(21,18,16, 0.30);
  opacity: 0;
  pointer-events: none;
  z-index: 60;
  transition:
    opacity 0.36s ease,
    transform 0.36s cubic-bezier(0.2, 0.9, 0.25, 1.12);
}
.bd3-fin b {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-size: 27px;
  line-height: 1;
  letter-spacing: 0.01em;
}
.bd3-fin i {
  font-style: normal;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  border-radius: 999px;
  background: #2E8C5F;
  color: #F1EBDE;
  display: grid;
  place-items: center;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 14px;
}
.bd3-fin.on {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.bd3-fin.bd3-fin-out {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.985);
  transition:
    opacity 0.62s ease,
    transform 0.62s ease;
}
















/* ==================================================================== */
/* TRACK grain — one film-grain pass over the whole demo. Static noise, */
/* chalk-warm, quiet enough to read as material rather than dirt.       */
/* ==================================================================== */
.bd3-overlay::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2147483000;
  opacity: 0.055;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='240' height='240' filter='url(%23n)'/></svg>");
  background-size: 240px 240px;
}

/* Track colorway swatches — four rings, one dot each. The active ring
   wears a chalk halo instead of the text pill. */

/* ==================================================================== */
/* The boot card — the old auto open. Four brisk beats: bitcoin ·       */
/* lightning · the box · agents, checking themselves off, then the reel.*/
/* ==================================================================== */


/* ================= RESPONSIVE · tablet & phone =================
   One home for every small-screen rule of the marketing chrome —
   the network bar, the floor selector, the chat. The 3D field and
   its two-finger gestures already scale themselves. */

/* nothing in the bar ever wraps — it yields, it never folds */
.bd3-mkbar-link, .bd3-mkbar-coming { white-space: nowrap; }

/* --- iPad portrait and down: tighter type, the tagline yields first --- */
@media (max-width: 900px) {
  .bd3-mkbar-coming { display: none; }
  .bd3-mkbar-link { font-size: 12.5px; padding: 7px 9px; }
  .bd3-mkbar-logo { margin-right: 12px; }
}

/* --- phone: logo · selector · the two links that matter --- */
@media (max-width: 560px) {
  /* the accordion replaces the network bar OUTRIGHT on small screens —
     no plinth, no logo row; the burger carries the links and the floor
     swatch rides at its side */
  /* visibility, not display: the floor selector lives inside the bar's
     markup and must be able to opt back in from its fixed perch */
  .bd3-mkbar { visibility: hidden; pointer-events: none; }
  /* full-bleed: the -30px composition lift exposed a strip the bar's
     plinth used to cover — on phones the stage runs edge to edge, and
     the overlay's ink base coat swallows any dynamic-viewport gap */
  #bd3Overlay .bd3-stage { transform: none; }
  #bd3Overlay { background: #0B0907; }
  .bd3-acc { display: block; }
  .bd3-floormenu {
    visibility: visible;
    pointer-events: auto;
    position: fixed;
    top: 10px;
    right: 54px;                 /* the burger's left shoulder */
    z-index: 41;
    margin: 0;
  }
  #bd3Overlay.open .bd3-floorbtn { pointer-events: auto; }
  /* the pop drops DOWN from the top now — centered, edge-proof */
  .bd3-floor-pop {
    position: fixed;
    left: 50%;
    right: auto;
    top: 52px;
    bottom: auto;
    transform: translateX(-50%) translateY(-6px) scale(0.96);
    transform-origin: top center;
  }
  .bd3-floor-pop.show { transform: translateX(-50%) translateY(0) scale(1); }
  .bd3-chat { width: min(300px, calc(100vw - 26px)); bottom: 16px; }
}

/* --- touch: honest tap targets, the same visual weight --- */
@media (pointer: coarse) {
  .bd3-floorbtn { width: 34px; height: 34px; }
  .bd3-floorbtn-dot { width: 13px; height: 13px; }
  .bd3-floor-pop { grid-template-columns: repeat(6, 27px); gap: 11px; padding: 14px; }
  .bd3-floor-sw { width: 27px; height: 27px; }
}

