:root { font-family: Inter, "Microsoft YaHei", "PingFang SC", sans-serif; color: #172f42; background: #edf3f6; color-scheme: light; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
main { max-width: 1160px; margin: 0 auto; padding: 25px 24px 60px; }
header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
h1 { font-size: clamp(1.55rem, 4vw, 2.25rem); margin: 0; letter-spacing: -.03em; }
h2 { font-size: 1.2rem; margin: 0 0 14px; }
p { line-height: 1.55; }
p:empty, ul:empty { display: none; }
section { background: #fff; border: 1px solid #cedae2; border-radius: 12px; margin-top: 16px; padding: 20px; }
input, button, select { font: inherit; color: inherit; }
button, input, select { min-height: 37px; border: 1px solid #a5b8c7; border-radius: 5px; background: #fff; padding: 6px 9px; }
button { cursor: pointer; font-weight: 650; }
button:hover { background: #edf4f8; }
button:disabled { cursor: wait; opacity: .6; }
button.primary { background: #175b74; color: #fff; border-color: #175b74; }
button.primary:hover { background: #12485d; }
:focus-visible { outline: 2px solid #22789a; outline-offset: 2px; }
.upload, .buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.upload input { max-width: 100%; }
.fields { display: grid; grid-template-columns: repeat(auto-fit,minmax(156px,1fr)); gap: 12px; margin: 12px 0; }
label { display: grid; font-size: .9rem; gap: 4px; }
label input, label select { min-width: 0; }
details { border-top: 1px solid #cedae2; padding: 12px 0; }
summary { cursor: pointer; font-weight: 650; }
.table { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
td, th { padding: 4px; text-align: left; vertical-align: top; }
th { white-space: nowrap; }
.section-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.section-bar h2 { margin: 0; }
.pagination { display: flex; gap: 8px; align-items: center; margin-top: 12px; }
#task-table td, #task-table th { padding: 9px; border-bottom: 1px solid #dce6ed; white-space: nowrap; }
#task-table .buttons { flex-wrap: nowrap; }
#task-table tr[aria-current="true"] { background: #f0f6fa; }
#sheet-tabs button[aria-pressed="true"] { background: #dce8f1; border-color: #175b74; }
.sheet-preview { margin-top: 12px; }
.sheet-preview:empty { display: none; }
.sheet-preview table { width: max-content; min-width: 100%; }
.sheet-preview td, .sheet-preview th { min-width: 72px; max-width: 40ch; padding: 5px 8px; border: 1px solid #b7c7d4; }
.sheet-preview td { white-space: pre-wrap; overflow-wrap: anywhere; }
.sheet-preview td[data-merged] { text-align: center; }
.sheet-preview td, .sheet-preview tbody th { vertical-align: middle; }
.sheet-preview th, .sheet-preview .sheet-header td { background: #dce8f1; color: #173954; }
.sheet-preview .sheet-header td { font-weight: 700; }
.sheet-preview th:first-child { min-width: 42px; }
td input, td select { width: 100%; min-width: 78px; }
td:nth-child(2) input, td:nth-child(7) input { min-width: 126px; }
.notes { color: #774600; font-size: .88rem; }
.reviewed { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; }
.preview { display: block; max-width: min(100%, 860px); max-height: 600px; object-fit: contain; object-position: left top; margin: 10px 0; }
@media(max-width:550px) { main { padding: 18px 12px 44px; } section { padding: 14px; } }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login-card { width: min(100%, 420px); padding: 32px; background: #fff; border: 1px solid #cedae2; border-radius: 12px; }
.login-card h1 { font-size: 1.6rem; }
.login-card form { margin-top: 24px; display: grid; gap: 16px; }
.login-card p { color: #8b322d; margin: 0; }
