:root {
    color-scheme: dark;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #08090b;
    color: #f4f4f5;
    font-synthesis: none;
}

* {
    box-sizing: border-box;
}

html {
    background: #08090b;
}

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    background: #08090b;
}

button, a {
    -webkit-tap-highlight-color: transparent;
}

.page-glow {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 46% 32% at 51% -8%, rgba(126, 91, 239, .18), transparent 72%),
    linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px);
    background-size: auto, 64px 64px, 64px 64px;
    mask-image: linear-gradient(to bottom, black, transparent 58%);
}

.shell {
    position: relative;
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
}

.topbar {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #f7f7f8;
    font-size: .92rem;
    font-weight: 700;
    letter-spacing: -.02em;
    text-decoration: none;
}

.brand-muted {
    color: #6f737b;
    font-weight: 500;
}

.brand-mark {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 8px;
    background: linear-gradient(145deg, #202126, #111216);
    box-shadow: inset 0 1px rgba(255, 255, 255, .08);
}

.brand-mark svg {
    width: 16px;
    fill: #a78bfa;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #8b8f97;
    font: 600 .73rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.live i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #65d48b;
    box-shadow: 0 0 12px #65d48b;
}

.refresh {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 9px;
    padding: 9px 13px;
    background: rgba(255, 255, 255, .045);
    color: #d8d9dc;
    font-weight: 600;
    font-size: .78rem;
    line-height: 1;
    font-family: inherit;
    cursor: pointer;
    box-shadow: inset 0 1px rgba(255, 255, 255, .05);
    transition: .18s ease;
}

.refresh svg {
    width: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.refresh:hover {
    border-color: rgba(255, 255, 255, .23);
    background: rgba(255, 255, 255, .075);
    color: #fff;
}

.refresh:disabled {
    cursor: wait;
    opacity: .45;
}

.refresh:focus-visible, .network-tab:focus-visible {
    outline: 2px solid #a78bfa;
    outline-offset: 3px;
}

.hero {
    max-width: 800px;
    padding: 60px 0 40px;
}

.eyebrow {
    margin: 0 0 17px;
    color: #9e86ef;
    font: 700 .7rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
    letter-spacing: .16em;
}

h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(2.7rem, 5.4vw, 4.8rem);
    line-height: 1.02;
    letter-spacing: -.065em;
    font-weight: 610;
}

.hero-copy {
    max-width: 660px;
    margin: 24px 0 0;
    color: #8b8f97;
    font-size: 1rem;
    line-height: 1.75;
}

.network-tabs {
    display: flex;
    width: fit-content;
    gap: 4px;
    margin-bottom: 24px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 13px;
    background: rgba(255, 255, 255, .025);
}

.network-tab {
    display: flex;
    min-width: 168px;
    align-items: center;
    gap: 11px;
    border: 0;
    border-radius: 9px;
    padding: 11px 14px;
    background: transparent;
    color: #777b84;
    text-align: left;
    cursor: pointer;
    transition: .18s ease;
}

.network-tab:hover {
    color: #c8c9cd;
}

.network-tab[aria-selected="true"] {
    background: #1a1b20;
    color: #f5f5f6;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .085), 0 8px 22px rgba(0, 0, 0, .22);
}

.network-tab > span:last-child {
    display: grid;
    gap: 3px;
}

.network-tab strong {
    font-size: .84rem;
}

.network-tab small {
    color: #696d75;
    font: .67rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.chain-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #8b5cf6;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, .13);
}

.network-tab[data-network="hoodi"] .chain-dot {
    background: #22c9a6;
    box-shadow: 0 0 0 4px rgba(34, 201, 166, .13);
}

.status-row {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, .07);
    padding-top: 18px;
}

.status, .timezone {
    margin: 0;
    color: #6f737b;
    font: .72rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.status::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    margin: 0 9px 2px 0;
    border-radius: 50%;
    background: #a78bfa;
}

