/* 額度與用量 and 方案: Crew's crew-billing.css (copied verbatim from the Jayce
   commit in DESIGN.md; never edit it here), then the few rules for what mk2
   shows and Crew's pages do not. Its rules are under .crew-root, which app.js
   puts on the content column of these two pages and on their dialog. Colours,
   spacing and type only from --crew-* tokens. */
@import url("crew-billing.css");

/* Two pools: what is available in all, above them, and the credits that are
   in neither (an adjustment with an expiry, or a debt not settled yet). */
.crew-root .cu-pools-head { margin-bottom: var(--crew-space-4); }
.crew-root.s-content .cu-pools-head h2 { margin: 0; font-size: var(--crew-type-section); line-height: var(--crew-leading-ui); font-weight: 600; }
.crew-root .crew-billing__other { margin: var(--crew-space-5) 0 0; font-size: var(--crew-type-meta); }
/* 開通至今's note on credits and tokens. */
.crew-root .cu-starter-lifetime .cu-starter-none, .crew-root .cu-starter-lifetime .cu-starter-expiry { margin: var(--crew-space-4) 0 0; font-size: var(--crew-type-meta); color: var(--crew-text-secondary); }
.crew-root .cu-starter-lifetime .cu-starter-note { margin: var(--crew-space-4) 0 0; font-size: var(--crew-type-meta); }
/* The day's tooltip lists each digital employee that used some. */
.crew-root .cu-tip-row { display: flex; justify-content: space-between; gap: var(--crew-space-4); color: var(--crew-text-secondary); }
.crew-root .cu-tip-row span:last-child { color: var(--crew-text-primary); font-variant-numeric: tabular-nums; text-align: right; }
/* Stripe's invoice states besides Crew's: void and uncollectible are refusals. */
.crew-root .billing-receipt-status[data-status=uncollectible], .crew-root .billing-receipt-status[data-status=void] { color: var(--crew-status-error); background: var(--crew-status-error-surface); }
.crew-root .billing-receipt-status[data-status=draft] { color: var(--crew-status-muted); background: var(--crew-status-muted-surface); }
/* 交易紀錄's next page. */
.crew-root .billing-history-more { margin: var(--crew-space-6) 0 0; text-align: center; }
.crew-root .billing-history-more .crew-btn { width: auto; min-width: 96px; }
/* The dialog's current tier, its tier marked 目前方案, and the owner's note. */
.crew-root .pricing-package.is-current { background: var(--crew-surface-subtle); }
.crew-root .pricing-package .crew-tag { margin-left: var(--crew-space-2); font-size: var(--crew-type-meta); font-weight: 400; vertical-align: middle; }
.crew-root.billing-dialog .crew-notice { margin: var(--crew-space-4) 0 0; }
.crew-root.billing-dialog .crew-notice + [data-action="currency_settings"] { margin-top: var(--crew-space-3); }
.crew-root.billing-dialog .pay-tabs { margin-top: var(--crew-space-5); }
.crew-root.billing-dialog .pay-track > p + p { margin-top: var(--crew-space-2); }
.crew-root.billing-dialog .pay-track > .pay-note { margin-top: var(--crew-space-3); }
/* The base button rules are older than the design system: Crew's buttons keep their own height and width. */
.crew-root .crew-btn--40 { min-height: var(--crew-control-height); }
.crew-root .crew-btn--32 { min-height: var(--crew-control-height-sm); }
.crew-root .cu-buy, .crew-root .pricing-help .crew-btn, .crew-root .jc-empty .crew-btn, .crew-root .billing-history-state .crew-btn { width: auto; }
