/* Scoped to the new sidebar account group and its floating panel. */
header.has-account-benefits .account-benefits{margin-top:auto;display:flex;flex-direction:column;gap:8px;width:184px;flex-shrink:0}header.has-account-benefits .user-tools{margin-top:16px}
.account-benefits .benefit-pill{display:flex;align-items:center;gap:8px;width:184px;height:40px;min-height:40px;padding:0 16px;border-radius:9999px;font:500 14px/20px Inter,'Noto Sans SC','PingFang SC',sans-serif;text-align:left;transition:background 180ms,border-color 180ms,transform 180ms}
.benefit-pill svg,.credit-popover svg{width:20px;height:20px;flex-shrink:0}.benefit-credit{background:var(--color-white);border:1px solid var(--color-border);color:var(--color-ink)}.benefit-credit:hover,.benefit-credit[aria-expanded=true]{border-color:#C4B5FD;background:var(--color-bg)}.benefit-chevron{margin-left:auto;display:flex;color:var(--color-muted)}.benefit-chevron svg{width:16px;height:16px}.benefit-pro{background:var(--color-selected);border:1px solid transparent;color:var(--color-action)}.benefit-pro:hover{border-color:#C4B5FD}.benefit-pill:active{transform:scale(.98)}
.credit-popover{position:fixed;z-index:200;padding:20px;border:1px solid var(--color-border);border-radius:20px;background:var(--color-white);box-shadow:0 8px 24px rgba(76,29,149,.12);color:var(--color-ink);opacity:0;transform:translateX(-6px) scale(.98);transform-origin:left bottom;transition:opacity 180ms ease,transform 180ms ease;max-height:calc(100dvh - 32px);display:flex;flex-direction:column;font:400 14px/22px Inter,'Noto Sans SC','PingFang SC',sans-serif}.credit-popover.is-open{opacity:1;transform:translateX(0) scale(1)}.credit-popover-head{display:flex;align-items:center;gap:8px}.credit-popover h2,.credit-popover h3{margin:0;font:500 14px/20px Inter,'Noto Sans SC','PingFang SC',sans-serif}.credit-demo-badge{font-size:12px;line-height:18px;padding:4px 8px;border-radius:8px;background:var(--color-bg);color:var(--color-muted)}.credit-close{margin-left:auto;display:grid;place-items:center;min-width:40px;height:40px;border-radius:12px;color:var(--color-muted)}.credit-close:hover{background:var(--color-bg)}.credit-balance{display:flex;align-items:center;gap:8px;margin:16px 0 20px}.credit-balance>svg{color:var(--color-action);width:24px;height:24px}.credit-balance strong{font-size:28px;line-height:36px;font-weight:700;font-variant-numeric:tabular-nums}.credit-membership{display:flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:8px 16px;border-radius:12px;color:var(--color-action);background:var(--color-selected);font-weight:500}.credit-membership:hover{background:#e3dcfc}.credit-membership>svg:last-child{margin-left:auto;width:16px;height:16px}.credit-separator{height:1px;flex-shrink:0;background:var(--color-border);margin:20px 0}.credit-record-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}.credit-details{display:flex;align-items:center;gap:4px;min-height:40px;color:var(--color-action);font-size:12px}.credit-details svg{width:16px;height:16px}.credit-record-scroll{overflow-y:auto;max-height:240px;min-height:120px;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#ddd6fe transparent}.credit-record-empty{display:flex;min-height:120px;align-items:center;justify-content:center;flex-direction:column;gap:8px;color:var(--color-muted);text-align:center}.credit-record-empty span{font-size:12px;line-height:18px;max-width:240px}.credit-record-row{display:grid;grid-template-columns:1fr auto;gap:4px 12px;padding:12px 0;border-bottom:1px solid var(--color-border)}.credit-record-row time{font-size:12px;color:var(--color-muted)}.credit-record-row strong{grid-column:2;grid-row:1/3;align-self:center;font-variant-numeric:tabular-nums}
@media(min-width:768px) and (max-width:1199px){header.has-account-benefits .account-benefits{width:56px;align-items:center}.account-benefits .benefit-pill{width:40px;padding:0;justify-content:center}.benefit-pill>span{display:none}}
@media(max-width:767px){header.has-account-benefits .account-benefits{width:auto;flex-direction:row;gap:8px;margin:0 12px 0 auto}header.has-account-benefits .user-tools{margin:0}.account-benefits .benefit-pill{width:40px;padding:0;justify-content:center}.benefit-pill>span{display:none}.credit-popover{transform:translateY(-6px) scale(.98);transform-origin:top right}.credit-popover.is-open{transform:translateY(0) scale(1)}}
@media(prefers-reduced-motion:reduce){.credit-popover,.account-benefits .benefit-pill{transition:none;transform:none}}

/* Bottom utilities: help, rewards, notifications, avatar. */
header.has-account-benefits .user-tools{gap:8px;justify-content:space-between}
.account-utility-icon{display:grid;place-items:center;width:40px;height:40px;flex-shrink:0;padding:8px;border-radius:12px;color:#727795;background:transparent;transition:background 180ms,color 180ms}
.account-utility-icon svg{width:24px;height:24px;fill:none;stroke-width:1.5}
.account-utility-icon:hover{background:var(--color-selected);color:var(--color-action)}
.account-utility-icon:active{transform:scale(.96)}
@media(min-width:768px) and (max-width:1199px){header.has-account-benefits .user-tools{gap:8px}}
@media(max-width:767px){header.has-account-benefits .user-tools{gap:4px}header.has-account-benefits .account-benefits{margin-right:4px;gap:4px}.account-utility-icon{width:32px;height:40px;padding:4px}.account-utility-icon svg{width:20px;height:20px}}
