*,:before,:after{box-sizing:border-box}html,body{color:#111827;-webkit-text-size-adjust:100%;background:#f4f5f7;margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Noto Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}#upload-root{background:#f4f5f7;flex-direction:column;max-width:560px;min-height:100vh;margin:0 auto;display:flex}.top{color:#fff;background:#0f172a;flex-direction:column;gap:6px;padding:24px 20px 20px;display:flex}.brand{letter-spacing:.08em;color:#fbbf24;font-size:13px;font-weight:700}.title{margin:0;font-size:24px;font-weight:700}.sub{color:#cbd5e1;margin:0;font-size:14px}.wrap{flex-direction:column;flex:1;gap:16px;padding:20px;display:flex}.wrap.center{text-align:center;align-items:center}.field{flex-direction:column;gap:6px;display:flex}.field>span,.opt>span{font-size:14px;font-weight:600}.opt>span{color:#374151;font-size:12px}.field em{color:#4b5563;font-style:normal;font-weight:400}input:not([type=file]),textarea,select{width:100%;font:inherit;color:#111827;background:#fff;border:1px solid #cbd5e1;border-radius:10px;padding:0 14px;font-size:16px}input:not([type=file]){height:48px}textarea{resize:vertical;padding:10px 14px}select{height:44px;padding:0 8px;font-size:14px}input[type=file]{opacity:0;width:1px;height:1px;position:absolute;overflow:hidden}.pick{grid-template-columns:1fr 1fr;gap:10px;display:grid}.pick-btn{cursor:pointer;background:#fff;border:2px dashed #94a3b8;border-radius:12px;flex-direction:column;justify-content:center;align-items:center;gap:8px;height:92px;font-size:15px;font-weight:600;display:flex;position:relative}.pick-wide{cursor:pointer;background:#fff;border:1px solid #cbd5e1;border-radius:12px;justify-content:center;align-items:center;gap:10px;height:52px;margin-top:10px;font-size:15px;font-weight:600;display:flex;position:relative}.pick-btn:focus-within,.pick-wide:focus-within{outline:3px solid #93c5fd}.muted{color:#4b5563}.small{font-size:13px}.err{color:#b91c1c}.count{font-size:15px;font-weight:700}.card{background:#fff;border:1px solid #e5e7eb;border-radius:12px;flex-direction:column;gap:10px;padding:12px;display:flex}.file-head{align-items:center;gap:12px;display:flex}.thumb{color:#fff;border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;width:48px;height:48px;font-size:12px;font-weight:700;display:flex}.thumb.img{background:#0e7490}.thumb.doc{background:#1d4ed8}.file-meta{flex:1;min-width:0}.file-name{white-space:nowrap;text-overflow:ellipsis;font-size:14px;font-weight:600;overflow:hidden}.icon-btn{color:#6b7280;background:0 0;border:0;border-radius:8px;justify-content:center;align-items:center;width:44px;height:44px;display:flex}.bar{background:#e5e7eb;border-radius:3px;height:6px;overflow:hidden}.bar>div{background:#1d4ed8;height:6px;transition:width .2s}.bar>div.ok{background:#15803d}.opts{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;display:grid}.opt{flex-direction:column;gap:4px;display:flex}.stepper{background:#fff;border:1px solid #cbd5e1;border-radius:8px;justify-content:space-between;align-items:center;height:44px;display:flex}.stepper button{background:0 0;border:0;width:40px;height:42px;font-size:20px}.seg{grid-template-columns:1fr 1fr;gap:6px;display:grid}.seg button{height:44px;font:inherit;color:#111827;background:#fff;border:1px solid #cbd5e1;border-radius:8px;font-size:14px;font-weight:600}.seg button.on{color:#1e3a8a;background:#dbeafe;border:2px solid #1d4ed8}.hint{color:#78350f;background:#fffbeb;border:1px solid #fcd34d;border-radius:12px;padding:12px 14px;font-size:13px;line-height:1.45}.alert{color:#991b1b;background:#fef2f2;border:1px solid #fca5a5;border-radius:12px;padding:12px 14px;font-size:14px}.bottom{padding:16px 20px calc(20px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid #e5e7eb;flex-direction:column;gap:8px;display:flex;position:sticky;bottom:0}.btn{width:100%;height:54px;font:inherit;cursor:pointer;border-radius:12px;font-size:17px;font-weight:700}.btn.primary{color:#fff;background:#1d4ed8;border:0}.btn.primary:disabled{background:#94a3b8}.btn.ghost{color:#1d4ed8;background:#fff;border:1px solid #1d4ed8}button:disabled{opacity:.6}.center-text{text-align:center}.check{background:#dcfce7;border-radius:36px;justify-content:center;align-items:center;width:72px;height:72px;display:flex}h1{margin:0;font-size:24px}.code-box{background:#fff;border:2px solid #0f172a;border-radius:16px;flex-direction:column;gap:6px;width:100%;padding:20px;display:flex}.code-box .label{letter-spacing:.08em;color:#4b5563;font-size:13px;font-weight:700}.code{letter-spacing:.06em;color:#0f172a;font-size:52px;font-weight:800}.list{text-align:left;width:100%}.row{word-break:break-word;justify-content:space-between;gap:10px;font-size:14px;display:flex}.sent{color:#15803d;font-weight:700}.thumb.pic{object-fit:cover;background:#e5e7eb}.prev-btn{color:#1d4ed8;height:36px;font:inherit;background:#fff;border:1px solid #1d4ed8;border-radius:8px;flex-shrink:0;padding:0 12px;font-size:13px;font-weight:700}.id-sheet{width:100%;font:inherit;color:#111827;margin-top:0;font-size:15px;font-weight:600}.pv{z-index:40;color:#fff;background:#0f172a;flex-direction:column;display:flex;position:fixed;top:0;bottom:0;left:0;right:0}.pv-top{align-items:center;gap:8px;padding:10px 12px 10px 16px;display:flex}.pv-name{white-space:nowrap;text-overflow:ellipsis;flex:1;font-size:14px;font-weight:600;overflow:hidden}.pv-x{color:#fff;background:0 0;border:0;width:44px;height:44px;font-size:28px}.pv-body{flex:1;justify-content:center;align-items:center;padding:8px;display:flex;overflow:auto}.pv-img{object-fit:contain;background:#fff;max-width:100%;max-height:100%}.pv-zoom{touch-action:none;padding:0;display:block;position:relative;overflow:hidden}.pv-content{transform-origin:0 0;position:absolute;top:0;left:0}.pv-content .pv-img{transform-origin:50%;-webkit-user-select:none;user-select:none;-webkit-user-drag:none;max-width:none;max-height:none;position:absolute;top:50%;left:50%}.pv-tools{justify-content:center;gap:10px;padding:10px 16px 0;display:flex}.pv-tool{color:#fff;min-width:110px;height:44px;font:inherit;background:0 0;border:1px solid #94a3b8;border-radius:10px;font-size:15px;font-weight:700}.pv-hint{color:#94a3b8;text-align:center;padding:6px 16px 0;font-size:12px}.pv-note{text-align:center;flex-direction:column;align-items:center;gap:14px;max-width:340px;font-size:15px;line-height:1.5;display:flex}.pv-open{justify-content:center;align-items:center;max-width:220px;text-decoration:none;display:flex}.pv-foot{padding:12px 16px calc(14px + env(safe-area-inset-bottom));color:#cbd5e1;text-align:center;font-size:13px}.pv-doc{box-sizing:border-box;touch-action:pan-x pan-y;-webkit-overflow-scrolling:touch;align-self:stretch;align-items:initial;justify-content:initial;background:#334155;width:100%;height:100%;padding:8px;display:block;position:relative;overflow:auto}.pv-loading,.pv-docnote{color:#fff;text-align:center;padding:40px 16px;font-size:15px;line-height:1.5}.pv-docpages{flex-direction:column;align-items:stretch;gap:10px;display:flex}.pv-docinfo{color:#cbd5e1;text-align:center;font-size:12px}.pv-page{background:#fff;width:100%;height:auto;display:block;box-shadow:0 1px 4px #0006}.pv-docx{background:#fff}.pv-docx .docx-wrapper{background:#334155!important;padding:0!important}.pv-docx .docx-wrapper>section.docx{box-shadow:0 1px 4px #0006;margin:0 auto 10px!important}.pv-sheet{color:#111827;background:#fff;border-radius:4px;padding:8px}.pv-sheet h3{margin:0 0 6px;font-size:14px}.pv-tablewrap{overflow:auto}.pv-sheet table{border-collapse:collapse;font-size:12px}.pv-sheet td{white-space:nowrap;border:1px solid #cbd5e1;padding:3px 6px}.restored{color:#065f46;background:#ecfdf5;border:1px solid #6ee7b7;border-radius:12px;padding:10px 14px;font-size:14px}.last-claim{color:#374151;background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:10px 14px;font-size:14px}.name-field{gap:4px}.name-field input{height:46px}.wifi-icon{background:#dbeafe;border-radius:50%;justify-content:center;align-items:center;width:72px;height:72px;margin:24px auto 8px;display:flex}.pv-tools4 .pv-tool{flex:1;min-width:0}.pv-tool.on{background:#1d4ed8;border-color:#1d4ed8}.pv-tool:disabled{opacity:.4}.cw{z-index:60;color:#fff;touch-action:none;-webkit-user-select:none;user-select:none;background:#0f172a;flex-direction:column;display:flex;position:fixed;top:0;bottom:0;left:0;right:0}.cw-top{align-items:center;gap:10px;padding:12px 16px;display:flex}.cw-modes{background:#1e293b;border-radius:12px;flex:1;gap:4px;padding:4px;display:flex}.cw-modes button{color:#cbd5e1;height:40px;font:inherit;background:0 0;border:0;border-radius:9px;flex:1;font-size:15px;font-weight:700}.cw-modes button.on{color:#0f172a;background:#fff}.cw-reset{color:#fff;height:48px;font:inherit;background:0 0;border:1px solid #64748b;border-radius:10px;padding:0 14px;font-size:15px;font-weight:700}.cw-stage{flex:1;justify-content:center;align-items:center;min-height:0;display:flex;position:relative}.cw-stage canvas{position:absolute}.cw-over{touch-action:none}.cw-hint{color:#cbd5e1;text-align:center;min-height:38px;padding:8px 16px 0;font-size:14px}.cw-btns{padding:10px 16px calc(14px + env(safe-area-inset-bottom));gap:10px;display:flex}.cw-btns .btn.ghost{color:#fff;background:0 0;border-color:#94a3b8}.cw-loupe{pointer-events:none;z-index:61;border:3px solid #fff;border-radius:50%;width:150px;height:150px;display:none;position:fixed;left:50%;transform:translate(-50%);box-shadow:0 6px 24px #00000080}.cw-loupe.top{top:70px}.cw-loupe.bottom{bottom:120px}
