:root {
    --st-base-width: 1912;
    --st-min-scale: 0.45;
    --st-max-scale: 1.15;
    --st-px: clamp(calc(100vw / var(--st-base-width) * var(--st-min-scale)), calc(100vw / var(--st-base-width)), calc(100vw / var(--st-base-width) * var(--st-max-scale)));
}

.github-stats-panel {
    position: fixed;
    right: calc(260 * var(--st-px));
    top: calc(88 * var(--st-px));
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: calc(8 * var(--st-px));
    background: var(--white);
    border: max(1px, calc(1 * var(--st-px))) solid var(--border);
    border-radius: calc(10 * var(--st-px));
    padding: calc(8 * var(--st-px)) calc(14 * var(--st-px));
    box-shadow: 0 calc(4 * var(--st-px)) calc(16 * var(--st-px)) rgba(0,0,0,.25);
    cursor: pointer;
    user-select: none;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: calc(180 * var(--st-px));
    max-width: calc(320 * var(--st-px));
}

.github-stats-panel:hover {
    transform: translateY(calc(-2 * var(--st-px))) scale(1.005);
    box-shadow: 0 calc(10 * var(--st-px)) calc(24 * var(--st-px)) rgba(0,0,0,.32);
    border-color: var(--blue);
}

.github-stats-panel:active {
    transform: translateY(calc(0 * var(--st-px))) scale(0.995);
    transition: all 0.1s ease;
}

.st-icon {
    width: calc(22 * var(--st-px));
    height: calc(22 * var(--st-px));
    fill: var(--blue);
    flex-shrink: 0;
    padding: calc(2 * var(--st-px));
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), filter 0.25s ease;
}

.github-stats-panel:hover .st-icon {
    transform: scale(1.08) rotate(-4deg);
    filter: drop-shadow(0 0 calc(6 * var(--st-px)) rgba(59, 130, 246, 0.35));
}

.st-info {
    display: flex;
    flex-direction: column;
    gap: calc(2 * var(--st-px));
    flex: 1;
    min-width: 0;
}

.st-title-row {
    display: flex;
    align-items: center;
    gap: calc(6 * var(--st-px));
}

.st-title {
    font-size: calc(12 * var(--st-px));
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    transition: color 0.2s ease;
    flex: 1;
    min-width: 0;
}

.github-stats-panel:hover .st-title {
    color: var(--blue);
}

.st-mode-switch {
    width: calc(20 * var(--st-px));
    height: calc(20 * var(--st-px));
    border-radius: 50%;
    background: var(--bg);
    border: max(1px, calc(1 * var(--st-px))) solid var(--border);
    color: var(--text2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

.st-mode-switch::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(34, 197, 94, 0.2), transparent 70%);
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s ease;
}

.st-mode-switch:hover::before {
    opacity: 1;
    transform: scale(1);
}

.st-mode-switch:hover {
    background: #22c55e;
    border-color: #22c55e;
    color: #fff;
    box-shadow: 0 calc(3 * var(--st-px)) calc(8 * var(--st-px)) rgba(34, 197, 94, 0.45);
}

.st-mode-switch:active {
    transform: scale(0.88);
    transition: transform 0.1s ease;
}

.st-mode-switch svg {
    width: calc(11 * var(--st-px));
    height: calc(11 * var(--st-px));
    fill: currentColor;
    position: relative;
    z-index: 1;
}

.st-main {
    display: flex;
    align-items: center;
    gap: calc(10 * var(--st-px));
}

.st-stat {
    display: flex;
    align-items: baseline;
    gap: calc(3 * var(--st-px));
    white-space: nowrap;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.github-stats-panel:hover .st-stat {
    transform: translateX(calc(1 * var(--st-px)));
}

.st-stat-label {
    font-size: calc(10 * var(--st-px));
    color: var(--text2);
    transition: color 0.2s ease;
}

.github-stats-panel:hover .st-stat-label {
    color: var(--text);
}

.st-stat-val {
    font-size: calc(13 * var(--st-px));
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--text);
    transition: color 0.25s ease, transform 0.25s ease;
}

.github-stats-panel:hover .st-stat-val {
    color: #2563eb;
    transform: scale(1.03);
    transform-origin: left center;
}

