/* THE ALLOWANCE METER (allowance-meter.js): the sidebar card that took the Boost card's place, the prices beside it on
   hover, the mixes in a panel beside it, and the same meter in the Boost dialog for a phone. */
.allowance-slot{position:relative}
.allowance-card{position:relative;padding:14px 14px 12px;border:1px solid #a1c6e520;background:radial-gradient(ellipse at 100% 0,#9eb7d019,transparent 70%),#1a202b;border-radius:12px}
.allowance-meter{outline:0;border-radius:8px;cursor:default}
.allowance-meter:focus-visible{outline:2px solid var(--lilac);outline-offset:4px}
.allowance-head{display:flex;justify-content:space-between;gap:8px;font-size:8px;letter-spacing:1.6px;color:#8c9dab;font-weight:600;margin-bottom:9px}
.allowance-head span:first-child{flex:none;white-space:nowrap}
.allowance-head span:last-child{min-width:0;letter-spacing:.3px;font-weight:500;color:#b6c9d6;text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.allowance-bar{height:7px;border-radius:9px;background:#ffffff12;overflow:hidden}
.allowance-bar i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#aabfea,#d3baf5);transition:width .35s ease}
.allowance-bar.is-low i{background:linear-gradient(90deg,#e7b48f,#efc6a4)}
.allowance-bar.is-over i{background:linear-gradient(90deg,#e7a0a8,#efb4b9)}
.allowance-left{margin:9px 0 0;display:grid;gap:2px}
.allowance-left strong{font-size:12px;font-weight:500;color:#e0eaf1}
.allowance-left span{font-size:9px;line-height:1.5;color:#8c9dab}
.allowance-actions{display:flex;justify-content:space-between;align-items:center;gap:6px;margin-top:11px}
.allowance-expand,.allowance-topup{background:none;padding:4px 0;font-size:9px;color:#b6c9d6;text-decoration:none}
.allowance-expand b{font-weight:400;margin-left:2px}
.allowance-topup{color:#d8c6f5}
.allowance-quiet{font-size:9px;color:#8c95a8;margin:8px 0 0;line-height:1.6}

/* The prices: beside the sidebar on a pointer, on hover or keyboard focus. FIXED, not absolute: the sidebar scrolls on a
   short screen, and a scrolling box clips anything that hangs outside it. */
.allowance-prices{display:none;position:fixed;left:calc(var(--sidebar) + 14px);bottom:18px;width:272px;z-index:30;padding:16px 16px 12px;border:1px solid #c7c0e52b;border-radius:14px;background:linear-gradient(140deg,#212333,#171e2a);box-shadow:0 24px 70px #0009}
.allowance-prices .eyebrow{margin-bottom:10px}
.allowance-meter:hover .allowance-prices,.allowance-meter:focus-within .allowance-prices,.allowance-meter:focus .allowance-prices{display:block}
.allowance-card.is-expanded .allowance-prices{display:none!important}
.allowance-price-list{list-style:none;margin:0;padding:0;display:grid;gap:7px}
.allowance-price-list li{display:flex;justify-content:space-between;align-items:baseline;gap:12px;font-size:11px;color:#c7cbd8}
.allowance-price-list small{font-size:9px;color:#8c95a8}
.allowance-price-list b{font-weight:500;color:#e6dcfb;font-variant-numeric:tabular-nums}

/* The mixes: a panel beside the sidebar, opened by "What can I make?" (fixed, as the prices are). */
.allowance-mixes{position:fixed;left:calc(var(--sidebar) + 14px);bottom:18px;width:min(460px,calc(100vw - var(--sidebar) - 32px));max-height:calc(100dvh - 36px);overflow:auto;z-index:31;padding:20px;border:1px solid #c7c0e52b;border-radius:16px;background:linear-gradient(140deg,#212333,#171e2a);box-shadow:0 30px 90px #000a}
.allowance-mixes-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}
.allowance-mixes-head .eyebrow,.allowance-build-title{margin:0}
.allowance-build-title{margin:18px 0 10px}
.allowance-plans{display:flex;gap:4px;padding:3px;border-radius:9px;background:#ffffff08}
.allowance-plans button{display:grid;gap:1px;padding:5px 9px;border-radius:7px;background:none;font-size:10px;color:#9da3b8;text-align:center;line-height:1.2}
.allowance-plans button small{font-size:8px;color:#737a90}
.allowance-plans button[aria-pressed=true]{background:#d1c1fd1c;color:#e2d6fb}
.allowance-plans button[aria-pressed=true] small{color:#b6a8d8}
.allowance-presets{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.allowance-preset{display:flex;justify-content:space-between;gap:12px;padding:11px 12px;border:1px solid #ffffff0e;border-radius:11px;background:#ffffff05}
.allowance-preset strong{display:block;font-size:12px;font-weight:500;color:#e2e5ee}
.allowance-preset p{margin:3px 0 0;font-size:10px;line-height:1.5;color:#959cb1}
.allowance-preset-cost{display:grid;justify-items:end;align-content:start;gap:1px;text-align:right;flex:none}
.allowance-preset-cost b{font-size:13px;font-weight:500;color:#e6dcfb;font-variant-numeric:tabular-nums}
.allowance-preset-cost span{font-size:9px;color:#a6d5c4;max-width:130px;line-height:1.4}
.allowance-preset.is-over .allowance-preset-cost span{color:#e7b48f}
.allowance-preset-cost .plain-button{font-size:9px;padding:3px 0 0;color:#c9b6ff}
.allowance-builder{padding:12px;border:1px solid #ffffff0e;border-radius:11px;background:#ffffff05}
.allowance-builder-rows{display:grid;gap:6px;margin-bottom:12px}
.allowance-row{display:grid;grid-template-columns:minmax(0,1fr) auto 52px;align-items:center;gap:10px;font-size:11px;color:#c7cbd8}
.allowance-row>b{font-weight:500;text-align:right;color:#aeb3c5;font-variant-numeric:tabular-nums}
.allowance-stepper{display:inline-flex;align-items:center;border:1px solid #ffffff14;border-radius:8px;overflow:hidden}
.allowance-stepper button{width:28px;height:26px;background:#ffffff06;font-size:14px;line-height:1;color:#d9d3ea}
.allowance-stepper output{min-width:54px;text-align:center;font-size:11px;color:#eae5f6;font-variant-numeric:tabular-nums}
.allowance-builder-total{margin:9px 0 0;display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}
.allowance-builder-total strong{font-size:12px;font-weight:500;color:#e2e5ee}
.allowance-builder-total span{font-size:10px;color:#959cb1}
.allowance-footnote{margin:14px 0 0;font-size:9px;line-height:1.6;color:#7d8499}

/* Plans compared in the Boost dialog for a creator on top-ups: information only, nothing to press. */
.allowance-compare{margin:0 0 16px;padding:0 0 14px;border-bottom:1px solid #ffffff0e}
.allowance-compare .eyebrow{margin-bottom:10px}
.allowance-compare-list{list-style:none;margin:0;padding:0;display:grid;gap:7px}
.allowance-compare-list li{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:8px 10px;border-radius:9px;background:#ffffff05}
.allowance-compare-list li.is-top-up{background:none;border:1px dashed #ffffff14}
.allowance-compare-list strong{display:block;font-size:12px;font-weight:500;color:#e2e5ee}
.allowance-compare-list small{display:block;font-size:9px;color:#959cb1}
.allowance-compare-price{text-align:right;flex:none}
.allowance-compare-price b{display:block;font-size:13px;font-weight:500;color:#e6dcfb;font-variant-numeric:tabular-nums}
.allowance-compare-list li:not(.is-top-up) .allowance-compare-price small{color:#a6d5c4}

/* The same meter in the Boost dialog: in the flow, opened by tapping. */
.allowance-panel{margin:18px 0 6px;padding:16px;border:1px solid #a1c6e520;border-radius:12px;background:radial-gradient(ellipse at 100% 0,#9eb7d019,transparent 70%),#1a202b;text-align:left}
.allowance-disclosure{display:flex;justify-content:space-between;align-items:center;width:100%;margin-top:12px;padding:10px 0 0;border-top:1px solid #ffffff0e!important;background:none;font-size:11px;color:#c9d6df}
.allowance-panel-prices,.allowance-panel-mixes{margin-top:12px}
.allowance-panel-mixes .allowance-mixes-head{flex-wrap:wrap}
@media(max-width:650px){.allowance-row{grid-template-columns:minmax(0,1fr) auto 44px;gap:7px}.allowance-stepper output{min-width:44px}.allowance-preset{flex-direction:column}.allowance-preset-cost{justify-items:start;text-align:left}.allowance-preset-cost span{max-width:none}}
@media(max-height:850px) and (min-width:651px){.allowance-card{padding:11px 12px 9px}.allowance-head{margin-bottom:7px}.allowance-left{margin-top:7px}.allowance-actions{margin-top:7px}}
@media(prefers-reduced-motion:reduce){.allowance-bar i{transition:none}}