.query-progress {
    display: grid;
    gap: 9px;
    padding-top: 12px;
    color: #777b84;
    font: .68rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.query-progress[hidden] {
    display: none;
}

.query-progress > div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
}

.query-progress strong {
    color: #a78bfa;
    font-weight: 650;
}

.query-progress > i {
    height: 3px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
}

.query-progress b {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #8b5cf6;
    transition: width .2s ease;
}

.query-progress[data-network="hoodi"] strong {
    color: #46d6b8;
}

.query-progress[data-network="hoodi"] b {
    background: #22c9a6;
}

#network-panel {
    min-height: 520px;
    padding-top: 18px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.summary-card {
    position: relative;
    min-height: 154px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .085);
    border-radius: 14px;
    padding: 20px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .018));
    box-shadow: inset 0 1px rgba(255, 255, 255, .035);
}

.summary-card.highlight::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    top: -110px;
    right: -60px;
    border-radius: 50%;
    background: rgba(139, 92, 246, .22);
    filter: blur(30px);
}

[data-network="hoodi"] .summary-card.highlight::after {
    background: rgba(34, 201, 166, .19);
}

.summary-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #7f838b;
    font-size: .72rem;
    font-weight: 600;
}

.summary-icon {
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 6px;
    color: #b7bac0;
    font-size: .7rem;
}

.summary-value, .summary-address, .summary-block {
    position: relative;
    z-index: 1;
    display: block;
    margin-top: 22px;
    color: #f7f7f8;
    letter-spacing: -.04em;
}

.summary-value {
    font-size: 2.4rem;
    line-height: 1;
}

.summary-value small {
    color: #6f737b;
    font-size: 1rem;
    font-weight: 500;
}

.summary-address {
    font: 650 1.2rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.summary-block {
    font: 650 1.18rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.summary-wallet-balance {
    display: block;
    overflow: hidden;
    margin-top: 22px;
    color: #f7f7f8;
    font: 650 clamp(.88rem, 1.25vw, 1.15rem)/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
    letter-spacing: -.04em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.summary-wallet-balance small {
    color: #6f737b;
    font-size: .64rem;
    letter-spacing: 0;
}

.observe-summary code {
    color: #7d8189;
}

.summary-card p {
    margin: 10px 0 0;
    color: #70747c;
    font-size: .72rem;
}

.data-card {
    margin-top: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 14px;
    background: #0e0f12;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .18);
}

.card-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 22px 22px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .075);
}

.chain-kicker {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #8f78de;
    font: 700 .65rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
    text-transform: uppercase;
    letter-spacing: .13em;
}

.chain-kicker i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 10px currentColor;
}

[data-network="hoodi"] .chain-kicker {
    color: #22c9a6;
}

h2 {
    margin: 8px 0 0;
    font-size: 1.12rem;
    letter-spacing: -.025em;
}

.account-count {
    color: #666a72;
    font: .67rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
    text-transform: uppercase;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: .8rem;
}

th, td {
    padding: 15px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .055);
    text-align: left;
    white-space: nowrap;
}

th {
    color: #60646c;
    background: #0b0c0e;
    font: 650 .62rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
    text-transform: uppercase;
    letter-spacing: .085em;
}

tbody tr {
    transition: background .15s ease;
}

tbody tr:hover {
    background: rgba(255, 255, 255, .025);
}

tbody tr:last-child td {
    border-bottom: 0;
}

