:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;color:#172843;background:#f3f6fb;font-synthesis:none}*{box-sizing:border-box}body{margin:0}header{background:#0c2148;color:#fff;display:flex;justify-content:space-between;align-items:center;padding:20px 32px}header strong{font-size:22px}header span{margin-left:20px;font-size:14px;color:#a7bbdf}a{color:#2060ba}header a{color:#dce8ff;text-decoration:none}main{max-width:1200px;margin:0 auto;padding:24px}.status{padding:12px 16px;border-radius:10px;background:#e7eefb;color:#23509b;font-size:14px;margin-bottom:24px;white-space:pre-wrap}.status.error{background:#fff0ee;color:#b63d32}.intro{margin:30px 0}.eyebrow{color:#3874be;font-size:13px;letter-spacing:2px}.intro h1{font-size:28px;line-height:1.4}.intro p{color:#6e7f97;line-height:1.7}.columns{display:grid;grid-template-columns:1.2fr 1fr;gap:24px}.panel{padding:26px;border:1px solid #dce4ef;border-radius:18px;background:white;margin-bottom:24px}h2{font-size:19px;margin:0 0 18px}h3{font-size:16px;margin-top:28px}.muted{font-size:13px;color:#7b8ba3;line-height:1.8}.actions{display:flex;flex-wrap:wrap;gap:12px;margin:22px 0}button,.button{display:inline-block;background:#1f63cf;color:#fff;font:inherit;font-size:14px;border:0;border-radius:9px;padding:12px 18px;cursor:pointer;text-decoration:none}button:disabled{opacity:.5;cursor:not-allowed}.secondary{background:#edf3fc;color:#285790}label{display:block;font-size:13px;color:#526681;margin:16px 0 12px}input{display:block;margin-top:8px;width:100%;padding:11px 12px;border:1px solid #ced9e7;border-radius:8px;font:inherit;font-size:14px;color:#172843;background:#fff}input:focus{outline:2px solid #89b3f2;outline-offset:1px}.check{display:flex;align-items:center;gap:9px}.check input{width:18px;margin:0}.fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}details{margin-top:24px}summary{cursor:pointer;font-size:14px;color:#37567d}details p{font-size:13px;line-height:1.8;color:#77869c}#matches{display:flex;flex-direction:column;gap:7px;margin-top:12px}#matches button{background:#f0f5ff;color:#274f88;text-align:left;line-height:1.5}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:13px;margin-bottom:22px}td,th{text-align:left;border-bottom:1px solid #e4eaf3;padding:12px;min-width:120px}th{color:#6882a2;background:#f6f9fd}#preview-errors{color:#ba4433;font-size:14px;line-height:1.7;white-space:pre-wrap;margin-bottom:18px}#cancel{margin-left:12px}[hidden]{display:none!important}@media(max-width:720px){header{padding:18px}header span{display:none}main{padding:16px}.columns{grid-template-columns:1fr;gap:0}.panel{padding:20px}.intro{margin:20px 0}.intro h1{font-size:23px}.fields{gap:10px}}

.actions{align-items:center}.actions .button{margin:0}#usage{white-space:pre-line}
select,textarea{display:block;width:100%;max-width:100%;margin-top:8px;padding:10px;border:1px solid #ced9e7;border-radius:8px;background:#fff;color:#172843;font:inherit}textarea{min-height:75px;resize:vertical}.ledger-table{max-height:540px}.ledger-table td{vertical-align:top;min-width:230px;white-space:pre-wrap}.ledger-table td:first-child{min-width:50px}.ledger-table input[type=checkbox]{width:18px;height:18px}.ledger-table p{line-height:1.6}.ledger-table button{margin-top:8px}.ledger-table thead{position:sticky;top:0}#preview-rows td{white-space:pre-wrap}

.ledger-chat{scroll-margin-top:14px}
.ledger-dialog{display:grid;gap:12px;padding:16px;border:1px solid #dce7f5;border-radius:16px;background:#f3f7fd}
.ledger-dialog>details{margin:0}
#ledger-notices{margin:0;padding:10px 14px 10px 32px;border:1px solid #f1d59d;border-radius:10px;background:#fff8e9;color:#754b0e;font-size:14px;line-height:1.6}
.ledger-bubble{justify-self:start;max-width:100%;margin:0;padding:10px 14px;border-radius:12px;background:#fff;line-height:1.6;overflow-wrap:anywhere}
.ledger-attachment{justify-self:end;background:#dceaff;color:#173f75}
.ledger-drop{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:14px;border:2px dashed #a9c1e3;border-radius:12px;background:#fff;color:#254b81}
.ledger-drop small{flex-basis:100%;color:#526681}
.ledger-dragging .ledger-drop{border-color:#1f63cf;background:#e8f2ff}
.ledger-other>summary{margin:0 0 14px}
.ledger-table{margin-top:14px}
.ledger-upload{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:14px}
.ledger-upload p{margin:0}
