body{margin:0}
/* Keep application styles out of browser annotation overlays. */
@scope (#app, #modal-root, #toast) {
:scope{font-family:Arial,"Microsoft YaHei",sans-serif;color:#232a2a;background:#f5f6f6;font-size:14px;letter-spacing:0;font-synthesis:none;--line:#e2e6e4;--green:#177551;--muted:#6f7974}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{outline-offset:3px}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}button,.button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:7px 13px;border:1px solid #d9dfdc;border-radius:5px;background:#fff;color:#273a30;text-decoration:none;white-space:nowrap}button:hover,.button:hover{background:#f1f5f2;border-color:#b2c4b9}.primary{background:var(--green);color:white;border-color:var(--green)}.primary:hover{background:#125f42;color:#fff}.danger{color:#b0414e}svg{width:17px;height:17px;flex-shrink:0}.icon{width:34px;height:34px;padding:6px}.icon svg{width:17px}h1,h2,h3,p{margin:0}h1{font-size:23px;font-weight:600}h2{font-size:18px}h3{font-size:15px}small,.muted{color:var(--muted)}input,select{border:1px solid #d9dfdc;border-radius:4px;padding:8px 10px;background:#fff;min-height:36px;min-width:0}input:focus,select:focus{border-color:var(--green);outline:2px solid #dcf2e5}label{display:flex;flex-direction:column;gap:7px;color:#48534c}label.check{flex-direction:row;align-items:center;gap:7px}input[type=checkbox]{min-height:auto;width:16px;height:16px;accent-color:var(--green)}.loading{padding:50px;color:var(--muted)}.auth{min-height:100vh;display:grid;place-items:center;padding:24px;background:#f3f6f4}.auth form{width:100%;max-width:390px}.brand{font-size:19px;font-weight:700;display:flex;align-items:center;gap:10px}.brand svg{width:25px;height:25px;color:var(--green)}.auth .brand{margin-bottom:36px}.auth h1{margin-bottom:26px}.auth label{margin-bottom:18px}.auth .primary{width:100%;margin-top:10px}.auth .switch{border:0;background:transparent;margin:15px auto;display:flex;color:var(--green)}.error{color:#b33448;font-size:13px;margin:10px 0}.layout{display:grid;grid-template-columns:216px minmax(0,1fr);min-height:100vh}.sidebar{background:#fff;border-right:1px solid var(--line);padding:27px 16px;display:flex;flex-direction:column;gap:32px;position:sticky;top:0;height:100vh}.sidebar .brand{padding-left:7px}.sidebar nav{display:grid;gap:7px}.nav-button{border:none;background:transparent;justify-content:flex-start;width:100%;min-height:42px;gap:12px;font-weight:500}.nav-button.active{background:#e7f3eb;color:#135c3e}.account{margin-top:auto;border-top:1px solid var(--line);padding:17px 6px 0;display:flex;gap:8px;align-items:center;min-width:0}.account div{min-width:0;flex:1}.account strong,.account small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account small{margin-top:5px;font-size:11px}.main{min-width:0}.topbar{height:61px;border-bottom:1px solid var(--line);background:#fff;padding:0 30px;display:flex;align-items:center;justify-content:space-between;font-size:12px;color:var(--muted)}.status-dot{width:7px;height:7px;display:inline-block;background:#389968;border-radius:50%;margin-right:6px}.content{padding:29px 30px;max-width:1800px;margin:auto}.heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:25px}.heading p{font-size:12px;color:var(--muted);margin-top:9px}.actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:20px 0;margin-bottom:26px;background:#fff}.stat{padding:0 24px;border-right:1px solid var(--line)}.stat:last-child{border:0}.stat small{display:block}.stat strong{font-size:25px;display:block;font-weight:600;margin-top:9px}.stat.warn strong{color:#ba6d13}.section-line{display:flex;align-items:center;justify-content:space-between;margin:24px 0 13px;gap:12px}.table-wrap{overflow:auto;background:#fff;border:1px solid var(--line);border-radius:5px}table{border-collapse:collapse;width:100%;text-align:left;font-size:13px}th{background:#f1f4f2;color:#627065;font-size:12px;font-weight:500;padding:12px 14px;white-space:nowrap;border-bottom:1px solid var(--line)}td{padding:11px 14px;border-bottom:1px solid #edf0ee;max-width:330px;line-height:1.5;overflow-wrap:anywhere;vertical-align:middle}tr:last-child td{border-bottom:0}tbody tr:hover{background:#fafcfb}.num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.file-link{background:none;border:0;padding:0;min-height:25px;color:#236e4c;text-align:left;white-space:normal;justify-content:flex-start}.file-link:hover{background:none;text-decoration:underline}.file-link svg{color:#4c9270}.badge{display:inline-block;font-size:11px;padding:3px 7px;border-radius:3px;background:#eaf4ee;color:#237245;white-space:nowrap}.badge.missing{background:#fff0dd;color:#9b6010}.badge.manual{background:#eaf0fa;color:#3f5e9b}.badge.existing{background:#eceff0;color:#607078}.empty{padding:65px 20px;text-align:center;color:var(--muted)}.empty svg{width:36px;height:36px;color:#8daa98;margin-bottom:15px}.empty p{margin-bottom:18px}.search{display:flex;align-items:center;gap:8px;max-width:360px;min-width:0}.search input{width:100%;min-width:0}.pager{display:flex;justify-content:flex-end;align-items:center;gap:12px;margin-top:13px;font-size:12px;color:var(--muted)}.filename{max-width:820px;overflow-wrap:anywhere;font-size:19px;line-height:1.5}.back{border:0;padding:0;background:transparent;color:var(--muted);margin-bottom:12px;font-size:12px}.price-input{width:103px;text-align:right;padding:6px;min-height:31px}.price-cell{display:flex;align-items:center;gap:4px;justify-content:flex-end}.source{font-size:11px;color:var(--muted);max-width:260px}.detail-table{min-width:1360px}.detail-table th:first-child{width:55px}.settings{max-width:620px;background:#fff;border-top:2px solid #2f805b;padding:26px}.settings label{margin:20px 0}.settings .note{font-size:12px;line-height:1.8;color:var(--muted);margin:15px 0}.divider{height:1px;background:var(--line);margin:25px 0}.overlay{position:fixed;inset:0;background:#162c244d;z-index:10;display:flex;align-items:center;justify-content:center;padding:24px}.modal{background:#fff;border-radius:7px;box-shadow:0 12px 50px #17302426;width:100%;max-width:1100px;max-height:92vh;display:flex;flex-direction:column;min-height:0}.modal.small{max-width:780px}.modal-head{padding:20px 24px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:20px}.modal-head div{min-width:0}.modal-head p{margin-top:5px;font-size:12px;color:var(--muted);overflow-wrap:anywhere}.modal-body{padding:22px 24px;overflow:auto}.modal-foot{padding:16px 24px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:10px;align-items:center}.map-top{display:flex;gap:16px;align-items:end;flex-wrap:wrap;margin-bottom:20px}.map-top label:first-child{flex:1;min-width:180px}.map-top input{width:100px}.mapping{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px 18px}.mapping label{font-size:12px}.mapping select{width:100%;font-size:12px}.preview{margin-top:22px;max-height:260px;overflow:auto}.preview table{font-size:11px}.preview th{position:sticky;top:0}.preview td{white-space:nowrap;max-width:none;padding:8px 10px}.notice{background:#fff5e7;border-left:3px solid #c78b36;padding:10px 13px;font-size:12px;line-height:1.7;margin-bottom:18px}.form-options{display:flex;gap:22px;align-items:center;margin:22px 0 0;flex-wrap:wrap}.form-options select{max-width:220px}:scope#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#243e30;color:#fff;padding:11px 20px;border-radius:5px;z-index:30;display:none;max-width:90vw;font-size:13px}.busy{opacity:.6;pointer-events:none}.reference td:first-child{min-width:170px}.reference .selected{background:#e7f3eb}.inline-info{color:#6b7970;font-size:12px;margin:14px 0}.page-error{padding:26px;border:1px solid #edc9cd;background:#fff8f8;color:#a13a45}
@media(max-width:1000px){.layout{grid-template-columns:176px minmax(0,1fr)}.sidebar{padding:22px 10px}.sidebar .brand{font-size:16px}.content{padding:24px 20px}.topbar{padding:0 20px}.mapping{grid-template-columns:repeat(3,minmax(0,1fr))}.heading{flex-wrap:wrap}.stat{padding:0 15px}}
@media(max-width:700px){.layout{display:block}.sidebar{height:auto;position:static;border-right:0;border-bottom:1px solid var(--line);padding:14px 15px;gap:13px}.sidebar .brand{font-size:18px}.sidebar nav{display:flex;gap:5px}.nav-button{font-size:12px;min-height:36px;padding:6px 9px;justify-content:center;gap:6px}.account{position:absolute;right:12px;top:7px;border:0;padding:0}.account div{display:none}.topbar{height:40px;padding:0 16px}.content{padding:20px 14px}h1{font-size:21px}.stats{padding:15px 0;margin-bottom:20px}.stat{padding:0 10px}.stat strong{font-size:20px}.stat small{font-size:11px}.section-line{flex-wrap:wrap}.actions{gap:6px}.actions button,.actions .button{font-size:12px}.overlay{padding:8px}.modal{max-height:97vh}.modal-head{padding:16px}.modal-body{padding:16px}.modal-foot{padding:12px 16px}.mapping{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.settings{padding:20px}.filename{font-size:17px}.heading{margin-bottom:18px}.form-options{gap:12px}.modal h2{font-size:16px}}
}
