:root{font-family:Inter,"Microsoft YaHei",sans-serif;color:#172033;background:#f4f7fb}*{box-sizing:border-box}body{margin:0}.hidden{display:none!important}button,input,select{font:inherit}button:disabled{cursor:not-allowed;opacity:.55}.login-shell{min-height:100vh;display:grid;place-items:center;padding:24px;background:linear-gradient(145deg,#f7faff,#edf3fc)}.login-card{width:min(380px,100%);background:#fff;border:1px solid #dce5f2;border-radius:18px;padding:32px;box-shadow:0 22px 60px #23406a1a}.login-card img{display:block;width:66px;margin:0 auto 12px}.login-card h1{text-align:center;margin:0}.login-card>p:not(.error){margin:7px 0 24px;text-align:center;color:#7a879a;font-size:12px}.login-card label{display:grid;gap:7px;font-size:13px;font-weight:700;margin:14px 0}.login-card input,.price-grid input,.price-grid select{height:42px;border:1px solid #ccd7e6;border-radius:9px;padding:0 12px;background:#fff;outline:0}.login-card input:focus,.price-grid input:focus,.price-grid select:focus{border-color:#2f6fed;box-shadow:0 0 0 3px #2f6fed1f}.login-card button,#save-prices{width:100%;height:42px;border:0;border-radius:9px;background:#2f6fed;color:#fff;font-weight:800;cursor:pointer}.login-card .login-back{margin-top:9px;border:1px solid #d4deeb;background:#fff;color:#536174}.verification-hint{margin:6px 0 2px;padding:11px;border-radius:9px;background:#f2f6fd;color:#63738a;font-size:12px;line-height:1.6}.login-persistence{display:block;margin-top:12px;text-align:center;color:#7a879a;font-size:11px}.error{min-height:20px;color:#dc2626;font-size:13px}.portal{min-height:100vh;display:grid;grid-template-columns:220px 1fr}.portal>aside{position:sticky;top:0;height:100vh;background:#fff;border-right:1px solid #e2e8f1;padding:22px 14px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:10px;padding:0 8px 24px}.brand img{width:42px}.brand strong,.brand span{display:block}.brand span{font-size:12px;color:#7a879a;margin-top:3px}.portal nav{display:grid;gap:5px}.portal nav button,.logout{display:flex;align-items:center;gap:8px;border:0;background:transparent;border-radius:9px;padding:10px 12px;text-align:left;color:#536174;cursor:pointer;font-weight:700}.portal nav button i{display:inline-grid;place-items:center;width:22px;height:22px;font-style:normal}.portal nav button.active{background:#eaf1ff;color:#2465df}.logout{margin-top:auto}.workspace{min-width:0;padding:25px 30px 42px;max-width:1420px;width:100%;margin:auto}.workspace>header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.workspace>header h1{margin:0;font-size:24px}.workspace>header p{margin:4px 0 0;color:#718097;font-size:12px}.ghost,.text-button{border:1px solid #d4deeb;background:#fff;border-radius:8px;padding:8px 14px;cursor:pointer;color:#42536b;font-weight:700}.page{display:none}.page.active{display:block}.summary-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.summary-grid article,.panel{background:#fff;border:1px solid #dfe7f1;border-radius:12px;box-shadow:0 7px 22px #314d7210}.summary-grid article{padding:17px}.summary-grid span{display:block;color:#65748a;font-size:12px;margin-bottom:7px}.summary-grid strong{font-size:22px;color:#1f5ed8}.panel{padding:18px;margin-top:15px}.panel-title{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:15px}.panel-title h2{font-size:16px;margin:0}.panel-title p{margin:4px 0 0;color:#76849a;font-size:11px}.panel-title button:not(.text-button){border:0;border-radius:8px;background:#2f6fed;color:#fff;padding:9px 16px;font-weight:800;cursor:pointer}.dashboard-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:15px}.compact-panel{padding-bottom:15px}.business-summary{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid #edf1f6;border-radius:10px}.business-summary div{padding:13px}.business-summary div+div{border-left:1px solid #edf1f6}.business-summary span,.price-summary span{display:block;color:#748197;font-size:11px;margin-bottom:5px}.business-summary b{font-size:18px}.price-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.price-summary>div{padding:12px;border-radius:9px;background:#f5f8fc}.price-summary b{font-size:13px;color:#245fc2}.price-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.price-grid label{display:grid;gap:6px;font-size:12px;font-weight:700}.boundary-note{display:flex;align-items:center;gap:9px;margin-top:14px;padding:12px;border:1px solid #c8e2d7;border-radius:9px;color:#176d51;background:#effaf5;font-size:11px}.count-badge{padding:5px 9px;border-radius:999px;color:#2465df;background:#eaf1ff;font-size:11px;font-weight:800}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;min-width:780px}th,td{text-align:left;padding:12px 9px;border-bottom:1px solid #edf1f6;font-size:12px}th{color:#65748a}td small{color:#7d899b}.status{display:inline-block;padding:4px 8px;border-radius:99px;background:#e7f8ef;color:#168254}.status.inactive{background:#f2f3f5;color:#6f7a89}.orders{display:grid;gap:7px}.order{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:12px;border:1px solid #edf1f6;border-radius:9px;font-size:12px}.order>span{display:grid;gap:3px}.order>span:last-child{text-align:right}.order small{color:#7c899b}.order b{color:#245fc2}.finance-summary{margin-bottom:0}.waiting-panel{min-height:180px;display:flex;align-items:center;gap:15px}.waiting-icon{width:46px;height:46px;display:grid;place-items:center;flex:0 0 auto;border-radius:12px;color:#2f6fed;background:#eaf1ff;font-size:23px;font-weight:800}.waiting-panel div{flex:1}.waiting-panel h2{margin:0 0 5px;font-size:17px}.waiting-panel p{margin:0;color:#718097;font-size:12px}.waiting-panel button{border:1px solid #d6deea;border-radius:8px;padding:9px 14px;background:#f6f8fb;color:#8390a2}.empty{text-align:center;padding:28px;color:#8290a3}.toast{position:fixed;right:24px;bottom:24px;background:#172033;color:#fff;padding:12px 18px;border-radius:9px;box-shadow:0 10px 30px #17203330}
.overview-summary{grid-template-columns:repeat(3,1fr)}.price-grid label small,.price-summary small{display:block;color:#7a879a;font-size:10px;font-weight:500;margin-top:3px}.connection-state{margin:12px 0 0;color:#7a879a;font-size:11px}.finance-table{min-width:1120px}.finance-table td{white-space:nowrap}.finance-table td:first-child{white-space:normal;min-width:150px}.withdrawal-panel{margin-top:15px}.inline-form,.ticket-form{display:grid;grid-template-columns:1fr 1fr auto;align-items:end;gap:12px}.inline-form label,.ticket-form label{display:grid;gap:6px;font-size:12px;font-weight:700}.inline-form input,.ticket-form input,.ticket-form select,.ticket-form textarea,.copy-row input,.reply-row textarea{width:100%;border:1px solid #ccd7e6;border-radius:9px;padding:10px 12px;background:#fff;outline:0}.inline-form input,.ticket-form input,.ticket-form select,.copy-row input{height:42px}.inline-form button,.ticket-form button,.copy-row button,.reply-row button{height:42px;border:0;border-radius:9px;background:#2f6fed;color:#fff;padding:0 16px;font-weight:800;cursor:pointer}.record-list,.ticket-list{display:grid;gap:9px;margin-top:14px}.record-row{display:flex;justify-content:space-between;gap:16px;padding:12px;border:1px solid #edf1f6;border-radius:9px}.record-row span{display:grid;gap:3px}.record-row span:last-child{text-align:right}.record-row small{color:#7d899b}.referral-panel{min-height:190px;display:flex;align-items:flex-start;gap:15px}.referral-panel>div:last-child{flex:1}.referral-panel h2{margin:4px 0 5px;font-size:17px}.referral-panel p{color:#718097;font-size:12px}.copy-row{display:flex;gap:9px;margin-top:15px}.copy-row input{background:#f7f9fc}.ticket-form{grid-template-columns:1fr 180px auto}.ticket-body{grid-column:1/-1}.ticket-form textarea{min-height:92px;resize:vertical}.ticket-card{border:1px solid #e1e8f2;border-radius:11px;padding:14px}.ticket-card>header{display:flex;justify-content:space-between;gap:15px}.ticket-card>header>div{display:grid;gap:4px}.ticket-card small{color:#7d899b}.ticket-messages{display:grid;gap:7px;margin:12px 0}.ticket-message{display:grid;grid-template-columns:120px 1fr auto;gap:10px;padding:9px;border-radius:8px;background:#f6f8fb;font-size:12px}.reply-row{display:grid;grid-template-columns:1fr auto;gap:9px;align-items:end}.reply-row textarea{min-height:42px;max-height:120px;resize:vertical}.compact-empty{padding:12px}
.rate-panel{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:16px 18px;background:linear-gradient(115deg,#f8fbff,#f1f6ff)}.rate-panel>div:first-child{display:grid;gap:4px}.rate-panel strong{font-size:19px;color:#1f5ed8}.rate-panel small{color:#77869b}.eyebrow{color:#58708f;font-size:11px;font-weight:800}.rate-meta{display:grid;grid-template-columns:auto auto;align-items:center;justify-items:end;gap:4px 10px}.rate-meta b{font-size:12px}.rate-meta small{grid-column:1/-1}.finance-rule{margin-top:15px}.invite-price-form{display:grid;grid-template-columns:repeat(3,1fr) auto;gap:12px;align-items:end}.invite-price-form label{display:grid;gap:6px;font-size:12px;font-weight:700}.invite-price-form input{height:42px;border:1px solid #ccd7e6;border-radius:9px;padding:0 12px;background:#fff;outline:0}.invite-price-form small{color:#7a879a;font-size:10px;font-weight:500}.invite-price-form button{height:42px;border:0;border-radius:9px;background:#2f6fed;color:#fff;padding:0 18px;font-weight:800;cursor:pointer}.panel-title #fill-invite-defaults{width:auto;height:auto;border:1px solid #d4deeb;background:#fff;color:#42536b;padding:8px 14px}.invite-list{display:grid;gap:11px}.invite-card{border:1px solid #dfe7f1;border-radius:11px;padding:14px;background:#fff}.invite-card.disabled{background:#fafbfc;opacity:.8}.invite-card>header{display:flex;justify-content:space-between;gap:16px}.invite-card>header>div:first-child{display:grid;gap:4px}.invite-card>header strong{font-size:15px}.invite-card small{color:#7a879a}.invite-status{display:flex;align-items:center;gap:9px}.invite-status b{font-size:12px;color:#536174}.invite-prices{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0}.invite-prices span{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 11px;border-radius:8px;background:#f5f8fc;color:#718097;font-size:11px}.invite-prices b{color:#245fc2}.invite-actions{display:grid;grid-template-columns:1fr auto auto;gap:8px}.invite-actions input{min-width:0;height:40px;border:1px solid #d7e0ec;border-radius:8px;padding:0 11px;color:#536174;background:#f8fafc}.invite-actions button{height:40px;border:0;border-radius:8px;background:#2f6fed;color:#fff;padding:0 15px;font-weight:800;cursor:pointer}.invite-actions button.secondary{border:1px solid #d4deeb;background:#fff;color:#536174}
.preset-invite-list{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}.preset-invite-list .invite-card{height:100%;display:flex;flex-direction:column}.preset-invite-list .invite-card>header{display:grid}.preset-invite-list .invite-status{margin-top:9px;justify-content:space-between}.preset-invite-list .invite-actions{margin-top:auto}.invite-heading{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.profit-badge{display:inline-flex;align-items:center;padding:3px 7px;border-radius:999px;background:#eaf1ff;color:#2465df;font-size:10px;font-weight:800}.profit-badge.muted{background:#f0f2f5;color:#7d899b}.missing-preset{border-style:dashed;background:#fafbfc}.missing-preset .invite-prices b{color:#8995a5}
@media(max-width:1000px){.portal{grid-template-columns:82px 1fr}.brand div,.portal nav button span{display:none}.portal nav button{justify-content:center}.portal nav button i{font-size:18px}.summary-grid,.price-grid{grid-template-columns:repeat(2,1fr)}.dashboard-grid{grid-template-columns:1fr}.inline-form,.ticket-form{grid-template-columns:1fr 1fr}.inline-form button,.ticket-form button{grid-column:1/-1}.ticket-body{grid-column:1/-1}.invite-price-form{grid-template-columns:1fr 1fr}.invite-price-form button{grid-column:1/-1}.preset-invite-list{grid-template-columns:1fr}}
@media(max-width:650px){.portal{display:block}.portal>aside{position:static;height:auto;display:flex;flex-direction:row;align-items:center;padding:9px;overflow:auto}.brand{padding:0;margin-right:auto}.brand div,.logout{display:none}.portal nav{display:flex}.portal nav button{flex:0 0 auto}.portal nav button span{display:inline}.workspace{padding:17px 13px 32px}.workspace>header h1{font-size:20px}.summary-grid,.price-grid{grid-template-columns:1fr 1fr}.summary-grid strong{font-size:18px}.business-summary,.price-summary{grid-template-columns:1fr}.business-summary div+div{border-left:0;border-top:1px solid #edf1f6}.waiting-panel{align-items:flex-start;flex-wrap:wrap}.waiting-panel button{margin-left:61px}.inline-form,.ticket-form,.invite-price-form{grid-template-columns:1fr}.inline-form button,.ticket-form button,.ticket-body,.invite-price-form button{grid-column:auto}.copy-row{display:grid}.ticket-message{grid-template-columns:1fr}.reply-row{grid-template-columns:1fr}.reply-row button{width:100%}.record-row{display:grid}.record-row span:last-child{text-align:left}.rate-panel{display:grid}.rate-meta{justify-items:start}.invite-card>header{display:grid}.invite-status{justify-content:space-between}.invite-prices{grid-template-columns:1fr}.invite-actions{grid-template-columns:1fr 1fr}.invite-actions input{grid-column:1/-1}}
.portal .workspace{margin:0 auto}.cny-equivalent{display:block;margin-top:3px;color:#7d899b;font-size:11px;font-weight:500}
#referral-page .referral-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin:2px 0 8px}#referral-page .referral-heading h2{margin:0;font-size:19px}#referral-page .referral-heading p{margin:4px 0 0;color:#536174;font-size:12px}#referral-page .referral-panel{display:block;min-height:0;padding:16px;margin-top:10px}#referral-page .panel-title{margin-bottom:11px}#referral-page .connection-state{margin-top:9px;color:#536174}#referral-page .connection-state:empty{display:none}#referral-page .invite-card{padding:12px;box-shadow:none}#referral-page .invite-prices{margin:10px 0}#referral-page .empty{padding:20px}.agent-invite-section{margin-top:26px;padding-top:22px;border-top:1px solid #d8e1ed}.target-badge{display:inline-flex;align-items:center;padding:3px 7px;border:1px solid #ced9e8;border-radius:999px;background:#fff;color:#42536b;font-size:10px;font-weight:800}.agent-invite-card{border-color:#bfcfea;background:#fbfdff}

/* Agent portal follows the desktop control center's dark, rounded visual language. */
:root{color-scheme:dark;color:#edf2fa;background:#080d16;--agent-bg:#080d16;--agent-sidebar:#0c1320;--agent-panel:#111a29;--agent-panel-soft:#162133;--agent-line:#26344a;--agent-text:#edf2fa;--agent-muted:#91a0b6;--agent-accent:#718cff;--agent-accent-soft:#202e52}
body,.workspace{background:var(--agent-bg);color:var(--agent-text)}
.login-shell{background:radial-gradient(circle at 20% 10%,#1c2850 0,transparent 38%),var(--agent-bg)}
.login-card,.portal>aside,.summary-grid article,.panel,.invite-card,.ticket-card{background:var(--agent-panel);border-color:var(--agent-line);box-shadow:0 16px 38px #0004}
.portal>aside{background:var(--agent-sidebar)}
.brand span,.workspace>header p,.panel-title p,.summary-grid span,.business-summary span,.price-summary span,.price-grid label small,.price-summary small,.connection-state,.record-row small,.ticket-card small,.ticket-message small,.invite-card small,.invite-price-form small,.order small,.rate-panel small,.eyebrow,#referral-page .referral-heading p,#referral-page .connection-state,td small{color:var(--agent-muted)}
.portal nav button,.logout{color:#aab6c8}.portal nav button.active{background:var(--agent-accent-soft);color:#9eb0ff}
.workspace>header{gap:16px}.identity-strip{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:7px}.identity-strip span{padding:5px 9px;border:1px solid var(--agent-line);border-radius:999px;background:var(--agent-panel);color:var(--agent-muted);font-size:11px}
.summary-grid strong,.price-summary b,.order b,.rate-panel strong,.invite-prices b{color:#9bb0ff}
.business-summary,.order,.record-row,.ticket-card,.invite-card,.agent-invite-section,th,td{border-color:var(--agent-line)}
.business-summary div+div{border-color:var(--agent-line)}
.business-summary,.price-summary>div,.invite-prices span,.ticket-message,.rate-panel,.verification-hint,.missing-preset,.invite-card.disabled{background:var(--agent-panel-soft)}
.ghost,.text-button,.login-card .login-back,.panel-title #fill-invite-defaults,.invite-actions button.secondary{border-color:var(--agent-line);background:var(--agent-panel-soft);color:#c6d0df}
.login-card input,.price-grid input,.price-grid select,.inline-form input,.ticket-form input,.ticket-form select,.ticket-form textarea,.copy-row input,.reply-row textarea,.invite-price-form input,.invite-actions input,.withdraw-form input,.withdraw-form select{border:1px solid var(--agent-line);background:#0c1421;color:var(--agent-text);outline:0}
.login-card input:focus,.price-grid input:focus,.price-grid select:focus,.inline-form input:focus,.ticket-form input:focus,.ticket-form select:focus,.ticket-form textarea:focus,.invite-price-form input:focus,.withdraw-form input:focus,.withdraw-form select:focus{border-color:var(--agent-accent);box-shadow:0 0 0 3px #718cff22}
button,#save-prices,.invite-price-form button,.inline-form button,.ticket-form button,.copy-row button,.reply-row button,.invite-actions button{border-radius:10px}
.panel,.summary-grid article,.invite-card,.ticket-card,.login-card{border-radius:16px}
.boundary-note{border-color:#35506a;background:#142738;color:#9bd6c1}
.count-badge,.profit-badge{background:var(--agent-accent-soft);color:#a9b8ff}.target-badge{border-color:var(--agent-line);background:var(--agent-panel-soft);color:#c5cede}.locked-badge{display:inline-flex;align-items:center;padding:3px 7px;border:1px solid #665d30;border-radius:999px;background:#2a2615;color:#e8cf6e;font-size:10px;font-weight:800}
.status{background:#17372d;color:#70d6ac}.status.inactive{background:#242d3a;color:#a0adbd}
.agent-invite-card{border-color:#40598a;background:#121d31}.missing-preset{border-style:dashed}
.compact-overview{grid-template-columns:repeat(4,1fr)}.compact-sales-panel{padding:16px}.sales-price-grid{grid-template-columns:repeat(3,1fr)}.price-facts{display:flex;justify-content:space-between;gap:10px;margin-top:2px;font-size:11px}.price-facts span{color:var(--agent-muted)}.price-facts b{color:#9bb0ff}.compact-sales-panel .connection-state:empty{display:none}.agent-invite-section{margin-top:14px;padding-top:14px}.agent-invite-section .referral-heading{align-items:center!important;margin-bottom:0!important}.agent-invite-section .referral-panel{margin-top:8px!important;padding:12px!important}.agent-invite-section .invite-card{padding:11px}.agent-invite-section .invite-prices{margin:8px 0}.agent-invite-section .invite-actions input,.agent-invite-section .invite-actions button{height:36px}
@media(max-width:1000px){.compact-overview,.sales-price-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:650px){.compact-overview,.sales-price-grid{grid-template-columns:1fr}}
.relation-panel{margin-bottom:15px}.relation-panel table{min-width:680px}
.withdraw-form{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));align-items:end;gap:12px}.withdraw-form label{display:grid;gap:6px;font-size:12px;font-weight:700}.withdraw-form input,.withdraw-form select{width:100%;height:42px;border-radius:9px;padding:0 12px}.withdraw-form .withdraw-note{grid-column:span 3}.withdraw-form button{height:42px;border:0;background:#2f6fed;color:#fff;padding:0 16px;font-weight:800;cursor:pointer}.withdrawal-record>span:last-child{max-width:58%}.withdrawal-record small{overflow-wrap:anywhere}
.direct-price-summary{display:block;margin-bottom:8px;color:#aab6c8}.direct-price-form{display:grid;grid-template-columns:repeat(3,minmax(120px,1fr)) auto;gap:7px;align-items:end}.direct-price-form label{display:grid;gap:4px;color:var(--agent-muted);font-size:10px}.direct-price-form input{width:100%;height:34px;border:1px solid var(--agent-line);border-radius:8px;padding:0 8px;background:#0c1421;color:var(--agent-text)}.direct-price-form button{height:34px;border:0;border-radius:8px;padding:0 11px;background:#2f6fed;color:#fff;font-weight:800}.direct-price-unavailable{display:block;color:var(--agent-muted)}
@media(max-width:1000px){.withdraw-form{grid-template-columns:1fr 1fr}.withdraw-form .withdraw-note{grid-column:span 1}.withdraw-form button{grid-column:1/-1}}
@media(max-width:650px){.identity-strip{align-items:flex-start;flex-direction:column}.withdraw-form,.direct-price-form{grid-template-columns:1fr}.withdraw-form button{grid-column:auto}.withdrawal-record>span:last-child{max-width:none}.business-summary div+div{border-color:var(--agent-line)}}
.agent-modal{position:fixed;inset:0;z-index:20;display:grid;place-items:center;padding:20px;background:#02050bb8}.agent-modal>section{width:min(420px,100%);padding:24px;border:1px solid var(--agent-line);border-radius:18px;background:var(--agent-panel);box-shadow:0 24px 70px #0008}.agent-modal h2{margin:0 0 8px;font-size:18px}.agent-modal p{margin:0 0 20px;color:var(--agent-muted);font-size:12px;line-height:1.7}.agent-modal>section>div{display:flex;justify-content:flex-end;gap:9px}.danger-button{border:0;border-radius:9px;padding:9px 15px;background:#dc3f4f;color:#fff;font-weight:800}.danger-text{color:#ff8c98!important}
.traffic-price-grid{grid-template-columns:minmax(220px,1fr)}.agent-invite-section:not(#agent-invite-panel) .referral-panel{display:block}.agent-invite-section:not(#agent-invite-panel) .custom-invite-block{width:100%;margin-top:12px;padding-top:12px;border-top:1px solid var(--agent-line)}.custom-invite-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.agent-invite-section:not(#agent-invite-panel) .custom-invite-head button{height:36px;border:0;border-radius:9px;padding:0 14px;background:#2f6fed;color:#fff;font-weight:800;white-space:nowrap;cursor:pointer}.invite-preview{display:grid;place-items:center;height:36px;border:1px solid var(--agent-line);border-radius:10px;padding:0 15px;background:var(--agent-panel-soft);color:#c6d0df;text-decoration:none;font-size:12px;font-weight:800}.finance-table{min-width:780px}.withdrawal-list{display:grid;margin-top:14px;border-top:1px solid var(--agent-line)}.withdrawal-row{display:grid;grid-template-columns:1fr 1fr auto;align-items:center;gap:16px;padding:13px 4px;border-bottom:1px solid var(--agent-line)}.withdrawal-row time{color:var(--agent-muted);font-size:12px}.withdrawal-row b{color:#a9b8ff;font-size:12px}
@media(max-width:650px){.custom-invite-head{align-items:stretch;flex-direction:column}.custom-invite-head button{width:100%}.withdrawal-row{grid-template-columns:1fr auto}.withdrawal-row time{grid-column:1/-1;grid-row:2}}
.customer-list-panel{margin-top:0}.customer-table{min-width:1180px}.customer-name-view,.customer-link-actions{display:flex;align-items:center;gap:8px}.customer-name-view strong{white-space:nowrap}.self-customer-name{display:inline-flex;padding:4px 9px;border-radius:999px;background:#17372d;color:#70d6ac}.customer-name-edit{display:grid;grid-template-columns:minmax(120px,1fr) auto auto;gap:6px}.customer-name-edit input{min-width:0;height:34px;border:1px solid var(--agent-line);border-radius:8px;padding:0 9px;background:#0c1421;color:var(--agent-text)}.customer-name-edit button{height:34px;border:0;border-radius:8px;padding:0 10px;background:#2f6fed;color:#fff;font-weight:800}.customer-name-edit .text-button{background:var(--agent-panel-soft);color:#c6d0df}.purchase-history{position:relative;min-width:150px}.purchase-history summary{cursor:pointer;color:#a9b8ff;font-weight:800;white-space:nowrap}.purchase-history[open]{z-index:30}.purchase-history-popover{position:fixed;z-index:30;top:115px;left:50%;width:min(360px,calc(100vw - 32px));padding:15px;border:1px solid #405577;border-radius:15px;background:#0e1827;box-shadow:0 24px 70px #000c;transform:translateX(-50%)}.purchase-history-popover header{display:grid;grid-template-columns:1fr 1fr;gap:9px;padding-bottom:11px;border-bottom:1px solid var(--agent-line);color:var(--agent-muted);font-size:10px}.purchase-history-popover header span:last-child{text-align:right}.purchase-history-list{display:grid;gap:7px;max-height:260px;overflow:auto;padding-top:11px}.purchase-history-list>div{display:grid;grid-template-columns:1fr auto auto;gap:11px;align-items:center;padding:9px 10px;border-radius:9px;background:var(--agent-panel-soft);font-size:11px}.purchase-history time{color:var(--agent-muted)}.purchase-history b{color:#9bb0ff}.customer-link-actions .text-button{white-space:nowrap}
.traffic-balance{color:#70d6ac;white-space:nowrap}
