.panel-index-main {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    width: 100%;
    padding-top: 0;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.12);
}

@media (min-width: 1000px) {
    .panel-index-main {
        margin-left: 260px;
        width: calc(100% - 260px);
    }
}

.panel-index-sections {
    position: relative;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    /* Reserve gutter so scrollbar appearance does not shift content width when section height changes. */
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 92, 246, 0.85) rgba(0, 0, 0, 0.4);
}

body.rig-mgmt-page--terminal .panel-index-sections {
    overflow: hidden;
}

.panel-index-sections::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
.panel-index-sections::-webkit-scrollbar-button,
.panel-index-sections::-webkit-scrollbar-button:vertical:start,
.panel-index-sections::-webkit-scrollbar-button:vertical:end,
.panel-index-sections::-webkit-scrollbar-button:horizontal:start,
.panel-index-sections::-webkit-scrollbar-button:horizontal:end {
    display: block;
    width: 0;
    height: 0;
    min-width: 0;
    min-height: 0;
}
.panel-index-sections::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 5px;
}
.panel-index-sections::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.85);
    border-radius: 5px;
    min-height: 40px;
    transition: background 0.2s ease;
}
.panel-index-sections::-webkit-scrollbar-thumb:hover {
    background: rgba(167, 139, 250, 0.95);
}
.panel-index-sections::-webkit-scrollbar-thumb:active {
    background: rgba(196, 181, 253, 1);
}
.panel-index-sections::-webkit-scrollbar-track:hover {
    background: rgba(0, 0, 0, 0.5);
}

@media (min-width: 1000px) {
    .panel-index-sections {
        height: 100%;
    }
}

/* All links in panel index without underline */
.panel-index a {
    text-decoration: none;
}

.panel-index-section {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    /* No opacity transition: layout (position/height) toggles instantly; animating opacity alone caused a one-frame mismatch / jerk. */
    height: 0;
    overflow: hidden;
}

.panel-index-section.is-active {
    position: relative;
    min-height: 100%;
    padding-top: 56px;
    padding-bottom: 0px;
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
    height: auto;
    overflow: visible;
    /* Backdrop blur on the whole section promoted layers and caused visible flicker on section switch; content blocks keep their own styling. */
}

.panel-index-section.is-active.panel-index-section--rig-mgmt-terminal {
    overflow: hidden;
    height: 100%;
    min-height: 0;
    padding-top: 0;
    padding-bottom: 0;
}

@media (min-width: 1000px) {
    .panel-index-section.is-active {
        padding-top: 0;
        padding-bottom: 0;
    }
}

.panel-index-section:not(.is-active) {
    position: absolute;
    inset: 0;
    height: 0;
    overflow: hidden;
}

.panel-wallet-inner {
    padding: 24px 20px 34px;
    box-sizing: border-box;
}

.panel-wallet-balance-wrap {
    max-width: 320px;
    margin-bottom: 24px;
}

.panel-wallet-balance-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    font-family: neue-haas-grot-text-roman, sans-serif;
    margin-bottom: 6px;
}

.panel-wallet-balance-value {
    font-size: 22px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.98);
    font-family: pp-neue-machina-plain-regular, sans-serif;
}