


.hstdr-section-rail {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 92;
    display: none;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    user-select: none;
}

@media (min-width: 1025px) {
    .hstdr-section-rail {
        display: flex;
    }
}

.hstdr-rail-capsule {
    pointer-events: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 6px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 14px 34px -4px rgba(15, 23, 42, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

html.hstdr-dark .hstdr-rail-capsule {
    background: rgba(15, 23, 42, 0.88);
    border-color: rgba(51, 65, 85, 0.7);
    box-shadow: 0 14px 34px -4px rgba(0, 0, 0, 0.5), 0 0 24px rgba(37, 99, 235, 0.12);
}


.hstdr-rail-track {
    position: absolute;
    top: 24px;
    bottom: 54px;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background: rgba(226, 232, 240, 0.8);
    z-index: 1;
    pointer-events: none;
}

html.hstdr-dark .hstdr-rail-track {
    background: rgba(51, 65, 85, 0.6);
}


.hstdr-rail-btn {
    position: relative;
    z-index: 2;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 2px solid transparent;
    color: #64748b;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
}

html.hstdr-dark .hstdr-rail-btn {
    color: #94a3b8;
}

.hstdr-rail-btn:hover {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.08);
    transform: scale(1.1);
}

html.hstdr-dark .hstdr-rail-btn:hover {
    color: #60a5fa;
    background: rgba(59, 130, 246, 0.15);
}


.hstdr-rail-btn.active {
    color: #ffffff;
    background: #2563eb;
    border-color: #93c5fd;
    box-shadow: 0 0 14px rgba(37, 99, 235, 0.55), 0 2px 6px rgba(0, 0, 0, 0.15);
    transform: scale(1.12);
}

html.hstdr-dark .hstdr-rail-btn.active {
    color: #ffffff;
    background: #2563eb;
    border-color: #60a5fa;
    box-shadow: 0 0 18px rgba(59, 130, 246, 0.65), 0 2px 8px rgba(0, 0, 0, 0.4);
}


.hstdr-rail-tooltip {
    position: absolute;
    right: calc(100% + 14px);
    top: 50%;
    transform: translateY(-50%) translateX(8px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 23, 42, 0.95);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 24px -2px rgba(0, 0, 0, 0.25);
    z-index: 10;
}

html.hstdr-dark .hstdr-rail-tooltip {
    background: rgba(30, 41, 59, 0.95);
    color: #f8fafc;
    border-color: rgba(71, 85, 105, 0.6);
}

.hstdr-rail-tooltip-step {
    font-family: monospace;
    font-size: 11px;
    color: #60a5fa;
    font-weight: 800;
}

.hstdr-rail-tooltip::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 5px solid rgba(15, 23, 42, 0.95);
}

html.hstdr-dark .hstdr-rail-tooltip::after {
    border-left-color: rgba(30, 41, 59, 0.95);
}

.hstdr-rail-btn:hover .hstdr-rail-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}


.hstdr-rail-divider {
    width: 20px;
    height: 1px;
    background: rgba(226, 232, 240, 0.8);
    margin: 4px 0;
}

html.hstdr-dark .hstdr-rail-divider {
    background: rgba(51, 65, 85, 0.6);
}

.hstdr-rail-top-btn {
    width: 32px;
    height: 32px;
    font-size: 11px;
    border-radius: 50%;
    color: #94a3b8;
    background: rgba(241, 245, 249, 0.6);
}

html.hstdr-dark .hstdr-rail-top-btn {
    background: rgba(30, 41, 59, 0.6);
    color: #cbd5e1;
}

.hstdr-rail-top-btn:hover {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.1);
}

html.hstdr-dark .hstdr-rail-top-btn:hover {
    color: #60a5fa;
}



.hstdr-mobile-rail {
    position: fixed;
    right: 16px;
    bottom: 20px;
    z-index: 92;
    display: none;
}

@media (max-width: 1024px) {
    .hstdr-mobile-rail {
        display: block;
    }
}

@media (min-width: 1025px) {
    .hstdr-mobile-rail,
    .hstdr-rail-drawer-backdrop,
    .hstdr-rail-drawer-panel {
        display: none !important;
    }
}

.hstdr-mobile-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 10px 25px -3px rgba(15, 23, 42, 0.15), 0 4px 10px rgba(0, 0, 0, 0.05);
    color: #0f172a;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.25s ease;
    outline: none;
}

html.hstdr-dark .hstdr-mobile-pill-btn {
    background: rgba(15, 23, 42, 0.92);
    border-color: rgba(51, 65, 85, 0.7);
    color: #f8fafc;
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.5), 0 0 20px rgba(37, 99, 235, 0.2);
}

.hstdr-mobile-pill-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -3px rgba(37, 99, 235, 0.25);
}

.hstdr-mobile-pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2563eb;
    box-shadow: 0 0 8px #2563eb;
    animation: hstdrPulse 2s infinite;
}

@keyframes hstdrPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hstdr-mobile-pill-counter {
    font-family: monospace;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
}

html.hstdr-dark .hstdr-mobile-pill-counter {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}


.hstdr-rail-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.hstdr-rail-drawer-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.hstdr-rail-drawer-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 80vh;
    background: #ffffff;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
    z-index: 100;
    transform: translateY(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

html.hstdr-dark .hstdr-rail-drawer-panel {
    background: #0f172a;
    border-top: 1px solid rgba(51, 65, 85, 0.8);
}

.hstdr-rail-drawer-panel.open {
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
}

.hstdr-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 14px;
    border-bottom: 1px solid #f1f5f9;
}

html.hstdr-dark .hstdr-drawer-header {
    border-color: #1e293b;
}

.hstdr-drawer-title {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

html.hstdr-dark .hstdr-drawer-title {
    color: #ffffff;
}

.hstdr-drawer-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #64748b;
    border: none;
    cursor: pointer;
}

html.hstdr-dark .hstdr-drawer-close {
    background: #1e293b;
    color: #94a3b8;
}

.hstdr-drawer-list {
    padding: 12px 16px 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hstdr-drawer-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid transparent;
    color: #334155;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
}

html.hstdr-dark .hstdr-drawer-item {
    background: #1e293b;
    color: #cbd5e1;
}

.hstdr-drawer-item:hover,
.hstdr-drawer-item.active {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #2563eb;
}

html.hstdr-dark .hstdr-drawer-item:hover,
html.hstdr-dark .hstdr-drawer-item.active {
    background: rgba(37, 99, 235, 0.15);
    border-color: #3b82f6;
    color: #60a5fa;
}

.hstdr-drawer-item-num {
    font-family: monospace;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.05);
}

html.hstdr-dark .hstdr-drawer-item-num {
    background: rgba(255, 255, 255, 0.06);
}

.hstdr-drawer-item-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    font-size: 13px;
    flex-shrink: 0;
}

html.hstdr-dark .hstdr-drawer-item-icon {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}
