/* "Choose a plan" (appbuy.js). Uses each app's own tokens (--accent, --card, --line, --text, --muted), with fallbacks. */
.ab-box { margin: 16px 0; text-align: left; }
.ab-h { margin: 0 0 10px; font-weight: 700; font-size: 16px; color: var(--text, #111827); }
.ab-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.ab-plan { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 72px; padding: 12px 14px; border: 1.5px solid var(--line, #d1d5db); border-radius: 14px; background: var(--card, var(--panel, #fff)); color: var(--text, #111827); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s ease-out, background-color .15s ease-out; }
.ab-plan:hover { border-color: var(--accent, var(--acc, var(--amber, #4f46e5))); }
.ab-plan:focus-visible { outline: 2px solid var(--accent, var(--acc, var(--amber, #4f46e5))); outline-offset: 2px; }
.ab-plan:disabled { opacity: .6; cursor: progress; }
.ab-plan b { font-size: 22px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.ab-plan span { font-size: 13px; color: var(--muted, #4b5563); }
.ab-note { margin: 10px 0 0; font-size: 13px; color: var(--muted, #4b5563); }
.ab-err { margin: 8px 0 0; min-height: 0; font-size: 13.5px; color: #b91c1c; }
.ab-err:empty { display: none; }
.ab-quiet { background: none !important; color: var(--text, #111827) !important; border: 1px solid var(--line, #d1d5db) !important; box-shadow: none !important; }
.ab-link { display: inline; min-height: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.ab-dlg { width: min(440px, 94vw); padding: 22px 20px 20px; border: 1px solid var(--line, #d1d5db); border-radius: 18px; background: var(--card, var(--panel, #fff)); color: var(--text, #111827); }
.ab-dlg::backdrop { background: rgba(10, 12, 20, .45); }
.ab-dlg .ab-box { margin: 0; }
.ab-x { float: right; display: grid; place-items: center; width: 40px; height: 40px; margin: -8px -6px 0 8px; padding: 0; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--text, #111827) 7%, transparent); color: var(--text, #111827); font-size: 22px; line-height: 1; cursor: pointer; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ab-err { color: #f87171; } }
:root[data-theme="dark"] .ab-err { color: #f87171; }
.ab-plan .ab-n { font-size: 13px; font-weight: 650; color: var(--text, #111827); }
