:root{font-family:"Segoe UI","Microsoft YaHei",sans-serif;color:#1b3b2f;background:#f3f6f4;font-size:14px;--accent:#24694f;--muted:#64796d;--line:#dce6df;--soft:#eaf3ed;color-scheme:light}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit;color:inherit}button{min-height:44px;border:1px solid #cedcd2;border-radius:7px;padding:10px 16px;background:#fff;cursor:pointer;transition:background .15s,transform .15s}button:hover{background:#edf4ef;transform:translateY(-1px)}button:active{transform:translateY(1px)}button:disabled{opacity:.45;cursor:not-allowed;transform:none}button:focus-visible,summary:focus-visible{outline:3px solid #72a98e;outline-offset:3px}input,select{min-height:46px;border:1px solid #cbd9d0;border-radius:7px;background:#fff;padding:11px 12px;max-width:100%;width:100%}input:focus,select:focus{outline:2px solid #72a98e;outline-offset:2px}.primary{color:#fff;background:var(--accent);border-color:var(--accent)}.primary:hover{background:#1b513d}.subtle{font-size:12px;padding:7px 11px;min-height:36px;color:var(--muted)}h1,h2,h3,p{margin:0}h1{font-size:26px;line-height:1.4;letter-spacing:-.7px;font-weight:600}h2{font-size:18px;line-height:1.5;font-weight:600}h3{font-size:14px;font-weight:600}.muted{color:var(--muted);line-height:1.75}.small,small{font-size:12px}.eyebrow{color:#617c6b;font-size:11px;letter-spacing:.6px;margin-bottom:7px}.brand-mark{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:var(--accent);color:#fff;font-size:20px;flex:none}.skip-link{position:absolute;top:10px;left:10px;padding:12px;background:#fff;color:var(--accent);z-index:100;transform:translateY(-200%)}.skip-link:focus{transform:translateY(0)}[hidden]{display:none!important}
.sidebar{position:fixed;inset:0 auto 0 0;width:196px;background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;padding:28px 18px}.brand{display:flex;align-items:center;gap:10px;font-size:16px;font-weight:600}.brand small{display:block;font-size:11px;font-weight:400;color:var(--muted);margin-top:4px}nav{display:grid;gap:8px;margin-top:43px}nav button{display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:left;border-color:transparent;background:transparent;color:var(--muted);font-size:13px;padding:12px}nav small{font-size:11px;opacity:.65}nav button.active{color:var(--accent);background:var(--soft);font-weight:600}.aside-bottom{margin-top:auto;color:var(--muted);font-size:11px;line-height:1.8}.aside-bottom p{margin-bottom:10px}.aside-bottom small{font-size:11px}.aside-bottom button{display:block;width:100%;margin-top:16px;font-size:12px}main{margin-left:196px;padding:30px 36px 20px;max-width:1700px}.page-header{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}.connection{font-size:11px;padding:7px 11px;border:1px solid #d5e3d9;background:#edf4ef;color:#4c735c;border-radius:25px;white-space:nowrap}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:17px 0 19px;margin-bottom:26px;border-bottom:1px solid var(--line)}.stats>div{padding:0 24px;border-left:1px solid var(--line)}.stats>div:first-child{padding-left:0;border:0}.stats span{font-size:12px;color:var(--muted);display:block}.stats strong{font-size:25px;font-weight:500;display:block;margin-top:6px;font-variant-numeric:tabular-nums;line-height:1.2}
.work-grid{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:26px;align-items:start}.customer-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:25px 28px;min-width:0}.card-top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:13px}.badge{font-size:11px;padding:4px 8px;border-radius:4px;background:var(--soft);color:var(--accent)}#shop-name{font-size:25px;line-height:1.45;letter-spacing:-.4px;overflow-wrap:anywhere;margin-bottom:6px}.phone-row{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:20px 0 8px}#phone{font-size:34px;font-weight:500;letter-spacing:.5px;font-variant-numeric:tabular-nums;line-height:1.3}.phone-row button{white-space:nowrap}.account-field{border:0;border-top:1px solid var(--line);padding:19px 0 0;margin:22px 0 0;min-width:0}.account-field legend{font-size:13px;font-weight:600;padding:0 12px 0 0}.account-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.account-choice{padding:10px 7px;font-size:12px;text-align:center;overflow-wrap:anywhere;line-height:1.5}.account-choice[aria-pressed=true]{background:var(--soft);color:var(--accent);border-color:#39815e;font-weight:600;box-shadow:inset 0 0 0 1px #39815e}.status-row{display:flex;align-items:center;justify-content:space-between;gap:22px;margin-top:21px}.status-row label{display:block;font-size:13px;font-weight:600;margin-bottom:4px}.status-row select{width:210px;flex:none}.save-feedback{color:var(--accent);font-size:11px;line-height:1.7;min-height:19px;margin-top:10px}.save-feedback.error{color:#ae422b}.card-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:18px;margin-top:18px;border-top:1px solid var(--line)}.customer-details{font-size:12px;color:var(--muted);margin-top:14px}.customer-details summary{cursor:pointer;padding:8px 0;line-height:1.7;min-height:36px}#customer-meta p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;padding:5px 0}.sources{margin-top:6px}.sources>div{max-height:250px;overflow:auto}.source-row{border-top:1px solid var(--line);padding:12px 0}.source-row p{margin:0;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}.behavior-note{font-size:11px;padding-top:8px}.history-card{padding:4px 0;min-width:0}.history-heading{display:flex;justify-content:space-between;gap:10px;align-items:start}.history-card h2{font-size:15px;margin-bottom:4px}.timeline{max-height:350px;overflow:auto;margin-top:22px}.event{padding:0 3px 20px 14px;border-left:2px solid #d5e4da;margin-left:3px;overflow-wrap:anywhere}.event strong{font-size:12px;line-height:1.8;font-weight:500}.event small{display:block;font-size:11px;line-height:1.8;color:var(--muted);margin-top:4px}.empty{padding:28px 0;text-align:center;font-size:12px;color:var(--muted)}.account-summary{border-top:1px solid var(--line);padding-top:18px;margin-top:15px}.account-summary h3{font-size:12px;margin-bottom:13px}.status-summary-row{display:flex;justify-content:space-between;gap:14px;margin-bottom:11px;font-size:11px;line-height:1.8}.status-summary-row span:first-child{overflow-wrap:anywhere}.status-summary-row strong{color:var(--accent);font-weight:500;text-align:right;flex:none}.queue-note{padding-top:16px;font-size:11px}
.section-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:23px}.section-heading h2{font-size:20px;margin-bottom:7px}.section-heading p{font-size:13px}.panel{background:#fff;border:1px solid var(--line);border-radius:12px;padding:26px;max-width:1000px}.toolbar{display:flex;gap:11px;margin-bottom:23px}.toolbar input{flex:1;min-width:0}.toolbar select{width:200px}.toolbar button{flex:none}.table-wrap{border:1px solid var(--line);background:#fff;border-radius:10px;overflow:auto}table{width:100%;border-collapse:collapse;text-align:left}th{padding:14px 17px;background:#edf3ef;color:#536d5d;font-weight:500;font-size:12px;white-space:nowrap}td{border-top:1px solid var(--line);padding:15px 17px;font-size:12px;line-height:1.8;vertical-align:top;overflow-wrap:anywhere}td:first-child{min-width:140px}td:nth-child(2){white-space:nowrap;font-variant-numeric:tabular-nums}td button{font-size:12px;white-space:nowrap;min-height:36px;padding:6px 11px}.list-status{font-size:11px;color:var(--accent);margin-bottom:5px}.pagination{display:flex;align-items:center;justify-content:space-between;gap:15px;padding-top:18px;font-size:12px;color:var(--muted)}.pagination button{font-size:12px;margin-left:8px}.account-row{display:flex;align-items:center;gap:17px;padding:20px 0;border-top:1px solid var(--line)}.account-row>span{background:var(--soft);color:var(--accent);width:34px;height:34px;display:grid;place-items:center;border-radius:8px;font-size:11px}.account-row strong{font-weight:500;font-size:14px;overflow-wrap:anywhere}.account-row:last-child{margin-bottom:12px}
.import-panel{max-width:none}.import-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-bottom:22px}.file-choice{background:#f4f8f5;border-radius:8px;padding:21px;min-width:0}.step-label{font-size:11px;color:var(--accent);margin-bottom:7px;display:block}.file-choice label{font-size:15px;font-weight:500;display:block;margin-bottom:15px}.file-choice input{padding:10px;background:#fff;font-size:12px;width:100%}.file-choice p{margin-top:12px}#selection-summary{margin-bottom:17px}#import-progress{font-size:12px;margin-top:13px;white-space:pre-line}#import-result{margin-top:25px;padding-top:25px;border-top:1px solid var(--line)}#import-result h3{font-size:15px;margin-bottom:12px}.import-summary{padding:18px;background:var(--soft);color:var(--accent);border-radius:7px;line-height:2;margin-bottom:14px}.import-actions{display:flex;gap:12px;flex-wrap:wrap;margin:16px 0 12px}#import-preview{padding:14px 0 22px}#import-preview p{font-size:12px;color:var(--muted);line-height:1.8;margin-bottom:9px;overflow-wrap:anywhere}.file-report{padding:12px 0;border-top:1px solid var(--line);overflow-wrap:anywhere}.file-report summary{cursor:pointer;font-size:12px;min-height:44px;line-height:1.8;padding:10px 0}.file-report p{margin:8px 0;font-size:12px}.scanning{font-weight:500;color:var(--accent)}.error{color:#ae422b;line-height:1.8;white-space:pre-line}footer{margin-top:30px;padding-top:18px;border-top:1px solid var(--line);font-size:11px;color:var(--muted);display:flex;justify-content:space-between;gap:15px}
.login-wrap{min-height:100vh;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);max-width:1100px;align-items:center;gap:80px;margin:auto;padding:60px}.login-intro .eyebrow{margin-top:28px}.login-intro h1{font-size:48px;line-height:1.3;margin:14px 0 21px;letter-spacing:-2px}.login-intro>p:last-of-type{font-size:15px;color:var(--muted);line-height:1.9}.login-intro>small{display:block;font-size:11px;color:var(--muted);margin-top:60px}.login-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:35px;box-shadow:0 16px 65px #17352408;min-width:0}.login-card h2{font-size:23px;letter-spacing:-.6px;margin-bottom:9px}.login-card>p.muted{font-size:12px}.login-card label{display:block;font-size:13px;font-weight:600;margin:28px 0 9px}.login-card button{width:100%;margin-top:18px}.login-card .error{min-height:30px;padding-top:12px}
@media(max-width:1150px){main{padding:28px 25px}.work-grid{grid-template-columns:minmax(0,1fr) 240px;gap:20px}.customer-card{padding:23px}.phone-row{flex-wrap:wrap}.account-buttons{grid-template-columns:repeat(2,minmax(0,1fr))}.status-row{display:block}.status-row select{width:100%;margin-top:10px}.stats>div{padding:0 18px}}@media(max-width:900px){.sidebar{width:174px;padding:23px 15px}.brand{font-size:14px}main{margin-left:174px}.work-grid{grid-template-columns:minmax(0,1fr)}.history-card{padding-top:12px}.timeline{max-height:260px}.account-buttons{grid-template-columns:repeat(3,minmax(0,1fr))}.status-row{display:flex}.status-row select{width:210px;margin-top:0}.login-wrap{padding:40px;gap:35px}.login-intro h1{font-size:40px}.login-card{padding:28px}}
@media(max-width:640px){.sidebar{position:static;width:auto;border:0;border-bottom:1px solid var(--line);padding:18px 16px}.brand small{display:none}.brand-mark{width:31px;height:31px;font-size:18px}nav{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:18px;gap:4px}nav button{padding:9px 12px;font-size:12px}.aside-bottom{position:absolute;top:17px;right:16px}.aside-bottom p,.aside-bottom small{display:none}.aside-bottom button{font-size:11px;min-height:34px;padding:5px 10px;margin:0}main{margin:0;padding:23px 16px}.page-header{align-items:start;gap:13px;margin-bottom:15px}h1{font-size:22px}.connection{font-size:10px;white-space:normal;max-width:104px;line-height:1.7;padding:5px 9px;flex:none}.eyebrow{font-size:10px}.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 0;padding:14px 0 20px;margin-bottom:21px}.stats>div{padding:0 17px}.stats>div:nth-child(3){border:0;padding-left:0}.customer-card{padding:21px}#shop-name{font-size:23px}.phone-row{flex-direction:column;align-items:stretch;margin-top:18px}#phone{font-size:30px}.phone-row button{width:100%}.account-buttons{grid-template-columns:repeat(2,minmax(0,1fr))}.account-choice{min-height:46px}.status-row{display:block}.status-row select{width:100%;margin-top:10px}.card-actions{flex-direction:column;align-items:stretch}.history-heading button{min-height:44px}.section-heading{align-items:flex-start}.section-heading h2{font-size:19px}.section-heading button{font-size:11px;flex:none;padding:10px}.toolbar{flex-direction:column}.toolbar select,.toolbar button{width:100%}.panel{padding:20px}.pagination{align-items:flex-start;flex-direction:column}.pagination button{margin:0 7px 0 0}.import-choices{grid-template-columns:minmax(0,1fr);gap:14px}.file-choice{padding:18px}.import-actions{flex-direction:column}.import-actions button{width:100%}footer{font-size:10px;line-height:1.8}.login-wrap{grid-template-columns:minmax(0,1fr);gap:25px;padding:30px 20px;align-content:center}.login-intro h1{font-size:32px;letter-spacing:-1px;margin:10px 0}.login-intro h1 br{display:none}.login-intro>p:last-of-type,.login-intro>small{display:none}.login-intro .eyebrow{margin-top:14px;margin-bottom:0}.login-card{padding:25px}.login-card h2{font-size:21px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
@media(min-width:901px){main{padding-top:24px}.page-header{margin-bottom:16px}.stats{padding-top:12px;padding-bottom:15px;margin-bottom:20px}.customer-card{padding:20px 24px}.card-top{margin-bottom:10px}.phone-row{margin-top:14px}.account-field{margin-top:16px;padding-top:14px}.status-row{margin-top:16px}.card-actions{margin-top:12px;padding-top:14px}}

