:root { color-scheme: light; font: 14px/1.5 -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif; color: #25272b; background: #f5f6f7; }
* { box-sizing: border-box; letter-spacing: 0; }
body { margin: 0; }
header { min-height: 64px; padding: 12px max(18px,calc((100% - 1040px)/2)); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #d9dde2; background: #fff; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 650; }
.brand img { display: block; background: #222; border-radius: 6px; object-fit: contain; }
.local { color: #176443; font-size: 12px; }
main { max-width: 1076px; margin: auto; padding: 24px 18px 40px; }
h1 { font-size: 24px; line-height: 1.35; margin: 0 0 24px; overflow-wrap: anywhere; }
h2 { font-size: 16px; margin: 0; }
section { border-top: 1px solid #d9dde2; padding: 18px 0; min-width: 0; }
.section-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.section-head span { color: #62666d; font-size: 12px; }
label { display: block; font-weight: 550; margin-bottom: 6px; }
input[type=file] { display: block; width: 100%; min-height: 44px; margin-bottom: 12px; font: inherit; }
textarea { width: 100%; height: 240px; min-height: 140px; resize: vertical; padding: 12px; background: #fff; border: 1px solid #aeb5bf; border-radius: 6px; color: inherit; font: 13px/1.65 ui-monospace,SFMono-Regular,Consolas,monospace; }
button,select { min-height: 42px; font: inherit; border: 1px solid #aeb5bf; border-radius: 5px; background: #fff; color: inherit; padding: 8px 14px; cursor: pointer; }
button:hover:not(:disabled) { background: #edf0f3; }
button.primary { background: #245fbd; color: #fff; border-color: #245fbd; }
button.primary:hover:not(:disabled) { background: #194e9f; }
button:disabled { opacity: .5; cursor: not-allowed; }
:focus-visible { outline: 3px solid #3278df; outline-offset: 3px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
#status { min-height: 44px; margin: 10px 0 0; color: #565c65; overflow-wrap: anywhere; }
.totals { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin: 0 0 12px; border-block: 1px solid #d9dde2; }
.totals div { padding: 12px; border-right: 1px solid #d9dde2; }
.totals div:last-child { border: 0; }
dt { color: #62666d; font-size: 12px; }
dd { margin: 0; font-variant-numeric: tabular-nums; }
.totals dd { font-size: 22px; }
#valid { color: #176443; } #errors { color: #a32937; }
.types { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); margin: 0 0 20px; gap: 8px; }
.types dd { font-size: 15px; }
.controls { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.tabs { display: flex; gap: 4px; }
.tabs button { min-width: 72px; }
.tabs [aria-pressed=true] { border-color: #245fbd; background: #e8effb; color: #164c9e; }
.controls label { margin: 0; font-size: 12px; }
select { display: block; width: 150px; }
.rows { height: 360px; overflow: auto; background: #fff; border: 1px solid #d9dde2; border-radius: 6px; padding: 0 12px; }
.record { padding: 12px 0; border-bottom: 1px solid #e5e7eb; }
.record strong { font-size: 13px; }
.record.bad strong { color: #a32937; }
.record p { margin: 5px 0; overflow-wrap: anywhere; }
pre { margin: 6px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 12px; }
#page { min-width: 70px; text-align: center; font-variant-numeric: tabular-nums; }
@media (max-width: 540px) { h1 { font-size: 21px; } .types { grid-template-columns: repeat(3,minmax(0,1fr)); } .totals div { padding: 10px 6px; } .actions button { flex: 1 0 auto; } main { padding-top: 20px; } }
