.sge-toolbar-actions {
    display: flex;
    gap: 9px;
    align-items: center;
    flex-shrink: 0;
}

.sge-modal {
    max-width: 400px;
}

.sge-body {
    width: 100%;
}

.sge-panel {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.sge-overlay[data-state="verifying"] .sge-panel-verifying {
    display: flex;
}

.sge-overlay[data-state="building"] .sge-panel-building {
    display: flex;
}

.sge-overlay[data-state="done"] .sge-panel-done {
    display: flex;
}

.sge-overlay[data-state="failed"] .sge-panel-failed {
    display: flex;
}

.sge-turnstile {
    min-height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sge-hint {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    text-align: center;
    margin: 0;
}

.sge-heartbeat {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sge-heartbeat-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--color-success);
    flex-shrink: 0;
}

.sge-heartbeat-dot[data-hb="live"] {
    animation: sge-pulse 1.4s ease-in-out infinite;
}

.sge-heartbeat-dot[data-hb="stale"] {
    background: var(--color-warning);
    animation: none;
}

@keyframes sge-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.sge-heartbeat-label {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

.sge-progress-track {
    width: 100%;
    height: 8px;
    border-radius: 99px;
    background: var(--bg-soft);
    border: 1px solid var(--color-border);
    overflow: hidden;
}

.sge-progress-fill {
    height: 100%;
    width: 0;
    background: var(--color-accent);
    border-radius: 99px;
    transition: width 0.25s ease;
}

.sge-step {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    text-align: center;
    margin: 0;
    min-height: 16px;
}

.sge-done-icon {
    color: var(--color-success);
}

.sge-done-text {
    font-size: var(--font-size-sm);
    color: var(--color-text);
    text-align: center;
    margin: 0;
}

.sge-download-link {
    text-decoration: none;
    min-height: 44px;
}

.sge-failed-icon {
    color: var(--color-error);
}

.sge-failed-text {
    font-size: var(--font-size-sm);
    color: var(--color-error);
    text-align: center;
    margin: 0;
}

#sge-retry {
    min-height: 44px;
}

@media (max-width: 767px) {
    .sg-tb-right {
        flex: 1 1 100%;
        margin-left: 0;
        flex-wrap: wrap;
    }
    .sg-tb-right .sg-sort-select {
        flex: 1 1 100%;
    }
    .sge-toolbar-actions {
        flex: 1 1 100%;
        flex-wrap: nowrap;
    }
    .sge-toolbar-actions .sg-btn {
        flex: 1 1 0;
        min-width: 0;
        justify-content: center;
    }
}

@media (max-width: 375px) {
    .sge-modal {
        max-width: 100%;
    }
}
