/* Scoped additions using the original theme, typography and surfaces. */
.bnt-product {
  min-width: 0;
}
.bnt-product-form {
  display: grid;
  gap: 14px;
  margin: 24px 0;
  max-width: 600px;
}
.bnt-product input,
.bnt-product select,
.bnt-product textarea {
  max-width: 100%;
  min-width: 0;
}
.bnt-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
}
.bnt-check input {
  width: 18px;
  height: 18px;
  flex: none;
}
.bnt-ledger-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border, #8883);
}
.bnt-ledger-row div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.bnt-ledger-row small,
.bnt-user-card small {
  display: block;
  opacity: 0.65;
  margin-top: 4px;
}
.bnt-ledger-row strong {
  white-space: nowrap;
}
.bnt-user-list {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}
.bnt-user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 14px;
  border: 1px solid var(--border, #8883);
  border-radius: 14px;
  background: transparent;
  color: inherit;
}
.bnt-user-card span {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.bnt-user-card img {
  border-radius: 12px;
  object-fit: cover;
}
.bnt-user-detail {
  padding: 20px 0;
}
.bnt-user-detail pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  max-height: 440px;
  overflow: auto;
}
.bnt-access-editor {
  margin: 16px 0;
  padding: 16px;
  border: 1px solid var(--border, #8883);
  border-radius: 16px;
}
.bnt-access-editor > summary {
  cursor: pointer;
  font-weight: 700;
}
.bnt-access-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0;
  padding: 12px;
  border-radius: 12px;
  background: var(--soft, #8881);
}
.bnt-access-toggle input {
  flex: none;
  width: 20px;
  height: 20px;
}
.bnt-access-toggle span,
.bnt-access-toggle small {
  display: block;
}
.bnt-bell {
  position: relative;
}
.bnt-dot {
  position: absolute;
  right: 5px;
  top: 5px;
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--bg, #15171c);
}
.bnt-toasts {
  position: fixed;
  z-index: 1000;
  top: max(12px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  width: min(440px, calc(100vw - 24px));
  pointer-events: none;
}
.bnt-toast {
  pointer-events: auto;
  padding: 18px;
  margin-bottom: 10px;
  box-shadow: 0 12px 40px #0003;
  touch-action: pan-y;
}
.bnt-toast > .icon-btn {
  float: right;
}
.bnt-toast p {
  margin: 8px 0;
  overflow-wrap: anywhere;
}
.bnt-comment-tools {
  margin: 10px 0;
}
.bnt-comment-tools textarea {
  width: 100%;
  min-height: 90px;
}
.article-sources {
  margin-top: 24px;
  border-top: 1px solid var(--border, #8883);
  padding-top: 16px;
}
.article-sources a {
  overflow-wrap: anywhere;
}
.bnt-sources .form-grid {
  margin: 12px 0;
}
@media (max-width: 640px) {
  .bnt-product {
    padding: 18px;
  }
  .bnt-product .wallet-balances {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .bnt-product .wallet-balances > div:first-child {
    grid-column: 1/-1;
  }
  .bnt-product .wallet-balances b {
    font-size: 18px;
    overflow-wrap: anywhere;
  }
  .bnt-product .wallet-balances > div:first-child b {
    font-size: 32px;
  }
  .bnt-product .wallet-balances small {
    font-size: 12px;
  }
  .bnt-user-card {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    padding: 10px 12px;
  }
  .bnt-ledger-row {
    gap: 8px;
  }
  .bnt-sources .form-grid {
    grid-template-columns: 1fr;
  }
  .bnt-product .button-row {
    flex-wrap: wrap;
  }
}
.bnt-finance-legacy {padding:20px;margin-top:24px;min-width:0}
.bnt-finance-legacy>summary {font-weight:600;cursor:pointer;padding:6px 0}
.bnt-finance-legacy[open]>summary {margin-bottom:24px}
