/* Shared frontend number hierarchy: compact amounts, readable labels, intact digits. */
body[data-frontend-theme] :is(.invite-grid b,.pc-income-grid b,.holding-amount-grid b,.income-type-stat b,.team-metric b){font-size:17px!important;line-height:1.25!important;letter-spacing:-.3px;white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important;font-variant-numeric:tabular-nums}
body[data-frontend-theme] .pc-wallet .pc-balance{font-size:23px!important;line-height:1.2!important;letter-spacing:-.6px;margin:7px 0 12px!important;white-space:nowrap!important;overflow-wrap:normal!important}
body[data-frontend-theme] :is(.vip-price,.income-stats-total){font-size:23px!important;line-height:1.25!important}
body[data-frontend-theme] .task-card-compact .reward{font-size:17px!important}
body[data-frontend-theme] .task-card-compact .task-stock b{font-size:17px!important}
body[data-frontend-theme] .finance-overview{display:grid!important;grid-template-columns:minmax(0,1.35fr) repeat(2,minmax(0,1fr));gap:8px!important;margin:12px 0 18px!important}
body[data-frontend-theme] .finance-overview>div{padding:13px 8px!important;min-width:0;border-radius:12px!important;display:flex;flex-direction:column;justify-content:center;gap:7px}
body[data-frontend-theme] .finance-overview b{font-size:17px!important;letter-spacing:-.5px;display:block;min-width:0}
body[data-frontend-theme] .finance-overview small{font-size:12px!important;line-height:1.5!important;white-space:normal}
body[data-frontend-theme] .pc-wallet .pc-wallet-actions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:7px!important}
body[data-frontend-theme] .pc-wallet .pc-wallet-actions :is(button,a.pc-wallet-funds){min-width:0!important;margin:0!important;padding:8px 5px!important;font-size:12px!important;white-space:normal!important;overflow-wrap:normal!important;word-break:normal;line-height:1.4!important;min-height:44px;gap:4px}
body[data-frontend-theme] .pc-wallet-actions svg{flex-shrink:0;width:15px;height:15px}
body[data-frontend-theme] .task-card-compact .step-flow{gap:5px!important;align-items:stretch}
body[data-frontend-theme] .task-card-compact .step-flow span{display:flex;align-items:center;justify-content:center;font-size:11px!important;line-height:1.45!important;padding:7px 3px!important;min-height:34px;white-space:normal!important;overflow-wrap:normal!important;word-break:normal!important;box-sizing:border-box}
body[data-frontend-theme] .compact-task-footer{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:10px!important}
body[data-frontend-theme] .compact-task-allowance{min-width:0!important;gap:7px!important}
body[data-frontend-theme] .compact-task-allowance>div{font-size:12px!important;line-height:1.65!important;overflow-wrap:normal;word-break:normal}
body[data-frontend-theme] .compact-task-footer>button{width:auto!important;max-width:125px;min-height:44px!important;padding:9px 12px!important;font-size:13px!important;overflow-wrap:normal!important}
@media(max-width:360px){body[data-frontend-theme] .finance-overview{grid-template-columns:repeat(2,minmax(0,1fr))!important}body[data-frontend-theme] .finance-overview>div:first-child{grid-column:1/-1;flex-direction:row;align-items:center;justify-content:space-between;padding:12px!important}body[data-frontend-theme] .finance-overview>div:first-child b{order:2}body[data-frontend-theme] .compact-task-footer{grid-template-columns:1fr!important}body[data-frontend-theme] .compact-task-footer>button{max-width:none;width:100%!important}}

/* Titles and money stay subordinate to page content across all themes. */
body[data-frontend-theme] main :is(.page-heading h1,.pc-page-heading h1){font-size:22px!important;line-height:1.35!important}
body[data-frontend-theme] :is(.td-reward,.checkout-total strong,.checkout-total b,.holding-amount-grid b){font-size:20px!important;line-height:1.3!important}
body[data-frontend-theme] .vip-yields b{font-size:17px!important}
/* Commission source panels inherit the active theme, including nested text. */
body[data-frontend-theme] .finance-commission-source{background:var(--soft)!important;border:1px solid var(--line)!important;color:var(--ink)!important;padding:12px!important;border-radius:10px}
body[data-frontend-theme] .finance-commission-source :is(b,strong){color:var(--ink)!important;opacity:1!important;font-size:13px!important}
body[data-frontend-theme] .finance-commission-source span{color:var(--muted)!important;opacity:1!important}
body[data-frontend-theme] .finance-commission-source>div{align-items:baseline;gap:12px;flex-wrap:wrap;line-height:1.5}
body[data-frontend-theme] .finance-commission-source strong{margin-inline-start:auto;white-space:nowrap}
body[data-frontend-theme=prestige] .finance-commission-source{background:#2a3545!important;border-color:#465367!important}
body[data-frontend-theme=prestige] .finance-commission-source :is(b,strong){color:#f2d497!important}
body[data-frontend-theme=prestige] .finance-commission-source span{color:#cbd4e0!important}

body[data-frontend-theme] .team-center-page .team-center-header{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px;margin:12px 0 5px!important;flex-wrap:nowrap!important}
body[data-frontend-theme] .team-center-header h1{margin:0!important;font-size:22px!important;line-height:1.35;min-width:0;overflow-wrap:normal}
body[data-frontend-theme] .team-center-header>button{display:inline-flex;align-items:center;justify-content:center;gap:5px;flex:0 0 auto;min-height:36px!important;padding:8px 10px!important;font-size:12px!important;border-radius:9px;white-space:nowrap!important}
body[data-frontend-theme] .team-center-header>button svg{width:15px;height:15px}
body[data-frontend-theme] .team-center-header+p{font-size:13px;line-height:1.5;margin:0 0 12px!important}

body[data-frontend-theme] .purchase-balance-hint{padding:10px 12px;margin:0 0 10px;border:1px solid var(--line);border-radius:10px;background:var(--soft);color:var(--ink);font-size:12px}
body[data-frontend-theme] .purchase-balance-hint>div{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;line-height:1.6}
body[data-frontend-theme] .purchase-balance-hint b{font-size:14px;color:var(--accent);white-space:nowrap}
body[data-frontend-theme] .purchase-shortfall{border-top:1px solid var(--line);padding-top:8px;margin-top:8px}
body[data-frontend-theme] .purchase-shortfall>span{color:var(--ink);flex:1 1 160px}
body[data-frontend-theme] .purchase-shortfall button{display:inline-flex;align-items:center;gap:5px;min-height:40px;padding:8px 12px;font-size:12px}
body[data-frontend-theme] .purchase-shortfall svg{width:15px;height:15px}

body[data-frontend-theme] .compact-task-allowance>div>span{display:block;line-height:1.7;white-space:normal;word-break:normal}
body[data-frontend-theme] .compact-task-allowance .quota-value{font-size:12px!important;font-weight:600;color:var(--ink)!important;white-space:nowrap;display:inline!important}
