
.setup-guide {
    max-width: 560px;
    margin: 28px auto 8px;
    padding: 0 16px;
}

.setup-guide-modal {
    padding: 22px 22px 20px;
    border-radius: 18px;
    background:
        radial-gradient(ellipse 90% 70% at 50% -10%, rgba(200, 55, 70, 0.20), transparent 55%),
        linear-gradient(165deg, #171011 0%, #0b0707 100%);
    border: 1px solid rgba(190, 90, 90, 0.22);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.sg-modal-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
}

.sg-modal-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.sg-modal-brand-name {
    font-family: 'Montserrat', system-ui, sans-serif;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #f5f2f8;
}

.sg-modal-logo {
    height: 44px;
    width: 44px;
    max-width: 44px;
    object-fit: contain;
    display: block;
}

.sg-modal-title {
    margin: 0;
    font-family: 'Montserrat', system-ui, sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #f3f0f8;
    letter-spacing: -0.01em;
}

.sg-modal-rule {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: rgba(244, 196, 196, 0.82);
}

.sg-tabs {
    display: flex;
    gap: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 18px;
}

.sg-tab {
    appearance: none;
    background: none;
    border: 0;
    padding: 0 0 10px;
    margin: 0 0 -1px;
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 600;
    color: rgba(220, 190, 190, 0.74);
    border-bottom: 2px solid transparent;
    transition: color 0.18s ease, border-color 0.18s ease;
}

.sg-tab:hover {
    color: rgba(250, 232, 232, 0.94);
}

.sg-tab:focus-visible {
    outline: 2px solid rgba(225, 90, 100, 0.7);
    outline-offset: 3px;
    border-radius: 4px;
}

.sg-tab.is-active {
    color: #fff;
    border-bottom-color: #fff;
}

.sg-pane[hidden] { display: none !important; }

.sg-tabs { position: relative; }

.sg-tab-ink {
    position: absolute;
    left: 0;
    bottom: -1px;
    height: 2px;
    width: 0;
    border-radius: 2px;
    background: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.42);
    pointer-events: none;
    opacity: 0;
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
                width 0.28s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.2s ease;
}

.sg-tab-ink.is-ready { opacity: 1; }

.sg-tabs.has-ink .sg-tab.is-active { border-bottom-color: transparent; }

@keyframes sgPaneIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.sg-pane.is-entering {
    animation: sgPaneIn 0.26s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (prefers-reduced-motion: reduce) {
    .sg-tab-ink { transition: none; }
    .sg-pane.is-entering { animation: none; }
}

.sg-steps {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sg-steps li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: rgba(245, 232, 232, 0.9);
    font-size: 0.9rem;
    line-height: 1.45;
}

.sg-num {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #c0203a, #7a1521);
}

.sg-video {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    color: #f0a8a8;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
}

.sg-video:hover { color: #ffd6d6; }

.sg-video-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e05252;
    box-shadow: 0 0 0 3px rgba(224, 82, 82, 0.25);
}

.sg-hotkeys {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.sg-hotkey {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(190, 90, 90, 0.18);
    color: rgba(240, 228, 228, 0.85);
    font-size: 0.82rem;
}

.sg-hotkey kbd,
.sg-steps kbd {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 6px;
    background: #1e1e28;
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-family: ui-monospace, Consolas, monospace;
    font-size: 0.78rem;
    color: #fff;
}

.sg-warns {
    display: grid;
    gap: 8px;
}

.sg-warn {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(190, 90, 90, 0.16);
    color: rgba(238, 224, 224, 0.78);
    font-size: 0.82rem;
    line-height: 1.4;
}

.sg-warn i {
    color: #eab308;
    margin-top: 2px;
    flex-shrink: 0;
}

.sg-comp-list {
    margin: 0;
    padding: 0 0 0 18px;
    color: rgba(245, 232, 232, 0.9);
    font-size: 0.9rem;
    line-height: 1.55;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.h-toast-host {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.h-toast {
    pointer-events: auto;
    min-width: 240px;
    max-width: 320px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #141418;
    border: 1px solid rgba(239, 68, 68, 0.55);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    display: flex;
    gap: 12px;
    align-items: flex-start;
    animation: h-toast-in 0.25s ease-out;
}

.h-toast-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ef4444;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.h-toast-title {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 700;
    color: #fff;
}

.h-toast-sub {
    margin: 2px 0 0;
    font-size: 0.8rem;
    color: rgba(238, 224, 224, 0.7);
}

@keyframes h-toast-in {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.sg-prep {
    margin: 0 0 18px;
    padding: 14px 14px 2px;
    border-radius: 14px;
    background: rgba(200, 55, 70, 0.08);
    border: 1px solid rgba(200, 70, 80, 0.26);
}

.sg-prep-title {
    margin: 0 0 4px;
    font-family: 'Montserrat', system-ui, sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #f3f0f8;
    letter-spacing: -0.01em;
}

.sg-prep-lead {
    margin: 0 0 12px;
    font-size: 0.8rem;
    line-height: 1.45;
    color: rgba(244, 196, 196, 0.82);
}

.sg-prep .sg-steps { margin-bottom: 12px; }

.sg-prep .sg-steps li { font-size: 0.88rem; }

.sg-prep .sg-warns { margin-bottom: 12px; }

.sg-prep-hint {
    display: block;
    margin-top: 3px;
    font-size: 0.78rem;
    line-height: 1.4;
    color: rgba(244, 190, 190, 0.62);
}

@media (max-width: 640px) {
    .setup-guide { max-width: 100%; }
    .setup-guide-modal { padding: 18px 16px; }
    .sg-prep { padding: 12px 12px 0; }
}
