.credit-grid{display:grid;grid-template-columns:240px minmax(260px,1fr) minmax(320px,1.1fr);gap:14px;padding:14px;align-items:start}.credit-grid>.panel{padding:20px;min-width:0}.credit-grid h2{font-size:20px;margin:0 0 16px}.credit-mark{font-size:30px;color:#b970ff}.credit-bank-row{display:flex;align-items:center;gap:10px;width:100%;padding:12px 8px;border:0;background:transparent;color:inherit;text-align:left;border-radius:12px;cursor:pointer}.credit-bank-row.active{background:#7037da}.credit-bank-row img,.credit-bank-logo{width:34px;height:34px;object-fit:contain;border-radius:7px;background:white;padding:3px}.credit-bank-row span{flex:1}.credit-bank-row small{color:#d7ccec}.credit-mobile-tabs{display:none}.credit-card-entry{margin-top:12px;border:1px solid #45405f;border-radius:16px;overflow:hidden;background:#211d36}.credit-card-entry.active{border-color:#b975ff;box-shadow:0 0 0 1px #b975ff}.credit-card-select{width:100%;display:flex;gap:12px;align-items:center;padding:15px;border:0;background:transparent;color:inherit;text-align:left;cursor:pointer}.credit-card-select .credit-thumb{width:86px;height:56px;object-fit:cover;border-radius:9px}.credit-card-select strong,.credit-card-select small{display:block;overflow-wrap:anywhere}.credit-card-select small{margin-top:7px;color:#c9c1dd}.credit-card-entry label{display:flex;justify-content:flex-end;align-items:center;gap:8px;padding:0 12px 10px;font-size:12px}.credit-card-entry select{width:auto;min-height:38px;max-width:150px}.credit-detail-heading{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.credit-detail-heading h2{flex:1;margin:0}.credit-detail-images{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:20px 0}.credit-detail-images img{display:block;width:100%;border-radius:12px;object-fit:contain;max-height:280px}.credit-info{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:12px;overflow-wrap:anywhere}.credit-info [hidden]{display:none}.credit-info dt{color:#c5b9d7}.credit-info dd{margin:0;white-space:pre-wrap}.credit-copy-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}.credit-copy-actions .copy-all-info{margin-left:auto}.credit-editor,.credit-bank-editor,.credit-access{width:min(750px,94vw);max-height:90dvh;overflow:auto;padding:24px;border:1px solid #57506b;border-radius:18px;background:#1a172e;color:#f8f4ff}.credit-access,.credit-bank-editor{width:min(430px,94vw)}.credit-image-editor,.credit-image-previews{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:15px 0}.credit-image-previews img{max-height:180px;max-width:100%;border-radius:10px}.credit-bulk-row{padding:16px;border:1px solid #554766;border-radius:14px;margin:18px 0}.credit-bulk-row .credit-image-previews img{max-height:220px}.credit-wallet-page input,.credit-wallet-page select,.credit-wallet-page textarea{font-size:16px}.credit-wallet-page input[type=file]{max-width:100%}.credit-wallet-page dialog::backdrop{background:#060511c9}.credit-filter{width:100%;margin:10px 0}.credit-empty{padding:35px 12px;text-align:center;color:#c8bbda}.credit-bank-row .credit-bank-text{font-size:14px}.credit-detail-heading .secondary{white-space:nowrap}
@media(max-width:1100px){.credit-grid{grid-template-columns:200px minmax(230px,1fr) minmax(270px,1fr);gap:8px;padding:8px}.credit-grid>.panel{padding:14px}}
@media(max-width:900px){.credit-wallet-page .wallet-header{height:auto;display:flex;flex-wrap:wrap;padding:14px;gap:12px}.credit-wallet-page .wallet-brand h1{font-size:21px}.credit-wallet-page .global-search{order:3;flex-basis:100%;margin:0}.credit-wallet-page .header-buttons{display:flex;flex-wrap:wrap;gap:8px}.credit-wallet-page .header-buttons button{min-height:42px;font-size:13px}.credit-mobile-tabs{display:flex;gap:8px;padding:12px}.credit-mobile-tabs button{flex:1}.credit-mobile-tabs button.active{background:#7842e4;color:white}.credit-grid{display:block;padding:0 12px 24px}.credit-grid>.panel{display:none;padding:18px}.credit-grid[data-panel=banks]>#creditBanks,.credit-grid[data-panel=cards]>#creditCards,.credit-grid[data-panel=details]>#creditDetails{display:block}.credit-detail-images{grid-template-columns:1fr}.credit-image-previews,.credit-image-editor{grid-template-columns:1fr 1fr}.credit-editor .form-grid,.credit-bulk-row .form-grid{grid-template-columns:1fr}.credit-info{grid-template-columns:1fr;gap:6px}.credit-info dd{margin-bottom:12px}.credit-copy-actions button{flex:1}.credit-editor,.credit-access,.credit-bank-editor{padding:20px;max-height:92dvh}.credit-wallet-page .wallet-status{padding:10px 15px}.credit-card-select .credit-thumb{width:76px}.credit-card-select{padding:14px}.credit-bulk-row{padding:12px}.credit-grid .credit-filter{min-height:44px}}

/* Constrain flex children to the phone viewport; intrinsic button widths must not widen it. */
@media(max-width:900px){
 .credit-wallet-page .wallet-header{width:100%;min-width:0;max-width:100%}
 .credit-wallet-page .header-buttons{flex:1 1 100%;min-width:0;max-width:100%;flex-wrap:wrap}
 .credit-wallet-page .header-buttons button{flex:1 1 auto;max-width:100%;white-space:normal}
 .credit-wallet-page dialog{box-sizing:border-box;width:calc(100vw - 20px);max-width:calc(100vw - 20px);min-width:0;max-height:calc(100dvh - 20px);margin:auto;padding:20px 16px}
 .credit-wallet-page dialog form,.credit-wallet-page dialog .form-grid,.credit-wallet-page dialog label{min-width:0;max-width:100%}
 .credit-wallet-page dialog input,.credit-wallet-page dialog select,.credit-wallet-page dialog textarea{box-sizing:border-box;min-width:0;max-width:100%}
 .credit-wallet-page .credit-access input,.credit-wallet-page .credit-access button{width:100%}
 .credit-wallet-page .credit-access{width:min(430px,calc(100vw - 24px));max-width:calc(100vw - 24px)}
}

.credit-bank-directory{display:grid;grid-template-columns:minmax(0,1fr) 28px;gap:6px}.credit-bank-entry{display:flex;align-items:center;min-width:0}.credit-bank-entry .credit-bank-row{flex:1;min-width:0}.credit-pin{background:transparent;color:#e9bf58;padding:4px;min-width:30px}.credit-bank-directory .brand-alphabet{max-height:700px}.credit-bank-directory .brand-alphabet button[aria-pressed=true]{background:#7942ce;color:white}

.bank-tender-picker{position:relative;display:flex}.bank-tender-picker>input{padding-right:38px}.bank-tender-picker>button{position:absolute;right:0;top:0;bottom:0;width:35px;background:transparent;color:inherit}.bank-tender-picker>[data-bank-receipt-options]{position:absolute;top:100%;left:0;right:0;background:var(--panel,#202034);border:1px solid var(--line);max-height:220px;overflow:auto;z-index:20}.bank-tender-picker>[data-bank-receipt-options] button{display:block;width:100%;text-align:left;padding:12px;background:transparent;color:inherit}.bank-receipt-viewer img{display:block;max-width:100%;height:auto}.bank-receipt-tools{padding:12px;border:1px solid var(--line);border-radius:12px;margin:12px 0}.bank-receipt-action{color:#c99cff}
@media(max-width:600px){.credit-wallet-page .reward-transaction-table{overflow:visible}.credit-wallet-page .reward-transaction-table table{display:block;min-width:0;width:100%}.credit-wallet-page .reward-transaction-table thead{display:none}.credit-wallet-page .reward-transaction-table tbody{display:block}.credit-wallet-page .reward-transaction-table tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;padding:14px 8px;border-bottom:1px solid var(--line)}.credit-wallet-page .reward-transaction-table td{display:block;min-width:0;border:0;padding:0;overflow-wrap:anywhere}.credit-wallet-page .reward-transaction-table td:nth-child(2){text-align:right;font-weight:700;font-size:16px}.credit-wallet-page .reward-transaction-table td:nth-child(3){grid-column:1/-1}.credit-wallet-page .reward-transaction-table td:last-child{grid-column:1/-1;display:flex;justify-content:flex-end;gap:12px}.credit-wallet-page .reward-transaction-table button{min-height:40px}}
