.credit-journey,.credit-frame { box-sizing:border-box; color:#172044; border:1px solid #dce5ef; border-radius:16px; background:white; box-shadow:0 24px 70px #0f172a3b; }
.credit-journey { width:min(500px,calc(100% - 24px)); max-height:calc(100dvh - 24px); padding:clamp(16px,4vw,26px); }
.credit-journey::backdrop,.credit-frame::backdrop { background:#0f172ab3; }
.credit-journey header,.credit-frame header { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.credit-journey h2 { margin:0; font-size:clamp(17px,4vw,21px); }
.credit-journey p { margin:12px 0 16px; }
.credit-journey-actions { display:grid; gap:8px; }
.credit-journey-actions button { display:flex; align-items:center; justify-content:center; gap:10px; width:100%; white-space:normal; min-height:44px; border:1px solid #0b6c52; color:white; background:#08785a; border-radius:8px; padding:8px 12px; font-weight:700; }
.credit-journey-actions button[data-choice="explore"],.credit-journey-actions button[data-choice="dismiss"] { background:white; color:#172044; border-color:#cbd5e1; }
.credit-close { color:#172044; background:#f1f5f9; border:1px solid #cbd5e1; border-radius:8px; min-width:38px; min-height:38px; font-size:22px; line-height:1; }
.credit-frame { width:min(820px,calc(100vw - 20px)); max-width:none; padding:0; }
.credit-frame header { padding:8px 12px; align-items:center; }
.credit-frame iframe { display:block; width:100%; height:min(74dvh,680px); border:0; }
.credit-balance-link { font:inherit; cursor:pointer; border:1px solid currentColor; border-radius:8px; background:transparent; color:inherit; padding:4px 7px; white-space:normal; }
.credit-balance-link[data-low="true"] { color:#fde68a; }
#credit-plan-notice { margin:12px 0; padding:10px 12px; border-radius:8px; border:1px solid #fde68a; background:#fffbeb; color:#78350f; font-weight:700; }
#saas-plans.voucher-only .credit-plan-option { display:none!important; }
#saas-plans:not(.voucher-only) #credit-voucher-back { display:none; }
body.credit-embedded > header, body.credit-embedded > main, body.credit-embedded #maxx-launcher { display:none!important; }
body.credit-embedded #saas-plans { background:white; }

.system-dialog p { white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.55; }
.system-dialog label:not([hidden]) { display:grid; gap:6px; font-weight:700; }
.system-dialog textarea { width:100%; box-sizing:border-box; min-height:90px; padding:10px; border:1px solid #cbd5e1; border-radius:8px; font:inherit; }
.system-dialog-actions { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:10px; margin-top:20px; }
.system-dialog-actions button { min-width:100px; min-height:44px; border:1px solid #cbd5e1; border-radius:8px; background:white; color:#172044; padding:8px 14px; font-weight:700; cursor:pointer; }
.system-dialog-actions button[value="confirm"] { color:white; background:#08785a; border-color:#08785a; }
.system-dialog [hidden] { display:none!important; }
