:root{color:#172535;background:#eff4f6;font-family:system-ui,Microsoft YaHei,sans-serif}*{box-sizing:border-box}body{margin:0}main{max-width:1220px;margin:0 auto;padding:clamp(18px,5vw,60px)}header{margin-bottom:30px}h1{letter-spacing:-.045em;margin:0;font-size:clamp(30px,5vw,48px)}h2{margin:0;font-size:20px}p{color:#536878;line-height:1.55}.card{background:#fff;border:1px solid #d9e4e8;border-radius:18px;margin-bottom:18px;padding:clamp(16px,3vw,26px)}.drop{text-align:center;background:#f5fbfb;border:1px dashed #8cb6b5;border-radius:12px;margin-top:16px;padding:24px 10px}.drop strong{color:#146764;font-size:18px}.drop p{margin:6px 0 0}.drop.active{background:#dff4ef;border-color:#146764;outline:2px solid #146764}.upload-actions{margin-top:14px}.actions,.toolbar{align-items:center;gap:10px;display:flex}.actions{flex-wrap:wrap;justify-content:center}.toolbar{justify-content:space-between}button{color:#fff;font:inherit;cursor:pointer;background:#146764;border:1px solid #0000;border-radius:8px;padding:9px 15px}button:hover:not(:disabled){filter:brightness(.9)}button:disabled{opacity:.45;cursor:default}.secondary{color:#146764;background:#fff;border-color:#9dc0bf}details{margin-top:16px}summary{cursor:pointer}img{max-width:min(100%,360px);margin-top:12px;display:block}.table-wrap{overflow-x:auto}table{border-collapse:collapse;text-align:left;white-space:nowrap;width:100%}th,td{border-bottom:1px solid #e2ebee;padding:9px 7px}th{background:#edf5f5;font-size:14px}td input:not([type=checkbox]){width:100%;min-width:62px;font:inherit;color:inherit;border:1px solid #d9e4e8;border-radius:5px;padding:6px}td input.title-value{min-width:235px}td input.date-value{min-width:150px}td input.link-value{min-width:180px}.source{text-overflow:ellipsis;background:#f5f8f8;max-width:150px;font-weight:500;overflow:hidden}.source small{color:#a43a2c;display:block}.view-switch{justify-content:flex-start;margin-bottom:16px}.excel-table td{white-space:normal;border:1px solid #e2ebee}.excel-table img{object-fit:contain;width:120px;height:auto;max-height:150px;margin:0}.account-form{border:1px solid #d9e4e8;border-radius:10px;margin:12px 0}.account-inputs{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:8px;display:grid}.account-inputs input,select{width:100%;font:inherit;border:1px solid #d9e4e8;border-radius:6px;padding:6px;display:block}.settings-dialog{width:min(470px,100% - 32px);max-height:82vh;color:inherit;background:#fff;border:1px solid #d9e4e8;border-radius:14px;padding:20px;overflow:auto}.settings-dialog::backdrop{background:#17253566}.dialog-heading{background:#fff;padding:10px 0;position:sticky;top:-20px}.field-list{gap:6px;margin-bottom:0;padding:0;list-style:none;display:grid}.field-list li{border:1px solid #d9e4e8;border-radius:8px;align-items:center;gap:4px;padding:4px;display:flex}.field-list label{flex:1}.restore-fields{margin-top:12px}.field-list button{padding:2px 7px}.delete-account{color:#a43a2c;padding:4px 8px;font-size:13px}.delete-column{white-space:nowrap;width:1%}.row-actions{gap:4px;display:flex}.row-actions button{place-items:center;width:26px;height:26px;padding:0;font-size:14px;display:grid}.delete-row{color:#a43a2c}.delete-row svg{width:15px;height:15px}.reorderable-row>:is(td,th){cursor:grab;touch-action:pan-x;-webkit-user-select:none;user-select:none}.dragging-row>:is(td,th){cursor:grabbing}.dragging-row{opacity:.55}.drop-before>:is(td,th){box-shadow:inset 0 2px #146764}.drop-after>:is(td,th){box-shadow:inset 0 -2px #146764}.assignment{flex-wrap:wrap;justify-content:flex-start;margin-bottom:12px}.assignment select{width:auto}.account-column{white-space:nowrap;width:100px}.row-controls{align-items:center;gap:4px;width:100px;display:flex}.row-controls input{flex:none;margin:0}.row-controls select{width:100%;min-width:0;padding:3px 2px;font-size:13px}.selectable-row{cursor:pointer}.selectable-row:hover>:is(td,th){background:#f0f8f7}.selected-row>:is(td,th),.selected-row:hover>:is(td,th),.results-table .selected-row .source,.results-table .selected-row .account-column,.excel-table .selected-row .account-column{background:#d8f1ec}.selectable-row:focus-visible{outline-offset:-2px;outline:2px solid #146764}.selection-hint,.duplicates-list small{color:#536878;font-size:13px}.duplicates-list{padding:0;list-style:none}.duplicates-list li+li{border-top:1px solid #d9e4e8}.duplicates-list label{cursor:pointer;align-items:flex-start;gap:8px;padding:10px 0;display:flex}.duplicates-list small{overflow-wrap:anywhere;margin-top:4px;display:block}.duplicate-actions{flex-wrap:wrap;justify-content:flex-end}.assignment h3{margin:0;font-size:15px}.ocr-progress{color:#536878;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:12px 0;font-size:13px;display:flex}.ocr-progress progress{accent-color:#146764;flex:1;min-width:100px;height:10px}.analysis-card table{white-space:normal}.project-footer{text-align:center;padding:25px 16px 18px}.project-footer nav{flex-wrap:wrap;justify-content:center;gap:10px;display:flex}.project-footer a{color:#fff;background:#171c27;border:1px solid #6d7685;border-radius:50%;place-items:center;width:38px;height:38px;text-decoration:none;display:grid}.project-footer a:hover,.project-footer a:focus-visible{background:#343e50}.project-footer svg{width:19px;height:19px}.project-footer a span{font-size:9px;font-weight:700}.project-footer p{color:#536878;margin:14px 0 0;font-size:13px}@media (width<=600px){.excel-toolbar{flex-wrap:wrap;gap:8px}.excel-toolbar>.actions{flex-wrap:wrap;justify-content:flex-end;gap:4px;margin-left:auto}.excel-toolbar>.actions>button{white-space:nowrap;min-height:32px;padding:5px 7px;font-size:12px;line-height:1.35}}.results-table .source,.results-table .account-column,.excel-table .account-column{z-index:1;background:#f5f8f8;position:sticky}.results-table .source{width:150px;min-width:150px;max-width:150px;left:0}.results-table .account-column{left:150px}.excel-table .account-column{left:0}.results-table thead .source,.results-table thead .account-column,.excel-table thead .account-column{background:#edf5f5}@media (prefers-reduced-motion:no-preference){header,.card{animation:.25s ease-out both appear}.settings-dialog[open]{animation:.18s ease-out both appear}.settings-dialog::backdrop{animation:.16s ease-out both fade-in}tbody tr{animation:.19s ease-out both fade-in}button,.drop{transition:background-color .16s,border-color .16s,filter .16s,transform .16s}button:active:not(:disabled){transform:scale(.97)}@keyframes appear{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}@keyframes fade-in{0%{opacity:0}to{opacity:1}}}
