:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:#202422;background:#f4f1eb;line-height:1.45;font-synthesis:none;--ink:#202422;--muted:#737875;--line:#d8d5cf;--panel:#fbfaf7;--blue:#174f58;--blue-dark:#103b42;--red:#9a3f38;--cream:#ede7dc}*{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at 10% 0%,#fffdf9 0,#f4f1eb 45%,#eeebe4 100%);min-width:320px}.app-shell{max-width:1440px;margin:0 auto;min-height:100vh;padding:0 5vw}.topbar{height:76px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;font-size:12px;letter-spacing:.12em}.brand-mark{display:flex;gap:10px;align-items:center;font-weight:800}.brand-dot{width:9px;height:9px;background:var(--red);display:inline-block;border-radius:50%}.topbar-right{display:flex;align-items:center;gap:8px;color:var(--muted);letter-spacing:0}.status-dot{width:7px;height:7px;border-radius:50%;background:#b1b5ae}.workspace{padding:65px 0 80px}.intro-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,420px);gap:60px;align-items:end;margin-bottom:50px}.eyebrow{font-size:11px;letter-spacing:.16em;color:var(--red);font-weight:800;margin:0 0 12px}.intro-row h1{font-family:Georgia,"Times New Roman",serif;font-weight:400;font-size:clamp(42px,6vw,80px);line-height:.98;letter-spacing:-.04em;margin:0}.intro-row h1 em{font-style:italic;color:var(--blue)}.intro-copy{color:#646a66;font-size:16px;max-width:360px;margin:0 0 7px}.panel{background:rgba(251,250,247,.9);border:1px solid var(--line);padding:28px;box-shadow:0 15px 40px rgba(50,46,39,.05)}.login-panel{display:flex;align-items:end;justify-content:space-between;gap:32px;margin-bottom:34px}.login-panel h2,.section-head h2{font:400 25px Georgia,"Times New Roman",serif;margin:0}.muted{color:var(--muted);font-size:13px}.inline-form{display:flex;align-items:center;gap:10px;min-width:380px}.inline-form input{flex:1}.input,.inline-form input,textarea,select{font:inherit;border:1px solid var(--line);background:#fffdf9;color:var(--ink);padding:12px 13px;outline:none;border-radius:0}.inline-form input:focus,textarea:focus,select:focus{border-color:var(--blue);box-shadow:0 0 0 2px rgba(23,79,88,.1)}button{font:inherit;cursor:pointer;border:0}.primary-button{background:var(--blue);color:white;padding:12px 17px;font-weight:700;white-space:nowrap}.primary-button:hover{background:var(--blue-dark)}.secondary-button{background:transparent;border:1px solid var(--blue);color:var(--blue);padding:10px 14px;font-weight:700}.ghost-button,.text-button{background:transparent;color:var(--muted);padding:4px 0}.text-button{text-decoration:underline;text-underline-offset:4px;margin-left:12px}.hidden{display:none!important}.form-error{color:var(--red);font-size:12px;min-height:18px}.stepper{display:flex;align-items:center;gap:15px;margin:0 0 22px;color:#8b908b;font-size:12px;letter-spacing:.05em}.step{display:flex;align-items:center;gap:7px;white-space:nowrap}.step b{color:#9b9f99;font-size:11px}.step.active{color:var(--ink);font-weight:700}.step.active b{color:var(--red)}.step-line{height:1px;background:var(--line);flex:1}.upload-row{display:flex;gap:20px;align-items:stretch;margin-bottom:20px}.dropzone{border:1px dashed #b5b6af;background:rgba(255,253,249,.55);min-height:148px;flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:7px;text-align:center;cursor:pointer}.dropzone:hover{border-color:var(--blue);background:#fffdf9}.dropzone input{display:none}.upload-icon{font-size:30px;line-height:1;color:var(--blue)}.dropzone strong{font-size:15px}.project-meta{border:1px solid var(--line);background:var(--panel);padding:22px;min-width:300px;display:flex;flex-direction:column;gap:5px;justify-content:center}.project-meta strong{font:400 20px Georgia,"Times New Roman",serif;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:350px}.project-meta button{margin-top:12px;align-self:flex-start}.progress-line{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:13px;margin:0 0 22px}.progress-line span{width:18px;height:18px;border:2px solid var(--line);border-top-color:var(--blue);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}#pageStage,#promptStage,#resultsStage{margin-top:22px}.section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:22px}.selection-actions{display:flex;align-items:center;color:var(--muted);font-size:12px}.page-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(132px,1fr));gap:14px;max-height:660px;overflow:auto;padding-right:3px}.page-card{position:relative;background:#eeeae2;border:1px solid transparent;cursor:pointer;min-width:0}.page-card.selected{border:2px solid var(--blue)}.page-card img{display:block;width:100%;aspect-ratio:2/3;object-fit:cover}.page-card label{position:absolute;top:8px;left:8px;background:rgba(255,253,249,.9);width:23px;height:23px;display:flex;align-items:center;justify-content:center}.page-card input{accent-color:var(--blue)}.page-number{padding:8px 10px;font-size:12px;color:var(--muted);display:flex;justify-content:space-between}.prompt-hint{font-size:12px;color:var(--muted)}textarea{display:block;width:100%;resize:vertical;min-height:128px;line-height:1.7}.controls-row{display:flex;align-items:end;gap:14px;margin-top:18px}.controls-row label{display:flex;flex-direction:column;gap:7px;color:var(--muted);font-size:12px;min-width:180px}.controls-row select{min-width:180px}.controls-row .primary-button{margin-left:auto;min-height:44px}.task-list{display:grid;gap:14px}.task-card{border:1px solid var(--line);background:#fffdf9;display:grid;grid-template-columns:100px minmax(0,1fr) 170px;gap:18px;padding:12px;align-items:center}.task-thumb{width:100px;height:130px;object-fit:cover;background:#eeeae2}.task-info{min-width:0}.task-info h3{font:400 18px Georgia,"Times New Roman",serif;margin:0 0 7px}.task-info p{font-size:13px;color:var(--muted);margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.task-status{font-size:12px;color:var(--muted);margin-top:9px}.task-status.completed{color:var(--blue);font-weight:700}.task-status.failed{color:var(--red)}.task-actions{display:flex;flex-direction:column;gap:8px;align-items:stretch}.task-actions img{width:100%;aspect-ratio:2/3;object-fit:cover}.footer{border-top:1px solid var(--line);display:flex;justify-content:space-between;padding:20px 0;color:#929690;font-size:10px;letter-spacing:.11em}@media(max-width:800px){.app-shell{padding:0 20px}.workspace{padding:38px 0 55px}.intro-row{grid-template-columns:1fr;gap:20px;margin-bottom:30px}.intro-copy{max-width:500px}.login-panel{display:block}.inline-form{min-width:0;margin-top:24px}.stepper{gap:7px;font-size:10px}.step-line{min-width:12px}.upload-row{display:block}.project-meta{margin-top:12px;min-width:0}.section-head{display:block}.selection-actions{margin-top:16px}.controls-row{display:grid;grid-template-columns:1fr 1fr}.controls-row label,.controls-row select{min-width:0;width:100%}.controls-row .primary-button{grid-column:1 / -1;margin-left:0}.task-card{grid-template-columns:70px minmax(0,1fr)}.task-thumb{width:70px;height:95px}.task-actions{grid-column:1 / -1;display:flex;flex-direction:row}.task-actions img{width:72px}.footer{font-size:9px}}
