/* Token Rank */
.token-rank-page {
    position: relative;
    width: min(100%, 1220px);
    margin: 0 auto;
    display: grid;
    gap: 20px;
}

.token-rank-hero {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 18px 50px rgba(15, 23, 42, .05);
}

.token-rank-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px 18px;
}

.token-rank-hero h1 {
    margin: 0;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.1;
    letter-spacing: 0;
}

.token-rank-title {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
}

.token-rank-title img {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border-radius: 8px;
    object-fit: contain;
}

.token-rank-hero .sub {
    grid-column: 1 / -1;
    max-width: none;
    margin: 0;
    font-size: 15px;
}

.token-rank-actions {
    justify-self: end;
}

.token-rank-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.token-rank-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(12, 12, 15, .34);
}

.token-rank-modal-panel {
    width: min(760px, 100%);
    max-height: min(860px, calc(100vh - 48px));
    overflow: auto;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 26px 80px rgba(15, 23, 42, .18);
}

.token-rank-modal-head {
    position: sticky;
    top: -24px;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin: -24px -24px 0;
    padding: 24px;
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.token-rank-modal-head > div {
    min-width: 0;
}

.token-rank-modal-head h2 {
    margin: 0;
    font-size: 28px;
    line-height: 1.15;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.token-rank-modal-head .text-button + h2 {
    margin-top: 8px;
}

.token-rank-install-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 22px;
}

.token-rank-install-step .token-rank-install-tabs {
    margin-top: 0;
}

.token-rank-os {
    min-height: 74px;
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    padding: 14px 16px;
    border-color: var(--line);
    background: #fff;
    color: var(--text);
    text-align: left;
}

.token-rank-os strong,
.token-rank-os span {
    display: block;
}

.token-rank-os span {
    color: var(--muted);
    font-size: 13px;
}

.token-rank-os:hover,
.token-rank-os:focus-visible,
.token-rank-os:hover strong,
.token-rank-os:focus-visible strong,
.token-rank-os:hover span,
.token-rank-os:focus-visible span {
    color: #fff;
}

.token-rank-os.active {
    border-color: var(--text);
    box-shadow: var(--ring);
}

.token-rank-install-step,
.token-rank-install-note {
    display: grid;
    gap: 10px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.token-rank-install-step h3,
.token-rank-install-note strong {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 16px;
    line-height: 1.35;
}

.token-rank-step-index {
    display: inline-grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 50%;
    background: #111827;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.token-rank-install-step .sub,
.token-rank-install-note p {
    margin: 0;
}

.token-rank-install-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.token-rank-install-status {
    min-height: 20px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.token-rank-install-status.is-error {
    color: #b42318;
}

.token-rank-install-step-command.is-pending .token-rank-prompt-box {
    color: var(--muted);
    background: #f8fafc;
}

.token-rank-prompt-box {
    max-height: 220px;
    overflow: auto;
    margin: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-soft);
    color: var(--text);
    font-size: 13px;
    line-height: 1.65;
    white-space: pre-wrap;
}

.token-rank-install-step > button {
    justify-self: start;
}

.token-rank-install-step button:disabled {
    cursor: not-allowed;
    opacity: .58;
    transform: none;
}

.token-rank-install-note {
    color: var(--muted-strong);
    font-size: 14px;
    line-height: 1.75;
}

.token-rank-board {
    display: grid;
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 18px 50px rgba(15, 23, 42, .05);
}

.token-rank-filter-panel {
    display: grid;
    grid-template-columns: minmax(360px, 420px) minmax(0, 1fr);
    gap: 14px 24px;
    align-items: start;
    padding: 12px;
    border: 1px solid #e8edf4;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.token-rank-filter-group {
    min-width: 0;
    display: grid;
    gap: 7px;
}

.token-rank-filter-group-wide {
    grid-column: 1 / -1;
}

.token-rank-filter-group-tools .token-rank-chip,
.token-rank-filter-group-time .token-rank-chip {
    flex: 0 0 auto;
}

.token-rank-filter-group > span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
}

.token-rank-filter-label {
    position: relative;
    display: inline-flex;
    width: max-content;
    max-width: 100%;
    align-items: center;
    gap: 4px;
}

.token-rank-chips {
    display: flex;
    gap: 5px;
    align-items: center;
    flex-wrap: wrap;
    max-width: 100%;
    overflow: visible;
}

.token-rank-tool-chips:not(.is-expanded) [data-token-client-extra] {
    display: none;
}

.token-rank-chip {
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid #e3e8f0;
    border-radius: 999px;
    background: transparent;
    color: var(--text);
    box-shadow: none;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    transition: background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}

.token-rank-tool-more-toggle {
    width: 44px;
    justify-content: center;
    align-items: center;
    padding: 0;
    color: var(--muted-strong);
    display: inline-flex;
    font-size: 16px;
    line-height: 1;
}

.token-rank-chip:not(.active) {
    background: #fff;
    box-shadow: none;
}

.token-rank-chip:hover {
    background: #fff;
    border-color: #cfd8e5;
    box-shadow: 0 6px 14px rgba(15, 23, 42, .05);
}

.token-rank-chip.active {
    background: #111827;
    border-color: #111827;
    color: #fff;
    box-shadow: 0 8px 16px rgba(17, 24, 39, .14);
}

.token-rank-tool-chips.is-expanded .token-rank-tool-more-toggle {
    background: #f8fafc;
    border-color: #cfd8e5;
    color: var(--text);
}

.token-rank-summary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 72px;
    margin: 0;
    padding: 14px 16px;
    border: 1px solid #e8edf4;
    border-radius: 12px;
    background: #fff;
    color: var(--muted-strong);
}

.token-rank-summary strong {
    color: var(--text);
    font-size: 30px;
    line-height: 1;
}

.token-rank-summary-users {
    margin-left: auto;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    white-space: nowrap;
}

.token-rank-list {
    display: grid;
    gap: 8px;
}

.token-rank-row {
    display: grid;
    grid-template-columns: 48px 48px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    min-height: 82px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .94);
}

