:root{--ink:#172b42;--muted:#6b7c90;--line:#e1e7ee;--blue:#315ee8;--soft:#f3f6fa;--green:#19856c;--red:#b33f41}*{box-sizing:border-box}body{margin:0;background:var(--soft);color:var(--ink);font:14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}button,input,select,textarea{font:inherit}button,.button{border:1px solid var(--line);background:#fff;color:var(--ink);border-radius:8px;padding:10px 15px;cursor:pointer;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:8px}button:hover,.button:hover{border-color:#a0b3d4;background:#f4f7ff}button:disabled{opacity:.45;cursor:not-allowed}.primary{background:var(--blue);color:white;border-color:var(--blue)}.primary:hover{background:#244ac2;color:#fff}.subtle{background:transparent;border-color:transparent;color:var(--muted)}input,select,textarea{width:100%;padding:10px 12px;border:1px solid #d7e0eb;border-radius:7px;background:#fff;color:var(--ink)}input:focus,select:focus,textarea:focus,button:focus-visible{outline:3px solid #c5d4ff;outline-offset:1px}label{display:block;font-weight:600;font-size:13px}label>input,label>select{margin-top:6px}input[type=checkbox]{width:16px;height:16px;flex:none;margin:0;accent-color:var(--blue)}.check{display:flex;align-items:center;gap:9px;font-weight:400;margin:16px 0}h1,h2,h3,p{margin-top:0}h1{font-size:30px;line-height:1.2;letter-spacing:-.8px;margin-bottom:10px}h2{font-size:17px;letter-spacing:-.3px;margin-bottom:5px}h3{font-size:16px}p{margin-bottom:10px}.muted{color:var(--muted)}.small{font-size:12px}.eyebrow{font-size:10px;font-weight:750;letter-spacing:1.8px;color:var(--blue);margin-bottom:10px}.shell{display:flex;min-height:100vh}.sidebar{width:224px;flex-shrink:0;background:#fff;border-right:1px solid var(--line);padding:32px 22px;position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:12px;font-weight:750;line-height:1.25;text-decoration:none;color:var(--ink);font-size:16px}.brand-mark{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;background:var(--blue);border-radius:12px;color:white;font-size:15px;letter-spacing:-1px;font-weight:800;flex:none}.nav-label{font-size:9px;letter-spacing:1.3px;font-weight:700;color:#8997a9;margin:52px 10px 12px}.nav-item{display:flex;align-items:center;gap:12px;padding:13px 12px;margin-bottom:6px;width:100%;border:0;border-radius:8px;font-size:14px;font-weight:600;justify-content:flex-start}.nav-item.active{color:var(--blue);background:#eef3ff}.nav-count{margin-left:auto;font-size:11px;background:#edf1f7;border-radius:5px;padding:1px 5px}.side-bottom{margin-top:auto;font-size:12px;color:var(--muted)}.side-bottom p{font-size:11px;margin-top:8px}.status-dot{display:inline-block;width:6px;height:6px;background:var(--green);border-radius:50%;margin-right:6px}.workspace{margin-left:224px;padding:0 42px 24px;flex:1;min-width:0;max-width:1800px}.topbar{height:78px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;font-size:12px}.page-heading{display:flex;align-items:center;justify-content:space-between;padding:35px 0 23px;gap:16px}.pill{background:white;border:1px solid var(--line);border-radius:30px;padding:7px 12px;white-space:nowrap;color:var(--muted);font-size:11px}.card{background:white;border:1px solid var(--line);border-radius:12px;box-shadow:0 3px 7px #1d365005;margin-bottom:20px}.upload-card{display:flex;align-items:center;gap:14px;padding:23px}.step{background:#eff3fa;color:#7386a4;font-size:11px;font-weight:700;width:32px;height:32px;display:inline-flex;justify-content:center;align-items:center;border-radius:9px;flex:none}.step.inline{width:26px;height:26px;margin-right:8px}.upload-copy{flex:1}.upload-copy p{margin:3px 0 0;font-size:12px}.file-button{position:relative;overflow:hidden}.file-button input{position:absolute;inset:0;opacity:0;cursor:pointer}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:22px 0}.stat{background:#fff;border:1px solid var(--line);padding:20px 22px;border-radius:10px}.stat span{display:block;color:var(--muted);font-size:12px}.stat strong{display:block;font-size:29px;margin-top:8px;font-weight:650}.stat:nth-child(2) strong{color:var(--green)}.section-head{padding:22px 24px;display:flex;align-items:center;justify-content:space-between;gap:15px}.section-head p{font-size:12px;margin:6px 0 0}.bulk{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.bulk select{width:150px}.table-scroll{overflow:auto;max-height:580px;border-radius:0 0 12px 12px}table{width:100%;border-collapse:collapse;white-space:nowrap;text-align:left;font-size:13px}th{position:sticky;top:0;z-index:1;background:#f8fafc;color:var(--muted);font-size:10px;letter-spacing:.5px;text-transform:uppercase;font-weight:650;padding:13px 24px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}td{padding:14px 24px;border-bottom:1px solid #edf0f5}tbody tr:last-child td{border-bottom:0}td:first-child{color:#8c9aad;font-size:12px}td select{width:190px;font-size:12px;padding:8px}.account-name{font-weight:600}.account-email{font-size:11px;color:var(--muted);max-width:200px;overflow:hidden;text-overflow:ellipsis}.badge{font-size:11px;border-radius:5px;padding:4px 7px;background:#edf8f3;color:var(--green);display:inline-block}.badge.error{background:#fceeee;color:var(--red)}.data-tags{color:var(--muted);font-size:11px}.empty{text-align:center;padding:50px 20px 60px;color:var(--muted);font-size:13px}.empty>span{display:inline-block;background:#f1f5fc;color:var(--blue);font-size:27px;border-radius:12px;width:50px;height:50px;margin-bottom:20px}.empty h3{color:var(--ink);margin-bottom:6px}.report summary{padding:18px 24px;cursor:pointer;font-weight:600}.report-body{padding:0 24px 22px;font-size:12px;max-height:280px;overflow:auto}.report-body p{margin:6px 0}.error-text{color:var(--red)}.export-card{padding-bottom:16px}.export-card .section-head{padding-bottom:10px}.export-settings{display:grid;grid-template-columns:1fr 1fr auto;align-items:end;gap:18px;padding:5px 24px}.export-card>.check,.export-card>p{margin-left:24px;margin-right:24px}.export-card>p{max-width:830px}.notice{padding:13px 18px;border:1px solid #c9d8f9;background:#eaf0ff;border-radius:8px;margin-bottom:20px}.notice.error{background:#fff0ef;border-color:#eac6c3;color:var(--red)}footer{display:flex;justify-content:space-between;color:#8190a3;font-size:10px;padding:5px 2px;gap:20px}dialog{border:1px solid var(--line);border-radius:14px;padding:28px;width:min(1000px,94vw);max-height:88vh;box-shadow:0 24px 100px #1b2a4050;color:var(--ink)}dialog::backdrop{background:#1a2d4580;backdrop-filter:blur(3px)}.dialog-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.dialog-heading>button{font-size:22px;line-height:1;padding:7px 12px}.dialog-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:20px;border-top:1px solid var(--line);padding-top:20px}.dialog-footer p{margin:0;max-width:550px}.proxy-import{background:var(--soft);padding:18px;border-radius:9px;margin:18px 0}.proxy-import textarea{margin:7px 0 10px;resize:vertical;font-family:monospace;font-size:12px}.proxy-row{display:grid;grid-template-columns:130px 110px minmax(150px,1fr) auto;gap:10px;border-bottom:1px solid var(--line);padding:16px 0;align-items:end}.proxy-row .refresh{grid-column:1/4}.proxy-row input{font-size:12px}.proxy-row .remove-proxy{grid-column:4;grid-row:1}.mapping-controls{display:flex;align-items:center;gap:24px;margin:20px 0}.mapping-controls>label:first-child{width:220px}.mapping-row{display:grid;grid-template-columns:80px minmax(0,1fr) 200px;gap:12px;padding:12px 0;border-bottom:1px solid var(--line);align-items:center}.mapping-row pre{white-space:pre-wrap;word-break:break-all;margin:0;font-size:11px;max-height:80px;overflow:auto;color:var(--muted)}.login-page{display:flex;align-items:center;justify-content:center;min-height:100vh;background:radial-gradient(ellipse at 80% 10%,#e6edff,transparent 70%),#f4f6fa}.login-card{width:460px;padding:42px;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 20px 80px #27426312;margin:24px}.login-card .brand-mark{margin-bottom:30px}.login-card h1{font-size:30px}.login-card form{margin:28px 0}.login-card form button{width:100%;margin-top:20px}.login-card form input{padding:13px}.login-card>p:last-child{margin-bottom:0}[hidden]{display:none!important}@media(max-width:1100px){.sidebar{width:180px;padding:25px 16px}.workspace{margin-left:180px;padding:0 24px 20px}.page-heading h1{font-size:25px}.upload-card{flex-wrap:wrap}.upload-copy{min-width:200px}.section-head{flex-wrap:wrap}.bulk{width:100%}th,td{padding-left:16px;padding-right:16px}}@media(max-width:720px){.shell{display:block}.sidebar{position:static;width:auto;flex-direction:row;padding:14px 18px;gap:15px;align-items:center}.brand{font-size:12px}.brand-mark{width:34px;height:34px;font-size:12px}.nav-label,.side-bottom,.nav-item.active{display:none}.nav-item{width:auto;margin:0 0 0 auto;font-size:12px}.workspace{margin:0;padding:0 16px 20px}.topbar{height:55px}.page-heading{padding:25px 0 16px}.page-heading h1{font-size:23px}.page-heading .pill{display:none}.stats{gap:10px;grid-template-columns:1fr 1fr}.stat{padding:14px}.upload-card{padding:18px;gap:10px}.export-settings{grid-template-columns:1fr 1fr}.export-settings button{grid-column:1/3}.mapping-row{grid-template-columns:45px 1fr}.mapping-row select{grid-column:2}.proxy-row{grid-template-columns:1fr 1fr auto}.proxy-row .address{grid-column:1/4}.proxy-row .refresh{grid-column:1/4}.proxy-row .remove-proxy{grid-column:3}.dialog-footer{flex-wrap:wrap}dialog{padding:20px}footer{display:block}footer span{display:block;margin-top:5px}.login-card{padding:28px}.mapping-controls{align-items:flex-start;gap:12px}.section-head{padding:18px}}

/* Web 1.4: calm workspace and clear primary actions */
:root{--ink:#243b3a;--muted:#617571;--blue:#187669;--soft:#f6f8f6;--line:#dfe8e3}
.sidebar{width:190px;background:#fdfefd}.workspace{margin-left:190px;max-width:1600px;margin-right:auto;padding-left:32px;padding-right:32px}
.card{border-radius:16px;box-shadow:0 3px 14px #24483a05}.nav-item.active{background:#eaf4ee;color:#187669}.primary:hover{background:#115e53}.page-heading{padding-top:30px}.page-heading h1{font-size:32px;letter-spacing:-1px}
button,.button{min-height:44px;border-radius:10px}.primary{box-shadow:0 3px 8px #18766916}.upload-card{flex-wrap:wrap;gap:12px}.upload-copy{min-width:190px}.stats{gap:14px}.stat{border-radius:12px}.badge.warning{background:#fff4db;color:#865e16}.notice{border-radius:12px;background:#eaf5ee;color:#275c45}.table-scroll{max-height:540px}.export-card{border:1px solid #b7d7c9;background:#fcfefc}.export-settings .primary{min-height:48px;font-size:15px}.report{box-shadow:none}.report-body{max-height:260px;overflow:auto}
@media(max-width:1000px){.sidebar{position:static;width:auto;flex-direction:row;align-items:center;gap:16px;padding:16px}.sidebar .nav-label,.sidebar .nav-item.active,.side-bottom{display:none}.sidebar .nav-item{margin:0;width:auto}.shell{display:block}.workspace{margin-left:0;padding:0 20px 24px}.brand{margin-right:auto}.page-heading{align-items:flex-start;gap:16px;flex-wrap:wrap}}
@media(max-width:600px){.page-heading h1{font-size:26px}.stats{grid-template-columns:repeat(2,1fr)}.upload-card>button,.upload-card>.button{flex:1 1 45%}.workspace{padding:0 12px 20px}.export-settings{display:flex;flex-direction:column;align-items:stretch}.export-settings>*{width:100%}.section-head{flex-wrap:wrap}.bulk{flex-wrap:wrap}.topbar{height:60px}}
