/* Plans, usage and payments (static/billing.js) — the app's look: one font,
   the --u-* colours, 44px tap targets, no sideways scroll at 360px. */
.qe-bill-scrim{ z-index:980; }
body.qe-bill-open{ overflow:hidden; }
.qe-bill-sheet{ position:relative; }
.qe-bill-sheet h2{ padding-right:44px; }
.qe-bill-x{ position:absolute; top:10px; right:10px; width:44px; height:44px; border:0; border-radius:12px; background:none;
  color:var(--u-t3); font-size:26px; line-height:1; cursor:pointer; }
.qe-bill-x:hover{ background:var(--u-raise2); color:var(--u-t1); }
.qe-bill-x.sm{ position:static; width:44px; height:44px; flex:none; }
.qe-bill-lead{ margin:4px 0 0; color:var(--u-t2); font-size:15px; line-height:1.5; }
.qe-bill-note{ margin:14px 0 0 !important; }
.qe-bill-fine{ margin:14px 0 0; font-size:13px; line-height:1.5; color:var(--u-t3); }
.qe-bill-sub{ margin:8px 0 0; font-size:14px; color:var(--u-t3); }
.qe-bill-h3{ margin:22px 0 8px; font-size:17px; font-weight:700; }
.qe-bill-row{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.qe-bill-acts{ margin-top:18px; }
.qe-bill-chip{ font-size:12.5px; font-weight:700; padding:3px 9px; border-radius:999px; background:var(--u-green-t); color:var(--u-green); white-space:nowrap; }

/* the plans sheet: wider on a computer, one card per row on a phone */
@media (min-width:700px){ .qe-bill-sheet.qe-bill-wide{ width:min(1040px,94vw); } }
.qe-bill-toggle{ display:inline-flex; gap:4px; padding:4px; margin:16px 0 4px; border-radius:999px; background:var(--u-raise); max-width:100%; flex-wrap:wrap; }
.qe-bill-toggle button{ min-height:40px; padding:0 16px; border:0; border-radius:999px; background:none; color:var(--u-t2); font-size:14.5px; font-weight:600; }
.qe-bill-toggle button.on{ background:var(--u-t1); color:var(--u-bg); }
.qe-bill-grid{ display:grid; grid-template-columns:minmax(0,1fr); gap:12px; margin-top:12px; }
@media (min-width:700px){ .qe-bill-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (min-width:1000px){ .qe-bill-grid{ grid-template-columns:repeat(4,minmax(0,1fr)); } }
.qe-bill-plan{ display:flex; flex-direction:column; min-width:0; padding:16px; border-radius:var(--u-r); background:var(--u-raise); border:1px solid transparent; }
.qe-bill-plan.pop{ border-color:var(--u-green); }
.qe-bill-plan.focus{ box-shadow:0 0 0 2px var(--u-blue); }
.qe-bill-plan.cur{ background:var(--u-raise2); }
.qe-bill-ptop{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.qe-bill-pname{ font-size:18px; font-weight:700; }
.qe-bill-badge{ font-size:12px; font-weight:700; padding:3px 9px; border-radius:999px; background:var(--u-green); color:var(--u-on-green); white-space:nowrap; }
.qe-bill-badge.cur{ background:var(--u-blue-t); color:var(--u-blue); }
.qe-bill-price{ margin-top:8px; }
.qe-bill-price b{ font-size:32px; font-weight:700; letter-spacing:-.02em; }
.qe-bill-price span{ font-size:14px; color:var(--u-t3); }
.qe-bill-seats{ display:flex; flex-direction:column; gap:6px; margin-top:10px; font-size:13px; font-weight:600; color:var(--u-t3); }
.qe-bill-seats .u-select{ min-height:44px; font-size:15px; }
.qe-bill-blurb{ margin:10px 0 0; font-size:14px; color:var(--u-t2); line-height:1.45; }
.qe-bill-perks{ list-style:none; margin:12px 0 14px; padding:0; flex:1; }
.qe-bill-perks li{ position:relative; padding:5px 0 5px 22px; font-size:14px; color:var(--u-t2); line-height:1.4; overflow-wrap:anywhere; }
.qe-bill-perks li::before{ content:""; position:absolute; left:2px; top:11px; width:10px; height:6px; border-left:2px solid var(--u-green);
  border-bottom:2px solid var(--u-green); transform:rotate(-45deg); }
.qe-bill-plan .u-btn.block{ white-space:normal; text-align:center; line-height:1.25; padding:8px 14px; }
.qe-bill-confirm{ margin:0 0 10px; padding:12px; border-radius:12px; background:var(--u-gold-t); color:var(--u-t1); font-size:14px; line-height:1.45; }
.qe-bill-confirm p{ margin:0 0 10px; }
.qe-bill-rows{ padding:0 !important; }
.qe-bill-buyrow, .qe-bill-arow{ display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:12px; min-height:56px; padding:8px 0;
  border-bottom:1px solid var(--u-line); }
.qe-bill-buyrow .t, .qe-bill-arow .t{ font-size:15px; font-weight:600; }
.qe-bill-buyrow .s, .qe-bill-arow .s{ font-size:13px; color:var(--u-t3); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.qe-bill-arow{ cursor:pointer; } .qe-bill-arow .v{ font-size:14px; font-weight:600; color:var(--u-t2); white-space:nowrap; }
.qe-bill-manage{ margin-top:12px; white-space:normal; text-align:left; }

/* usage meters */
.qe-bill-meters{ margin-top:16px; }
.qe-bill-meter{ padding:12px 0; border-bottom:1px solid var(--u-line); }
.qe-bill-mhead{ display:flex; align-items:baseline; justify-content:space-between; gap:6px 12px; flex-wrap:wrap; }
.qe-bill-mhead b{ font-size:15.5px; font-weight:600; }
.qe-bill-extra{ font-size:13px; font-weight:600; color:var(--u-green); }
.qe-bill-bar{ height:8px; margin-top:8px; border-radius:99px; background:var(--u-raise2); overflow:hidden; }
.qe-bill-bar i{ display:block; height:100%; border-radius:99px; background:var(--u-green); }
.qe-bill-bar.hi i{ background:var(--u-gold); }

/* the owner's comp form */
.qe-bill-admin{ margin-top:24px; padding-top:6px; border-top:1px solid var(--u-line2); }
.qe-bill-form .u-btn{ margin-top:14px; }
.qe-bill-alist{ margin-top:14px; }
.qe-bill-alist .u-rows{ padding:0; }

/* the 80% nudge: a slim bar above the bottom edge */
.qe-bill-nudge{ position:fixed; z-index:950; left:12px; right:12px; bottom:calc(12px + env(safe-area-inset-bottom, 0px));
  display:flex; align-items:center; gap:10px; padding:8px 8px 8px 16px; border-radius:16px; background:var(--u-raise);
  border:1px solid var(--u-line2); box-shadow:var(--u-pop); color:var(--u-t1); font-size:14.5px; }
.qe-bill-nudge .t{ flex:1; min-width:0; line-height:1.35; }
@media (min-width:1024px){ .qe-bill-nudge{ left:auto; right:28px; bottom:28px; max-width:460px; } }

/* a locked result: the return, then placeholder blurred out (never real data) */
.qe-bill-locked-on > :not(.qe-bill-locked){ display:none !important; }
.qe-bill-locked{ min-width:0; }
.qe-bill-lname{ margin:12px 0 0; font-size:20px; font-weight:700; overflow-wrap:anywhere; }
.qe-bill-blurwrap{ position:relative; margin-top:18px; border-radius:var(--u-r); overflow:hidden; min-height:280px; background:var(--u-raise); }
.qe-bill-fake{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; padding:16px; filter:blur(7px); opacity:.55;
  user-select:none; pointer-events:none; }
@media (min-width:700px){ .qe-bill-fake{ grid-template-columns:repeat(3,minmax(0,1fr)); } }
.qe-bill-ftile{ padding:12px; border-radius:12px; background:var(--u-raise2); }
.qe-bill-ftile span{ display:block; font-size:13px; color:var(--u-t3); }
.qe-bill-ftile b{ font-size:22px; }
.qe-bill-fbars{ grid-column:1 / -1; display:flex; align-items:flex-end; gap:6px; height:90px; }
.qe-bill-fbars i{ flex:1; border-radius:4px 4px 0 0; background:var(--u-green); }
.qe-bill-over{ position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px;
  padding:20px; text-align:center; background:color-mix(in srgb, var(--u-bg) 35%, transparent); }
.qe-bill-why{ margin:0 0 4px; max-width:34ch; font-size:17px; font-weight:700; line-height:1.35; }
.qe-bill-over .u-btn{ white-space:normal; max-width:100%; }

.qe-bill-toast{ position:fixed; z-index:9999; left:50%; bottom:calc(20px + env(safe-area-inset-bottom, 0px)); transform:translateX(-50%);
  max-width:calc(100vw - 32px); padding:12px 18px; border-radius:999px; background:var(--u-t1); color:var(--u-bg); font-size:14.5px; font-weight:600; }
/* what happens on a cancel or a move down (plans sheet, Manage billing) */
.qe-bill-policy{ margin:6px 0 12px; padding-left:20px; display:flex; flex-direction:column; gap:6px; color:var(--u-t2); font-size:14px; line-height:1.45; }
.qe-bill-policy li{ overflow-wrap:anywhere; }
.qe-bill-nudge.qe-bill-warn{ border-color:var(--u-gold); }

/* credits (2026-11-02): the quote line beside a button, the quote in the confirm sheet, the ledger */
.qe-bill-qline{ margin:8px 0 0; font-size:13.5px; color:var(--u-t2); }
.qe-bill-quote{ font-size:17px; font-weight:700; color:var(--u-t1); }
.qe-bill-rate{ font-weight:600; color:var(--u-t2); }
.qe-bill-ledger .qe-bill-arow .v{ font-variant-numeric:tabular-nums; }
/* credits v2: the owner's margin tables scroll sideways inside the sheet (never the page); the drift alarm;
   a fund add-on tier opened from a link (?addon=); the add-on's line with its Remove / Undo button */
.qe-bill-table{ display:block; max-width:100%; overflow-x:auto; border-collapse:collapse; font-size:12px; margin:6px 0 12px; }
.qe-bill-table th, .qe-bill-table td{ padding:4px 8px; text-align:left; white-space:nowrap; border-bottom:1px solid var(--u-line); }
.qe-bill-table th{ color:var(--u-t3); font-weight:600; }
.qe-bill-alarm{ font-weight:700; }
.qe-bill-buyrow.focus{ box-shadow:inset 3px 0 0 var(--u-blue); padding-left:10px; }
.qe-bill-fundrow{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