.token-rank-row-current {
    border-color: #111827;
    background: #fff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .08);
}

.token-rank-list-divider {
    margin: 6px 0 2px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.token-rank-empty {
    display: grid;
    min-height: 104px;
    place-items: center;
    border: 1px dashed #d8dee8;
    border-radius: 12px;
    background: #fbfdff;
    color: var(--muted);
}

.token-rank-rank {
    color: #9aa4b5;
    font-size: 19px;
    font-weight: 750;
    text-align: center;
}

.token-rank-row-current .token-rank-rank {
    min-width: 0;
    color: #111827;
}

.token-rank-medal {
    display: inline-grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #f59e0b);
    color: #fff;
    font-size: 13px;
}

.token-rank-avatar {
    width: 44px;
    height: 44px;
    min-height: 44px;
    box-sizing: border-box;
    padding: 0;
    position: relative;
    overflow: visible;
    border: 0;
    border-radius: 50%;
    background: #eef3fb;
    color: #08254a;
    font-weight: 800;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: none;
    transform: none;
}

.token-rank-avatar:hover,
.token-rank-avatar:focus-visible {
    background: #e5edf8;
    color: #08254a;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .14);
    transform: none;
}

.token-rank-avatar-media {
    position: relative;
    z-index: 1;
    display: grid;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: #eef3fb;
}

.token-rank-avatar-media img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
}

.token-rank-avatar-initial {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    border-radius: inherit;
}

.token-rank-avatar-member-badge {
    position: absolute;
    right: -3px;
    bottom: -3px;
    z-index: 2;
    display: grid;
    width: 16px;
    height: 16px;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 50%;
    background: linear-gradient(135deg, #d8a83a 0%, #a36b0a 100%);
    color: #fff;
    box-shadow: 0 1px 3px rgba(163, 107, 10, .28);
    pointer-events: none;
}

.token-rank-avatar-member-badge svg {
    width: 10px;
    height: 10px;
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.token-rank-user {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.token-rank-user strong {
    overflow: hidden;
    font-size: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.token-rank-user-meta {
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
}

.token-rank-breakdown-badges {
    min-width: 0;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
}

.token-rank-breakdown-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 24px;
    max-width: 100%;
    padding: 0 8px 0 7px;
    border: 1px solid #e4e9f1;
    border-radius: 999px;
    background: #fbfdff;
    color: #4b5563;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.token-rank-breakdown-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: var(--token-rank-client-color, #64748b);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--token-rank-client-color, #64748b) 18%, transparent);
}

.token-rank-breakdown-name {
    overflow: hidden;
    max-width: 92px;
    text-overflow: ellipsis;
}

.token-rank-breakdown-badge strong {
    flex: 0 0 auto;
    overflow: visible;
    color: #111827;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    text-overflow: clip;
    white-space: nowrap;
}

.token-rank-breakdown-text,
.token-rank-score span {
    color: var(--muted);
    font-size: 13px;
}

.token-rank-score {
    min-width: 140px;
    text-align: right;
}

.token-rank-score strong {
    display: block;
    font-size: 22px;
}

.token-rank-profile {
    position: fixed;
    top: 22px;
    right: 22px;
    bottom: 22px;
    z-index: 40;
    width: min(430px, calc(100vw - 32px));
    overflow: auto;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    box-shadow: var(--shadow);
}

.token-rank-profile-head,
.token-rank-metrics {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.token-rank-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 16px 0;
}

.token-rank-metrics div {
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.token-rank-metrics span,
.token-rank-metrics strong {
    display: block;
}

.token-rank-metrics span {
    color: var(--muted);
    font-size: 12px;
}

.token-rank-bars,
.token-rank-mini-list {
    display: grid;
    gap: 7px;
}

.token-rank-bar {
    display: grid;
    grid-template-columns: 74px 1fr 66px;
    gap: 8px;
    align-items: center;
    font-size: 12px;
}

.token-rank-bar i {
    display: block;
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: #edf2f7;
}

.token-rank-bar b {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--accent);
}

.token-rank-mini-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--soft-line);
    font-size: 13px;
}

@media (max-width: 760px) {
    .token-rank-hero {
        grid-template-columns: 1fr;
    }

    .token-rank-actions {
        justify-self: start;
    }

    .token-rank-board,
    .token-rank-hero {
        padding: 14px;
    }

    .token-rank-filter-panel {
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .token-rank-row {
        grid-template-columns: 34px 42px minmax(0, 1fr);
    }

    .token-rank-score {
        grid-column: 3;
        text-align: left;
    }
}

.token-rank-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
    gap: 20px;
    align-items: start;
}

.token-rank-layout .token-rank-profile {
    position: sticky;
    top: 18px;
    right: auto;
    bottom: auto;
    z-index: 1;
    width: auto;
    max-height: none;
    display: grid;
    gap: 16px;
    align-self: start;
    overflow: visible;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 18px 50px rgba(15, 23, 42, .05);
}

.token-rank-layout .token-rank-profile-head {
    align-items: flex-start;
}

.token-rank-layout .token-rank-profile-head h2 {
    margin: 4px 0 0;
    font-size: 24px;
    line-height: 1.15;
}

.token-rank-layout .token-rank-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.token-rank-layout .token-rank-metrics div {
    min-width: 0;
    background: #fff;
}

.token-rank-layout .token-rank-metrics strong {
    margin-top: 4px;
    overflow: hidden;
    font-size: 20px;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.token-rank-avatar {
    display: grid;
    place-items: center;
    font-size: 16px;
    line-height: 1;
}

.token-rank-personal-section {
    display: grid;
    gap: 10px;
}

.token-rank-section-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: baseline;
}

.token-rank-section-head h3 {
    margin: 0;
    font-size: 16px;
}

.token-rank-section-head span {
    color: var(--muted);
    font-size: 12px;
}

.token-rank-model-item {
    display: grid;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid var(--soft-line);
}

.token-rank-model-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    min-width: 0;
    font-size: 13px;
}

