:root{font-family:"PingFang SC","Microsoft YaHei",system-ui,sans-serif;color:#242722;background:#f5f1e8;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:linear-gradient(145deg,#f8f5ee 0,#eef1e6 100%);min-height:100vh}
button,input,textarea{font:inherit}.shell{width:min(920px,100%);margin:auto;padding:0 20px 60px}
header{height:72px;display:flex;align-items:center;justify-content:space-between}.brand{font-family:"Songti SC",serif;font-weight:700;letter-spacing:.08em}
.brand span{display:inline-grid;place-items:center;width:30px;height:30px;margin-right:9px;color:#fff;background:#714637;border-radius:4px}
.hidden{display:none!important}.login-card{margin:8vh auto 0;max-width:680px;padding:clamp(28px,6vw,64px);background:#fffdf8;border:1px solid #ded8cc;border-radius:24px;box-shadow:0 24px 80px #4b3b2514}
.eyebrow{color:#8e5f48;text-transform:uppercase;letter-spacing:.16em;font-size:13px;font-weight:700}
h1{font-family:"Songti SC","STSong",serif;font-size:clamp(38px,8vw,72px);line-height:1.08;letter-spacing:-.04em;margin:18px 0}
.intro,.hero>p{color:#62665d;line-height:1.8;max-width:620px}.login-card label{font-weight:700;font-size:14px}.input-row{display:flex;gap:10px;margin-top:10px}
input{min-width:0;border:1px solid #cbc5b9;border-radius:12px;padding:14px;background:#fff}input:focus,textarea:focus{outline:3px solid #b8734d30;border-color:#9c5f43}
button{border:0;border-radius:12px;padding:12px 18px;cursor:pointer}.input-row button,.primary{background:#744837;color:#fff;font-weight:700}
.hero{padding:50px 0 24px}.hero h1{font-size:clamp(42px,8vw,70px)}.upload-card{background:#fffdf8;border:1px solid #ded8cc;border-radius:20px;padding:18px}
#drop-zone{min-height:180px;border:1.5px dashed #aaa99f;border-radius:14px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;text-align:center;background:#f9f7f1}
#drop-zone strong{font-size:20px}#drop-zone span,.muted,small{color:#777b72;font-size:13px}#files{position:absolute;width:1px;height:1px;opacity:0}
.file-list{display:grid;gap:7px;margin:12px 0}.file-item{display:flex;justify-content:space-between;padding:8px 4px;border-bottom:1px solid #eee9de;font-size:13px}
.switch-row{display:flex;gap:12px;align-items:flex-start;padding:12px 0}.switch-row input{margin-top:5px}.switch-row span{display:flex;flex-direction:column;gap:4px}
.primary{width:100%;padding:15px}.primary:disabled{opacity:.5}.error{color:#ad342d;min-height:1.3em;font-size:13px}.history{margin-top:30px}
.section-head{display:flex;align-items:center;justify-content:space-between}.section-head h2{font-family:"Songti SC",serif}.text-button{background:transparent;color:#744837;padding:8px}
.tasks{display:grid;gap:12px}.task{background:#fffdf8;border:1px solid #ded8cc;border-radius:16px;padding:16px}.task-top{display:flex;justify-content:space-between;gap:12px}
.status{font-size:12px;border-radius:999px;padding:4px 9px;background:#ece7dc}.progress{height:7px;background:#ebe7dd;border-radius:9px;overflow:hidden;margin:14px 0}.progress span{display:block;height:100%;background:#7c8a61}
.task-meta{display:flex;flex-wrap:wrap;gap:8px 18px;font-size:12px;color:#74776e}.task-actions{display:flex;gap:8px;margin-top:14px;flex-wrap:wrap}.task-actions button{background:#eee8dc}.task-actions .download{background:#744837;color:#fff}
dialog{width:min(820px,calc(100% - 20px));border:0;border-radius:20px;padding:0;box-shadow:0 30px 100px #0004}dialog::backdrop{background:#1d211c99}.editor-card{padding:20px}.editor-card textarea{width:100%;min-height:52vh;border:1px solid #cbc5b9;border-radius:12px;padding:16px;line-height:1.8;resize:vertical}.editor-actions{display:flex;justify-content:flex-end;margin-top:12px}.editor-actions .primary{width:auto}
@media(max-width:560px){.shell{padding-inline:14px}.login-card{margin-top:4vh;padding:26px 20px}.input-row{flex-direction:column}.input-row button{padding:14px}.hero{padding-top:30px}.task-top{flex-direction:column}}
