.cbp {
  color-scheme: dark;
  background: #101b1b;
  color: #f0f7f4;
  border: 1px solid #34433f;
  border-radius: 20px;
  padding: clamp(18px, 3.5vw, 38px);
  font:
    15px/1.5 Inter,
    system-ui,
    sans-serif;
  text-align: left;
  max-width: 100%;
  margin: 16px 0 24px;
  box-sizing: border-box;
}
.cbp * {
  box-sizing: border-box;
}
.cbp h2,
.cbp h3,
.cbp p {
  margin: 0;
  color: inherit;
}
.cbp h2 {
  font-size: clamp(25px, 4vw, 39px);
  letter-spacing: -0.05em;
  line-height: 1.15;
}
.cbp h3 {
  font-size: 19px;
  letter-spacing: -0.025em;
}
.cbp-head,
.cbp-bar,
.cbp-hold-head,
.cbp-legend {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.cbp-head small {
  display: block;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.16em;
  color: #8bb6a6;
  margin-bottom: 6px;
}
.cbp-date,
.cbp-bar span,
.cbp-caption,
.cbp td small,
.cbp-totals small {
  color: #a7b9b2;
  font-size: 12px;
}
.cbp-totals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 22px 0 21px;
  border-top: 1px solid #34433f;
  border-bottom: 1px solid #34433f;
  padding: 18px 0;
}
.cbp-totals > div + div {
  border-left: 1px solid #34433f;
  padding-left: 7%;
}
.cbp-totals span,
.cbp-totals small,
.cbp-totals strong {
  display: block;
}
.cbp-totals strong {
  font-size: clamp(23px, 4vw, 42px);
  line-height: 1.25;
  font-weight: 650;
  letter-spacing: -0.055em;
  font-variant-numeric: tabular-nums;
}
.cbp-totals em {
  font-size: 14px;
  font-style: normal;
  color: #a8d4bf;
  letter-spacing: 0;
}
.cbp button {
  font: inherit;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.cbp .cbp-ranges {
  display: flex;
  background: #0a1211;
  border: 1px solid #394942;
  border-radius: 8px;
  padding: 2px;
}
.cbp-ranges button {
  min-width: 34px;
  padding: 5px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 650;
}
.cbp-ranges button[aria-pressed="true"] {
  background: #314b40;
  color: #abf6c7;
}
.cbp-legend {
  justify-content: flex-start;
  font-size: 12px;
  margin: 15px 0 0;
  color: #b9c8c1;
}
.cbp-legend span:before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 3px;
  background: #71efba;
  vertical-align: middle;
  margin-right: 6px;
}
.cbp-legend span:nth-child(2):before {
  background: #c4acff;
}
.cbp-legend b {
  margin-left: auto;
  color: #82edb9;
}
.cbp-legend b.down {
  color: #ffb5a6;
}
.cbp-chart {
  display: block;
  width: 100%;
  height: auto;
  min-height: 134px;
  max-height: 235px;
  margin: 9px 0 0;
}
.cbp-chart text {
  font: 11px system-ui;
  fill: #a9bab2;
}
.cbp-caption {
  font-size: 11px;
}
.cbp-data {
  margin: 9px 0 0;
  font-size: 12px;
  color: #b3c8bd;
}
.cbp-data summary {
  cursor: pointer;
}
.cbp-hold-head {
  margin-top: 22px;
  border-top: 1px solid #34433f;
  padding-top: 18px;
}
.cbp-hold-head small {
  font-size: 14px;
  color: #a5bdb0;
}
.cbp input {
  font: inherit;
  max-width: 100%;
  font-size: 13px;
  border: 1px solid #46554d;
  background: #17221e;
  color: #fff;
  border-radius: 7px;
  padding: 7px 10px;
}
.cbp-table-scroll {
  overflow: auto;
}
.cbp table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
  color: inherit;
  font-size: 13px;
}
.cbp th,
.cbp td {
  text-align: right;
  border: 0;
  border-bottom: 1px solid #32403b;
  padding: 9px 5px;
  font-variant-numeric: tabular-nums;
  background: transparent;
}
.cbp th {
  font-size: 11px;
  color: #9eb1a6;
  white-space: nowrap;
}
.cbp td:first-child,
.cbp th:first-child {
  text-align: left;
}
.cbp td small {
  display: block;
  font-size: 11px;
}
.cbp td button,
.cbp .cbp-back {
  text-align: left;
  color: #9cf3c1;
  font-weight: 650;
  padding: 3px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cbp .selected {
  background: #172c24;
}
.cbp .cbp-back {
  font-size: 12px;
  margin-top: 8px;
}
.cbp-empty {
  padding: 24px 0;
  color: #bdd0c5;
}
.cbp :focus-visible {
  outline: 3px solid #ffbc67;
  outline-offset: 2px;
}
@media (max-width: 560px) {
  .cbp {
    padding: 17px;
    border-radius: 13px;
  }
  .cbp-totals span {
    font-size: 12px;
  }
  .cbp-totals em {
    display: none;
  }
  .cbp td:first-child {
    min-width: 110px;
  }
  .cbp th {
    white-space: normal;
  }
  .cbp td,
  .cbp th {
    padding: 8px 3px;
  }
  .cbp-hold-head input {
    width: 130px;
  }
}
cardbit-vault-portfolio { display:block; min-width:0; }
#cardbit-store .cb-vault-market { display:block; color:#c4acff; font-size:12px; }
#cardbit-store .cbp-table-scroll { max-height:22rem; overflow:auto; }
#cardbit-store .cbp-table-scroll th { position:sticky; top:0; background:#101b1b; z-index:1; }
.cbp .cbp-printing { display:flex; gap:10px; align-items:center; }
.cbp-thumb { display:grid; flex:0 0 38px; width:38px; height:53px; place-items:center; border-radius:4px; background:#22312d; }
.cbp-thumb img { width:100%; height:100%; object-fit:contain; border-radius:4px; }
.cbp-coverage { display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:6px 16px; margin:-8px 0 22px; font-size:12px; color:#b7c6c0; }
.cbp-coverage button { color:#a7f2ce; text-decoration:underline; text-underline-offset:3px; }
.cbp-history-mode { width:fit-content; margin:0 0 16px; }
.cbp-legend small { color:#bed0c7; }
#cardbit-store .cb-vault-status { display:inline-flex; align-items:center; justify-content:center; flex:none; width:27px; height:27px; padding:0; border-radius:8px; line-height:1; color:#c7e6d6; }
#cardbit-store .cc-vault-grid .cb-card-tail { align-items:center; }
@media(max-width:560px) { .cbp .cbp-printing { gap:6px; } .cbp-thumb { flex-basis:30px; width:30px; height:42px; } }

.cbp-market-only span:first-child:before { background:#c4acff; }
.cbp-plot { position:relative; }
.cbp-market-canvas { width:100%; height:clamp(190px,25vw,250px); margin:12px 0 0; }
.cbp-plot output { position:absolute; top:5px; left:8px; z-index:2; pointer-events:none; background:#101b1b; color:#dfebe4; font-size:12px; font-variant-numeric:tabular-nums; }
.cbp-chart-note { color:#a7b9b2; font-size:11px; }
.cbp-chart-note a { color:inherit; text-underline-offset:2px; }
.cbp .cbp-market-only span:first-child:before,.cbp .cbp-legend span:nth-child(2):before {background:#f6b45d;}
.cbp-movers {display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr)); gap:12px; margin:24px 0 18px;}
.cbp-movers>div {background:#13211e; border:1px solid #34453e; border-radius:12px; padding:12px 15px 6px;}
.cbp-movers h3 {font-size:15px; margin:0 0 5px;}
.cbp-movers button {width:100%; display:flex; justify-content:space-between; align-items:center; gap:8px; color:#e6efea; background:none; border:0; border-top:1px solid #2e4038; text-align:left; padding:7px 0; cursor:pointer; font-size:13px;}
.cbp-movers strong {text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums;}
.cbp-movers strong small {display:block; font-size:10px;}
.cbp-movers .up {color:#8de4b7;} .cbp-movers .down {color:#ffaea5;}
