/* QA on the web (site/r/): the Billing page and the notice of a workspace that
   is read-only (design/ui/screens/15-plans-billing/billing-past-due.png).
   Uses the tokens of qa.css. The amber surfaces keep AA in both themes
   (scripts/qa-billing.mjs measures them). */

:root { --notice-bg: #FFF6E0; --notice-border: #F2DCA6; --notice-text: #14111C; --founding-bg: #EFFBD0; --founding-ink: #14111C; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --notice-bg: #231C0C; --notice-border: #4A3A12; --notice-text: #F4F2FA; --founding-bg: #222B12; --founding-ink: #E9F7C4; } }
:root[data-theme="dark"] { --notice-bg: #231C0C; --notice-border: #4A3A12; --notice-text: #F4F2FA; --founding-bg: #222B12; --founding-ink: #E9F7C4; }

.plan-notice, .bill-banner {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 16px; border: 1px solid var(--notice-border); border-radius: 12px;
  background: var(--notice-bg); color: var(--notice-text); font-size: 14px; line-height: 1.45;
}
.plan-notice { margin: 0 0 20px; max-width: 1100px; }
.bill-banner { margin: 0 0 24px; }
.plan-notice p, .bill-banner p { flex: 1; min-width: 0; margin: 0; }
.plan-notice b, .bill-banner b { font-weight: 650; }
.plan-notice-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--amber-dot, #F5B544); }
.plan-notice .btn, .bill-banner .btn { flex: none; height: 36px; padding: 0 14px; }
@media (max-width: 599px) {
  .plan-notice, .bill-banner { flex-wrap: wrap; }
  .plan-notice p, .bill-banner p { flex-basis: calc(100% - 22px); }
  .plan-notice .btn, .bill-banner .btn { width: 100%; }
}
/* a control the plan switched off reads as off, not as broken */
[data-plan-locked] { cursor: not-allowed; }

.bill-page { max-width: 820px; }
.bill-page .page-head { margin-bottom: 20px; }
.bill-card { margin-top: 16px; padding: 22px 24px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg); }
.bill-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; min-height: 34px; }
.bill-head h2 { flex: 1; min-width: 0; font-size: 15px; font-weight: 650; }
.bill-tools { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.bill-name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 14px; }
.bill-name b { font-size: 24px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
.bill-chip { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 7px; background: var(--surface-2); color: var(--text-2); font-size: 12.5px; font-weight: 650; white-space: nowrap; }
.bill-chip.founding { background: var(--founding-bg); color: var(--founding-ink); }
.bill-line { margin-top: 8px; font-size: 14.5px; line-height: 1.55; color: var(--text-2); max-width: 720px; }
.bill-line b { color: var(--text); font-weight: 650; }
.bill-line .linkish { font-size: inherit; color: var(--link); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.bill-note { margin-top: 14px; font-size: 13px; line-height: 1.5; color: var(--text-3); max-width: 720px; }
.bill-card > .form-err { margin-top: 12px; }
.bill-people { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--border); }
.bill-people li { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.bill-people li b { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bill-role { width: 110px; font-size: 13.5px; color: var(--text-3); }
.bill-seat { width: 56px; text-align: right; font-size: 13.5px; color: var(--text-3); white-space: nowrap; }
@media (max-width: 599px) {
  .bill-card { padding: 18px 16px; }
  .bill-role { width: auto; }
  .bill-seat { display: none; }
  .bill-tools { width: 100%; }
  .bill-tools .btn { flex: 1; }
}
