/* Compact controls share the same reading rhythm as the account tables. */
.brand strong{font-size:16px;white-space:nowrap;letter-spacing:.2px}
.ledger-balance-pair{display:inline-flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap}
.ledger-balance-pair i{font-style:normal;color:#8b9bb0}
.ledger-table th:nth-child(5){width:11%}.ledger-table th:nth-child(6){width:17%}
.ledger-table th:nth-child(7){width:22%}.ledger-table th:nth-child(8){width:5%}
.ledger-table td:nth-child(5),.ledger-table td:nth-child(6){text-align:center}
.ledger-table .money-change{min-width:66px;width:auto;padding:4px 9px}
.ledger-table td{height:46px!important}
.deposit-status{display:inline-flex;padding:5px 9px;border-radius:6px;background:#edf2f8;color:#8292a8;font-size:10px;font-weight:600}
.deposit-status.status-pending{background:#fff3dd;color:#a36c1f}.deposit-status.status-paid,.deposit-status.status-credited,.deposit-status.status-success{background:#e3f5ee;color:#208a68}

.history-panel{border:1px solid #d7e1ee;box-shadow:0 5px 20px #233d6008}
.history-result-filters{display:flex;align-items:center;flex-wrap:wrap;gap:7px;padding:10px 16px;background:#f0f4fa;border-block:1px solid #dce5f0}
.history-result-filters>span{color:#526987;font-size:11px;margin-right:6px;font-weight:600}
.history-result-filters>button{border:1px solid #d8e1ef;border-radius:6px;background:#fff;padding:3px;color:#58708d;cursor:pointer;font-size:11px}
.history-result-filters>button:first-of-type{padding:7px 12px}
.history-result-filters>button.selected{border-color:#526fa9;box-shadow:0 0 0 2px #526fa918}
.history-result-filters>button:first-of-type.selected{color:#fff;background:#304b73}
.history-panel .history-table{table-layout:fixed;min-width:650px}
.history-panel .history-table th{height:42px!important;background:#293f5f!important;color:#fff;text-align:center!important;border-bottom:1px solid #182d48}
.history-panel .history-table th:nth-child(1){width:16%}.history-panel .history-table th:nth-child(2){width:29%}
.history-panel .history-table th:nth-child(3){width:23%}.history-panel .history-table th:nth-child(4){width:15%}.history-panel .history-table th:nth-child(5){width:17%}
.history-panel .history-table .column-header{display:inline-flex;justify-content:center;position:relative;width:auto;color:#edf3ff;background:none;font-weight:600}
.history-panel .history-table .column-header>span{position:absolute;right:-14px;color:#adc2e1}
.history-panel .history-table tbody tr{background:#fff}.history-panel .history-table tbody tr:nth-child(even){background:#f0f4fa}
.history-panel .history-table tbody tr:hover{background:#e7eef9}
.history-panel .history-table td{height:49px!important;text-align:center!important;vertical-align:middle;padding:7px 10px!important;color:#334b6a;border-bottom:1px solid #dce5f0;font-variant-numeric:tabular-nums}
.history-panel .history-table td+td{border-left:1px solid #e4ebf4}
.history-issue{display:inline-flex;align-items:center;justify-content:center;min-width:76px;height:29px;background:#eaf0f8;border:1px solid #d4deec;border-radius:6px;color:#365171;font:600 12px ui-monospace,Consolas,monospace;letter-spacing:.4px}
.history-equation{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}.history-number{display:grid;place-items:center;width:27px;height:29px;background:#fff;border:1px solid #ccd7e5;border-radius:6px;font-size:14px;font-weight:700;color:#304b70}
.history-number.die-1,.history-number.die-4{color:#c74649}.history-operator{font-size:11px;color:#8293ab}.history-sum{display:grid;place-items:center;min-width:33px;height:30px;background:#334e76;border-radius:6px;color:#fff;font-size:14px}
.history-badges{display:inline-flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px}
.draw-badge{--draw-color:#536780;--draw-bg:#edf1f6;--draw-border:#d7dfe9;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:27px;min-width:48px;padding:3px 9px;border:1px solid var(--draw-border);border-radius:6px;color:var(--draw-color);background:var(--draw-bg);font-size:11px;line-height:1.4;font-weight:700;white-space:nowrap}
.draw-badge>i{width:5px;height:5px;background:currentColor;border-radius:50%}
.draw-red{--draw-color:#a2382d;--draw-bg:#ffe8e3;--draw-border:#efc8bf}.draw-amber{--draw-color:#8b4c0c;--draw-bg:#fff0d5;--draw-border:#ecd3aa}
.draw-indigo{--draw-color:#354ba4;--draw-bg:#e8edff;--draw-border:#cbd5f3}.draw-teal{--draw-color:#0d6861;--draw-bg:#def3ed;--draw-border:#b9ddd0}
.draw-violet{--draw-color:#7040a0;--draw-bg:#f0e6fb;--draw-border:#d9c5ef}.draw-blue{--draw-color:#245da2;--draw-bg:#e4effe;--draw-border:#c2d6f2}.draw-rose{--draw-color:#9c295c;--draw-bg:#fde6ef;--draw-border:#edc1d5}
.history-result-filters .draw-badge{min-height:22px;border:0;min-width:38px;padding:3px 7px;font-size:10px}
.history-time{display:inline-grid;gap:3px;color:#637995;font-size:10px}.history-time b{font-size:12px;color:#304b6d;font-weight:600}.history-none{color:#9aa8bb;font-size:14px}

.settings-banker{display:block!important;overflow:visible!important}
.settings-banker>.page-heading{margin-bottom:10px}.settings-banker>.page-heading h1{font-size:22px}.settings-banker>.page-heading p{font-size:11px;margin-top:4px}
.banker-page-tabs{display:flex;align-items:center;gap:5px;margin-bottom:10px;border-bottom:1px solid #dce5f0;padding-bottom:8px}
.banker-page-tabs>button{height:31px;padding:5px 16px;background:#e9eef7;color:#627491;border:1px solid transparent;border-radius:7px;font-size:12px;cursor:pointer}
.banker-page-tabs>button.selected{color:#255ee0;border-color:#bfd1f6;background:#eaf1ff;font-weight:700}.banker-page-tabs>span{margin-left:auto;font-size:10px;color:#8a9ab0}
.settings-banker>.advanced-card{max-height:none!important;height:auto!important;overflow:visible!important;margin:0;padding:15px 17px}
.banker-rule-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 16px}
.settings-banker .banker-rule-fields .advanced-field{min-width:0;gap:4px;font-size:11px;margin:0;align-content:start}
.settings-banker .banker-rule-fields input,.settings-banker .banker-rule-fields select{height:30px;min-height:30px!important;padding:5px 8px!important;font-size:12px}
.settings-banker .banker-rule-fields small{font-size:9px;line-height:1.3;color:#8997ac;min-height:12px}
.banker-rule-switches{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:12px}
.settings-banker .banker-rule-switches .setting-switch-row{min-height:37px;padding:7px 9px;margin:0;gap:7px;background:#f3f6fb;border-color:#e2e8f2}
.banker-rule-switches .setting-switch-label{font-size:10px}.banker-rule-switches .setting-switch-state{font-size:9px}.banker-rule-switches .setting-switch-control{transform:scale(.8);transform-origin:right center}
.banker-rule-note{display:flex;gap:10px;align-items:center;background:#edf3fc;border-radius:6px;margin-top:12px;padding:9px 11px;font-size:10px;color:#6e819f;line-height:1.5}.banker-rule-note>b{white-space:nowrap;color:#486589}
.settings-banker>.advanced-save{position:static!important;margin-top:10px;min-height:46px;padding:8px 14px}
.banker-seat-card .advanced-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.banker-record-card .table-wrap{max-height:none;overflow:visible}.banker-record-card h2{font-size:14px;margin:0 0 10px}

.command-workspace{--category:#3769d7;--category-soft:#eef3ff}
.command-category-tabs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
.command-category-tabs>button{display:flex;align-items:center;text-align:left;gap:8px;min-width:0;padding:12px 10px;border:1px solid #dce4ee;border-radius:10px;background:#fff;color:#5e718d;cursor:pointer;box-shadow:0 2px 6px #253b5b03}
.command-category-tabs>button>i{display:grid;place-items:center;width:26px;height:28px;flex-shrink:0;font-size:19px;font-style:normal;color:var(--category);background:var(--category-soft);border-radius:7px}
.command-category-tabs>button>span{min-width:0}.command-category-tabs b{font-size:11px;white-space:nowrap}.command-category-tabs small{display:block;font-size:9px;color:#8c9bb0;margin-top:3px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.command-category-tabs em{margin-left:auto;font-style:normal;font-size:10px;color:#9babc1}.command-category-tabs>button.selected{border-color:var(--category);background:var(--category-soft);box-shadow:0 0 0 2px color-mix(in srgb,var(--category) 8%,transparent)}
.category-basic{--category:#3769d7;--category-soft:#edf3ff}.category-combo{--category:#258773;--category-soft:#eaf7f1}.category-special{--category:#8951b4;--category-soft:#f4edfb}.category-sum{--category:#b0742b;--category-soft:#fff6e7}.category-triple{--category:#bf5775;--category-soft:#fff0f4}.category-action{--category:#5d7193;--category-soft:#eef2f7}
.command-search-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0}
.command-search-row>label{display:flex;align-items:center;gap:7px;background:#fff;border:1px solid #dce5ef;border-radius:7px;padding:0 10px;width:290px;max-width:50%;color:#94a1b3}
.command-search-row input{height:34px;border:0;outline:none;background:transparent;min-width:0;width:100%;font-size:12px;color:#3d5576}.command-search-row>span{font-size:10px;color:#8b9bb1}.command-search-row b{background:#e8eef8;padding:3px 5px;border-radius:4px;color:#5977a2}.command-search-row i{margin:0 7px;font-style:normal}
.command-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.command-card{min-width:0;border:1px solid #dbe4ef;border-radius:10px;background:#fff;overflow:hidden;box-shadow:0 3px 8px #243b5804}
.command-card>header{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;background:var(--category-soft);border-bottom:1px solid color-mix(in srgb,var(--category) 13%,white)}
.command-card>header>span{color:var(--category);font-size:13px;font-weight:700}.command-card>header>small{font-size:9px;color:#91a0b4}
.command-card>label{display:grid;gap:5px;padding:11px 12px 8px;font-size:10px;color:#8b9ab0}.command-card textarea{box-sizing:border-box;resize:none;min-width:0;width:100%;height:48px;padding:7px 8px;line-height:1.5;border:1px solid #dce5f0;border-radius:6px;background:#fbfcff;color:#3c5270;font-size:12px;outline:none;overflow:hidden}
.command-card textarea:focus{border-color:var(--category);box-shadow:0 0 0 2px var(--category-soft)}
.command-card>footer{display:flex;align-items:center;justify-content:space-between;padding:0 12px 11px;font-size:9px;color:#94a2b7}.command-card code{font-size:11px;color:var(--category);background:var(--category-soft);padding:4px 8px;border-radius:5px}
.command-pagination{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#8a9ab0;margin-top:12px}.command-pagination>div{display:flex;align-items:center;gap:10px}.command-pagination button{height:28px;border:1px solid #d7e1ef;border-radius:5px;padding:4px 10px;background:#fff;color:#617a9b;font-size:11px;cursor:pointer}.command-pagination button:disabled{opacity:.4;cursor:default}.command-pagination b{font-weight:500;color:#7187a5}.command-empty{padding:30px;text-align:center;background:#fff;border-radius:10px;color:#899ab1;font-size:12px}
.preference-page .advanced-save{position:static;min-height:46px;padding:8px 15px}

.button-composer{border:1px solid #dce5ef;border-radius:10px;padding:13px;margin:16px 0;background:#f8faff}
.button-composer-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.button-composer-heading h3{font-size:13px;margin:0;color:#314b6e}.button-composer-heading p{font-size:10px;color:#8a9bb2;margin:4px 0 0}.button-composer .btn{height:29px;min-height:29px;padding:4px 9px;font-size:10px}
.button-designer{display:grid;gap:12px;align-items:start}.button-row-editor{min-width:0;display:grid;gap:8px}
.button-design-row{border:1px solid #dde5ef;border-radius:8px;background:white;overflow:hidden}.button-design-row.expanded{border-color:#b9cdef}
.button-row-heading{display:flex;gap:5px;padding:8px;background:#edf2fa;align-items:center}.button-row-heading>div{display:flex;gap:3px;flex-shrink:0}.button-row-heading button{border:0;background:transparent;color:#7990ad;font-size:10px;cursor:pointer;padding:4px}
.button-row-title{display:flex;align-items:center;gap:7px;min-width:0;flex:1;text-align:left}.button-row-title>b{white-space:nowrap;color:#547297;font-size:11px}.button-row-title>span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#92a2b8;flex:1}.button-row-title>small{font-size:9px}
.button-row-fields{padding:9px;display:grid;gap:8px}.button-config-card{border:1px solid #e2e8f2;border-radius:7px;padding:10px;min-width:0}.button-config-card>header{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#6781a2;margin-bottom:8px}.button-config-card>header button{border:0;background:#f1f5fb;color:#8093b0;border-radius:4px;font-size:9px;padding:4px 7px;margin-left:4px;cursor:pointer}
.button-config-card label{display:grid;gap:4px;min-width:0;font-size:10px;color:#8799b0;margin-bottom:8px}.button-title-fields{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.button-config-card input,.button-config-card select{box-sizing:border-box;width:100%;min-width:0;height:30px;border:1px solid #dbe4ef;border-radius:5px;background:#fff;color:#486180;padding:5px 7px;font-size:11px}
.button-color-picker{display:flex;gap:5px;border:0;padding:0;margin:0 0 9px}.button-color-picker legend{font-size:10px;color:#8799b0;padding:0;margin-bottom:5px}.button-color-picker button{display:flex;gap:4px;align-items:center;border:1px solid #dce4ef;border-radius:5px;background:white;padding:4px 6px;font-size:10px;color:#7185a0;cursor:pointer}.button-color-picker button.selected{border-color:#6589c2;box-shadow:0 0 0 1px #6589c233}.button-color-picker i{width:8px;height:8px;border-radius:50%;background:#90a2ba}.button-color-picker .color-primary i{background:#3b7ae4}.button-color-picker .color-success i{background:#21a87a}.button-color-picker .color-danger i{background:#e25d68}
.custom-emoji-manual{font-size:9px;color:#8a9bb2}.custom-emoji-manual summary{cursor:pointer;margin-bottom:5px}
.add-inline-button{border:1px dashed #b8cce9;border-radius:6px;color:#5980b4;background:#f3f7fe;padding:9px;font-size:11px;cursor:pointer}.add-inline-button small{font-size:9px;margin-left:7px;color:#96a8c1}.add-inline-button:disabled{opacity:.4}
.button-designer-empty{padding:25px 15px;text-align:center;border:1px dashed #c6d6eb;border-radius:8px;color:#6b83a2;font-size:12px}.button-designer-empty p{font-size:10px;color:#94a4ba}
.button-live-preview{border:1px solid #dce4ee;border-radius:8px;background:#fff;padding:10px;min-width:0;grid-row:1}
.button-preview-heading{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#6a83a2;margin-bottom:8px}.button-preview-heading>div{display:flex;gap:3px}.button-preview-heading button{border:0;background:#f0f4fa;color:#96a6bc;border-radius:4px;font-size:9px;padding:4px 7px;cursor:pointer}.button-preview-heading button.selected{background:#e2edff;color:#4270b4}
.telegram-preview{padding:12px;background:#17212b;border-radius:8px}.telegram-message{padding:10px;border-radius:8px 8px 8px 2px;background:#293846;color:#e6edf4}.telegram-message>strong{color:#80b9df;font-size:11px}.telegram-message>p{white-space:pre-wrap;font-size:11px;line-height:1.6;margin:6px 0;max-height:56px;overflow:hidden}.telegram-message>small{display:block;text-align:right;font-size:8px;color:#8da2b3}
.telegram-button-rows{display:grid;gap:4px;margin-top:5px}.telegram-button-rows>div{display:flex;gap:4px}.telegram-preview-button{display:flex;align-items:center;justify-content:center;gap:4px;position:relative;flex:1;min-width:0;min-height:31px;border:0;border-radius:5px;background:#3b4b59;color:#fff;padding:6px 15px 6px 6px;cursor:pointer}.telegram-preview-button.primary{background:#3c79ce}.telegram-preview-button.success{background:#278e69}.telegram-preview-button.danger{background:#c75260}.telegram-preview-button b{font-size:10px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.telegram-preview-button span{font-size:12px}.telegram-preview-button i{position:absolute;right:5px;top:3px;font-style:normal;font-size:10px;opacity:.7}
.button-preview-help{font-size:9px;line-height:1.5;color:#99a8bb;margin:8px 0 0}.custom-emoji-help{display:flex;align-items:center;gap:8px;padding:10px 0 0;margin-top:10px;border-top:1px solid #e2e9f3}.custom-emoji-help>span{font-size:17px}.custom-emoji-help>p{font-size:9px;color:#93a2b7;margin:0;line-height:1.6;flex:1}.custom-emoji-help b{display:block;color:#7188a7;font-size:10px}
.deposit-review-banner{padding:12px 14px;margin-bottom:12px;border:1px solid #d8e5fa;border-radius:9px;background:#f1f6ff;color:#627b9d}
.deposit-review-banner>div:first-child{display:flex;align-items:center;gap:10px}.deposit-review-banner i{display:grid;place-items:center;width:30px;height:30px;border-radius:8px;background:#e0ebff;color:#4a73b4;font-size:12px;font-style:normal;flex-shrink:0}
.deposit-review-banner strong{font-size:12px;color:#3e6399}.deposit-review-banner p{font-size:10px;line-height:1.5;margin:4px 0 0}.deposit-review-banner .deposit-review-last{font-size:9px;color:#8a9fba;margin-top:8px}
.deposit-review-progress{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:10px;font-size:10px}.review-state{color:#9e762d;background:#fff4d9;border:1px solid #f1dfb8;border-radius:5px;padding:4px 7px}.deposit-review-progress small{font-size:9px;color:#8fa1b9}.deposit-review-progress>button{margin-left:auto;border:0;background:transparent;color:#8b9db6;font-size:10px;cursor:pointer}
.review-version-tabs{display:flex;gap:6px;margin-top:10px}.review-version-tabs button{border:1px solid #d5e1f3;background:#fff;color:#8095b3;border-radius:5px;font-size:10px;padding:5px 9px;cursor:pointer}.review-version-tabs button.active{color:#3f6cb0;background:#e2edff;border-color:#b8cfef}.review-version-tabs button:disabled{cursor:default;opacity:.6}
.rich-token-toolbar{display:flex;gap:5px;align-items:center;flex-wrap:wrap;padding:7px 9px;background:#fbfcff;border-bottom:1px solid #e3eaf5;font-size:10px;color:#91a1b8}.rich-token-toolbar button{border:1px solid #d7e5f7;background:#edf5ff;color:#5b7eae;border-radius:4px;padding:3px 6px;font-size:10px;cursor:pointer}
.settings-banker .banker-rule-switches .setting-switch-copy strong{font-size:11px;line-height:1.4}.settings-banker .banker-rule-switches .setting-switch{gap:5px}.settings-banker .banker-rule-switches .setting-switch-track{width:31px;height:18px}.settings-banker .banker-rule-switches .setting-switch-track i{width:12px;height:12px}.settings-banker .banker-rule-switches .is-on .setting-switch-track i{transform:translateX(13px)}
@media(min-width:1450px){.banker-rule-fields{grid-template-columns:repeat(4,minmax(0,1fr))}.button-designer{grid-template-columns:minmax(0,1fr) 260px}.button-live-preview{grid-column:2;position:sticky;top:0}.button-row-editor{grid-column:1;grid-row:1}}
@media(max-width:1100px){.command-category-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}.command-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.banker-rule-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.banker-rule-switches{grid-template-columns:repeat(2,minmax(0,1fr))}.history-equation{gap:4px}.history-number{width:22px}}
@media(max-width:700px){.command-card-grid,.banker-rule-fields,.banker-rule-switches,.banker-seat-card .advanced-stats{grid-template-columns:1fr}.command-search-row>span{display:none}.command-search-row>label{max-width:none;width:100%}.command-category-tabs>button{padding:8px}.command-category-tabs small{display:none}.command-category-tabs>button>i{display:none}.button-title-fields{grid-template-columns:1fr}.banker-rule-note{display:block}.history-panel .history-table{min-width:650px}}

/* User agency overview and read-only team drilldown. */
.original-user-table th:nth-child(1){width:16%}.original-user-table th:nth-child(2),.original-user-table th:nth-child(3),.original-user-table th:nth-child(4){width:8%}.original-user-table th:nth-child(5){width:12%}.original-user-table th:nth-child(6){width:16%}.original-user-table th:nth-child(7){width:10%}.original-user-table th:nth-child(8){width:9%}.original-user-table th:nth-child(9){width:13%}

.agency-cell{--tier:#5077bd;--tier-soft:#e9f0fc;box-sizing:border-box;display:inline-grid;grid-template-columns:31px minmax(0,1fr) 9px;align-items:center;gap:6px;width:103px;max-width:100%;min-height:36px;padding:4px 6px;border:1px solid #dfe8f5;border-radius:8px;background:#f7faff;color:#486696;text-align:center;cursor:pointer;transition:background .15s,border-color .15s,box-shadow .15s}
.agency-cell[data-tier="1"]{--tier:#7763b0;--tier-soft:#eee9fb}.agency-cell[data-tier="2"]{--tier:#4d79bf;--tier-soft:#e6effd}.agency-cell[data-tier="3"]{--tier:#328e86;--tier-soft:#e1f4ef}.agency-cell[data-tier="4"]{--tier:#9363b4;--tier-soft:#f1e8fa}.agency-cell:hover{background:#edf4ff;border-color:#bdcff0;box-shadow:0 2px 5px #3656870d}.agency-cell:focus-visible{outline:2px solid #7099df;outline-offset:2px}
.agency-tier{display:grid;align-content:center;justify-items:center;gap:2px;min-height:25px;padding:2px;border-radius:5px;background:var(--tier-soft);color:var(--tier)}.agency-tier b{font-size:10px;font-weight:700;white-space:nowrap;line-height:1.1}.agency-tier small{font-size:7px;line-height:1;color:var(--tier);opacity:.75}.agency-count{display:grid;gap:2px;justify-items:center;align-content:center}.agency-count strong{font-size:13px;line-height:1;font-variant-numeric:tabular-nums;color:#3b6fbc;font-weight:650}.agency-count small{font-size:8px;line-height:1;color:#91a2b9;white-space:nowrap}.agency-cell[data-empty="true"] .agency-count strong{color:#94a3b8}.agency-cell em{font-size:17px;font-style:normal;color:#94afd4;line-height:1}
.agency-column-popover{width:276px}.agency-sort-group>span{display:block;font-size:10px;color:#8b9ab0;margin:0 0 6px}.agency-sort-group .column-sort-options{margin-bottom:12px}.agency-sort-group .column-sort-options button{padding:7px 3px;font-size:11px}.agency-filter-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.agency-filter-fields label{font-size:10px;gap:5px!important}.agency-column-popover form>small{display:block;font-size:9px;line-height:1.5;color:#9aabc0;margin-top:8px}.agency-reset-sort{display:block;border:0;background:transparent;margin:11px auto 0;padding:2px;color:#829ab8;font-size:10px;cursor:pointer}.agency-reset-sort:disabled{opacity:.4;cursor:default}
.ledger-table-wrap .ledger-table tbody td[data-label="变动前后"]{text-align:center!important;vertical-align:middle}.ledger-table .ledger-balance-pair{box-sizing:border-box;display:inline-grid;grid-template-columns:minmax(0,1fr) 14px minmax(0,1fr);align-items:center;justify-content:center;gap:6px;width:176px;max-width:100%;margin-inline:auto;vertical-align:middle}.ledger-table .ledger-balance-pair .amount-chip{box-sizing:border-box;min-width:0;width:100%;padding:4px 5px;font-variant-numeric:tabular-nums}.ledger-table .ledger-balance-pair i{text-align:center;font-size:13px;line-height:1}

.agent-team-modal{width:min(1120px,96vw);max-height:91vh;padding:0;display:flex;flex-direction:column;overflow:hidden;border-radius:14px;box-shadow:0 28px 80px #14294438}.team-backdrop{z-index:120}.team-modal-header{display:flex;justify-content:space-between;align-items:center;padding:17px 22px;border-bottom:1px solid #e2e9f3;background:#fbfcff}.team-modal-header>div>span{font-size:10px;color:#8a9db6}.team-modal-header h2{font-size:19px;color:#263d5e;margin:5px 0 0;display:flex;gap:12px;align-items:center}.team-modal-header h2 small{font-size:11px;font-weight:400;color:#8a9db6}.team-modal-header .icon-button{width:30px;height:30px;border-radius:8px;background:#eef3fb;color:#7c8fa9;font-size:21px;border:0;cursor:pointer}
.team-modal-body{padding:12px 20px;overflow:auto;min-height:0}.team-navigation{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:10px}.team-navigation>button{border:1px solid #dce5f3;background:#fff;border-radius:6px;color:#5779a7;font-size:10px;padding:5px 8px;cursor:pointer}.team-navigation>button:disabled{opacity:.4;cursor:default}.team-navigation nav{display:flex;flex-wrap:wrap;gap:3px}.team-navigation nav button{border:0;background:transparent;color:#7e94b1;font-size:10px;cursor:pointer;max-width:140px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.team-navigation nav button+button:before{content:'›';margin-right:6px;color:#acbbd0}.team-navigation nav button:disabled{color:#466b9b;cursor:default}
.team-identity{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;background:#f4f7fc;border:1px solid #e4ebf4;border-radius:8px;font-size:10px;color:#899ab1;margin-bottom:13px}.team-identity>div{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.agency-level{padding:4px 7px;background:#e3edff;border:1px solid #cbdcf8;border-radius:5px;color:#4e73ac;font-weight:600}.agency-disabled{color:#a6794d}.team-identity b{font-size:11px;color:#526b8f}.team-identity button{border:0;background:transparent;padding:0 8px 0 0;color:#4b7cbf;font-size:10px;cursor:pointer}.team-identity button small{margin-left:5px;color:#8ca0ba;font-size:9px}
.team-filter-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.team-level-tabs{display:flex;gap:6px;flex-wrap:wrap}.team-level-tabs button{border:1px solid #dce5f2;border-radius:7px;background:#fff;color:#788da8;font-size:11px;padding:7px 11px;cursor:pointer}.team-level-tabs button b{font-size:10px;font-weight:500;background:#f0f4fb;color:#91a4be;border-radius:4px;padding:2px 5px;margin-left:8px}.team-level-tabs button.active{color:#356ad1;border-color:#b8cef2;background:#edf4ff}.team-level-tabs button.active b{background:#dae8ff;color:#517ab7}.team-refresh{border:0;background:transparent;font-size:10px;color:#8195b0;cursor:pointer}
.team-query-row{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:12px 0}.team-query-row>div{display:flex;background:#edf2f9;border-radius:6px;padding:3px;gap:2px}.team-query-row>div button{border:0;background:transparent;color:#8a9bb2;border-radius:4px;font-size:10px;padding:5px 12px;cursor:pointer}.team-query-row>div button.active{background:#fff;color:#456ba5;box-shadow:0 1px 4px #344a6f14}.team-query-row form{display:flex;gap:6px}.team-query-row input{width:230px;max-width:43vw;height:30px;box-sizing:border-box;border:1px solid #dbe4f0;border-radius:6px;font-size:10px;color:#516b8f;padding:5px 9px;background:#fff}.team-query-row form button{height:30px;padding:5px 10px;border:1px solid #dbe4f0;border-radius:6px;color:#6884a9;background:#f7faff;font-size:10px;cursor:pointer}
.team-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid #e0e8f3;border-radius:9px;background:#fafcff;margin-bottom:12px}.team-kpis>div{padding:11px 15px;display:grid;gap:6px}.team-kpis>div+div{border-left:1px solid #e3eaf4}.team-kpis span{font-size:10px;color:#8a9db6}.team-kpis b{font-size:20px;color:#34557f;font-variant-numeric:tabular-nums}.team-kpis small{font-size:9px;font-weight:400;color:#92a5c0;margin-left:6px}.agent-team-modal .positive{color:#14956a}.agent-team-modal .negative{color:#d85169}
.team-table-wrap{border:1px solid #e0e8f3;border-radius:8px;overflow:auto}.team-table-wrap table{table-layout:fixed;border-collapse:collapse;width:100%;min-width:760px}.team-table-wrap th{height:35px;background:#edf3fb;color:#788fae;font-size:10px;font-weight:500;text-align:left;padding:5px 12px;white-space:nowrap}.team-table-wrap th:nth-child(1){width:23%}.team-table-wrap th:nth-child(2){width:18%}.team-table-wrap th:nth-child(3),.team-table-wrap th:nth-child(4),.team-table-wrap th:nth-child(5){width:11%}.team-table-wrap th:nth-child(6){width:13%}.team-table-wrap th:nth-child(7){width:13%}.team-table-wrap td{border-top:1px solid #e5ecf5;padding:8px 12px;font-size:11px;color:#536e93;vertical-align:middle;overflow-wrap:anywhere}.team-table-wrap tbody tr:nth-child(even){background:#f7faff}.team-person{border:0;background:transparent;text-align:left;max-width:100%;padding:0;cursor:pointer;display:grid;gap:4px}.team-person strong{font-size:12px;color:#3e628f;overflow-wrap:anywhere}.team-person small{font-size:9px;color:#94a5be}.relative-tier{display:inline-block;padding:2px 5px;font-size:9px;border-radius:4px;color:#4474b7;background:#e8f0ff}.relative-tier.tier-2{background:#e5f5ef;color:#418a77}.relative-tier.tier-3{background:#f2eafd;color:#8b6aae}.team-parent{display:block;margin-top:4px;font-size:9px;color:#7d93b0}.team-parent span{display:block;margin-top:2px;color:#a0aec1;font-size:8px}.team-orders{display:block;font-size:9px;margin-top:4px;color:#98a8bf}.team-profit{display:inline-block;border-radius:5px;background:#edf2f9;padding:4px 7px;font-size:11px;font-weight:600}.team-profit.positive{background:#e2f5ed}.team-profit.negative{background:#fff0f2}.team-date{font-size:9px;color:#7b92af}.team-date small{display:block;margin-top:4px;font-size:9px;color:#9aaac0}.team-table-wrap .team-empty{text-align:center;color:#95a5bc;padding:30px;font-size:12px}.team-error{display:flex;align-items:center;justify-content:space-between;padding:12px;background:#fff2f3;color:#be6b76;font-size:12px;margin-bottom:10px;border-radius:6px}.team-error button{border:0;color:#b26872;background:transparent;cursor:pointer}
.team-pagination{display:flex;justify-content:space-between;align-items:center;padding-top:11px;font-size:10px;color:#91a2ba}.team-pagination>div{display:flex;align-items:center;gap:10px}.team-pagination button{border:1px solid #dae4f1;border-radius:5px;background:#fff;color:#7c96b8;font-size:15px;width:25px;height:25px;cursor:pointer}.team-pagination button:disabled{opacity:.35;cursor:default}.team-pagination b{font-weight:400;font-size:10px}.team-modal-note{border-top:1px solid #e3ebf5;padding:11px 20px;font-size:9px;line-height:1.6;color:#94a4ba;background:#fbfcff}.team-modal-note span{float:right;margin-left:10px}
@media(max-width:700px){.team-modal-header{padding:14px}.team-modal-body{padding:10px}.team-identity{display:grid;gap:10px}.team-query-row{align-items:stretch;flex-direction:column}.team-query-row input{width:100%;max-width:none}.team-query-row form{display:flex}.team-query-row form input{min-width:0;flex:1}.team-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.team-kpis>div{padding:10px}.team-kpis>div:nth-child(3){border-left:0}.team-kpis>div:nth-child(n+3){border-top:1px solid #e3eaf4}.team-modal-header h2{font-size:16px}.team-modal-header h2 small{font-size:9px}.team-level-tabs button{padding:6px 7px;font-size:10px}.team-level-tabs button b{margin-left:4px}.team-modal-note{padding:10px}.team-navigation nav{display:none}}

/* Compact paired activity and registration timestamps. */
.original-user-table th:nth-child(1){width:14%}.original-user-table th:nth-child(2),.original-user-table th:nth-child(3),.original-user-table th:nth-child(4){width:7%}.original-user-table th:nth-child(5){width:11%}.original-user-table th:nth-child(6){width:13%}.original-user-table th:nth-child(7){width:9%}.original-user-table th:nth-child(8){width:8%}.original-user-table th:nth-child(9),.original-user-table th:nth-child(10){width:12%}
.user-timestamp{display:inline-grid;gap:3px;justify-items:center;text-align:center;font-variant-numeric:tabular-nums;line-height:1.1;white-space:nowrap;vertical-align:middle}.user-timestamp b{font-size:10px;font-weight:550;color:#607899}.user-timestamp small{font-size:9px;color:#92a3ba}.user-time-empty{font-size:9px;color:#a0aec1;white-space:nowrap}.original-user-table th:nth-last-child(-n+2) .column-header{font-size:10px}

.operations-center{display:grid;gap:15px}.ops-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.ops-metrics article{padding:17px 20px;display:grid;gap:7px}.ops-metrics span{color:#8493ab;font-size:12px}.ops-metrics b{font-size:24px;color:#263a5e}.ops-tabs{display:flex;gap:7px;flex-wrap:wrap}.ops-tabs button{padding:9px 18px;background:#eaf0fa;border:0;border-radius:9px;color:#6f819d;font-weight:650}.ops-tabs .active{background:#2864ef;color:white}.ops-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:16px 0}.ops-note{font-size:12px;line-height:1.85;color:#8190a8;background:#f5f8fd;padding:12px 15px;border-radius:9px}.operations-center table td{padding:10px 12px!important;font-size:12px}.operations-center table small{display:block;color:#8999b1;font-size:10px;margin-top:5px}.ops-badge{padding:5px 9px;display:inline-flex;background:#edf2fc;color:#4d6ca0;border-radius:7px;white-space:nowrap}.ops-badge.pending,.ops-badge.reported{background:#fff1da;color:#bc811f}.ops-badge.paid,.ops-badge.active{background:#e3f7ef;color:#16996c}.ops-badge.rejected,.ops-badge.closed{background:#ffedf0;color:#d6536b}.ops-create-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:18px;align-items:start}.ops-red-preview{padding:18px}.ops-red-preview>span{display:block;color:#8392a9;margin-bottom:15px;font-size:12px}.ops-red-preview>div{padding:20px;border:1px solid #ffd4c5;background:linear-gradient(160deg,#fff3e6,#fff9f5);border-radius:14px;color:#995f3c;line-height:1.8;font-size:12px}.ops-red-preview h3{color:#c7573c;margin:0 0 15px}.ops-red-preview b{font-size:20px}.ops-red-preview button{width:100%;padding:10px;border:0;border-radius:8px;color:white;background:#d55d40}.ops-detail{max-width:730px!important;max-height:88vh;overflow:auto}.ops-detail dl{display:grid;grid-template-columns:120px minmax(0,1fr);gap:12px;font-size:13px;margin:20px 0}.ops-detail dt{color:#8b9ab1}.ops-detail dd{margin:0;overflow-wrap:anywhere}.ops-history p{display:grid;gap:4px;background:#f5f8fc;padding:10px;border-radius:8px;font-size:12px}.ops-history span,.ops-history small{color:#8393ab}@media(max-width:1000px){.ops-create-layout{grid-template-columns:1fr}.ops-red-preview{max-width:500px}}@media(max-width:650px){.ops-metrics,.ops-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ops-detail dl{grid-template-columns:85px 1fr}}

.group-binding-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.group-binding-card{display:grid;gap:9px;padding:15px;border:1px solid #e5ebf5;border-radius:12px;background:#fbfcff}.group-binding-card>span{font-weight:650;font-size:13px;color:#4a607e}.group-binding-card small{font-size:11px;color:#899ab1;line-height:1.7}.group-binding-card select{width:100%;min-width:0}.group-binding-actions{display:flex;align-items:center;gap:10px;margin:16px 0}.group-binding-actions>span{margin-right:auto;font-size:11px;color:#8294ae}.group-register{display:flex;align-items:end;gap:12px;border-top:1px solid #e8edf5;padding-top:15px}.group-register label{display:grid;gap:8px;font-size:12px;color:#7186a3;flex:1;max-width:420px}.group-register input{width:100%}@media(max-width:700px){.group-binding-grid{grid-template-columns:1fr}.group-register{align-items:stretch;flex-direction:column}.group-binding-actions{flex-wrap:wrap}}

.red-publish-controls{display:grid;gap:12px;margin:15px 0}.red-publish-blocked{padding:13px 15px;background:#fff5e7;border:1px solid #ffe1af;color:#946321;border-radius:10px;font-size:12px;line-height:1.7}.red-publish-blocked strong{display:block;margin-bottom:6px}.red-publish-blocked p{margin:4px 0}.ops-action-error{padding:12px 14px;border:1px solid #ffd5db;border-radius:9px;background:#fff1f3;color:#cc4d65;font-size:12px;line-height:1.7}.red-publish-progress{color:#3268d5;font-size:12px}.ops-detail button:disabled{opacity:.5;cursor:not-allowed}.red-publish-controls .advanced-actions{margin:0}

.red-master-card{display:flex;align-items:center;gap:18px;padding:20px 24px;border:1px solid #f5d89e;border-left:5px solid #e9a436;border-radius:15px;background:linear-gradient(115deg,#fff7e9,#fffdf8);box-shadow:0 6px 20px #ac7c1f08}.red-master-icon{display:grid;place-items:center;flex-shrink:0;width:58px;height:58px;border-radius:15px;font-size:29px;background:#ffe7bd}.red-master-copy{flex:1;min-width:0}.red-master-title{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.red-master-title h2{font-size:18px;color:#694b23;margin:0;font-weight:750}.red-master-title>span{font-size:11px;font-weight:650;color:#ab7420;background:#ffedcb;padding:4px 9px;border-radius:6px}.red-master-copy>p{margin:7px 0;font-size:13px;color:#987138}.red-master-copy>small{font-size:11px;color:#a28a66}.red-master-control .setting-switch-row{border:0;background:transparent;padding:0}.red-master-control .setting-switch-copy{display:none}.red-master-control .setting-switch{gap:10px}.red-master-control .setting-switch-track{width:52px;height:28px}.red-master-control .setting-switch-track i{width:22px;height:22px}.red-master-control .setting-switch.is-on .setting-switch-track i{transform:translateX(24px)}.red-master-card.is-enabled{border-color:#a6dbc8;border-left-color:#16a77b;background:linear-gradient(115deg,#ecfaf4,#fafffd)}.red-master-card.is-enabled .red-master-icon{background:#d3f2e5}.red-master-card.is-enabled h2{color:#21785e}.red-master-card.is-enabled .red-master-title>span{background:#d8f3e7;color:#138e66}.red-master-card.is-enabled .red-master-copy>p{color:#418b73}.red-master-card.is-enabled .red-master-copy>small{color:#7b9b8d}@media(max-width:650px){.red-master-card{gap:12px;padding:15px}.red-master-icon{width:42px;height:42px;font-size:23px}.red-master-title h2{font-size:16px}.red-master-title{gap:7px}.red-master-control .setting-switch-state{display:none}.red-master-copy>p{font-size:12px}}

.button-destination-note{font-size:10px;line-height:1.6;color:#6f88ab;margin:0 0 8px;padding:7px 9px;border:1px solid #dde8f7;background:#f0f6ff;border-radius:5px}.bank-priority-label{display:inline-block;margin-left:7px;border-radius:4px;background:#eaf2ff;color:#497ac6;font-size:9px;padding:2px 5px}