.rank {
    color: #595d65;
    font: .7rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.rank.top {
    color: #b09af2;
}

[data-network="hoodi"] .rank.top {
    color: #46d6b8;
}

.address {
    display: flex;
    align-items: center;
    gap: 10px;
}

.address-glyph {
    display: grid;
    width: 27px;
    height: 27px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 50%;
    background: linear-gradient(145deg, #24202f, #141318);
    color: #a992ef;
    font: 650 .62rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

[data-network="hoodi"] .address-glyph {
    background: linear-gradient(145deg, #17302c, #101a18);
    color: #41cfb2;
}

code {
    color: #c6c8cd;
    font: .72rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.copy-address {
    display: inline-grid;
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    place-items: center;
    border: 0;
    padding: 0;
    background: transparent;
    color: #696d75;
    cursor: pointer;
    transition: .16s ease;
}

.copy-address svg {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.copy-address:hover {
    color: #d5d7db;
}

.copy-address[data-copied="true"] {
    color: #70d393;
}

.copy-address:focus-visible {
    outline: 2px solid #a78bfa;
    outline-offset: 2px;
}

.short-address {
    display: none;
}

.balance {
    color: #e9eaec;
    font: 600 .78rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.unit, .usage small {
    color: #666a72;
    font-size: .64rem;
}

.availability {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid;
    border-radius: 999px;
    padding: 6px 9px;
    font: 650 .67rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.availability i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
}

.availability.ready {
    border-color: rgba(90, 203, 129, .22);
    background: rgba(90, 203, 129, .07);
    color: #70d393;
}

.availability.waiting {
    border-color: rgba(232, 177, 86, .19);
    background: rgba(232, 177, 86, .055);
    color: #d6aa63;
}

.usage {
    display: grid;
    min-width: 84px;
    gap: 6px;
    color: #b3b6bc;
    font: .7rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.usage > i {
    display: block;
    width: 72px;
    height: 2px;
    overflow: hidden;
    border-radius: 2px;
    background: rgba(255, 255, 255, .075);
}

.usage b {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #7961c7;
}

[data-network="hoodi"] .usage b {
    background: #209f87;
}

.notice-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 14px;
    padding: 22px;
    background: rgba(255, 255, 255, .025);
}

.notice-card > span {
    display: grid;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 8px;
    background: rgba(139, 92, 246, .12);
    color: #a78bfa;
}

.notice-card strong {
    font-size: .84rem;
}

.notice-card p {
    margin: 7px 0 0;
    color: #7c8088;
    font-size: .76rem;
    line-height: 1.6;
}

.notice-card code {
    color: #b5a6e4;
}

.skeleton {
    border-color: transparent;
    background: linear-gradient(100deg, #111216 30%, #191a1f 48%, #111216 66%);
    background-size: 250% 100%;
    animation: shimmer 1.25s infinite linear;
}

.table-skeleton {
    height: 390px;
}

@keyframes shimmer {
    to {
        background-position-x: -250%;
    }
}

footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 46px;
    border-top: 1px solid rgba(255, 255, 255, .07);
    padding: 22px 0 38px;
    color: #4f535a;
    font: .62rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
    text-transform: uppercase;
    letter-spacing: .09em;
}

@media (max-width: 880px) {
    .shell {
        width: min(100% - 28px, 1280px);
    }

    .hero {
        padding-top: 52px;
    }

    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .summary-card {
        min-height: 135px;
    }

    .full-address {
        display: none;
    }

    .short-address {
        display: inline;
    }
}

@media (max-width: 560px) {
    .topbar {
        height: 64px;
    }

    .brand-muted, .live {
        display: none;
    }

    .refresh {
        padding: 9px;
        font-size: 0;
    }

    .refresh svg {
        width: 16px;
    }

    .hero {
        padding: 46px 0 34px;
    }

    h1 {
        font-size: clamp(2.65rem, 14vw, 4rem);
    }

    .hero-copy {
        font-size: .88rem;
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }

    .network-tabs {
        width: 100%;
    }

    .network-tab {
        flex: 1;
        min-width: 0;
    }

    .status-row {
        align-items: flex-start;
        gap: 16px;
    }

    .timezone {
        display: none;
    }

    th, td {
        padding: 14px;
    }

    .card-heading {
        padding: 18px 16px;
    }

    .observe-wallet code {
        font-size: .64rem;
    }
}
