.bwd-surface, .bwd-dialog {
  --bwd-ink: #263942;
  --bwd-muted: #5f737d;
  --bwd-line: #d6e3e6;
  --bwd-bg: #fff;
  --bwd-soft: #f0f6f7;
  --bwd-accent: #286f7d;
  box-sizing: border-box;
  color: var(--bwd-ink);
  background: var(--bwd-bg);
  line-height: 1.45;
}
.bwd-surface {
  font-size: 14px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--bwd-line);
  border-radius: 8px;
}
.bwd-surface[hidden], .bwd-overview[hidden], .bwd-button[data-bwd-launch][hidden] { display: none !important; }
.bwd-history { margin-bottom: 18px; }
.bwd-overview { font-size: 12px; margin: 12px 0 0; overflow-wrap: anywhere; }
.beup-invite-surface [data-bwd-retired] { display: none !important; }
#main-container[data-bwd-admin-active] > :not([data-bwd-admin-root]) { display: none !important; }
[data-bwd-admin-root] { min-width: 0; padding: 12px; }
.bwd-toolbar, .bwd-actions, .bwd-tabs, .bwd-inline, .bwd-asset { display: flex; align-items: center; gap: 8px; }
.bwd-toolbar { justify-content: space-between; margin: 0 0 14px; }
.bwd-actions, .bwd-tabs { flex-wrap: wrap; }
.bwd-pages, .bwd-dialog footer { justify-content: flex-end; }
.bwd-tabs { margin: 0 0 12px; }
.bwd-pages { margin: 12px 0 0; }
.bwd-toolbar h1, .bwd-toolbar h2 { font-size: 18px; line-height: 1.35; margin: 0; letter-spacing: 0; }
.bwd-toolbar h2 { font-size: 16px; }
.bwd-button {
  min-height: 36px;
  padding: 6px 11px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: normal;
  font: inherit;
  cursor: pointer;
  color: #205968;
  background: #fff;
  border: 1px solid #bcd3d9;
  border-radius: 6px;
}
.bwd-button:hover:not(:disabled) { background: #e9f2f3; }
.bwd-primary { color: #fff; background: #286f7d; border-color: #286f7d; }
.bwd-primary:hover:not(:disabled) { background: #205b67; }
.bwd-button[disabled] { opacity: .56; cursor: not-allowed; }
.bwd-button[data-bwd-launch] { flex: 1 1 0; color: #fff; background: #286f7d; border-color: #8dbbc5; font-size: 13px; }
.bwd-button:focus-visible, .bwd-dialog input:focus-visible { outline: 2px solid #2b8496; outline-offset: 2px; }
.bwd-note { font-size: 13px; margin: 8px 0; color: var(--bwd-muted); }
.bwd-error { color: #972a32; }
.bwd-error:empty { display: none; }
.bwd-icon { display: inline-block; flex: 0 0 20px; object-fit: contain; }
.bwd-table-wrap { width: 100%; overflow-x: auto; }
.bwd-table { width: 100%; border-collapse: collapse; text-align: left; font-variant-numeric: tabular-nums; }
.bwd-table th, .bwd-table td { padding: 9px 10px; overflow-wrap: anywhere; }
.bwd-table th { background: var(--bwd-soft); color: #49616d; font-size: 12px; white-space: nowrap; }
.bwd-table td { border-bottom: 1px solid var(--bwd-line); }
.bwd-chip { display: inline-block; padding: 2px 7px; border-radius: 4px; background: #e8f2f5; color: #265c70; font-size: 12px; }
.bwd-chip[data-status="completed"] { background: #e4f3ec; color: #276449; }
.bwd-chip[data-status="rejected"] { background: #f8e9ea; color: #8b2937; }
.bwd-chip[data-status="review"], .bwd-chip[data-status="checking"] { background: #f9f0db; color: #764d1b; }
.bwd-dialog {
  width: min(510px, calc(100% - 24px));
  max-height: calc(100dvh - 28px);
  overflow-y: auto;
  padding: 18px;
  margin: auto;
  border: 1px solid var(--bwd-line);
  border-radius: 8px;
  box-shadow: 0 12px 36px #26394230;
  letter-spacing: 0;
}
.bwd-dialog::backdrop { background: #26394255; }
.bwd-form { display: grid; gap: 8px; width: 100%; min-width: 0; }
.bwd-form > label, .bwd-networks legend { font-size: 13px; font-weight: 600; }
.bwd-form input[type="text"] { box-sizing: border-box; width: 100%; min-height: 40px; font: inherit; padding: 7px 10px;
  background: #fff; border: 1px solid #bcd3d9; border-radius: 6px; color: var(--bwd-ink); }
.bwd-networks { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px;
  margin: 4px 0 0; padding: 4px 0 0; border: 0; }
.bwd-network { min-height: 44px; display: grid; align-items: center; grid-template-columns: 16px 20px minmax(0, 1fr);
  gap: 6px; padding: 6px 8px; font-size: 13px; border: 1px solid var(--bwd-line); border-radius: 6px; cursor: pointer; }
.bwd-network:has(input:checked) { background: var(--bwd-soft); border-color: #6aa6b2; }
.bwd-network small { color: #286f7d; grid-column: 3; }
.bwd-network span { overflow-wrap: anywhere; }
.bwd-confirm { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; }
.bwd-detail { display: grid; grid-template-columns: minmax(80px, 1fr) minmax(0, 3fr); gap: 8px 12px; margin: 0 0 16px; font-size: 14px; }
.bwd-detail dt { color: var(--bwd-muted); }
.bwd-detail dd { margin: 0; overflow-wrap: anywhere; }
.bwd-detail code, .bwd-table code { font-size: 12px; }
@media (max-width: 620px) {
  .bwd-surface { padding: 12px; }
  [data-bwd-admin-root] { padding: 6px; }
  .bwd-table thead { position: absolute; clip-path: inset(50%); height: 1px; width: 1px; overflow: hidden; }
  .bwd-table, .bwd-table tbody { display: block; }
  .bwd-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 10px; padding: 9px 0; border-bottom: 1px solid var(--bwd-line); }
  .bwd-table td { display: block; padding: 0; min-width: 0; border: none; }
  .bwd-table td::before { content: attr(data-label); display: block; font-size: 11px; color: var(--bwd-muted); }
  .bwd-button { min-height: 40px; }
}

.bwd-dialog.bwd-withdraw {
  width: min(550px, calc(100% - 24px));
  max-width: none;
  max-height: min(calc(100dvh - 24px), 840px);
  padding: 0;
  overflow: hidden;
  border-color: #d8e5ea;
  box-shadow: 0 24px 80px #17303b37;
}
.bwd-dialog.bwd-withdraw[open] { display: flex; flex-direction: column; }
.bwd-withdraw-head, .bwd-withdraw-foot { display: flex; gap: 8px; flex: 0 0 auto; }
.bwd-withdraw-head { justify-content: space-between; align-items: flex-start; padding: 14px 20px 13px; border-bottom: 1px solid var(--bwd-line); }
.bwd-withdraw-head h2 { margin: 0; font-size: 21px; line-height: 1.25; font-weight: 700; letter-spacing: 0; }
.bwd-withdraw-head p { margin: 6px 0 0; font-size: 12px; color: var(--bwd-muted); }
.bwd-withdraw-close { width: 33px; height: 33px; min-height: 33px; padding: 0; font: 23px/1 system-ui, sans-serif; }
.bwd-withdraw-form { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; overflow: hidden; margin: 0; }
.bwd-withdraw-body {
  display: grid; align-content: start; gap: 15px; min-height: 0;
  overflow-y: auto; overscroll-behavior: contain; padding: 17px 20px;
}
.bwd-withdraw-foot {
  align-items: center; justify-content: flex-end; flex-wrap: wrap; min-height: 58px;
  padding: 10px 20px; border-top: 1px solid var(--bwd-line); background: #f6f9fa; box-sizing: border-box;
}
.bwd-withdraw-foot .bwd-button { min-height: 39px; font-weight: 600; }
.bwd-withdraw-foot .bwd-primary[disabled] { color: #526e79; background: #e4ecef; border-color: #e4ecef; opacity: 1; }
.bwd-withdraw-money { min-width: 0; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 12px; }
.bwd-withdraw-field { min-width: 0; display: grid; gap: 5px; align-content: start; }
.bwd-withdraw-field > label, .bwd-withdraw-field > span, .bwd-withdraw-networks legend { font-size: 14px; font-weight: 650; }
.bwd-field-hint { font-size: 12px; color: var(--bwd-muted); overflow-wrap: anywhere; }
.bwd-withdraw-input-group, .bwd-withdraw-asset, .bwd-withdraw-field > input {
  box-sizing: border-box; min-height: 41px; border: 1px solid #c7d8df; border-radius: 7px;
}
.bwd-withdraw-input-group, .bwd-withdraw-asset { display: flex; align-items: center; gap: 8px; padding: 0 10px; }
.bwd-withdraw-input-group:focus-within { outline: 2px solid #247b94; outline-offset: 2px; }
.bwd-withdraw-input-group span { color: var(--bwd-muted); font-size: 13px; font-weight: 650; }
.bwd-withdraw-input-group span:last-child { font-size: 11px; }
.bwd-withdraw-input-group input, .bwd-withdraw-field > input {
  width: 100%; min-width: 0; color: var(--bwd-ink); background: #fff; font: inherit;
}
.bwd-withdraw-input-group input { padding: 0; border: 0; outline: none; }
.bwd-withdraw-input-group input:focus-visible { outline: none; }
.bwd-withdraw-field > input { padding: 8px 10px; font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; }
.bwd-withdraw-asset { font-weight: 680; background: #f5f8fa; }
.bwd-withdraw-networks { min-width: 0; margin: 0; padding: 0; border: 0; }
.bwd-withdraw-networks legend { padding: 0; margin-bottom: 6px; }
.bwd-withdraw-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.bwd-withdraw-option { position: relative; min-width: 0; display: grid; cursor: pointer; }
.bwd-withdraw-option input { position: absolute; inset: 0 auto auto 0; width: 1px; height: 1px; opacity: 0; }
.bwd-withdraw-choice {
  display: grid; grid-template-columns: 27px minmax(0, 1fr) auto; gap: 7px; align-items: center;
  box-sizing: border-box; min-height: 49px; padding: 6px 8px; border: 1px solid #d6e3e9;
  border-radius: 7px; background: #fff;
}
.bwd-withdraw-option input:checked + .bwd-withdraw-choice { background: #eaf5f6; border-color: #3d8a98; }
.bwd-withdraw-option input:focus-visible + .bwd-withdraw-choice { outline: 2px solid #247b94; outline-offset: 2px; }
.bwd-chain-badge {
  display: grid; place-items: center; width: 27px; height: 27px; border-radius: 7px;
  background: #edf3f5;
}
.bwd-chain-badge[data-chain="polygon"] { background: #ede8fb; }
.bwd-chain-badge[data-chain="tron"] { background: #fcebea; }
.bwd-chain-badge[data-chain="ethereum"] { background: #e9eefb; }
.bwd-chain-badge[data-chain="bsc"] { background: #fbf2d5; }
.bwd-chain-badge .bwd-icon { width: 17px; height: 17px; }
.bwd-chain-text strong, .bwd-chain-text small { display: block; overflow-wrap: anywhere; }
.bwd-chain-text strong { font-size: 12px; line-height: 1.25; }
.bwd-chain-text small { margin-top: 3px; font-size: 10px; color: var(--bwd-muted); }
.bwd-chain-recommended { padding: 1px 4px; border-radius: 4px; white-space: nowrap; background: #d6ecee; color: #1c626c; font-size: 10px; font-weight: 650; }
.bwd-withdrawal-notes {
  display: grid; grid-template-columns: 16px minmax(0, 1fr); align-items: start; gap: 8px; box-sizing: border-box;
  min-width: 0; padding: 10px 11px; background: #fbf5e7; border: 1px solid #ecdfc0;
  border-radius: 7px; color: #664d2d; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere;
}
.bwd-withdrawal-notes img { margin-top: 1px; }
.bwd-withdrawal-notes h3 { margin: 0; color: #664d2d; font-size: 13px; font-weight: 700; letter-spacing: 0; }
.bwd-withdrawal-notes ul { margin: 4px 0 0; padding-inline-start: 17px; list-style: disc; }
.bwd-withdrawal-notes li + li { margin-top: 3px; }
.bwd-withdraw-confirm { display: flex; align-items: flex-start; gap: 7px; font-size: 13px; cursor: pointer; color: #354f5a; }
.bwd-withdraw-confirm input { width: 16px; height: 16px; flex: 0 0 16px; margin: 2px 0 0; accent-color: var(--bwd-accent); }
@media (max-width: 440px) {
  .bwd-withdraw-head, .bwd-withdraw-body, .bwd-withdraw-foot { padding-inline: 13px; }
  .bwd-withdraw-body { gap: 12px; }
  .bwd-withdraw-money { gap: 8px; }
  .bwd-withdraw-choice { grid-template-columns: 23px minmax(0, 1fr); gap: 4px 6px; padding: 6px; height: 100%; }
  .bwd-chain-badge { width: 23px; height: 23px; }
  .bwd-chain-recommended { grid-column: 2; justify-self: start; }
}

.bwd-withdraw #bwd-withdraw-min .bwd-available-value { display: inline-block; max-width: 100%; margin-inline-start: .25em; }

.beup-invite-surface .biv-overview-v2 .biv-balance .bwd-overview:not([hidden]) {
  order: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  min-width: 0;
  margin: 5px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid #ffffff45;
  color: #edf9fa;
  font-size: 13px;
  line-height: 1.45;
}

.bwd-recent-main {
  display: flex;
  flex: 1 1 120px;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
  min-width: 0;
}

.bwd-recent-amount {
  color: #fff;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.bwd-overview .bwd-recent-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  max-width: 100%;
  padding: 3px 8px;
  border: 1px solid #ffffff42;
  border-radius: 6px;
  background: #164651;
  color: #daf5ff;
  font-weight: 600;
}

.bwd-recent-state::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: currentColor;
}

.bwd-overview .bwd-recent-state:is([data-status="pending"], [data-status="review"]) { color: #ffe1a6; }
.bwd-overview .bwd-recent-state[data-status="completed"] { color: #ccf7dc; }
.bwd-overview .bwd-recent-state[data-status="rejected"] { color: #ffdce2; }
