:root{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:#232d2b;background:#f5f7f7;font-size:13px;font-synthesis:none;--green:#137b65;--line:#e5eae8;--muted:#7a8581}*{box-sizing:border-box;letter-spacing:0}body{margin:0}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.45;cursor:default}button:focus-visible,a:focus-visible{outline:2px solid #137b65;outline-offset:3px}button{border:1px solid var(--line);border-radius:6px;background:#fff;color:inherit;min-height:34px;padding:7px 12px;display:inline-flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap}button:hover{background:#f0f5f3}button.primary{background:var(--green);color:white;border-color:var(--green)}button.danger{color:#bb4545}button.icon{width:34px;padding:7px}svg{width:17px;height:17px;flex-shrink:0;stroke-width:1.8}input,select{width:100%;height:38px;border:1px solid #dce3e0;background:#fff;border-radius:5px;padding:8px 10px;color:inherit;outline:none;min-width:0}input:focus,select:focus{border-color:var(--green);box-shadow:0 0 0 2px #137b6510}input[type=checkbox]{accent-color:var(--green);width:16px;height:16px;margin:0;box-shadow:none}a{color:var(--green)}h1,h2,h3,p{margin:0}h1{font-size:21px;font-weight:650}h2{font-size:17px}h3{font-size:14px}.muted{color:var(--muted)}.row{display:flex;gap:10px;align-items:center}.spread{justify-content:space-between}.stack{display:grid;gap:15px}.brand{font-size:16px;font-weight:650;display:flex;align-items:center;gap:10px}.brand img{width:32px;height:32px;border-radius:7px}.brand small{font-size:10px;font-weight:400;color:var(--muted);display:block;margin-top:2px}.sidebar{position:fixed;left:0;top:0;bottom:0;width:210px;background:white;border-right:1px solid var(--line);padding:28px 20px;display:flex;flex-direction:column}.nav{display:grid;gap:7px;margin-top:40px}.nav button{justify-content:flex-start;border:0;background:transparent;height:41px;padding-left:13px;color:#6b7772}.nav button.active{background:#e8f3ef;color:var(--green);font-weight:600}.sidebar-foot{margin-top:auto;font-size:11px;color:#8e9994;padding:12px}.topbar{margin-left:210px;height:65px;border-bottom:1px solid var(--line);background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 36px}.breadcrumb{color:#84908b;font-size:12px}.breadcrumb b{color:#36413c;font-weight:500}.avatar{width:29px;height:29px;border-radius:50%;background:#e4efea;color:var(--green);display:grid;place-items:center;font-size:12px}.main{margin-left:210px;padding:30px 36px;max-width:1560px}.page-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px;gap:10px}.page-title p{margin-top:7px;color:var(--muted);font-size:12px}.stats{display:flex;border-bottom:1px solid var(--line);margin-bottom:22px;gap:0}.stat{min-width:150px;padding:0 35px 18px 0;margin-right:32px}.stat+.stat{border-left:1px solid var(--line);padding-left:32px}.stat span{font-size:12px;color:var(--muted)}.stat strong{font-size:25px;display:block;font-weight:600;margin-top:7px}.stat:nth-child(2) strong{color:#b38423}.stat:nth-child(3) strong{color:var(--green)}.workspace{background:white;border:1px solid var(--line);border-radius:7px;overflow:hidden}.toolbar{padding:15px 18px;display:flex;align-items:center;gap:10px;flex-wrap:wrap}.search{position:relative;max-width:300px;flex:1;min-width:160px}.search svg{position:absolute;top:11px;left:11px;color:#929d97;width:16px}.search input{padding-left:34px;background:#fafcfb}.toolbar select{width:145px}.table-scroll{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap;font-size:12px}th{height:40px;background:#f7f9f8;color:#7a8580;font-weight:500;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}td{height:65px;border-bottom:1px solid #eff2f0;color:#48534e}th,td{padding:10px 16px}th:first-child,td:first-child{width:42px;padding-left:20px;padding-right:5px}tbody tr:hover{background:#fafcfb}td.name{font-weight:600;font-size:13px;color:#28342d}.phone{font-variant-numeric:tabular-nums}.company{max-width:240px;overflow:hidden;text-overflow:ellipsis}.tag{display:inline-block;font-size:11px;padding:3px 7px;background:#f1f4f2;border-radius:4px;color:#6f7b74}.tag.green{color:#137b65;background:#eaf4ef}.tag.amber{color:#a57c22;background:#faf4e7}.copy{font-size:12px;color:var(--green);background:#fff;border-color:#dbe9e2;min-height:30px;padding:5px 9px}.table-footer{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;font-size:12px;gap:10px;color:var(--muted)}.pagination{display:flex;align-items:center;gap:10px}.selection{padding:10px 18px;background:#edf5f1;border-top:1px solid #dceae3;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px}.empty{padding:70px 20px;text-align:center;color:var(--muted)}.empty svg{width:32px;height:32px;color:#a1b6aa;margin-bottom:12px}.empty h3{color:#4b5e52;margin-bottom:7px}.empty button{margin-top:18px}.mobile-list{display:none}.bottom-nav{display:none}.org-layout{display:grid;grid-template-columns:220px 1fr;gap:24px}.departments{border-right:1px solid var(--line);padding-right:20px}.departments button{display:flex;width:100%;justify-content:space-between;margin-bottom:7px;border:0;background:transparent}.departments button.active{background:#e7f2ed;color:var(--green)}.departments h3{margin:0 0 18px 10px}.people{border-top:1px solid var(--line)}.person{display:flex;align-items:center;gap:12px;padding:17px 0;border-bottom:1px solid var(--line)}.person-info{flex:1;min-width:0}.person-info small{display:block;color:var(--muted);margin-top:5px}.person .avatar{width:35px;height:35px}.account{max-width:550px;background:white;border:1px solid var(--line);border-radius:6px;padding:24px}.account dl{display:grid;grid-template-columns:90px 1fr;gap:18px;margin:24px 0}.account dt{color:var(--muted)}.account dd{margin:0}.auth{min-height:100dvh;display:grid;place-items:center;padding:24px;background:#f4f7f5}.auth-box{width:100%;max-width:380px;background:white;border:1px solid var(--line);padding:32px;border-radius:8px}.auth-box .brand{margin-bottom:30px}.auth-box h1{font-size:21px;margin-bottom:8px}.auth-box p{font-size:12px;color:var(--muted);margin-bottom:24px}.auth-box button{width:100%;margin-top:6px;height:40px}.field{display:grid;gap:7px;font-size:12px}.field label{color:#5a6861}.form-error{font-size:12px;color:#bc4141;line-height:1.6;min-height:18px}.auth-footer{text-align:center;font-size:11px;color:var(--muted);margin-top:24px}dialog{border:1px solid var(--line);border-radius:8px;padding:0;width:460px;max-width:calc(100% - 28px);max-height:88dvh;color:inherit;box-shadow:0 20px 80px #142d2426}dialog::backdrop{background:#162c244a}dialog header{padding:18px 22px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}dialog header h2{font-size:16px}.dialog-body{padding:22px;overflow:auto;max-height:65dvh}.dialog-actions{padding:14px 22px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:9px}.upload{border:1px dashed #b5cbbd;background:#f8fbf9;border-radius:6px;padding:28px 16px;text-align:center}.upload svg{color:var(--green);width:28px;height:28px;margin-bottom:10px}.upload input{height:auto;margin-top:14px;font-size:12px;background:white}.preview{border:1px solid var(--line);max-height:180px;overflow:auto}.preview table{font-size:11px}.preview td,.preview th{height:auto;padding:9px}.notice{font-size:12px;line-height:1.8;background:#f6f8f6;padding:12px;border-radius:5px;color:#627468;overflow-wrap:anywhere}.error-list{color:#b14a43;font-size:11px;line-height:1.8;max-height:100px;overflow:auto}#toast{position:fixed;bottom:32px;left:50%;transform:translateX(-50%);z-index:10;background:#263c31;color:white;padding:11px 18px;border-radius:6px;font-size:12px;opacity:0;pointer-events:none;max-width:90%;transition:opacity .15s}#toast.show{opacity:1}.mobile-brand{display:none}.loading{padding:70px;text-align:center;color:var(--muted)}
@media(min-width:1600px){.main{margin-right:auto}}
@media(max-width:1000px){.sidebar{width:175px;padding:25px 14px}.topbar,.main{margin-left:175px}.main{padding:25px 22px}.topbar{padding:0 22px}.stat{min-width:110px;margin-right:12px;padding-right:15px}.stat+.stat{padding-left:20px}.company{max-width:160px}th,td{padding:10px}.org-layout{grid-template-columns:170px 1fr}}
@media(max-width:680px){:root{font-size:12px}.sidebar{display:none}.topbar{margin:0;padding:0 16px;height:57px;position:sticky;top:0;z-index:3}.breadcrumb{display:none}.mobile-brand{display:flex}.mobile-brand .brand{font-size:14px}.mobile-brand img{width:27px;height:27px}.topbar .user-name{display:none}.main{margin:0;padding:20px 14px 100px}h1{font-size:19px}.page-title{margin-bottom:20px;align-items:flex-start}.page-title p{font-size:11px}.page-title button{font-size:12px;min-height:32px}.stats{margin-bottom:17px;justify-content:space-between}.stat{min-width:0;flex:1;margin:0;padding:0 12px 16px}.stat:first-child{padding-left:2px}.stat+.stat{padding-left:20px}.stat span{font-size:11px}.stat strong{font-size:22px;margin-top:6px}.toolbar{padding:12px;gap:8px}.search{max-width:none;flex-basis:100%}.toolbar select{width:auto;flex:1;height:33px;font-size:11px}.table-scroll{display:none}.mobile-list{display:block}.contact{display:grid;grid-template-columns:18px minmax(0,1fr) auto;gap:10px;padding:15px 12px;border-top:1px solid var(--line);align-items:center}.contact-details{min-width:0}.contact-name{font-weight:600;font-size:13px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}.contact-name .tag{font-weight:400;font-size:10px;padding:2px 5px}.contact-phone{margin-top:6px;color:#43564a;font-size:12px}.contact-company{color:#839086;font-size:11px;margin-top:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.contact-right{display:grid;justify-items:end;gap:7px}.contact-right small{color:#8b968f;font-size:10px}.copy{font-size:11px;padding:6px 8px;min-height:33px}.copy svg{width:14px;height:14px}.table-footer{padding:12px;font-size:11px}.pagination{gap:7px}.pagination button{width:28px;min-height:28px;padding:4px}.selection{padding:10px 12px;flex-wrap:wrap}.selection button{font-size:11px;min-height:30px;padding:5px 9px}.bottom-nav{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:4;background:#fffffff5;backdrop-filter:blur(10px);border-top:1px solid var(--line);padding:7px 10px max(9px,env(safe-area-inset-bottom));justify-content:space-around}.bottom-nav button{border:0;border-radius:0;display:grid;justify-items:center;gap:4px;color:#8a958f;font-size:10px;min-width:75px;background:transparent}.bottom-nav button.active{color:var(--green)}.bottom-nav svg{width:20px;height:20px}.org-layout{display:block}.departments{border:0;display:flex;gap:5px;overflow:auto;padding:0 0 15px;margin-bottom:3px}.departments h3{display:none}.departments button{width:auto;margin:0;flex-shrink:0;font-size:11px;gap:8px}.person{padding:15px 1px;gap:9px}.person-info small{font-size:10px}.person button{font-size:11px;min-height:29px;padding:5px 8px}.person .tag{font-size:10px}.account{padding:20px}.auth-box{padding:28px 24px}.dialog-body{padding:18px}.dialog-actions{padding:14px 18px}.notice{font-size:11px}#toast{bottom:88px}.empty{padding:55px 15px}.brand small{font-size:9px}.page-title .row{gap:6px}}
.pool-tabs{display:flex;padding:0 18px;border-bottom:1px solid var(--line);gap:22px;overflow:auto}.pool-tabs button{border:0;border-radius:0;min-height:46px;padding:10px 2px;color:#7a8581;border-bottom:2px solid transparent;background:transparent}.pool-tabs button.active{border-bottom-color:var(--green);color:var(--green);font-weight:600}.assignment-bar{display:flex;gap:8px;align-items:center;padding:0 18px 14px;flex-wrap:wrap}.assignment-bar span{font-size:11px;margin-left:6px}.contact-actions{gap:6px}.release-icon{min-height:30px;width:30px;color:#778a7d;padding:5px}.radio-group{display:flex;gap:18px;flex-wrap:wrap}.radio-group label{display:flex;gap:6px;align-items:center;cursor:pointer;min-height:30px}.radio-group input{width:15px;height:15px;padding:0;accent-color:var(--green);box-shadow:none}.target-list{border:1px solid var(--line);border-radius:5px;max-height:240px;overflow:auto}.target-row{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;border-bottom:1px solid var(--line);gap:10px}.target-row:last-child{border:0}.target-row label{display:flex;align-items:center;gap:8px;min-width:0;flex:1;flex-wrap:wrap}.target-row small{color:var(--muted);font-size:10px}.target-row input[type=number]{width:85px;height:30px;font-size:12px}.cascade-option{margin-top:12px;font-size:12px;align-items:flex-start}.cascade-option input{flex-shrink:0}.allocation-summary{margin-top:10px;border:1px solid var(--line);border-radius:5px;max-height:180px;overflow:auto}.allocation-summary>div{padding:10px 12px;border-bottom:1px solid var(--line)}.allocation-summary>div:last-child{border:0}.team-settings{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 0;margin-bottom:6px;font-size:12px}.team-settings label{align-items:flex-start;line-height:1.5;cursor:pointer}.team-settings input{flex-shrink:0;margin-top:1px}.stats .stat{min-width:0;flex:1}.stats .stat:last-child{margin-right:0}#allocation-pattern{display:grid;gap:16px}[hidden]{display:none!important}
@media(max-width:680px){.pool-tabs{padding:0 12px;gap:22px}.pool-tabs button{min-height:42px;font-size:12px}.assignment-bar{padding:0 12px 12px}.assignment-bar span{width:100%;margin:2px 0;font-size:10px}.stat+.stat{padding-left:12px}.stat{padding-right:8px}.stat span{font-size:10px}.stat strong{font-size:20px}.contact-actions{gap:5px}.contact-actions .release-icon{width:25px;min-height:30px;padding:4px}.contact-actions .release-icon svg{width:15px}.contact-actions .copy{padding:5px 7px}.contact-actions .copy svg{width:13px}.team-settings{font-size:11px}.team-settings>.muted{white-space:nowrap}.selection>.row{gap:5px}.selection button{font-size:10px;padding:5px 6px}.selection{gap:6px}.target-row{padding:10px}.radio-group{gap:14px}.stat:first-child{padding-left:0}}
.selection{position:fixed;bottom:22px;left:246px;right:36px;z-index:5;border:1px solid #d3e5da;border-radius:6px;box-shadow:0 4px 24px #213a2912}
@media(max-width:1000px){.selection{left:197px;right:22px}}
@media(max-width:680px){.selection{left:14px;right:14px;bottom:calc(80px + env(safe-area-inset-bottom))}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
@media(max-width:680px){.bottom-nav button{min-width:0;flex:1;padding-left:3px;padding-right:3px}}
.claim-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;font-size:12px}.claim-toolbar span{line-height:1.6}.phone-copy{width:26px;min-height:26px;padding:4px;margin-left:6px;vertical-align:middle;border-color:transparent;background:transparent;color:var(--green)}.phone-copy svg{width:13px;height:13px}.contact-phone{white-space:nowrap}
@media(max-width:680px){.claim-toolbar{font-size:10px;gap:8px}.claim-toolbar button{font-size:11px;flex-shrink:0}.phone-copy{width:22px;min-height:24px;padding:3px;margin-left:3px}}
.claim-commands{flex-wrap:wrap;justify-content:flex-end}.claim-record{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px;border-bottom:1px solid var(--line)}.claim-record .tag{margin-left:10px}.claim-record p{margin-top:8px;font-size:11px;color:var(--muted)}.record-customers{max-height:45dvh;overflow:auto}.record-customers>div{padding:12px 0;border-bottom:1px solid var(--line)}.record-customers .phone{margin-left:12px;font-size:12px}.record-customers p{margin-top:6px;font-size:11px;color:var(--muted);overflow-wrap:anywhere}
@media(max-width:680px){.claim-toolbar{flex-wrap:wrap}.claim-toolbar>span{width:100%}.claim-commands{width:100%;justify-content:flex-start;gap:6px}.claim-record{padding:15px 12px}.claim-record .tag{margin-left:6px}.claim-record button{font-size:11px}.claim-record p{font-size:10px}}
.permission-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:20px}.permission-form{max-width:640px;border-top:1px solid #dce3df;padding:20px 0}.permission-form p{font-size:12px;line-height:1.7}.permission-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 12px;margin:24px 0}.permission-options label{display:flex;align-items:center;gap:8px;font-size:13px}.permission-form>.primary{margin-top:12px}@media(max-width:400px){.permission-options{grid-template-columns:1fr}.page-title>.row{flex-wrap:wrap;justify-content:flex-end}}
.native-app.keyboard-open .bottom-nav{display:none}.native-app.keyboard-open .selection{bottom:12px}.native-app .auth{padding-top:max(24px,env(safe-area-inset-top))}.native-app.network-offline .topbar{border-bottom-color:#bc842b}@media(max-width:680px){.native-app .bottom-nav button{min-height:48px}.native-app button.copy,.native-app button.phone-copy{min-height:36px}}
@media(max-width:680px){body:has(.auth){background:#fff}.auth{min-height:100dvh;padding:24px;align-items:center;background:#fff}.auth>div{width:100%;max-width:360px}.auth .auth-box{width:100%;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}.auth .brand{margin-bottom:32px}.auth .brand img{width:36px;height:36px}.auth .auth-footer{margin-top:24px}.auth .auth-box h1{font-size:21px}.auth .auth-box>p{line-height:1.6}.auth input{height:44px}.auth .primary{min-height:44px}.native-app .auth{padding:max(24px,env(safe-area-inset-top)) 24px max(24px,env(safe-area-inset-bottom))}.native-app.keyboard-open .auth{align-items:flex-start}.auth .stack{gap:16px}}
.added-customer td.name,.added-customer .phone,.added-customer .company,.added-customer .contact-name,.added-customer .contact-company{color:#99a19d}.added-customer{background:#f5f6f5}.added-toggle{font-size:11px;min-height:30px;padding:5px 7px}.added-toggle.marked{background:#e7ece9;color:#6c7971}.added-toggle svg{width:13px;height:13px}#page-size{width:108px;flex:0 0 auto}@media(max-width:680px){.main{padding-top:12px}.page-title{margin-bottom:10px}.page-title h1{font-size:16px}.page-title p{display:none}.stats{margin-bottom:10px}.stat,.stat+.stat{display:flex;gap:7px;align-items:center;padding:0 10px 10px;margin:0}.stat span{font-size:10px}.stat strong{font-size:18px;margin:0}.claim-toolbar{margin-bottom:8px;font-size:10px;gap:5px}.claim-commands button{font-size:10px;min-height:30px;padding:5px 7px}.claim-commands button svg{width:14px;height:14px}.toolbar{padding:8px;gap:6px}.toolbar .search input{height:32px;font-size:11px}.toolbar .search svg{top:8px}.toolbar select{height:30px;font-size:10px}#page-size{width:94px}.contact-actions{flex-wrap:wrap;justify-content:flex-end;max-width:126px;gap:5px}.contact-actions .added-toggle{min-height:30px;font-size:10px;padding:4px 6px}.contact-right{max-width:126px}.table-footer{flex-wrap:wrap}.empty{padding:35px 12px}.assignment-bar{padding:8px;gap:6px}.assignment-bar button{font-size:10px;min-height:30px}.assignment-bar>span{font-size:10px}}
@media(max-width:680px){.stats:has(#count-public) .stat{display:block;padding:0 8px 9px}.stats:has(#count-public) .stat span{font-size:9px;white-space:nowrap}.stats:has(#count-public) .stat strong{margin-top:3px;font-size:18px}}
.added-customer,.added-customer:hover{background:#fff4bf}.added-customer td.name,.added-customer .phone,.added-customer .company,.added-customer .contact-name,.added-customer .contact-company{color:#8b6200}.added-toggle.marked{background:#f6c83c;border-color:#dcae22;color:#503900;font-weight:600}.added-toggle.marked:hover{background:#efbf2e}
.person-info{overflow-wrap:anywhere}
.person .avatar{flex-shrink:0}
#member-role-team[hidden]{display:none}
