/* Tokens use exact counts; official account cash has its own admin section. */
.token-quota-card,.token-quota-admin{color:#294154;box-sizing:border-box}
.token-quota-card{padding:24px;border:1px solid #d0e1e9;border-radius:17px;background:#f4fafc;scroll-margin-top:20px;margin-bottom:20px}
.platform-side .token-quota-card{margin-bottom:0}
.token-quota-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:15px}
.token-quota-heading h2{margin:4px 0 0!important;font-size:21px;line-height:1.4}
.token-quota-kicker{font-size:11px;color:#588198}
.token-quota-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:9px 14px;border:1px solid #c5d7e3;border-radius:9px;background:#fff;color:#31576d;font:inherit;font-size:12px;font-weight:600;line-height:1.6;cursor:pointer;white-space:normal}
.token-quota-button:disabled{opacity:.5;cursor:not-allowed}
.token-quota-button:focus-visible,.token-quota-input:focus-visible,.token-quota-user:focus-visible,.token-quota-explainer summary:focus-visible{outline:3px solid #4a94bd;outline-offset:3px}
.token-quota-primary{background:#216a9f;color:white;border-color:#216a9f;margin-top:18px}
.token-quota-remaining{display:flex;align-items:baseline;flex-wrap:wrap;gap:5px 8px;margin:4px 0 20px}
.token-quota-remaining>span:first-child{flex-basis:100%;font-size:12px;color:#617987}
.token-quota-remaining strong{font-size:clamp(24px,3vw,33px);color:#216780;line-height:1.5;overflow-wrap:anywhere;min-width:0}
.token-quota-remaining>span:last-child{font-size:11px;color:#617987}
.token-quota-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0;padding-top:15px;border-top:1px solid #d5e4eb}
.token-quota-facts dt,.token-quota-admin-facts dt{color:#687e8e;font-size:11px;line-height:1.8}
.token-quota-facts dd,.token-quota-admin-facts dd{margin:5px 0 0;font-size:15px;font-weight:650;overflow-wrap:anywhere;line-height:1.6;color:#294154}
.token-quota-state{font-size:12px;line-height:1.9;color:#4a6c80;margin:14px 0 0;overflow-wrap:anywhere}
[data-quota-state="empty"] .token-quota-state,[data-quota-state="blocked"] .token-quota-state,[data-quota-state="error"] .token-quota-state{color:#8e5936}
.token-quota-explainer{margin-top:14px;border-top:1px solid #d5e4eb;color:#617987;font-size:11px;line-height:1.9}
.token-quota-explainer summary{min-height:44px;padding:11px 0;cursor:pointer;color:#446a82}
.token-quota-explainer p{margin:0 0 10px;overflow-wrap:anywhere}
.token-quota-note{margin:0 0 14px;color:#64798a;font-size:12px;line-height:1.9;overflow-wrap:anywhere}
.token-quota-label{display:block;margin:16px 0 8px;color:#3b596e;font-size:12px;font-weight:650;line-height:1.7}
.token-quota-label span{font-weight:400;color:#78909f}
.token-quota-input{box-sizing:border-box;display:block;min-height:46px;width:100%;padding:11px 12px;border:1px solid #cbdce6;border-radius:9px;background:#fafcfd;color:#294154;font:inherit;font-size:16px;min-width:0}
.token-quota-admin-grid{display:grid;grid-template-columns:minmax(190px,.8fr) minmax(0,1.4fr);gap:23px;margin-top:20px}
.token-quota-users{display:grid;align-content:start;gap:9px;max-height:540px;overflow-y:auto;padding:3px}
.token-quota-user{display:flex;flex-direction:column;gap:5px;text-align:left;width:100%;min-height:88px;padding:13px;border:1px solid #d9e4eb;border-radius:11px;background:#fbfdfe;color:#39566d;cursor:pointer;min-width:0}
.token-quota-user>*{max-width:100%;overflow-wrap:anywhere}
.token-quota-user strong{font-size:13px}.token-quota-user span,.token-quota-user small{font-size:11px;color:#738796}
.token-quota-user[aria-pressed="true"]{background:#edf6fb;border-color:#7caec8;box-shadow:inset 3px 0 #71a8c4}
#token-quota-selection{min-width:0;padding:19px;border:1px solid #dbe6ee;border-radius:12px;background:#fbfdff}
#token-quota-selected-name{margin:0 0 5px;font-size:17px;overflow-wrap:anywhere}
#token-quota-selected-email{margin-bottom:18px}
.token-quota-admin-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0 0 16px}
.token-quota-admin-facts>div{min-width:0}
#token-quota-mode-note{margin:9px 0 0}
.token-quota-preview{font-size:12px;line-height:1.8;color:#4c7187;margin:10px 0}
.token-quota-cash{margin-top:25px;padding-top:24px;border-top:1px solid #dbe5ed}
.token-quota-cash h3{margin-bottom:9px;font-size:16px}
.token-quota-cash-row{padding:16px;border:1px solid #dce6ed;border-radius:11px;margin-top:12px;background:#fafcfd}
.token-quota-cash-row .token-quota-heading{margin-bottom:10px}
.token-quota-cash-row .token-quota-heading strong{font-size:13px;overflow-wrap:anywhere;min-width:0}
.token-quota-cash-result{color:#617889;font-size:12px;line-height:1.9;overflow-wrap:anywhere}
.token-quota-cash-result p{margin:0 0 8px}
.token-quota-cash-amounts{display:flex;flex-wrap:wrap;gap:4px 20px;margin-bottom:7px}
.token-quota-cash-result small{font-size:11px;color:#7c8c98}
.token-quota-compact{display:flex;align-items:center;flex-wrap:wrap;gap:5px 12px;padding:8px 3px 12px;font-size:11px;color:#526e82;line-height:1.8}
.token-quota-compact strong{color:#285f7d;font-size:13px;overflow-wrap:anywhere}
.token-quota-compact>[data-quota-status]{flex:1;min-width:120px;color:#728b9c}
.token-quota-compact a{color:#376d8d;text-decoration:underline;text-underline-offset:3px}
.token-quota-compact button{min-height:32px;border:1px solid #d3e1e9;background:#fff;border-radius:7px;color:#476f86;padding:4px 10px;cursor:pointer}
@media(max-width:700px){.token-quota-admin-grid{grid-template-columns:1fr;gap:18px}.token-quota-users{max-height:230px}.token-quota-admin-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.token-quota-card{padding:21px}.token-quota-cash-row .token-quota-heading{align-items:flex-start}.token-quota-cash-row .token-quota-button{width:100%}.token-quota-compact>[data-quota-status]{flex-basis:100%;order:1}.token-quota-compact button{min-height:40px}.token-quota-cash-amounts{flex-direction:column;gap:3px}}
@media(max-width:380px){.token-quota-facts{grid-template-columns:1fr;gap:9px}.token-quota-facts>div{display:flex;justify-content:space-between;gap:12px}.token-quota-facts dd{margin-top:0}.token-quota-remaining strong{font-size:26px}#token-quota-selection{padding:15px}}
