:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:#1e2d28;background:#f4f6f3;font-size:16px;line-height:1.6;--green:#176c50;--muted:#66756e;--border:#dce4de}*{box-sizing:border-box}body{margin:0}button,input,a{-webkit-tap-highlight-color:transparent}button,input{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}[hidden]{display:none!important}a{color:var(--green)}.shell{width:min(100% - 40px,680px);margin:0 auto;padding:44px 0 24px}.page-header{margin-bottom:28px}.eyebrow{font-size:12px;font-weight:700;letter-spacing:.1em;color:var(--green);margin-bottom:6px}h1{font-size:30px;line-height:1.35;letter-spacing:-.025em;margin:0;font-weight:750}h1 span{font-size:22px;font-weight:550;color:#53685e}h2{font-size:20px;line-height:1.4;margin:0;font-weight:700}p{margin:12px 0}.intro{color:var(--muted);margin:12px 0 0}.panel{background:#fff;border:1px solid var(--border);border-radius:16px;padding:24px;box-shadow:0 3px 12px #20382a04}.center{text-align:center;padding:38px 24px;color:var(--muted)}.spinner{border:3px solid #e3ece6;border-top-color:var(--green);border-radius:50%;width:24px;height:24px;margin:0 auto;animation:rotate .8s linear infinite}@keyframes rotate{to{transform:rotate(360deg)}}.login-panel{padding:30px}.login-panel>p{color:var(--muted)}.section-number{width:38px;height:38px;border-radius:10px;background:#eaf3ed;color:var(--green);font-size:14px;display:grid;place-items:center;font-weight:700;margin-bottom:18px}.button{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:10px 18px;border-radius:10px;font-size:15px;font-weight:650;text-decoration:none;border:1px solid transparent;transition:background .18s,box-shadow .18s}.primary{background:var(--green);color:white}.primary:hover:not(:disabled){background:#11583f}.secondary{background:#f2f6f3;border-color:var(--border);color:var(--green)}.full{width:100%}.text-button{background:none;border:0;min-height:44px;padding:8px 10px;color:var(--green);font-size:14px;font-weight:600;border-radius:8px;white-space:nowrap}.text-button:hover{background:#eaf2ec}a:focus-visible,button:focus-visible,input:focus-visible,.file-picker:has(+input:focus-visible){outline:3px solid #72ac91;outline-offset:3px}.hint{font-size:13px;color:var(--muted);line-height:1.65;margin:12px 0 0}.account-row{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:14px;margin-top:-10px;margin-bottom:10px}.printer-bar{display:flex;align-items:center;gap:12px;background:#edf1ec;border:1px solid var(--border);padding:14px 12px 14px 18px;border-radius:12px;margin-bottom:20px}.printer-copy{flex:1;min-width:0}.printer-copy strong{display:block;font-size:14px}.printer-copy>span{display:block;color:var(--muted);font-size:12px;margin-top:2px}.status-dot{flex:0 0 8px;width:8px;height:8px;border-radius:50%;background:#87978c}.status-dot.online{background:#278657;box-shadow:0 0 0 4px #dcebe0}.status-dot.offline{background:#a77726;box-shadow:0 0 0 4px #eee6d6}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.file-types{font-size:11px;letter-spacing:.04em;color:#66776a;white-space:nowrap;border:1px solid var(--border);padding:4px 8px;border-radius:6px}.file-picker{min-height:150px;border:1.5px dashed #b4c7ba;border-radius:12px;background:#f8faf7;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;padding:18px;text-align:center}.file-picker:hover{background:#eff5ef}.file-picker strong{font-size:15px;margin-top:4px}.file-picker>span:last-child{font-size:12px;color:var(--muted);margin-top:4px}.file-symbol{font-size:25px;color:var(--green);line-height:1}.file-picker+input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}.upload-panel .primary{margin-top:18px}.selected-file{display:flex;align-items:center;gap:10px;justify-content:space-between;margin-top:10px;padding:2px 0}.selected-file>span{font-size:14px;overflow-wrap:anywhere;min-width:0}.field-error{font-size:14px;color:#a3322e;background:#fcf0ed;border-radius:8px;padding:10px 12px}.notice{padding:12px 16px;border:1px solid #b5d0bf;border-radius:10px;background:#e9f4ec;color:#215f3d;font-size:14px;margin-bottom:20px;overflow-wrap:anywhere}.notice.warn{background:#fff4dc;border-color:#e8d4a6;color:#7d5919}.jobs-section{margin-top:32px}.count{font-size:13px;color:var(--muted)}.empty{text-align:center;padding:28px 20px;color:var(--muted)}.empty strong{color:#42594c;font-size:15px}.empty p{font-size:13px}.job{margin-bottom:12px;padding:20px}.job-header{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.job-name{font-size:15px;font-weight:650;margin:0;overflow-wrap:anywhere;line-height:1.5}.job-date{font-size:12px;color:var(--muted);margin-top:4px}.badge{font-size:11px;line-height:1.6;padding:3px 7px;border-radius:6px;white-space:nowrap;background:#edf1ed;color:#5e7064}.badge.good{background:#e5f2e9;color:#247248}.badge.warn{background:#fbefd7;color:#8b621b}.badge.error{background:#fbeae6;color:#a13e31}.job-message{color:var(--muted);font-size:13px;margin:12px 0 0;overflow-wrap:anywhere}.job-note{font-size:12px;margin:8px 0 0;color:#8c641f;overflow-wrap:anywhere}.job-meta{font-size:12px;color:var(--muted);margin-top:10px}.confirm-form{margin-top:18px;padding-top:16px;border-top:1px solid #edf0eb}.form-row{display:grid;grid-template-columns:110px 1fr;gap:14px}.form-field label{display:block;font-size:13px;font-weight:600;margin-bottom:6px}.form-field input{width:100%;height:46px;border:1px solid #cdd9d0;border-radius:8px;padding:8px 10px;background:white;color:#1e2d28;min-width:0}.confirm-form .button{margin-top:14px}.confirm-note{font-size:12px;color:var(--muted);margin:10px 0 0}.job-error{margin-bottom:0}.muted{color:var(--muted);font-size:14px}.job-actions{display:flex;justify-content:flex-end;margin-top:8px}.download-link{font-size:13px;min-height:44px;display:flex;align-items:center;padding:8px 2px;text-decoration:none}footer{font-size:12px;color:#89958d;text-align:center;margin-top:32px}@media(max-width:480px){.shell{width:calc(100% - 28px);padding-top:26px}.page-header{margin-bottom:24px}h1{font-size:26px}h1 span{font-size:19px}.panel{padding:20px;border-radius:14px}.job{padding:18px}.section-heading{gap:8px}.file-types{padding:3px 6px;font-size:10px}.printer-bar{gap:10px;padding-left:14px}.form-row{grid-template-columns:88px 1fr;gap:12px}.job-header{flex-wrap:wrap;gap:6px}.job-header>div{flex-basis:100%}.job-header .badge{margin-top:4px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
/* Print preview follows the familiar settings + full-sheet workspace. */
.shell{width:min(100% - 40px,1040px)}.upload-panel{max-width:680px}.upload-panel .file-picker{min-height:116px}.upload-panel .full{max-width:100%}.login-panel,#load-error,#loading{max-width:680px;margin:0 auto}.preview-editor{margin-top:28px;background:white;border:1px solid var(--border);border-radius:16px;overflow:hidden;scroll-margin-top:18px}.preview-heading{padding:22px 24px 18px;margin:0;border-bottom:1px solid var(--border)}.preview-name{margin:4px 0 0;font-size:13px;color:var(--muted);overflow-wrap:anywhere;max-width:700px}.preview-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px}.preview-column{min-width:0;background:#e9ede9}.viewer-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 14px;border-bottom:1px solid #d9e0d8;font-size:12px;color:#5c6b60;min-height:58px}.zoom-tools{display:flex;gap:3px}.zoom-tools button{min-height:40px;min-width:40px;border:1px solid transparent;background:transparent;border-radius:6px;color:#354a3c;font-size:15px}.zoom-tools button:hover{background:#dbe4dc}.zoom-tools #zoom-reset{font-size:12px;min-width:48px}.preview-viewport{height:590px;overflow:auto;padding:26px 34px;position:relative;display:flex;align-items:flex-start;scrollbar-gutter:stable}.paper-wrap{flex:none;max-width:none;margin:0 auto;line-height:0;box-shadow:0 3px 15px #182a2329;background:white;min-width:0;aspect-ratio:210 / 297;transition:width .18s ease}.paper-wrap.landscape{aspect-ratio:297 / 210}.paper-wrap img{display:block;width:100%;height:auto;max-width:none;user-select:none}.preview-placeholder{min-height:450px;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:24px;color:#506256;gap:10px}.preview-placeholder strong{font-size:15px}.preview-placeholder p{font-size:13px;line-height:1.7;max-width:300px;margin:0}.preview-placeholder .spinner{margin-bottom:6px}.preview-placeholder.is-error .spinner{display:none}.preview-placeholder.is-error strong{color:#9b4a32}.preview-placeholder .button{margin-top:8px}.viewer-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 14px 0;border-top:1px solid #d9e0d8;font-size:13px;color:#4a6252}.viewer-caption{margin:0;padding:4px 18px 16px;text-align:center;color:#6c7c71;font-size:11px}.settings-panel{padding:24px;border-left:1px solid var(--border);min-width:0}.settings-panel h3{font-size:16px;margin:0 0 20px}.settings-field{margin-bottom:18px;min-width:0}.settings-field>label{display:block;font-size:13px;font-weight:600;margin-bottom:7px}.settings-field input,.settings-field select{width:100%;height:46px;border:1px solid #cdd9d0;border-radius:8px;padding:8px 10px;background:#fff;color:#1e2d28;min-width:0;font-size:14px}.settings-field select{font:inherit;font-size:14px}.settings-field select:focus-visible{outline:3px solid #72ac91;outline-offset:3px}.setting-hint{font-size:12px;color:var(--muted);line-height:1.6;margin:8px 0 0}.settings-panel .form-row{grid-template-columns:75px minmax(0,1fr);gap:12px}.print-summary{background:#f2f6f1;border:1px solid #e1e8df;padding:14px;border-radius:10px;margin:2px 0 16px}.print-summary span{display:block;color:#65786a;font-size:12px}.print-summary strong{display:block;font-size:20px;font-weight:700;line-height:1.4;margin:3px 0;color:#235b3c}.preview-check{display:flex;align-items:flex-start;gap:10px;min-height:48px;padding:4px 0;margin-bottom:12px;font-size:13px;cursor:pointer;line-height:1.65}.preview-check input{width:19px;height:19px;flex:0 0 19px;margin:2px 0 0;accent-color:var(--green)}.preview-check:has(input:disabled){color:#89948c;cursor:default}.settings-panel .field-error{font-size:12px}.settings-panel .hint{font-size:12px}.job-actions{gap:18px;align-items:center}.job-header{flex-wrap:nowrap}.job-header>div{flex:1;min-width:0}.job{box-shadow:none}.job .button{min-height:44px;font-size:13px}.job-name{font-size:15px}.page-header{margin-bottom:20px}.printer-bar{max-width:1040px}.file-picker+input:disabled{pointer-events:none}@media(min-width:761px){.upload-panel{max-width:none}.upload-panel form{display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:0 22px;align-items:center}.upload-panel .file-picker{grid-column:1;grid-row:1 / 4}.upload-panel #selected-file{grid-column:1;grid-row:4}.upload-panel #upload-button{grid-column:2;grid-row:1;margin:0;align-self:end}.upload-panel .hint{grid-column:2;grid-row:2;align-self:start}.upload-panel #upload-error{grid-column:1 / -1;grid-row:5}.upload-panel .section-heading{margin-bottom:16px}}@media(max-width:760px){.shell{width:calc(100% - 28px)}.preview-layout{display:flex;flex-direction:column}.preview-heading{padding:18px}.preview-viewport{height:min(620px,75vh);min-height:390px;padding:22px 28px}.settings-panel{border-left:0;border-top:1px solid var(--border);padding:20px}.settings-panel h3{margin-bottom:16px}.settings-panel .form-row{grid-template-columns:90px minmax(0,1fr)}.preview-placeholder{min-height:350px}.settings-panel>.settings-field{margin-bottom:16px}.viewer-toolbar{padding-left:16px}.preview-heading h2{font-size:20px}.job-header{flex-wrap:wrap}.job-header>div{flex-basis:100%}.job-actions{justify-content:space-between}.preview-check{align-items:center;min-height:48px}.preview-check input{margin:0}.settings-panel .primary{min-height:50px}.viewer-caption{text-align:left;padding-left:18px}.zoom-tools button{min-width:44px;min-height:44px}}@media(min-width:761px) and (max-width:950px){.preview-layout{grid-template-columns:minmax(0,1fr) 280px}.preview-viewport{padding:24px;height:540px}.settings-panel{padding:20px}}@media(max-width:400px){.preview-viewport{padding:18px;min-height:350px}.viewer-toolbar{font-size:11px;padding-left:12px;padding-right:8px}.preview-heading{padding:16px}.job-actions{gap:10px}.file-types{display:none}}
