:root{--surface:#f4f4f5;--ink:#1f2024;--muted:#8a8d94;--line:#e7e7e9;--line-soft:#eeeeef;--mono:"SFMono-Regular", Consolas, "Liberation Mono", monospace;color:var(--ink);background:var(--surface);letter-spacing:0;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:15px;font-weight:500;line-height:1.45}*{box-sizing:border-box}html{background:var(--surface)}body{min-width:320px;min-height:100svh;margin:0}button,input{letter-spacing:0}button,a{-webkit-tap-highlight-color:transparent}#root{min-height:100svh}.app-shell{background:var(--surface);grid-template-columns:236px minmax(0,1fr);min-height:100svh;display:grid}.app-shell.is-collapsed{grid-template-columns:74px minmax(0,1fr)}.app-shell.is-collapsed .brand-name,.app-shell.is-collapsed .brand .brand-mark-img,.app-shell.is-collapsed .nav-item span,.app-shell.is-collapsed .nav-section{display:none}.app-shell.is-collapsed .brand{justify-content:center;padding:0}.app-shell.is-collapsed .sidebar{padding-inline:12px}.app-shell.is-collapsed .nav-item{justify-content:center;padding:0}.app-shell.is-collapsed .page-panel:before{left:74px}.app-shell.is-compact th,.app-shell.is-compact td{height:46px}.app-shell.is-compact .metric,.app-shell.is-compact .settlement-row{height:44px}.sidebar{border-right:1px solid var(--line);background:#f6f6f7;height:100svh;padding:14px 10px;position:sticky;top:0;overflow-y:auto}.brand{align-items:center;gap:10px;height:38px;margin-bottom:30px;padding:0 4px;display:flex}.brand-mark{color:#fff;background:#202124;border-radius:50%;place-items:center;width:25px;height:25px;font-size:12px;font-weight:800;display:inline-grid}.brand-mark-img{object-fit:contain;width:42px;height:42px}.brand-mark-img.sm{width:25px;height:25px}.brand-mark-img.loading{animation:1.5s ease-in-out infinite pulse}.brand-name{color:var(--ink);font-size:17px;font-weight:700}.nav-list{flex-direction:column;gap:4px;display:flex}.nav-section{color:var(--muted);padding:20px 6px 6px;font-size:13px;font-weight:600}.nav-item{appearance:none;width:100%;height:38px;color:var(--ink);font:inherit;cursor:pointer;background:0 0;border:0;border-radius:13px;align-items:center;gap:10px;padding:0 10px;font-weight:650;display:flex}.nav-item:hover{background:#ececed}.nav-item.is-active{background:#dedede}.workspace{flex-direction:column;min-width:0;display:flex}.topbar{border-bottom:1px solid var(--line);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);background:#f9f9faeb;justify-content:flex-end;align-items:center;gap:26px;height:68px;padding:0 14px 0 24px;display:flex}.topbar-links{color:#52555b;align-items:center;gap:28px;font-weight:650;display:flex}.topbar-links button{appearance:none;color:inherit;font:inherit;cursor:pointer;background:0 0;border:0;font-weight:650}.topbar-links .is-current{color:var(--ink)}.topbar-actions{align-items:center;gap:10px;display:flex}.search-box{border:1px solid var(--line);width:min(320px,32vw);height:40px;color:var(--muted);background:#fff;border-radius:18px;align-items:center;gap:8px;padding:0 10px;display:flex}.search-box input{min-width:0;font:inherit;background:0 0;border:0;outline:0;flex:1}.search-clear{appearance:none;color:#8d9199;cursor:pointer;background:0 0;border:0;border-radius:10px;flex:none;place-items:center;width:28px;height:28px;display:inline-grid}.search-clear:hover{color:#202124;background:#f0f1f3}kbd{border:1px solid var(--line);height:21px;color:var(--muted);border-radius:7px;align-items:center;padding:0 8px;font-size:12px;display:inline-flex}.icon-button{width:32px;height:32px;color:var(--ink);cursor:pointer;background:0 0;border:0;border-radius:10px;place-items:center;display:inline-grid;position:relative}.icon-button:hover{background:#ececed}.has-badge:after{content:attr(data-count);color:#fff;background:#ff6b7a;border-radius:50%;place-items:center;min-width:17px;height:17px;font-size:11px;font-weight:750;display:inline-grid;position:absolute;top:-7px;right:-4px}.avatar{color:#fff;background:#cf5b8b;border:0;border-radius:50%;place-items:center;width:32px;height:32px;font-weight:760;display:inline-grid}.avatar-button{cursor:pointer}.user-menu{position:relative}.user-popover{z-index:20;border:1px solid var(--line);background:#fff;border-radius:18px;gap:8px;width:230px;padding:14px;display:grid;position:absolute;top:42px;right:0;box-shadow:0 18px 60px #14161c29}.user-popover strong{color:var(--ink);font-size:15px}.user-popover span,.user-popover em{color:var(--muted);font-size:13px;font-style:normal}.menu-action{width:100%;margin-top:4px}.avatar.sm{width:28px;height:28px;font-size:13px}.page-panel{min-height:calc(100svh - 68px);margin:0;padding:30px 20px 38px}.page-panel:before{content:"";pointer-events:none;z-index:-1;background:linear-gradient(#f3f3f4,#f8f8f9);position:fixed;inset:68px 0 0 236px}.page-heading,.filter-bar,.table-panel,.metric-strip{width:min(100%,1780px);margin-inline:auto}.page-heading{border:1px solid var(--line);background:#fff;border-bottom:0;border-radius:28px 28px 0 0;justify-content:space-between;align-items:flex-start;gap:20px;padding:26px 20px 22px;display:flex}.page-heading h1{color:var(--ink);margin:0;font-size:24px;font-weight:780;line-height:1.2}.page-heading p{color:var(--muted);margin:8px 0 0;font-size:14px}.heading-actions{align-items:center;gap:10px;display:flex}.sync-chip{border:1px solid var(--line);color:#676a72;white-space:nowrap;text-overflow:ellipsis;background:#f9f9fa;border-radius:999px;align-items:center;max-width:320px;min-height:30px;padding:0 10px;font-size:13px;font-weight:720;display:inline-flex;overflow:hidden}.sync-chip.success{color:#078f66;background:#f1fffa;border-color:#ccf5e8}.sync-chip.error{color:#d13f54;background:#fff5f6;border-color:#ffd8de}.sync-chip.loading{color:#202124}.filter-bar{border-inline:1px solid var(--line);background:#fff;grid-template-columns:minmax(260px,1.7fr) minmax(150px,.7fr) minmax(150px,.7fr) minmax(170px,.8fr) auto;gap:10px;padding:0 20px 18px;display:grid}.field{border:1px solid var(--line);color:#5f6269;background:#fff;border-radius:18px;justify-content:space-between;align-items:center;gap:9px;min-width:0;height:40px;padding:0 13px;font-weight:650;display:flex}.field.wide{justify-content:flex-start}.select-field{position:relative}.select-field select{appearance:none;width:100%;min-width:0;color:inherit;font:inherit;cursor:pointer;background:0 0;border:0;outline:0;font-weight:650}.select-field svg{pointer-events:none;flex:none}.ghost-button,.dark-button{border:1px solid var(--line);height:38px;font:inherit;cursor:pointer;border-radius:18px;justify-content:center;align-items:center;gap:7px;padding:0 14px;font-weight:720;display:inline-flex}.ghost-button.compact{border-radius:14px;height:30px;padding:0 10px;font-size:13px}.count-button{appearance:none;color:#38516b;min-width:54px;height:30px;font:inherit;cursor:pointer;background:#f7fbff;border:1px solid #dfe7f2;border-radius:999px;justify-content:center;align-items:center;gap:6px;padding:0 10px;font-size:13px;font-weight:780;display:inline-flex}.count-button:hover{color:#1f3f62;background:#fff;border-color:#b7cbe1}.ghost-button:disabled,.dark-button:disabled{opacity:.48;cursor:not-allowed}.ghost-button{color:var(--ink);background:#fff}.dark-button{color:#fff;background:#090909;border-color:#090909}.dark-button.compact{min-width:72px}.metric-strip{border:1px solid var(--line);background:#fff;border-top:0;border-radius:0 0 28px 28px;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;padding:0 20px 20px;display:grid}.metric{appearance:none;border:1px solid var(--line);color:#62656c;min-width:0;height:48px;font:inherit;text-align:left;background:#fbfbfc;border-radius:17px;align-items:center;gap:10px;padding:0 14px;display:flex}button.metric{cursor:pointer}button.metric:hover{background:#fff;border-color:#cfd5de}.metric.is-active{background:#fff;border-color:#202124;box-shadow:inset 0 0 0 1px #202124}.metric strong{color:var(--ink);margin-left:auto;font-size:16px}.metric.blue svg{color:#38a7ff}.metric.green svg{color:#11b887}.metric.rose svg{color:#ff5f86}.metric.amber svg{color:#ef9d18}.content-grid{grid-template-columns:repeat(12,minmax(0,1fr));gap:14px;width:min(100%,1780px);margin:14px auto 0;display:grid}.content-grid.single-panel{grid-template-columns:minmax(0,1fr)}.content-grid.single-panel .span-5{grid-column:auto}.span-7{grid-column:span 7}.span-5{grid-column:span 5}.table-panel{border:1px solid var(--line);background:#fff;border-radius:22px;margin-top:14px;overflow:hidden}.agent-table-panel{overflow-x:auto}.content-grid .table-panel{margin-top:0}.section-title{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:12px;height:58px;padding:0 18px;display:flex}.section-title h2{color:var(--ink);margin:0;font-size:17px;font-weight:780}.section-title span{color:var(--muted);font-size:13px}table{border-collapse:collapse;table-layout:fixed;width:100%}.agent-table{min-width:1360px}.agent-table th:first-child,.agent-table td:first-child{width:170px}.agent-table th:nth-child(2),.agent-table td:nth-child(2){width:210px}.agent-table th:nth-child(3),.agent-table td:nth-child(3){width:110px}.agent-table th:nth-child(4),.agent-table td:nth-child(4),.agent-table th:nth-child(5),.agent-table td:nth-child(5),.agent-table th:nth-child(9),.agent-table td:nth-child(9),.agent-table th:nth-child(10),.agent-table td:nth-child(10){width:120px}.agent-table th:nth-child(6),.agent-table td:nth-child(6),.agent-table th:nth-child(7),.agent-table td:nth-child(7),.agent-table th:nth-child(8),.agent-table td:nth-child(8){width:140px}.agent-table.commission-table{min-width:1040px}.agent-table .action-column{z-index:2;background:#fff;width:132px;position:sticky;right:0;box-shadow:-10px 0 18px #ffffffe6}.agent-table th.action-column{z-index:3;background:#fdfdfd}th,td{border-bottom:1px solid var(--line-soft);text-align:left;vertical-align:middle;white-space:nowrap;text-overflow:ellipsis;height:56px;padding:0 12px;overflow:hidden}th{color:#2b2d31;background:#fdfdfd;height:46px;font-size:14px;font-weight:760}.sort-button{appearance:none;width:100%;min-width:0;height:34px;color:inherit;font:inherit;cursor:pointer;background:0 0;border:0;align-items:center;gap:6px;padding:0;font-weight:760;display:inline-flex}.sort-button svg{color:#8d9199;flex:none}.sort-button em{color:var(--muted);font-size:12px;font-style:normal;font-weight:650}.sort-button.is-active{color:#111317}.sort-button.is-active svg{color:#078f66}td{color:#53565d;font-size:14px;font-weight:560}.user-cell{align-items:center;gap:9px;min-width:0;display:flex}.user-cell strong{text-overflow:ellipsis;color:#555861;overflow:hidden}.pill,.money-pill,.status-dot,.source-real,.source-code{border:1px solid var(--line);max-width:100%;min-height:28px;color:var(--ink);text-overflow:ellipsis;background:#fafafa;border-radius:999px;justify-content:center;align-items:center;padding:0 10px;font-weight:760;display:inline-flex;overflow:hidden}.pill.success,.source-real{color:#07946b;background:#f1fffa;border-color:#ccf5e8}.pill.muted,.source-code{color:#b66a00;background:#fffaf0;border-color:#eee2ca}.pill.neutral{color:#464a52}.note-pill{color:#38516b;text-overflow:ellipsis;background:#f7fbff;border:1px solid #dfe7f2;border-radius:999px;align-items:center;max-width:100%;min-height:28px;padding:0 10px;font-size:13px;font-weight:700;display:inline-flex;overflow:hidden}.note-cell{white-space:normal}.agent-table .note-pill{white-space:normal;text-overflow:clip;padding-block:4px;line-height:1.35;overflow:visible}.muted-text{color:var(--muted)}.money-pill{color:#111;background:#f6f6f7}.status-dot{gap:6px}.status-dot:before{content:"";background:currentColor;border-radius:50%;width:7px;height:7px}.status-dot.enabled{color:#078f66}.status-dot.paused{color:#b56a00}.settlement-list{padding:10px 16px 16px}.settlement-row{border-bottom:1px solid var(--line-soft);color:#5e6168;align-items:center;gap:10px;height:52px;font-weight:640;display:flex}.settlement-row:last-child{border-bottom:0}.settlement-row strong{color:var(--ink);margin-left:auto}.settlement-icon{border:1px solid var(--line);color:#202124;background:#fafafa;border-radius:12px;place-items:center;width:30px;height:30px;display:inline-grid}.mono{font-family:var(--mono)}.empty-cell{height:96px;color:var(--muted);text-align:center;font-weight:650}.info-panel{min-height:180px}.info-body{color:#555861;align-items:center;min-height:120px;padding:24px 18px;display:flex}.info-body strong{color:var(--ink);font-size:16px}.modal-backdrop{z-index:40;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);background:#14161c57;place-items:center;padding:24px;display:grid;position:fixed;inset:0}.login-modal{border:1px solid var(--line);background:#fff;border-radius:22px;gap:14px;width:min(420px,100%);padding:18px;display:grid;box-shadow:0 24px 80px #14161c38}.data-modal{width:min(1180px,100vw - 48px);max-height:calc(100svh - 48px);overflow:auto}.data-modal .table-panel{width:100%;margin-top:0}.data-modal table{min-width:860px}.modal-loading{border:1px dashed var(--line);min-height:160px;color:var(--muted);border-radius:18px;place-items:center;font-weight:720;display:grid}.modal-title{justify-content:space-between;align-items:center;gap:12px;display:flex}.modal-title h2{color:var(--ink);margin:0;font-size:18px}.modal-title span{color:var(--muted);margin-top:4px;font-size:13px;font-weight:650;display:block}.login-modal label{color:#555861;gap:7px;font-size:13px;font-weight:720;display:grid}.login-modal input{border:1px solid var(--line);width:100%;height:42px;color:var(--ink);background:#fff;border-radius:16px;outline:0;padding:0 13px}.login-modal input:focus{border-color:#bfc3cc}.percent-input{align-items:center;gap:8px;display:flex}.percent-input input{flex:1}.percent-input strong{width:36px;color:var(--ink);font-size:15px}.modal-submit{width:100%;margin-top:4px}@media (width<=1180px){.app-shell{grid-template-columns:74px minmax(0,1fr)}.brand-name,.nav-item span,.nav-section{display:none}.sidebar{padding-inline:12px}.nav-item{justify-content:center;padding:0}.page-panel:before{left:74px}.topbar-links{display:none}}@media (width<=900px){.topbar{justify-content:space-between}.search-box{width:min(260px,52vw)}.page-heading{flex-direction:column}.heading-actions{flex-wrap:wrap;width:100%}.filter-bar,.metric-strip,.content-grid{grid-template-columns:1fr}.span-7,.span-5{grid-column:auto}.table-panel{overflow-x:auto}table{min-width:860px}}@media (width<=640px){.app-shell{grid-template-columns:1fr}.sidebar{display:none}.page-panel:before{inset-left:0}.topbar{padding-inline:10px}.topbar-actions{gap:4px}.search-box kbd,.topbar-actions .icon-button:nth-of-type(n+3){display:none}}.auth-screen{background:linear-gradient(135deg,#f6f6f7 0%,#e8e9eb 100%);place-items:center;min-height:100svh;padding:20px;display:grid}.auth-card{border:1px solid var(--line);background:#fff;border-radius:16px;width:100%;max-width:420px;padding:48px 40px;box-shadow:0 2px 12px #0000000f}.auth-brand{align-items:center;gap:14px;margin-bottom:32px;display:flex}.auth-brand .brand-mark-img{object-fit:contain;flex-shrink:0;width:48px;height:48px}.auth-brand .brand-mark{color:#fff;background:#202124;border-radius:50%;flex-shrink:0;place-items:center;width:42px;height:42px;font-size:20px;font-weight:800;display:inline-grid}.auth-brand h1{color:var(--ink);margin:0;font-size:22px;font-weight:700;line-height:1.2}.auth-brand p{color:var(--muted);margin:4px 0 0;font-size:14px}.auth-field{flex-direction:column;gap:8px;margin-bottom:20px;display:flex}.auth-field span{color:var(--ink);font-size:14px;font-weight:600}.auth-field input{appearance:none;border:1px solid var(--line);background:#fff;border-radius:10px;padding:12px 14px;font-size:15px;transition:all .2s}.auth-field input:focus{border-color:#202124;outline:none;box-shadow:0 0 0 3px #20212414}.auth-error{color:#991b1b;background:#fef2f2;border:1px solid #fecaca;border-radius:10px;margin-bottom:20px;padding:12px 14px;font-size:14px;font-weight:500}.auth-submit{width:100%;margin-bottom:16px}.auth-submit:disabled{opacity:.6;cursor:not-allowed}.auth-hint{text-align:center;color:var(--muted);margin:0;font-size:13px;line-height:1.5}.auth-loading{flex-direction:column;align-items:center;gap:16px;padding:60px 40px;display:flex}.auth-loading .brand-mark-img{object-fit:contain;width:48px;height:48px;animation:1.5s ease-in-out infinite pulse}.auth-loading .brand-mark{color:#fff;background:#202124;border-radius:50%;place-items:center;width:48px;height:48px;font-size:22px;font-weight:800;animation:1.5s ease-in-out infinite pulse;display:inline-grid}.auth-loading p{color:var(--muted);margin:0;font-size:15px}@keyframes pulse{0%,to{opacity:1;transform:scale(1)}50%{opacity:.7;transform:scale(.95)}}
