.history-preview[hidden],.history-empty[hidden],.history-detail[hidden]{display:none!important}
.history-preview{position:absolute;inset:29px 0 72px;z-index:11;display:flex;flex-direction:column;min-height:0;padding:0 17px;background:linear-gradient(180deg,#f6faf7,#fbfcfa 45%);color:#173b30}
.history-topbar{height:62px;flex:none;display:flex;align-items:center;gap:10px}
.history-back{width:43px;height:38px;flex:none;border:1px solid #e0ebe3;border-radius:13px;background:#fff;color:#185840;font:inherit;font-size:10px;font-weight:800;line-height:1;cursor:pointer;box-shadow:0 3px 10px #17472f0a}
.history-topbar>div{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.history-topbar strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px;letter-spacing:-.3px}
.history-topbar div span{color:#748a7b;font-size:10px}
.history-scroll{flex:1;min-height:0;overflow-y:auto;scrollbar-width:none;padding-bottom:22px}
.history-scroll::-webkit-scrollbar,.history-detail-scroll::-webkit-scrollbar{display:none}
.history-sections{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;margin-top:8px;padding:4px;border-radius:15px;background:#e9f1eb}.history-sections button{height:38px;border:0;border-radius:11px;background:transparent;color:#678071;font:inherit;font-size:10px;font-weight:800;line-height:1;cursor:pointer}.history-sections button[aria-selected="true"]{background:#fff;color:#0c7653;box-shadow:0 3px 9px #153c2b14}
.history-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:11px 0 13px}.history-filters button{min-width:0;min-height:31px;padding:0 4px;border:1px solid #e0eae1;border-radius:11px;background:#fff;color:#718478;font:inherit;font-size:10px;font-weight:750;line-height:1;cursor:pointer}.history-filters button[aria-pressed="true"]{border-color:#0d805a;background:#0b7955;color:#fff}
.history-list{display:flex;flex-direction:column;gap:9px}.history-item{width:100%;display:flex;align-items:flex-start;gap:10px;padding:13px 12px;border:1px solid #e5ede5;border-radius:18px;background:#fff;color:#173b30;text-align:left;font:inherit;box-shadow:0 4px 12px #1248300a;cursor:pointer}.history-item:active{background:#f3f9f4}.history-item-icon{width:39px;height:39px;flex:none;display:grid;place-items:center;border-radius:12px;background:#e9f5ed;color:#0b7955;font-size:19px;font-weight:800}.history-item.withdrawals .history-item-icon{background:#edf1f8;color:#4a6a8c}.history-item.rewards .history-item-icon{background:#fff4db;color:#b78724}.history-item-main{flex:1;min-width:0}.history-item-main strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.history-item-main small{display:block;margin-top:5px;color:#718577;font-size:9.5px;line-height:1.3}.history-item-main em{display:inline-block;margin-top:10px;padding:4px 7px;border-radius:7px;background:#edf6ef;color:#587765;font-size:8px;font-style:normal;font-weight:850}.history-item-main em.pending{background:#fff4df;color:#9b6b21}.history-item-main em.successful{background:#e7f5eb;color:#087853}.history-item-main em.rejected{background:#faecea;color:#aa574e}.history-item-side{flex:none;text-align:right}.history-item-side strong{display:block;font-size:12px;white-space:nowrap}.history-item.rewards .history-item-side strong{color:#087853}.history-item-side small{display:block;margin-top:7px;color:#8a9a8d;font-size:9px}
.history-empty{display:flex;align-items:center;flex-direction:column;padding:36px 18px;border:1px dashed #cbdccd;border-radius:19px;background:#fff;text-align:center}.history-empty span{display:grid;place-items:center;width:41px;height:41px;margin-bottom:11px;border-radius:13px;background:#eef6ef;color:#138058;font-size:24px}.history-empty strong{font-size:13px}.history-empty p{margin:5px 0 0;color:#718577;font-size:10px}
.history-footnote{margin:15px 3px 0;color:#8c9d91;font-size:9px;line-height:1.45}
.history-detail{position:absolute;inset:-29px 0 -72px;z-index:35;display:flex;align-items:flex-end;padding:0;background:#102b227a}.history-detail-panel{width:100%;height:min(650px,89%);display:flex;flex-direction:column;padding:0 18px 20px;border-radius:26px 26px 0 0;background:#fbfdfb;box-shadow:0 -12px 36px #09241720}.history-detail-top{height:62px;flex:none;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #edf1ed}.history-detail-top button{border:0;background:transparent;color:#0b7655;font:inherit;font-size:12px;font-weight:800;line-height:1;cursor:pointer}.history-detail-top span{color:#899c8d;font-size:9px;font-weight:900;letter-spacing:1.5px}.history-detail-scroll{min-height:0;overflow-y:auto;scrollbar-width:none}.history-detail-kind{display:block;margin-top:25px;color:#16815c;font-size:9px;font-weight:900;letter-spacing:1.4px}.history-detail-scroll h2{margin:7px 0 15px;font-size:22px;letter-spacing:-.6px}.history-detail-amount{margin-bottom:21px;font-size:32px;font-weight:900;letter-spacing:-1px}.history-detail-meta{display:flex;justify-content:space-between;gap:15px;padding:12px 0;border-top:1px solid #e8eee8;font-size:11px}.history-detail-meta span{color:#819385}.history-detail-meta strong{text-align:right}.history-detail-scroll h3{margin:27px 0 16px;font-size:13px}.history-detail-steps{display:flex;flex-direction:column;gap:0}.history-step{display:flex;gap:12px;min-height:57px}.history-step-dot{width:16px;height:16px;flex:none;margin-top:1px;border:4px solid #dce9df;border-radius:50%;background:#fff}.history-step.done .history-step-dot{border-color:#0e885e;background:#0e885e}.history-step>div{flex:1;padding-bottom:17px;border-bottom:1px solid #eef2ee}.history-step strong{display:block;font-size:11px}.history-step p{margin:4px 0 0;color:#7b8c7e;font-size:9.5px;line-height:1.45}.history-detail-note{margin:16px 0 0;color:#91a194;font-size:9px;line-height:1.5}
.history-preview button:focus-visible{outline:2px solid #0b7955;outline-offset:2px}
