:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:#172338;background:#f3f6fa;font-size:16px;line-height:1.5;--navy:#12243e;--blue:#1254cc;--line:#dfe6ef;--muted:#65758b;--red:#b32b31;--green:#087663}
.nav{scrollbar-width:none}.nav::-webkit-scrollbar{display:none}
.site-footer{padding:14px 20px;display:flex;justify-content:center;gap:6px 16px;flex-wrap:wrap;font-size:12px;color:var(--muted);text-align:center;border-top:1px solid var(--line);background:#fff}.site-footer a{color:inherit;text-decoration:underline;text-underline-offset:3px}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}button:focus-visible,a:focus-visible{outline:3px solid #4d91ff;outline-offset:3px}input,select,textarea{border:1px solid #cbd5e2;border-radius:7px;padding:10px 12px;background:white;color:#172338;min-width:0;max-width:100%}input:focus,select:focus,textarea:focus{outline:2px solid #92bafa;border-color:#246ae0}input[type=checkbox]{width:18px;height:18px;accent-color:var(--blue);flex-shrink:0}input[type=file]{width:100%;font-size:14px}label{display:flex;flex-direction:column;gap:7px;font-weight:550;font-size:14px}textarea{resize:vertical;min-height:100px}a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}h1,h2,h3,p{margin:0}h1{font-size:26px;letter-spacing:-.7px;font-weight:700}h2{font-size:18px}h3{font-size:16px}small{font-size:13px;color:var(--muted)}.muted{color:var(--muted)}.mono{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:14px;overflow-wrap:anywhere}.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:42px;border:1px solid #cbd5e2;background:white;border-radius:7px;padding:9px 16px;color:#27384f;font-weight:550;font-size:14px;text-decoration:none;white-space:nowrap}.btn:hover{background:#eef3fa;text-decoration:none}.btn.primary{background:var(--blue);border-color:var(--blue);color:#fff}.btn.primary:hover{background:#0a43ac}.btn.danger{border-color:#e7bdc0;color:var(--red)}.btn.small{padding:5px 10px;min-height:32px}.link-button{background:none;border:none;color:var(--blue);padding:5px 0;font-size:14px}.flex{display:flex;align-items:center;gap:12px}.wrap{flex-wrap:wrap}.between{justify-content:space-between}.stack{display:grid;gap:18px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.full{grid-column:1/-1}.hint{font-size:14px;color:var(--muted);font-weight:400}.notice{background:#eef4ff;border:1px solid #d2e0fb;border-radius:8px;padding:13px 16px;font-size:14px;color:#284874}.notice.warn{background:#fff6e9;border-color:#f2d8ac;color:#8b5312}.notice.error{background:#fff1f1;border-color:#efbfc2;color:#99252d;white-space:pre-line}.error-slot:empty{display:none}.badge{display:inline-flex;padding:4px 9px;border-radius:5px;font-size:13px;font-weight:550;white-space:nowrap;background:#eef2f7;color:#52627a}.badge.red{background:#fdebed;color:#a52631}.badge.amber{background:#fff1d9;color:#955d0d}.badge.green{background:#e6f5ef;color:#096849}.badge.blue{background:#eaf1ff;color:#215dbb}.check{flex-direction:row;align-items:flex-start;font-weight:400}.divider{height:1px;background:var(--line);margin:5px 0}
.layout{display:grid;grid-template-columns:224px minmax(0,1fr);min-height:100vh}.sidebar{background:var(--navy);color:#e4ecf7;padding:30px 20px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:10px;margin:0 0 36px;font-size:18px;font-weight:650;white-space:nowrap}.brand img{width:34px;height:34px}.brand-sub{font-size:12px;letter-spacing:2px;font-weight:400;color:#99acc5;margin-top:3px}.nav-label{color:#8298b5;font-size:12px;margin:7px 12px 12px;letter-spacing:1px}.nav{display:grid;gap:7px}.nav button{text-align:left;padding:12px 14px;color:#baccdf;background:transparent;border:0;border-radius:7px;font-size:15px;display:flex;align-items:center;gap:11px}.nav button:hover{background:#1e3554;color:white}.nav button.active{background:#24446d;color:white;box-shadow:inset 3px 0 #78aafa}.nav-icon{width:21px;height:21px}.sidebar-foot{margin-top:auto;padding-top:35px;font-size:13px;color:#9dafc6}.sidebar-foot strong{display:block;font-size:14px;color:#d8e3f2;margin-bottom:6px}.workspace{min-width:0}.topbar{padding:18px 32px;background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:15px;font-size:14px;min-height:76px}.topbar .role{padding:3px 9px;border:1px solid #d9e2ed;border-radius:4px;color:#556783}.user-badge{width:32px;height:32px;background:#eaf0fa;border-radius:50%;display:grid;place-items:center;font-weight:650;color:#275184}.page{padding:30px 32px 48px;max-width:1640px;margin:auto}.page-head{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:24px}.page-head p{font-size:14px;color:var(--muted);margin-top:6px}.eyebrow{font-size:12px;letter-spacing:1.5px;color:#73849d;margin-bottom:7px;font-weight:600}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:25px}.metric{background:#fff;border:1px solid var(--line);border-radius:9px;padding:20px 22px;border-top:3px solid #a8bdd9}.metric.alert{border-top-color:#d8555b}.metric.warning{border-top-color:#d99a3d}.metric.good{border-top-color:#38a790}.metric-label{font-size:14px;color:#596c85}.metric-number{font-size:34px;font-weight:650;line-height:1.35;margin:9px 0 5px;letter-spacing:-1px}.metric-number span{font-size:13px;color:#8391a5;font-weight:400;letter-spacing:0;margin-left:6px}.metric small{display:block}.panel{background:white;border:1px solid var(--line);border-radius:10px;overflow:hidden;margin-bottom:22px}.panel-head{padding:19px 23px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:15px}.panel-body{padding:22px}.table-wrap{overflow-x:auto;max-width:100%}table{border-collapse:collapse;width:100%;font-size:14px}th{text-align:left;font-weight:550;color:#65758b;background:#f8fafd;padding:12px 20px;white-space:nowrap;border-bottom:1px solid var(--line)}td{padding:16px 20px;border-bottom:1px solid #edf1f6;vertical-align:middle}tr:last-child td{border-bottom:0}tbody tr:hover{background:#fafdff}td strong{font-weight:550}td .sub{font-size:12px;color:#7b899c;margin-top:4px}.empty{padding:44px 24px;text-align:center;color:var(--muted)}.empty .empty-icon{width:46px;height:46px;margin:0 auto 13px;border:1px solid #c8d6e8;border-radius:12px;display:grid;place-items:center;color:#748faa}.empty h3{color:#314863;margin-bottom:7px}.empty p{font-size:14px;max-width:520px;margin:0 auto 18px}.process{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:var(--line)}.process>div{padding:21px;background:white;display:flex;gap:13px}.step-no{font-size:13px;width:26px;height:26px;background:#eaf1fd;color:#2660bc;border-radius:6px;flex-shrink:0;display:grid;place-items:center}.process p{font-size:13px;color:var(--muted);margin-top:5px}.toolbar{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:18px}.toolbar input[type=search]{width:300px}.tabs{display:flex;gap:4px;flex-wrap:wrap}.tabs button{background:white;border:1px solid var(--line);padding:8px 13px;font-size:14px;border-radius:6px;color:#566981}.tabs button.active{background:#eaf1ff;border-color:#adcaef;color:#1254cc}.pagination{padding:13px 20px;display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);font-size:13px;color:var(--muted)}.urgent{color:var(--red);font-weight:550}.flow-link{display:flex;justify-content:space-between;padding:13px 0;border-bottom:1px solid #edf1f6;font-size:14px}.flow-link:last-child{border:0}.login-page{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.login-story{background:var(--navy);color:white;padding:12vh 11%;display:flex;flex-direction:column;justify-content:center}.login-story .brand{font-size:24px}.login-story h1{font-size:38px;line-height:1.55;margin:35px 0 24px;letter-spacing:0}.login-story p{font-size:16px;line-height:1.9;color:#adbed5;max-width:360px}.login-steps{margin-top:45px;display:grid;gap:20px;color:#d0def0;font-size:14px}.login-form-wrap{display:flex;align-items:center;justify-content:center;padding:40px}.login-card{max-width:400px;width:100%}.login-card h2{font-size:26px;margin-bottom:8px}.login-card form{margin-top:30px}.login-card .btn{width:100%}.login-footer{font-size:13px;color:#79899d;margin-top:25px;line-height:1.8}.starting{padding:30px;color:var(--muted)}
dialog{border:0;padding:0;border-radius:12px;box-shadow:0 24px 90px #07193255;width:min(760px,calc(100vw - 32px));max-height:calc(100dvh - 48px);color:#172338}dialog::backdrop{background:#0e213775;backdrop-filter:blur(2px)}.modal-head{padding:23px 26px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.modal-head p{font-size:13px;color:var(--muted);margin-top:4px}.modal-content{padding:24px 26px}.close{border:none;background:#f1f4f8;width:30px;height:30px;border-radius:6px;font-size:22px;line-height:1;color:#68788b;flex-shrink:0}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:7px}.drop-zone{border:1px dashed #a6bcda;border-radius:8px;padding:20px;background:#f7faff}.field-help{font-size:12px;color:var(--muted);font-weight:400}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-bottom:20px}.detail-grid dt{font-size:12px;color:var(--muted);margin-bottom:4px}.detail-grid dd{margin:0;font-size:14px;overflow-wrap:anywhere}.photos{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.photos img{width:100%;height:135px;object-fit:contain;background:#edf2f8;border-radius:7px}.event{border-left:2px solid #dfe8f5;padding:0 0 17px 15px;margin-left:3px}.event strong{font-size:14px}.event p{font-size:13px;color:#65758b;white-space:pre-wrap;margin-top:6px}.event small{font-size:12px}.source-kind{width:5px;height:23px;background:#759ddb;border-radius:2px;margin-right:9px;display:inline-block;vertical-align:middle}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#18344f;color:white;box-shadow:0 8px 30px #162d4930;border-radius:8px;padding:13px 22px;z-index:100;font-size:14px;max-width:90vw;display:none}#toast.show{display:block}.hidden{display:none!important}.table-scroll{max-height:300px;overflow:auto}.receipt-list{max-height:230px;overflow:auto}.footnote{font-size:12px;color:#8090a3;margin-top:20px}
@media(min-width:1440px){.page{padding:38px 45px}.topbar{padding-left:45px;padding-right:45px}}
@media(max-width:1000px){.layout{grid-template-columns:190px minmax(0,1fr)}.sidebar{padding:25px 14px}.brand{font-size:16px}.page{padding:24px 22px}.topbar{padding:16px 22px}.metrics{gap:10px}.metric{padding:16px}.metric-number{font-size:29px}.process{grid-template-columns:1fr}.login-story{padding:50px}.login-story h1{font-size:30px}}
@media(max-width:720px){.layout{display:block}.sidebar{position:static;height:auto;padding:16px 16px 0}.brand{margin:0 0 15px;font-size:18px}.brand-sub,.nav-label,.sidebar-foot{display:none}.nav{display:flex;overflow:auto;gap:4px;padding-bottom:12px}.nav button{flex-shrink:0;padding:9px 12px;font-size:14px}.nav-icon{display:none}.nav button.active{box-shadow:none;background:#31527b}.topbar{padding:12px 16px;min-height:60px}.topbar>.muted{display:none}.topbar .flex{gap:8px}.page{padding:22px 16px}.page-head{align-items:flex-start;flex-direction:column;gap:14px}.page-head .flex{width:100%;flex-wrap:wrap}h1{font-size:24px}.metrics{grid-template-columns:1fr 1fr;gap:10px}.metric{padding:15px}.metric-number{font-size:30px}.metric small{font-size:12px}.panel-head{padding:16px;flex-wrap:wrap}.panel-body{padding:16px}td,th{padding:13px 16px}.form-grid,.detail-grid{grid-template-columns:1fr}.full{grid-column:auto}.toolbar{gap:12px}.toolbar input[type=search]{width:100%}.login-page{display:block}.login-story{padding:25px}.login-story .brand{margin:0;font-size:22px}.login-story h1,.login-story>p,.login-steps{display:none}.login-form-wrap{padding:38px 25px;min-height:70vh}.modal-head,.modal-content{padding:20px}.photos{grid-template-columns:1fr 1fr}.modal-actions{flex-wrap:wrap}.modal-actions .btn{flex-grow:1}.user-badge{display:none}.empty{padding:30px 17px}.process>div{padding:17px}.topbar .role{font-size:12px}}
.bulk-dialog{width:min(1200px,calc(100vw - 32px))}.bulk-toolbar{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}.bulk-summary{font-size:14px;color:#1254cc;font-weight:600;padding:10px 0}.paste-target textarea{min-height:72px;border:1px dashed #8daed9;background:#f7faff}.bulk-table-wrap{max-height:380px;overflow:auto;border:1px solid var(--line);border-radius:7px;margin-top:12px}.bulk-table-wrap table{min-width:1040px;width:max-content}.bulk-table-wrap th{position:sticky;top:0;z-index:1;padding:9px 10px;font-size:13px}.bulk-table-wrap tbody th{position:static;background:#f8fafd;text-align:center;min-width:58px}.bulk-table-wrap td{padding:0;border:1px solid #e5ebf3}.bulk-table-wrap td:first-child{padding:0 10px}.bulk-table-wrap input[type=text]{border:0;border-radius:0;width:180px;max-width:none;font-size:13px;padding:9px 10px;min-height:36px;background:transparent}.bulk-table-wrap input[type=text]:focus{outline:2px solid #5593ef;outline-offset:-2px}.bulk-table-wrap .bulk-error-row{background:#fff0f0}.bulk-table-wrap .bulk-error-row th{color:#a52631;background:#ffe7e7}.bulk-dialog .modal-content{padding-top:18px}.bulk-dialog .pagination{padding-left:0;padding-right:0;font-size:12px}.bulk-dialog #expected-count-label input{max-width:340px}.bulk-dialog .modal-actions{position:sticky;bottom:-24px;background:white;border-top:1px solid var(--line);padding:14px 0 5px;z-index:2}@media(max-width:720px){.bulk-dialog{width:calc(100vw - 16px)}.bulk-dialog .modal-content{padding:14px}.bulk-toolbar{gap:6px}.bulk-toolbar .btn{font-size:12px;padding:6px 9px}.bulk-table-wrap{max-height:300px}.bulk-dialog .modal-actions{bottom:-14px}.bulk-dialog .pagination{flex-wrap:wrap;gap:8px}}
.bulk-dialog .modal-content,.bulk-dialog form,.bulk-dialog #import-input{min-width:0;max-width:100%}.bulk-table-wrap{width:100%;max-width:100%;min-width:0}.bulk-table-wrap td:nth-child(3) input{width:230px}.bulk-table-wrap td:nth-child(5) input{width:240px}
.bulk-dialog .modal-actions{bottom:0;padding-bottom:14px}
.carrier-paste-panel{padding:14px;margin-bottom:14px;border:1px solid #adcaef;border-radius:8px;background:#f7faff}.carrier-paste-panel .hint{margin-top:8px}.carrier-paste-panel .notice{margin-top:10px}
@media(min-width:1000px){.bulk-dialog .form-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.bulk-dialog .modal-head{padding:18px 24px}.bulk-dialog #import-form{gap:12px}.bulk-dialog .paste-target textarea{min-height:52px;height:52px}}

.import-entry .hint{margin-top:8px}.import-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.nav-icon{flex-shrink:0}.sidebar{overflow-y:auto}
@media(max-width:1000px) and (min-width:721px){.nav button{font-size:14px;padding:11px 8px;gap:7px}}
@media(max-width:720px){.nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;overflow:visible}.nav button{font-size:13px;padding:9px 10px;white-space:normal}.import-entry .btn{width:100%}.import-metrics{grid-template-columns:1fr 1fr}}

@media(max-width:720px){.page-head > .flex > label.flex{width:auto;flex-direction:row;flex-wrap:wrap}}
