/* Shared typography: 16px body, 14px supporting text. */
:root{font-family:Inter,"PingFang SC","Microsoft YaHei",sans-serif;font-size:16px;color:#192c32;background:#f5f7f8;font-synthesis:none;--muted:#52666d;--accent:#15796c;--line:#dce5e5;--secondary:#52666d}
*{box-sizing:border-box}body{margin:0;line-height:1.5}button,input,select{font:inherit}button{cursor:pointer;transition:background .15s}button:disabled{cursor:wait;opacity:.65}
input,select{border:1px solid #aebfc2;border-radius:8px;background:#fff;padding:10px 12px;color:#24383f;min-width:0;min-height:46px;outline:none}input:focus,select:focus,button:focus-visible{outline:3px solid #87c7b9;outline-offset:2px}input::placeholder{color:#60757b}
button{border:0;border-radius:8px;min-height:44px;padding:10px 16px;background:#edf2f1;color:#34564f}.primary{background:var(--accent);color:white;font-weight:600}.primary:hover{background:#106458}.quiet{background:transparent;color:#405d63}.quiet:hover{background:#e6edeb}.muted{color:var(--muted);font-size:15px;line-height:1.7}.eyebrow{color:#526b6d;font-size:12px;font-weight:600;letter-spacing:1.4px;margin:0 0 6px}
h1,h2,h3,p{margin-top:0}h1{font-size:24px;margin-bottom:0;letter-spacing:1px}h2{font-size:27px;letter-spacing:-.5px;margin-bottom:6px}h3{font-size:18px;margin:0}.logo{width:44px;height:44px;border-radius:12px;background:#14796c;color:white;display:grid;place-items:center;font-size:24px;font-weight:700}.brand{display:flex;gap:14px;align-items:center}main{max-width:1240px;margin:auto;padding:0 32px}
header{height:88px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.intro{display:flex;align-items:center;justify-content:space-between;padding:24px 0 20px;gap:20px}.intro .muted{margin:0}.connection{font-size:14px;color:#2e6555;background:#edf5f0;border:1px solid #d1e4d7;border-radius:20px;padding:8px 13px;white-space:nowrap}.connection i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#26795b;margin-right:6px}
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:0 0 20px}.stats article{background:white;border:1px solid var(--line);border-radius:10px;padding:17px 20px}.stats p{font-size:15px;color:#435d64;display:flex;align-items:center;justify-content:space-between;margin:0 0 8px}.stats strong{font-size:30px;letter-spacing:-.6px;display:block;font-weight:600;font-variant-numeric:tabular-nums;line-height:1.3}.stats small{display:block;font-size:14px;color:var(--secondary);margin-top:6px}.dot{width:8px;height:8px;border-radius:50%;display:inline-block}.amber{background:#ad711b}.green{background:#26775d}
.panel{border:1px solid var(--line);border-radius:10px;background:white}.add-panel{padding:20px 22px;margin-bottom:22px}.section-title{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:16px}.section-title span{font-size:14px;color:var(--secondary)}form label{min-width:0;display:flex;flex-direction:column;gap:7px;font-size:14px;color:#405b63}form input{font-size:16px;width:100%}#add{display:grid;grid-template-columns:2fr 1.2fr 1.2fr 1fr;gap:14px;align-items:end}#add button{min-height:46px;white-space:nowrap}
.list-bar{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;gap:16px}.tabs{display:flex;border-bottom:1px solid #cad8d6;gap:24px}.tabs button{border-radius:0;background:none;padding:11px 0;color:#4b656c;font-size:16px;border-bottom:3px solid transparent;white-space:nowrap}.tabs button.active{color:#126d5e;border-bottom-color:#126d5e;font-weight:600}.tabs b{background:#e5edeb;border-radius:5px;font-size:14px;padding:2px 8px;margin-left:7px;font-variant-numeric:tabular-nums}.tabs .active b{background:#dcefe7;color:#155e50}.tools{display:flex;gap:6px}.tools input{font-size:15px;width:220px}.tools button{font-size:15px;white-space:nowrap}
.table-head,.record{display:grid;grid-template-columns:minmax(210px,1.6fr) minmax(100px,.8fr) minmax(175px,1.1fr) minmax(175px,1.1fr) 124px;gap:14px;align-items:center;padding:16px 20px}.table-head{font-size:14px;font-weight:600;color:#4e656c;padding-top:0;padding-bottom:10px}.record{background:#fff;border:1px solid #d3dfe0;border-radius:10px;margin-bottom:12px;min-height:116px}.product{min-width:0}.product time{font-size:14px;color:var(--secondary);display:block;margin-bottom:5px}.product strong{font-size:17px;line-height:1.55;word-break:break-word;font-weight:600;display:block}.money{font-size:18px;font-weight:600;white-space:nowrap;font-variant-numeric:tabular-nums}.money span{font-size:15px;color:#4e676e;margin-right:4px}.record select{width:100%;font-size:16px;min-height:46px;padding:9px 8px;background:#fff;border-color:#aebfc2}.record select.waiting{color:#80520d;border-color:#d0b584;background:#fffaf0}.record select.complete{color:#14614c;border-color:#9bc3b3;background:#f1f9f5}.record select.deleted{color:#52636a;background:#f0f3f4;border-color:#bfcbcf}.record select option{color:#24383f;background:white}.record select:disabled{color:#586b72;background:#edf1f2}.field-label{display:none}.sync{display:block;color:var(--secondary);font-size:14px;line-height:1.5;margin-top:5px}.sync.synced{color:#27705a}.sync.pending{color:#80520d}.sync.failed{color:#ad352c;font-weight:600}.sync.uncertain,.sync.unlinked{color:#81520d;font-weight:600}.sync-detail{font-size:14px;color:#754b18;margin-top:5px;line-height:1.6;overflow-wrap:anywhere}.retry{padding:4px 8px;margin:3px 0 0 4px;min-height:36px;background:#fff1ef;font-size:14px;color:#9f3029;border:1px solid #e3b0aa}.actions{display:flex;gap:8px}.actions button{background:#edf4f1;padding:8px 10px;color:#176653;font-size:15px;min-width:56px;min-height:44px;font-weight:600}.actions button:hover{background:#dcece5}.actions .delete{color:#a13730;background:#fff4f2}.actions .delete:hover{background:#f9e1dd}
.empty{padding:44px 20px;text-align:center;background:white;border:1px dashed #b9cdca;border-radius:10px;color:#526a6b;font-size:16px}.empty strong{display:block;font-size:28px;margin-bottom:12px;color:#417d69}.list-footer{color:var(--secondary);font-size:14px;margin:16px 0 28px}footer{display:flex;justify-content:space-between;gap:12px;padding:18px 0;border-top:1px solid var(--line);font-size:14px;color:var(--secondary)}
.gate{min-height:100vh;display:grid;place-items:center;padding:20px;background:radial-gradient(ellipse at 50% 30%,#e6efeb,transparent 65%)}.unlock{width:410px;padding:34px}.unlock .logo{margin-bottom:24px}.unlock h1{margin-bottom:12px}.unlock label{margin-top:22px}.unlock input,.unlock button{width:100%;margin-top:10px}.unlock input{letter-spacing:7px}.unlock button{display:flex;justify-content:space-between;margin-top:18px}.footnote{font-size:14px;color:var(--secondary);text-align:center;margin:22px 0 0}.error{font-size:14px;color:#a33027;margin:15px 0 0}
dialog{border:1px solid var(--line);border-radius:14px;width:440px;max-width:calc(100vw - 32px);padding:26px;box-shadow:0 20px 70px #142e3230}dialog::backdrop{background:#18373566;backdrop-filter:blur(3px)}dialog label{margin-bottom:18px}dialog .primary{width:100%}#toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);padding:13px 22px;background:#203f38;color:white;border-radius:9px;font-size:16px;max-width:90vw;box-shadow:0 5px 20px #0002;z-index:100}[hidden]{display:none!important}
@media(max-width:1050px){main{padding:0 24px}.table-head{display:none}.record{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"info amount" "invoice reimbursement" "actions actions";gap:14px 18px;padding:18px 20px}.product{grid-area:info}.money{grid-area:amount;align-self:start;justify-self:end;padding-top:22px}.invoice-field{grid-area:invoice}.reimbursement-field{grid-area:reimbursement}.field-label{display:block;font-size:14px;color:var(--secondary);margin-bottom:6px}.actions{grid-area:actions;justify-content:flex-end;border-top:1px solid var(--line);padding-top:12px}.stats article{padding:16px}.stats strong{font-size:28px}.stats small{font-size:14px}.intro{gap:14px}.list-bar{align-items:flex-start;flex-wrap:wrap}}
@media(max-width:650px){main{padding:0 16px}header{height:80px}.brand .eyebrow{display:none}.logo{width:40px;height:40px}h1{font-size:22px}h2{font-size:24px}.intro{padding:20px 0 18px;display:block}.connection{display:inline-block;margin-top:12px}.stats{grid-template-columns:1fr 1fr;gap:10px}.stats strong{font-size:27px}.stats p{font-size:14px}.stats article{padding:15px 12px}.add-panel{padding:18px 16px}.section-title span{display:none}#add{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px}#add label:first-child{grid-column:1/-1}#add button{grid-column:1/-1}.list-bar{align-items:stretch;flex-direction:column;gap:12px}.tools input{width:100%;flex:1}.tools{min-width:0}.tabs{gap:24px}.record{padding:16px;gap:14px 12px;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.product{grid-column:1/-1;padding-right:100px}.money{grid-row:1;grid-column:2;font-size:18px;padding-top:25px}.record select{font-size:16px;padding-left:7px}.product strong{font-size:17px}.actions button{min-width:66px}.list-footer{line-height:1.8}footer{flex-wrap:wrap}.unlock{padding:28px;width:min(410px,100%)}.unlock .eyebrow{font-size:11px}}
