.bsx {
  --bsx-paper: #f5f3ef;
  --bsx-violet: #c4b7ff;
  color: var(--bsx-paper);
}
.bsx-workspace {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  position: relative;
  scroll-margin-block-start: 1rem;
}
.bsx .bsx-hidden, .bsx .bsx-control {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.bsx-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  max-width: 100%;
  padding: .25rem;
  gap: .125rem;
  border: 1px solid #454353;
  border-radius: 1.45rem;
  margin-bottom: 1.2rem;
  background: #14141e;
}
.bsx-tabs label {
  cursor: pointer;
  display: grid;
  place-items: center;
  flex: 1 1 auto;
  text-align: center;
  min-width: 0;
  overflow-wrap: anywhere;
  border-radius: 2rem;
  min-height: 2.75rem;
  padding: .45rem clamp(.5rem, 1.4vw, 1.3rem);
  font-size: .875rem;
  font-weight: 550;
  color: #c7c6d1;
  line-height: 1.2;
  background: transparent;
}
.bsx-tabs label:hover { color: white; background: #252431; }
#bsx-conta:checked ~ .bsx-tabs [for="bsx-conta"],
#bsx-coop:checked ~ .bsx-tabs [for="bsx-coop"],
#bsx-inv:checked ~ .bsx-tabs [for="bsx-inv"] {
  background: #dcd4ff;
  color: #20172f;
}
#bsx-conta:focus-visible ~ .bsx-tabs [for="bsx-conta"],
#bsx-coop:focus-visible ~ .bsx-tabs [for="bsx-coop"],
#bsx-inv:focus-visible ~ .bsx-tabs [for="bsx-inv"] {
  outline: 2px solid #f1eab4;
  outline-offset: 3px;
}
.bsx-panel {
  display: none;
  overflow: hidden;
  border-radius: 1.35rem;
  border: 1px solid #51505e;
  background: radial-gradient(ellipse at 100% 16%, #31284a, transparent 65%), #191922;
  box-shadow: 0 1.5rem 4rem -2rem #050509;
}
#bsx-conta:checked ~ .bsx-panels #bsx-panel-conta,
#bsx-coop:checked ~ .bsx-panels #bsx-panel-coop,
#bsx-inv:checked ~ .bsx-panels #bsx-panel-inv { display: block; }
.bsx-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  min-height: 3.15rem;
  padding: .55rem clamp(1.2rem, 2.8vw, 2.75rem);
  gap: 1rem;
  color: #dedce6;
  background: #14141e;
  border-bottom: 1px solid #373541;
  font-size: .875rem;
}
.bsx-toolbar > span:first-child { display: inline-flex; align-items: center; gap: .75rem; }
.bsx-toolbar i {
  width: .95rem;
  height: .9rem;
  position: relative;
  display: inline-block;
  border: 1px solid var(--bsx-violet);
  border-radius: .15rem;
}
.bsx-toolbar i::before {
  content: "";
  position: absolute;
  inset: 3px 2px 3px 3px;
  border-left: 1px solid #baaeed;
  border-bottom: 1px solid #baaeed;
}
.bsx-ref, .bsx-caption, .bsx-tag, .bsx-panel td {
  font-family: var(--mono);
  font-feature-settings: "ss04" 1;
}
.bsx-ref { color: #b7b4c6; font-size: .8125rem; }
.bsx-body { padding: clamp(1.2rem, 3vw, 2.75rem); }
.bsx .bsx-caption {
  margin: 0 0 .5rem;
  text-transform: uppercase;
  letter-spacing: .10em;
  color: var(--bsx-violet);
  font-size: .75rem;
  line-height: 1.4;
}
.bsx .bsx-panel h3 {
  margin: 0;
  font-family: inherit;
  font-weight: 520;
  font-size: clamp(1.45rem, 2.5vw, 2.2rem);
  line-height: 1.12;
  letter-spacing: -.045em;
  color: #fcfaf5;
}
.bsx-measure {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: .7rem;
  padding: 1.55rem 0;
}
.bsx-label { display: block; font-size: .875rem; color: #c4c0cf; }
.bsx-measure strong {
  display: block;
  font: inherit;
  font-weight: 500;
  font-size: clamp(2.15rem, 3.9vw, 3.8rem);
  line-height: 1.1;
  letter-spacing: -.065em;
  color: #fcfaf5;
  font-variant-numeric: tabular-nums;
}
.bsx-measure strong small { font: inherit; font-size: .45em; letter-spacing: -.025em; }
.bsx-tag {
  padding: .38rem .68rem;
  border: 1px solid #685f86;
  border-radius: 4px;
  color: #e5defe;
  font-size: .75rem;
  line-height: 1.25;
}
.bsx-panel table {
  border-collapse: collapse;
  width: 100%;
  color: #dfdce7;
  font-size: .875rem;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}
.bsx-panel thead { border-block: 1px solid #504b60; color: #bab6c9; }
.bsx-panel tbody tr + tr { border-top: 1px solid #393643; }
.bsx-panel th, .bsx-panel td {
  text-align: end;
  font-weight: 400;
  padding: .8rem .25rem;
  background: transparent;
  color: inherit;
}
.bsx-panel thead th { font-size: .8125rem; }
.bsx-panel tr > :first-child { text-align: start; padding-left: 0; }
.bsx-panel tr > :last-child { padding-right: 0; }
.bsx-panel td { white-space: nowrap; }
.bsx-body { min-width: 0; }
.bsx-body { overflow-wrap: anywhere; }
.bsx-explanation { margin: 1rem 0; color: #d5cfdf; }
.bsx-guide { margin-top: .75rem; }
.bsx-guide summary.button { cursor: pointer; min-height: 44px; gap: .65em; font-size: .875rem; }
.bsx-guide summary::before { content: ""; width: .45em; height: .45em; border: solid currentColor; border-width: 0 1px 1px 0; transform: rotate(-45deg); flex: none; }
.bsx-guide[open] summary::before { transform: rotate(45deg); }
.bsx-guide p { margin: .7rem 0 0; color: #d5cfdf; }
#bsx-flow { margin-top: 1.15rem; }
.bsx-previous {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .25rem 1rem;
  padding-bottom: .85rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid #504b60;
  color: #c9c4d6;
}
.bsx-previous strong { color: #f1ebfe; font-variant-numeric: tabular-nums; }
#bsx-entry label { display: block; margin-bottom: .35rem; font-weight: 620; }
.bsx-money-input {
  display: flex;
  gap: .55rem;
  align-items: center;
  max-width: 20rem;
  padding-inline: .75rem;
  border: 1px solid #817492;
  border-radius: .45rem;
  background: #1b1923;
  color: #e0d0ff;
}
.bsx-money-input:focus-within { outline: 2px solid var(--bsx-violet); outline-offset: 2px; }
.bsx-money-input input {
  flex: 1;
  min-width: 0;
  min-height: 46px;
  border: 0;
  color: #faf5ff;
  background: transparent;
  outline: none;
  font-variant-numeric: tabular-nums;
}
.bsx-money-input > span {
  flex: none;
  white-space: nowrap;
  font: .8rem/1 var(--mono);
  letter-spacing: .035em;
}
.bsx .bsx-hint, .bsx-error { font-size: .87rem; line-height: 1.5; margin: .55rem 0 0; color: #c4c0cf; }
.bsx-error:not(:empty) { color: #ffc7be; }
.bsx #bsx-flow h4 { font-size: 1.14rem; margin: 0; color: #e0d4ff; }
.bsx-amounts { margin: .8rem 0; }
.bsx-amounts div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .1rem 1rem;
  padding-block: .6rem;
  border-bottom: 1px solid #484253;
}
.bsx-amounts dt { color: #c4c0cf; }
.bsx-amounts dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; }
.bsx-record { margin-top: 0; }
.bsx-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem .75rem; margin-top: 1.1rem; }
.bsx-actions button, .bsx-actions a {
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 1.4rem;
  border: 1px solid transparent;
  padding: .55rem 1.1rem;
  cursor: pointer;
  font-family: inherit;
  font-size: .94rem;
  font-weight: 650;
  line-height: 1.4;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}
.bsx-actions .bsx-primary { background: #d3c2f2; color: #21182e; }
.bsx-actions .bsx-primary:hover { background: #e2d5fa; }
.bsx-actions .bsx-secondary { color: #e4d7fc; border-color: #746780; background: transparent; }
.bsx-actions .bsx-secondary:hover { background: #362c44; }
#bsx-flow [hidden], #bsx-flow[hidden], #bsx-coop-example[hidden] { display: none; }
@media (max-width: 29rem) {
  .bsx-tabs { display: flex; }
  .bsx-tabs label { padding-inline: .25rem; font-size: .8125rem; }
  .bsx-body { padding: 1.05rem; }
  .bsx-panel table { font-size: .8125rem; }
}
@media (max-width: 21rem) {
  .bsx-toolbar, .bsx-body { padding-inline: .7rem; }
  .bsx-panel th, .bsx-panel td { white-space: normal; overflow-wrap: anywhere; }
  .bsx-panel table { table-layout: fixed; }
  .bsx-measure strong { font-size: 1.9rem; }
}
@media (forced-colors: active) {
  #bsx-conta:checked ~ .bsx-tabs [for="bsx-conta"],
  #bsx-coop:checked ~ .bsx-tabs [for="bsx-coop"],
  #bsx-inv:checked ~ .bsx-tabs [for="bsx-inv"] { outline: 2px solid Highlight; outline-offset: -3px; }
}

@media screen and (forced-colors:none) {
  .bsx-workspace { container-type:inline-size }
  .bsx-tabs {
    position:relative;
    isolation:isolate;
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    width:min(100%,32rem);
    border-color:#655976;
    background:linear-gradient(160deg,#282433,#15121d);
    box-shadow:inset 0 1px 3px #07051160;
  }
  .bsx-tabs::before {
    content:""; position:absolute; z-index:-1;
    top:.25rem; bottom:.25rem; left:.25rem;
    width:calc((100% - .75rem) / 3);
    border-radius:1.3rem;
    background:linear-gradient(150deg,#eee4ff,#c6b3e8 80%,#b8a2df);
    box-shadow:inset 0 1px 1px #fff9,0 2px 6px #08051152;
    pointer-events:none;
  }
  #bsx-conta:checked ~ .bsx-tabs::before { transform:translateX(calc(100% + .125rem)) }
  #bsx-inv:checked ~ .bsx-tabs::before { transform:translateX(calc(200% + .25rem)) }
  .bsx-tabs label { padding-inline:.25rem }
  @container (max-width:23rem) {
    .bsx-tabs label { font-size:.76rem; padding-inline:.12rem }
  }
  @container (max-width:18rem) {
    .bsx-tabs { grid-template-columns:minmax(0,1fr); grid-template-rows:repeat(3,1fr); border-radius:1.2rem }
    .bsx-tabs label { min-height:2.6rem; font-size:.88rem; border-radius:.95rem }
    .bsx-tabs::before { width:calc(100% - .5rem); height:calc((100% - .75rem) / 3); border-radius:.95rem; bottom:auto }
    #bsx-conta:checked ~ .bsx-tabs::before { transform:translateY(calc(100% + .125rem)) }
    #bsx-inv:checked ~ .bsx-tabs::before { transform:translateY(calc(200% + .25rem)) }
  }
  #bsx-conta:checked ~ .bsx-tabs [for="bsx-conta"],
  #bsx-coop:checked ~ .bsx-tabs [for="bsx-coop"],
  #bsx-inv:checked ~ .bsx-tabs [for="bsx-inv"] { background:transparent }
  .bsx-toolbar { background:linear-gradient(135deg,#42344e96,#25213166) }
}
@media (prefers-reduced-motion:no-preference) {
  .bsx-tabs::before { transition:transform .32s cubic-bezier(.22,.76,.22,1) }
  .bsx-panel { animation:material-appear .2s ease-out }
}
