:root{color:#18233e;font-synthesis:none;--brand:#202b59;--ground:#f4f6fb;--muted:#526079;--line:#d7deeb;--soft:#e6ebf7;--attention:#f2bd44;--attention-bg:#fff3d2;--attention-ink:#6b4b0b;--error:#8b2432;--error-bg:#fff0f1;caret-color:var(--brand);font-variant-numeric:tabular-nums;scrollbar-color:#8c98b3 #f4f6fb;background:#f4f6fb;font-family:Noto Sans HK,PingFang HK,Microsoft JhengHei,system-ui,sans-serif;font-size:16px;font-weight:400;line-height:1.6}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea,summary{-webkit-tap-highlight-color:transparent}button,.button{min-height:44px;color:var(--brand);cursor:pointer;text-align:center;background:#fff;border:1px solid #bac5da;border-radius:7px;justify-content:center;align-items:center;gap:8px;padding:9px 15px;font-weight:600;line-height:1.4;text-decoration:none;display:inline-flex}button:hover:not(:disabled),.button:hover{background:var(--soft);border-color:var(--brand)}button:active:not(:disabled),.button:active{background:#d4ddef}button:disabled{cursor:not-allowed;opacity:.58}button:disabled:hover{background:inherit}button svg,.button svg{stroke-width:1.8px;flex:none}.primary{background:var(--brand);color:#fff;border-color:var(--brand)}.primary:hover:not(:disabled){color:#fff;background:#334375}.text-button{background:0 0;border-color:#0000;padding-inline:8px;font-size:.875rem}.text-button:hover:not(:disabled){text-underline-offset:4px;border-color:#0000;text-decoration:underline}a{color:var(--brand);text-underline-offset:4px}a:not(.button):hover{color:#40548b}:focus-visible{outline-offset:3px;outline:3px solid #b47800}h1:focus,h2:focus{outline:none}::selection{color:#18233e;background:#f2bd44}h1,h2,h3,h4,p{margin:0}h1,h2,h3,h4{text-wrap:balance}h1{letter-spacing:-.025em;font-size:1.75rem;font-weight:730;line-height:1.3}h2{margin:0 0 10px;font-size:1.125rem;font-weight:700;line-height:1.45}h3{margin:18px 0 8px;font-size:1rem;font-weight:650;line-height:1.5}h4{margin-bottom:5px;font-size:.875rem}p{color:var(--muted);overflow-wrap:anywhere;max-width:74ch;margin:7px 0 12px;font-size:.875rem}small{color:var(--muted);margin-top:4px;font-size:.75rem;line-height:1.6;display:block}strong{font-weight:650}svg{vertical-align:middle}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.skip-link{z-index:20;background:#fff;padding:12px 18px;position:fixed;top:8px;left:10px;transform:translateY(-160%)}.skip-link:focus{transform:translateY(0)}.sidebar{background:var(--brand);color:#fff;z-index:4;flex-direction:column;width:224px;padding:36px 20px;display:flex;position:fixed;inset:0 auto 0 0}.wordmark{letter-spacing:-.02em;padding:0 10px 36px;font-size:1.4rem;font-weight:700}.wordmark span{color:#d6ddf5;letter-spacing:0;margin-top:4px;font-size:.75rem;font-weight:400;display:block}.sidebar nav{flex-direction:column;gap:8px;display:flex}.sidebar nav button,.sidebar-settings{color:#d6ddf5;background:0 0;border:0;justify-content:flex-start;gap:14px;min-height:50px;padding:13px 14px;font-size:.9375rem}.sidebar nav button[aria-current=page]{color:var(--brand);background:#fff}.sidebar nav button:hover:not(:disabled),.sidebar-settings:hover:not(:disabled){color:#fff;background:#344374}.sidebar nav button[aria-current=page]:hover:not(:disabled){background:var(--soft);color:var(--brand)}.sidebar-settings{margin-top:auto}.sidebar p{color:#d6ddf5;border-top:1px solid #627098;margin-top:20px;padding:18px 14px 0;font-size:.75rem}.workspace{min-width:0;margin-left:224px}.app-header{background:var(--brand);color:#fff;justify-content:space-between;align-items:center;gap:16px;padding:30px 40px 24px;display:flex}.app-header p{color:#d6ddf5;margin:5px 0 0;font-size:.8125rem}.header-actions{align-items:center;gap:8px;display:flex}.import-button{color:#fff;white-space:nowrap;background:0 0;border-color:#b9c5e7;font-size:.8125rem}.import-button:hover:not(:disabled){color:#fff;background:#344374;border-color:#fff}.header-settings{display:none}.environment-note{background:var(--attention-bg);color:var(--attention-ink);border-bottom:1px solid #e2d7bb;padding:8px 40px;font-size:.75rem}.bottom-nav{display:none}main{min-width:0;max-width:1320px;margin:auto;padding:0 40px 30px}section{border-bottom:1px solid var(--line);min-width:0;padding:26px 0}.section-heading{justify-content:space-between;align-items:center;gap:14px;display:flex}.section-heading h2,.section-heading h3{margin:0}.section-heading>span{color:var(--muted);font-size:.75rem}.badge{border:1px solid var(--line);max-width:100%;color:var(--muted);background:#fff;border-radius:5px;flex:none;padding:4px 9px;font-size:.75rem;line-height:1.6;display:inline-block}.attention{background:var(--attention-bg);border-color:#ebd08d;color:var(--attention-ink)!important}.filters{border-bottom:1px solid var(--line);padding:20px 0 18px}fieldset{border:0;min-width:0;margin:0;padding:0}legend{margin:0 0 10px;padding:0;font-size:.8125rem;font-weight:650}.filter-fields{flex-wrap:wrap;align-items:flex-end;gap:10px;display:flex}.filter-fields>label{flex:120px;min-width:0}.filter-fields>label:nth-of-type(2){flex-grow:2}.filter-fields>.search-field{flex-basis:170px}.filter-fields>button{font-size:.8125rem}.filter-fields input,.filter-fields select{padding:8px 9px;font-size:.8125rem}label{color:var(--muted);font-size:.8125rem;font-weight:600;display:block}input:not([type=checkbox]),select,textarea{color:#18233e;background:#fff;border:1px solid #aab7ce;border-radius:6px;width:100%;min-width:0;max-width:100%;min-height:44px;margin:5px 0 0;padding:9px 11px;line-height:1.5;display:block}input::placeholder,textarea::placeholder{color:#606e84;opacity:1}input[type=month]{min-width:0}input[type=file]{margin-bottom:14px;padding:10px;font-size:.8125rem;overflow:hidden}input[type=file]::file-selector-button{font:inherit;border:1px solid var(--line);min-height:34px;color:var(--brand);background:var(--ground);cursor:pointer;border-radius:4px;margin-right:10px}textarea{resize:vertical}input:disabled,select:disabled,textarea:disabled{color:#526079;background:#e9edf5}.scope-line{color:var(--muted);border-bottom:1px solid var(--line);flex-wrap:wrap;justify-content:space-between;gap:12px;padding:13px 0;font-size:.75rem;display:flex}.scope-line span{overflow-wrap:anywhere}.overview{grid-template-columns:1.1fr 1fr;gap:0 38px;display:grid}.overview>section{align-self:start}.reconciliation>h3{margin-top:22px}.totals{margin:10px 0 18px}.totals>div{border-bottom:1px solid #e2e7f0;justify-content:space-between;align-items:baseline;gap:16px;padding:9px 0;display:flex}.totals dt{color:var(--muted);font-size:.8125rem}.totals dd{text-align:right;overflow-wrap:anywhere;margin:0;font-size:1.125rem;font-weight:600}.totals>div:last-child{border-bottom:0}.totals>div:last-child dd{color:var(--brand);font-weight:700}.currency-block h3{color:var(--brand);font-size:.875rem}.currency-block .totals dd{font-size:1rem}.warnings{color:var(--attention-ink);margin:14px 0 18px;padding:0;font-size:.8125rem;list-style:none}.warnings li{align-items:flex-start;gap:8px;margin:8px 0;display:flex}.warnings svg{flex:none;margin-top:3px}.warnings span{overflow-wrap:anywhere}.notice,.error{background:var(--attention-bg);color:var(--attention-ink);border:1px solid #e7cf96;border-radius:6px;max-width:none;margin:14px 0;padding:14px 16px;font-size:.8125rem}.error{background:var(--error-bg);color:var(--error);border-color:#dda4ac}.error p{color:var(--error)}.error h2{font-size:1rem}.source-row{border-bottom:1px solid #e2e7f0;justify-content:space-between;align-items:start;gap:14px;padding:18px 0 14px;display:flex}.source-row:last-child{border-bottom:0}.source-row strong{font-size:.9375rem}.source-row p{margin:4px 0;font-size:.75rem}.context-list{margin:12px 0 18px}.context-list>div{border-bottom:1px solid #e2e7f0;justify-content:space-between;align-items:baseline;gap:18px;padding:8px 0;display:flex}.context-list dt{color:var(--muted);flex:0 50%;font-size:.8125rem}.context-list dd{overflow-wrap:anywhere;text-align:right;flex:1;margin:0;font-size:.875rem;font-weight:600}.session-panel{max-width:620px;margin:54px auto;padding:30px 0}.session-panel>svg{color:var(--brand);margin-bottom:18px}.session-panel .text-button{margin-top:15px;display:flex}.empty{color:var(--muted);padding:28px 0}.loading{min-height:240px;padding-top:35px}.skeleton{background:#e2e7f1;border-radius:4px;max-width:100%;height:20px;margin:20px 0}.skeleton.short{max-width:60%}.loading-line{color:var(--brand);padding:12px 0;font-size:.8125rem}.snapshot-surface{width:100%}.snapshot-surface:disabled{opacity:.75}.table-scroll{scrollbar-gutter:stable;max-width:100%;overflow:auto}.month-group{margin-top:24px}.month-group h3{border-bottom:1px solid var(--line);margin:0;padding-bottom:8px}.ledger table{border-collapse:collapse;table-layout:fixed;width:100%}.ledger th{text-align:left;color:var(--muted);background:#eaf0f8;padding:12px 10px;font-size:.75rem;font-weight:600}.ledger th:first-child{width:21%}.ledger th:nth-child(2){width:29%}.ledger th:nth-child(3){width:19%}.ledger th:nth-child(4){width:22%}.ledger th:last-child{width:9%}.ledger td{border-bottom:1px solid var(--line);vertical-align:top;overflow-wrap:anywhere;padding:17px 10px;font-size:.8125rem}.ledger td:first-child,.ledger th:first-child{padding-left:0}.ledger td:last-child{padding-right:0}.ledger tbody tr:hover{background:#eaf0f8}.ledger td button{padding:8px;font-size:.8125rem}.ledger .money{text-align:right;font-size:.875rem;font-weight:650}.ledger th:nth-child(3){text-align:right}.pagination{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:20px 0 2px;display:flex}.pagination span{color:var(--muted);font-size:.75rem}.pagination button{font-size:.8125rem}.transaction-editor{max-width:940px}.detail-description{color:#18233e;margin-top:22px;font-size:1rem}.detail-amount{overflow-wrap:anywhere;color:var(--brand);font-size:1.5rem;display:block}.evidence-chain{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:26px 0;padding:0;list-style:none;display:grid}.evidence-chain li{background:var(--soft);border-radius:5px;min-width:0;padding:15px;font-size:.8125rem;position:relative}.evidence-chain li:not(:last-child):after{content:"";background:var(--brand);width:18px;height:1px;position:absolute;top:24px;right:-18px}.evidence-chain strong,.evidence-chain span{display:block}.evidence-chain span{color:var(--muted);overflow-wrap:anywhere;margin-top:5px;font-size:.75rem}.transaction-editor form{margin-top:32px}.transaction-editor legend{margin-bottom:18px;font-size:1rem}.form-grid{grid-template-columns:1fr 1fr;gap:16px 22px;display:grid}.form-grid .full{grid-column:1/-1}.check{color:#18233e;align-items:center;gap:10px;min-height:44px;margin:4px 0;padding:10px 0;font-weight:400;display:flex}.check input{width:20px;height:20px;accent-color:var(--brand);flex:none;margin:0}.actions{flex-wrap:wrap;align-items:center;gap:10px;margin-top:16px;display:flex}.candidate{border-bottom:1px solid var(--line);padding:26px 0}.candidate h3{margin-top:0}.candidate:last-child{border-bottom:0}.proof-pair{grid-template-columns:1fr 1fr;gap:24px;margin:14px 0;display:grid}.proof{min-width:0}.proof h4{color:var(--muted);font-weight:500}.proof strong{font-size:.875rem}.proof p,.proof button{font-size:.8125rem}.linked-row{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:18px;padding:18px 0;display:flex}.linked-row>div{min-width:0}.linked-row strong{overflow-wrap:anywhere;font-size:.875rem}.linked-row button{flex:none;font-size:.8125rem}.history-row{border-bottom:1px solid var(--line);padding:16px 0}.source-file{border-bottom:1px solid var(--line);padding:24px 0}.source-file:last-child{border-bottom:0}.source-file h3{align-items:center;gap:8px;min-width:0;display:flex}.source-file .filename{color:#18233e;margin-top:13px;font-size:.9375rem}.identifier{overflow-wrap:anywhere;font-size:.75rem}details{margin:15px 0}summary{cursor:pointer;color:var(--brand);min-height:44px;padding:10px 0;font-size:.8125rem;line-height:1.5}summary:hover{text-underline-offset:4px;text-decoration:underline}pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#eaf0f8;max-width:100%;padding:15px;font-family:ui-monospace,monospace;font-size:.75rem}.preview-rows{max-width:100%;max-height:440px;overflow:auto}.preview-rows table{border-collapse:collapse;width:100%;font-size:.8125rem}.preview-rows th,.preview-rows td{border-bottom:1px solid var(--line);text-align:left;overflow-wrap:anywhere;padding:12px 8px}.preview-rows th{background:#eaf0f8}.preview-rows .money{text-align:right}footer{color:var(--muted);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;padding:22px 0;font-size:.75rem;display:flex}@media (width>=1500px){main,.app-header,.environment-note{padding-inline:56px}}@media (width<=1100px){.sidebar{width:190px;padding:28px 12px}.workspace{margin-left:190px}.app-header{padding:26px 28px}.environment-note,main{padding-inline:28px}.overview{grid-template-columns:1fr;gap:0}.ledger table{min-width:760px}.form-grid{gap:14px}.filter-fields>label{flex-basis:150px}}@media (width<=760px){:root{font-size:16px}.sidebar{display:none}.workspace{margin-left:0}.app-header{align-items:flex-start;gap:8px;padding:22px 20px 20px}h1{font-size:1.625rem}.app-header p{max-width:24ch;font-size:.75rem}.header-actions{gap:4px}.import-button{gap:5px;min-height:44px;padding:9px 10px;font-size:.75rem}.header-settings{color:#fff;background:0 0;border:0;min-width:44px;padding:8px;display:inline-flex}.header-settings:hover:not(:disabled){color:#fff;background:#344374}.environment-note{padding:8px 20px;font-size:.6875rem;line-height:1.6}main{padding:0 20px calc(100px + env(safe-area-inset-bottom));width:100%}section{padding:22px 0}.bottom-nav{border-top:1px solid var(--line);padding:7px 8px calc(7px + env(safe-area-inset-bottom));z-index:10;background:#fff;justify-content:space-around;align-items:stretch;min-height:74px;display:flex;position:fixed;inset:auto 0 0}.bottom-nav button{min-width:0;color:var(--muted);background:0 0;border:0;border-radius:5px;flex-direction:column;flex:1;gap:4px;min-height:58px;padding:6px 2px;font-size:.6875rem}.bottom-nav button[aria-current=page]{background:var(--soft);color:var(--brand);font-weight:700}.bottom-nav button:hover:not(:disabled){background:var(--soft)}.scope-line{gap:5px;padding:11px 0;font-size:.6875rem}.filters{padding:16px 0}.filter-fields{align-items:flex-end;gap:10px 8px}.filter-fields>label{flex:calc(50% - 8px)}.filter-fields>label:nth-of-type(2){flex-grow:1}.filter-fields>.search-field{flex-basis:100%}.filter-fields>button{flex:1}.filter-fields select,.filter-fields input{padding:8px;font-size:1rem}.filters legend{font-size:.75rem}.section-heading{gap:10px}.section-heading h2{font-size:1.0625rem}.totals dd{max-width:58%;font-size:1.0625rem}.totals>div{gap:12px;padding:9px 0}.totals dt{font-size:.8125rem}.overview{display:block}.overview .primary{width:100%}.source-row{gap:10px}.source-row .badge{padding:4px 6px;font-size:.6875rem}.context-list>div{gap:12px}.context-list dt{flex-basis:46%}.context-list dd{font-size:.8125rem}.session-panel{margin:20px auto 0;padding:26px 0}.session-panel>.primary{width:100%}.ledger table{table-layout:auto;min-width:0}.ledger thead{display:none}.ledger tbody{display:block}.ledger tr{border-bottom:1px solid var(--line);grid-template-columns:minmax(0,1fr) auto;gap:8px 10px;padding:18px 0;display:grid}.ledger td{min-width:0;display:block;border:0!important;padding:0!important}.ledger td:first-child{grid-column:1;font-size:.75rem}.ledger td:nth-child(2){grid-area:2/1/auto/-1;font-size:.875rem}.ledger td:nth-child(3){text-align:right;overflow-wrap:anywhere;grid-area:1/2;max-width:168px;font-size:.875rem}.ledger td:nth-child(4){grid-area:3/1;align-self:center;font-size:.75rem}.ledger td:last-child{text-align:right;grid-area:3/2;align-self:center}.ledger .table-scroll{scrollbar-gutter:auto;overflow:visible}.ledger table{width:100%}.ledger td small{margin-top:2px;font-size:.6875rem}.ledger td:first-child small{max-width:23ch}.ledger td button{min-width:64px;min-height:44px}.month-group{margin-top:20px}.month-group h3{font-size:.875rem}.pagination{gap:8px}.pagination span{text-align:center;flex-basis:100%;order:3}.pagination button{flex:1}.detail-amount{font-size:1.375rem}.evidence-chain{gap:10px;margin:22px 0}.evidence-chain li{padding:10px 8px;font-size:.75rem}.evidence-chain span{font-size:.6875rem}.evidence-chain li:not(:last-child):after{width:10px;top:20px;right:-10px}.form-grid{grid-template-columns:1fr;gap:16px}.form-grid .full{grid-column:auto}input:not([type=checkbox]),select,textarea{font-size:1rem}.transaction-editor .section-heading h2{font-size:1.0625rem}.transaction-editor .section-heading button{font-size:.8125rem}.transaction-editor .primary{width:100%}.proof-pair{grid-template-columns:1fr;gap:18px}.proof+.proof{border-top:1px dashed #bac5da;padding-top:16px}.candidate h3{font-size:.9375rem}.candidate .actions{flex-direction:column;align-items:stretch}.candidate .actions button{width:100%}.linked-row{flex-direction:column;align-items:flex-start;gap:10px}.source-file h3{font-size:.875rem}.source-file .badge{font-size:.6875rem}.source-file .actions{flex-direction:column;align-items:stretch}.source-file .actions>*{width:100%}.preview-rows{max-height:360px}.preview-rows table{min-width:520px}.import-preview>.primary{width:100%}footer{padding-top:20px}.snapshot-surface:disabled{opacity:.8}}@media (prefers-reduced-motion:no-preference){button,.button{transition:background-color .15s ease-out,border-color .15s ease-out}.transaction-editor{animation:.18s cubic-bezier(.16,1,.3,1) detail-reveal}@keyframes detail-reveal{0%{clip-path:inset(0 0 4%)}to{clip-path:inset(0)}}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}.overview>section[aria-label=來源流水概況]{grid-column:1/-1}.source-flow-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:0 24px;display:grid}.source-flow-grid>article{border-bottom:1px solid var(--line);min-width:0}.advanced-filters{flex:260px;margin:0}.advanced-filters summary{min-height:44px;padding:11px 8px;font-weight:600}.advanced-fields{grid-template-columns:1.5fr 1fr 1.4fr;gap:12px;padding:10px 0;display:grid}.advanced-filters[open]{flex-basis:100%;order:5}.filter-fields>.search-field{min-width:0}@media (width<=760px){.filter-fields>label{flex:120px}.filter-fields>button{flex:0 auto}.advanced-filters{flex-basis:100%;order:5}.advanced-fields{grid-template-columns:1fr 1fr}.advanced-fields .search-field{grid-column:1/-1}.advanced-fields input,.advanced-fields select{font-size:1rem}.advanced-filters summary{padding-left:0}}@media print{.sidebar,.bottom-nav,.header-actions,.filters,button{display:none!important}.workspace{margin:0}main{padding:0}.app-header{color:#18233e;background:#fff}.environment-note{background:#fff}.overview{display:block}}.reconciliation{min-width:0}.reconciliation-list{border-top:1px solid var(--line)}.reconciliation-list>article{border-bottom:1px solid var(--line);grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);align-items:start;gap:24px;padding:20px 0;display:grid}.reconciliation-list h3{margin:0 0 6px}.reconciliation-list p{margin:5px 0 9px}.reconciliation-list strong,.reconciliation-list h3{overflow-wrap:anywhere}.reconciliation-list>article>div{min-width:0}.reconciliation-product{color:var(--muted)}.reconciliation-item,.reconciliation-work{border-bottom:1px solid var(--line);padding:16px 0}.reconciliation-detail h2{margin-top:24px}.reconciliation .context-list dd{overflow-wrap:anywhere}.reconciliation .relation-strip{flex-wrap:wrap;gap:12px;display:flex}.reconciliation .relation-strip span{background:var(--soft);overflow-wrap:anywhere;max-width:100%;padding:8px}.reconciliation-filters input,.reconciliation-filters select{min-width:0;max-width:100%}.reconciliation-filters label{min-width:0}.reconciliation-filters .filter-fields{flex-wrap:wrap;gap:12px;display:flex}@media (width<=760px){.reconciliation-list>article{grid-template-columns:minmax(0,1fr);gap:6px;padding:20px 0}.reconciliation-list>article>div+div{grid-template-columns:minmax(0,1fr) auto;align-items:start;column-gap:12px;display:grid}.reconciliation-list>article>div+div strong,.reconciliation-list>article>div+div p{grid-column:1/-1}.reconciliation-list button{justify-self:start}.reconciliation-filters .filter-fields>label{flex:130px}.reconciliation-filters .filter-fields>label:first-child{flex-basis:100%}.reconciliation-detail .context-list>div{flex-wrap:wrap}.reconciliation-detail .context-list dd{max-width:100%;margin-left:0}}
