:root{--ink:#233c33;--muted:#5c6c63;--brand:#245849;--brand-hover:#163e32;--paper:#f5f3ec;--surface:#fffefa;--line:#d6ded5;--error:#9b3029;--radius:12px;--space:8px;font-family:system-ui,-apple-system,"Noto Sans TC",sans-serif;color:var(--ink);background:var(--paper);font-size:16px;line-height:1.6;color-scheme:light}
*{box-sizing:border-box}body{margin:0}header{max-width:800px;margin:auto;padding:20px 24px;display:flex;justify-content:space-between;gap:16px;font-size:.875rem;color:var(--muted)}header a{color:var(--brand);font-weight:650;text-decoration:none}main{max-width:760px;margin:auto;padding:8px 24px 40px}.intro{margin:16px 0 28px}.eyebrow{font-size:.8125rem;letter-spacing:.12em;color:var(--brand);font-weight:650;margin:0 0 8px}h1{font-size:clamp(1.65rem,5vw,2.3rem);line-height:1.3;margin:0 0 12px;letter-spacing:-.025em}.intro>p:last-child{color:var(--muted);max-width:560px;margin:0}h2{font-size:1.0625rem;margin:0 0 20px}h2:focus{outline:none}.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:24px;margin-bottom:24px}button,.button{font:inherit;font-weight:650;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:10px 18px;border-radius:8px;border:1px solid transparent;line-height:1.4;transition:background .15s}.primary{background:var(--brand);color:white}.primary:hover{background:var(--brand-hover)}.secondary{border-color:var(--line);background:transparent;color:var(--ink)}.secondary:hover{background:var(--paper)}button:disabled{opacity:.6;cursor:wait}.scan-actions{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:24px}.file-input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}.scan-actions:has(.file-input:focus-visible) label{outline:3px solid var(--brand);outline-offset:3px}label{display:block;font-size:.9375rem;font-weight:650;margin:16px 0 6px}label.button{margin:0}label span{display:block;font-size:.8125rem;color:var(--muted);font-weight:400}input,textarea,select{display:block;width:100%;min-width:0;font:inherit;color:var(--ink);border:1px solid var(--line);border-radius:8px;background:#fff;padding:12px;min-height:48px}textarea{resize:none;overflow:hidden;line-height:1.6}input[readonly]{background:var(--paper)}#isbn,#book-isbn{letter-spacing:.055em}.isbn-row{display:flex;align-items:stretch;gap:8px}.isbn-row input{flex:1}.isbn-row button{flex-shrink:0}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:16px}.two-col>div{min-width:0}#status{font-size:.875rem;color:var(--muted);margin:16px 0 0}#status.error,#handoff-message.error{color:var(--error)}.text-button{padding:8px 0;color:var(--brand);background:transparent;min-height:44px;text-decoration:underline;text-underline-offset:4px}.note{font-size:.8125rem;color:var(--muted);overflow-wrap:anywhere;margin:8px 0 16px}.cover-stage{display:flex;align-items:center;justify-content:center;background:var(--paper);border-radius:8px;min-height:200px;padding:20px}.cover-stage img{display:block;max-width:100%;max-height:380px;object-fit:contain;box-shadow:0 4px 14px #173e3217}#no-cover{color:var(--muted);font-size:.875rem}.viewfinder{position:relative;overflow:hidden;border-radius:8px;background:#17251e}video{display:block;width:100%;height:280px;object-fit:cover}.scan-guide{position:absolute;left:10%;right:10%;top:30%;bottom:30%;border:2px solid #e6eadc;border-radius:8px;pointer-events:none}.camera-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0 24px;font-size:.8125rem;color:var(--muted)}.camera-footer p{margin:0}.full{width:100%;margin-top:12px}footer{font-size:.75rem;color:var(--muted);text-align:center;padding:0 8px;line-height:1.8}a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #407e68;outline-offset:3px}#handoff-message{font-size:.875rem}[hidden]{display:none!important}@media(max-width:480px){header{padding:16px;flex-wrap:wrap;gap:4px 16px}main{padding:8px 16px 32px}.panel{padding:20px 16px}.intro{margin:8px 0 24px}.scan-actions{display:grid;grid-template-columns:1fr;width:100%;gap:10px}.scan-actions>*{width:100%}.scan-actions .file-input{width:1px}.two-col{grid-template-columns:1fr;gap:0}button,.button{padding:12px 16px}.cover-stage img{max-height:320px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}