.st-refresh-btn {
    width: calc(22 * var(--st-px));
    height: calc(22 * var(--st-px));
    border-radius: 50%;
    background: var(--bg);
    border: max(1px, calc(1 * var(--st-px))) solid var(--border);
    color: var(--text2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

.st-refresh-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.25), transparent 70%);
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s ease;
}

.st-refresh-btn:hover::before {
    opacity: 1;
    transform: scale(1);
}

.st-refresh-btn:hover {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
    box-shadow: 0 calc(3 * var(--st-px)) calc(8 * var(--st-px)) rgba(59, 130, 246, 0.45);
}

.st-refresh-btn:active {
    transform: scale(0.88);
    transition: transform 0.1s ease;
}

.st-refresh-btn svg {
    width: calc(12 * var(--st-px));
    height: calc(12 * var(--st-px));
    fill: currentColor;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 1;
}

.github-stats-panel.expanded .st-refresh-btn svg {
    transform: rotate(180deg);
}

.github-stats-panel.expanded:hover .st-refresh-btn svg {
    transform: rotate(180deg) scale(1.1);
}

.st-detail-popover {
    position: absolute;
    top: calc(100% + 8 * var(--st-px));
    right: 0;
    min-width: calc(340 * var(--st-px));
    width: calc(360 * var(--st-px));
    background: var(--white);
    border: max(1px, calc(1 * var(--st-px))) solid var(--border);
    border-radius: calc(12 * var(--st-px));
    padding: calc(14 * var(--st-px));
    box-shadow: 0 calc(14 * var(--st-px)) calc(36 * var(--st-px)) rgba(0,0,0,.38);
    z-index: 1002;
    opacity: 0;
    transform: translateY(calc(-8 * var(--st-px))) scale(0.96);
    pointer-events: none;
    transition: opacity 0.26s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: top right;
    overflow: hidden;
}

.st-detail-popover::before {
    content: '';
    position: absolute;
    top: calc(-5 * var(--st-px));
    right: calc(44 * var(--st-px));
    width: calc(10 * var(--st-px));
    height: calc(10 * var(--st-px));
    background: var(--white);
    border-left: max(1px, calc(1 * var(--st-px))) solid var(--border);
    border-top: max(1px, calc(1 * var(--st-px))) solid var(--border);
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.2s ease 0.05s;
}

.st-detail-popover.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.st-detail-popover.visible::before {
    opacity: 1;
}

.st-detail-popover > * {
    transition: opacity 0.25s ease, transform 0.25s ease;
    transition-delay: 0.02s;
}

.st-pop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: calc(12 * var(--st-px));
    padding-bottom: calc(10 * var(--st-px));
    border-bottom: max(1px, calc(1 * var(--st-px))) solid var(--border);
}

.st-detail-popover:not(.visible) .st-pop-header {
    opacity: 0;
    transform: translateY(calc(-4 * var(--st-px)));
}

.st-detail-popover.visible .st-pop-header {
    transition-delay: 0.04s;
}

.st-pop-title {
    display: flex;
    align-items: center;
    gap: calc(6 * var(--st-px));
    font-size: calc(13 * var(--st-px));
    font-weight: 700;
    color: var(--text);
}

.st-pop-title svg {
    width: calc(16 * var(--st-px));
    height: calc(16 * var(--st-px));
    fill: var(--blue);
    animation: st-icon-bounce 2.5s ease-in-out infinite;
}

@keyframes st-icon-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(calc(-1 * var(--st-px))); }
}

.st-mode-header {
    display: flex;
    gap: calc(6 * var(--st-px));
    margin-bottom: calc(12 * var(--st-px));
    padding: calc(4 * var(--st-px));
    background: var(--bg);
    border-radius: calc(8 * var(--st-px));
}

.st-detail-popover:not(.visible) .st-mode-header {
    opacity: 0;
    transform: translateY(calc(-4 * var(--st-px)));
}

.st-detail-popover.visible .st-mode-header {
    transition-delay: 0.06s;
}

.st-mode-tab {
    flex: 1;
    padding: calc(7 * var(--st-px)) calc(10 * var(--st-px));
    font-size: calc(11 * var(--st-px));
    font-weight: 600;
    background: transparent;
    border: none;
    border-radius: calc(6 * var(--st-px));
    color: var(--text2);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: calc(4 * var(--st-px));
    position: relative;
}