.profile-address{display:grid;grid-template-columns:64px minmax(0,1fr);gap:3px 10px;margin-top:15px;padding:12px 0;border-top:1px solid var(--line);font-size:12px;line-height:1.8}.profile-address>span{color:var(--muted)}.profile-address>p{overflow-wrap:anywhere;white-space:pre-wrap}.profile-address>small{grid-column:2;color:var(--muted);font-size:11px}.addition-profile{margin-top:18px;padding:16px 0 0;border-top:1px solid var(--line)}.profile-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:11px}.profile-heading h3{font-size:13px}.profile-heading .badge{white-space:normal;text-align:right}.addition-record{padding:11px 13px;margin-top:9px;background:#f1f6f2;border-radius:6px;border-left:3px solid #9dbca8;overflow-wrap:anywhere}.addition-record-top{display:flex;gap:12px;justify-content:space-between;font-size:12px;line-height:1.8}.addition-record-top strong{font-weight:600}.addition-record-top span{color:var(--accent);text-align:right}.addition-record p{font-size:12px;line-height:1.8;margin-top:3px}.addition-record p.small{font-size:11px}.profile-empty{color:var(--muted);font-size:12px;line-height:1.8;padding:4px 0}.profile-time-note{font-size:10px;margin-top:9px}.addition-profile .profile-time-note{color:#657c6c}@media(max-width:640px){.profile-address{grid-template-columns:1fr;gap:5px}.profile-address>small{grid-column:auto}.profile-heading{align-items:flex-start;flex-direction:column}.addition-record-top{flex-direction:column;gap:2px}.addition-record-top span{text-align:left}}
.addition-profile .profile-time-note{font-size:11px}
