/* Den · 额度开关 */
.den-bgquota {
  position: absolute; inset: 0;
  background: transparent;
  color: #222;
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.den-bgquota .den-head {
  display: flex; align-items: center; gap: .6rem;
  padding: calc(.8rem + env(safe-area-inset-top)) 1rem .8rem;
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.den-bgquota .den-head div { flex: 1; }
.den-bgquota .den-head p {
  margin: 0; font-size: .7rem; opacity: .5;
  text-transform: uppercase; letter-spacing: .05em;
}
.den-bgquota .den-head h1 { margin: 0; font-size: 1.1rem; font-weight: 600; }

#bqBody { padding: 1rem; padding-bottom: calc(1.5rem + env(safe-area-inset-bottom)); }
.bq-loading, .bq-err { opacity: .55; text-align: center; padding: 2rem 0; }
.bq-err { color: #c44; }
.bq-note {
  margin: 0 0 .9rem; font-size: .78rem; line-height: 1.45; opacity: .6;
}
.bq-card {
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: .85rem;
  box-shadow: 0 1px 0 rgba(255,255,255,.5) inset;
}
.bq-card-title {
  padding: .65rem .9rem .25rem;
  font-size: .72rem; font-weight: 650; letter-spacing: .04em;
  text-transform: uppercase; opacity: .45;
}
.bq-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: .85rem; padding: .75rem .9rem;
  border-top: 1px solid rgba(0,0,0,.05);
  cursor: pointer;
}
.bq-card-title + .bq-row { border-top: 0; }
.bq-text { display: flex; flex-direction: column; gap: .18rem; min-width: 0; }
.bq-text b { font-size: .95rem; font-weight: 600; }
.bq-text small { font-size: .74rem; opacity: .55; line-height: 1.35; }
.bq-switch {
  appearance: none; -webkit-appearance: none;
  width: 46px; height: 28px; border-radius: 999px;
  background: rgba(0,0,0,.16); position: relative; flex: 0 0 auto;
  transition: background .18s; border: 0; cursor: pointer;
}
.bq-switch::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.22);
  transition: transform .18s;
}
.bq-switch:checked { background: #8b6bb5; }
.bq-switch:checked::after { transform: translateX(18px); }