.st-mode-tab:hover {
    color: var(--text);
    background: rgba(59, 130, 246, 0.06);
}

.st-mode-tab.active {
    background: var(--white);
    color: var(--blue);
    box-shadow: 0 calc(2 * var(--st-px)) calc(6 * var(--st-px)) rgba(0,0,0,.08), 0 calc(1 * var(--st-px)) calc(2 * var(--st-px)) rgba(0,0,0,.04);
}

.st-mode-tab.active::before {
    content: '';
    position: absolute;
    bottom: calc(-2 * var(--st-px));
    left: 50%;
    transform: translateX(-50%);
    width: calc(20 * var(--st-px));
    height: calc(3 * var(--st-px));
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    border-radius: calc(2 * var(--st-px));
}

.st-loading-dot {
    width: calc(8 * var(--st-px));
    height: calc(8 * var(--st-px));
    border-radius: 50%;
    background: var(--blue);
    position: relative;
    animation: st-dot-pulse 1.2s ease-in-out infinite;
}

@keyframes st-dot-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.4);
        opacity: 0.6;
    }
}

.st-pop-time {
    font-size: calc(11 * var(--st-px));
    color: var(--text3);
    font-variant-numeric: tabular-nums;
    padding: calc(2 * var(--st-px)) calc(6 * var(--st-px));
    background: var(--bg);
    border-radius: calc(4 * var(--st-px));
}

.st-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: calc(8 * var(--st-px));
    margin-bottom: calc(10 * var(--st-px));
}

.st-detail-popover:not(.visible) .st-grid {
    opacity: 0;
    transform: translateY(calc(-4 * var(--st-px)));
}

.st-detail-popover.visible .st-grid {
    transition-delay: 0.08s;
}

.st-card {
    background: var(--bg);
    border-radius: calc(10 * var(--st-px));
    padding: calc(10 * var(--st-px));
    display: flex;
    flex-direction: column;
    gap: calc(3 * var(--st-px));
    border: max(1px, calc(1 * var(--st-px))) solid transparent;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.st-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.06), transparent 60%);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.st-card:hover {
    border-color: var(--blue);
    transform: translateY(calc(-2 * var(--st-px)));
    box-shadow: 0 calc(6 * var(--st-px)) calc(14 * var(--st-px)) rgba(0,0,0,.12);
}

.st-card:hover::after {
    opacity: 1;
}

.st-card-label {
    font-size: calc(10 * var(--st-px));
    color: var(--text2);
    font-weight: 500;
    transition: color 0.2s ease;
}

.st-card:hover .st-card-label {
    color: var(--text);
}

