.history-header{height:64px;padding:18px 18px 12px;display:flex;align-items:center}
.history-header h1{font-size:24px;line-height:29px;font-weight:650;letter-spacing:-.7px;margin:0}
.history-main{padding-bottom:calc(96px + var(--tg-content-safe-area-inset-bottom,env(safe-area-inset-bottom,0px)))}
.history-controls{display:flex;align-items:center;gap:8px;margin:0 18px}
.history-tabs{display:flex;flex:1;min-width:0;gap:6px}
.history-tabs button{flex:1;min-width:0;min-height:44px;padding:10px 8px;border-radius:12px;background:var(--puente-color-surface-card);color:var(--puente-color-text-secondary);font-size:13px;line-height:18px;font-weight:550}
.history-tabs button:hover{color:var(--puente-color-action-primary);background:var(--puente-color-surface-action)}
.history-tabs button[aria-selected=true]{background:var(--puente-color-action-primary);color:white}
#history-filter{display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;flex-shrink:0;padding:10px 12px;border-radius:12px;background:var(--puente-color-surface-card);color:var(--puente-color-action-primary);font-size:12px;line-height:18px;font-weight:550;white-space:nowrap}
#history-filter:hover,#history-filter[data-active=true]{background:var(--puente-color-surface-action)}
#history-filter .icon{width:19px;height:19px;stroke-width:2}
.history-day{margin:18px 18px 20px}.history-day h2{margin:0 0 4px;font-size:12px;line-height:18px;font-weight:500;color:var(--puente-color-text-secondary);letter-spacing:0}
.history-day-list{padding:0}
.history-row{display:flex;align-items:center;gap:11px;width:100%;min-height:64px;padding:10px 0;text-align:left}
.history-event-icon{display:block;width:42px;height:42px;flex-shrink:0;transition:transform var(--puente-motion-control) ease}
.history-event-copy{flex:1;min-width:0}.history-event-title{display:block;font-size:14px;line-height:19px;font-weight:600;letter-spacing:-.25px}
.history-event-meta{display:block;margin-top:4px;font-size:11px;line-height:16px;font-weight:400;color:var(--puente-color-text-secondary);white-space:normal}
.history-event-money{display:block;text-align:right;flex-shrink:0;white-space:nowrap;font-variant-numeric:tabular-nums}
.history-event-money strong{display:block;font-size:15px;line-height:20px;font-weight:550;letter-spacing:-.35px}
.history-event-money small{display:block;font-size:11px;line-height:16px;font-weight:400;color:var(--puente-color-text-secondary);margin-top:4px;letter-spacing:0}
.history-event-money.is-income strong{color:var(--puente-color-status-success)}
.history-event-money.is-failed strong{color:var(--puente-color-text-secondary);text-decoration:line-through;text-decoration-thickness:1px}
.history-event-money :is(.event-failed,.event-pending){font:var(--puente-font-feedback);white-space:normal}
.history-event-money .event-pending{color:var(--puente-color-status-warning)}.history-event-money .event-failed{color:var(--puente-color-status-error)}
.history-row:hover .history-event-title{color:var(--puente-color-action-primary)}.history-row:hover .history-event-icon{transform:translateY(-1px) rotate(-3deg)}
.history-row:focus-visible{outline-offset:1px;border-radius:10px}
.bottom-nav a.nav-item{text-decoration:none}.history-page .nav-item.active .icon{fill:none;stroke:var(--puente-color-brand-cobalt)}
.history-page .bottom-nav{height:calc(72px + var(--tg-content-safe-area-inset-bottom,env(safe-area-inset-bottom,0px)));padding-bottom:calc(8px + var(--tg-content-safe-area-inset-bottom,env(safe-area-inset-bottom,0px)))}
.history-empty{text-align:center;padding:54px 22px 40px;margin:18px 18px 0;border-radius:19px;background:white}.history-empty img{width:80px;height:80px;display:block;margin:0 auto 17px}.history-empty h2{font-size:19px;line-height:25px;font-weight:600;letter-spacing:-.4px;margin:0 0 9px}.history-empty p{font-size:13px;line-height:20px;color:var(--puente-color-text-secondary);margin:0 0 15px}.history-empty button{font-size:13px;line-height:20px;min-height:44px;font-weight:550;color:var(--puente-color-action-primary)}
.history-filter-section{border:0;padding:0;margin:20px 0 0}.history-filter-section legend{font-size:12px;line-height:18px;font-weight:600;color:var(--puente-color-text-secondary);padding:0;margin-bottom:9px}
.history-filter-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.history-status-options{grid-template-columns:repeat(2,minmax(0,1fr))}
.history-filter-option{min-height:44px;padding:10px 6px;background:white;border:1px solid var(--puente-color-border-input);border-radius:12px;font-size:12px;line-height:18px;color:var(--puente-color-text-primary);font-weight:500}
.history-filter-option[aria-pressed=true]{border-color:var(--puente-color-brand-cobalt);background:var(--puente-color-brand-cobalt);color:white}
.history-filter-actions{margin-top:22px}.history-apply{min-height:48px;margin-top:0}.history-reset{min-height:44px;width:100%;margin-top:5px;font-size:12px;font-weight:500;color:var(--puente-color-action-primary)}
.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}
@media(max-width:370px){#history-filter{width:44px;padding:10px}#history-filter-label{display:none}.history-tabs button{font-size:12px}.history-row{gap:9px}.history-event-icon{width:40px;height:40px}.history-event-title{font-size:13px;letter-spacing:-.2px}.history-event-meta{font-size:11px}.history-event-money strong{font-size:14px;letter-spacing:-.35px}.history-event-money small{font-size:11px}.history-event-money{max-width:115px}}
@media(max-width:335px){.history-event-icon{width:38px;height:38px}.history-row{gap:7px}.history-event-title{font-size:13px}.history-event-money strong{font-size:13px}.history-event-meta{font-size:11px}}
@media(prefers-reduced-motion:reduce){.history-event-icon{transition:none}.history-row:hover .history-event-icon{transform:none}}
