*{box-sizing:border-box}body{margin:0;background:#fffaf1;color:#503d38;font-family:system-ui,-apple-system,sans-serif}main{max-width:520px;margin:auto;padding:16px 14px calc(24px + env(safe-area-inset-bottom))}header{display:flex;align-items:center;gap:12px;margin-bottom:18px}header img{width:68px;height:68px;object-fit:contain;border-radius:16px}h1{font-size:23px;margin:0 0 4px}small,.note,footer{font-size:13px;line-height:1.6}nav,.taxbuttons{display:flex;gap:8px}nav{margin-bottom:14px}button{min-height:48px;border:1px solid #ebbec0;border-radius:12px;background:#ffeaeb;color:#503d38;font:600 16px system-ui;cursor:pointer;padding:10px 12px}nav button{flex:1;min-width:0}button.selected{background:#e9aebc;border:2px solid #a45468}.card{background:white;border:1px solid #ecdccd;border-radius:18px;padding:16px;margin:12px 0}label{display:block;font-size:15px;font-weight:600;margin-bottom:14px}input{display:block;width:100%;min-width:0;min-height:54px;margin-top:6px;border:1px solid #c8beb8;border-radius:10px;padding:10px 12px;font:24px system-ui;background:#fffcf7;color:#503d38}input:focus,button:focus-visible{outline:3px solid #be7d90;outline-offset:2px}#primary{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}#primary label:first-child{grid-column:1/-1}#tax>span{display:block;margin-bottom:8px}.taxbuttons button{flex:1;padding:8px 4px}#customTax{margin-top:12px}.secondary{width:100%;background:#fffaf1;margin-top:14px}h2{font-size:18px;margin:0 0 10px}#amount{font-size:clamp(26px,8.5vw,40px);font-weight:750;color:#192d41;overflow-wrap:anywhere}#rate{font-size:26px;font-weight:700;color:#192d41;margin-top:4px}#error{color:#a62b38;font-size:14px;margin:8px 0 0}.negative #amount{color:firebrick}summary{cursor:pointer;min-height:48px;padding:12px 4px;font-weight:650}#settings input{font-size:20px}dl{margin:0}dl div{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid #f2e8e2;padding:10px 0;font-size:14px}dt{flex:1}dd{margin:0;font-weight:650;text-align:right;overflow-wrap:anywhere;max-width:55%}[hidden]{display:none!important}footer{margin-top:16px;color:#7d6b61}@media(max-width:350px){main{padding:12px 10px}h1{font-size:20px}.card{padding:12px}input{font-size:22px}}