@font-face { font-family: Lato; src: url('./lato.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: Lato; src: url('./lato-bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
:root { font: 100%/1.5 Lato, system-ui, sans-serif; color: #100f49; background: #f8f4ec; }
* { box-sizing: border-box; }
body { margin: 0; }
header { background: #10114e; color: white; }
.bar, main { width: min(100%, 31rem); margin: auto; padding: 1.15rem 1.25rem; }
.bar { display: flex; align-items: center; justify-content: space-between; padding-top: max(1.1rem, env(safe-area-inset-top)); }
.bar img { width: 5.5rem; height: auto; display: block; }
#language { width: auto; min-height: 2.75rem; padding: .35rem .85rem; color: white; background: transparent; border: 1px solid #7677a1; }
main { padding-bottom: max(2rem, env(safe-area-inset-bottom)); }
h1 { font-size: 1.8rem; line-height: 1.15; margin: .55rem 0 1.15rem; }
h2 { font-size: 1.35rem; margin: 0; }
p { margin: .8rem 0; }
#message:empty, #history-status:empty { display: none; }
#form, details, dialog { background: white; padding: 1.2rem; border: 1px solid #e2dcd2; border-radius: 1.25rem; }
dt, label { font-weight: 700; }
dd { margin: .15rem 0 .6rem; overflow-wrap: anywhere; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
label { display: block; margin-bottom: 1rem; }
input, select, button { width: 100%; font: inherit; border-radius: .85rem; padding: .72rem; min-height: 2.8rem; }
input, select { background: white; color: inherit; border: 1px solid #aaa8ba; margin-top: .35rem; }
button { color: white; background: #18195e; border: 0; font-weight: 700; cursor: pointer; }
button:disabled { opacity: .55; cursor: wait; }
.secondary { background: white; color: #18195e; border: 1px solid #c8c2cb; margin-top: .65rem; }
.text-button { color: #303b90; background: transparent; width: auto; padding-inline: .3rem; }
.balance-card { border-radius: 1.5rem; padding: 1.4rem; color: white; background: linear-gradient(90deg, #0b0c57db, #16174738), url('./volcanes.png') center 65% / cover; overflow-wrap: anywhere; }
.balance-card p { margin: 0; }
.balance-line { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.balance-line strong { font-size: clamp(1.9rem, 9vw, 3.2rem); letter-spacing: -.035em; line-height: 1.3; }
.btc-line { margin-top: 1rem; font-variant-numeric: tabular-nums; }
.btc-line > span { color: #ffc477; font-weight: bold; }
.page-heading, .section-heading, .receipt-bar { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.page-heading #end { flex: none; }
.section-heading { margin-top: 1.25rem; }
#filters { display: flex; gap: .4rem; margin: .6rem 0 .85rem; }
#filters button { background: transparent; color: #34325a; border: 1px solid #c9c3c9; }
#filters button[aria-pressed=true] { background: #19195b; color: white; border-color: #19195b; }
#transactions { list-style: none; margin: 0; padding: 0; border-radius: 1.1rem; overflow: hidden; }
#transactions li + li { border-top: 1px solid #eee8df; }
.transaction { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .5rem; text-align: start; color: inherit; background: white; border-radius: 0; padding: .95rem .8rem; }
.transaction span { min-width: 0; overflow-wrap: anywhere; }
.transaction small { display: block; color: #59586e; font-weight: 400; margin-top: .15rem; }
.transaction .amount { text-align: end; max-width: 13ch; font-variant-numeric: tabular-nums; }
.credit { color: #156141; }
details { margin-top: 1.5rem; }
summary { cursor: pointer; font-weight: 700; }
ol { padding-left: 1.4rem; overflow-wrap: anywhere; }
dialog { color: inherit; width: min(calc(100% - 1.5rem), 29rem); max-height: 85dvh; overflow: auto; }
dialog::backdrop { background: #101039a8; }
.receipt-bar { margin-bottom: .75rem; color: #54536e; }
.receipt-amount { font-size: 1.65rem; font-weight: 700; overflow-wrap: anywhere; }
#receipt-rows { margin-bottom: 0; }
#receipt-rows > div { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-top: 1px solid #e7e2dd; }
#receipt-rows dt { flex: 1; }
#receipt-rows dd { flex: 1.2; min-width: 0; text-align: end; margin: 0; }
:focus-visible { outline: 3px solid #bd7017; outline-offset: 2px; }
[hidden] { display: none !important; }
