.install-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.install-modal-overlay.open {
    display: flex;
}

.install-modal {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 28px;
    width: 340px;
    max-width: 90vw;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.install-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.install-modal-header h2 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
}

.install-modal-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #888;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    border-radius: 0;
}

.install-modal-close:hover,
.install-modal-close:focus,
.install-modal-close:active {
    background: none;
    color: #1a1a1a;
}

.install-modal-subtitle {
    font-size: 13px;
    color: #888;
    margin-bottom: 14px;
}

.skill-install-project-select {
    width: 100%;
    background: #ebebeb;
    border: 1px solid #ddd;
    color: #1a1a1a;
    font-family: inherit;
    font-size: 13px;
    padding: 9px 12px;
    border-radius: 5px;
    margin-bottom: 12px;
    outline: none;
    box-sizing: border-box;
}

.skill-install-project-select:focus {
    border-color: #6d78d5;
}

.install-auto-update-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 14px;
    cursor: pointer;
    user-select: none;
}

.install-auto-update-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.install-auto-update-title {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
}

.install-auto-update-hint {
    font-size: 11px;
    color: #888;
    line-height: 1.35;
}

.install-auto-update-row input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.install-auto-update-switch {
    position: relative;
    flex-shrink: 0;
    width: 40px;
    height: 22px;
    border-radius: 11px;
    background: #d0d0d0;
    transition: background 0.15s;
}

.install-auto-update-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transition: transform 0.15s;
}

.install-auto-update-row input:checked + .install-auto-update-switch {
    background: #6d78d5;
}

.install-auto-update-row input:checked + .install-auto-update-switch::after {
    transform: translateX(18px);
}

.install-auto-update-row input:focus-visible + .install-auto-update-switch {
    outline: 2px solid #6d78d5;
    outline-offset: 2px;
}

.btn-install-confirm {
    background: #6d78d5;
    color: #fff;
    border: none;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 0;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.15s;
    width: 100%;
}

.btn-install-confirm:hover {
    background: #5b64b5;
}

.btn-install-confirm:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.install-status {
    margin-top: 10px;
    font-size: 12px;
    color: #888;
    min-height: 18px;
    text-align: center;
}

.install-status.success {
    color: #2d7a3a;
}

.install-status.error {
    color: #e74c3c;
}

.btn-install-go {
    display: none;
    margin-top: 0;
    background: #1a1a1a;
    color: #fff;
    border: none;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 0;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.15s;
    width: 100%;
}

.btn-install-go:hover {
    background: #333;
}

.btn-install-go.is-visible {
    display: block;
}