.token-rank-model-line span {
    min-width: 0;
    display: flex;
    gap: 8px;
    align-items: center;
    overflow: hidden;
    color: var(--text);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.token-rank-model-line i {
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.token-rank-model-line strong {
    flex: 0 0 auto;
    color: var(--text);
}

.token-rank-model-item > b {
    display: block;
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #eef2f7;
}

.token-rank-model-item > b > em {
    display: block;
    height: 100%;
    border-radius: inherit;
}

.token-rank-daily-chart {
    display: grid;
    grid-template-columns: repeat(30, minmax(7px, 1fr));
    gap: 6px;
    align-items: end;
    min-height: 202px;
    padding: 12px 10px 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}

.token-rank-daily-chart > .token-rank-empty {
    grid-column: 1 / -1;
    min-height: 178px;
}

.token-rank-day {
    min-width: 0;
    display: grid;
    grid-template-rows: 1fr auto;
    gap: 7px;
}

.token-rank-day-barspace {
    height: 160px;
    display: flex;
    align-items: flex-end;
}

.token-rank-day-stack {
    width: 100%;
    min-height: 4px;
    display: flex;
    flex-direction: column-reverse;
    overflow: hidden;
    border-radius: 6px 6px 3px 3px;
    background: #eef2f7;
}

.token-rank-day-stack.empty {
    background: #eef2f7;
}

.token-rank-day-segment {
    display: block;
    min-height: 2px;
}

.token-rank-day-label {
    overflow: hidden;
    color: var(--muted);
    font-size: 10px;
    line-height: 1;
    text-align: center;
    text-overflow: clip;
    white-space: nowrap;
}

@media (max-width: 1040px) {
    .token-rank-layout {
        grid-template-columns: 1fr;
    }

    .token-rank-layout .token-rank-profile {
        position: static;
        max-height: none;
    }

    .token-rank-filter-panel {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 760px) {
    .token-rank-layout {
        gap: 14px;
    }

    .token-rank-modal {
        padding: 12px;
        align-items: stretch;
    }

.token-rank-modal-panel {
        max-height: calc(100vh - 24px);
        padding: 18px;
    }

    .token-rank-modal-head {
        top: -18px;
        margin: -18px -18px 0;
        padding: 18px;
    }

    .token-rank-install-tabs {
        grid-template-columns: 1fr;
    }

    .token-rank-layout .token-rank-profile {
        padding: 14px;
    }

    .token-rank-layout .token-rank-metrics {
        grid-template-columns: 1fr;
    }

    .token-rank-daily-chart {
        grid-template-columns: repeat(15, minmax(8px, 1fr));
        min-height: 300px;
    }

    .token-rank-day-barspace {
        height: 118px;
    }
}

.token-rank-user-modal-panel {
    width: min(1120px, 100%);
}

.token-rank-user-modal-body {
    margin-top: 18px;
}

.main-panel > .token-rank-page {
    width: min(100%, 1220px);
    max-width: 1220px;
    margin: 0 auto;
}

.main-panel > .token-rank-page .token-rank-layout {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 440px);
}

.main-panel > .token-rank-page .token-rank-filter-panel {
    grid-template-columns: minmax(360px, 420px) minmax(0, 1fr);
}

.main-panel > .token-rank-page .token-rank-daily-chart {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
    align-items: stretch;
    min-height: 0;
    padding: 12px;
}

.main-panel > .token-rank-page .token-rank-day {
    grid-template-columns: 46px minmax(0, 1fr) 58px;
    grid-template-rows: none;
    gap: 8px;
    align-items: center;
    min-height: 18px;
}

.main-panel > .token-rank-page .token-rank-day-barspace {
    height: 10px;
    min-width: 0;
    display: flex;
    align-items: center;
    border-radius: 999px;
    background: #eef2f7;
}

.main-panel > .token-rank-page .token-rank-day-stack {
    height: 100%;
    min-width: 3px;
    min-height: 0;
    display: flex;
    flex-direction: row;
    border-radius: inherit;
    background: transparent;
}

.main-panel > .token-rank-page .token-rank-day-segment {
    width: auto;
    height: 100%;
    min-width: 2px;
    min-height: 0;
}

.main-panel > .token-rank-page .token-rank-day-label,
.main-panel > .token-rank-page .token-rank-day strong {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 10px;
    line-height: 1;
    white-space: nowrap;
}

.main-panel > .token-rank-page .token-rank-day strong {
    overflow: hidden;
    text-align: right;
    text-overflow: ellipsis;
}

@media (max-width: 1280px) {
    .main-panel > .token-rank-page .token-rank-layout {
        grid-template-columns: minmax(0, 1fr) minmax(350px, 400px);
    }

    .main-panel > .token-rank-page .token-rank-filter-panel {
        grid-template-columns: minmax(340px, 390px) minmax(0, 1fr);
    }
}

@media (max-width: 1040px) {
    .main-panel > .token-rank-page .token-rank-layout {
        grid-template-columns: 1fr;
    }

    .main-panel > .token-rank-page .token-rank-filter-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .main-panel > .token-rank-page .token-rank-day {
        grid-template-columns: 44px minmax(0, 1fr) 52px;
    }
}

.main-panel > .token-rank-page .token-rank-daily-chart,
.token-rank-daily-chart {
    display: block;
    width: 100%;
    height: 280px;
    min-height: 280px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}

.main-panel > .token-rank-page .token-rank-daily-chart > .token-rank-empty,
.token-rank-daily-chart > .token-rank-empty {
    height: 100%;
    min-height: 0;
    border: 0;
    border-radius: inherit;
    background: transparent;
}

@media (max-width: 760px) {
    .main-panel > .token-rank-page .token-rank-daily-chart,
    .token-rank-daily-chart {
        height: 260px;
        min-height: 260px;
    }
}

.main-panel > .token-rank-page .token-rank-board-layout,
.token-rank-board-layout {
    grid-template-columns: 1fr;
}

.token-rank-personal-page {
    gap: 20px;
}

.token-rank-profile-page-panel,
.token-rank-profile-card,
.token-rank-heatmap-panel,
.token-rank-ring-panel {
    border: 1px solid #e9edf3;
    border-radius: 8px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 18px 50px rgba(72, 84, 112, .07);
}

.token-rank-profile-page-panel {
    display: grid;
    gap: 18px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.token-rank-profile-page-panel .token-rank-profile-head {
    align-items: flex-start;
}

.token-rank-profile-page-panel .token-rank-profile-head h2 {
    margin-top: 4px;
    font-size: 24px;
}

.token-rank-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.token-rank-metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.token-rank-metric-grid-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.token-rank-metric-card {
    min-width: 0;
    min-height: 108px;
    display: grid;
    align-content: center;
    gap: 6px;
    padding: 16px;
    border: 1px solid #e9edf3;
    border-radius: 8px;
    background: #fff;
}

.token-rank-metric-card span,
.token-rank-metric-card small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.token-rank-metric-card strong {
    min-width: 0;
    overflow: hidden;
    color: var(--text);
    font-size: 28px;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.token-rank-metric-card strong.token-rank-token-pair {
    display: flex;
    gap: 8px;
    align-items: baseline;
}

.token-rank-metric-card .token-rank-token-main {
    min-width: 0;
    overflow: hidden;
    color: var(--text);
    font-size: 1em;
    font-weight: inherit;
    line-height: inherit;
    text-overflow: ellipsis;
}

.token-rank-metric-card .token-rank-token-week {
    flex: 0 0 auto;
    color: #3f4654;
    font-size: .66em;
    font-weight: 650;
    line-height: 1;
    white-space: nowrap;
}

.token-rank-metric-card .token-rank-token-week em {
    font-style: normal;
}

.token-rank-today-insights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.token-rank-today-trend-card {
    min-width: 0;
    align-content: start;
}

.token-rank-token-breakdown-grid {
    min-width: 0;
    align-self: stretch;
}

.token-rank-token-breakdown-panel {
    min-width: 0;
    display: grid;
    gap: 14px;
    height: 100%;
    padding: 16px;
    border: 1px solid #e9edf3;
    border-radius: 8px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 12px 30px rgba(72, 84, 112, .045);
}

.token-rank-token-breakdown-head {
    align-items: flex-start;
}

.token-rank-token-breakdown-head > div {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.token-rank-token-breakdown-head strong {
    color: var(--text);
    font-size: 22px;
    line-height: 1;
    white-space: nowrap;
}

.token-rank-token-breakdown-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.token-rank-token-breakdown-item {
    min-width: 0;
    min-height: 72px;
    display: grid;
    align-content: center;
    gap: 6px;
    padding: 12px 14px;
    border: 1px solid #edf1f6;
    border-radius: 8px;
    background: #fff;
}

.token-rank-token-breakdown-item span,
.token-rank-composition-label span {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.25;
}

.token-rank-token-breakdown-item span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.token-rank-token-breakdown-item strong {
    overflow: hidden;
    color: var(--text);
    font-size: 26px;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.token-rank-composition {
    display: grid;
    gap: 8px;
}

.token-rank-composition-label {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.token-rank-composition-label strong {
    color: var(--text);
    font-size: 14px;
    font-weight: 850;
    white-space: nowrap;
}

.token-rank-composition-bar {
    width: 100%;
    height: 14px;
    overflow: hidden;
    border-radius: 999px;
    background: #eef2f7;
}

.token-rank-composition-bar {
    display: flex;
}

.token-rank-composition-segment {
    min-width: 0;
    height: 100%;
}

.token-rank-composition-segment + .token-rank-composition-segment {
    box-shadow: inset 1px 0 0 rgba(255, 255, 255, .72);
}

.token-rank-composition-legend {
    display: flex;
    gap: 7px 12px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.3;
}

.token-rank-composition-legend span {
    display: inline-flex;
    gap: 5px;
    align-items: center;
    white-space: nowrap;
}

.token-rank-composition-legend i {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-radius: 999px;
}

.token-rank-today-trend-head {
    align-items: flex-start;
}

.token-rank-today-trend-head > div:first-child {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.token-rank-today-trend-head > div:first-child span {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.3;
}

.token-rank-today-client-chips {
    min-width: 0;
    display: flex;
    justify-content: flex-end;
    gap: 5px;
    align-items: center;
    flex-wrap: wrap;
}

.token-rank-today-client-chips .token-rank-chip {
    min-height: 26px;
    padding: 0 9px;
    font-size: 11px;
}

.token-rank-today-trend-card .token-rank-today-client-chips:empty {
    display: none;
}

.token-rank-today-trend-chart {
    min-width: 0;
    height: 278px;
    min-height: 278px;
    overflow: hidden;
    border: 1px solid #e9edf3;
    border-radius: 8px;
    background: #fff;
}

.token-rank-today-trend-chart > .token-rank-empty {
    height: 100%;
    min-height: 0;
    border: 0;
    border-radius: inherit;
    background: transparent;
}

.token-rank-profile-card,
.token-rank-heatmap-panel,
.token-rank-ring-panel {
    display: grid;
    gap: 12px;
    padding: 16px;
}

.token-rank-personal-top {
    display: grid;
    grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
}

.token-rank-personal-side {
    min-width: 0;
    display: grid;
    gap: 16px;
}

.token-rank-ring-panel {
    min-height: 0;
    align-content: stretch;
    justify-items: stretch;
    border-color: #e8edf4;
    background: #fff;
    box-shadow: 0 24px 64px rgba(90, 95, 120, .1);
}

.token-rank-today-ring {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: grid;
    align-content: stretch;
    gap: 0;
    justify-items: stretch;
    padding: 0;
}

.token-rank-ring-card-inner {
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 12px;
}

.token-rank-ring-card-inner h3 {
    margin: 0;
    color: var(--text);
    font-size: 17px;
    font-weight: 850;
    line-height: 1.15;
}

.token-rank-ring-stage {
    min-width: 0;
    min-height: 0;
    display: grid;
    place-items: center;
    padding: 2px 0 4px;
}

.token-rank-collab-card {
    min-width: 0;
    display: grid;
    gap: 18px;
}

.token-rank-collab-head {
    min-width: 0;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.token-rank-collab-head > div {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.token-rank-collab-head span {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.25;
}

.token-rank-collab-head strong {
    overflow: hidden;
    color: var(--text);
    font-size: 24px;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.token-rank-collab-icon {
    position: relative;
    width: 44px;
    height: 44px;
    display: block;
    border: 1px solid #e8edf4;
    border-radius: 999px;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(135deg, #8fb3ff, #ffb15e, #77d76b) border-box;
    box-shadow: 0 12px 28px rgba(143, 179, 255, .18);
}

.token-rank-collab-icon::before {
    content: "";
    position: absolute;
    inset: 11px;
    border: 2px solid #111827;
    border-radius: 999px;
}

.token-rank-collab-icon::after {
    content: "";
    position: absolute;
    left: 21px;
    top: 14px;
    width: 9px;
    height: 13px;
    border-left: 2px solid #111827;
    border-bottom: 2px solid #111827;
    border-radius: 0 0 0 3px;
}

.token-rank-collab-rank {
    max-width: 64px;
    padding: 6px 9px;
    border: 1px solid #e8edf4;
    border-radius: 999px;
    background: #f8fafc;
    color: var(--text) !important;
    font-weight: 800;
    text-align: center;
}

.token-rank-collab-total {
    min-width: 0;
    display: grid;
    gap: 2px;
    justify-items: start;
}

.token-rank-collab-total strong {
    overflow: hidden;
    color: var(--text);
    font-size: 48px;
    line-height: .95;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.token-rank-collab-total span {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.token-rank-hour-chart {
    min-width: 0;
    height: auto;
    display: grid;
    grid-template-rows: auto auto auto;
    gap: 8px;
}

.token-rank-hour-bars {
    height: 112px;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(24, minmax(4px, 1fr));
    gap: 4px;
    align-items: end;
    padding: 12px 10px 10px;
    border: 1px solid #e9edf3;
    border-radius: 8px;
    background: #fff;
}

.token-rank-hour-bar {
    height: var(--h);
    min-height: 4px;
    display: flex;
    flex-direction: column-reverse;
    overflow: hidden;
    border-radius: 999px 999px 3px 3px;
    background: #eef1f5;
    transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}

.token-rank-hour-bar.level-1 { background: #b8efc2; }
.token-rank-hour-bar.level-2 { background: #69d47a; }
.token-rank-hour-bar.level-3 { background: #35a853; }
.token-rank-hour-bar.level-4 { background: #216e39; }

.token-rank-hour-bar.has-segments {
    background: #eef1f5;
}

.token-rank-hour-segment {
    flex: 0 0 var(--segment-h);
    min-height: 1px;
    background: var(--segment-color);
}

.token-rank-hour-bar.peak {
    box-shadow:
        0 0 0 2px rgba(34, 197, 94, .14),
        0 8px 16px rgba(34, 197, 94, .12);
}

.token-rank-hour-bar:hover,
.token-rank-hour-bar:focus-visible {
    transform: translateY(-3px);
    outline: none;
}

.token-rank-hour-axis {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 10px;
    line-height: 1;
}

.token-rank-hour-legend.token-rank-heatmap-footer {
    justify-content: center;
    gap: 6px;
    margin-top: 0;
    font-size: 11px;
}

.token-rank-hour-legend-items {
    display: inline-flex;
    justify-content: center;
    gap: 6px 10px;
    align-items: center;
    flex-wrap: wrap;
}

.token-rank-hour-legend-item {
    display: inline-flex;
    gap: 5px;
    align-items: center;
    white-space: nowrap;
}

.token-rank-hour-legend-item i {
    width: 12px;
    height: 12px;
    display: block;
    border-radius: 4px;
}

.token-rank-ring-visual {
    position: relative;
    width: min(276px, 100%);
    aspect-ratio: 1;
}

.token-rank-ring-visual svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
}

.token-rank-ring-track,
.token-rank-ring-progress {
    fill: none;
    stroke-linecap: round;
}

.token-rank-ring-track {
    stroke: rgba(232, 236, 244, .96);
}

.token-rank-ring-progress {
    filter: drop-shadow(0 10px 16px rgba(143, 179, 255, .22));
    transition: opacity .16s ease, filter .16s ease, stroke-dashoffset .45s ease;
}

.token-rank-ring-visual:hover .token-rank-ring-progress {
    opacity: .9;
    filter: drop-shadow(0 12px 20px rgba(255, 177, 94, .24));
}

.token-rank-ring-visual .token-rank-ring-progress:hover,
.token-rank-ring-visual .token-rank-ring-progress:focus-visible {
    opacity: 1;
    outline: none;
}

.token-rank-ring-center {
    position: absolute;
    inset: 50% auto auto 50%;
    width: min(178px, 64%);
    aspect-ratio: 1;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 5px;
    padding: 16px;
    border: 1px solid rgba(232, 237, 244, .92);
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    box-shadow:
        0 18px 40px rgba(90, 95, 120, .11),
        inset 0 1px 0 rgba(255, 255, 255, .9);
    text-align: center;
    transform: translate(-50%, -50%);
}

.token-rank-ring-center strong {
    min-width: 0;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 2px;
    overflow: visible;
    color: var(--text);
    font-size: var(--token-rank-ring-size, 34px);
    line-height: .95;
    text-overflow: clip;
    white-space: nowrap;
}

.token-rank-ring-center small {
    color: var(--text);
    font-size: .48em;
    font-weight: 800;
    line-height: 1;
}

.token-rank-ring-center em {
    color: #69758a;
    font-size: 15px;
    font-weight: 700;
    font-style: normal;
    line-height: 1.2;
}

.token-rank-ring-rank {
    margin-top: 2px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #111827;
    font-size: 15px;
    font-style: normal;
    font-weight: 800;
    line-height: 1.1;
}

.token-rank-ring-total-rank {
    display: block;
    margin-top: 8px;
    color: #111827;
    font-size: 22px;
    font-style: normal;
    font-weight: 900;
    line-height: 1;
}

.token-rank-ring-center .token-rank-ring-total-rank {
    display: block;
    margin-top: 8px;
    color: #111827;
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
}

.token-rank-ring-multiplier {
    position: absolute;
    right: 18px;
    bottom: 28px;
    min-width: 52px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 2px solid rgba(255, 255, 255, .96);
    border-radius: 999px;
    background: #111827;
    color: #fff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, .22);
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
}

.token-rank-personal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.token-rank-personal-grid > .token-rank-profile-card {
    align-self: stretch;
    align-content: start;
    grid-auto-rows: max-content;
}

.token-rank-personal-grid .token-rank-mini-list {
    align-content: start;
    grid-auto-rows: max-content;
}

.token-rank-heatmap-content {
    min-width: 0;
    display: contents;
}

.token-rank-heatmap-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto minmax(0, 1fr);
    column-gap: 0;
    row-gap: 12px;
    align-items: stretch;
}

.token-rank-heatmap-panel > .token-rank-section-head {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    padding-right: 20px;
}

.token-rank-heatmap-panel > .token-rank-section-head span {
    display: none;
}

.token-rank-heatmap {
    container-type: inline-size;
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 8px;
    padding-right: 20px;
}

.token-rank-hour-frequency {
    grid-column: 2;
    grid-row: 1 / span 2;
    min-width: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    align-content: stretch;
    gap: 10px;
    padding-left: 20px;
    border-left: 1px solid #eef1f6;
}

.token-rank-hour-frequency .token-rank-hour-chart {
    align-self: end;
    margin-top: 8px;
}

.token-rank-hour-frequency-head {
    min-width: 0;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: baseline;
}

.token-rank-hour-frequency-head span {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.25;
}

.token-rank-hour-frequency-head h4 {
    margin: 0;
    overflow: hidden;
    color: var(--text);
    font-size: 16px;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.token-rank-hour-frequency .token-rank-hour-bars {
    height: calc((clamp(8px, 1.8vw, 16px) * 7) + 18px);
    min-height: 130px;
    padding: 12px 10px 10px;
}

.token-rank-heatmap-content .token-rank-heatmap-footer {
    justify-content: center;
    gap: 12px;
    font-size: 11px;
}

.token-rank-heatmap-wrap {
    --heatmap-cell-height: clamp(18px, 2.4vw, 24px);
    --heatmap-cell-width: var(--heatmap-cell-height);
    --heatmap-gap: 3px;
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    justify-content: center;
}

.token-rank-heatmap-weekdays {
    display: grid;
    grid-template-rows: repeat(7, var(--heatmap-cell-height));
    gap: var(--heatmap-gap);
    padding-top: 24px;
    color: var(--muted);
    font-size: 10px;
    line-height: var(--heatmap-cell-height);
    text-align: right;
}

.token-rank-heatmap-scroll {
    min-width: 0;
    display: grid;
    justify-content: center;
    margin-inline: -4px;
    overflow-x: auto;
    overflow-y: visible;
    padding: 0 4px 4px;
}

.token-rank-heatmap-grid {
    width: max-content;
    min-width: 0;
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: repeat(var(--heatmap-weeks, 5), var(--heatmap-cell-width));
    grid-template-rows: repeat(7, var(--heatmap-cell-height));
    gap: var(--heatmap-gap);
}

.token-rank-heatmap-months {
    width: max-content;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(var(--heatmap-weeks, 5), var(--heatmap-cell-width));
    gap: var(--heatmap-gap);
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
    line-height: 16px;
}

.token-rank-heatmap-months span {
    min-width: 0;
    overflow: visible;
    white-space: nowrap;
}

.token-rank-heatmap-calendar {
    --heatmap-cell-height: clamp(18px, 8cqw, 24px);
    --heatmap-gap: clamp(3px, 1.1cqw, 5px);
    --heatmap-month-width: clamp(22px, 8cqw, 28px);
    --heatmap-label-gap: clamp(4px, 1.6cqw, 8px);
    --heatmap-cell-width: clamp(
        22px,
        calc((100cqw - var(--heatmap-month-width) - var(--heatmap-label-gap) - (var(--heatmap-gap) * 6)) / 7),
        42px
    );
    max-width: 100%;
    grid-template-columns: minmax(0, max-content);
}

.token-rank-heatmap-calendar .token-rank-heatmap-scroll {
    grid-template-columns: var(--heatmap-month-width) max-content;
    column-gap: var(--heatmap-label-gap);
    max-width: 100%;
    margin-inline: 0;
    overflow: visible;
    padding: 0;
}

.token-rank-heatmap-weekdays-row {
    grid-column: 2;
    grid-template-columns: repeat(7, var(--heatmap-cell-width));
    grid-template-rows: none;
    gap: var(--heatmap-gap);
    margin-bottom: 6px;
    padding-top: 0;
    font-size: 12px;
    line-height: 16px;
    text-align: center;
}

.token-rank-heatmap-months-column {
    grid-column: 1;
    grid-row: 2;
    width: var(--heatmap-month-width);
    grid-template-columns: none;
    grid-template-rows: repeat(var(--heatmap-weeks, 5), var(--heatmap-cell-height));
    gap: var(--heatmap-gap);
    align-items: center;
    margin: 0;
    font-size: 12px;
    line-height: var(--heatmap-cell-height);
    text-align: right;
}

.token-rank-heatmap-months-column span {
    height: var(--heatmap-cell-height);
}

.token-rank-heatmap-calendar-grid {
    grid-column: 2;
    grid-row: 2;
    grid-auto-flow: row;
    grid-template-columns: repeat(7, var(--heatmap-cell-width));
    grid-template-rows: none;
    grid-auto-rows: var(--heatmap-cell-height);
}

.token-rank-heat-cell,
.token-rank-heatmap-legend i {
    width: 12px;
    height: 12px;
    display: block;
    border-radius: 4px;
    background: #eef1f5;
}

.token-rank-heat-cell {
    width: 100%;
    height: var(--heatmap-cell-height);
    cursor: default;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .46);
    transition: box-shadow .14s ease, outline-color .14s ease, transform .14s ease;
}

.token-rank-heat-cell.blank {
    visibility: hidden;
}

.token-rank-heat-cell.level-0,
.token-rank-heatmap-legend .level-0 { background: #eef1f5; }
.token-rank-heat-cell.level-1,
.token-rank-heatmap-legend .level-1 { background: #b8efc2; }
.token-rank-heat-cell.level-2,
.token-rank-heatmap-legend .level-2 { background: #69d47a; }
.token-rank-heat-cell.level-3,
.token-rank-heatmap-legend .level-3 { background: #35a853; }
.token-rank-heat-cell.level-4,
.token-rank-heatmap-legend .level-4 { background: #216e39; }

.token-rank-heat-cell.today {
    outline: 2px solid rgba(15, 23, 42, .78);
    outline-offset: 2px;
}

.token-rank-heat-cell:hover,
.token-rank-heat-cell:focus-visible {
    position: relative;
    z-index: 1;
    outline: 2px solid rgba(62, 75, 111, .72);
    outline-offset: 1px;
    box-shadow: 0 6px 15px rgba(85, 95, 125, .16);
    transform: translateY(-1px);
}

.token-rank-heat-tooltip {
    position: fixed;
    z-index: 10000;
    min-width: 128px;
    max-width: min(220px, calc(100vw - 20px));
    padding: 9px 10px;
    border: 1px solid rgba(15, 23, 42, .1);
    border-radius: 8px;
    background: rgba(17, 24, 39, .96);
    box-shadow: 0 14px 34px rgba(15, 23, 42, .22);
    color: #fff;
    opacity: 0;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity .12s ease, transform .12s ease;
}

.token-rank-heat-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}

.token-rank-heat-tooltip strong,
.token-rank-heat-tooltip span {
    display: block;
    line-height: 1.25;
    white-space: nowrap;
}

.token-rank-heat-tooltip strong {
    font-size: 13px;
    font-weight: 800;
}

.token-rank-heat-tooltip span {
    margin-top: 3px;
    color: rgba(255, 255, 255, .68);
    font-size: 11px;
}

.token-rank-heatmap-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-top: 10px;
    color: var(--muted);
    font-size: 12px;
}

.token-rank-heatmap-legend {
    display: inline-flex;
    gap: 5px;
    align-items: center;
    white-space: nowrap;
}

@media (max-width: 980px) {
    .token-rank-metric-grid,
    .token-rank-today-insights,
    .token-rank-personal-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .token-rank-personal-top {
        grid-template-columns: 1fr;
    }

    .token-rank-ring-panel {
        min-height: 0;
    }
}

@media (max-width: 620px) {
    .token-rank-metric-grid,
    .token-rank-today-insights,
    .token-rank-personal-grid {
        grid-template-columns: 1fr;
    }

    .token-rank-token-breakdown-grid {
        grid-template-columns: 1fr;
    }

    .token-rank-token-breakdown-metrics {
        grid-template-columns: 1fr;
    }

    .token-rank-today-trend-head {
        display: grid;
        align-items: start;
    }

    .token-rank-today-client-chips {
        justify-content: flex-start;
    }

    .token-rank-heatmap-panel {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .token-rank-heatmap-panel > .token-rank-section-head,
    .token-rank-heatmap,
    .token-rank-hour-frequency {
        grid-column: 1;
        grid-row: auto;
    }

    .token-rank-heatmap-panel > .token-rank-section-head,
    .token-rank-heatmap {
        padding-right: 0;
    }

    .token-rank-hour-frequency {
        padding: 16px 0 0;
        border-top: 1px solid #edf1f6;
        border-left: 0;
    }

    .token-rank-metric-card {
        min-height: 92px;
    }

    .token-rank-heatmap-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

