*{box-sizing:border-box}body{margin:0;background:#f4f7f7;color:#183744;font:15px/1.5 -apple-system,"Yu Gothic UI",Meiryo,sans-serif}header,main{max-width:460px;margin:auto}header{background:#d8f1f9;padding:11px 18px;display:flex;align-items:center;gap:12px}header b{font:bold 25px/1 Arial;letter-spacing:-2px}i{font-style:normal;color:#df413b}i:nth-child(2),i:nth-child(6){color:#2365ba}i:nth-child(3){color:#218358}i:nth-child(4){color:#bd8009}header span{font-size:12px;font-weight:bold}main{padding:12px 15px 18px}.heading,.twocol,#sheetline,#strip,.switch,.money{display:flex;align-items:center;gap:8px}.heading{justify-content:space-between;margin-bottom:12px}h1{font-size:22px;letter-spacing:-.03em;margin:0}button,.pick{font:inherit;cursor:pointer}.heading button,.pick{border:1px solid #b8cbd1;background:white;border-radius:8px;color:#29576a;padding:7px 10px;font-size:12px;font-weight:bold}.upload,article{background:white;border:1px solid #d1dee1;border-radius:14px;padding:12px;margin-bottom:10px}.upload>label,legend,form>label,.twocol>label{font-weight:bold;font-size:14px}.upload p,.body p,footer{font-size:12px;color:#4a6470;margin:1px 0 8px}#sheetline{background:#f0f6f7;padding:5px 8px;border-radius:8px;min-height:42px}#sheetname{font-size:13px;flex:1;overflow-wrap:anywhere}.doc{font-size:21px;color:#32778b}input[type=file]{position:absolute;width:1px;height:1px;opacity:0}.upload:focus-within{outline:2px solid #318faf}#strip{overflow:auto;padding-top:2px}.thumb,.add{width:74px;height:62px;flex:none;position:relative;border-radius:7px;overflow:hidden}.thumb img{width:100%;height:100%;object-fit:cover}.thumb button{position:absolute;right:0;top:0;border:0;color:white;background:#243a48c9}.thumb small{position:absolute;bottom:0;left:0;background:#183b49;color:white;font-size:10px;padding:0 4px}.add{display:grid;place-content:center;text-align:center;border:1px dashed #85a5af;color:#245366;cursor:pointer;font-size:13px}fieldset{border:0;margin:0 0 8px;padding:0}legend{padding:0}.switch label{flex:1;border:1px solid #bdcdd1;background:white;border-radius:8px;text-align:center;padding:7px}.switch label:has(:checked){background:#dceff6;border-color:#5692a9}input[type=radio]{accent-color:#1a647e}.twocol{align-items:start;margin-bottom:8px}.twocol>label{flex:1;min-width:0}input:not([type=file],[type=radio]),select{width:100%;height:40px;background:white;border:1px solid #b5c7ce;border-radius:8px;padding:5px 10px;font:inherit;color:#203d4a}.money input{max-width:65%}.go{display:block;width:100%;padding:12px;color:white;border:0;border-radius:10px;background:#195e77;font-weight:bold;margin-top:12px}footer{margin-top:14px}#error:empty,#result:empty{display:none}#error{color:#9a311f}.body{padding:12px}.body h2{font-size:20px;margin:2px 0}.body strong{font-size:22px}article{padding:0;overflow:hidden}#cover{display:block;width:100%;aspect-ratio:4/3;object-fit:cover}#doclink{display:block;background:white;border-radius:8px;color:#245366;padding:12px}button[hidden]{display:none}
.scan {background:#e8f5f8;border:1px solid #b6d9e1;border-radius:14px;padding:13px;margin-bottom:10px}.scan h2{font-size:18px;margin:0}.scan p{font-size:13px;margin:4px 0 10px}.scan-actions{display:flex;gap:8px}.scan-actions label{background:#195e77;color:white;border-radius:8px;padding:10px 14px;font-weight:bold;cursor:pointer}.scan-actions label+label{background:white;color:#245366}.scan button{border:0;background:transparent;color:#28596b;text-decoration:underline;padding:8px 0}.scan figure{margin:8px 0}.scan img{width:100%;height:150px;object-fit:contain;background:#e3e7e6}.scan figcaption{font-size:11px}.scan #ocrState:empty{display:none}#cover[hidden]{display:none}#noCover{padding:24px;text-align:center;color:#59727d}.scan:has(input:focus-visible) .scan-actions{outline:2px solid #195e77}.scan.reading .scan-actions{opacity:.65}