.st-card-val {
    font-size: calc(15 * var(--st-px));
    font-weight: 700;
    color: var(--text);
    font-variant-numeric: tabular-nums;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.st-card:hover .st-card-val {
    transform: scale(1.05);
    transform-origin: left center;
}

.st-card-sub {
    font-size: calc(9 * var(--st-px));
    color: var(--text3);
    transition: color 0.2s ease;
}

.st-card:hover .st-card-sub {
    color: var(--text2);
}

.st-card.success .st-card-val { color: #22c55e; }
.st-card.warn .st-card-val { color: #eab308; }
.st-card.error .st-card-val { color: #ef4444; }

.st-card.success:hover .st-card-val {
    text-shadow: 0 0 calc(8 * var(--st-px)) rgba(34, 197, 94, 0.3);
}
.st-card.warn:hover .st-card-val {
    text-shadow: 0 0 calc(8 * var(--st-px)) rgba(234, 179, 8, 0.3);
}
.st-card.error:hover .st-card-val {
    text-shadow: 0 0 calc(8 * var(--st-px)) rgba(239, 68, 68, 0.3);
}

.st-divider {
    height: max(1px, calc(1 * var(--st-px)));
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin: calc(10 * var(--st-px)) 0;
}

.st-detail-popover:not(.visible) .st-divider {
    opacity: 0;
    transform: scaleX(0.8);
}

.st-detail-popover.visible .st-divider {
    transition-delay: 0.12s;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.st-section-title {
    font-size: calc(10 * var(--st-px));
    font-weight: 600;
    color: var(--text2);
    margin: 0 0 calc(6 * var(--st-px));
    text-transform: uppercase;
    letter-spacing: calc(0.6 * var(--st-px));
    display: flex;
    align-items: center;
    gap: calc(6 * var(--st-px));
}

.st-section-title::before {
    content: '';
    display: inline-block;
    width: calc(3 * var(--st-px));
    height: calc(12 * var(--st-px));
    background: linear-gradient(180deg, #3b82f6, #60a5fa);
    border-radius: calc(2 * var(--st-px));
}

.st-detail-popover:not(.visible) .st-section-title {
    opacity: 0;
    transform: translateX(calc(-6 * var(--st-px)));
}

.st-detail-popover.visible .st-section-title {
    transition: opacity 0.25s ease 0.14s, transform 0.25s ease 0.14s;
}

.st-type-bars {
    display: flex;
    flex-direction: column;
    gap: calc(6 * var(--st-px));
}

.st-detail-popover:not(.visible) .st-type-bars {
    opacity: 0;
}

.st-detail-popover.visible .st-type-bars {
    transition: opacity 0.25s ease 0.16s;
}

.st-type-bar {
    display: flex;
    align-items: center;
    gap: calc(6 * var(--st-px));
    transition: transform 0.2s ease;
}

.st-type-bar:hover {
    transform: translateX(calc(2 * var(--st-px)));
}

.st-type-name {
    width: calc(56 * var(--st-px));
    font-size: calc(10 * var(--st-px));
    color: var(--text2);
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.st-type-bar:hover .st-type-name {
    color: var(--text);
    font-weight: 600;
}

.st-type-track {
    flex: 1;
    height: calc(6 * var(--st-px));
    background: var(--bg);
    border-radius: calc(3 * var(--st-px));
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 calc(1 * var(--st-px)) calc(2 * var(--st-px)) rgba(0,0,0,.06);
}

.st-type-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #60a5fa, #93c5fd);
    border-radius: calc(3 * var(--st-px));
    transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    box-shadow: 0 0 calc(6 * var(--st-px)) rgba(59, 130, 246, 0.4);
}

.st-type-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
    transform: translateX(-100%);
    animation: st-shine 2.5s ease-in-out infinite;
}

@keyframes st-shine {
    0%, 70% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

.st-type-count {
    width: calc(32 * var(--st-px));
    font-size: calc(10 * var(--st-px));
    color: var(--text);
    font-weight: 600;
    text-align: right;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
    transition: color 0.2s ease;
}

.st-type-bar:hover .st-type-count {
    color: var(--blue);
    transform: scale(1.05);
}

.st-history {
    display: flex;
    flex-direction: column;
    gap: calc(5 * var(--st-px));
    max-height: calc(120 * var(--st-px));
    overflow-y: auto;
    padding: calc(2 * var(--st-px));
    margin: calc(-2 * var(--st-px));
}

.st-detail-popover:not(.visible) .st-history {
    opacity: 0;
    transform: translateY(calc(4 * var(--st-px)));
}

.st-detail-popover.visible .st-history {
    transition: opacity 0.25s ease 0.18s, transform 0.25s ease 0.18s;
}

.st-history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg);
    border-radius: calc(6 * var(--st-px));
    padding: calc(6 * var(--st-px)) calc(8 * var(--st-px));
    font-size: calc(10 * var(--st-px));
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    border: max(1px, calc(1 * var(--st-px))) solid transparent;
}

.st-history-item:hover {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.08), var(--bg));
    border-color: rgba(59, 130, 246, 0.2);
    transform: translateX(calc(2 * var(--st-px)));
}

.st-history-left {
    display: flex;
    align-items: center;
    gap: calc(6 * var(--st-px));
    min-width: 0;
}

.st-history-status {
    width: calc(16 * var(--st-px));
    height: calc(16 * var(--st-px));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: calc(10 * var(--st-px));
    font-weight: 700;
    flex-shrink: 0;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.st-history-item:hover .st-history-status {
    transform: scale(1.15) rotate(8deg);
}

.st-history-status.ok {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.st-history-status.fail {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.st-history-name {
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: calc(180 * var(--st-px));
    transition: color 0.2s ease;
}

.st-history-item:hover .st-history-name {
    color: var(--blue);
}

.st-history-right {
    display: flex;
    align-items: center;
    gap: calc(8 * var(--st-px));
    flex-shrink: 0;
}

.st-history-size {
    color: var(--text2);
    font-variant-numeric: tabular-nums;
    transition: color 0.2s ease;
}

.st-history-item:hover .st-history-size {
    color: var(--text);
    font-weight: 600;
}

.st-history-time {
    color: var(--text3);
    font-size: calc(9 * var(--st-px));
    font-variant-numeric: tabular-nums;
    transition: color 0.2s ease;
}

.st-history-item:hover .st-history-time {
    color: var(--text2);
}

.st-pop-footer {
    margin-top: calc(12 * var(--st-px));
    padding-top: calc(10 * var(--st-px));
    border-top: max(1px, calc(1 * var(--st-px))) solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: calc(8 * var(--st-px));
}

.st-detail-popover:not(.visible) .st-pop-footer {
    opacity: 0;
    transform: translateY(calc(4 * var(--st-px)));
}

.st-detail-popover.visible .st-pop-footer {
    transition: opacity 0.25s ease 0.2s, transform 0.25s ease 0.2s;
}

.st-footer-info {
    font-size: calc(10 * var(--st-px));
    color: var(--text3);
    font-variant-numeric: tabular-nums;
    padding: calc(3 * var(--st-px)) calc(8 * var(--st-px));
    background: var(--bg);
    border-radius: calc(5 * var(--st-px));
    transition: color 0.2s ease, background 0.2s ease;
}

.st-footer-info:hover {
    color: var(--text);
    background: rgba(59, 130, 246, 0.06);
}

.st-reset-btn {
    padding: calc(6 * var(--st-px)) calc(14 * var(--st-px));
    font-size: calc(10 * var(--st-px));
    font-weight: 600;
    background: #fef2f2;
    color: #dc2626;
    border: max(1px, calc(1 * var(--st-px))) solid #fecaca;
    border-radius: calc(7 * var(--st-px));
    cursor: pointer;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.st-reset-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(220, 38, 38, 0.2), transparent 70%);
    opacity: 0;
    transform: scale(0.4);
    transition: all 0.25s ease;
}

.st-reset-btn:hover::before {
    opacity: 1;
    transform: scale(1.2);
}

.st-reset-btn:hover {
    background: #dc2626;
    color: #fff;
    border-color: #dc2626;
    transform: translateY(calc(-1 * var(--st-px)));
    box-shadow: 0 calc(4 * var(--st-px)) calc(10 * var(--st-px)) rgba(220, 38, 38, 0.4);
}

.st-reset-btn:active {
    transform: translateY(0) scale(0.97);
    transition: all 0.1s ease;
}

.st-ticker {
    position: fixed;
    right: calc(260 * var(--st-px));
    top: calc(88 * var(--st-px));
    z-index: 999;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-60%) scale(0.92);
    transition: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #fff;
    font-size: calc(11 * var(--st-px));
    font-weight: 600;
    padding: calc(7 * var(--st-px)) calc(14 * var(--st-px));
    border-radius: calc(10 * var(--st-px));
    white-space: nowrap;
    box-shadow: 0 calc(6 * var(--st-px)) calc(16 * var(--st-px)) rgba(59, 130, 246, 0.45);
    backdrop-filter: blur(calc(4 * var(--st-px)));
    -webkit-backdrop-filter: blur(calc(4 * var(--st-px)));
}

.st-ticker::after {
    content: '';
    position: absolute;
    bottom: calc(-3 * var(--st-px));
    left: 50%;
    transform: translateX(-50%);
    width: calc(8 * var(--st-px));
    height: calc(8 * var(--st-px));
    background: inherit;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.st-ticker.show {
    opacity: 1;
    transform: translateY(calc(-100% - 10 * var(--st-px))) scale(1);
}

.st-history::-webkit-scrollbar {
    width: calc(5 * var(--st-px));
}
.st-history::-webkit-scrollbar-track {
    background: transparent;
    border-radius: calc(3 * var(--st-px));
}
.st-history::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--border), #cbd5e1);
    border-radius: calc(3 * var(--st-px));
    transition: background 0.2s ease;
}
.st-history::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #94a3b8, #64748b);
}