:root{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#102c42;background:#edf2f5;font-size:16px;font-synthesis:none}*{box-sizing:border-box}body{margin:0}main{max-width:510px;margin:auto;padding:30px 20px 34px}header{display:flex;align-items:center;gap:12px;margin-bottom:30px}.brand-icon{display:grid;place-items:center;width:46px;height:46px;background:#102c42;color:white;border-radius:14px;font-size:24px;font-weight:700}h1{font-size:21px;letter-spacing:-.5px;margin:0}header p{font-size:14px;color:#536675;margin:4px 0 0}.route{margin-left:auto;font-size:12px;font-weight:700;letter-spacing:1px}.converter{background:white;border:1px solid #d4dfe6;border-radius:24px;overflow:hidden;box-shadow:0 8px 28px #102c4208}.field-heading{display:flex;justify-content:space-between;align-items:center;padding:19px 24px 0}label{font-size:16px;font-weight:600}.amount-wrap{display:flex;align-items:center;padding:4px 24px 22px;gap:10px}.amount-wrap input{width:100%;min-width:0;border:0;padding:4px 0;font-size:clamp(36px,10vw,54px);font-weight:650;letter-spacing:-1.5px;color:#102c42;background:white;outline-offset:3px}.amount-wrap span{font-size:24px;color:#657887}.result{background:#102c42;color:#fff;padding:24px}.result>span{font-size:15px;color:#c3d7e4}output{display:block;font-size:clamp(40px,12vw,62px);font-weight:600;letter-spacing:-2px;margin:5px 0;overflow-wrap:anywhere}.result p{font-size:14px;color:#c3d7e4;margin:8px 0 0;line-height:1.5}button,input,summary{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button:disabled{opacity:.55;cursor:wait}button:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #c45a20;outline-offset:4px}.text-button{color:#205a78;background:transparent;border:0;font-size:14px;font-weight:600;padding:12px 8px;min-height:44px}.scan-section{margin-top:20px}.primary,.secondary{width:100%;border-radius:14px;font-weight:650;min-height:56px;padding:14px;display:flex;justify-content:center;align-items:center;gap:10px}.primary{border:1px solid #bc4718;background:#bd4618;color:white}.primary:hover{background:#a93c12}.secondary{margin-top:8px;background:transparent;border:1px solid #bdccd6;color:#102c42}.hint{font-size:14px;color:#536675;line-height:1.5;margin:12px 4px}.rate-section{border-top:1px solid #cbd8e1;margin-top:25px;padding-top:13px}.rate-section>div{display:flex;align-items:center;justify-content:space-between}h2{font-size:16px;margin:0}.rate-section p{margin:4px 0;font-size:14px;line-height:1.6}#rate-value{font-size:17px;font-weight:600}#rate-status{color:#536675}details{margin-top:14px}summary{font-size:14px;font-weight:600;cursor:pointer;padding:8px 0;line-height:1.5}form{padding-top:12px}.inline-form{display:flex;gap:8px;margin-top:10px}.inline-form input{font:inherit;min-width:0;width:100%;border:1px solid #aebfc9;border-radius:9px;padding:12px}.small-button{border:0;background:#102c42;color:white;border-radius:9px;padding:12px 20px}footer{margin-top:24px;color:#536675}footer p{font-size:13px;line-height:1.6;margin:3px 0}footer details p{font-size:14px;margin:10px 0}#scan-panel{background:white;border:1px solid #cbd8e1;padding:16px;border-radius:16px;margin-top:18px}#preview{width:100%;max-height:240px;object-fit:contain;background:#f3f5f7;border-radius:8px}#scan-status{font-size:15px;line-height:1.5}progress{width:100%;accent-color:#bd4618}#candidates{display:flex;flex-wrap:wrap;gap:8px}#candidates button{border:1px solid #b5c9d5;background:#f0f6fa;padding:12px;border-radius:10px;color:#102c42;font-weight:600;min-height:48px}.error{color:#a42820;font-size:14px;padding:0 24px}.rate-section .error{padding:0}[hidden]{display:none!important}@media(min-width:700px){main{padding-top:56px}}@media(max-width:360px){main{padding:20px 14px}}@media(prefers-reduced-motion:no-preference){button{transition:background .15s}}

header{margin-bottom:19px;align-items:center}.brand-icon{width:52px;height:60px;border-radius:10px;font-size:20px;letter-spacing:-1px;border-bottom:5px solid #bd4618;flex-shrink:0}header .eyebrow{font-size:12px;letter-spacing:1px;font-weight:700;color:#a43c13;margin:0 0 5px}h1{font-size:26px}.route{font-size:11px}.crop-hint{font-size:14px;line-height:1.5;margin:0 0 12px}canvas#preview{display:block;width:100%;height:auto;max-height:none;touch-action:none;cursor:crosshair}.crop-controls{display:flex;justify-content:space-between;gap:8px;margin-top:12px}.crop-controls button{min-height:48px}#confirm-form .error{padding:0}@media(max-width:400px){header .eyebrow{font-size:11px;letter-spacing:.6px}}


/* Keep the amount, result and pad together on phone screens. */
main{padding-top:18px}header{margin-bottom:16px}.brand-icon{height:50px;width:48px}h1{font-size:24px}.quick-reference{margin-bottom:16px}.quick-reference h2{font-size:14px;color:#536675;margin-bottom:9px}.quick-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.quick-grid button{min-height:66px;border:1px solid #c6d5df;border-radius:11px;background:#f9fbfd;color:#102c42;padding:8px 4px}.quick-grid span{display:block;font-size:13px;color:#536675;margin-bottom:4px}.quick-grid strong{font-size:17px;white-space:nowrap}.quick-grid button:hover{background:#e0ebf3}.field-heading{padding:7px 20px 0}.amount-wrap{padding:0 20px 10px}.amount-wrap input{font-size:clamp(32px,9vw,44px);cursor:default;caret-color:transparent;letter-spacing:-1px}.result{padding:14px 20px}output{font-size:clamp(36px,10vw,48px);margin:2px 0;letter-spacing:-1px}.result p{margin-top:4px}.keypad{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:12px}.keypad button{display:flex;align-items:center;justify-content:center;min-height:48px;padding:7px 0;background:white;border:1px solid #c1d0db;border-radius:11px;color:#102c42;font-size:25px;font-weight:550;touch-action:manipulation;user-select:none}.keypad button:active{background:#d7e6f0;border-color:#587e96}.keypad button[data-key="backspace"]{background:#e0e9ef}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.scan-section{margin-top:22px}@media(min-width:700px){main{padding-top:32px}}@media(max-width:360px){main{padding:14px 12px}.quick-grid strong{font-size:15px}}

header{flex-wrap:wrap}button.route{display:block;min-height:44px;flex-shrink:0;border:1px solid #bbcdd9;border-radius:9px;padding:9px 10px;color:#205a78;background:#f9fbfd;letter-spacing:.4px;font-size:12px}button.route:hover{background:#ddebf4}button.route[aria-pressed="true"]{background:#102c42;border-color:#102c42;color:white}.quick-grid.in-pounds strong{font-size:14px}@media(max-width:360px){header{gap:8px}button.route{padding:8px;font-size:11px}.quick-grid.in-pounds strong{font-size:13px}}
