*{box-sizing:border-box}body{margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;background:#1d190e;color:#f6f3e9}.app{min-height:100vh}.topbar{height:76px;border-bottom:1px solid #4a4125;background:#292314;display:flex;align-items:center;justify-content:space-between;padding:0 24px;position:sticky;top:0;z-index:5}.topbar h1{font-size:21px;margin:0 0 3px}.muted{color:#a9a084;font-size:12px}.walletArea{display:flex;align-items:center;gap:9px}.dot{width:9px;height:9px;border-radius:50%;background:#807b6b}.dot.on{background:#22c55e}.wallet{font-family:monospace;color:#e1dbcb;font-size:12px}button{border:1px solid #5f5434;background:#3d351d;color:#faf8f3;padding:9px 13px;border-radius:8px;cursor:pointer}button:hover{background:#544824}button:disabled{opacity:.55;cursor:not-allowed}.warning{border-color:#9a6b19}.layout{display:grid;grid-template-columns:245px 1fr;min-height:calc(100vh - 76px)}.sidebar{border-right:1px solid #4a4125;padding:16px;background:#231f11}.contractBtn{width:100%;text-align:left;margin-bottom:8px;padding:12px 13px;display:flex;flex-direction:column;gap:4px}.contractBtn.active{border-color:#f2cd5e;background:#514522}.contractBtn small{color:#a59b7e}.content{padding:22px;max-width:1600px;width:100%;margin:auto}.contractHeader{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px}.contractHeader h2{margin:0 0 7px;font-size:22px}.contractHeader code{font-size:11px;color:#c2b89b}.contractHeader a{color:#e4d9b8;text-decoration:none}.tabs{display:flex;gap:8px;border-bottom:1px solid #4a4125;margin-bottom:18px}.tabs button{border-radius:8px 8px 0 0;border-bottom:0}.tabs .selected{background:#f2cd5e;border-color:#f2cd5e}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(360px,1fr));gap:15px}.card{background:#292314;border:1px solid #4c4226;border-radius:12px;padding:15px;min-width:0}.fnHead{display:flex;justify-content:space-between;gap:10px;margin-bottom:14px}.fnHead h3{font-size:15px;margin:0 0 5px}.fnHead code{font-size:10px;color:#a49b7f;word-break:break-all}.badge{font-size:10px;height:max-content;padding:4px 7px;border-radius:5px}.badge.read{background:#123c2c;color:#72e6b1}.badge.write{background:#3c2812;color:#ffc56b}.inputs{display:flex;flex-direction:column;gap:10px}.inputs label{display:flex;flex-direction:column;gap:5px}.inputs span{font-size:11px;color:#d2cbb5}.inputs em{font-style:normal;color:#988e70;margin-left:5px}.inputs input,.inputs select{width:100%;background:#1c190e;color:#faf8f2;border:1px solid #564c2d;border-radius:7px;padding:9px;font:inherit;font-size:12px}.execute{margin-top:13px;width:100%;background:#f0c442;border-color:#f0c442}.noInput{font-size:12px;color:#9e9578;padding:5px 0}.result{white-space:pre-wrap;word-break:break-word;background:#16130b;border:1px solid #413920;border-radius:7px;padding:10px;margin:12px 0 0;font-size:11px;color:#dbd3b9;max-height:280px;overflow:auto}.alert{padding:10px 12px;border-radius:8px;margin-bottom:16px;font-size:12px;white-space:pre-wrap;word-break:break-word}.alert.success{background:#0d2d22;color:#82e6b8;border:1px solid #1d5c45}.alert.error{background:#35191e;color:#ffabb4;border:1px solid #6b2b35}.missing{border:1px solid #5b4b22;background:#201b0e;padding:20px;border-radius:10px;color:#d7c58e}.missing h3{margin-top:0}@media(max-width:900px){.layout{grid-template-columns:1fr}.sidebar{border-right:0;border-bottom:1px solid #4a4125;display:grid;grid-template-columns:repeat(2,1fr);gap:7px}.contractBtn{margin:0}.topbar{height:auto;min-height:76px;gap:10px;flex-wrap:wrap}.walletArea{flex-wrap:wrap}.grid{grid-template-columns:1fr}}.heroCard{background:linear-gradient(180deg,#2e2816,#231f11);border:1px solid #524623;border-radius:16px;padding:22px 24px;margin-bottom:22px;display:flex;flex-direction:column;gap:16px;box-shadow:0 8px 24px #00000040}.heroMain{display:flex;align-items:flex-start;gap:18px}.heroIcon{width:52px;height:52px;border-radius:12px;background:#41381f;border:1px solid #6c5d2f;display:flex;align-items:center;justify-content:center;font-size:24px;flex-shrink:0;box-shadow:0 4px 12px #0003}.heroInfo{flex:1;min-width:0}.heroTitleRow{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap}.heroInfo h2{margin:0 0 3px;font-size:22px;font-weight:700;color:#fcfbf8}.heroSubtitle{color:#b8af94;font-size:13px;margin:0 0 14px}.heroAddresses{display:flex;flex-wrap:wrap;gap:28px;font-size:12px}.heroAddrGroup{display:flex;flex-direction:column;gap:3px}.heroAddrLabel{color:#8b8164;font-size:11px;font-weight:500}.heroAddrValue{display:flex;align-items:center;gap:6px;font-family:monospace;color:#e1dbcb;font-size:12px}.iconBtn{background:transparent;border:none;padding:3px 5px;color:#968d71;cursor:pointer;border-radius:4px;display:inline-flex;align-items:center;justify-content:center;font-size:13px;line-height:1;transition:all .15s}.iconBtn:hover{background:#524623;color:#f9f7f1}.heroBadges{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-top:4px}.heroPill{padding:4px 10px;border-radius:20px;font-size:11px;font-weight:600;letter-spacing:.2px}.heroPill.read{background:#3a331c;color:#fad460;border:1px solid #5f4f1e}.heroPill.write{background:#38250f;color:#fbbf24;border:1px solid #573b18}.heroPill.events{background:#211a3b;color:#c084fc;border:1px solid #3b2c63}.heroPill.integrated{background:#0d3226;color:#34d399;border:1px solid #14533d}.holdingsSection{margin-bottom:24px}.holdingsHeader{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;flex-wrap:wrap;gap:10px}.holdingsHeaderTitle{margin:0 0 2px;font-size:18px;font-weight:700;color:#fcfbf8}.holdingsHeaderSub{color:#bdb28f;font-size:12px;margin:0;display:flex;align-items:center;gap:4px;flex-wrap:wrap}.refreshBtn{background:#302a17;border:1px solid #584d2a;color:#e1dbcb;padding:6px 14px;border-radius:20px;font-size:12px;font-weight:500;display:flex;align-items:center;gap:6px;cursor:pointer;transition:all .2s}.refreshBtn:hover:not(:disabled){background:#4b401e;border-color:#80703f;color:#fff}.holdingsGrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px}.holdingCard{background:#292414;border:1px solid #4d4222;border-radius:12px;padding:16px 18px;display:flex;flex-direction:column;justify-content:space-between;min-height:102px;box-shadow:0 4px 12px #0000002e;transition:transform .15s,border-color .15s}.holdingCard:hover{border-color:#6d5e32}.holdingCard.totalHighlight{border-color:#f6c73b;background:linear-gradient(180deg,#332d19,#282313)}.holdingCardTop{display:flex;align-items:center;justify-content:space-between;gap:8px}.holdingCardLabel{font-size:12px;font-weight:600;color:#bdb28f;text-transform:capitalize}.holdingCardAddr{font-family:monospace;font-size:11px;color:#8b8164;display:flex;align-items:center;gap:3px}.holdingAmount{font-size:22px;font-weight:700;color:#fcfbf8;margin:8px 0 2px;letter-spacing:-.5px}.holdingSymbol{font-size:13px;font-weight:600;color:#bdb28f;margin-left:6px}.holdingWei{font-family:monospace;font-size:11px;color:#7e7455;word-break:break-all}.totalsSection{background:#221d10;border:1px solid #493f20;border-radius:14px;padding:16px 20px;margin-bottom:22px}.totalsHeader{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;flex-wrap:wrap;gap:10px}.totalsHeader h3{margin:0 0 3px;font-size:16px;font-weight:700;color:#f0ede2}.totalsHeader p{margin:0;font-size:12px;color:#968d71}.totalsTableContainer{margin-top:14px;border-top:1px solid #483e1f;padding-top:12px;overflow-x:auto}.breakdownTable{width:100%;border-collapse:collapse;font-size:12px;text-align:left}.breakdownTable th{padding:8px 12px;color:#968d71;font-weight:600;border-bottom:1px solid #4c4222}.breakdownTable td{padding:10px 12px;color:#e1dbcb;border-bottom:1px solid #352e1a;font-family:monospace}.breakdownTable td:first-child{font-family:inherit;font-weight:600;color:#f9f7f1}.breakdownTable tr:hover td{background:#302a17}.tableSelectBtn{background:#40381f;border:1px solid #6b5c2e;color:#fde393;padding:3px 8px;border-radius:5px;font-size:11px;cursor:pointer;font-family:inherit}.tableSelectBtn:hover{background:#615227}.copiedToast{position:fixed;bottom:24px;right:24px;background:#10b981;color:#fff;font-weight:600;padding:8px 16px;border-radius:8px;font-size:12px;box-shadow:0 4px 16px #0006;z-index:999;animation:fadeIn .2s}@keyframes fadeIn{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}.fnHead code{display:block}.fnHead code.fnName{font-size:12px;color:#e4d9b8;margin-bottom:3px}.result.formatted{white-space:normal;max-height:420px;padding:6px 10px}.outList{display:flex;flex-direction:column}.outRow{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:7px 0;border-bottom:1px solid #37301b}.outRow:last-child{border-bottom:0}.outName{color:#d2cbb5;font-size:12px;display:flex;flex-direction:column;gap:2px;min-width:0}.outName code{font-size:10px;color:#978d6f}.outValue{color:#f6f3e9;font-size:12px;font-weight:600;text-align:right;word-break:break-all;display:flex;flex-direction:column;gap:2px}.outValue small{font-weight:400;font-size:10px;color:#978d6f}.outGroup{border:1px solid #413920;border-radius:8px;padding:4px 10px;margin:6px 0;background:#1e1a0f}.outGroupHead{display:flex;justify-content:space-between;gap:8px;padding:5px 0;font-size:12px;font-weight:700;color:#e4d9b8;border-bottom:1px solid #37301b}.outGroupHead em{font-style:normal;font-weight:400;color:#978d6f;font-size:10px}.outEmpty{font-size:12px;color:#9e9578;padding:6px 0}.rawToggle{margin-top:8px;width:100%;font-size:11px;padding:6px 10px;background:transparent}.execute,.tabs .selected{background:#eab308;border-color:#eab308;color:#1a1405;font-weight:700}.execute:hover:not(:disabled),.tabs .selected:hover{background:#facc15}.contractBtn.active{border-color:#eab308;box-shadow:inset 3px 0 #eab308}.topbar h1{color:#facc15}.heroPill.write{background:#3a1f0c;color:#fb923c;border-color:#5c3214}
