.invest-commerce{display:grid;gap:28px;min-width:0}.invest-commerce h3{margin:0 0 14px}.invest-commerce h4{margin:0 0 8px}.invest-commerce-filters,.invest-commerce-actions,.invest-commerce-pager{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}.invest-commerce-filters{margin:14px 0}.invest-commerce-filters label{min-width:150px;flex:1;max-width:380px}.invest-commerce label,.invest-customer-dialog label{display:flex;flex-direction:column;gap:7px;min-width:0}.invest-commerce input,.invest-commerce select,.invest-customer-dialog input,.invest-customer-dialog select{box-sizing:border-box;min-height:42px;width:100%;min-width:0;max-width:100%}.invest-finance-values{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 24px;margin:22px 0}.invest-finance-values div{min-width:0}.invest-finance-values dt{color:var(--text-muted,#a2a6b0);font-size:13px}.invest-finance-values dd{margin:8px 0 0;font-size:22px;font-weight:600;overflow-wrap:anywhere}.invest-table-wrap{overflow:auto;max-width:100%}.invest-customer-table{width:100%;border-collapse:collapse;text-align:left}.invest-customer-table td,.invest-customer-table th{padding:12px 8px;border-bottom:1px solid var(--border,#30343d)}.invest-customer-table td:first-child{overflow-wrap:anywhere}.invest-customer-table small{display:block;margin-top:5px;color:var(--text-muted,#a2a6b0)}.invest-commerce-pager{justify-content:flex-end;margin-top:14px}.invest-customer-section{border-top:1px solid var(--border,#30343d);padding-top:24px}.invest-commerce-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:14px 0}.invest-commerce summary,.invest-customer-dialog summary{cursor:pointer;padding:12px 0;font-weight:600}.invest-finance-record,.invest-history-row{border-top:1px solid var(--border,#30343d);padding:16px 0}.invest-history-row p,.invest-finance-record p{overflow-wrap:anywhere}.invest-customer-dialog{box-sizing:border-box;width:min(840px,calc(100vw - 32px));max-height:calc(100dvh - 40px);padding:24px;border:1px solid var(--border,#30343d);border-radius:18px;background:var(--surface,#14171d);color:var(--text,#f2f3f6);overflow-y:auto}.invest-customer-dialog::backdrop{background:#05070bba}.invest-customer-dialog>[data-close-customer]{float:right;margin-left:16px}.invest-customer-dialog section{margin:24px 0}.invest-support-message{border-left:2px solid var(--border,#30343d);padding:8px 14px;margin:12px 0}.invest-support-message p{white-space:pre-wrap}.invest-customer-dialog :focus-visible,.invest-commerce :focus-visible{outline:2px solid var(--accent,#9b87ff);outline-offset:3px}.invest-customer-dialog .button{white-space:normal} [data-panel=referrals] [data-referral-link]{width:100%;box-sizing:border-box} [data-panel=referrals] form{display:flex;gap:14px;align-items:flex-end;flex-wrap:wrap} [data-panel=referrals] form label{flex:1;min-width:140px}
@media(max-width:700px){.invest-finance-values{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 12px}.invest-finance-values dd{font-size:19px}.invest-commerce-fields{grid-template-columns:1fr}.invest-customer-dialog{padding:18px}.invest-customer-table{font-size:13px}.invest-commerce-filters label{max-width:none}.invest-commerce-filters button{flex:0 0 auto}.invest-customer-dialog .invest-commerce-actions>*{flex:1}.invest-customer-table th:nth-child(4),.invest-customer-table td:nth-child(4){display:none}}

.referral-panel{max-width:900px}.referral-panel>section{margin-block:28px}.referral-panel h2{margin:0 0 16px;font-size:20px}.referral-panel p{line-height:1.6}.referral-link-controls{display:flex;gap:16px;align-items:center}.referral-link-controls input{flex:1;min-width:0}.referral-link-controls button{flex:none}.referral-link-section .quiet{margin:16px 0 0}.referral-balance,.referral-ledger{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums;text-align:left}.referral-balance :is(th,td),.referral-ledger :is(th,td){padding:14px 12px;border-bottom:1px solid var(--line,#30343d)}.referral-balance th{font-weight:500}.referral-balance th svg{width:21px;height:21px;vertical-align:middle;margin-right:12px}.referral-balance td{text-align:right;font-size:18px;font-weight:600;white-space:nowrap}.referral-balance [data-balance-kind=available]{background:var(--accent-soft,rgba(124,92,255,.12))}.referral-balance [data-balance-kind=earned] td,.referral-balance [data-balance-kind=available] td,.referral-ledger [data-ledger-kind=earned] td:last-child{color:var(--success,#55d6a7)}.referral-balance [data-balance-kind=pending] td{color:var(--warning,#f2b66d)}.referral-balance [data-balance-kind=refund] td,.referral-ledger [data-ledger-kind=refund] td:last-child{color:var(--danger,#f07777)}.referral-panel form[data-request-referral]{margin:20px 0 12px;gap:18px;display:flex;align-items:flex-end;flex-wrap:wrap}.referral-panel form label{display:grid;gap:8px;max-width:280px}.referral-panel .invest-history-row>div{display:flex;gap:18px;justify-content:space-between}.referral-panel .referral-status{color:var(--muted,#a6a6b2)}.referral-panel [data-payout-status=paid] .referral-status{color:var(--success,#55d6a7)}.referral-panel [data-payout-status=requested] .referral-status{color:var(--warning,#f2b66d)}.referral-ledger th{color:var(--muted,#a6a6b2);font-size:13px;font-weight:500}.referral-ledger td:last-child,.referral-ledger th:last-child{text-align:right;white-space:nowrap}.referral-panel [data-referral-message]:empty{display:none}
@media(max-width:600px){.referral-link-controls{align-items:stretch;flex-direction:column}.referral-panel .profile-section{padding:18px}.referral-balance :is(th,td),.referral-ledger :is(th,td){padding:12px 6px}.referral-balance th svg{margin-right:8px}.referral-balance td{font-size:16px}.referral-ledger{font-size:12px}}
.referral-registration-note{margin:16px 0 0;padding-left:12px;border-left:2px solid var(--warning,#f2b66d);color:var(--muted,#a6a6b2);font-size:13px;line-height:1.6}
